OPNsense Forum

English Forums => General Discussion => Topic started by: madbrain on March 20, 2023, 12:33:22 AM

Title: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: madbrain on March 20, 2023, 12:33:22 AM
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.
Title: Re: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: madbrain on March 20, 2023, 01:08:34 AM
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 ?
Title: Re: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: madbrain on March 20, 2023, 02:43:07 AM
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 ?
Title: Re: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: Patrick M. Hausen on March 20, 2023, 08:36:40 AM
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.
Title: Re: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: madbrain on March 27, 2023, 02:50:52 AM
@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 .
Title: Re: How to install Marvell/Aquantia AQN-107 drivers ?
Post by: Mr. Me on January 22, 2024, 12:06:00 PM
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.