-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Orange Pi 5 Pro WiFi / Bluetooth #841
Comments
My DMESG log |
Try to mark hold some packages on first run
you can try to figure out what package are upgraded and hold them |
No, this is not the problem of kernel. I look around other issues and found this This is exactly what i encoutered:
|
it was keeping power on USB..... Include this line on DTS:
Change to this:
|
I have wifi problem with usb wifi 6 dongle (mt7921) How do I temporarily fix it? I'm on orange pi 5 by the way, latest update installed fresh today. |
I have the same problem. Also after reboot the Bluetooth mac address changes so previously connected keyboard/mouse cannot be recognized. I found the work around about bluetooth at #112 . but the wifi problem still exists. |
The Orange Pi 5 Pro uses BCMDHD SDIO as the wireless driver so i honestly don't expect WiFi to work at all. This is because BCMDHD PCIE is enabled and used by multiple other devices. The BCMDHD SDIO and PCIE drivers can not be enabled at the same time. Orange Pi themselves use a different kernel just for the Orange Pi 5 Pro for this very reason. But it's way to much work to manage two extra kernels just for the Orange Pi 5 Pro. I think a fix would be to blacklist BCMDHD PCIE and compile BCMDHD SDIO as a DKMS module. |
I have an Orange PI 5 Pro, and after a week of tinkering, I managed to get the WIFI to work after a reboot. However, I lost analog audio. Disclaimer: I'm a .net dev and I'm absolutely a noob in terms of Linux. What I did was to modify the device tree: From:
to
I got that after comparing the orange pi device tree with the one on this distro. Of course I get an error: I also tried recompiling the kernel with
...but then I lost wifi completely. Hopefully there's a way to get both, but this is my first time doing this stuff, so not sure how to keep troubleshooting this. Thanks! btw, thank you for your work!! |
I started to make a dkms package to fix this issue, it's still a work in progress. |
I'm starting to think there is a device tree issue with the configuration of SDIO. [ 16.378317] bcmdhd_sdio: loading out-of-tree module taints kernel.
[ 16.388153] [dhd] _dhd_module_init: in Dongle Host Driver, version 101.10.591.52.27 (20240409-1)(20240411-2)(d83d8d7)
/var/lib/dkms/bcmdhd-sdio/101.10.591.52.27-1/build/src compiled on Jul 15 2024 at 00:52:07
[ 16.388184] [dhd] STATIC-MSG) dhd_static_buf_init : 101.10.361.36 (wlan=r892223-20231107-1)
[ 16.388212] [dhd] STATIC-MSG) dhd_init_wlan_mem : prealloc ok for index 0: 1102848(1077K)
[ 16.388225] dhd_wlan_init_gpio: unknown oob irqflags !
[ 16.388227] [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=-1, oob_irq_flags=0x0
[ 16.388229] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 16.388231] [dhd] dhd_wifi_platform_load: Enter
[ 16.388234] [dhd] Power-up adapter 'DHD generic adapter'
[ 16.388331] [dhd] dummy_probe: func->num=0x3;
[ 16.388334] [dhd] dummy_probe: class=0xff; vendor=0x2d0; device=0xffff
[ 16.388391] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 16.388395] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 16.595760] [dhd] wifi_platform_set_power = 1, sleep done: 200 msec
[ 16.595777] [dhd] wifi_platform_bus_enumerate device present 1
[ 16.595780] [dhd] ======== Card detection to detect SDIO card! ========
[ 18.679311] [dhd] failed to power up DHD generic adapter, 0 retry left
[ 18.695570] [dhd] wifi_platform_set_power = 0, delay: 10 msec
[ 18.695583] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ 18.706698] [dhd] wifi_platform_set_power = 0, sleep done: 10 msec
[ 18.706713] [dhd] wifi_platform_bus_enumerate device present 0
[ 18.706716] [dhd] ======== Card detection to remove SDIO card! ========
[ 18.706719] [dhd] failed to power up DHD generic adapter, max retry reached**
[ 18.706723] [dhd] unregister wifi platform drivers
[ 18.706725] [dhd] wifi_platform_bus_enumerate device present 0
[ 18.706727] [dhd] ======== Card detection to remove SDIO card! ========
[ 18.706732] [dhd] _dhd_module_init: Failed to load the driver, try cnt 0
[ 18.706735] [dhd] _dhd_module_init: Failed to load driver max retry reached**
[ 18.706738] [dhd] STATIC-MSG) dhd_static_buf_exit : Enter
[ 18.706808] [dhd] _dhd_module_init: Exit err=-19 |
Is it possible to use brcmfmac for the orange pi 5 pro wifi driver? |
I doubt it, but I'd love to be proven wrong. This BCMDHD driver is terrible. |
The root cause of this error appears to be an incomplete unbinding of the SDIO device. While a shutdown ensures all devices are unbound, a reboot doesn't always reset the previous MAC address and other settings, leading to this issue. To fix this, run Note: Tested with brcmfmac driver. |
This is great! Thanks for finding this, I'll test it out after work! But now the root cause has been found, and we can start looking into the driver in depth to implement a proper fix. |
So I have an Orange Pi 5 Pro, and I installed the 24.04 server image. The Wifi worked out of the box for me once I installed network-manager. However, bluetooth is not showing up:
Relevant dmesg logs from startup:
Relevant dmesg logs after running
|
I forgot to pre-install the rfkill package, so bluetooth will not work in the startup service. However I have released an update, so if you update your system and reboot it will be fixed. |
Thank you that fixed it for me! |
The Wi-Fi issue on the Orange Pi 5 Pro doesn’t seem to be a simple problem... The standard logs do not provide enough information, so I want to perform detailed debugging of |
@jamstec0 same here for me using OrangePi 3b v2.1 (AP6256 module) ... wifi works great BT doesn't! |
Device: Orange Pi 5 Pro
Version: Ubuntu 24.04
Problem: First run with Ubuntu 24.04, i still have wifi on, and connect successfully
but after run
sudo apt update && sudo apt upgrade
the wifi is lost, cannot find in usb or pci list, nmtui neither
The text was updated successfully, but these errors were encountered: