| 1 | = KGDB kernel debugging = |
| 2 | This is work in progress and does not work yet. |
| 3 | |
| 4 | == enabling KGDB in the kernel == |
| 5 | The work is based on the work for the N1 described here [http://bootloader.wikidot.com/android:kgdb Enabling KGDB for Android] |
| 6 | |
| 7 | The kernel that i use is a fork of pershoots vision-2635 kernel (which is based on the HTC 2.6.35 sources for the ACE). My fork that already contains the patches and the .config file can be found here [https://github.com/guhl/vision-2635 vision-2635] |
| 8 | |
| 9 | == building the boot.img == |
| 10 | The boot-ps_d.img thatI use for testing is built using the following command: |
| 11 | |
| 12 | {{{ |
| 13 | ./mkbootimg --cmdline 'no_console_suspend=1 console=null kgdboc=ttyGS0 kgdbretry=10' --base 0x04000000 --kernel vision-2635/arch/arm/boot/zImage --ramdisk boot.img-ramdisk.gz -o boot-ps_d.img |
| 14 | }}} |
| 15 | |
| 16 | The necessary ramdisk boot.img-ramdisk.gz was extracted from the original Cynogenmod 7.0.3 firmware using the command: |
| 17 | |
| 18 | {{{ |
| 19 | ./split_bootimg.pl boot.img |
| 20 | }}} |