[Buildroot] Issue performing switch_root to a UBIFS partition
Yegor Yefremov
yegorslists at googlemail.com
Mon Mar 27 08:05:05 UTC 2017
I'm trying to boot from initramfs and then switch_root to UBIFS
partition. Both rootfs were created with the same toolchain. And when
I mount UBIFS from initramfs I can execute its busybox etc. So at
least the architecture it the same.
I'm performing the same actions as described here [1]
mkdir /newroot
mount -t ubifs ubi0:rootfs /newroot
mount --move /sys /newroot/sys
mount --move /proc /newroot/proc
mount --move /dev /newroot/dev
exec switch_root /newroot /sbin/init
As soon as I execute switch_root, the system complains, that it cannot
find /dev/ttyO0.
can't open /dev/ttyO0: No such file or directory
If I omit moving /sys, /proc and /dev, the /sbin/init from initramfs
rootfs will be executed. I.e. in both cases it seems like /sbin/init
from initramfs rootfs will be executed and switch_root produces no
error/warnig messages.
What am I missing?
[1] https://landley.net/writing/rootfs-programming.html
Yegor
More information about the buildroot
mailing list