-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
BananaPi BPI-M4-Zero: Fixup U-Boot and Linux DTS/DTSI and add WiFi / BT overlay
#7332
Conversation
I didn't add this to armbian/firmware as it might not play nice with other peoples units. Signed-off-by: Patrick Yavitz <[email protected]>
Signed-off-by: Patrick Yavitz <[email protected]>
Signed-off-by: Patrick Yavitz <[email protected]>
sun50i-h618-bananapi-m4-sdio-wifi-bt.dtso Signed-off-by: Patrick Yavitz <[email protected]>
Signed-off-by: Patrick Yavitz <[email protected]>
Reasons unknown it will not load using Armbian. Until figured out, disable it. Signed-off-by: Patrick Yavitz <[email protected]>
Make it Armbian compatible Signed-off-by: Patrick Yavitz <[email protected]>
@The-going in case you have an idea which patch could cause this to not work. |
I think the problem may be a patch conflict. Even if this option works well, there is no guarantee that a fix will not be added to the "*.dtsi" file tomorrow and your final DTS will not be as expected. |
Thank you. But I won't be able to check anyway. |
It may not be the patches. After powering down the unit and letting it cool down and dropping a heat sink on it, the Bluetooth started coming up under Armbian. Be it still not consistently. Problem is I made edits to the defconfig and removed a bunch of BT / HCI UART modules from it. I need to run some tests with the default defconfig now and see what happens. |
It's hard for me to advise. |
@pyavitz Patrick, a possible overheating option may be an inconsistent output and antenna impedance. |
The voltage looks correctly set to me. I checked to see how Raspberry Pi was handling the bluetooth bit of the module and I noticed they don't appear to add the following to the node.
But they also load bluetooth VIA script when using the kernel in their REPO. I'll touch base again after some testing. |
So I did a partial re-write of the DTS as I was still seeing some random baud rate errors in my builds. This appears to be fixed now, but when I drop these changes into Armbian it still doesn't work. It is almost as if something is preventing it from loading? or the timing is off and it fails to load? One test I ran was purging the kernel debs and installing my own and in that test bluetooth loaded as it should. I'm kind of at a loss of ideas at this point. I could do a PR with the new DTS and U-Boot, but it's not gonna change anything on the bluetooth front, so it feels a bit pointless to bother doing so. |
Let's try to check the patches.
Try to take the DTS from a working device.
If you don't find anything at all, maybe I should try to compare these different patch sets? |
armbian-boot.txt The patches I use; https://github.com/pyavitz/debian-image-builder/tree/feature/patches/allwinner/6.11 Nothing is really standing out to me. I've disabled patches in Armbian that I thought might be impeding, but nothing has come from it. I've tried adjusting the defconfig when it comes to bluetooth related modules but that has also not achieved anything on a consistent level. |
@pyavitz Stupid question: Which version is your own kernel 6.11 or 6.11.2 There are some changes that may affect the situation. |
Currently; 6.11.2 |
This adds SDIO WiFi / BT support VIA overlay for the REV2 variant of the board.
BT is currently
disabled
To enable overlay: /boot/armbianEnv.txt
Or use armbian-config
Current issues:
Bluetooth for reasons unknown will not come up on Armbian and because of the intensive "ridiculous?" size of the patch set, it will take me sometime to figure out the whys.
The WiFi module uses the same firmware as the Pi5 and depending on the
distro release
used, the reg domain can sometimes be difficult to set. If not set properly it will produce the following dmesg spam.https://lore.kernel.org/all/[email protected]/T/
To resolve this one can add the following to the /boot/armbianEnv.txt file.
Example:
This for whatever reason doesn't appear to work when using Debian Bookworm.
When I find the time, I'll come back to the BT issue and try to isolate the problem. In my own builds there is no issue here, but I'm also not using 400+ patches. I use 10 patches and the latest STABLE kernel.