Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly RK3399 in legacy (#2480)

* Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly-RK3399 in legacy

* Changed rk3399-bluetooth service type to exec
This commit is contained in:
Piotr Szczepanik 2020-12-20 23:45:30 +01:00 committed by GitHub
parent 2152a4eb5a
commit a84c69ddea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -345,6 +345,9 @@ family_tweaks_bsp()
install -m 755 $SRC/packages/bsp/rk3399/brcm_patchram_plus_rk3399 $destination/usr/bin
cp $SRC/packages/bsp/rk3399/rk3399-bluetooth.service $destination/lib/systemd/system/
if [[ $BOARD == nanop*4* || $BOARD == firefly* ]]; then
sed -i s%BCM4345C5%BCM4356A2%g $destination/lib/systemd/system/rk3399-bluetooth.service
fi
fi
if [[ $BOARD == pinebook-pro ]]; then

View File

@ -3,9 +3,9 @@ Description=Bluetooth Rockpi
After=bluetooth.target
[Service]
Type=forking
Type=exec
ExecStartPre=/usr/sbin/rfkill unblock all
ExecStart=/usr/bin/brcm_patchram_plus_rk3399 -d --enable_hci --no2bytes --use_baudrate_for_downloade --tosleep 200000 --baudrate 1500000 --patchram /lib/firmware/brcm/BCM4345C5.hcd /dev/ttyS0
ExecStart=/usr/bin/brcm_patchram_plus_rk3399 -d --enable_hci --no2bytes --use_baudrate_for_download --tosleep 200000 --baudrate 1500000 --patchram /lib/firmware/brcm/BCM4345C5.hcd /dev/ttyS0
TimeoutSec=0
RemainAfterExit=yes
SysVStartPriority=99