Compiling from master gives an error

  • Hi there,


    Tried to compile (cross-compile) for a RPI (2), created a build host (Ubuntu 1604) and followed instructions but I get stuck:


    MODPOST 581 modules

    SHIPPED arch/arm/boot/compressed/lib1funcs.S

    SHIPPED arch/arm/boot/compressed/ashldi3.S

    SHIPPED arch/arm/boot/compressed/bswapsdi2.S

    LDS arch/arm/boot/compressed/vmlinux.lds

    AS arch/arm/boot/compressed/head.o

    GZIP arch/arm/boot/compressed/piggy_data

    CC arch/arm/boot/compressed/misc.o

    CC arch/arm/boot/compressed/decompress.o

    CC arch/arm/boot/compressed/string.o

    AS arch/arm/boot/compressed/hyp-stub.o

    AS arch/arm/boot/compressed/lib1funcs.o

    AS arch/arm/boot/compressed/ashldi3.o

    AS arch/arm/boot/compressed/bswapsdi2.o

    AS arch/arm/boot/compressed/piggy.o

    LD arch/arm/boot/compressed/vmlinux

    OBJCOPY arch/arm/boot/zImage

    Kernel: arch/arm/boot/zImage is ready

    cp: cannot stat 'arch/arm/boot/dts/*.dtb': No such file or directory


    I started over, removed the entire dir, maybe I had missed something but again it errors out here. Never cross-compiled something before so new to this, but a novice Linux user though. Any hints or clues what I am doing wrong?

  • git clone GitHub - LibreELEC/LibreELEC.tv: Just enough OS for KODI

    cd LibreELEC.tv/

    PROJECT=RPi DEVICE=RPi2 ARCH=arm tools/download-tool

    PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/clean linux

    PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/unpack linux

    cd build.LibreELEC-RPi2.arm-9.0-devel/linux-3a1a31d70660f87ee7ec49ffc3811f633bb0f93d/

    cp ../../projects/RPi/devices/RPi2/linux/linux.arm.conf .config

    make menuconfig

    <no changes there>

    cp .config ../../projects/RPi/devices/RPi2/linux/linux.arm.conf

    cd ../../

    PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/clean linux

    PROJECT=RPi DEVICE=RPi2 ARCH=arm scripts/build linux


    Some was taken from Openelec's dev guide, which I assumed would work (almost) the same?

  • I'd step back a level. Why are you self-compiling? .. i.e. what changes are you looking to make to an image?

  • Got it working now. I was trying it as a learning experience, trying to add Wireguard to the kernel for my Rpi since I travel a lot.

  • FYI, I'm planning to add wireguard support to our kernels once it gets merged.

  • I'm exploring wireguard too while looking into improving crypto speeds, but I can't see in the Amlogic kernel configuration (make menuconfig) the option CONFIG_NET_UDP_TUNNEL which is a requirement (Installation - WireGuard). All the other kernel requirements are satisfied.

    Zenbox Z11 Pro 2G/16G - 100M LAN - Wireless AC Qualcomm QCA9377 1-stream (433 Mbps) - LE 8.2.4.2-Test2

  • You could enable IP: Foo (IP protocols) over UDP and you will get NET_UDP_TUNNEL too.

    I will check again, but in the kernel config I didn't spot that either.

    Zenbox Z11 Pro 2G/16G - 100M LAN - Wireless AC Qualcomm QCA9377 1-stream (433 Mbps) - LE 8.2.4.2-Test2

  • vpeter I can't see it with the current kernel config or maybe I'm doing something wrong:




    I'm simply running make menuconfig like this: linux-6d8fbb4ee61a7779ac57b5961e076f0c63ff8b65$ PROJECT=Amlogic DEVICE=S905 ARCH=arm make menuconfig

    Zenbox Z11 Pro 2G/16G - 100M LAN - Wireless AC Qualcomm QCA9377 1-stream (433 Mbps) - LE 8.2.4.2-Test2

  • Makes sense now :) thanks!

    Zenbox Z11 Pro 2G/16G - 100M LAN - Wireless AC Qualcomm QCA9377 1-stream (433 Mbps) - LE 8.2.4.2-Test2