Add RTL8821CS firmware to 3588 builds.
This commit is contained in:
parent
3e2d3cb7cc
commit
5799bc7a66
9 changed files with 32 additions and 15 deletions
|
@ -0,0 +1,5 @@
|
|||
echo 0 > /sys/class/rfkill/rfkill0/state
|
||||
sleep 1
|
||||
echo 1 > /sys/class/rfkill/rfkill0/state
|
||||
sleep 1
|
||||
/usr/bin/rtk_hciattach -n /dev/ttyS1 rtk_h5 115200 &
|
BIN
packages/kernel/linux-firmware/RTL8821CS-firmware/firmware/rtk_hciattach
Executable file
BIN
packages/kernel/linux-firmware/RTL8821CS-firmware/firmware/rtk_hciattach
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
packages/kernel/linux-firmware/RTL8821CS-firmware/package.mk
Normal file
25
packages/kernel/linux-firmware/RTL8821CS-firmware/package.mk
Normal file
|
@ -0,0 +1,25 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2022-present Brooksytech
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
|
||||
PKG_NAME="RTL8821CS-firmware"
|
||||
PKG_LICENSE="Apache-2.0"
|
||||
PKG_SITE="www.jelos.org"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="Realtek RTL8821CS Linux firmware"
|
||||
PKG_DEPENDS_TARGET="linux"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
make_target() {
|
||||
true
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
cp -v ${PKG_BUILD}/firmware/rtk_hciattach ${INSTALL}/usr/bin
|
||||
cp -v ${PKG_BUILD}/firmware/rtl8821c_fw ${INSTALL}/$(get_full_firmware_dir)
|
||||
cp -v ${PKG_BUILD}/firmware/rtl8821cs_config ${INSTALL}/$(get_full_firmware_dir)/rtl8821c_config
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service hciattach-realtek.service
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
PKG_NAME="RTL8821CS-prebuilt-firmware"
|
||||
PKG_LICENSE="Apache-2.0"
|
||||
PKG_SITE="www.jelos.org"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="Realtek RTL8821CS Linux firmware"
|
||||
PKG_DEPENDS_TARGET="linux"
|
||||
|
||||
post_install() {
|
||||
cp -v $(get_build_dir linux)/wifibt/rtk_hciattach ${INSTALL}/usr/bin
|
||||
cp -v $(get_build_dir linux)/wifibt/rtl8821c_fw ${INSTALL}/$(get_full_firmware_dir)
|
||||
cp -v $(get_build_dir linux)/wifibt/rtl8821cs_config ${INSTALL}/$(get_full_firmware_dir)/rtl8821c_config
|
||||
enable_service hciattach-realtek.service
|
||||
}
|
|
@ -74,7 +74,7 @@
|
|||
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
||||
# Space separated list is supported,
|
||||
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
||||
FIRMWARE="misc-firmware wlan-firmware RTL8821CS-prebuilt-firmware"
|
||||
FIRMWARE="misc-firmware wlan-firmware RTL8821CS-firmware"
|
||||
|
||||
# additional drivers to install:
|
||||
# for a list of additional drivers see packages/linux-drivers
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
||||
# Space separated list is supported,
|
||||
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
||||
FIRMWARE="misc-firmware wlan-firmware libmali_rk3588"
|
||||
FIRMWARE="misc-firmware wlan-firmware libmali_rk3588 RTL8821CS-firmware"
|
||||
|
||||
# additional drivers to install:
|
||||
# for a list of additional drivers see packages/linux-drivers
|
||||
|
|
Loading…
Reference in a new issue