[uClinux-dev] Can't find init

Tom Walsh tom at cyberiansoftware.com
Mon Nov 26 23:51:46 EST 2001

Bruce Paterson wrote:
> Hi,
> Well I've sucessfully got the newer 2.4.x kernel running on the 68360,
> except for one last step (I hope).
> The ROM-FS is found and loads sucessfully (now), but after that I get a
> kernel panic: no init found.

IIRC, I had the same problem when working with 2.4 and it turned out
that only part of the romfs actually in memory.  I had a miscalculation
in the length of the romfs image by my loader (a compact flash is my
boot device, I boot via EPROM).  The loader I am speaking of is NOT
crt0.S! It took a while to dump sections of the romfs from memory and
compare it with the romfs.img file, but I eventually found it.  What was
happening was that part of the romfs got loaded and the blkmem.c was
assuming that since the romfs header was in memory that the whole romfs
was there.


> My romfs filesystem looks ok to me, and it certainly has a /bin/init
> (the base one, not the busybox
> one). My /etc/rc and /etc/inittab files look ok to me.
> If anyone has any specific hints where to look that would be great !
> I am attempting to debug init/main.c where it tries to run init, but
> since right at the moment I'm
> using the original coff patched gdb to debug the elf based distro it's a
> bit of a mess :-)
> Yes of course I'll be getting some elf tools going shortly (thinking of
> going straight to Insight).
> Cheers,
> Bruce
> -------------------------------------------------------------------------
> This email and any files transmitted with it are confidential and
> intended
> solely for the use of the individual or entity to whom they are
> addressed.
> If you have received this email in error please notify the system
> manager.
>     /\\\/\\\/\\\    /   /    Bruce Paterson          VK3TJN
>    /  \\\ \\\ \\\  /   /     Senior Design Engineer
>   /   /\\\/\\\/\\\/   /      87 Peters Ave, Mulgrave, Vic, 3170
>  /   /  \\\ \\\ \\\  /       PO Box 4112, Mulgrave, Vic, 3170, AUSTRALIA
> /   /    \\\/\\\ \\\/        Ph: +61 3 8561 4232  Fax: +61 3 9560 9055
>       Tele-IP Ltd.           Email: bruce at tele-ip.com    Icq: #32015991
>                              WWW:   http://www.tele-ip.com
> --------------------------------------------------------------------------
> This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/

Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/

More information about the uClinux-dev mailing list