Hi,
I am trying to get kgdb and kdb to work on DB410c, but I am having
problems with the serial driver. I have compiled with these options:
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
CONFIG_KGDB_KDB=y
CONFIG_KDB_DEFAULT_ENABLE=0x1
I am using the kernel from
git.linaro.org/landing-teams/working/qualcomm/kernel.git, branch
release/qcomlt-4.9.
So, I enable kdb/kgdb on the serial console like so:
echo ttyMSM0 > /sys/module/kgdboc/parameters/kgdboc
echo g > /proc/sysrq-trigger
Then it enters kdb mode, and things start to go wrong. For example,
keystrokes are sometimes ignored, and then repeated 20 or 30 times after
a few other keystrokes. When trying to connect to kgdb over a serial
line (after quitting from the terminal emulator on the console, of
course) I don't get any connection.
I have a feeling that it is a problem with the implementation of
poll_get_char and poll_put_char in the serial driver. Has anyone seen
this type of behaviour? Any ideas on how to fix?
Regards,
Chris Simmonds