Re: [Kgdb-bugreport] Use kgdb over a console terminal server?
Status: Beta
Brought to you by:
jwessel
From: Jay L. <jl...@sg...> - 2008-06-19 01:21:25
|
Jay Lan wrote: > Jason Wessel wrote: >> Jay Lan wrote: >>> Hi Jason, >>> >>> I have a machine with its ttyS0 connected to a console terminal server. >>> To access the console of my machine, i telnet to the TS with a specific >>> port. >>> >>> I think i would need to use kgdboc in this setup? How should i specify >>> the kdboc parameters in the boot command line? >>> >>> Thanks and regards, >>> - jay >>> >>> >>> >> It is no different than if you had the board directly connected. >> >> Assuming your terminal server is connected at 115200 baud it looks like: >> >> kgdboc=ttyS0,115200 > > The system hangs on boot. I have these in the boot line: > console=ttyS0,38400n8 kgdboc=ttyS0,38400 Hi Jason, Please disregard the above comment. The kernel was hung in running init, not during booting the kernel. I need to find what caused this problem in this particular system setup. Now, i put in kgdbwait in the boot command line and the kernel stopped and wait for gdb to connect. The documentation says to use the following for connecting a terminal server: (gdb) target remote udp:192.168.2.2:6443 I replaced the ip with the ip of my terminal server, and the port number with the port number when i connect to the console of the target system. Still no connection! Does the system i run gdb on have to be on the same subnet as the target system? Hmm, i will find another system to test tomorrow... Thanks for your explanation, Jason! Regards, - jay > > It seems that above caused the system hung? > > Thanks and regards, > - jay > >> If you are using something the likes of a linux telnet client to connect >> you would break into kgdb with: >> >> ## Press control and the right bracket to escape into telnet >> <Control-]> >> ## Now type in send break at the telnet prompt >> send break >> ## Now press the g key >> g >> >> That will send sysrq and at that point you disconnect the telnet client >> and connect gdb in its place. >> >> Jason. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Kgdb-bugreport mailing list > Kgd...@li... > https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport |