Re: manual kernel recompile vs make-kpkg
So far I've done the same as you, with one exception ...
Charles Lewis wrote:
>
> Warning: newbie question...
>
> I have been able to recompile the kernel successfully a few times, but I'm
> not sure what all is going on, and whether I am doing it the best way or
> not. Here is an example of what I do when I update the kernel:
>
> Install debian kernel source using dselect (not sure how to do patches)
> cd /usr/src
> tar zxpvf kernel-source-2.2.12.tar.gz
> cd kernel-source-2.2.12
>
> make menuconfig (or xconfig)
> make dep (make clean??)
> make bzImage
... here I use make bzlilo instead. I also do some fiddling with
symlinks to point to where I actually stow the kernel image.
> make modules
> make modules_install
Doing make bzlilo puts the kernel image into / but I copy it into
/boot and rename it similar to what you do here.
> cp usr/src/kernel-source-2.2.12/arch/i386/boot/bzImage /boot/vmlinuz-2.2.12
> rm /vmlinuz
> ln -s /boot/vmlinuz-2.2.12 /vmlinuz
> (I learned the hard way that when I copied bzImage directly to /vmlinuz, I
> was overwriting the previous kernel in /boot)
This is pretty much what I do with the symlink that I mentioned. I've
got 3 or 4 kernels on there, as I'm not sure yet which I'll be using
the most (I've got some odd hardware issues). Once I get that settled
I'll pare it down to one.
> Now, my question is, is what I do above pretty much what everyone else does?
> And what would be the equivalent steps for doing the same thing using
> make-kpkg? After reading the man pages, I'm not sure what options I should
> use or what the resulting deb would be. This is what I've been able to glean
> so far:
<snip make-kpkg stuff>
I've always done it the way I outlined above and haven't had a problem
yet. Frankly, I really don't see a need to do the make-kpkg thing.
The "traditional" way works fine for me, and as the saying goes "If it
ain't broke don't fix it".
--
Mike Werner KA8YSD | "Where do you want to go today?"
ICQ# 12934898 | "As far from Redmond as possible!"
'91 GS500E |
Morgantown WV | Only dead fish go with the flow.
Reply to: