Problem With Asix USB NIC (AX88772B) Module

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Problem With Asix USB NIC (AX88772B) Module

Postby brando56894 » Thu Sep 26, 2013 10:53 pm

The included module for my Asix-based USB NIC spits out asix_rx_fixup() bad header length constantly when there is a lot of traffic over it. I googled it and this seems to be a common problem, but I haven't found anything from this year. A post that I saw recommended compiling the newest module from here. So I downloaded the kernel headers to my Pi and proceeded to compile the module, which compiled successfully (except for warnings about things may not be correct since the time was different since there isn't a RTC on my Pi). I then ran make install and rebooted. Upon completion I found that my usb interface was no longer loaded since the module fails with eth%d: failed to bind interface: error -19. I know I compiled the correct module for my device, anyone else have any suggestions?

Code: Select all
 [root@cerberus ~]# lsusb
Bus 001 Device 005: ID 0b95:772b ASIX Electronics Corp. AX88772B



Also I just found all this in dmesg using the stock asix module
Code: Select all
 [root@cerberus ~]# dmesg|grep -i asix
[    3.759668] usb 1-1.3: Manufacturer: ASIX Elec. Corp.
[    5.222822] asix: Unknown symbol mdiobus_alloc_size (err 0)
[    5.222964] asix: Unknown symbol phy_ethtool_sset (err 0)
[    5.222990] asix: Unknown symbol phy_mii_ioctl (err 0)
[    5.223037] asix: Unknown symbol phy_connect (err 0)
[    5.223162] asix: Unknown symbol genphy_resume (err 0)
[    5.223196] asix: Unknown symbol mdiobus_register (err 0)
[    5.223319] asix: Unknown symbol mdiobus_free (err 0)
[    5.223362] asix: Unknown symbol phy_start (err 0)
[    5.223400] asix: Unknown symbol phy_print_status (err 0)
[    5.223421] asix: Unknown symbol phy_start_aneg (err 0)
[    5.223451] asix: Unknown symbol mdiobus_unregister (err 0)
[    5.223488] asix: Unknown symbol phy_ethtool_gset (err 0)
[    5.223562] asix: Unknown symbol phy_stop (err 0)
[    5.223589] asix: Unknown symbol phy_disconnect (err 0)
[    5.290087] asix: Unknown symbol mdiobus_alloc_size (err 0)
[    5.290229] asix: Unknown symbol phy_ethtool_sset (err 0)
[    5.290256] asix: Unknown symbol phy_mii_ioctl (err 0)
[    5.290303] asix: Unknown symbol phy_connect (err 0)
[    5.290429] asix: Unknown symbol genphy_resume (err 0)
[    5.290464] asix: Unknown symbol mdiobus_register (err 0)
[    5.290589] asix: Unknown symbol mdiobus_free (err 0)
[    5.290631] asix: Unknown symbol phy_start (err 0)
[    5.290737] asix: Unknown symbol phy_print_status (err 0)
[    5.290767] asix: Unknown symbol phy_start_aneg (err 0)
[    5.290807] asix: Unknown symbol mdiobus_unregister (err 0)
[    5.290847] asix: Unknown symbol phy_ethtool_gset (err 0)
[    5.290925] asix: Unknown symbol phy_stop (err 0)
[    5.290953] asix: Unknown symbol phy_disconnect (err 0)
[    5.481326] asix: Unknown symbol mdiobus_alloc_size (err 0)
[    5.481470] asix: Unknown symbol phy_ethtool_sset (err 0)
[    5.481499] asix: Unknown symbol phy_mii_ioctl (err 0)
[    5.481547] asix: Unknown symbol phy_connect (err 0)
[    5.481673] asix: Unknown symbol genphy_resume (err 0)
[    5.481710] asix: Unknown symbol mdiobus_register (err 0)
[    5.481835] asix: Unknown symbol mdiobus_free (err 0)
[    5.481879] asix: Unknown symbol phy_start (err 0)
[    5.481918] asix: Unknown symbol phy_print_status (err 0)
[    5.481943] asix: Unknown symbol phy_start_aneg (err 0)
[    5.481974] asix: Unknown symbol mdiobus_unregister (err 0)
[    5.482014] asix: Unknown symbol phy_ethtool_gset (err 0)
[    5.482090] asix: Unknown symbol phy_stop (err 0)
[    5.482119] asix: Unknown symbol phy_disconnect (err 0)
[    5.553703] asix: Unknown symbol mdiobus_alloc_size (err 0)
[    5.553864] asix: Unknown symbol phy_ethtool_sset (err 0)
[    5.553893] asix: Unknown symbol phy_mii_ioctl (err 0)
[    5.553942] asix: Unknown symbol phy_connect (err 0)
[    5.554071] asix: Unknown symbol genphy_resume (err 0)
[    5.554110] asix: Unknown symbol mdiobus_register (err 0)
[    5.554238] asix: Unknown symbol mdiobus_free (err 0)
[    5.554282] asix: Unknown symbol phy_start (err 0)
[    5.554323] asix: Unknown symbol phy_print_status (err 0)
[    5.554347] asix: Unknown symbol phy_start_aneg (err 0)
[    5.554379] asix: Unknown symbol mdiobus_unregister (err 0)
[    5.554418] asix: Unknown symbol phy_ethtool_gset (err 0)
[    5.554495] asix: Unknown symbol phy_stop (err 0)
[    5.554525] asix: Unknown symbol phy_disconnect (err 0)
[   65.808181] asix 1-1.3:1.0: eth1: register 'asix' at usb-bcm2708_usb-1.3, ASI                                                                             X AX88772 USB 2.0 Ethernet, 00:50:b6:0e:26:0e
[   65.808471] usbcore: registered new interface driver asix
[   68.637318] asix 1-1.3:1.0: eth1: link up, 100Mbps, full-duplex, lpa 0xC1E1
brando56894
 
Posts: 15
Joined: Fri Jan 13, 2012 7:24 pm

Re: Problem With Asix USB NIC (AX88772B) Module

Postby GrizzlyAdams » Mon Sep 30, 2013 12:17 am

Add / remove usb hubs between the asix and your host. USB hubs will bump the URB out of alignment, which the asix driver can't handle. Basically the usb packet buffers are misaligned because of a hub, and the asix driver assumes it can 32bit DMA the usb data to/from the network layer buffers. I've been fighting this since 2010. You can add a fallback mode to the driver yourself, but it will be a massive performance hit. For some reason patches were never accepted upstream that would resolve the issue (probably "i don't have that issue here, so it doesn't exist" on the part of the asix driver maintainer.)
GrizzlyAdams
 
Posts: 3
Joined: Wed Jul 06, 2011 4:46 am

Re: Problem With Asix USB NIC (AX88772B) Module

Postby brando56894 » Mon Sep 30, 2013 5:32 am

Thanks for the info, but I don't have a hub between the two, it's directly connected to my Pi.
brando56894
 
Posts: 15
Joined: Fri Jan 13, 2012 7:24 pm

Re: Problem With Asix USB NIC (AX88772B) Module

Postby moonman » Mon Sep 30, 2013 6:02 am

If it is a Model B the hub is built in into the Pi
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3311
Joined: Sat Jan 15, 2011 3:36 am

Re: Problem With Asix USB NIC (AX88772B) Module

Postby brando56894 » Mon Sep 30, 2013 6:37 am

Yep it's a model b.
brando56894
 
Posts: 15
Joined: Fri Jan 13, 2012 7:24 pm

Re: Problem With Asix USB NIC (AX88772B) Module

Postby brando56894 » Mon Oct 14, 2013 7:57 pm

So pretty much there's no fix for this?
brando56894
 
Posts: 15
Joined: Fri Jan 13, 2012 7:24 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests