From: Ben Warren Date: Thu, 14 Sep 2006 15:53:57 -0400 Subject: [U-Boot-Users] Debugging U-boot with BDI-2000 on MPC8349 In-Reply-To: <4509AFEC.6090904@smiths-aerospace.com> References: <1158259973.16415.63.camel@saruman.qstreams.net> <4509A611.6000002@freescale.com> <1158261618.16415.68.camel@saruman.qstreams.net> <4509AFEC.6090904@smiths-aerospace.com> Message-ID: <1158263637.16415.76.camel@saruman.qstreams.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jerry, On Thu, 2006-09-14 at 15:39 -0400, Jerry Van Baren wrote: > Have you tried the FAQ "10.1.2. Debugging of U-Boot After Relocation"? > > My problem arises when I try to do exactly what's shown in the FAQ (before relocation, in this case). Instead of: Breakpoint 1, cpu_init_f () at cpu_init.c:136 136 asm volatile(" bl 0f" ::: "lr"); (gdb) s 137 asm volatile("0: mflr 3" ::: "r3"); (gdb) I get: Breakpoint 1, cpu_init_f (im=0xe0000000) at cpu_init.c:42 42 { (gdb) s Cannot access memory at address 0xfd000ed8 (gdb) print im $1 = (volatile immap_t *) 0xe0000000 (gdb) print *im Cannot access memory at address 0xe0000000 (gdb) Uncool. regards, Ben