jidong xiao wrote: > On Tue, Jan 5, 2010 at 8:39 PM, Jason Wessel <[email protected]> > wrote: > >> jidong xiao wrote: >> >>> Hi, >>> >>> I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my >>> kernel, I found no kgdb code had been executed, as I understand, the >>> kernel should stay at some point and wait for response from another >>> machine, but the truth is it fully booted up just like kgdb is not >>> existing. >>> >>> (my config file shows KGDB options are enabled: >>> >>> CONFIG_HAVE_ARCH_KGDB=y >>> CONFIG_KGDB=y >>> CONFIG_KGDB_SERIAL_CONSOLE=y >>> # CONFIG_KGDB_TESTS is not set >>> >>> >>> >> Unless you patch in the kgdb8250 driver, you cannot use it. If you >> build the kernel documentation you would get a directory called >> Documentation/DocBook/kgdb. In there you would find information about >> kgdboc, which is the only I/O driver merged to the mainline kernel. >> >> >>> and my grub/menu file is: >>> >>> title kernel 2.6.31.3-5-default >>> kernel (hd0,0)/vmlinuz-2.6.31.3-5-default root=/dev/sda15 >>> console=ttyS0,9600 console=tty0 kgdbwait kgdb8250=0,9600 >>> initrd (hd0,0)/initrd-2.6.31.3-5-default >>> ) >>> >>> >> You would want to use: >> >> kgdboc=ttyS0,9600 kgdbwait >> >> >> Jason. >> >> > > Oh, thank you Jason. I changed kgdb8250=0,9600 to kgdboc=ttyS0,9600 > and now everything looks ok, now I can enter into kgdb and run various > commands. > > But I have a question, if kgdboc would suffice, why do you suggest me > apply kgdb8250 patch? >
I was not suggesting that you apply any patches. I was just pointing out that you cannot use the kgdb8250 driver without patching the kernel. Cheers, Jason. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
