LK is a new bootloader for Android, and the LK bootloader was introduced in QCT Eclair release.
Below is the step for debugging the LK bootloader with source level.
- In file /LINUX/android/bootable/bootloader/lk/arch/arm/crt0.S, make a modification as below:
_start:
b _start /*Add this line to make bootloader loop here forever*/
b reset - Use ARM11 or Scorpion JTAG, attach to target
- Download debug symbol to target by using following command
d.load.elf V:/LINUX/android/out/target/product/qsd8250_surf/obj/BOOTLOADER_OBJ/build-qsd8250_surf/lk /nocode - After setting desired breakpoint which you are interesting, set the Program Counter (PC) after the b start
(i.e., b reset) to start debugging LK bootloader. - Please upgrade the T32 software's date up to Dec.04.2009 or later to enable source level debugging.
No comments:
Post a Comment