Add RTL8821CS firmware to 3588 builds.

This commit is contained in:
fewtarius 2023-03-12 13:20:55 -04:00
parent 3e2d3cb7cc
commit 5799bc7a66
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
9 changed files with 32 additions and 15 deletions

View file

@ -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 &

View 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
}

View file

@ -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
}

View file

@ -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

View file

@ -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