Enabling BT on Pinebook and adding to nightly builds

This commit is contained in:
Igor Pecovnik 2017-05-20 21:49:38 +02:00
parent af53caee16
commit 1b9adf55d8
4 changed files with 15 additions and 2 deletions

BIN
bin/rtk_hciattach Normal file

Binary file not shown.

View file

@ -6,7 +6,7 @@ BOOTCONFIG="pine64_pinebook_defconfig"
MODULES="sunxi_codec sunxi_i2s sunxi_sndcodec 8723cs r8152"
MODULES_NEXT=""
#
KERNEL_TARGET="default,dev"
KERNEL_TARGET="default"
CLI_TARGET=""
CLI_BETA_TARGET=""
DESKTOP_TARGET="xenial:default"
@ -17,5 +17,5 @@ RECOMMENDED="Ubuntu_xenial_default_desktop:90"
BOARDRATING=""
CHIP="http://docs.armbian.com/Hardware_Allwinner-H5-A64/"
HARDWARE="https://docs.armbian.com/board_details/pine64/"
REVIEW="http://forum.armbian.com/index.php/topic/1917-armbian-running-on-pine64-and-other-a64h5-devices/#entry14642"
REVIEW="https://forum.armbian.com/index.php?/topic/4133-quick-pinebook-preview-review"
FORUMS="http://forum.armbian.com/index.php/forum/11-other-boards/"

View file

@ -49,6 +49,10 @@ write_uboot_platform()
family_tweaks()
{
if [[ $BRANCH == default ]]; then
install -m 755 $SRC/lib/bin/rtk_hciattach $CACHEDIR/$SDCARD/usr/local/bin
#
install -m 644 $SRC/lib/scripts/services/pinebook-bluetooth.service $CACHEDIR/$SDCARD/etc/systemd/system/
chroot $CACHEDIR/$SDCARD /bin/bash -c "systemctl --no-reload enable pinebook-bluetooth.service>/dev/null 2>&1"
mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/
if [[ $BOARD == pinebook-a64 ]]; then
cp $SRC/lib/config/asound.state.pinebooka64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state

View file

@ -0,0 +1,9 @@
[Unit]
Description=Realtek H5 bluetooth support
After=sysinit.target local-fs.target
[Service]
ExecStart=/usr/local/bin/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5
[Install]
WantedBy=multi-user.target