-
Notifications
You must be signed in to change notification settings - Fork 28
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
Pi 5 STA doesn't get IP and gets disconnected #105
Comments
Semi-offtopic but I'm trying to get this working on the CM5 system. You wouldnt be able to share you dts file you made would you? As for your issue - you need to load the wireless cfg80211 modules with the country code specified. It is available as a kernel module for the most part. The CC error will then disappear and you can then set the channels properly. |
Hello @HookdomPonix thank you for your answer, i will make a few more test in the week to try to make it working, but i'm getting crazy with this problem. I rebuilt the driver with 1.5.2 and still same problem, but not the same errors in the log except for the Ignore Connect event with SME. Same errors on both with 2 Pi 5 and 2 Pi 0 2W on 6.6.y I've been trying to build on Pi 0 2W and Pi 5 and now i'm trying with an older kernel to reproduce Alfa Network image with a 5.15 Linux Kernel (in case a behavior has changed between 5.1 and after 5.1). I can share my Pi 0 2W and Pi 5 DTS if that's what you want ? I will check about cfg80211 but i thought i was loaded on boot for this one. As in the official Alfa Image they don't use modprobe to load this. |
Good morning @vinc3yz I wouldn't mind seeing the Pi5 DTS - that said, I got around the issue by changing the &spi to &spi0 and deleting the status and such from the second spi0 entry. I am now stuck at the same place you are. As far as I can tell, what is happening is EVERYTHING works until you start sending TCP/IP traffic on the Pi5/CM5 platform. I believe what's happening is the driver switches its regular SPI bus functionality out for the DMAC IP stack. When it does so the DMAC IP stack doesn't work right, probably due to differences in usage of the RP1 chip on the Pi5. I have tried many different SPI clock speeds and a complete second unit (WisGate Connect mainboard) to see if this is addressable. Teledatics is also looking at it at this time. Also, are you using the stock Pi image? If so, you can set the regulatory code with raspi-config. Kernel 6.x handles the regulatory code differently if you aren't using raspbian and this option must be set in /etc/modprobe.d/cft80211_regdomain.conf
|
More data in this. Added the spi alias back to the bcm2712 dtb so the newracom dts would load again without mods. It did not help. |
@HookdomPonix Hello, thank you for your informations, maybe we can help each other and troubleshoot to make it finally working. I'm rebuilding a kernel and checked for Cryptographic API in Kernel Features. But i'm pretty sure that it's probably possible to make it working. Morse Micro has an Halow Module that was only working on Pi 4 or older, and they made it work on the Pi 5 https://community.morsemicro.com/t/halow-integration-on-raspberry-pi-5/88 I'm pretty sure it should be possible with the Alfa module. Here is my newracom pi5.dts : `/dts-v1/; / {
};` If this is working this command should return nrc-cspi
I disabled the two SPI Bus as there is spi0 and spi10 on the Pi 5 where the others Pi have only 1 SPI Bus Don't forget to activate the debug messages in the debugs variables that are in the start.py script PS : Updated the .dts at 12:07 (i gave an incorrect one) |
Thats very promising - I was concerned that some of the issues with the RP1 chip and SPI might be conflicting with the driver. This seems unlikely to be a long term show-stopper as the MM chipset works. I was also able to get around the dts issue and able to use the factory file by adding the alias for spi (no number added) back to the CM5 modules dtb main device tree. But it just points to spi0, which means changing spi to spi0 works just as well. Here is what I believe so far - everything works for me (and you) until TCP/IP traffic is sent using the DMAC IP stack. DMAC reports that the buffer is misaligned and then we start failing to transfer the queue. I have teledatics looking at this too. So to summarize, regular comms with the board for hostapd or wpa_supplicant work fine. We associate the station with the other system in ah mode, and everything seems to work. Then we explode in the nrc_hif_work thread as we try to use DMA to move the actual traffic over the network link. |
Do you get IP assigned ? Like do you have an IP assigned if both AP and STA mode when connecting to the AP ? How did you built your kernel to recompile the driver ? I will try to test and redo all the steps to make it work on Pi 0 2W which use Pi 3B CPU, if it works it might be hardware differences between Pi 5 and this, but last time i tried i got the same error with IP not getting assigned, so i presume that there is maybe a problem in how this driver is developed. Did you got any error during compilation of the driver ? |
I’m using the stock kernel for the Pi5. I use bridging and mesh mode - so i don’t DHCP an IP so i’m don’t believe i would get one. if I tried. What i believe is happening is ieee80211* traffic is all working right, but the instant you try using any TCP/IP traffic the driver enqueues the traffic stream with the Linux Kernels interface to the Analog Devices DMA (dma02) device. This is when it all explodes. Setting different SPi bus speeds appears to have no impact. |
Okay thank you for your informations. It gives me help, so i assume you're also on 6.6 kernel. I will post my updates soon |
Hello i have been able to almost adapt to RPI 5 on 6.6.51 kernel version. Board used: Alfa AHPI7292S
So driver loads on both system because it was compiled for this version :
AP : I feel like it's not setting up the gateway properly but wlan0 gets instanciated.
STA : block at waiting for IP keeps disconnecting and reconnecting to halow_demo ssid
I get authentiacted assion with an id generated on AP, but the STA doesn't get IPv4 adressed, or IPv6 and IPv4 gateway fixed
dhcpd has been modified to udhcpd on Bookworm, can it be the issue ?
I get Ignore event : ignore connect when using userspace SME, is it beause i'm on 64bit and i absolutely need a pi with 32 bit userspace ? Thank you very much
The text was updated successfully, but these errors were encountered: