Hi all, i have a device with wifi rlt8189es/fs, it worked fine on libreelec 10 but on 11 it disappeared. Here is the source code I used to recompile https://github.com/jwrdegoede/rtl8189ES_linux.
Can somebody help me or recommend me a good usb dongle on libreelec. Tk.
RTL8189ES/FS stop working libreelec 11
-
vnrapperclub -
March 7, 2023 at 9:43 AM -
Thread is Unresolved
-
-
Hi all, i have a device with wifi rlt8189es/fs, it worked fine on libreelec 10 but on 11 it disappeared.
If that's true, then you used custom/community build image and not official one.
-
If that's true, then you used custom/community build image and not official one.
I'm using https://github.com/LibreELEC/LibreELEC.tv, 11.0.0, same issue libreelec-11.0.
/http://LibreELEC.tv/packages/linux-drivers/RTL8189ES/package.mk
Code
Display MorePKG_NAME="RTL8189ES" PKG_VERSION="rtl8189fs" PKG_SHA256="0439f10203f9f661b4fc1e64352237688bebeddfbb1fed4179ce670b87d8e882" PKG_SITE="https://github.com/jwrdegoede/rtl8189ES_linux" PKG_URL="https://github.com/jwrdegoede/rtl8189ES_linux/archive/$PKG_VERSION.tar.gz" PKG_NEED_UNPACK="$LINUX_DEPENDS" PKG_LONGDESC="Realtek RTL8189ES Linux driver" PKG_IS_KERNEL_PKG="yes" pre_make_target() { unset LDFLAGS } make_target() { make V=1 \ ARCH=$TARGET_KERNEL_ARCH \ KSRC=$(kernel_path) \ CROSS_COMPILE=$TARGET_KERNEL_PREFIX \ CONFIG_POWER_SAVING=n } makeinstall_target() { mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME }
dmesg | paste
-
Addind the driver package.mk is not enough to build the driver. You also need to mod the project or device 'options' file to build the driver package. You may also need to add/pick firmware from linux-firmware.
-
One change between LE10 and LE11, which is most likely important, is that LE11 switched from wpa_supplicant to iwd.
-
Works for me:
Code
Display More# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_NAME="RTL8189FS" PKG_VERSION="476020109b3841421af289a7b78c7a25b0c45fac" PKG_SHA256="34321ef57f8d5925fd52e234d1cabed1428c2d06e47e49d1eee20775635157e4" PKG_LICENSE="GPL" PKG_SITE="https://github.com/jwrdegoede/rtl8189ES_linux" PKG_URL="https://github.com/jwrdegoede/rtl8189ES_linux/archive/${PKG_VERSION}.tar.gz" PKG_LONGDESC="Realtek RTL8189FS Linux driver" PKG_IS_KERNEL_PKG="yes" pre_make_target() { unset LDFLAGS } make_target() { make V=1 \ ARCH=${TARGET_KERNEL_ARCH} \ KSRC=$(kernel_path) \ CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \ CONFIG_POWER_SAVING=n \ CONFIG_WIFI_MONITOR=y \ CONFIG_80211W=y \ CONFIG_RTW_DEBUG=n } makeinstall_target() { mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME }
Note:
1. from sources jwrdegoede(fixed compile issues for Linux kernel up to 6.1.x) it normally compile without errors.
2. added parameter CONFIG_80211W without this parameter WIFI will not work
Link: Orange Pi Lite image
P.S.
As mentioned chewitt, in file "distributions/LibreELEC/options" of sources you must add in parameter ADDITIONAL_DRIVERS => an option RTL8189FS to compile this new "packages/linux-drivers/RTL8189FS/package.mk", for example:
Code# for a list of additional drivers see packages/linux-drivers # Space separated list is supported, # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2" # original #ADDITIONAL_DRIVERS="RTL8192DU RTL8812AU" # added new RTL8189FS parameter via 'space' ADDITIONAL_DRIVERS="RTL8192DU RTL8812AU RTL8189FS"
After that (before the main make command) don't forget usage command: "ARCH=arm PROJECT=Allwinner DEVICE="H3 UBOOT_SYSTEM=<your device> tools/download-tool" or "ARCH=arm PROJECT=Allwinner DEVICE=H6 UBOOT_SYSTEM=<your device> tools/download-tool" (if your device is H6 or H3 respectively)