Add support for bluetooth address setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-snapdragon (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Impact:
Every single dragonboard employs the same physical bluetooth address ("00:00:
Fix:
The attached patches introduce a new DTB binding ("local-
How to test:
First boot an unpatched kernel and check the hci0 address:
$ sudo hciconfig
hci0: Type: BR/EDR Bus: UNKNOWN
BD Address: 00:00:00:00:5A:AD ACL MTU: 0:0 SCO MTU: 0:0
UP RUNNING RAW
RX bytes:0 acl:0 sco:0 events:3 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
then install the patched kernel, reboot, stop at the uboot prompt and issue:
dragonboard410c => ext4load mmc 1:9 ${fdt_addr} /boot/apq8016-
dragonboard410c => fdt addr ${fdt_addr}
dragonboard410c => fdt resize
dragonboard410c => fdt list /smd/pronto/bt
bt {
compatible = "qcom,hci-smd";
};
set the local-bd-address property to the desired new address:
dragonboard410c => fdt set /smd/pronto/bt local-bd-address [55 44 33 22 11 00]
check that the change was effectively applied:
dragonboard410c => fdt list /smd/pronto/bt
bt {
compatible = "qcom,hci-smd";
};
and continue booting:
dragonboard410c => run loadkernel; run doboot
Once the OS is alive, check again hci0 address:
$ sudo hciconfig
hci0: Type: BR/EDR Bus: UNKNOWN
BD Address: 00:11:22:33:44:55 ACL MTU: 1024:7 SCO MTU: 50:8
UP RUNNING
RX bytes:0 acl:0 sco:0 events:45 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
NB: The booting process might change depending on the image/distribution you are using, verify your uboot environment and extrapolate the necessary steps from the above instruction.
description: | updated |
description: | updated |
summary: |
- Can't change bluetooth address + Add support for bluetooth address setup |