ax88179_178a.c fixed for proxmox (e.g. use with FreeBSD / opnsense)

PSteinberg

Member
Nov 28, 2019
14
8
23
40
by P.Steinberg

WHY I DID THIS: Because in opnsense / FreeBSD Passthrough of USB3 ax88179_178a was a pain. Either only 100Mbit or not working at all. Figured out it must be a driver problem in PVE in connection with FreeBSD.

THIS MOD works like the old driver in any Linux , but now also very nice as a Linux Bridge in FreeBSD or for my case opnsense 19.x

Everything needs to be done in the PVE Shell

I) Download and unpack driver and delete not working ax88179_178a.c file

cd ~ mkdir download cd download wget https://www.asix.com.tw/FrootAttach/driver/AX88179_178A_LINUX_DRIVER_v1.19.0_SOURCE.tar.bz2 tar -xvjf AX88179_178A_LINUX_DRIVER_v1.19.0_SOURCE.tar.bz2 cd AX88179_178A_LINUX_DRIVER_v1.19.0_SOURCE rm ax88179_8178a.c

II) make new working ax88179_178a file
nano ax88179_178a.c

copy and paste this code to the editor

https://pastebin.com/cFpKHiCm


STRG + S to save
STRG + x to leave nano


III) Compile and copy the driver to the kernel files depending on your Kernel the Kernel Path need to be updated
in my case Kernel Version is "5.0.21-4-pve"
so path is : /lib/modules/5.0.21-4-pve/kernel/drivers/net/usb/

compile as follows:

make -j2 make install

you should now have a ax88179_178a.ko file

copy it to your kernel path - maybe backup the existing old ax88179_8178_a.ko

cp ax88179_178a.ko /lib/modules/5.0.21-4-pve/kernel/drivers/net/usb/ depmod -a modprobe ax88179_178a

Then reboot either Network manually or if you have no clue then
Reboot PVE

After that you can ad ax88179_178a to a vmbrX (Linux Bridge) and set this vmbrX as Network Card to your FreeBSD / opnsense

Reboot PVE again

Now the device should be full working in your FreeBSD / OPNSENSE with 1Gbit

Enjoy this mod - I hope i could help anyone

Took me looooong evenings to figure out and fix this. opnsense is running like a charme with it. ax88179_178a is in my case the WAN Adapter on a 200MBIt/s port so 100MBit/s was not enough.

cheers PSteinberg

PS: NICE PRODUCT - PVE rocks
 
Last edited:
hi
i guess this command it s wrong :

rm ax88179_8178a.c

wright it s :

rm ax88179_178a.c

but anyway
i was try to compile the driver but didn t work
possible i need something new file ( https://pastebin.com/cFpKHiCm )
i have freebsd 13.2 and usb nic tplink ue306 based on Axis AX88179
if somebody can help me
thank s a lot
 
  • Like
Reactions: thelinhlge
hi
i guess this command it s wrong :

rm ax88179_8178a.c

wright it s :

rm ax88179_178a.c

but anyway
i was try to compile the driver but didn t work
possible i need something new file ( https://pastebin.com/cFpKHiCm )
i have freebsd 13.2 and usb nic tplink ue306 based on Axis AX88179
if somebody can help me
thank s a lot

Hey Marius - that post was made 4 years ago - and you are right there is a mispelling .

BUT it should work out of the box by now - make a new thread and the forum will help you
 
thank s for quik answear
if you are kind make it for tplink ue300 too
it s based on rtl8153

i saw on internet a lot of people use them both , but i didn t find nowhere how to fix this problem , except here

this both usb nic adaptors make no problems on pfsense { freebsd 14 } or ipfire linux firewall distro
 
Everything needs to be done in the PVE Shell
root@pve:~/download# tar -xvjf asix_usb_nic_linux_driver_v3.1.0.tar.bz2
asix_usb_nic_linux_driver_v3.1.0/
asix_usb_nic_linux_driver_v3.1.0/ax88179_178a.h
asix_usb_nic_linux_driver_v3.1.0/ax_main.h
asix_usb_nic_linux_driver_v3.1.0/ax88179a_programmer.c
asix_usb_nic_linux_driver_v3.1.0/ax_ptp.h
asix_usb_nic_linux_driver_v3.1.0/ax88179_178a.c
asix_usb_nic_linux_driver_v3.1.0/ax_ioctl.h
asix_usb_nic_linux_driver_v3.1.0/ax88179a_772d.h
asix_usb_nic_linux_driver_v3.1.0/Makefile
asix_usb_nic_linux_driver_v3.1.0/ax_ptp.c
asix_usb_nic_linux_driver_v3.1.0/ax_main.c
asix_usb_nic_linux_driver_v3.1.0/ax88179_programmer.c
asix_usb_nic_linux_driver_v3.1.0/ax88179a_772d.c
asix_usb_nic_linux_driver_v3.1.0/ax88179a_ieee.c
asix_usb_nic_linux_driver_v3.1.0/Readme
asix_usb_nic_linux_driver_v3.1.0/axcmd.c
asix_usb_nic_linux_driver_v3.1.0/ax88279_programmer.c
root@pve:~/download# cd asix_usb_nic_linux_driver_v3.1.0
root@pve:~/download/asix_usb_nic_linux_driver_v3.1.0# rm ax88179_178a.c
root@pve:~/download/asix_usb_nic_linux_driver_v3.1.0# make -j2
-bash: make: command not found
root@pve:~/download/asix_usb_nic_linux_driver_v3.1.0# make install
-bash: make: command not found
root@pve:~/download/asix_usb_nic_linux_driver_v3.1.0# Makefile -j2
-bash: Makefile: command not found
root@pve:~/download/asix_usb_nic_linux_driver_v3.1.0# makefile -j2
-bash: makefile: command not found

I face above message? how to fixed it? Thanks.
 
hi
if you run
rm ax88179_178a.c

this file : ax88179_178a.c will be gone
and you can t compile whitout it
problem it s we do not have a updated file
if someone have it please help us
thank s a lot
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!