login
Header Space

 
 

how to create initrd image for custom kernel

December 20, 2007 - 8:52am
Submitted by Anonymous on December 20, 2007 - 8:52am.
Linux

hello Every one ,

I want to know how to create an initrd image for custom kernel.
I am booting an image through ram as boot arguements for a custom kernel. i am not finding any
initrd.img.gz even though if i had enabled the config details..

Device Drivers > Block Devices > Loopback Device Support
plz inform me if anybody has a different method to create an initrd image.

how to create initrd image for custom kernel

December 21, 2007 - 7:09pm
Legolas (not verified)

mkinitrd /boot/initrd-new

This should create a new initrd image.

check it out. or man mkinitrd

mkinird

March 20, 2008 - 2:28am
Anonymous (not verified)

mkinird /boot/initrd-2.6.24.2.img 2.6.24.2

/lib/modules

If you happen to run

March 31, 2008 - 3:27am
Anonymous (not verified)

If you happen to run opensuse, calling mkinitrd without arguments does the right thing - version detection is done automatically, unlike other distros...

if you want to customize initrd...

April 22, 2008 - 9:28am
Tomasz Chmielewski (not verified)

And if you want to customize initrd, it's a cpio archive, usually compressed with gzip.

You can uncompress it (i.e., with zcat your_initrd > your_initrd.cpio) and unarchive the cpio. Then, make your own changes, cpio it, gzip it...

It is well explained (together with cpio syntax) in Documentation/filesystems/ramfs-rootfs-initramfs.txt

See also Documentation/early-userspace/*

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary