diff --git a/conf/distro/kineintercom.conf b/conf/distro/kineintercom.conf index 36170d1..755c4f7 100644 --- a/conf/distro/kineintercom.conf +++ b/conf/distro/kineintercom.conf @@ -65,5 +65,7 @@ RM_WORK_EXCLUDE += "configurateur-frontend python3-jsonschema" INHERIT += "extrausers" EXTRA_USERS_PARAMS += "usermod -p '\$6\$kineintercom\$CRdIWTleZDC7c/0pNVlDZy7K56fyf5PVsAGlx27GAY8UX/EjObgmxhMi3YOOs0uLj.da3jMdv.sKFngNFUqFz1' root;" +MACHINE_EXTRA_RRECOMMENDS += "kernel-module-rtl8188eus" + # Check CVEs -INHERIT += "cve-check" +#INHERIT += "cve-check" diff --git a/recipes-core/images/kineintercom-image.inc b/recipes-core/images/kineintercom-image.inc index 77c288b..36cb7a6 100644 --- a/recipes-core/images/kineintercom-image.inc +++ b/recipes-core/images/kineintercom-image.inc @@ -35,6 +35,9 @@ IMAGE_INSTALL += " \ vim \ minicom \ i2c-tools \ + usbutils \ + iw \ + rtl8188eus-misc \ ${PROCESS_INSTALL} \ " diff --git a/recipes-kernel/rtl8188eus-mod/files/0001-makefile-rpi-config.patch b/recipes-kernel/rtl8188eus-mod/files/0001-makefile-rpi-config.patch new file mode 100644 index 0000000..a3a6b8b --- /dev/null +++ b/recipes-kernel/rtl8188eus-mod/files/0001-makefile-rpi-config.patch @@ -0,0 +1,35 @@ +--- a/Makefile ++++ b/Makefile +@@ -98,8 +98,8 @@ CONFIG_RTW_SDIO_PM_KEEP_POWER = y + ###################### MP HW TX MODE FOR VHT ####################### + CONFIG_MP_VHT_HW_TX_MODE = n + ###################### Platform Related ####################### +-CONFIG_PLATFORM_I386_PC = y +-CONFIG_PLATFORM_ARM_RPI = n ++CONFIG_PLATFORM_I386_PC = n ++CONFIG_PLATFORM_ARM_RPI = y + CONFIG_PLATFORM_ARM64_RPI = n + CONFIG_PLATFORM_ANDROID_X86 = n + CONFIG_PLATFORM_ANDROID_INTEL_X86 = n +@@ -2062,18 +2062,14 @@ export CONFIG_RTL8188EU = m + all: modules + + modules: +- $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules ++ $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_SRC) M=$(shell pwd) modules + + strip: + $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded + +-install: +- install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR) +- /sbin/depmod -a ${KVER} + +-uninstall: +- rm -f $(MODDESTDIR)/$(MODULE_NAME).ko +- /sbin/depmod -a ${KVER} ++modules_install: ++ $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_SRC) M=$(shell pwd) modules_install + + backup_rtlwifi: + @echo "Making backup rtlwifi drivers" diff --git a/recipes-kernel/rtl8188eus-mod/files/8188eu.conf b/recipes-kernel/rtl8188eus-mod/files/8188eu.conf new file mode 100644 index 0000000..8b063cd --- /dev/null +++ b/recipes-kernel/rtl8188eus-mod/files/8188eu.conf @@ -0,0 +1 @@ +8188eu diff --git a/recipes-kernel/rtl8188eus-mod/files/realtek.conf b/recipes-kernel/rtl8188eus-mod/files/realtek.conf new file mode 100644 index 0000000..1289e57 --- /dev/null +++ b/recipes-kernel/rtl8188eus-mod/files/realtek.conf @@ -0,0 +1 @@ +blacklist r8188eu diff --git a/recipes-kernel/rtl8188eus-mod/rtl8188eus-misc_5.3.9.bb b/recipes-kernel/rtl8188eus-mod/rtl8188eus-misc_5.3.9.bb new file mode 100644 index 0000000..7c60ea6 --- /dev/null +++ b/recipes-kernel/rtl8188eus-mod/rtl8188eus-misc_5.3.9.bb @@ -0,0 +1,21 @@ +SUMMARY = "rtl8188eus external Linux kernel module misc" +DESCRIPTION = "${SUMMARY}" +LICENSE = "CLOSED" + +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI = "file://realtek.conf \ + file://8188eu.conf \ + " + +FILES:${PN} += "${sysconfdir}/modprobe.d/realtek.conf \ + ${sysconfdir}/modules-load.d/8188eu.conf \ + " + +do_install:append() { + install -d ${D}${sysconfdir}/modprobe.d + install -m 0644 ${WORKDIR}/realtek.conf ${D}${sysconfdir}/modprobe.d/ + + install -d ${D}${sysconfdir}/modules-load.d + install -m 0644 ${WORKDIR}/8188eu.conf ${D}${sysconfdir}/modules-load.d/ +} diff --git a/recipes-kernel/rtl8188eus-mod/rtl8188eus-mod_5.3.9.bb b/recipes-kernel/rtl8188eus-mod/rtl8188eus-mod_5.3.9.bb new file mode 100644 index 0000000..d22eefa --- /dev/null +++ b/recipes-kernel/rtl8188eus-mod/rtl8188eus-mod_5.3.9.bb @@ -0,0 +1,19 @@ +SUMMARY = "rtl8188eus external Linux kernel module" +DESCRIPTION = "${SUMMARY}" +LICENSE = "CLOSED" + +inherit module + +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI = "git://github.com/aircrack-ng/rtl8188eus.git;protocol=https;branch=v5.3.9 \ + file://0001-makefile-rpi-config.patch \ + " +SRCREV = "f8ead579311f7eb800e769a7fd216d0c5cb0c4a3" + +S = "${WORKDIR}/git" + +# The inherit of module.bbclass will automatically name module packages with +# "kernel-module-" prefix as required by the oe-core build environment. + +RPROVIDES:${PN} += "kernel-module-rtl8188eus"