On Tue, 2010-03-23 at 09:04 -0400, Brian Hutchinson wrote:
> Thanks to everyone for the great suggestions!
> 
> Since I'm new at going this deep into shell debugging (and almost
> never on a embedded target) I'll have to check out each of these
> suggestions as I've never heard of some of them.
> 
> Is it possible to start preinit with -x and redirect the output to the
> console or network?  I have minicom running on the serial port and see
> some of the echo statements in the script ... I just don't see the -x
> debug info I was hoping to see.

You won't see anything from preinit with set -x because when preinit is
first called there is no stdin/stdout.  One of the things preinit does
is attach itself to a terminal, if there is one (otherwise it just
connects to a pseudo-terminal)

> 
> I didn't think about running wireshark to capture the script output
> ... I'll have to look into that.  I'm well versed in wireshark.
> 
> What is this 'pure' /jffs envrionment?  Is it possible to setup the
> union so that 'any' file can be modified?  That is kind of what I was
> expecting to have but I realize some of the preinit stuff has to run
> from squashfs because the union isn't established that early in the
> startup.
> 

No not pure /jffs - that's just the mountpoint when using a jffs2
overlay over the squashfs.  It is possible to build/flash images that
don't have a squashfs at all, and which store everything on a jffs2
filesystem (no overlay).  This images are larger than the squashfs
images so you may not have enough flash memory for one of them.

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to