Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bluetooth support for Orange PI 3 LTS #3896

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions config/sources/families/sun50iw6.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ esac

family_tweaks_s()
{
if [[ -f $SDCARD/lib/systemd/system/aw859a-bluetooth.service ]]; then

# install and enable Bluetooth
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable aw859a-bluetooth.service >/dev/null 2>&1"
fi

if [[ $BUILD_DESKTOP == yes && $BOARD == orangepi3-lts ]]; then

Expand All @@ -35,5 +41,15 @@ family_tweaks_s()
echo "load-module module-alsa-sink device=hw:1,0 sink_name=HDMI-Playback sink_properties=\"device.description='HDMI Audio'\"" >> ${SDCARD}/etc/pulse/default.pa

fi
}

family_tweaks_bsp()
{
if [[ ${BOARD} == orangepi3-lts ]]; then

cp $SRC/packages/bsp/sunxi/aw859a-bluetooth.service $destination/lib/systemd/system/

fi

install -m 755 $SRC/packages/blobs/bt/hciattach/hciattach_opi_${ARCH} $destination/usr/bin/hciattach_opi
}
Binary file modified packages/blobs/bt/hciattach/hciattach_opi_arm64
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/bsp/sunxi/aw859a-bluetooth.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=bluetooth.service
[Service]
Type=simple
ExecStartPre=/usr/sbin/rfkill unblock all
ExecStart=/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd
ExecStart=/usr/bin/hciattach_opi -s 1500000 /dev/ttyBT0 sprd
TimeoutSec=0
RemainAfterExit=true

Expand Down