diff --git a/bin/rtk_hciattach b/bin/rtk_hciattach new file mode 100644 index 000000000..04d74299e Binary files /dev/null and b/bin/rtk_hciattach differ diff --git a/config/boards/pinebook-a64.wip b/config/boards/pinebook-a64.conf similarity index 79% rename from config/boards/pinebook-a64.wip rename to config/boards/pinebook-a64.conf index 34a542be9..92fb10a10 100644 --- a/config/boards/pinebook-a64.wip +++ b/config/boards/pinebook-a64.conf @@ -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/" diff --git a/config/sources/sun50iw1.conf b/config/sources/sun50iw1.conf index 12cb7c379..79f86ef7c 100644 --- a/config/sources/sun50iw1.conf +++ b/config/sources/sun50iw1.conf @@ -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 diff --git a/scripts/services/pinebook-bluetooth.service b/scripts/services/pinebook-bluetooth.service new file mode 100644 index 000000000..f2d8207e0 --- /dev/null +++ b/scripts/services/pinebook-bluetooth.service @@ -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