[U-Boot] [OT]Need help getting Linux past init

Peter Tyser ptyser at xes-inc.com
Fri Mar 26 17:55:38 CET 2010


> So it looks like the kernel has no problem locating /bin/sh in the JFFS2
> partition but then the lights go out. I've also tried /bin/init - same result.
> 
> I even tried changing /dev/console to be a symlink to /dev/ttyS0 but that
> didn't change a thing.
> 
> I am _SO_ close to getting this going, and after all the work I have put
> into U-Boot to get this far, it is really frustrating.
> 
> Any ideas?

What if you make an init app or script that just creates a file on the
JFFS2 fs?  Then you could verify it was created by rebooting the board
and inspecting the filesystem from U-Boot.  That would tell you that the
code is executing as expected at least.  You could dump debug output to
this file for later use too.  If that works, it'd be interesting to know
if a statically linked hello world app printed anything out.  If not,
you could narrow the problem down to a serial/console issue.

A JTAG/XDP debugger could help too.  Maybe dumping the printk buffer in
Linux would show some kernel messages that never made it to your serial
port.

Peter



More information about the U-Boot mailing list