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

Athp driver

Development
8
71
14.6k
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.
  • _
    _rp @stephenw10
    last edited by _rp Oct 5, 2020, 8:47 AM Oct 5, 2020, 8:46 AM

    Hey, I also have a Compex WLE600VX card installed in my pFsense with 2.5.0 Dev installed, the card I understand is a Qualcomm Atheros QCA9882 based card. I'm running the latest snapshot from yesterday.

    Can anyone summarise what I need to do to make use of this card please, it's currently not showing in the device list in the GUI.

    G 1 Reply Last reply Oct 5, 2020, 9:41 AM Reply Quote 0
    • G
      Gertjan @_rp
      last edited by Oct 5, 2020, 9:41 AM

      @romprod said in Athp driver:

      it's currently not showing in the device list in the GUI.

      GUI ?
      The dialogue from @kiokoman and @stephenw10 above is "command line world only". Wifi na and ac settings in the GUI, that silence fiction right now.
      Be ready to compile your own device drivers etc .
      IMHO, it implies also far more knowledge then just typing 'make' in the top of a source tree.
      It's also "2.5.0" ....

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

      1 Reply Last reply Reply Quote 0
      • _
        _rp
        last edited by Oct 5, 2020, 9:43 AM

        I'm born ready!

        1 Reply Last reply Reply Quote 0
        • K
          kiokoman LAYER 8
          last edited by kiokoman Oct 5, 2020, 10:01 AM Oct 5, 2020, 9:50 AM

          you need to build the driver, there are instructions here
          https://github.com/Geramy/athp
          2.5.0 is now freebsd 12.2 so you need to download freebsd 12.2 and compile the driver.
          you can't compile inside pfsense so you need a virtual machine or something to do the work.
          after that upload stuff to /boot/kernel/
          cross your fingers and hope it works,if it work and the driver attach you can configure it using the gui

          last time i checked

          you need to

          git clone https://github.com/Geramy/athp/tree/NEW_ATHP_ARVIF_LOCK
          

          and not the one from erikarn, it does not build on freebsd12 but only on freebsd13

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 1
          • S
            stephenw10 Netgate Administrator
            last edited by Oct 5, 2020, 11:51 AM

            Yeah, I had significant difficulty getting that compiled. I think I was probably using the wrong branch for most of that time! 🙄

            Steve

            1 Reply Last reply Reply Quote 0
            • G
              Gektor
              last edited by Oct 10, 2020, 11:48 AM

              AC support on FreeBSD is terrible, almost not support at all. Make virtualization (like Xen, Proxmox and etc), than setup pfSense + OpenWrt and you will get fully support of WiFi with pfSense.

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Oct 10, 2020, 2:49 PM

                Yes, currently that's true. This thread is referencing the efforts to fix that though.

                1 Reply Last reply Reply Quote 1
                • _
                  _rp
                  last edited by _rp Oct 25, 2020, 5:53 PM Oct 25, 2020, 5:51 PM

                  I'm having issues while compiling this for 12.2 for some reason. I'm using Geramys build as suggested above but that doesn't seem to compile correctly, maybe something that I'm doing wrong potentially.

                  Does anyone have the files already that they can share for 12.2?

                  Ive tried the files for 12.1 but they seem to crash the OS when I try to change any of the wlan settings etc.

                  1 Reply Last reply Reply Quote 0
                  • _
                    _rp
                    last edited by _rp Oct 25, 2020, 7:11 PM Oct 25, 2020, 7:10 PM

                    git clone -b NEW_ATHP_ARVIF_LOCK https://github.com/Geramy/athp.git
                    cd /usr/src
                    make -j12 kernel-toolchain
                    make -j12 kernel
                    make -j12 buildkernel KERNCONF=GENERIC
                    make -j12 installkernel KERNCONF=GENERIC
                    cd /root/athp/otus/freebsd/src/sys/modules/
                    ./build_modules
                    
                    root@freebsd:/usr/src # cd /root/athp/otus/freebsd/src/sys/modules/
                    root@freebsd:~/athp/otus/freebsd/src/sys/modules # ./build_modules
                    entering athp
                    Warning: Object directory not changed from original /root/athp/otus/freebsd/src/sys/modules/athp
                    
                    /root/athp/otus/freebsd/src/sys/modules/athp/../../dev/athp/athp_idr.c:521:34: error: result of '2^30' is 28; did you mean '1 << 30' (1073741824)? [-Werror,-Wxor-used-as-pow]
                            int max = end > 0 ? end - 1 : (2^30);   /* XXX */
                                                           ~^~~
                                                           1 << 30
                    /root/athp/otus/freebsd/src/sys/modules/athp/../../dev/athp/athp_idr.c:521:34: note: replace expression with '0x2 ^ 30' to silence this warning
                    1 error generated.
                    *** Error code 1
                    
                    Stop.
                    make: stopped in /root/athp/otus/freebsd/src/sys/modules/athp
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Oct 25, 2020, 7:34 PM

                      What did the crash look like with 12.1 binaries?

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiokoman LAYER 8
                        last edited by Oct 25, 2020, 8:54 PM

                        https://drive.google.com/drive/folders/1OZpFPMEPGU13_Lyz-at2ZSsXKnqVXFkU?usp=sharing

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Oct 25, 2020, 8:55 PM

                          That Geramy's branch compiled for 12.2?

                          1 Reply Last reply Reply Quote 0
                          • K
                            kiokoman LAYER 8
                            last edited by kiokoman Oct 25, 2020, 10:50 PM Oct 25, 2020, 9:40 PM

                            of course .. idk if it work ... 🙄

                            note: replace expression with '0x2 ^ 30' to silence this warning

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            Please do not use chat/PM to ask for help
                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                            _ 1 Reply Last reply Oct 25, 2020, 10:16 PM Reply Quote 2
                            • _
                              _rp @kiokoman
                              last edited by Oct 25, 2020, 10:16 PM

                              @kiokoman Yup that works. Driver loads without crashing. So far I've quickly setup it in AP mode and everything appears to be working full speed. I'll run further tests tomorrow.

                              Thank you for helping.

                              1 Reply Last reply Reply Quote 0
                              • G
                                geramyl
                                last edited by Dec 29, 2021, 2:22 AM

                                I didn't even know this topic existed until I typed in a error from one of the git issues for compiling the driver haha. Well I am making changes to the repository and upgrading to the latest head from the parent repository. We are going to do some poking at this and then I am going to attempt to verify vif is working, virtual interface and then pfsense should be able to configure the device in the GUI. I believe the freebsd kernel is missing some AC stuff for this card but I believe that was being worked on by https://github.com/erikarn/athp

                                1 Reply Last reply Reply Quote 3
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Dec 29, 2021, 4:29 AM

                                  Nice!
                                  I think the biggest issue I had (once I had it compiled) was that the ifconfig parts required to actually use any of the .ac parts are not present so there's no way to test it.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lapoberg
                                    last edited by Sep 20, 2022, 6:34 PM

                                    Anyone have a working driver for pfSense 2.6 for the QCA9880? Or instructions on how to compile one?

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by stephenw10 Sep 20, 2022, 11:23 PM Sep 20, 2022, 11:22 PM

                                      Adrian is still working on it I believe: https://github.com/erikarn/athp
                                      It's very unlikely to ever be in 2.6 though. Now 2.7 is moving to main it should be easier to pull in drivers like this.

                                      Steve

                                      1 Reply Last reply Reply Quote 0
                                      • provelsP provels referenced this topic on Aug 22, 2023, 3:10 PM
                                      • JonathanLeeJ
                                        JonathanLee @stephenw10
                                        last edited by Dec 18, 2023, 4:02 PM

                                        @stephenw10 I was reading the firmware for this card can also be updated at one point.

                                        Make sure to upvote

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