How to install drivers for a NIC? (AQtion AQC107/XG-C100C)

Seani

Dabbler
Joined
Oct 18, 2016
Messages
41
I'm gonna look into it tomorrow. I've never compiled a driver before tho so it might be smart to let someone else do it. Someone who has done it before. Thanks for your input.
 

Seani

Dabbler
Joined
Oct 18, 2016
Messages
41
Update. I got it running by being a lazy dick.
I figured I could get away with simply upgrading an unused jail to 12.2 and compiling it there. Worked.

Here's how
Within a jail that is running FreeBSD 12.2:
Code:
pkg install git
git clone https://github.com/Aquantia/aqtion-freebsd.git
cd aqtion-freebsd
make

That creates the if_atlantic.ko file that we need.

From the TrueNAS shell:
Code:
cp PATH_TO_JAIL/if_atlantic.ko /boot/modules
cd /boot/modules
kldload ./if_atlantic.ko

That loads the driver and you can see if it works (which it did for me).
Code:
echo 'if_atlantic.ko_load="YES"' >> /boot/loader.conf

That makes it survive a reboot.

I hope that helps some people.

Update concerning the performance.
I got my workstation and the TrueNAS server connected directly using a different subnet. Transfer speeds while copying huge mkv files (40gb) are around 360-420MByte/s. So more than 3x as fast as before. I'm a huge fan.
Update 2.
After setting Jumbo Frames to 9000 in TrueNAS and 9014 in Windows I'm achieving 560MByte/s.
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
echo 'if_atlantic.ko_load="YES"' >> /boot/loader.conf
Great it works. But better set that as a tuneable in the UI.
 

WeiTing_RF

Cadet
Joined
Dec 4, 2020
Messages
1
Update. I got it running by being a lazy dick.
I figured I could get away with simply upgrading an unused jail to 12.2 and compiling it there. Worked.

Here's how
Within a jail that is running FreeBSD 12.2:
Code:
pkg install git
git clone https://github.com/Aquantia/aqtion-freebsd.git
cd aqtion-freebsd
make

That creates the if_atlantic.ko file that we need.

From the TrueNAS shell:
Code:
cp PATH_TO_JAIL/if_atlantic.ko /boot/modules
cd /boot/modules
kldload ./if_atlantic.ko

That loads the driver and you can see if it works (which it did for me).
Code:
echo 'if_atlantic.ko_load="YES"' >> /boot/loader.conf

That makes it survive a reboot.

I hope that helps some people.

Update concerning the performance.
I got my workstation and the TrueNAS server connected directly using a different subnet. Transfer speeds while copying huge mkv files (40gb) are around 360-420MByte/s. So more than 3x as fast as before. I'm a huge fan.
Update 2.
After setting Jumbo Frames to 9000 in TrueNAS and 9014 in Windows I'm achieving 560MByte/s.
can please send a copy of compiled file here? Thank you in advance
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
I am repeating myself: if anyone wants to see this driver in FreeBSD by default it is the task of the vendor or at least one of the users who actually runs the hardware and can test if it is working to open a ticket with the FreeBSD project asking for import.

The FreeBSD bugtracker is here:

A complete patch set would be preferred but it will probably be sufficient to link to the git repo to get the ball rolling ...
An official statment from the vendor that they are willing to upstream future patches and improvements to the driver to the FreeBSD project would certainly help.
 

Seani

Dabbler
Joined
Oct 18, 2016
Messages
41
Great it works. But better set that as a tuneable in the UI.
1607161363953.png


Like this? I've never set a tuneable before.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
if_atlantic_load
YES

More probably.
 

dexll

Dabbler
Joined
Jul 16, 2020
Messages
10
There you go.

I downloaded this file but can't figure out how to copy to /boot/modules. I guess I don't know the correct syntax for my storage paths.

Trying: cp PoolName/Downloads/if_atlantic.co /boot/modules
Says: No such file or directory.

For clarity, is this compiled driver work for TrueNAS-12.0-STABLE or do I need to be on 12.0-U1?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
It's /mnt/PoolName/Downloads/if_atlantic.ko probably.
 

dexll

Dabbler
Joined
Jul 16, 2020
Messages
10
Thank you, that worked. Now I am stuck on how to edit loader.conf to add: if_atlantic_load="YES"

Read you can use System > Tunables but I can't figure that out either. There a way I can edit loader.conf in windows? If not, what is the best/easiest way?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
Go to System --> Tunables, click ADD

Variable: if_atlantic_load
Value: YES
Type: loader

Simple as that :wink:

You cannot edit loader.conf directly without using the GUI. Changes would not survive a reboot.
 

gigo90

Cadet
Joined
Jan 12, 2021
Messages
5
Hello guys, i'm new in this forum.
I have a NAS, for home use, running truenas 12 U1.

In order to boost the performance of the system, i've added a 10 gig NIC with AQC 107 controller.

Following the guide, posted from @Seani i have 2 issue:
- first one, during the creation of if_atlantic.ko...after giving the "make" command, shell give me this message "/usr/share/mk/bsd.kmod.mk" line16: unable to locate the kernel source tree. Set SYSDIR to override.

- second one, i'm not able to set the if_atlantic_load to YES neither with shell command(echo 'if_atlantic.ko_load="YES"' >> /boot/loader.conf) nor with tunable...after every rebot i have to load manually the driver with kldload command


Has anyone had the same problems? How can i try to fix them?


Thanks



Update. I got it running by being a lazy dick.
I figured I could get away with simply upgrading an unused jail to 12.2 and compiling it there. Worked.

Here's how
Within a jail that is running FreeBSD 12.2:
Code:
pkg install git
git clone https://github.com/Aquantia/aqtion-freebsd.git
cd aqtion-freebsd
make

That creates the if_atlantic.ko file that we need.

From the TrueNAS shell:
Code:
cp PATH_TO_JAIL/if_atlantic.ko /boot/modules
cd /boot/modules
kldload ./if_atlantic.ko

That loads the driver and you can see if it works (which it did for me).
Code:
echo 'if_atlantic.ko_load="YES"' >> /boot/loader.conf

That makes it survive a reboot.

I hope that helps some people.

Update concerning the performance.
I got my workstation and the TrueNAS server connected directly using a different subnet. Transfer speeds while copying huge mkv files (40gb) are around 360-420MByte/s. So more than 3x as fast as before. I'm a huge fan.
Update 2.
After setting Jumbo Frames to 9000 in TrueNAS and 9014 in Windows I'm achieving 560MByte/s.
 
Last edited:

gigo90

Cadet
Joined
Jan 12, 2021
Messages
5
A quick update, i made a fresh installation, add the tunable......and it works.

1610783158320.png


Below, an important message from iXsystem, found in this forum: driver are included in Truenas, but in experimental development
1610783757947.png


Hope this can be helpfull
 
Last edited:

bjburak

Cadet
Joined
Mar 31, 2021
Messages
1
Hi, just want to mention, if anyone is wondering, that the QNAP QXG-5G1T-111C 5GbE Network Adapter is also working (for me witthout any issues on TrueNAS 12.0-U2.1. No compilation needed or anything, just add system tunable as the driver is already included in the TrueNAS, just not loaded.

"if_atlantic_load"
"YES"
"LOADER"

This card is based on aqc111c 5gbe chip, which is half price compared to aqc107
 

flashdrive

Patron
Joined
Apr 2, 2021
Messages
262
Hi, just want to mention, if anyone is wondering, that the QNAP QXG-5G1T-111C 5GbE Network Adapter is also working (for me witthout any issues on TrueNAS 12.0-U2.1. No compilation needed or anything, just add system tunable as the driver is already included in the TrueNAS, just not loaded.

"if_atlantic_load"
"YES"
"LOADER"

This card is based on aqc111c 5gbe chip, which is half price compared to aqc107

@bjburak

You, Sir, are the single most important lesson for me with your very first post here:

RTFM until the END.

 

flashdrive

Patron
Joined
Apr 2, 2021
Messages
262
1) the hardware itself (max 3.5gbit for anyone i got report from) -- using 5gbit QNAP USB3 device at the moment and all tests are single user sequential

@appliance

I cannot get the USB device to work out of the box.

QNA-UC5G1T is detected with dmesg

But not available as a physical device in TrueNAS.

Short of compiling myself I have tried all the hints here:

1) out of the box with tunables- no joy
2) copied latest if_...ko file to /boot/modules - no joy

3) pkg install - won't work from inside a jail, because the file system is read only


Any ideas?
 

bpearman

Cadet
Joined
Jun 27, 2021
Messages
1
Have any of you had performance issues with this driver? I just bought the card and am getting it working now. In the Jira ticket that was posted earlier or possibly somewhere else, it mentioned a concern the integrator had with performance.
 
Top