wiki:kgdb

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.

Development history

27.06.2011

Reduced USB-functions of device to acm only (see https://github.com/guhl/vision-2635/commit/351044f73b77f257d566ffbb0c09ea443b715ffc) to avoid conflicts between usb mass storage, adb and acm on the usb-device. The outcome is that the device is now detected by cdc_acm as an acm device and the device is named /dev/ttyACMx instead of /dev/ttyUSBx. But connection to the kernel still does not work. Will test this again also on a different computer because it might be that modem-manager on my notebook interferes with the acm device.

Till 25.06.2011

Ported all the patches from the original site to the vision 2.6.35 sources.

Initial commit to github see initial commit

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.

Last modified 11 years ago Last modified on 06/28/11 05:32:43

Attachments (4)

Download all attachments as: .zip