Larry Bank

OPZ+2 H5 onboard bluetooth support?

Recommended Posts

Hello everyone,

 

I managed to have armbian running on my H5, nearly everything is fine so far, boots from NAND, have NodeJs perfectly running, but i do need to have Bluetooth support, basically that was a reason why i got the board. Anyone can tell me how to enable BT support from command line please?

 

Regards,

Evi

Share this post


Link to post
Share on other sites
3 hours ago, Evi said:

Anyone can tell me how to enable BT support from command line please?


It is not implemented yet. You can use some USB based until then - it should work out of the box. You only need to enable Bluetooth support within armbian-config or install appropriate userspace packages manually.

Share this post


Link to post
Share on other sites

Is there an issue for this or some other way I can track it's status?

 

I'd really like to help and get this working, but I am having trouble getting started.  I have setup the build environment and have created images for the OPiZero2+H5 but have no idea what to try to get BT up and running.  There are scattered hints here in the forums, but most are over my head.

 

Is there a resource that would guide me in the right direction?

 

Thanks.

 

 

Share this post


Link to post
Share on other sites
On 2/18/2018 at 9:48 AM, happyzax said:

Is there an issue for this or some other way I can track it's status?

 

I'd really like to help and get this working, but I am having trouble getting started.  I have setup the build environment and have created images for the OPiZero2+H5 but have no idea what to try to get BT up and running.  There are scattered hints here in the forums, but most are over my head.

 

Is there a resource that would guide me in the right direction?

 

Thanks.

 

 

Happysax I am trying to contribute also and I just came across in the armbian doc with this: 

 

https://docs.armbian.com/Process_Contribute/

 

I’m still learning, yet see if that would help

Share this post


Link to post
Share on other sites

enable overlay uart 1

and add

param_uart1_rtscts=1

 

to armbianenv.txt

 

and adjust /etc/init.d/ap6212-bluetooth so it looks like this

 

  # Start patching
        rfkill unblock all
        echo "0" > /sys/class/rfkill/rfkill0/state
        echo "1" > /sys/class/rfkill/rfkill0/state
        echo " " > /dev/$PORT
        devmem2 0x1f00060 b 1
        echo 10 > /sys/class/gpio/export
        echo out > /sys/class/gpio/gpio10/direction
        echo 0 > /sys/class/gpio/gpio10/value
        echo 1 > /sys/class/gpio/gpio10/value
        sleep 0.1
        hciattach /dev/$PORT bcm43xx 115200 flow bdaddr $MAC_OPTIONS
        hciconfig hci0 up

 

 and reboot

 

oh you might need to install devmem2

 

Share this post


Link to post
Share on other sites

Thanks for this precious information!

 

I've had this bleeding Orange Pi Zero 2+ H5 for like a year now, and finally someone has figured out the BT.  Excellent work!

Share this post


Link to post
Share on other sites

all this could be implanted in the dts file

 

its only uart1 on default and pin 10  enabled

 oh yeah and the clock

Share this post


Link to post
Share on other sites
On 5/7/2018 at 3:02 AM, TonyMac32 said:

@Myy I wonder if this might be able to be adapted for Tinker mainline bluetooth?

 

So much time so little to do!...  Strike that, reverse it.

 

220px-Gene_Wilder_as_Willy_Wonka.jpeg

 

Aha ! I'll try this tonight ! Though I forgot the chip they used in the Tinky. It's a broadcom too ? I'll take a look.

Share this post


Link to post
Share on other sites

It's a Realtek 8723BS, but operates the same way. (any guess what BS stands for? ;-) ). I actually think we should wipe out the DTS entry that's there for it and start over, since that one appears to be tied somehow to the Rockchip special rfkill system.  I was able to get it to start the handshake by toggling the gpio pins associated, so this might be a template for getting to to work properly.  Ok, enough off-topic.  :-D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now