Re: [discuss] Re: kgdb for x86_64 2.6 kernels

Andi Kleen
2004-01-15T08:03:18Z

George Anzinger <george@mvista.com> writes:

>> Raw USB? Or some kind of USB to serial device?
>> Remember, USB needs interrupts to work, see the kdb patches for the
>> mess
>> that people have tried to go through to send usb data without interrupts
>> (doesn't really work...)
>
> I gave up on USB when I asked the following questions:

There is a special "USB debugport" specification available that allows
to drive USB very simply using PIO without too much set up. It should
be implemented in most chipsets by now because that other operating
system is using it.

See e.g. http://www.usb.org/developers/presentations/pres0602/john_keys.pdf

It works with a simple "debug dongle", that is identical to the
USB networking cables that are often sold cheaply.

If you want to port kgdb to use USB I would use that. USB console
would also be very useful for debugging laptops and some systems
with no USB.

-Andi