1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
How to compile & install Asix AX88772b NIC driver
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: How to compile & install Asix AX88772b NIC driver
#31511
How to compile & install Asix AX88772b NIC driver 2 Years, 8 Months ago  
Hi.

I recently bought an USB Ethernet adapter with ASIX AX88772b chipset. (this one)

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:
Code:

[root@system home]# lsusb
...
Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp.
...



2-Install the development environment:
Code:

yum groupinstall "Development Tools"



3-Install kernel-source:
Code:

yum install kernel-source



4-You may also need the kernel-headers:
Code:

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:

6-Extract the downloades file by the following command:
Code:

tar -xf AX88772B_772A_760_772_178_LINUX_Driver_v4.1.0_Source.tar.bz2



7-Compile the driver:
Code:

make


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

8-Install the driver:
Code:

make install



9-Load the driver:
Code:

modprobe asix



10-Reboot the machine.
Code:

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/
nacho
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/08/20 21:01 By nacho.
The administrator has disabled public write access.
 
#31513
Re: How to compile an install Asix AX88772b NIC driver 2 Years, 8 Months ago  
It looks like the kmod driver (v2.6.20) is much older than the driver you linked to (4.1.0). That is probably why Tim's did not work.

P.S. Your "Direct Link" is broken
Nick Howitt
Platinum Boarder
Posts: 5327
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/08/20 16:50 By NickH.
The administrator has disabled public write access.
 
#31529
Re: How to compile an install Asix AX88772b NIC driver 2 Years, 8 Months ago  
Nick Howitt wrote:
It looks like the kmod driver (v2.6.20) is much older than the driver you linked to (4.1.0). That is probably why Tim's did not work.

P.S. Your "Direct Link" is broken


I think this was the problem.

Main post edited. Direct Link fixed
nacho
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#56895
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
Hi,

I've the same device and want to install the drivers as mentioned above, only i'm running on 6.3.
How do i install the develop tools ans kernel-source ?

Can somebody help me with this.
Patrick
Expert Boarder
Posts: 153
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
It is nice to important, but it is more important to be nice
 
#56896
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
The development tools do not exist as such in 6.x. You can create the development environment as in this doc. This has changed from when I did it. You probably also want the kernel-hearders and not source. You may be able to install them with:
Code:

yum install kernel-headers-`uname -r`

Are you sure you're on 6.3 and not 6.4. If you have updates enabled you're probably on 6.4. If you have not done so recently, I suggest you reboot to get the latest kernel running, then install the kernel headers.

Having said all this, you probably don't need any of this as the asix module is included in 6.x. If you do a "modinfo asix" you'll see all the vendor and device ID's supported. Only compile your own if you have problems with the native module.
Nick Howitt
Platinum Boarder
Posts: 5327
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#56897
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
Hi Nick,

thanks for your quick reply.
Indead i'm running on 6.4.0 and the drives appears in the kernel.

Code:

# modinfo asix
filename:       /lib/modules/2.6.32-358.18.1.v6.i686/kernel/drivers/net/usb/asix.ko
license:        GPL
description:    ASIX AX8817X based USB 2.0 Ethernet Devices
author:         David Hollis
srcversion:     083B74E24593055C592C270
alias:          usb:v0DB0pA877d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v14EApAB11d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B95p772Ad*dc*dsc*dp*ic*isc*ip*
alias:          usb:v05ACp1402d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v050Dp5055d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v04BBp0930d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1737p0039d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2001p3C05d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v07D1p3C05d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1557p7720d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v13B1p0018d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B95p1780d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B95p7720d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v04F1p3008d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1631p6200d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1189p0893d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v07AAp0017d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v6189p182Dd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0411p006Ed*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0411p003Dd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0557p2009d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v08DDp90FFd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v07B8p420Ad*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B95p1720d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2001p1A00d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0846p1040d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v077Bp2226d*dc*dsc*dp*ic*isc*ip*
depends:        usbnet,mii
vermagic:       2.6.32-358.18.1.v6.i686 SMP mod_unload modversions 686



message.log
Code:

Oct 26 11:12:12 pdebrabander kernel: usb 1-2: new high speed USB device number 2 using ehci_hcd
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: New USB device found, idVendor=0b95, idProduct=772b
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: Product: AX88772B
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: Manufacturer: ASIX Elec. Corp.
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: SerialNumber: 000017
Oct 26 11:12:12 pdebrabander kernel: usb 1-2: configuration #1 chosen from 1 choice



Only i don't see an extra ETHx on the system.
I've tried to run it with "modprobe asix" and also with a reboot, but it is not visible.
Patrick
Expert Boarder
Posts: 153
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/10/26 10:28 By madpatrick.
The administrator has disabled public write access.
It is nice to important, but it is more important to be nice
 
#56898
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
Can you check if the module is loaded with:
Code:

lsmod | grep asix

Also what is the contents of 70-persistent-net.rules?
Nick Howitt
Platinum Boarder
Posts: 5327
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#56899
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
Code:

]# lsmod | grep asix
asix                   12189  0
usbnet                 15586  1 asix
mii                     4476  2 asix,usbnet



70-persistent-net.rules
Code:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x10de (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:64:da:c8:0a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x107c (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="90:e2:ba:31:9d:3b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Patrick
Expert Boarder
Posts: 153
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
It is nice to important, but it is more important to be nice
 
#56900
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
This is a real pain. I've hit the same issue in s 6.5beta thread and I don't know how to get round it, After you plug the device in, if you run the command "dmesg", I presume you see a load of lines at the bottom relating to the device. Is the MAC address listed there or in the /var/log/dmesg file? If not is it on the device?

Can you then try cloning one of your SUBSYSTEM lines, changing the MAC address (in lower case) to the USB NIC's MAC address and changing the NAME to eth2? Then remove and reinsert the NIC or reboot. Do you get any further?
Nick Howitt
Platinum Boarder
Posts: 5327
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#56901
Re:How to compile & install Asix AX88772b NIC driver 5 Months, 3 Weeks ago  
dmesg
Code:

usb 1-1: new high speed USB device number 5 using ehci_hcd
usb 1-1: New USB device found, idVendor=0b95, idProduct=772b
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: AX88772B
usb 1-1: Manufacturer: ASIX Elec. Corp.
usb 1-1: SerialNumber: 000017
usb 1-1: configuration #1 chosen from 1 choice



mac (on device)
Code:

00-24-8c-02-45-35



I've added to 70-persistent-net.rules

Code:

# 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"




No succes.....
Patrick
Expert Boarder
Posts: 153
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/10/26 11:45 By madpatrick.
The administrator has disabled public write access.
It is nice to important, but it is more important to be nice
 
Go to topPage: 12
  get the latest posts directly to your desktop