Re: regarding kgdb in ppc
From: sudheer <hidden>
Date: 2006-12-27 14:18:47
Possibly related (same subject, not in this thread)
- 2006-11-30 · Re: regarding kgdb in ppc · Anumolu Sudheer <hidden>
- 2006-11-28 · regarding kgdb in ppc · Anumolu Sudheer <hidden>
Hello All
I am able to debug the kernel on x86 systems. Thanks for all the support. Now I am working with kgdb on mpc8540 board. target kernel version - linux-2.6.13 KGDB version - linux-2.6.13-kgdb-2.3 I am getting the following error: root@localhost sudheer]# /opt/eldk-3.1.1/usr/bin/ppc_85xx-gdb vmlinux GNU gdb Red Hat Linux (6.3.0.0-1.21_1rh) ... This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"... (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 Ignoring packet error, continuing... On the target side, i could see that the target kernel kgdb waiting for host communication. On the target board with kernel version - linux-2.6.13 , I could boot it only after applying the patches: 1. Gain_Phy_update 2.patch-2.6.14-rc5 3.Phy_Platform_Update The patch-2.6.14-rc5 when applied , deleted the file arch/ppc/platforms/pcore.c and pcore.h but the kernel boots well. In the KGDB version - linux-2.6.13-kgdb-2.3 The ppc-lite.patch tries to modify the pcore.c which is not available. I am not sure wether this affects the serial communication establishment. Please help me to solve this.
I am using the document kgdb_docu_full_2.4.pdf from http://kgdb.linsyssoft.com/docu.htm. I have two issues before i look for serial communication establishment b'n host and target. 1. In the document it is said that one serial port is enough on the the host and test machine. But in the below steps mentioned, the document uses 2 serial ports. I have only one serial port on either side, one on host and other on target board. Can someone please clarify this. Details are below: In the document it is mentioned under the section "Prepare the kernel ", step 3 : [*] Simple selection of KGDB serial port (115200) Debug serial port baud rate (0) Serial port number for KGDB step:6 kernel /boot/vmlinuz-2.6.13-kgdb ro root=/dev/hda1 kgdbwait kgdb8250=1,115200 In section: "Connecting to Debug Kernel" step :1 $ stty ispeed 115200 ospeed 115200 < /dev/ttyS1 step:4 Connect to the test machine using gdb command "target" (gdb) target remote /dev/ttyS0 2. And the other issue is: When i select ttyS0 for kgdb , test kernel hangs before kgdb starts. - - - - - - - - - . . TCP: Hash tables configured (established 16384 bind 16384) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 - - - - - - - - - when is select ttyS1 for kgdb, test kernel boots upto kgdb and then kgdb waits for remote connection. Please help me in solving this. Thanks Sudheer