[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: upgrade to kernel-2.4.9



On Mon, Sep 17, 2001 at 05:42:58AM +0800, csj wrote:
| On Mon, 2001-09-17 at 03:58, Vittorio wrote:
| > Don,
| > 
| > you should compile the USB keyboard support statically in the 2.4.9
| > kernel and not as a module (answer 'Y' and not 'M' when using 'make
| > menuconfig').
| > 
| > Because compiling the 2.4.9 kernel has been a pain in the neck to me
| > (with that damned initrd stuff) I'll sketch here the basic steps you
| > should follow:
| > 
| > 1) Under /usr/src/kernel-source-2.4.9
| > **make menuconfig ** and do your settings;
| > 
| > 2) **make-kpkg clean;
| > 
| > 3) **make-kpkg --revision=my.01 kernel_image;
| > 
| > 4) Under /usr/src
| > **dpkg -i kernel-image-2.4.9-my.01_i386.deb
| > answering NO to the question about running lilo.
| > 
| > 5) Now you should have a new kernel image in /boot and its modules in
| > /lib/modules/2.4.9/ 
| > Issue the command 'mkinitrd -o /boot/initrd-my.01 /lib/modules/2.4.9'
| > In /boot you'll now find initrd-my.01
| > 
| > 6) Modify your lilo.conf adding the new kernel image (/boot/vmlinuz-2.4.9) and
| >    the line 'initrd=/boot/initrd-my.01' and run lilo.
| 
| Okay, can somebody please explain why I'm missing this initrd stuff (and

If you didn't enable it in the kernel then you don't use an initrd.
If you enabled it then you need an initrd.

| what I'm missing)? Why do I need to mkinitrd? I'm also running a
| self-compiled 2.4.9.

It is actually easier to add "--initrd" to the make-kpkg command and
it will include an initrd in the .deb.

-D



Reply to: