On 10/2/2014 4:15 AM, joaoandrefe...@sapo.pt wrote: > Citando Frank Rowand <frowand.l...@gmail.com>: > >> On 10/1/2014 3:57 AM, joaoandrefe...@sapo.pt wrote: >>> Hello all, >>> >>> I'm trying to use KGDB on a target machine + GDB on the host, >>> connected via ethernet. Regarding KGDB, I'm having problems >>> because I can't boot the target machine into KGDB. When I boot >>> it, it boots normally, i. e. it ends up entering the OS. What >>> have I done so far: >>> >>> I have downloaded kernel 2.6.32.4 from www.kernel.org and >>> prepared the compilation with menuconfig, enabling the KGDB >>> otions. After that, I've compiled the kernel using the "sudo make >>> && sudo make modules && sudo make modules_install && sudo make >>> install" commands. After that, If I boot the newly-compiled >>> kernel, KGDB won't start, i. e., the kernel boots till the end as >>> usual, and enters the OS, so I don't see the expected "Waiting >>> for connection from remote gdb..." message. >>> >>> 1. My KGDB .config debugging symbols: >>> >>> [...] CONFIG_HAVE_ARCH_KGDB=y CONFIG_KGDB=y >>> CONFIG_KGDB_SERIAL_CONSOLE=y CONFIG_KGDB_TESTS=y # >>> CONFIG_KGDB_TESTS_ON_BOOT is not set [...] >>> >>> 2. My grub.conf (remember I'm planning to use an ethernet >>> connection): >>> >>> [...] title CentOS (2.6.32.4) root (hd0,0) kernel >>> /vmlinuz-2.6.32.4 ro root=/dev/mapper/vg_centos6-lv_root >>> rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_centos6/lv_swap >>> rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc >>> KEYTABLE=pt-latin1 rd_LVM_LV=vg_centos6/lv_root rd_NO_DM rhgb >>> quiet crashkernel=auto kgdbwait kgdbcon >>> kgdboe=@10.3.3.149/,@10.3.3.32 initrd /initramfs-2.6.32.4.img >>> [...] >>> >>> Anybody has a hint on why can't I make KGDB to get working? If >>> someone can help me, I'd deeply grateful. >> >> Do you have kgdboe support in your kernel source? I'm guessing >> not. >> >> -Frank > > Hello again, Frank, > > The problem here was before using kgdboe. It had to do with compiling > the kernel. Yesterday, I've tried the "CentOS way" (instructions > here: http://www.howtoforge.com/kernel_compilation_centos), and > finally KGDB is booting. Regarding kgdboe, I thought this kernel > supported it, but currently I can't confirm or dismiss that. Do you > know if there is an easy way to clarify if my kernel supports kgdboe?
Search for the string "kgdboe" in the kernel source tree. > Meanwhile, I'm also trying to connect through serial port. Just to head off the next question, if your target board has only one serial port, you will want to use an agent-proxy, such as "kdmx" or "agent-proxy". See http://elinux.org/Kgdb for info on where to get those. -Frank ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport