-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orange Pi 3B: Update board config to support v2.1 boards
- Loading branch information
1 parent
2cf702a
commit 9d4edae
Showing
3 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# only run this for boards with sprd bluetooth chip (i.e. v1.1 boards) | ||
if [[ ! -d /proc/device-tree/sprd-mtty ]]; then | ||
systemctl disable orangepi3b-sprd-bluetooth.service | ||
|
||
exit 0 | ||
fi | ||
|
||
modprobe -a sprdbt_tty sprdwl_ng | ||
rfkill unblock all | ||
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Spreadtrum (sprd) bluetooth support for Orange Pi 3B v1.1 | ||
Before=bluetooth.service | ||
|
||
[Service] | ||
Type=simple | ||
RemainAfterExit=Yes | ||
ExecStart=/usr/bin/orangepi3b-sprd-bluetooth | ||
|
||
[Install] | ||
WantedBy=multi-user.target |