Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Can't assign NIC [Aquantia Corp. AQC107]

    Scheduled Pinned Locked Moved Hardware
    81 Posts 14 Posters 22.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Likely when the driver is added the FreeBSD tree directly rather than as kmod pkg.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator @onoseto
        last edited by

        @onoseto Are you able to re-attach that? Unfortunately attachments to the forum were lost for a short period and that was included.

        1 Reply Last reply Reply Quote 1
        • stephenw10S stephenw10 referenced this topic on
        • K
          kouled
          last edited by

          Great topic and subject

          I was not able to reproduce --> compile the source as there is no C compiler on the pfsense
          First we need to install git on the pfsense
          pkg install git (this works)
          then the ./configure I get an error message :
          configure: error: no acceptable C compiler found in $PATH

          Any advice to move foward?

          Thank you

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Don't try to build anything in pfSense. Instead build in FreeBSD. However for something like a kernel module this is non-trivial as you must build against the same kernel pfSense is using.

            K 1 Reply Last reply Reply Quote 0
            • K
              kouled @stephenw10
              last edited by kouled

              @stephenw10 Thank you I just try in a VM I create with exactly the same version and setting of my pfsense...

              My goal is to make my 10G network card working on the pfsense

              I have the chance (now, was not the case before) to have 10G internet access 😊

              So I 'll try with a freebsd with the same kernel and see

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @kouled
                last edited by

                @kouled said in Can't assign NIC [Aquantia Corp. AQC107]:

                My goal is to make my 10G network card working on the pfsense

                Get a device, or NICs, that is known to work at that speed with pfSense is probably way easier.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                K 1 Reply Last reply Reply Quote 1
                • K
                  kouled @Gertjan
                  last edited by

                  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 :-(

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    What were you compiling against? For which pfSense version?

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kouled @stephenw10
                      last edited by

                      @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

                      stephenw10S 1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator @kouled
                        last edited by

                        @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?

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          kouled @stephenw10
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Hmm, and you're tying to compile the kmod pkg? I'm confused about where that Linux kernel reference came from?

                            K 1 Reply Last reply Reply Quote 0
                            • B
                              BlackPope
                              last edited by BlackPope

                              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

                              1 Reply Last reply Reply Quote 0
                              • K
                                kouled @stephenw10
                                last edited by

                                @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 = ethernet

                                So the card is seen by freebsd...

                                But I'm stuck cause no package / no compilation possible
                                Any help will be greatful

                                Warm regards

                                stephenw10S K 2 Replies Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator @kouled
                                  last edited by

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kouled @kouled
                                    last edited by

                                    @kouled

                                    https://www.tp-link.com/us/support/download/tx401/

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      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.

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        kouled @stephenw10
                                        last edited by

                                        @stephenw10

                                        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.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.