From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Thu, 02 Dec 2010 15:56:34 +0100 Subject: [U-Boot] OMAP3: relocation and bss usage (timer, gpmc, ...) In-Reply-To: <30358424.post@talk.nabble.com> References: <4CF52638.4050804@ahsoftware.de> <4CF581C4.7050704@ahsoftware.de> <30358424.post@talk.nabble.com> Message-ID: <4CF7B3A2.4080407@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 02.12.2010 14:33, schrieb zfsdk: > > Maybe in init sequens asm func, i used turn on led to check which func faild. > Using a LED for debugging is time consuming. And you won't see which code still uses BSS before relocation as such code does not have to fail (it still might work). I prefer reading source. Using JTAG should help too, but I think, using JTAG and a debugger might got somewhat harder, at least after the code got relocated. Anyway, a JTAG-debugger could help a lot searching the stuff which currently goes wrong before relocation. I assume single stepping the few dozen lines which are executed before relocation could be done in a few hours and it should reveal most of the code which accesses BSS before relocation. Regards, Alexander