5/10/2012

How to debug the LK bootloader used in Android Builds

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.

  1. 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

  2. Use ARM11 or Scorpion JTAG, attach to target
  3. 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

  4. 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.
  5. Please upgrade the T32 software's date up to Dec.04.2009 or later to enable source level debugging.

No comments:

Post a Comment