在Mini2440开发板上,怎么用kgdb调试Linux 2.6.32内核?
我查阅了kgdb的资料,不能实现kgdb调试。
硬件:Mini2440, 128MB nand flash.
软件:linux 2.6.32.2, U-Boot 2010.03 modified by tekkamanninja (tekkamanninja@163.com),
编译内核里选上:
- Kernel debugging
- Compile the kernel with debug info
- KGDB: kernel debugging with remote gdb --->
<*> KGDB: use kgdb over the serial console
U-boot里引导命令行:
bootcmd=nfs 0x30008000 192.168.0.26:/home/wenxy/src/mini_2440/linux-2.6.32.2/arch/arm/boot/u-boot_zImage.img;bootm
bootargs=noinitrd root=/dev/nfs rw nfsroot=192.168.0.26:/home/wenxy/src/mini_2440/root_qtopia ip=192.168.0.100:192.168.0.26::255.255.255.0 - console=ttySAC0,115200 kgdboc=ttySAC1,115200 kgdbwait init=/linuxrc mem=64M
通过NFS启动kenrel, rootfs,可是系统自动启动,不能停下来,即出现:kgdb: Waiting for connection from remote gdb...
特向大家求助,请有kgdb调试经验的朋友来看看,多谢。
我在友善之臂的官网论坛也发这个问题的贴子:
http://www.arm9home.net/read.php?tid-8699-keyword-%B5%F7%CA%D4%C4%DA%BA%CB.html