How to install Marvell/Aquantia AQN-107 drivers ?

Started by madbrain, March 20, 2023, 12:33:22 AM

Previous topic - Next topic
Opnsense newbie here.

I got opnSense 23.1 installed. Out of the box, it didn't recognize my two Aquantia AQN-107 10 GBASE-T NICs.
I set it up with the built-in Intel 1 Gbps NIC for WAN, and a Realtek 1 Gbps NIC for LAN.
From here, I can't figure out how to add support for the Aquantia.

I believe 23.1 is based off FreeBSD - correct me if I'm wrong.
Is this the proper driver ?
https://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/aquantia-atlantic-kmod-0.0.5_1.pkg

And if so, how do I install it ? I can put it on a USB stick, but can't figure out how to mount it under Opnsense.

Any help would be greatly appreciated.

I download it with "fetch" and installed it with "pkginstall -f -y" .

Looks like the driver got extracted into /boot/modules/if_atlantic.ko .

But it doesn't get loaded, even after reboot.

If I manually run "kldload /boot/modules/if_atlantic.ko" it works, and my two interfaces show up as aq0 and aq1 .

Unfortunately, upon reboot, the driver doesn't reload automatically. How do I force it to automatically reload upon reboot ?

Actually, the driver does not actually work after being manually loaded with kldload. I get reboots and kernel panics when plugging the Ethernet cable or configuring the interfaces in Opnsense . Is there another driver for Aquantia that is known to work with the latest Opnsense ?

To have it loaded automatically you can create a tunable (System > Settings > Tunables)

if_atlantic_load
YES

As for the stability problems - get some supported hardware instead.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

@pmhausen,
I got an X550-T2 which works fine Opnsense.
I got my pair of AQN-107 to work stable in pfSense 2.6, but not under Opnsense 23.1 .

Yes AQC107 works.

Hi, I just installed opnsense for the first time and my (Marvell Aquantia Aqtion AQC107 chipset) works fine so far.
My NIC is TP-Link TX401. 10GbE. It's running now as the LAN port connecting to a Zyxel XS1930-12HP switch.

The driver I'm using is from
https://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/aquantia-atlantic-kmod-0.0.5_2.pkg

When I tried to use driver pkg.freebsd.org/FreeBSD:14:amd64/latest/All/aquantia-atlantic-kmod-0.0.5_2.pkg, it didn't work when compiling. It said something about kernel mismatch.
I guess I'll have to wait for opnsense to use FreeBSD version14 for that driver.

I had to set the driver to be persistent upon reboot.
It linked at 10G to the switch.  It's running right now as my home router.
Dell Optiplex 7060 SFF
Intel Core i7-8700 @ 3.2GHz, 6 cores
32GB DDR4-SDRAM 2666MHz
256GB M.2 NVME SSD storage
1x PCIe 3.0 x4 slot
1x PCIe 3.0 x16 slot
TP-LINK TX401 10GBASE-T (AQC107) NIC x4 aq0
Intel I210 1000BASE-T NIC x1 igb0
Intel I219-LM 1000BASE-T integrated em0
Zyxel XS1930-12HP 10GbE Switch