[RFC][PATCH 0/2] x86_64 Early usb debug port support.




With legacy free systems serial ports have stopped being an option
to get early boot traces and other debug information out of a machine.

EHCI USB controllers provide a relatively simple debug interface
that can control port 1 of the root hub. This interface is limited
to 8 byte packets so it can be used with most USB devices. But with
a USB debug device this is sufficient to talk to another machine.

When the special feature of the EHCI is not enabled the port
1 of the root hub acts just like any other USB port so machines
with the necessary support are widely available.

This debug device can be used to replace serial ports for
kgdb, kdb, and console support. And gregkh has a simple usb
serial driver for it so user space applications that control
serial ports should work unmodified.

Currently there only appears to be one manufacturer of debug
devices see:
http://www.plxtech.com/products/NET2000/NET20DC/default.asp

I think simple RS232 serial ports provide a nicer and simpler
interface but the usb debug port looks like a functional alternative
when you don't have that.

My code likely doesn't handle all of the corner cases yet, and needs
a little more work to integrate cleanly into the build. But this
is getting it out there so other people can look and help make clean
drivers. When writing a polling driver you do have to be careful
with your logic, because if you do things like reset a usb device at
the wrong time you can completely confuse various EHCI controllers.

My driver should be sufficient to work with any EHCI in a realatively
clean state, and needs no special BIOS support just the hardware.
This appears to be different than the way the windows drivers are
using these debug devices.

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH 09/12] i386/x86_64: EHCI usb debug port early printk support.
    ... With legacy free systems serial ports have stopped being an option ... to get early boot traces and other debug information out of a machine. ... EHCI USB controllers provide a relatively simple debug interface ... When the special feature of the EHCI is not enabled the port ...
    (Linux-Kernel)
  • Re: [PATCH 09/12] i386/x86_64: EHCI usb debug port early printk support.
    ... I hope I can eventually merge early firewire support code too. ... With legacy free systems serial ports have stopped being an option ... to get early boot traces and other debug information out of a machine. ... And gregkh has a simple usb ...
    (Linux-Kernel)
  • Re: Using USB instead of RS232 on embeded project
    ... >finding a laptop with two serial ports if that's what you need. ... PCMCIA or USB to RS232 exist and have existed for some time. ... >commercial and industrial applications, not hobbyist setups or VAR systems.) ... either due to burst communications or random connections ...
    (comp.arch.embedded)
  • Re: MSComm and USB to RS485 Converters (head hurting now, must have martini)
    ... a .dll that we then use in various test engineering applications ... RS232 to RS485 converters work fine but I am out of serial ports ... Make sure the USB device gets mapped in as a comport and operating ... To me it seems like a shot into their own foot because it stifles Excel VBA apps and thus Excel sales. ...
    (sci.electronics.design)
  • Re: USB Client Driver loading in WCE 5.0
    ... I am also working on similar kind of USB to Ethernet adaptor. ... I am working on OMAP3530 platform with Windows CE 6.0 in debug version. ... Also show us debug messages, without it we can't say much. ... I am working on integrating a 3rd party USB Client driver integration ...
    (microsoft.public.windowsce.platbuilder)