[U-Boot-Users] Debugging U-boot with BDI-2000 on MPC8349

Ben Warren bwarren at qstreams.com
Thu Sep 14 21:53:57 CEST 2006


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"?
> <http://www.denx.de/wiki/view/DULG/DebuggingUBoot>
> 
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   





More information about the U-Boot mailing list