From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Cooper Date: Mon, 15 Nov 2010 14:14:57 -0500 Subject: [U-Boot] [PATCH V4 1/2] arm926ejs: fix linker file for newer ld support In-Reply-To: <4CE14099.1070105@schmid-telecom.ch> References: <1288909332-26220-1-git-send-email-albert.aribaud@free.fr> <20101109234346.GF17882@localhost> <4CE14099.1070105@schmid-telecom.ch> Message-ID: <20101115191457.GB2982@localhost> 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, Nov 15, 2010 at 03:15:53PM +0100, Daniel Hobi wrote: > Did you locally fix arch/arm/cpu/arm926ejs/kirkwood/timer.c to not > access uninitialized data (variables timestamp and lastdec) before > relocation? I didn't before, but now I have made that change (moved the static vars in timer.c to global_data and reference them via gd). But I get the same behavior (freezing after printing "NAND: "). Then I rebuilt my branch with the partial-linking patch applied, but rebased on today's master, and now that fails in the same way. So there's some low-level thing going on that unrelated changes in the source code or build process seem to trigger. Different link order, code placement, phase of moon, ...? I have a JTAG setup, but so far I've only used it to re-load u-boot to RAM after a flashing a bad image. If anyone can give me a clue how to use it with gdb to debug what's going on, please let me know. -- Eric Cooper e c c @ c m u . e d u