first commit
This commit is contained in:
15
external/packages/bsp/sunxi/ap6212-bluetooth.service
vendored
Normal file
15
external/packages/bsp/sunxi/ap6212-bluetooth.service
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Bluetooth AP6212
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/brcm_patchram_plus -d --enable_hci --no2bytes --use_baudrate_for_downloade --tosleep 200000 --baudrate 1500000 --patchram /lib/firmware/ap6212/bcm43438a1.hcd /dev/ttyS1
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
1
external/packages/bsp/sunxi/ap6212.conf
vendored
Normal file
1
external/packages/bsp/sunxi/ap6212.conf
vendored
Normal file
@@ -0,0 +1 @@
|
||||
options bcmdhd firmware_path=/lib/firmware/ap6212/bcm43438a1.hcd nvram_path=/lib/firmware/ap6212/nvram.txt
|
||||
14
external/packages/bsp/sunxi/ap6255-bluetooth.service
vendored
Normal file
14
external/packages/bsp/sunxi/ap6255-bluetooth.service
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Bluetooth AP6255
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/brcm_patchram_plus -d --enable_hci --no2bytes --tosleep 200000 --baudrate 1500000 --patchram /lib/firmware/BCM4345C0.hcd /dev/ttyS1
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
12
external/packages/bsp/sunxi/ap6255-wifi.service
vendored
Normal file
12
external/packages/bsp/sunxi/ap6255-wifi.service
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=WIFI AP6255
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/sbin/modprobe bcmdhd firmware_path=/lib/firmware/fw_bcm43455c0_ag.bin nvram_path=/lib/firmware/nvram_ap6255.txt
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
15
external/packages/bsp/sunxi/ap6256-bluetooth.service
vendored
Normal file
15
external/packages/bsp/sunxi/ap6256-bluetooth.service
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Bluetooth AP6256
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/brcm_patchram_plus -d --enable_hci --no2bytes --tosleep 200000 --baudrate 1500000 --patchram /lib/firmware/BCM4345C5.hcd /dev/ttyS1
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
12
external/packages/bsp/sunxi/ap6256-wifi.service
vendored
Normal file
12
external/packages/bsp/sunxi/ap6256-wifi.service
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=WIFI AP6256
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/sbin/modprobe bcmdhd firmware_path=/lib/firmware/fw_bcm43456c5_ag.bin nvram_path=/lib/firmware/nvram_ap6256.txt
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
external/packages/bsp/sunxi/aw859a-bluetooth.service
vendored
Normal file
14
external/packages/bsp/sunxi/aw859a-bluetooth.service
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Bluetooth AW859A
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/hciattach_opi -s 1500000 /dev/ttyBT0 sprd
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
13
external/packages/bsp/sunxi/hdmi-audio.service
vendored
Normal file
13
external/packages/bsp/sunxi/hdmi-audio.service
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Init Hdmi Audio
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/inithdmiaudio /usr/share/sounds/alsa/Rear_Left.wav -D 2
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
15
external/packages/bsp/sunxi/rtl8723bs-bluetooth.service
vendored
Normal file
15
external/packages/bsp/sunxi/rtl8723bs-bluetooth.service
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Bluetooth RTL8723BS
|
||||
After=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=/usr/sbin/rfkill unblock all
|
||||
ExecStart=/usr/bin/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
13
external/packages/bsp/sunxi/zeroplus2-bt-legacy.sh
vendored
Executable file
13
external/packages/bsp/sunxi/zeroplus2-bt-legacy.sh
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAC=$(echo -n 1c:1b; dd bs=1 count=4 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02X"')
|
||||
|
||||
rfkill unblock all
|
||||
echo "0" > /sys/class/rfkill/rfkill0/state
|
||||
sleep 2
|
||||
echo "1" > /sys/class/rfkill/rfkill0/state
|
||||
sleep 2
|
||||
echo "" > /dev/ttyS1
|
||||
sleep 2
|
||||
|
||||
brcm_patchram_plus --enable_hci --no2bytes --tosleep 200000 --use_baudrate_for_download --baudrate 115200 --bd_addr ${MAC} --patchram /lib/firmware/ap6212/bcm43438a1.hcd /dev/ttyS1 &
|
||||
10
external/packages/bsp/sunxi/zeroplus2-bt.sh
vendored
Executable file
10
external/packages/bsp/sunxi/zeroplus2-bt.sh
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAC=$(echo -n 1c:1b; dd bs=1 count=4 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02X"')
|
||||
|
||||
rfkill unblock all
|
||||
echo "0" > /sys/class/rfkill/rfkill0/state
|
||||
echo "1" > /sys/class/rfkill/rfkill0/state
|
||||
echo " " > /dev/ttyS1
|
||||
|
||||
brcm_patchram_plus --enable_hci --no2bytes --tosleep 200000 --use_baudrate_for_download --baudrate 115200 --bd_addr ${MAC} --patchram /lib/firmware/ap6212/bcm43438a1.hcd /dev/ttyS1 &
|
||||
Reference in New Issue
Block a user