LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-23-2010, 11:47 AM   #1
sankarp
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Debugging over serial console


I am trying to debug the target linux machine over the serial port. These were the steps that I followed.

- connected the machines with serial cable
- Built the kernel with frame pointers
- copied the vmlinux file to the source machine
- Added the boot parameters "kgdbwait kgdboc=ttyS0, 115200"

After booting the remote machine it waits for remote connection. But the source machine is not able to reach the target machine.

>gdb vmlinux
(gdb) shell echo -e "\003" > /dev/ttyS0
(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout

What is the problem here ? Am i missing any configuration ? Any help here would be really helpful.
 
Old 12-17-2010, 06:58 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
3 months & no replies.

Did you solve your problem?
  • If so, please provide your solution -- it might help someone else w/ the same problem.
  • If not, would you like some help w/ re-phrasing your question, or providing more info.?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
serial console +plx tech console server card pankajd Linux - Hardware 1 10-14-2009 01:45 PM
2.6.x kernel debugging over ethernet (without serial connection) and reboot anitemp Linux - Kernel 2 02-25-2009 07:23 PM
serial console pvpnguyen Red Hat 1 11-17-2007 01:42 PM
remote kernel debugging over a serial line swaroop Linux - Software 0 03-24-2005 12:58 AM
questions on use of serial port when debugging kernel by vmware+kgdb sunzen.w Linux - Software 0 08-05-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration