SOLVED Need help with a 10G SUPER LAN MSI NIC

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
In that case you should be able to just drop the kernel module in and add a tunable to load it via GUI :)
 

vic1707

Dabbler
Joined
Jan 28, 2019
Messages
46
I have to get the compiled file from the jail ?
Or just do the same command but on freenas itself?

I simply don't know what i'm supposed to do.... I've never got that deep in the configuration :eek:
 

vic1707

Dabbler
Joined
Jan 28, 2019
Messages
46
Here are the list of the files before and after the "make"command in the jail :

Code:
before :

total 140
drwxr-xr-x  2 root  wheel      23 Mar 15 06:42 .
drwxr-xr-x  3 root  wheel       6 Mar 15 06:42 ..
-rw-r--r--  1 root  wheel     116 Apr 29  2019 .gitignore
-rw-r--r--  1 root  wheel    2608 Apr 29  2019 aq_common.h
-rw-r--r--  1 root  wheel    7417 Apr 29  2019 aq_dbg.c
-rw-r--r--  1 root  wheel    5020 Apr 29  2019 aq_dbg.h
-rw-r--r--  1 root  wheel    4122 Apr 29  2019 aq_device.h
-rw-r--r--  1 root  wheel   10588 Apr 29  2019 aq_fw.c
-rw-r--r--  1 root  wheel    2667 Apr 29  2019 aq_fw.h
-rw-r--r--  1 root  wheel    8024 Apr 29  2019 aq_fw1x.c
-rw-r--r--  1 root  wheel   13057 Apr 29  2019 aq_fw2x.c
-rw-r--r--  1 root  wheel  127108 Apr 29  2019 aq_hw_llh_internal.h
-rw-r--r--  1 root  wheel   62720 Apr 29  2019 aq_hw_llh.c
-rw-r--r--  1 root  wheel   39756 Apr 29  2019 aq_hw_llh.h
-rw-r--r--  1 root  wheel   24480 Apr 29  2019 aq_hw.c
-rw-r--r--  1 root  wheel    9207 Apr 29  2019 aq_hw.h
-rw-r--r--  1 root  wheel    6031 Apr 29  2019 aq_irq.c
-rw-r--r--  1 root  wheel   35555 Apr 29  2019 aq_main.c
-rw-r--r--  1 root  wheel    6583 Apr 29  2019 aq_media.c
-rw-r--r--  1 root  wheel   16170 Apr 29  2019 aq_ring.c
-rw-r--r--  1 root  wheel    4551 Apr 29  2019 aq_ring.h
-rw-r--r--  1 root  wheel     320 Apr 29  2019 Makefile
-rw-r--r--  1 root  wheel      45 Apr 29  2019 README.md


Code:
after :

total 287
drwxr-xr-x  2 root  wheel      54 Mar 15 06:41 .
drwxr-xr-x  3 root  wheel       6 Mar 15 06:41 ..
-rw-r--r--  1 root  wheel    1433 Mar 15 06:41 .depend.aq_dbg.o
-rw-r--r--  1 root  wheel    1537 Mar 15 06:41 .depend.aq_fw.o
-rw-r--r--  1 root  wheel    1541 Mar 15 06:41 .depend.aq_fw1x.o
-rw-r--r--  1 root  wheel    1541 Mar 15 06:41 .depend.aq_fw2x.o
-rw-r--r--  1 root  wheel     726 Mar 15 06:41 .depend.aq_hw_llh.o
-rw-r--r--  1 root  wheel    1890 Mar 15 06:41 .depend.aq_hw.o
-rw-r--r--  1 root  wheel    3996 Mar 15 06:41 .depend.aq_irq.o
-rw-r--r--  1 root  wheel    4412 Mar 15 06:41 .depend.aq_main.o
-rw-r--r--  1 root  wheel    3982 Mar 15 06:41 .depend.aq_media.o
-rw-r--r--  1 root  wheel    4225 Mar 15 06:41 .depend.aq_ring.o
-rw-r--r--  1 root  wheel     116 Apr 29  2019 .gitignore
-rw-r--r--  1 root  wheel    2608 Apr 29  2019 aq_common.h
-rw-r--r--  1 root  wheel    7417 Apr 29  2019 aq_dbg.c
-rw-r--r--  1 root  wheel    5020 Apr 29  2019 aq_dbg.h
-rw-r--r--  1 root  wheel    1192 Mar 15 06:41 aq_dbg.o
-rw-r--r--  1 root  wheel    4122 Apr 29  2019 aq_device.h
-rw-r--r--  1 root  wheel   10588 Apr 29  2019 aq_fw.c
-rw-r--r--  1 root  wheel    2667 Apr 29  2019 aq_fw.h
-rw-r--r--  1 root  wheel    6144 Mar 15 06:41 aq_fw.o
-rw-r--r--  1 root  wheel    8024 Apr 29  2019 aq_fw1x.c
-rw-r--r--  1 root  wheel    4704 Mar 15 06:41 aq_fw1x.o
-rw-r--r--  1 root  wheel   13057 Apr 29  2019 aq_fw2x.c
-rw-r--r--  1 root  wheel    2704 Mar 15 06:41 aq_fw2x.o
-rw-r--r--  1 root  wheel  127108 Apr 29  2019 aq_hw_llh_internal.h
-rw-r--r--  1 root  wheel   62720 Apr 29  2019 aq_hw_llh.c
-rw-r--r--  1 root  wheel   39756 Apr 29  2019 aq_hw_llh.h
-rw-r--r--  1 root  wheel   26432 Mar 15 06:41 aq_hw_llh.o
-rw-r--r--  1 root  wheel   24480 Apr 29  2019 aq_hw.c
-rw-r--r--  1 root  wheel    9207 Apr 29  2019 aq_hw.h
-rw-r--r--  1 root  wheel   18072 Mar 15 06:41 aq_hw.o
-rw-r--r--  1 root  wheel    6031 Apr 29  2019 aq_irq.c
-rw-r--r--  1 root  wheel    3136 Mar 15 06:41 aq_irq.o
-rw-r--r--  1 root  wheel   35555 Apr 29  2019 aq_main.c
-rw-r--r--  1 root  wheel   38704 Mar 15 06:41 aq_main.o
-rw-r--r--  1 root  wheel    6583 Apr 29  2019 aq_media.c
-rw-r--r--  1 root  wheel    4600 Mar 15 06:41 aq_media.o
-rw-r--r--  1 root  wheel   16170 Apr 29  2019 aq_ring.c
-rw-r--r--  1 root  wheel    4551 Apr 29  2019 aq_ring.h
-rw-r--r--  1 root  wheel    8056 Mar 15 06:41 aq_ring.o
-rw-r--r--  1 root  wheel   45417 Mar 15 06:40 bus_if.h
-rw-r--r--  1 root  wheel   12232 Mar 15 06:40 device_if.h
-rw-r--r--  1 root  wheel       0 Mar 15 06:41 export_syms
-rw-r--r--  1 root  wheel   94832 Mar 15 06:41 if_atlantic.ko
-rw-r--r--  1 root  wheel   23006 Mar 15 06:40 ifdi_if.h
lrwxr-xr-x  1 root  wheel      26 Mar 15 06:40 machine -> /usr/src/sys/amd64/include
-rw-r--r--  1 root  wheel     320 Apr 29  2019 Makefile
-rw-r--r--  1 root  wheel      37 Mar 15 06:40 opt_inet.h
-rw-r--r--  1 root  wheel      16 Mar 15 06:40 opt_inet6.h
-rw-r--r--  1 root  wheel       0 Mar 15 06:40 opt_rss.h
-rw-r--r--  1 root  wheel   18630 Mar 15 06:40 pci_if.h
-rw-r--r--  1 root  wheel      45 Apr 29  2019 README.md
lrwxr-xr-x  1 root  wheel      24 Mar 15 06:40 x86 -> /usr/src/sys/x86/include


Which are the files that i have to copy ? Please help ^^'
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Copy the if_atlantic.ko to /boot/modules - from outside of the jail. This will not do any harm.
Then you can try to dynamically load the module: kldload if_atlantic.

If that does not instantly crash your FreeNAS - which is entirely possible - these commands will show you if the interface is detected:
Code:
dmesg
kldstat
ifconfig -a


To load the driver automatically at startup you can create a Tunable in the UI. Type: "loader", Variable: "if_atlantic_load", Value: "YES".
You will have to copy the module after each update!

The interface will then show up in the UI and will be configurable like any other.

HTH,
Patrick
 

vic1707

Dabbler
Joined
Jan 28, 2019
Messages
46
Copy the if_atlantic.ko to /boot/modules - from outside of the jail. This will not do any harm.
Then you can try to dynamically load the module: kldload if_atlantic.

If that does not instantly crash your FreeNAS - which is entirely possible - these commands will show you if the interface is detected:
Code:
dmesg
kldstat
ifconfig -a


To load the driver automatically at startup you can create a Tunable in the UI. Type: "loader", Variable: "if_atlantic_load", Value: "YES".
You will have to copy the module after each update!

The interface will then show up in the UI and will be configurable like any other.

HTH,
Patrick


A HUGE thanks it's working !!!!!!!!!!!!
Now i just need to configure it as a direct connection between my pc and the TrueNAS CORE server ^^
 

vic1707

Dabbler
Joined
Jan 28, 2019
Messages
46
If i can disturb you one more time.
With iperf i'm only getting "only" arround 2Gbit/sec but it's a 10Gbit card (and windows says so on the card properties (same card on my PC)).
Is there something to do ?
here is the config of the card (on the server), which is plugged on a PCIe 2 x4 slot.

Code:
pciconf -lcv

aq0@pci0:9:0:0:    class=0x020000 card=0xb9121462 chip=0x07b11d6a rev=0x02 hdr=0x00
    vendor     = 'Aquantia Corp.'
    device     = 'AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]'
    class      = network
    subclass   = ethernet
    cap 10[40] = PCI-Express 2 endpoint max data 256(512) FLR RO NS
                 link x4(x4) speed 5.0(8.0) ASPM disabled(L0s/L1)
    cap 01[80] = powerspec 3  supports D0 D1 D2 D3  current D0
    cap 11[90] = MSI-X supports 32 messages, enabled
                 Table in map 0x18[0x0], PBA in map 0x18[0x200]
    cap 05[a0] = MSI supports 32 messages, 64 bit
    cap 03[c0] = VPD
    ecap 0001[100] = AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000b[150] = Vendor 1 ID 1
    ecap 0019[180] = PCIe Sec 1 lane errors 0


Thanks in advance
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No idea ...
 
Top