Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cubietruck onboard bluetooth with mainline kernel

Featured Replies

Has anybody got this working with mainline kernel? When I do:

 

brcm_patchram_plus -d  --patchram bcm20710a1.hcd --enable_hci --bd_addr 11:22:33:44:55:66 --no2bytes --tosleep 1000 /dev/ttyS1
 
I get this:
 
option patchram with arg bcm20710a1.hcd
option enable_hci
option bd_addr with arg 11:22:33:44:55:66
option no2bytes
option tosleep with arg 1000
/dev/ttyS1 
Previous discipline = 0
Done setting line discpline
Current discipline = 0
Waiting CTS...
 
And there it stops. No dev hci0 created. I woulb be thankful for any hints that point me in the right direction.
 
Paul
  • Author

Muchissimas Gracias, Igor! Will have a look into this later on. Thanks again for your great work!

Onboard BT will be supported with new mainline kernel release (I mean Armbian release, it's supported for self-compiled kernels now), you'll have to edit /etc/default/brcm40183 and use ttyS2 as Bluetooth port.

But FYI Bluetooth audio is not supported on mainline - it requires I2S support, which is not present (and developer that tried to implement it said it won't be ready soon).

  • Author

Well, I tried a lot. Compiled new kernel 4.6, patched the .dtb, did a lot of reading - now I am giving it up. No success. I whished I could come up with a step-by-step howto, but now I think I will just buy a cheap usb bluetooth dongle.  

 

It will always give me this:

hciattach /dev/ttyS2 any                                                                                                     :(
Can't get port settings: Input/output error
Can't initialize device: Input/output error

Compiled new kernel 4.6, patched the .dtb

4.6 is dev branch and it doesn't have necessary patch, while "next" branch does.

 

Last time I tested it worked for me with following unit file (will work on Jessie, Stretch (testing) or Xenial):

➜  ~  % cat /etc/systemd/system/brcm40183-patch.service
[Unit]
Description=Patch firmware for brcm40183 Bluetooth adapter
Before=bluetooth.service

[Service]
Environment=MAC_ADDR=11:22:33:44:55:66
Environment=PORT=/dev/ttyS1
EnvironmentFile=/etc/default/brcm40183
TimeoutStartSec=60
Type=simple
ExecStartPre=/usr/local/bin/brcm_bt_reset /dev/${PORT}
ExecStartPre=/bin/echo -en "" > /dev/${PORT}
ExecStartPre=/usr/local/bin/brcm_patchram_plus -d --patchram /lib/firmware/ap6210/bcm20710a1.hcd --no2bytes --tosleep 1000 --bd_addr ${MAC_ADDR} /dev/${PORT}
ExecStart=/usr/bin/hciattach -n /dev/${PORT} any

[Install]
WantedBy=bluetooth.target

and configuration file

➜  ~  % cat /etc/default/brcm40183
MAC_ADDR=43:29:B1:E6:A1:02
PORT=ttyS2
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.