[LE10] Docker Add-on using wrong arch on RK3399 AArch64

  • Hello,

    I'm using Docker on LE since version 18 on NanoPC-T4 (RK3399) where LE OS is running ARM64, but why is the Docker Add-on installed is using the ARM arch?

    It pulls ARMv7 images, which caused errors with many containers that should be running on ARM64.

    Running docker -version is showing linux/arm, where it should linux/arm64. How can this be fixed?

    Regards~

  • Hi Aciel whilst the kernel for LE ARM8 CPU’s is aarch64 - thus the kernel is 64bit, the userland has been maintained as 32bit. There is a dependency on the vendor provided widevine library (one of the reasons why userland is maintained at 32bit)

    The docker Addons is userland thus 32bit

    https://wiki.libreelec.tv/development-1/build-commands/build-commands-le10

    https://wiki.libreelec.tv/development-1/build-commands/build-addons

    Code
    PROJECT=Rockchip ARCH=arm DEVICE=RK3399 make image

    the =arm in the above build specifies that userland is compiled as 32bit. (Same for addons) whilst this can be changed for your use case, you would need to maintain the image and addons by self-compiling as the LE servers do not maintain a 64bit ARM8 addon repository.

    Hope this helps