How to umount initrd?

T4ndeta t4ndeta at gmail.com
Sat Oct 31 11:02:28 UTC 2009


Well I did it with u-boot, loading kernel and initrd separately
example:
ext2load usb 0:1 a4000000 /boot/uImage
ext2load usb 0:1 a5000000 /boot/initrd
bootm a4000000 a5000000

You don't have to set root=/dev/ram0 and init=/linuxrc

On Sat, Oct 31, 2009 at 02:41, Pan ruochen <panruochen at gmail.com> wrote:
>>2009/10/31 T4ndeta <t4ndeta at gmail.com>:
>> 1. Make a cpio package with init in root directory then you can use
>> exec switch_root (this is the best solution)
>> 2. After exec chroot . /sbin/init you would have to send a signal to
>> init to restart it self (from a script on real_root), this should free
>> some fd's from initrd
>>
>
> initrd could not be mounted as root fs if it was made a cpio package and
> loaded by boot loader into memory instead of being embedded inside kernel.
> I wish initrd separated from kernel, in order that kernel contains as little
> platform-dependent hardware drivers as possible. It seems to be a popular
> solution in distribution.
>
> ---
> PRC
>


More information about the busybox mailing list