initramfs problem - /init file
Quoted 3 lines · [email protected] wrote:
Quoted 3 lines
Hello everybody,
I created a tiny root filesystem, just with Busybox, that I want to =
use
as
Quoted 5 lines
Quoted 5 lines
rootfs through initramfs (and keep it as the final root filesystem).=
Then I created an init file which is a link to
/sbin/initand I inserted the created cpio file with this filesystem=
in
Quoted 7 lines
Quoted 1 line
CONFIG_INITRAMFS_SOURCE.The simplest way to get initramfs working is to stuff your
root filesystem tree in a directory, and point
CONFIG_INITRAMFS_SOURCEat it.
The kernel build process will take care of all the cpio stuff
for you.
Personally I think it is the easiest to maintain.
Hello Dave,
thanks for your answer. I agree with you, the easy way is to assign the=
rootfs directory. I gave the filesystem as a cpio file because it is th= e
same (the kernel takes the rootfs and converts it to a cpio format), bu= t
the compilation is faster. Anyway, although now I do as you said, I sti= ll
get the error:
"Failed to execute /init
Kernel panic - not syncing: No init found. Try passing init=3D option =
to
kernel."
I can't understand why it happens. I check the permission of /init and /sbin/init and everything seems to me OK.
Any idea?
Ra=FAl Moreno
=