<br><br><div class="gmail_quote">Hi all,<br><br>I need help in kgdboc testing on PowerPC target.<br><br>Linux Kernel: 2.6.30-rc4<br>KGDB method :<b style="background-color: rgb(255, 255, 153);"> KGDBOC</b><br>Arch: PowerPC<br>
<br><span style="background-color: rgb(192, 192, 192); color: rgb(0, 0, 0);">Note: Attached is the kernel config used.</span><br>
<br>Has anyone tested KGDBOC for Serial 8250, and the serial port has dependency on OF_PLATFORM driver ?<br><br>Here are the kernel config options:<br><br><span style="color: rgb(0, 0, 153);">Device Drivers ---></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> Character devices ---> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> Serial drivers ---> </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <b><*> 8250/16550 and compatible serial support </b></span><br style="color: rgb(0, 0, 153);"><b><span style="color: rgb(0, 0, 153);"> [*] Console on 8250/16550 and compatible serial port</span></b><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> (4) Number of 8250/16550 serial ports to register at runtime </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> [ ] Extended 8250/16550 serial driver options </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> *** Non-8250 serial port support *** </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <*> Xilinx uartlite serial port support </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> [*] Support for console on Xilinx uartlite serial port </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> < > Digi International NEO PCI Support </span><br style="color: rgb(0, 0, 153);">
<b><span style="color: rgb(0, 0, 153);"> <span style="background-color: rgb(192, 192, 192);"><*> Serial port on Open Firmware platform bus </span> </span></b><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(51, 102, 255);"><span style="color: rgb(0, 0, 153);"> < > NWP serial port driver </span> </span> <br><br><span style="color: rgb(0, 0, 153);">Kernel hacking ---> </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> -*- Magic SysRq key </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> <b>[*] Kernel debugging </b></span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <b> [*] KGDB: kernel debugging with remote gdb ---> </b></span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> --- KGDB: kernel debugging with remote gdb </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> <b style="background-color: rgb(192, 192, 192);"><*> KGDB: use kgdb over the serial console </b></span><br> <br><br>----------------------------------------------<br>
In the process : <br><br> <span style="color: rgb(153, 153, 153);"> <span style="color: rgb(0, 0, 0); background-color: rgb(192, 192, 192);"> On the target side :</span></span><br style="color: rgb(153, 153, 153);"><br>
............... <br>
<span style="color: rgb(153, 0, 0);"> Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled </span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> 83e00000.serial: ttyS0 at MMIO 0x83e01003 (irq = 16) is a 16550A </span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> console [ttyS0] enabled </span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> kgdb: Registered I/O driver kgdboc. </span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> .................</span><br style="color: rgb(153, 0, 0);">
<br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> root@10.161.2.35:~# <b>echo g > /proc/sysrq-trigger</b></span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> <b> SysRq : GDB</b></span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> <b>Entering KGDB</b></span><br><br><br><span style="color: rgb(0, 0, 0);"> </span><span style="background-color: rgb(192, 192, 192); color: rgb(0, 0, 0);">On host side :</span><br>
<br> <span style="color: rgb(153, 0, 0);"> [root@srikant linux-2.6]# powerpc-linux-gnu-gdb vmlinux-puru</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> GNU gdb G++ 4.3-150) 6.8.50.20081022-cvs</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> Copyright (C) 2008 Free Software Foundation, Inc.</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>></span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> This is free software: you are free to change and redistribute it.</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> There is NO WARRANTY, to the extent permitted by law. Type "show copying"</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> and "show warranty" for details.</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux-gnu".</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> For bug reporting instructions, please see:</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> <b>(gdb) set remotebaud 9600</b></span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> <b>(gdb) target remote /dev/ttyS0</b></span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> Remote debugging using /dev/ttyS0</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> warning: unrecognized item "timeout" in "qSupported" response</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);">
<span style="color: rgb(153, 0, 0);"> Ignoring packet error, continuing...</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);"> Malformed response to offset query, timeout</span><br>
<br>Can anybody comment on the steps followed in the process of testing or something is missing with respect to <span style="background-color: rgb(192, 192, 192);">of_serial.c</span> for powerpc architecture.<br>Seems the target has never responded for gdb requests !!!<br clear="all">
<br><br>Regards<br><font color="#888888"><span style="background-color: rgb(204, 204, 204);">Srikanth </span>
</font></div><br><br clear="all"><br><br>