Version 3 (modified by 14 years ago) (diff) | ,
---|
KGDB kernel debugging ¶
This is work in progress and does not work yet.
enabling KGDB in the kernel ¶
The work is based on the work for the N1 described here Enabling KGDB for Android
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 vision-2635.
The original commit of the changed files can be found at https://github.com/guhl/vision-2635/commit/50da2db3c7e7272d540a6566abde864e86481777
building the boot.img ¶
The boot-ps_d.img thatI use for testing is built using the following command:
./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
The necessary ramdisk boot.img-ramdisk.gz was extracted from the original Cynogenmod 7.0.3 firmware using the command:
./split_bootimg.pl boot.img
The necessary tools can be found in the attachments.
Attachments (4)
-
split_bootimg.pl (6.2 KB) - added by 14 years ago.
4f3109ea7c68303cb698a4933dcf4977 split_bootimg.pl
-
mkbootfs (20.2 KB) - added by 14 years ago.
6611d098c2b8b7480183b26966a2b777 mkbootfs
-
mkbootimg (27.5 KB) - added by 14 years ago.
2a777aa9709d4b918e4618ba38d8f932 mkbootimg
- last_kmsg_20110714-20_39.txt (152.5 KB) - added by 14 years ago.
Download all attachments as: .zip