-
Notifications
You must be signed in to change notification settings - Fork 17
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
Kernel 5.3.1 and bluetooth #27
Comments
I will have a look at it when possible. I think brcm_patchram_plus should not be needed or dtb is with the wrong configuration. |
ok, i just gave it a new try, firmware (bt) is missing for the mainline and not to mention that HDMI is broken. bpi-m2-zero-v4.dtb_5.3.1.tar.gz
|
Bluetooth and HDMI fixed. No need to patchram for 5.3.1.
|
Thank you all is good except...
Looks like uinput kernel module missing.
Could you please make this module? |
done. Install with: |
I have played with BT and unfortunately, there is some issue. Here is my failed attempt to connect to a JBL speaker and Phone:
The connect fail. Something is missing. i made sure pulseaudio was running. |
Mine is good with connection and pairing but I can't make it work with sound playing.
So, all seems OK in logs but...
And pulseaudio process also goes down. Also, I noticed that when I activate something with BT (pulseaduio, bluetoothctl) the WIFI connection sometimes interrupts responding (strange delays when i type in ssh console). And, the same is for 4.20.17 and for 5.3.1 so I have an idea that something is wrong with firmware or sdio.txt. Here are mine I use.
|
Interesting. I could see the first time you tried to connect failed. And the next attempt was a success.
Then:
I read somewhere you must have the device listed here in order to play sound, i need to find this info, but i think is a pulse configuration.
Play audio to HDMI
your command
So, i think the problem is the right pulse configuration that must be done to make a link to the hw be available. Configuration for mainline:
|
@Bahir https://github.com/RPi-Distro/firmware-nonfree/blob/master/brcm/brcmfmac43430-sdio.txt |
With this:
|
Did you get all files from https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm or just the brcmfmac43430-sdio.txt ? |
Yes I've got all of the files. |
Restore the previous firmware and try this and check any improvement on wlan:
|
That was exactly my configuration (long quotes story I posted today). My file I posted the content of the file So, what do you suggest is my original configuration and it has no luck. |
Not exactly the same:
with the symlink there will be a direct firmware load and can have different behavior than the fallback, that was a hope. |
Just for information, i just repeated the exact same instructions with another board (not bpi-m2z) and i confirm the paplay /usr/share/sounds/alsa/Front_Center.wav is enough to play sound in the CHARGE3. No need for the device to be shown in rfkill list. Update info Anyway, you can install hcidump and run it in the second instance of ssh and monitor the messages during play and try to get a clue where it breaks. Maybe you can re-install pulse and Bluez and bt tools, and check again until i find out why i can't connect.. |
I changed it as you suggested (made symlinks) now dmesg is
But the behavoiur is the same
Also, I tried to install fresh bluez (5.51 from git) and bluez-alsa plugin (https://github.com/Arkq/bluez-alsa) Seems like firmware issue or bluez issue. |
FYI, i have the same problem with the other board (that had kernel 4.4 and speaker works with BT) now running kernel 5.3.1. |
@Bahir |
Sometimes i see this: Enable=Source,Sink,Media,Socket,Gateway,Control |
@Bahir Pulse is still running after several play commands: The CHARGE3 battery is very low, could be this.... Just turned off now. So there is hope... |
Forgot to mention i am using eth0 , wlan0 is connected to a second network but not in use.
|
Mine is the same effect but with some distortion (like Matrix sound). As for me it not depends on battery level. |
Ok, i am now testing with wlan0. BT plays most of the time but sometimes very laggy. There must be a way to parametrize this or change this delay. To fix the ssh issue you have, edit the fie /etc/network/interfaces and uncomment the two lines: If there isn't a way to change this lag (BT) i will try to create Ubuntu EON Image if that is possible with armhf. No time frame for this. |
Small update. I just tried to play some mp3 and the sound is really bad, maybe similar to what you described. I used sox
I played this: https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3 |
Today I pushed an 8GB Image here: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v2.4 You still need to install ALSA, Bluetooth and then test the latest Bluez stack. So we can see if it has been fixed with the latest and cutting edge. The Image is a bare minimum Image that can suit every need, Desktop side or Server side |
Install BT stack:
then start configuring... |
Update.
|
I have no idea. Now it is SINK
|
I've noticed that And, now I suddenly started to get these errors (without touching any configs and no new packages installed, just played with bluetoothctl connecting headset and played sounds).
Reboot did not help. The error is still here. |
I think Bluetooth (armhf) is buggy. In Arm64 BT works pretty good and stable. You could try:
|
and check for some error:
|
A bit of progress. I connected antenna to bpi and now bluetooth does not crash while playing sound, like |
Hey, with the new Kernel 5.3.18 I was able to pair and connect to a bluetooth speaker. Why is it that choppy ? I wan't to detect objects with an attached Coral Edge TPU from Google and what to hear the result over the speaker.
|
The same problem with a connected Bluetooth Headphones... I also tried out with connected monitor on the banana pi with disabling wlan0. But still the same. The sound is always very choppy
|
Please, try this possible fix:
Correction
|
At the beginning it seems to fix the problem. Sound started with good quality but after maybe 1 sec the sound is interrupted completely and the device lost the connection to the banana pi. Bluetoothctl is no longer connected.
|
Looks like BT speed is still wrong. I have seen 921600 and 1500000 max speed for this device. You could try different speed values.
PS: make a backup file |
After decompiling
I changed the value using "jed Editor" as you said from:
to
after saving and recompiling with
There were several warnings but the file was created.
after copying back to /boot/ and rebooting the controller wasn't available anymore.. What went wrong ? |
Any ideas ? |
Nothing is wrong with your procedure. DTB seems to be off a bit somehow, i will investigate. Can you try the latest 5.6.0-rc3 to see if you get better results? Make a backup. |
Updating the Kernel and performing
and reboot results in this error:
|
Please, check the files in boot, zImage is missing:
|
You should have something like this:
|
Make sure the symlinks are ok, You can do this in /boot: (or /media/boot in case you have the sd card attached to a PC box)
and then boot it again. Also, check for SD card errors with fsck... |
check the /boot after the Update of the Kernel before rebooting or after rebooting and receiving the showed log ? |
The deb install has the wrong symlink, to fix this, you have to do this:
You cannot boot anymore if you already rebooted, you should attach the sd card to you linux box and go to /boot (SD card) and repair the symlink as described above. |
I don't have any Linux Box beside the BPZ. I'm going to restored the SD card to a backup and will try to update Kernel + your Fix before rebooting |
You can also test the new Kernel 5.6.0-rc4 from here: I think i fixed the install issue. |
This version worked well.
I have a question. I have seen this since a few days....
?? |
Audio is still not working correctly. Sound starts for 1 maybe 2 sec and then aborts including disconnecting the bluetooth device. |
So, nothing changed with the new Kernel 5.6.0-rc4 ? Maybe the problem is in the BT stack for the 32-bit version. Let's try 20.04 and see if there is an improvement. BT speed is 1500000 in DT. Regarding the banner, it is from Ubuntu. I've never touched snap... |
Sadly, noting has changed. Still no continuous sound... |
Good time !
System:
Devices are missing. Please advise what can be done? I need to connect a wireless keyboard to my device, I can't do it... Device Bananapi m2 zero Thanks in advance for any response! |
Detailed system information:
|
I have not followed the progress made in the mainline kernel. The KEY to fixing BT issues is finding the correct Wifi/BT firmware. What i can see is your DTS is missing activating BT. Maybe after all this time, Wifi/BT hardware version has changed?
|
Board: BPI M2 Zero.
I'm trying to setup bluetooth.
The same command worked fine with 4.20.17
brcm_patchram_plus -d --patchram /lib/firmware/ap6212/bcm43438a1.hcd --enable_hci --bd_addr b8:27:eb:b7:f9:60 --no2bytes --tosleep 5000 /dev/ttyS1
With 5.3.1 it produced infinite output
writing 01 03 0c 00 writing 01 03 0c 00 writing 01 03 0c 00 writing 01 03 0c 00 writing 01 03 0c 00
And is not finished with "Done setting line discpline"
The text was updated successfully, but these errors were encountered: