Skip to content

Commit

Permalink
add rtw88 drv because rtl8821cs not work
Browse files Browse the repository at this point in the history
  • Loading branch information
elecboy committed Jul 7, 2023
1 parent f2cc159 commit 6797a91
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/machine/sports-cle-v41.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PREFERRED_VERSION_libgpiod = "1.%"
UBOOT_MACHINE = "sports-cle-v41_defconfig"

MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-rtl8821 kernel-module-rtl8821cs linux-firmware-rtl8192cu linux-firmware-rtl8723"
MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-rtl8821 kernel-module-rtw88 linux-firmware-rtl8192cu linux-firmware-rtl8723"
MACHINE_EXTRA_RRECOMMENDS += "zram"
MACHINE_EXTRA_RRECOMMENDS += "udev-rules-sports-cle-v4"
MACHINE_EXTRA_RRECOMMENDS += "u-boot-tools"
Expand Down
25 changes: 25 additions & 0 deletions recipes-kernel/kernel-modules/kernel-module-rtw88_git.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
DESCRIPTION = "Kernel loadable module rtw88 backports"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "git://github.com/lwfinger/rtw88.git;protocol=https;branch=master"

SRCREV = "7ca1ec0e768f083e4a2116d6978021814b83bb74"

S = "${WORKDIR}/git"

inherit module

EXTRA_OEMAKE += " \
KSRC=${STAGING_KERNEL_DIR} \
KVER=${KERNEL_VERSION} \
"
do_install () {
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra
install -m 0755 ${B}/*.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra/

install -d ${D}${nonarch_base_libdir}/firmware/rtw88
install -m 0755 ${B}/*.bin ${D}${nonarch_base_libdir}/firmware/rtw88/
}

FILES:${PN} += "${nonarch_base_libdir}/firmware/rtw88/"

0 comments on commit 6797a91

Please sign in to comment.