LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to create .img after kernel has compilled? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-img-after-kernel-has-compilled-398891/)

smsundar 01-03-2006 12:44 AM

how to create .img after kernel has compilled?
 
Dear All,
I am using FC3 with 2.6.9-1.667. I wanted to have 2.4 kernel in the same system as dual kernel mode and so i have downloaded, compiled and crearted vmlinuz2.4.32(compiled kernel) at /boot.

now the problem is at LILO. this LILO asked for 3 matters like
------------------------------------------------------------------------------------------
/* Content of my LILO /etc/lilo.conf.anaconda */
prompt
timeout=20
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
linear

image=/boot/vmlinuz-2.6.9-1.667
label=linux
initrd=/boot/initrd-2.6.9-1.667.img
read-only
append="rhgb quiet root=LABEL=/"
------------------------------------------------------------------------------------------

now i have this image, label but i don't know how to create *.img file. my friends sugested to use mkinitrd. but i have tried but failed even i have gone thru man and info pages. Could you please tell me how to create initrd-2.4.32.img to be used at initrd= value.

Lenard 01-03-2006 06:59 AM

Don't know why you want a 2.4 kernel in a 2.6 kernel based disto, but the way Red Hat /Fedora suggests kernel building is;

make mrproper
make xconfig
make
make modules_install
make install <-- perhaps you forgot this step

The 'make install' takes care of the file copying / renaming and bootloader entry, see step 11 from the link below;

http://www.redhat.com/docs/manuals/l...dularized.html


All times are GMT -5. The time now is 06:50 PM.