Hi!
I try add Realtec 8125B driver (network on Odroid H2+) to LibreElec 9.2, but it not work...
The driver RTL8125 i downloaded from realtek-r8125-dkms (it perfectly work on the pure Ubuntu server 18.04).
I did the following:
1. Installed as guest on the VmWare Ubuntu 18.04 server and installed build dependencies (as wrote in Building (Basics)).
2. "git clone GitHub - LibreELEC/LibreELEC.tv: Just enough OS for KODI" and "cd LibreELEC.tv/"
3. "git checkout libreelec-9.2" and created new branch "git checkout -b libreelec-9.2-rtl8125"
4. In the http://LibreELEC.tv/packages/linux-drivers added directory RTL8125B.
5. In the RTL8125B i created package.mk file with text:
package.mk
PKG_NAME="RTL8125B"
PKG_VERSION="9.005.01"
PKG_SHA256="6a1e07b0eee5424a197f2b8fa0da25a4ec097550747f0c235c647f390eab6707"
# PKG_ARCH="x86_64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/awesometic/realtek-r8125-dkms/"
PKG_URL="http://MY_SERVER/RTL8125B-9.005.01.tar.gz"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_LONGDESC="Realtek RTL8125 driver for Linux"
PKG_IS_KERNEL_PKG="yes"
pre_make_target() {
unset LDFLAGS
}
make_target() {
## kernel_make KDIR=$(kernel_path)
# cd $PKG_BUILD
# bash autorun.sh
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
CONFIG_POWER_SAVING=n
}
makeinstall_target() {
cd $PKG_BUILD
mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME
cp src/*.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME
}
6. In the file http://LibreELEC.tv/distributions/LibreELEC/options i modified string: "ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8192EU RTL8188EU RTL8812AU RTL8125B""
After this steps i committed all changes to my branch, downloaded sources - "PROJECT=Generic ARCH=x86_64 tools/download-tool" and builded image - "PROJECT=Generic ARCH=x86_64 make image".
Image has been created, but, after install it to Odroid H2+, driver not worked.
I tried change commands for make in section "make_target()" of file package.mk (see comments), but driver still not work.
I know that this network adapter work in last version LibreElec, but i need LibreElec with Kodi 18.9.
Can someone help me?
Thanks in advance