kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: kgdb debug with ttyUSB0 instead of ttyS0
Date: Wed, 26 Apr 2017 06:37:01 +0200	[thread overview]
Message-ID: <20170426043701.GB5734@kroah.com> (raw)
In-Reply-To: <20170425211138.GA3230@ripley>

On Tue, Apr 25, 2017 at 11:11:38PM +0200, Oliver Graute wrote:
> Hello list,
> 
> i'am using a null modem cable with two usb to serial converts on both
> ends between my develop and my target machine. The connection is fine.
> On both machines the serial interface is /dev/ttyUSB0 for this connection.
> 
> On the target machine I try to enable kgdboc
> 
> echo ttyUSB0 > /sys/module/kgdboc/parameters/kgdboc
> 
> but only got:
> 
> echo write error: No such device
> 
> if I try:
> 
> echo ttyS0 > /sys/module/kgdboc/parameters/kgdboc
> 
> is not complaining. Some ideas why ttyUSB0 can't be used with kgdb?

USB needs interrupts in order to run properly, which kgdb doesn't enable
when you stop the target, for obvious reasons :)

Stick to a "real" serial connection and you should be fine.

good luck!

greg k-h

  parent reply	other threads:[~2017-04-26  4:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 21:11 kgdb debug with ttyUSB0 instead of ttyS0 Oliver Graute
2017-04-25 22:02 ` Mandeep Sandhu
2017-04-26  4:37 ` Greg KH [this message]
2017-04-26 11:23   ` Oliver Graute
2017-04-26 12:49     ` Greg KH
2017-04-26 21:11       ` Joe Smith
2017-04-29 11:51       ` Oliver Graute

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170426043701.GB5734@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).