Skip to contentSkip to conversation

initramfs problem - /init file

DISCUSSION [email protected] 1 participant 1 message Feb 21, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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/init and 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_SOURCE at 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

=