AsteroidOS / meta-tetra-hybris

OpenEmbedded layer that provides libhybris support for the Sony Smartwatch 3. (Merged to: https://github.com/AsteroidOS/meta-smartwatch)
GNU General Public License v2.0
9 stars 6 forks source link

Bluetooth doesn't work #1

Closed Espionage724 closed 7 years ago

Espionage724 commented 7 years ago

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

FlorentRevest commented 7 years ago

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 commented 7 years ago

...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 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Great. Thank You. Will inspect this issue.

nicofossa commented 7 years ago

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 commented 7 years ago

Bluetooth works now? :D

FlorentRevest commented 7 years ago

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

Technohacker commented 7 years ago

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