为了添加kgdb支持添加了下面的 内核编译选项(根据网上的前人配置的,应该是没错):
General setup
-> Prompt for development and/or incomplete code/drivers
Kernel hacking -->
Kernel debugging
compile the kernel with debug info
KGDG: kernel debugging with remote gdb -->
KGDB: use kgdb over the serial console
其他都是默认,好多配置选线更没有找到,不过我相信是因为内核版本的问题。