-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"MA_NOTOWNED undefined" and cannot find files after kernel compilation #11
Comments
I found where lie the compiled files (and it was actually obvious). |
Sorry we havn't gotten back to you, I will review your issue later today and see what I can come up with. |
For your information, on a 13-CURRENT, I get a kernel page fault when I load if_athp. It also complains that it cannot load some firmwares; it's very close to what bradleythughes got. I tried master, NEW_ATHP_ARVIF_LOCK (same as master?) and tx_power_change branches. Same results each time. I have a QCA6174, so I copy only the .ko and .bin from the corresponding folders. Is this ok so? pciconf -lv: |
Is this a Surface Go? I can solve these issues, you need a specific board.bin, board-2.bin and firmware-6.bin. |
Try these files: https://drive.google.com/file/d/107PePJLBYtp8AhbbDAKTpDERePvMO5x5/view?usp=sharing |
No. It's a PC based on Asus H170I-PRO / i3 7100T. My goal is to make use the QCA6174 device by pfSense (build on a 12 FreeBSD version) as host access point. But to be clear, up to now, I only tried to compile athp under pure FreeBSD. There is only one file in your link (board.bin), shall I place it in /boot/module? Do I have to rename it? Reading the error generated when it loads if_athp under 13-CURRENT, I see:
Then, it crashes soon after with a page fault. But I would like to compile athp under a 12-RELEASE. This is my main concern at the moment. |
Can you get me a full log please. |
Did you replace the board file in the athp_QCA6174_hw3.0_board folder when you compiled, or after you compiled? You need to replace the file before you compile so that it compiles the .ko for that board file. |
So, I wiped out all my precedent trials to be sure to take the master branch. I copied the file you provided board.bin in athp/otus/freebsd/src/sys/modules/athpfw/athp_QCA6174_hw3.0_board. Then, I compiled athp. |
hm, looks like it's crashing inside rx_ring_fill_n; i wonder why. can you
get a kernel coredump and use gdb on it to figure out the line number?
kgdb /boot/kernel/kernel /var/crash/core.X
then when it loads, do "bt"
…-a
|
That stuff below is more important if you can get me an image of the rx ring calls at the bottom I would like that. |
Do me a favour, Try my branch out. https://github.com/Geramy/athp/tree/NEW_ATHP_ARVIF_LOCK it looks like wmi is using the conf lock. I have removed the conf lock from wmi it will be in master once we confirm it's working 100% I tested it last night and it was working. Let me know if this fixes the issue. |
As of last night I did new commits, as of when did you try this branch, and have you tried the parent master branch, please make sure your on the latest revision. |
I cloned your code just before with: git clone --branch NEW_ATHP_ARVIF_LOCK https://github.com/Geramy/athp Should I try without adding board.bin? |
You could give that a shot but I have a feeling that the card isnt finishing one of the startup procedures and we either arnt sleeping on something we need to or something like that. This is a lock issue. I'll have to purchase that card to verify. Can you provide me the cards model and manufacturer? When I get home in 20 minutes I'll try to patch my branch with a fix also I might be able to find it in a few trys with what you sent me. |
I tried NEW_ATHP_ARVIF_LOCK without adding build.bin but it crashed with the same error as above. Many thanks for all you do to get it works. |
Hey were you able to compile this for freebsd 12? I was able to get it to compile with some changes. But there are no iw tools for pfsense. |
Alas, no. Always these symbols undefined (they should for they come from sys/mutex.h, IIRC). Do you have a branch compilable under freebsd 12? If not, can you tell me the changes you made? I would like to test it just to be sure that the crash doesn't come from an instable feature in freebsd CURRENT. Also, I tried to enable the bluetooth module (I disabled it at the base), but no dice again under freebsd 13. I don't know precisely concerning iw tools but one can set a host AP with pfSense (I thought it used iw). I just lack a suitable interface up to now. :-) |
I have submitted the changes to get it to compile for freebsd 12.0 |
@Emrion have you compiled pfsense before? if_athp also requires alq.so module just so you know. |
Concerning FreeBSD 12: the good new is it compiles now like a charm; the bad one is I get the same crash when I load if_athp. Anyway, it generated a core file and here is the result of kgdb / bt:
I don't know if it'll be of some use. About pfSense: I never compiled it. I think it isn't easy. However, my first trial would be to load the driver compiled under pure FreeBSD 12 into pfSense (the development version which is based on a 12 FreeBSD). |
It's the same issue I'll have to think about this more. |
I think the firmware probe is still failing, I did a checkup on the failure and it looks like it could be because the firmware fails to load. Maybe try another board, can you get the firmware files from the original driver or operating system? |
Try one of these qca6174 bin files one is a board-1 the smaller one and one is board-2 the bigger file. https://drive.google.com/folderview?id=1jSiXYUCR6TtTdveW4dD7NzF1rwh4jdEo |
Thanks but I can't dl them. It asks me a google account... Can you make them public? PS: I somewhat solved my problem by a bhyve VM with debian as guest. It receives the device QCA6174 as passthru and connects it on virtual bridges. But I would prefer a driver that can work under pfSense (upcoming version based on 12.0 FreeBSD). |
Tnx for your hard work, it's working on my freebsd 12 after following all your directions here, now i need to find a way to port this on pfsense somehow, it's not working if i move the modules on my pfsense box, missing alq and firmware say "image firmware table full", @Geramy were you able to compile the kernel for pfsense? |
i don't have any iso, i compiled only the kernel and it's in my google drive, i have installed from original iso that you can download from netgate website and with scp i copied inside my kernel |
Are you able to send me the logs to pfsense? syslog and the like? |
all the logs are here -> https://drive.google.com/open?id=1fM-Jlmf8BY21kIEGueSxFWmrISZqcDj3 in the meantime i have created a script interface=athp0_wlan0 after this i created a script inside /usr/local/etc/rc.d/hostapd-5g.sh #/bin/sh wifi go up and running at startup |
i'm going on with my test, i have 144Mbps at 2,4Ghz channel 11 ht40- but if i change mode to 11a channel 161 i have only 54Mbps |
Have you tried channel 40? I operate my stuff at channel 40 and I believe n worked great. Oh it has to be in n mode only too. Also what is the normal statistics of that card? |
i found out that it was set as 11a instead of 11na but as soon as i start hostapd it go to 11a again even on channel 40 |
lemme go see if I have some uncommitted regdomain.xml changes to enable it for at least the US. Sorry! |
i found that setting channel=48 inside hostapd and start it , it change mode to 11a /usr/local/etc/rc.d/hostapd-5g.sh #/bin/sh and inside /root/hostapd_athp_wlan0.conf interface=athp0_wlan0 the problem was that i had channel=48:ht/40- before inside hostapd conf and starting it resulted in mode changed to 11a without 40 width now i have a 300Mpbs connection on my phone [2.5.0-DEVELOPMENT][root@pfSense.localdomain]/root: ifconfig -v athp0_wlan0 [2.5.0-DEVELOPMENT][root@pfSense.localdomain]/root: ifconfig athp0_wlan0 list regdomain |
Have you tried selecting a channel that is actually ac? |
I'm also testing this. What channel do you suggest? I don't see anything listed that is specifically .11ac. |
i have tried all the channel available from 1 to 165, fcc / etsi of every country .... channel=36 no error from hostapd but as before it work only as 802.11n |
Thank you all for your hard work, I will take a look into this and make any change necessary to get ac working, I will make an implementation and test ticket and please if you could follow up with that ticket in the coming up weeks. I'll submit an update on the ticket once I have it working or once I believe its working. |
Hello everyone! Unfortunately, I had the same crashes than @Emrion, so I tried to download the bin files from your Google Drive @Geramy and... I really don't understand what I am supposed to do with those files :-/ Do I need to rename all of them to match the ko files? Sorry but I am completely lost here :-( Thanks in avance for your response! |
What do you mean we need to do ? i face to the same problem, compil is okay but i got the same problem |
Hi. Can someone point me why it is not compiling with FreeBSD 12 (revision 344331, a little ahead from 12.0.0 RELEASE ) ? I'm using the branch indicated by @Geramy : https://github.com/Geramy/athp/tree/NEW_ATHP_ARVIF_LOCK
My hardware and kernel:
|
I found a dirty way to compile.
|
which combination of board and firmware file worked for you? i have exactly the same issue (crashing in during ring_fill). |
I was not able to get it to work because the firmware driver isn’t capable of multiple vif commands pfsense won’t be able to use the driver until we add vif |
I believe I submitted the correct firmware and board files in my repository. We are still working on merging my changes |
Thanks, @Geramy! I also seem to have the same QCA6174 rev=32 card as @Emrion, however I could not get my card to work even after trying a lot of different I dug deep into the windows 10 and linux drivers for my card and found out the firmware, that the latest ubuntu mate uses is this exact firmware6.bin unfortunately the combination of board.bin and firmware4.bin that worked for @Emrion was never mentioned. I would love to help getting this card to work, it seems like this project is so close :) |
those definitely don't work for me, and didn't for @kiokoman either if I read the comments correctly. is there something I can do to help test and debug things in the meantime? |
The fault is due to a lock that will never unlock basically, it needs some further work on the mutex inside the rx ring involving the buffers. Have you tried my repository? |
yes, I have actually only tried your repository given that it is a bit ahead of this one. I also read every issue on here multiple times. |
Give me some time and I can attempt to fix the issue, I need to purchase a device in Mexico as I am there now, I will need to buy a few AC cards and a device for them to go in to. |
For anyone who is attached to this thread and can see the messages. I will be working on merging the master of this into my branches and see if I can get it to work. I believe master is a lot more stable and ahead of my branch by a lot. |
Hello. I was also having issues building the kernels modules on (This was when I tried loading
|
I think they are obvious problems but... I can't make it to work.
The script build_modules seems to need a 13 kernel version not a 12 (it complains about undefined symbols: MA_NOTOWNED and MA_OWNED)... Is it possible to use it with a 12 version?
With a 13 kernel, I follow the instructions (no errors): running ./build_modules, building the kernel and installing it... But I can't find any file .ko or .bin in athp/otus/freebsd/src/sys/modules/athpfw/.
What I did wrong?
The text was updated successfully, but these errors were encountered: