Kernel panic: No init found.?? Try passing init= option to kernel
Hi there,
Can someone give me a clue what's going on? I been trying to figure out what wrong with this kernel. Is it because of the squashfs system which I am trying to use. I know this is quite a common problem and I have been search old news archive but to no avail. Please help
OUTPUT:-
Int flash0: Using Static image partition definition Creating 5 MTD partitions on "Int0":
0x00000000-0x00080000 : "kernel" 0x00080000-0x00180000 : "ramdisk" 0x00180000-0x00300000 : "user1" 0x00300000-0x00380000 : "uboot" 0x00380000-0x00400000 : "user2"
VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 36k init
Kernel panic: No init found. Try passing init= option to kernel.
I have check, the init is located at this location in the Ramdisk.
/bin/init -> ../etc/rc
But I am not sure the file system is mounted correctly. Or is it something wrong with the MTD because I customize the Flash mapping myself.
Thank you in advance!
--
Mike G. <[email protected]>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Mike G.
Hi there,
Kernel panic: No init found. Try passing init= option to kernel.
That message indicates one of a few things happened.
The first is it could not find any default init programs to run.
the second is whatever "init=" that you passed in was not found.
or...
third, the most common, you have a bad dependency, so when it tries to run init the dynamic loader fails, (shell loader fails in the case of a shell script.) Something is causing the program not to run properly.
The way I usually debug this is to install ash.static on the system, set my kernel command line to have init=/bin/ash.static.. boot up and then attempt to run the "real" init manually so I can get the descriptive error messages.
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi Mark,
Thanks ... hmmm.. where can I get this ash.static.. is there a version that runs on ppclinux?
Quoted 4 lines
The way I usually debug this is to install ash.static on the system, set my kernel command line to have init=/bin/ash.static.. boot up and then attempt to run the "real" init manually so I can get the descriptive error messages.
--
Mike G. <[email protected]>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Find your favorite embedded distro.. if it doesn't contain it, you'll have to build one.
The debian project is the home of ash for Linux..
(ftp.debian.org/debian/pool/main/a/ash if I remember right)
--Mark
Quoted 13 lines · Mike G.
Hi Mark,
Thanks ... hmmm.. where can I get this ash.static.. is there a version that runs on ppclinux?
Quoted 4 lines
The way I usually debug this is to install ash.static on the system, set my kernel command line to have init=/bin/ash.static.. boot up and then attempt to run the "real" init manually so I can get the descriptive error messages.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/