[U-Boot] Debugging uboot w/ GDB

Brandon Burnett gentoolicious at gmail.com
Thu Jun 21 22:35:24 CEST 2012


Hey All!

I'm trying to step through code using gdb and uboot. I have an iMX35 board
that I've connected to via JTAG. I load up the uboot code and set a
breakpoint at board_init but it gives me a really strange error. Can anyone
make sense of it?

(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000000 in ?? ()
(gdb) restore /home/brandon/Desktop/u-boot.bin binary 0x87F00000
Restoring binary file /home/brandon/Desktop/u-boot.bin into memory
(0x87f00000 to 0x87f2d730)
(gdb) set $pc = 0x87F00000
(gdb) symbol-file = /home/brandon/Desktop/u-boot
=: No such file or directory.
(gdb) symbol-file /home/brandon/Desktop/u-boot
Reading symbols from /home/brandon/Desktop/u-boot...done.
(gdb) b board_init
Breakpoint 1 at 0x87f00fb0: file mx35_custom.c, line 146.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x87f00fb0: Unknown error
18446744073709551615.

(gdb)

Thanks in advance!

-Brandon


More information about the U-Boot mailing list