mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
rockchip-firmware: use rtl8723b_config with noflow on box-trn9
This commit is contained in:
parent
4e0f4ca1e0
commit
1abed91b48
@ -14,6 +14,9 @@ PKG_LONGDESC="rockchip firmware"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib/libreelec
|
||||
cp $PKG_DIR/scripts/* $INSTALL/usr/lib/libreelec
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -v $(get_build_dir rkbin)/firmware/bin/rtk_hciattach $INSTALL/usr/bin
|
||||
|
||||
|
17
packages/linux-firmware/rockchip-firmware/scripts/hciattach-realtek-config
Executable file
17
packages/linux-firmware/rockchip-firmware/scripts/hciattach-realtek-config
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
if [ "$(cat /sys/firmware/devicetree/base/model)" = "Rockchip RK3328 TRN9" ]; then
|
||||
cp -f /usr/lib/kernel-overlays/base/lib/firmware/rtlbt/rtl8723b_config_noflow /var/lib/firmware/rtlbt/rtl8723b_config
|
||||
|
||||
# temporarily disable bluetooth unless bootargs contains bluetooth
|
||||
BOOTARGS=$(cat /sys/firmware/devicetree/base/chosen/bootargs) && [ "$BOOTARGS" = "${BOOTARGS/bluetooth/}" ] && exit 1
|
||||
fi
|
||||
|
||||
if [ -d /var/lib/firmware/updates/rtlbt ]; then
|
||||
cp -f /var/lib/firmware/updates/rtlbt/* /var/lib/firmware/rtlbt
|
||||
fi
|
||||
|
||||
exit 0
|
@ -6,6 +6,7 @@ After=dev-ttyS0.device
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/lib/libreelec/hciattach-realtek-config
|
||||
ExecStartPre=/usr/sbin/rfkill unblock bluetooth
|
||||
ExecStart=/usr/bin/rtk_hciattach -n -s 115200 ttyS0 rtk_h5
|
||||
ExecStopPost=/usr/sbin/rfkill block bluetooth
|
||||
|
@ -5,8 +5,22 @@
|
||||
ACTION!="add", GOTO="end"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0xb723", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x8753", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0626", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0624", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0623", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0524", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0523", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0241", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x024c", ATTRS{device}=="0x0240", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach-realtek.service"
|
||||
SUBSYSTEMS=="sdio", ATTRS{vendor}=="0x02d0", ATTRS{device}=="0x4356", \
|
||||
TAG+="systemd", ENV{SYSTEMD_WANTS}+="hciattach@bcm43xx.service"
|
||||
LABEL="end"
|
||||
|
Loading…
x
Reference in New Issue
Block a user