Hello
I want to run LibreELEC on a Raspbery Pi 2 and as Wifi Defice i have a TP Link Archer T3U.
Because of that the TP Link Archer not directly is supported so i have to compile it.
Since compiling is not my daily business I don't run thru it smoothly.
I use a Virtual machine with Ubuntu 22.04 LTS
As example(s) i use this thread and Buildings basics wiki.
Steps i did
Code
sudo apt update
sudo apt upgrade
sudo apt install gcc make git unzip wget xz-utils bc gperf zip g++ xfonts-utils xsltproc openjdk-11-jre-headless
Code
cd ~
git clone https://github.com/LibreELEC/LibreELEC.tv
cd LibreELEC.tv/
git checkout 9.2.0 # First run git checkout libreelec10.0
cd packages/linux-drivers
mkdir RTL88x2BU
cd RTL88x2BU
touch package.mk
Add package
Code
PKG_NAME="RTL88x2BU"
PKG_VERSION="439c7dbd9e43acd91d5704a50b68647716c52505"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/cilynx/rtl88x2bu"
PKG_URL="https://github.com/cilynx/rtl88x2bu/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_LONGDESC="Realtek RTL88x2BU 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
}
Display More
Change: ~/http://LibreELEC.tv/distributions/LibreELEC/options file, add RTL88x2BU to "ADDITIONAL_DRIVERS=" :
Code
cd ~/LibreELEC.tv
PROJECT=RPi ARCH=arm DEVICE=RPi2 tools/download-tool
PROJECT=RPi ARCH=arm DEVICE=RPi2 make image
Quite short after starting compiling i got an error. And i'm not sure if i miss something that has to be installed'; that i start compiling at the wrong starting point; Maybe even a better compiling method(Docker?).
Code
In file included from /usr/include/signal.h:328,
from ./signal.h:52,
from /home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/lib/c-stack.c:49:
/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/lib/c-stack.c:107:1: warning: 'die' defined but not used [-Wunused-function]
107 | die (int signo)
| ^~~
CC close-stream.o
make[4]: *** [Makefile:1910: c-stack.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[3]: *** [Makefile:1674: all] Error 2
make[3]: Leaving directory '/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[2]: *** [Makefile:1572: all-recursive] Error 1
make[2]: Leaving directory '/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/.x86_64-linux-gnu'
make[1]: *** [Makefile:1528: all] Error 2
make[1]: Leaving directory '/home/pat/LibreELEC.tv/build.LibreELEC-RPi2.arm-10.0-devel/build/m4-1.4.18/.x86_64-linux-gnu'
[1;31mFAILURE: scripts/build m4:host during make_host (default)[0m
*********** FAILED COMMAND ***********
make ${PKG_MAKE_OPTS_HOST}
**************************************
[1;31mFAILURE: scripts/build m4:host has failed![0m
Display More
I hope sombody can help me.
Thanks in advance .
J-B