Jump to content
  • 0

OrangePi Lite2 & 3 Bluetooth


data
 Share

Question

In an effort to enable Bluetooth on the OrangePi (Lite2 | 3) I am stuck at enabling UART1 via overlay.

According to the schematics, the AP6255 is connected via UART1 (PG6-PG9) to the H6 SoC but not defined in the dtb.

 

Since there is a dtbo which looks promising at /boot/dtb/allwinner/overlay/sun50i-h6-uart1.dtbo I tried adding an

overlay to /boot/armbianEnv.txt - manually and via armbian-config. Both did not work out.

 

In addition,  I also tried adding uart1 to the dtb, without success.

 

What am I missing?

 

 

Link to comment
Share on other sites

Recommended Posts

  • 0
6 hours ago, SchmuseTigger said:

can anybody upload a changed file that I can import? I tried to do that change but nothing happend. 

Bluetooth on Opi3 is already supported out of the box on Linux 5.5-rc1.

For 5.4:

https://megous.com/git/linux/commit/?h=opi3-5.4&id=00f1b53048ebeaec115d705d78a954c2bff944fe

https://megous.com/git/linux/commit/?h=opi3-5.4&id=1f4e6be59748a1695ecf7453a70e1c0f9d73ac14

Link to comment
Share on other sites

Check forum guidelines to use maximum potential!

  • 0

Hello,

i cannot activate bluetooth, since i have no device when i enter:

hcitools dev.

Devices:

 

I have tried newer kernel versions, even the nightly build:

Linux version 5.4.8-sunxi64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.7.007 SMP Tue Jan 7 01:51:27 CET 2020
Linux version 5.5.0-rc5-sunxi64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.8.012 SMP Mon Jan 13 00:36:15 CET 2020

Linux version 5.5.0-rc2-sunxi64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.5.365 SMP Tue Dec 31 20:23:16 CET 2019

Linux version 5.5.0-rc2-sunxi64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.7.007 SMP Tue Jan 7 02:01:22 CET 2020

Linux version 5.5.0-rc2-sunxi64 (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.5.002 SMP Thu Jan 2 02:26:13 CET 2020

 

at least, i get an mac adress for the hci1 device.

hci1:    Type: Primary  Bus: UART
    BD Address: 43:45:C5:00:1F:AC  ACL MTU: 0:0  SCO MTU: 0:0
    DOWN RAW
    RX bytes:1306 acl:0 sco:0 events:144 errors:0
    TX bytes:30126 acl:0 sco:0 commands:144 errors:0

hci0:    Type: Primary  Bus: SDIO
    BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
    DOWN
    RX bytes:0 acl:0 sco:0 events:0 errors:0
    TX bytes:0 acl:0 sco:0 commands:0 errors:0

but i cannot activate it.

 

an the firmware seems to be loaded:

[   16.608642] Bluetooth: hci1: BCM: failed to write update baudrate (-110)
[   16.608648] Bluetooth: hci1: Failed to set baudrate
[   16.724719] Bluetooth: hci1: BCM: chip id 130
[   16.726880] Bluetooth: hci1: BCM: features 0x0f
[   16.749908] Bluetooth: hci1: BCM4345C5
[   16.749914] Bluetooth: hci1: BCM4345C5 (003.006.006) build 0000
[   19.953325] Bluetooth: hci1: BCM4345C5 (003.006.006) build 0038
[   19.954199] Bluetooth: hci1: BCM: Using default device address (43:45:c5:00:1f:ac)

 

and the service seems to be startet:

root@orangepi3:~# sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-01-14 07:38:11 UTC; 8min ago
     Docs: man:bluetoothd(8)
 Main PID: 693 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 2149)
   Memory: 4.1M
   CGroup: /system.slice/bluetooth.service
           └─693 /usr/lib/bluetooth/bluetoothd

Jan 14 07:38:09 orangepi3 systemd[1]: Starting Bluetooth service...
Jan 14 07:38:11 orangepi3 bluetoothd[693]: Bluetooth daemon 5.50
Jan 14 07:38:11 orangepi3 bluetoothd[693]: Starting SDP server
Jan 14 07:38:11 orangepi3 systemd[1]: Started Bluetooth service.
Jan 14 07:38:11 orangepi3 bluetoothd[693]: Bluetooth management interface 1.14 initialized

 

any hints for me?

Thanks in advance!

Edited by hsimon806
Link to comment
Share on other sites

  • 0

I can't use BT in OPi 3

 

I added uart1 in armbianEnv.txt

 

  ___  ____  _   _____
 / _ \|  _ \(_) |___ /
| | | | |_) | |   |_ \
| |_| |  __/| |  ___) |
 \___/|_|   |_| |____/

Welcome to Armbian 21.05.6 Hirsute with Linux 5.13.6-sunxi64

System load:   6%           	Up time:       3 min
Memory usage:  7% of 1.94G  	IP:	       192.168.20.50
CPU temp:      69°C           	Usage of /:    23% of 15G
RX today:      0 B

Last login: Sat Jul 31 08:20:21 2021 from fe80::18b0:75fb:8156:393%wlan0
yaofei@opip3:~$ hciconfig
hci1:	Type: Primary  Bus: UART
	BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
	DOWN
	RX bytes:0 acl:0 sco:0 events:0 errors:0
	TX bytes:14 acl:0 sco:0 commands:2 errors:0

hci0:	Type: Primary  Bus: SDIO
	BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
	DOWN
	RX bytes:0 acl:0 sco:0 events:0 errors:0
	TX bytes:0 acl:0 sco:0 commands:0 errors:0

yaofei@opip3:~$ dmesg | grep brcm
[    6.650807] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.839304] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.839533] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    8.840043] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3

 

Link to comment
Share on other sites

  • 0
On 7/31/2021 at 4:23 PM, mantouboji said:

I can't use BT in OPi 3

 

I added uart1 in armbianEnv.txt

 

  ___  ____  _   _____
 / _ \|  _ \(_) |___ /
| | | | |_) | |   |_ \
| |_| |  __/| |  ___) |
 \___/|_|   |_| |____/

Welcome to Armbian 21.05.6 Hirsute with Linux 5.13.6-sunxi64

System load:   6%           	Up time:       3 min
Memory usage:  7% of 1.94G  	IP:	       192.168.20.50
CPU temp:      69°C           	Usage of /:    23% of 15G
RX today:      0 B

Last login: Sat Jul 31 08:20:21 2021 from fe80::18b0:75fb:8156:393%wlan0
yaofei@opip3:~$ hciconfig
hci1:	Type: Primary  Bus: UART
	BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
	DOWN
	RX bytes:0 acl:0 sco:0 events:0 errors:0
	TX bytes:14 acl:0 sco:0 commands:2 errors:0

hci0:	Type: Primary  Bus: SDIO
	BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
	DOWN
	RX bytes:0 acl:0 sco:0 events:0 errors:0
	TX bytes:0 acl:0 sco:0 commands:0 errors:0

yaofei@opip3:~$ dmesg | grep brcm
[    6.650807] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.839304] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.839533] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    8.840043] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3

 

 

sorry. 

 

Sine my GPS module attached to S-UART-TX and S-UART-RX, I added the uart1 overlay .

 

Now I changed to GPS to UART3, remove uart1 on armbianEnv.txt , the bluetooth works well .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...