Community Forum

nacho
nacho
Offline
Resolved
0 votes
Hi.

I recently bought an USB Ethernet adapter with ASIX AX88772b chipset. (this one)
[img size=140]http://www1.dealextreme.com/productimages/productimages/sku_34691_1_small.jpg[/img]
Even though the CleaOS 5.2 didn't recognize it, I was able to compile and install the manufacturer's official driver.

This is a brief How To.

Note, compiling the drivers requires an internet connection in the ClearOS machine. Fortunately, my VIA integrated Ethernet card was recognized by default.

1- Make sure your chipset is the ASIX AX88772B. Your lsusb output with the dongle plugged in will look like this:
[root@system home]# lsusb
...
Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp.
...


2-Install the development environment:
yum groupinstall "Development Tools"


3-Install kernel-source:
yum install kernel-source


4-You may also need the kernel-headers:
yum install kernel-headers

I'm not sure if kernel-headers are installed with the development environment or not (I don remember it well).

5-Dowload the manufacturer's official driver:
[ul]
  • Direct Link
  • Megaupload Mirror
  • Future updates
  • [/ul]
    6-Extract the downloades file by the following command:
    tar -xf AX88772B_772A_760_772_178_LINUX_Driver_v4.1.0_Source.tar.bz2


    7-Compile the driver:
    make

    If the compilation is well, the asix.ko will be created under the current directory.

    8-Install the driver:
    make install


    9-Load the driver:
    modprobe asix


    10-Reboot the machine.
    reboot


    11-If after rebooting does not appear a new ethX device, unplug the USB dongle and plug it again. Next, you can configure the USB network card using WebConfig in order to generate the necessary scripts in the folder /etc/sysconfig/network-scripts/
    Saturday, August 20 2011, 03:24 PM
    Share this post:
    Responses (19)
    • Accepted Answer

      Rick
      Rick
      Offline
      Sunday, February 02 2014, 09:55 PM - #Permalink
      Resolved
      0 votes
      Hi Everyone,

      I've also tried following this guide to install the driver but I haven't had much luck. Any chance you could take a look at my mega thread and let me know if there is anything I should be trying next?

      I ran out of ideas weeks ago (but my idea of ideas might be very different to yours :P).

      Thanks!
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, October 27 2013, 10:21 AM - #Permalink
      Resolved
      0 votes
      That's good news. You now have to remember to recompile every time you update the kernel - but note that kernel updates do not take effect until you restart. You can block kernel updates by adding the following to /etc/yum.conf:
      exclude=kernel,kernel-devel,kernel-firmware,kernel-headers
      That way you don't get any nasty surprises. Just allow updates as and when you're prepared for them.
      The reply is currently minimized Show
    • Accepted Answer

      Sunday, October 27 2013, 09:36 AM - #Permalink
      Resolved
      0 votes
      Nick,

      I've compiled the new driver and it works.
      After rebooting and starting udev, the light went on on the device and i've ETH2

      this is how i did it

      yum install kernel-headers-`uname -r`



      yum --enablerepo=clearos-dev install kernel-devel


      yum install gcc*


      make


      make install


      modprobe asix


      shutdown -r now


      Thanks for the great support
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 07:56 PM - #Permalink
      Resolved
      0 votes
      You can do the equivalent here. Create a file /etc/modprobe.d/anything.conf and add the line "alias eth2 asix". You will also need a file /etc/sysconfig/network-scripts/ifcfg-eth2. Clone it from ifcfg-eth0 or ifcfg-eth1, whichever is the LAN one, but change the LAN subnet.

      However ... I've just noticed you will need to compile your own driver. From message log, your USB Vendor ID is 0B95 and Device ID is 772B. This is not covered by what you see from the modinfo command.

      I am still concerned that this will not work without udev working or perhaps a /dev/usbX appearing.
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 05:53 PM - #Permalink
      Resolved
      0 votes
      ls /dev/usb*
      /dev/usbmon0 /dev/usbmon2 /dev/usbmon4 /dev/usbmon6 /dev/usbmon8
      /dev/usbmon1 /dev/usbmon3 /dev/usbmon5 /dev/usbmon7


      i know that in old versions you can edit modprobe.conf or some other file where you can add the hardware.
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 05:37 PM - #Permalink
      Resolved
      0 votes
      I don't think compiling another driver will help. The problem is getting the hotplug system to recognise a USB NIC has been plugged and then get it to take appropriate action.

      Do you have a device something like /dev/usb0?
      ls /dev/usb*
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 04:35 PM - #Permalink
      Resolved
      0 votes
      ls /etc/sysconfig/network-scripts/ifcfg*
      /etc/sysconfig/network-scripts/ifcfg-eth0
      /etc/sysconfig/network-scripts/ifcfg-eth1
      /etc/sysconfig/network-scripts/ifcfg-lo


      Could it be a driver issue, and is better install(compile) a new driver.
      Under windows it is working without a problem.
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 04:15 PM - #Permalink
      Resolved
      0 votes
      I don't know how to crack this one. You're now a bit further ahead than I got in the other thread.

      What is the output of:
      ls /etc/sysconfig/network-scripts/ifcfg*
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 03:47 PM - #Permalink
      Resolved
      0 votes
      Yes, i did.
      # USB device 0b95:772b (asix)
      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:8c:02:45:35", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"


      Also tried the reboot.
      After reboot i need do do modprobe asix, to see it with " lsmod | grep asix"

      No succes...
      The reply is currently minimized Show
    • Accepted Answer

      Saturday, October 26 2013, 03:39 PM - #Permalink
      Resolved
      0 votes
      Have you tried modifying 70-persistent-net.rules as suggested?
      The reply is currently minimized Show
    Your Reply