Can't assign NIC [Aquantia Corp. AQC107]
-
I end up with error <=> I can't compile the driver...
/usr/src/aqtion-freebsd-0.0.5/aq_main.c:197:57: error: too many arguments provided to function-like macro invocation
197 | DRIVER_MODULE(atlantic, pci, aq_driver, aq_devclass, 0, 0);
| ^
/usr/include/sys/bus.h:854:9: note: macro 'DRIVER_MODULE' defined here
854 | #define DRIVER_MODULE(name, busname, driver, evh, arg)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]In the main the function put 5 arguments in the bus.h that function is only expecting 5 arguments.. mismatch
the code is not working properly
I have no idea how I can run my 10g network card on my pfsense :-(
-
What were you compiling against? For which pfSense version?
-
@stephenw10
I was compiling on a Virtual Machine running freebsd 14.1 (couldn't get the 14.0 as my pfsense version) / kernel 2.7.2 as my pfsense version...I was compiling the source C for the network card 10g
The driver for the card I have exist for a kernel >= 3.10
So no package / driver for any 10G card :-(
So I'm stuck and very frustaded
-
@kouled said in Can't assign NIC [Aquantia Corp. AQC107]:
The driver for the card I have exist for a kernel >= 3.10
That's almost certainly a Linux kernel and FreeBSD is not Linux.
Did you checkout the FreeBSD git source from the correct commit hash as shown above?
-
@stephenw10 I did and I found the above topic from onoseto on Apr 25 2024 at 6:43PM
Attaching the Aquantia driver for latest pfSense (2.7.2) ....
I try to follow but I get errors.
It's just pity
-
Hmm, and you're tying to compile the kmod pkg? I'm confused about where that Linux kernel reference came from?
-
I get erorr
cat: net/aquantia-atlantic-kmod: No such file or directory
and
[00:00:00] Error: [79799] /usr/local/share/poudriere/bulk.sh:mount_ports:6:Missing mnt metadata for portstree -
@stephenw10 the référence comme from the contrcutor of the network card <=> they say kernel >= 3.10...
But the issue is that I have the same NIC Aquantia Corp. AQC107 I can see listing the device on the pfsense running the command pciconf -lv
The output is:
none0@pci0:1:0:0: class=0x020000 rev=0x02 hdr=0x00 vendor=0x1d6a device=0x07b1 subvendor=0x1d6a subdevice=0x0001
vendor = 'Aquantia Corp.'
device = 'AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]'
class = network
subclass = ethernetSo the card is seen by freebsd...
But I'm stuck cause no package / no compilation possible
Any help will be greatfulWarm regards
-
@kouled said in Can't assign NIC [Aquantia Corp. AQC107]:
the référence comme from the contrcutor of the network card <=> they say kernel >= 3.10...
You have a link to that?
@kouled said in Can't assign NIC [Aquantia Corp. AQC107]:
So the card is seen by freebsd
It's seen as a PCIe device on the bus but it's not recognised by any driver so not usable at that point.
-
https://www.tp-link.com/us/support/download/tx401/
-
There's no FreeBSD driver there, only Linux. And FreeBSD is not Linux!
So that driver will never work in pfSense and the kernel reference is only relevant for Linux.
You need to compile it from the FreeBSD source to have any chance.
-
Indeed, so I try but it doesn't work
I build a freebsd VM and install the appropriate package to be able to compile...
I get the source https://github.com/Aquantia/aqtion-freebsd
But I get error:
usr/src/aqtion-freebsd-0.0.5/aq_main.c:197:57: error: too many arguments provided to function-like macro invocation
197 | DRIVER_MODULE(atlantic, pci, aq_driver, aq_devclass, 0, 0);
| ^
/usr/include/sys/bus.h:854:9: note: macro 'DRIVER_MODULE' defined here
854 | #define DRIVER_MODULE(name, busname, driver, evh, arg)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]In the main the function put 5 arguments in the bus.h that function is only expecting 5 arguments.. mismatch
the code is not working properly
I study the C a long time ago (I'm old :-) ) and I never used after.