Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ASIX USB to Ethernet
2014-09-08, 17:31 (This post was last modified: 2014-09-08 17:49 by jwillis84.)
Post: #28
RE: ASIX USB to Ethernet
Code:
Bus 001 Device 003: ID 17ef:7203 Lenovo

[273388.525211] usb 1-7: New USB device found, idVendor=17ef, idProduct=7203

Currently the driver will not recognize your device and load.

The line above says your device id should be:

USB_ROM(0x17ef, 0x7203, "asix", "Lenovo U2L 100-Y1", 0),

In the ipxe/src/drivers/usb/net/usb/asix.c source code file.

The USB_ROM strings are used to "recognize" a device that is connected to the USB host controller.

Basically ipxe "starts" the host controller, then probes for what is attached, it gets id strings back from the connected devices and checks its inventory of drivers, of which the asix.c driver is "one". When it finds a match, it loads that driver and uses it to "start" the device and produces an ethernet interface in ipxe kernel space, which the normal network drivers then see and try to perform dhcp to initialize.. and the rest "as they say" is history.. things just work.

I'll add the string to the source code this evening and push it to git hub.

Your feedback was valuable, and extends the reach of this driver to provide service for other users that have a device like yours.

Its also interesting in that your device is a 1000 Mbps device [ AX88772 ] or 1 Gig Ethernet adapter, where I have only tested with an [ AX 88178 ] which is a 100 Mbps device.

Currently the USB stack for ipxe was designed with 100 Mbps in mind. Since it is based on the Linux USB stack it should only run at USB 2.0 speeds. In theory this should not be a problem, but in practice "anything" could happen. So your results will be very interesting.

iPXE generally is a bootstrapper.. meaning it downloads only a few hundered MBytes before starting another kernel and disk image with more sophisticated USB device drivers.. so speed isn't a major concern.

I am looking into a USB3.0 host controller driver and was going to look into verifying AX88772 support in the near future, but ther are so many branching directions in which I could focus my efforts, pursuing all of them at the same time.. just isn't practical.

USB2.0 host controllers were based on the EHCI device with companion controllers, UHCI and OHCI and pretty much worked transparently as UHCI or OHCI if there wasn't an EHCI driver available.

USB3.0 host controllers got a complete redesign when that spec came out, and Linux rewrote the USB stack it provided to support the higher speeds. The XHCI device was an attempt to cleanup and simplify the device driver requirements, but it appears the vendors successfully (to them) made each implementation of XHCI unique to the vendors that more than one XHCI device driver will be necessary.

Exasperating...

I tend to agree that more USB2.0 device drivers are far more important at this instance in time, but reality is more XHCI host controllers will be appearing on laptop and desktop motherboards in the near future.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ASIX USB to Ethernet - no1_melman - 2012-10-15, 15:09
RE: ASIX USB to Ethernet - no1_melman - 2012-10-15, 15:38
RE: ASIX USB to Ethernet - no1_melman - 2012-10-15, 16:18
RE: ASIX USB to Ethernet - Sedorox - 2012-10-17, 03:31
RE: ASIX USB to Ethernet - qiet72 - 2013-01-07, 13:21
RE: ASIX USB to Ethernet - jwillis84 - 2013-06-04, 08:09
RE: ASIX USB to Ethernet - jwillis84 - 2013-06-04, 23:08
RE: ASIX USB to Ethernet - jpwise - 2014-06-24, 10:17
RE: ASIX USB to Ethernet - jwillis84 - 2014-06-24, 13:39
RE: ASIX USB to Ethernet - kfortner - 2014-07-23, 17:29
RE: ASIX USB to Ethernet - jwillis84 - 2014-07-24, 06:01
RE: ASIX USB to Ethernet - jwillis84 - 2014-07-29, 01:44
RE: ASIX USB to Ethernet - Mareo - 2014-08-01, 14:57
RE: ASIX USB to Ethernet - jwillis84 - 2014-08-11, 08:53
RE: ASIX USB to Ethernet - jwillis84 - 2014-08-12, 07:55
RE: ASIX USB to Ethernet - jwillis84 - 2014-08-13, 07:36
RE: ASIX USB to Ethernet - tohtoris - 2014-08-19, 20:09
RE: ASIX USB to Ethernet - jwillis84 - 2014-08-26, 05:22
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-02, 08:28
RE: ASIX USB to Ethernet - tohtoris - 2014-09-08, 13:39
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-08 17:31
RE: ASIX USB to Ethernet - tohtoris - 2014-09-09, 06:36
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-09, 07:09
RE: ASIX USB to Ethernet - hefty - 2014-09-08, 03:14
RE: ASIX USB to Ethernet - kfortner - 2014-09-11, 22:14
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-12, 04:08
RE: ASIX USB to Ethernet - kfortner - 2014-09-12, 15:55
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-12, 21:42
RE: ASIX USB to Ethernet - kfortner - 2014-09-15, 15:16
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-16, 02:45
RE: ASIX USB to Ethernet - mithro - 2014-09-23, 04:54
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-23, 06:16
RE: ASIX USB to Ethernet - jwillis84 - 2014-09-26, 04:03
RE: ASIX USB to Ethernet - danellis - 2014-11-05, 22:10
RE: ASIX USB to Ethernet - ddmorgan - 2014-12-11, 09:15



User(s) browsing this thread: 1 Guest(s)