Posts by Johpin

    mglae Thanks for mentioning the use of package.mk.

    I found more about changing of the code in files and adding files, see

    add nouveau - opensource nvidia driver by ToKe79 · Pull Request #5917 · LibreELEC/LibreELEC.tv
    I am not sure if it is relevant for LibreELEC, but maybe for the Generic (non-legacy) image. I did not test the legacy image, as I don't have nvidia card,…
    github.com

    After I have bought 2x2GB RAM, I expect to be able to compile and build LibreELEC on a x86_64 system (for cross-compiling my RPi4 and probably my RPi5 have not sufficient memory).

    chewitt Thanks for the link, I expect it will be helpful

    To add the nouveau driver you can add "nouveau" to the line in the file /home/john/LibreELEC.tv/config/graphic
    GRAPHIC_DRIVERS="crocus i915 iris r300 r600 radeonsi nvidia nvidia-legacy nvidia-ng vmware virtio vc4"

    As I can remember during installation of the proprietary Nvidia driver, a file will be written and you have to delete it if you want to revert to the nouveau driver. I choose to remove nvidia:

    GRAPHIC_DRIVERS="crocus i915 iris r300 r600 radeonsi nouveau vmware virtio vc4"

    In my case I want to optimize it to one system. I assume I can reduce it to:

    GRAPHIC_DRIVERS="nouveau"

    I don't know the effect, but I looked on forehand into the file /home/john/LibreELEC.tv/projects/Generic/linux/linux.x86_64.conf

    and saw the nouveau driver has not been set. Should it be necessary to manually set the nouveau driver by "make menuconfig" also?

    I found the failing is related to gcc 14 on ARM,see https://github.com/llvm/llvm-project/issues/78691. I could not apply the presented hack, because some code is missing in llvm 17. Therefore I replaced LibreELEC's llvm 17 source code by llvm 18.1.6. In the latter the hack has already been included.

    Affter many hours the 4GB of RAM and 2 GB of swap on my RPi4 seems not to be sufficient and the system hangs, while my hard disk is still flashing. I could not quit "top" anymore.

    Building LibreELEC for RPi4 on a RPi4 has been successful, building for x86-64 has not been successful.

    After entering the one line command "PROJECT=Generic DEVICE=Generic ARCH=x86_64 make image" on a RPi4 4GB with Slackware aarch64 (15) the build gave the following error:

    ninja: build stopped: subcommand failed.
    FAILURE: scripts/build llvm:host during make_host (default)
    *********** FAILED COMMAND ***********
    ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_HOST}
    **************************************
    FAILURE: scripts/build llvm:host has failed!

    >>> llvm:host seq 230 >>>
    [297/303] [FAIL] build   llvm:host

    The following log for this failure is available:
     /home/john/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/.threads/log
    s/230.log

    Parallel build failure - see log for details. Time of failure: Thu Dec 26 09:57:
    30 CET 2024
    make: *** [Makefile:10: image] Error 1

    A LibreELEC-RPi4.aarch64-12.0 image has been built successfully on the same building machine.

    llvm-18.1.6-aarch64 is available on the building machine. The github cloned LibreELEC is from a couple of days back.

    What could I do to solve this error?

    that tells you that you are building at a x86-64 machine, nothing more

    so you build a aarch64 image at a x86-64 machine :)

    The build machine is a Raspberry Pi 4B with 4 GB RAM, not x86-64. The LibreELEC version schould be for a RPI4 aarch64.

    The command "make image" shows as stdout also:

    '/home/john/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/kernel-firmware-20240312/.copied-firmware/intel/ibt-hw-37.8.bseq' -> '/home/john/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/kernel-firmware-20240312/usr/lib/kernel-overlays/base/lib/firmware/intel/ibt-hw-37.8.bseq'

    indicating it is building a LibreELEC version for Intel x86

    PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image


    I am trying to build LibreELEC 12.0.1 on a RPi4 with Slackware aarch64.

    To my surprise
    PROJECT=RPi
    ARCH=aarch64
    DEVICE=RPi4
    make image

    shows as stdout:

    Buildsystem configuration:
    ======================================================
    - CPU: x86-64
    - Kernel Architecture: x86

    I don't understand why it will build for x86. How can I force it to build for aarch64?