xda-developers.com
forum.xda-developers.com
device database
wiki.xda-developers.com Wiki HomePage
FAQ | Xanadux

RecentChanges | FindPage | | LikePages | BackLinks

Init RD

The initial ramdisk (initrd) does exactly what the name says. It provides a disk by using some RAM space. For this reason you don't want an initrd image to be too big: it will take away precious memory from your applications. However, for development it can be a very welcome solution. An initrd image is placed in memory and then its location information is passed to the kernel. For a ramdisk that is meant to be used permanently the kernel argument keepinitrd is passed to the kernel too.

When you build a kernel and want the modules in the rootfs, use:

make modules_install INSTALL_MOD_PATH=/path/to/initrdroot

A good description on how to create a small initrd image based on uClibc and BusyBox can be found here: http://www.linux4.be/~jroark/howto/ramdisk.html

Another relevant description on a ramdisk creation: http://www.wearablegroup.org/software/ramdisk/index.html


Last edited on February 10, 2004 9:30 pm.


Edit | PageHistory | Diff | PageInfo
Login
User Name: Password:
Remember Me?