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

PSteinberg

Member
Nov 28, 2019
14
5
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
 
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
 

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!