linux - How to get U-Boot debugging symbols -
i'm working on porting u-boot custom board we're developing, based on texas instruments am5728, , i'm having issues debugging u-boot. can load , debug u-boot spl via jtag, cannot step/reach hardware breakpoints once u-boot proper loaded via jtag after spl finishes. largely due not knowing debugging symbol table exists in u-boot binary. i've enabled debug macro in u-boot , have had no success, i'm figuring if can debug symbols, can step whatever errors i'm having.
is there way debugging symbols build process/makefile?
there's few things bear in mind here. first, spl/u-boot-spl , u-boot elf files u-boot , in case of am5728 you're going loading mlo , u-boot.img memory boot them. second thing keep in mind on u-boot relocate in memory loaded , address calculates , resumes running from. easiest way obtain value is, assuming system boots prompt:
=> bdinfo ... relocaddr = 0xfff6d000 reloc off = 0x7f76d000
these values system dependent tell both absolute address in system memory , offset add linked in address know given function resides now. u-boot.map file list among other things functions linked at. how tell debugger things depends on debugger in question. example, gdb re-load symbol-file , give new relocaddr value.
Comments
Post a Comment