Compiling LibreELEC Raspbery Pi 2

  • 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

    Change: ~/http://LibreELEC.tv/distributions/LibreELEC/options file, add RTL88x2BU to "ADDITIONAL_DRIVERS=" :

    Code
    ADDITIONAL_DRIVERS="RTL8192CU RTL8192DU RTL8192EU RTL8188EU RTL8812AU RTL88x2BU"


    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?).

    I hope sombody can help me.

    Thanks in advance .

    J-B

  • Likely the m4 source of LE10 is "too old" for the Ubuntu 22.10 gcc and library headers.

    Use an Ubuntu LTS 20.04 Docker container.

    For 9.2 even Ubuntu 18.04 may be required.