[U-Boot-Users] PXA270 board startup: printf does not work
JP
jp-linux at att.net
Wed May 14 15:49:13 CEST 2008
Starting up a new board with a PXA270, the console output from
printf calls in board.c contains garbage, whereas puts works fine.
It appears the vsprintf call in printf works correctly, but printf's
local char buffer has a few alternate correct characters at its
very beginning followed by junk.
Everything else seems to work correctly: this SDRAM area can be written
to with a debugger. But test functions (similar to printf) that copy a
string parameter to a local buffer and then call puts also produce garbage.
Buffers initialized (i.e., char t [12] = "Testing...";) in these
functions will print (with puts) ONLY if their size is <= 32. Their
contents become garbage when other data are copied to them, regardless
of size.
I haven't yet tried to start a ramdisk or image; without correct output
from printf or the debug () macro it would be futile.
Thanks for any ideas.
JP
More information about the U-Boot
mailing list