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
mkinitrd /boot/initrd-new
This should create a new initrd image.
check it out. or man mkinitrd
mkinird
mkinird /boot/initrd-2.6.24.2.img 2.6.24.2
/lib/modules
If you happen to run
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...
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/*