Compile error (trying to backport wifi driver to kszaq's LE version 8.0.1k from 8.2)

  • Reason for backporting wifi driver is that I have a lot of 720p/25p content and version 8.0.1k of LE is the only version (including all of kszaq's subsequent versions and latest CoreELEC version) that plays back the 720p/25p content perfectly. All other versions exhibit random, infrequent, small, but noticeable stutter. This only happens on my 25p content. All 23.976p and 24p content plays back perfectly (with all versions of LE). All content is locally stored on 2TB external HDD and is attached to LE box via USB cable. The LE box is directly attached to the TV via HDMI - there are no other attachments.


    I've created a github branch which is cloned from Kszaq's 8.0.1k release and modified it to include the source for the SSV6XXX-AML wifi driver. The compile fails. I'm hoping somebody out there has an idea of what I'm doing wrong. I'm new to github, ubuntu and linux etc, but I think the branch is correct (there are only a few mods from the original 8.0.1k release). I'm hoping there's a setting/config file somewhere that I've missed...... it's trying to compile the driver but can't find the "aarch64-linux-gnu-gcc" command. Is it something to do with cross-compiling?? I thought it would use "gcc" to compile the wifi driver??.... If I install "gcc-aarch64-linux-gnu" package, it will then compile but the wifi driver does not work.


    I know that I can revert back to kszaq's original 8.0.1k image and use a USB wifi adapter. If I get no responses, that's what I'll do, but I'd love to know how to fix this wifi driver compile error.


    I'm using Oracle VM with Ubuntu 16.04 and make command was:- PROJECT=S905 ARCH=arm make image


    TIA (Please see below)

    BUILD ssv6xxx-aml (target)

    ## script to generate version infomation header ##

    make[1]: Entering directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051'

    make -C /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \

    EXTRA_CFLAGS="-I/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051 -I/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/include" M=/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051 modules

    make[2]: Entering directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4'

    make[2]: aarch64-linux-gnu-gcc: Command not found

    KBUILD_CFLAGS_MODULE:-DMODULE

    make[2]: aarch64-linux-gnu-gcc: Command not found

    CC [M] /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/ssvdevice/ssvdevice.o

    /bin/sh: aarch64-linux-gnu-gcc: command not found

    make[3]: *** [scripts/Makefile.build:309: /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/ssvdevice/ssvdevice.o] Error 127

    make[2]: *** [Makefile:1289: _module_/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051] Error 2

    make[2]: Leaving directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4'

    make[1]: *** [Makefile:70: module] Error 2

    make[1]: Leaving directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051'

    Makefile:12: recipe for target 'image' failed

    make: *** [image] Error 2


    ## script to generate version infomation header ##

    make[1]: Entering directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051'

    make -C /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \

    EXTRA_CFLAGS="-I/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051 -I/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/include" M=/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051 modules

    make[2]: Entering directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4'

    make[2]: aarch64-linux-gnu-gcc: Command not found

    KBUILD_CFLAGS_MODULE:-DMODULE

    make[2]: aarch64-linux-gnu-gcc: Command not found

    CC [M] /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/ssvdevice/ssvdevice.o

    /bin/sh: aarch64-linux-gnu-gcc: command not found

    make[3]: *** [scripts/Makefile.build:309: /home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051/ssvdevice/ssvdevice.o] Error 127

    make[2]: *** [Makefile:1289: _module_/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051] Error 2

    make[2]: Leaving directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/linux-6e79ad4'

    make[1]: *** [Makefile:70: module] Error 2

    make[1]: Leaving directory '/home/mark/myLE/build.LibreELEC-S905.arm-MyLE/ssv6xxx-aml-1041e7d/ssv6051'

    Makefile:12: recipe for target 'image' failed

    make: *** [image] Error 2





  • Looks like the package is expecting to cross-compile for arm64 and you're trying to build for arm. It probably has hardcoded references to the arm64 toolchain which need to be revised.