Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Bluetooth doesn't work #1

Closed
Espionage724 opened this issue Jun 28, 2017 · 12 comments
Closed

Bluetooth doesn't work #1

Espionage724 opened this issue Jun 28, 2017 · 12 comments

Comments

@Espionage724
Copy link

Seems like there was a bit of work done for the SW3. Just wondering, but what else is needed?

@FlorentRevest
Copy link
Member

It's been a while I haven't worked on the issue but as far as I can remember Bluetooth support on SW3 is blocked because of a problem in the kernel driver that handles the UART communication to the BT Chip. A similar problem prevented battery life on QCOM devices and has been solved by hacking around "bluedroid" for example in https://github.com/AsteroidOS/meta-dory-hybris/blob/master/recipes-kernel/linux/linux-dory/0002-bluesleep-Use-kernel-s-HCI-events-instead-of-proc-bl.patch but the driver written by Broadcom is a bit different. You may find more info in the IRC logs

fergy added a commit to fergy/meta-tetra-hybris that referenced this issue Jul 24, 2017
@fergy
Copy link
Contributor

fergy commented Jul 24, 2017

...also I think that We need here something like this: https://github.com/shr-distribution/meta-smartphone/blob/master/meta-android/recipes-bsp/firmware/bcm4330-firmware_4.1.2.bb to be able to load firmware

@FlorentRevest
Copy link
Member

@fergy : the correct firmware is already provided by "android-tetra" https://github.com/AsteroidOS/meta-tetra-hybris/blob/master/recipes-android/android/android_tetra-lp.bb We definitely don't need this

@fergy
Copy link
Contributor

fergy commented Jul 25, 2017

@FlorentRevest Ok. I will make debug of problem but Kernel is 100% right and no issue neather LP or MM with working BT on Android so We need to check other solutions.

@FlorentRevest
Copy link
Member

I insist on that the kernel is the issue on Asteroid. You need to change the code of the BT driver which currently makes the assumption that you are running an android userspace.
Updating the kernel is not enough to automatically solve our problem.

@fergy
Copy link
Contributor

fergy commented Jul 25, 2017

Ok. As I say, will make deeper debug and compare (probably) not compatible code with something what work. Please let Me know which device work.
Thx

@FlorentRevest
Copy link
Member

dory or bass have working BT but while they use pretty much the same Broadcom chip, firmware and flashing tool, the QCOM kernel drivers (bluesleep for example) work differently so it's hard to compare.

@fergy
Copy link
Contributor

fergy commented Jul 25, 2017

Great. Thank You. Will inspect this issue.

@nicofossa
Copy link

I don't know if it may help, but I did some test some month ago because it wasn't possible to upload the firmware to the chip. I'd achieved that by pulling up a GPIO (I think that could be the sleep pin), then I could upload the firmware (but no bluetooth working) using brcm-patchram-plus.
If it can help you I may try to look for more information on my old build machine

@Technohacker
Copy link

Bluetooth works now? :D

@FlorentRevest
Copy link
Member

Bluetooth has indeed been tested by myself and reported to work by other community members.

@Technohacker
Copy link

Good to hear. Am making a build atm, thanks for the effort! :D

MagneFire pushed a commit to MagneFire/meta-tetra-hybris that referenced this issue Oct 22, 2021
MagneFire pushed a commit to MagneFire/meta-tetra-hybris that referenced this issue Oct 22, 2021
MagneFire pushed a commit to MagneFire/meta-tetra-hybris that referenced this issue Oct 22, 2021
…cm and bcm_bzhw correctly with the IRQ polarities patches. Closes AsteroidOS#1
MagneFire pushed a commit to MagneFire/meta-smartwatch that referenced this issue Oct 24, 2021
…cm and bcm_bzhw correctly with the IRQ polarities patches. Closes AsteroidOS/meta-tetra-hybris#1
MagneFire pushed a commit to MagneFire/meta-smartwatch that referenced this issue Oct 26, 2021
…cm and bcm_bzhw correctly with the IRQ polarities patches. Closes AsteroidOS/meta-tetra-hybris#1
MagneFire pushed a commit to MagneFire/meta-smartwatch that referenced this issue Oct 26, 2021
…cm and bcm_bzhw correctly with the IRQ polarities patches. Closes AsteroidOS/meta-tetra-hybris#1
MagneFire pushed a commit to MagneFire/meta-smartwatch that referenced this issue Feb 10, 2022
…cm and bcm_bzhw correctly with the IRQ polarities patches. Closes AsteroidOS/meta-tetra-hybris#1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants