From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Tue, 7 Apr 2015 09:53:27 +0200 Subject: [U-Boot] printf("%d") breaks u-boot 2015.01+ In-Reply-To: <201504062302.48199.marex@denx.de> References: <1427752878-18426-1-git-send-email-dinguyen@opensource.altera.com> <201504062048.45467.marex@denx.de> <20150406192323.GA9928@amd> <201504062302.48199.marex@denx.de> Message-ID: <20150407075327.GA23401@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon 2015-04-06 23:02:48, Marek Vasut wrote: > On Monday, April 06, 2015 at 09:23:23 PM, Pavel Machek wrote: > > On Mon 2015-04-06 20:48:45, Marek Vasut wrote: > > > On Monday, April 06, 2015 at 08:14:44 PM, Pavel Machek wrote: > > > > On Mon 2015-04-06 16:59:55, Marek Vasut wrote: > > > > > On Monday, April 06, 2015 at 04:40:09 PM, Pavel Machek wrote: > > > > > > Hi! > > > > > > > > > > > > In u-boot 2015.04-rc, as soon as execution hits printf("%d"), it > > > > > > hangs. (Usually, that's after "DRAM: " message). > > > > > > > > > > printf("%d") expects an argument, so could it be that it touches > > > > > random piece of memory and thus hangs? > > > > > > > > It had an argument, sorry for confusion. I was actually doing this: > > > > the test with %s works, the one with %d kills it. > > > > > > > > I suspect too small stack...? > > > > > > Does this happen in the SPL ? You can check the stack placement and > > > utilization with BDI to verigy your hypothesis. > > > > No, this is u-boot proper, and I'm chainloading it (see first mail) -- > > so unsupported configuration. > > > > I'm preparing to flash the u-boot into the NOR, that should tell us if > > it is chainloading problem or not. > > OK, since this email was in-reply-to SPL patch series, I got confused. > Is it in any way related to this patchset then or not ? No, it is not related to SPL series. Sorry for confusion. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html