Adapts to Marvell AQC113C-B1-C 10GbE network controller.

Started by jacker, July 25, 2025, 01:51:31 AM

Previous topic - Next topic
Dear OPNsense Team,

I am a long-time user and admirer of your firewall project. Recently, I purchased a network device that includes a Marvell AQC113C-B1-C 10GbE network controller. Unfortunately, I noticed that this chip is currently not supported in OPNsense.

As I understand that OPNsense relies on FreeBSD's network stack, I would like to ask if there are any plans — or possibility — to support this chip in future releases, should FreeBSD include support. According to community sources, this chip is already supported in Linux but not yet in FreeBSD.

If there's anything the community can do (e.g., testing, submitting requests upstream to FreeBSD, or encouraging Marvell to release a driver), I'd be glad to help.

Thank you for your continued work on this amazing project.

Best regards, 
Jacker

Well that's sad. I saw a very minimalistic port of the Linux driver some years back, but this was right in the middle of the Marvell purchase. The code review was pretty sad, too - just "what is an Aquantia?" and complaints about formatting. The driver (https://github.com/Aquantia/aqtion-freebsd) appears to have advanced little. I'd hesitate to even try to make a plugin driver like the Realtek. Perhaps a (re-?) port of the NetBSD or OpenBSD drivers...?


Have you tried fetching the driver and installing the driver from freebsd.org?

It has been working fine for my AQC107 NIC.

Try this driver:

Download driver
fetch https://pkg.freebsd.org/FreeBSD:14:amd64/latest/All/aquantia-atlantic-kmod-0.0.5.1402000_3.pkg
Install driver
pkg install aquantia-atlantic-kmod-0.0.5.1402000_3.pkg
List your available interfaces. Aquantia Atlantic (Marvell) AQtion interface should be listed as aq0.
ifconfig
Dell Optiplex 7060 SFF
Intel Core i7-8700 @ 3.2GHz, 6 cores
32GB DDR4-SDRAM 2666MHz
256GB M.2 NVME SSD storage
TP-LINK TX401 10GBASE-T (AQC107) NIC aq0
Intel I210 1000BASE-T NIC igb0
Intel I219-LM 1000BASE-T integrated em0
Zyxel XS1930-12HP 10GbE 12port Switch POE++
Zyxel WBE660S Wi-Fi 7 10GbE AP

A feature request does already exist for FreeBSD https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282805. It is not worked on though.
Deciso DEC740

Would running Opnsense on a VM (Linux Hipervisor) work for you?
 

Quote from: jacker on July 25, 2025, 01:51:31 AMIf there's anything the community can do (e.g., testing, submitting requests upstream to FreeBSD, or encouraging Marvell to release a driver),
I have added the device IDs and the speed init of AQC113/113C/113CA/113CS to the 14.3-RELEASE port of the driver (taken from OpenBSD, not more :)). Would you happen to be able to test it on a basic FreeBSD 14.3-RELEASE installation. Or of course if are able to, compile it yourself for a 14.3-RELEASE based installation.
The module doesn't compile for FreeBSD 15+, there are open tickets for it.

As usual: be careful installing stuff from the internet, don't put it on your prod machine.

The code/diff and the PKG file can be found: https://git.sr.ht/~patient0/FreeBSD-ports/refs/AQC113
Direct link to PKG file :https://git.sr.ht/~patient0/FreeBSD-ports/refs/download/AQC113/aquantia-atlantic-kmod-0.0.5.1403000_4.pkg

Edit: typo and extend to mention that if can of course compiled by the user itself.
Deciso DEC740