tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Merging ugen into the usb stack



On Thu, 8 Feb 2018, Martin Husemann wrote:
On Thu, Feb 08, 2018 at 05:22:18PM +0100, Wolfgang Solfrank wrote:
Hi,

with the attached diffs I'm able to attach my debug board like this:

ugen0 at uhub5 port 1 configuration 1 interface 0
ugen0: OpenMoko (0x1457) Debug Board for Neo1973 (0x5118), rev 2.00/5.00, addr 3
uftdi0 at uhub5 port 1 configuration 1 interface 1
uftdi0: OpenMoko (0x1457) Debug Board for Neo1973 (0x5118), rev 2.00/5.00, addr 3
ucom0 at uftdi0 portno 2

Very cool!

Seems to work for me as well:

root file system type: ffs
kern.module.path=/stand/i386/8.99.12/modules
ugen0 at uhub0 port 1 configuration 1 interface 0
ugen0: FTDI (0x9e88) SheevaPlug JTAGKey FT2232D B (0x9e8f), rev 2.00/5.00, addr 2
uftdi0 at uhub0 port 1 configuration 1 interface 1
uftdi0: FTDI (0x9e88) SheevaPlug JTAGKey FT2232D B (0x9e8f), rev 2.00/5.00, addr 2
ucom1 at uftdi0 portno 2
uhub5 at uhub2 port 2: vendor 0451 (0x451) product 1446 (0x1446), class 9/0, rev 1.10/1.10, addr 3
uhub5: 4 ports with 4 removable, self powered
uplcom1 at uhub5 port 1
uplcom1: Prolific Technology Inc. (0x67b) USB-Serial Controller (0x2303), rev 1.10/3.00, addr 4
ucom2 at uplcom1
uftdi1 at uhub5 port 3 configuration 1 interface 0
uftdi1: FTDI (0x403) TTL232R-3V3 (0x6001), rev 2.00/6.00, addr 5
ucom3 at uftdi1 portno 1
uftdi2 at uhub5 port 4 configuration 1 interface 0
uftdi2: FTDI (0x403) TTL232R-3V3 (0x6001), rev 2.00/6.00, addr 6
...


I like the aproach, we could even add a few uftdi specific instances of
this ugen variant to GENERIC (or usbdevices.config).

Can we get this commited? Anyone objecting?

It doesn't solve the generic (no pun intended) problem of raw ugen access to arbitrary other devices, e.g. for use by USB over IP
http://usbip.sourceforge.net/

Of course, a better approach may be to add detach kernel driver functionality:
http://libusb.sourceforge.net/api-1.0/group__dev.html#ga21bd343325f558987ca57e4e281a6d47

--
Stephen



Home | Main Index | Thread Index | Old Index