From mboxrd@z Thu Jan 1 00:00:00 1970 From: JP Date: Wed, 14 May 2008 08:49:13 -0500 Subject: [U-Boot-Users] PXA270 board startup: printf does not work Message-ID: <482AEDD9.7080500@att.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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