Hi, I often use a simple bit-bang function at some high buad rate and one gpio pin. I hook a serial terminal to it. Depending on CPU speed, etc. interrupts may have to be disabled during the time the character is actually being sent. One character at 115,200 is 0.1ms so unless the CPU is very busy with time dependent stuff, most applications don't seem to mind that much.
As an additional variation of this scheme, I make the pin bi-directional and hook my full software debugger to it. I can peek, poke and monitor memory in more or less real time. Works great. Saves LOTS of time. And makes things really clear. This feature would be a good add to OpenWRT in my copious spare time :)). regards, Wiz On Wed, 24 Mar 2010, Ferenc Wagner wrote: > Daniel Dickinson <[email protected]> writes: > > > 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) > > Would putting /dev/console in the root filesystem solve this? Fakeroot > could be used for that without requiring real root for image generation. > -- > Thanks, > Feri. > _______________________________________________ > openwrt-devel mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
