[Shinano][Aries] Using bluetooth blobs makes bluetoothd crashing

RESOLVED WONTFIX

Status

Firefox OS
Bluetooth
RESOLVED WONTFIX
3 years ago
2 years ago

People

(Reporter: gerard, Assigned: shawnjohnjr)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
> 02-13 16:01:27.439  1418  1420 E bluetoothd: malloc failed: Out of memory
> 02-13 16:01:27.439  1418  1418 E bluetoothd: get_profile_interface(BT_PROFILE_SOCKETS_ID) failed
(Assignee)

Comment 1

3 years ago
Can you provide STR?
Flags: needinfo?(lissyx+mozillians)
(Reporter)

Comment 2

3 years ago
Push libbt* from backup-aries or backup-shinano, and see everything exploding when enabling bluetoth
Flags: needinfo?(lissyx+mozillians)
(Reporter)

Comment 3

3 years ago
and bluetooth.default.so of course
(Assignee)

Comment 4

3 years ago
I don't have these devices, can you provide logcat log from the beginning when you enable bluetooth?
(Reporter)

Comment 5

3 years ago
Created attachment 8569847 [details]
bluetoothd3.log

Comment 6

3 years ago
for BT there is no need to use prebuilt blobs 
code for BT is on 
https://android.googlesource.com/platform/hardware/broadcom/libbt/

you have to get the clean bt patch from 
https://github.com/sonyxperiadev/kernel/commits/aosp/LNX.LA.3.5.1-01110-8x74.0
commits 
0e7d91315c2ccf2fe51bfdac6346d95fa402354f

and user space config
https://github.com/sonyxperiadev/device-sony-shinano/tree/master/bluetooth
(Assignee)

Comment 7

3 years ago
(In reply to Alin Jerpelea from comment #6)
> for BT there is no need to use prebuilt blobs 
> code for BT is on 
> https://android.googlesource.com/platform/hardware/broadcom/libbt/
> 
> you have to get the clean bt patch from 
> https://github.com/sonyxperiadev/kernel/commits/aosp/LNX.LA.3.5.1-01110-8x74.
> 0
> commits 
> 0e7d91315c2ccf2fe51bfdac6346d95fa402354f
> 
> and user space config
> https://github.com/sonyxperiadev/device-sony-shinano/tree/master/bluetooth

As far as I know, the bug report wants to bring FM radio feature (it seems that FM driver is part of bluedroid stack?), so this is why he is trying to put blob. Actually our build can work fine with Aries. Do you have any idea regarding FM driver?

Comment 8

3 years ago
AOSP does not support FM radio yet so no work has been done in this area
(Assignee)

Comment 9

3 years ago
I don't think we can do much about the blobs now.
Flags: needinfo?(lissyx+mozillians)
(Reporter)

Comment 10

3 years ago
We should still investigate to make use of code that is closer to the platform.
Assignee: lissyx+mozillians → shuang
Flags: needinfo?(lissyx+mozillians) → needinfo?(shuang)
(Assignee)

Comment 11

3 years ago
(In reply to Alexandre LISSY :gerard-majax from comment #10)
> We should still investigate to make use of code that is closer to the
> platform.

If you change bluetooth backend and load Bluetooth HAL library by in-gecko way, that should work for AOSP HAL interface library (without bluetoothd). I remember you said you tried in-gecko and Bluetooth didn't work, so I'm not sure why actual changed in their blobs.
Flags: needinfo?(shuang)

Comment 12

3 years ago
if you use my mentioned commits then you donĀ“t need any blob
(Reporter)

Updated

3 years ago
Blocks: 1143472
(Reporter)

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.