Hi All,<br><br>I am making a setup for kernel debugging over Null modem serial cable , i am trying to make it work on x86 arch machine.I have a straight serial DB9 cable(Having both female ports) which i converted into NULL MODEM CABLE bye doing below rework:<br>
<br><b><span style="font-family:monospace">Pin of port #1....goes to....Pin of port #2 <br>2 RxD <-------------> TxD 3<br>3 TxD <-------------> RxD 2<br>5 GND <-------------> GND 5<br>
<br>Please check pin connections ones and let me know if i am doing wrong.<br><br>I have connected NULL MODEM serial (both female port) cable between two machines via USB to serial coverter cable.I have check the connection between two machine through MINICOM and its works fine.Till this point i didnt face any issue , now lets come to the next point.</span><span style="font-family:monospace"><br>
<br><br></span></b><br>1) Download stable kernel 3.4.9 (kernel having inbuilt KGDB support)<br><br>2) run make menuconfig command and did the below changes to enable KGDB<br> <br> a) CONFIG_HAVE_ARCH_KGDB=y
<br> b) CONFIG_KGDB=y
<br> c) CONFIG_KGDB_SERIAL_CONSOLE=y<b><br><br></b>3) compiled the kernel image successfully <b><br><br></b>4) make modules<br><br>5) make modules_install<br><br>6) make install<br><br>7) update grub<br><br>
Below is the grub update detail from grub.cfg file in which i have added following rule for the kernel to wait for the GDB connection establish : <br><b>kgdbwait kgdb8250=ttyUSB0,115200,kgdboc=ttyUSB0,115200</b><br> <br>
menuentry 'Ubuntu, with Linux 3.4.9' --class ubuntu --class gnu-linux --class gnu --class os {<br> recordfail<br> set gfxpayload=$linux_gfx_mode<br> insmod part_msdos<br> insmod ext2<br> set root='(/dev/sda,msdos1)'<br>
search --no-floppy --fs-uuid --set=root 6ef7b91e-7416-4908-97ba-bfb212081a68<br> linux /boot/vmlinuz-3.4.9 root=/dev/sda1 ro quiet splash vt.handoff=7 <b>kgdbwait kgdb8250=ttyUSB0,115200,kgdboc=ttyUSB0,115200</b><br>
}<br><br>Booted my machine with the above kernel but i am getting kernel panic not the below message which we expected to get<br><br>waiting for gdb connection ........<br><br>Please suggest me the right procedure for make this set up work , i am very new to Linux.<br>
<br>Thanks in advance<br><br>Thanks<br>Vivek<br><b></b><pre> <br></pre><br>