Posts by martyg

    Which GIT and branch are you trying to use ?

    GitHub - LibreELEC/ Just enough OS for KODI origin/master # Per wiki instructions

    PROJECT=Amlogic DEVICE=AMLG12 ARCH=aarch64 make image # My best guess


    patching file arch/arm64/kernel/cpuinfo.c

    Hunk #1 succeeded at 148 (offset 1 line).

    APPLY PATCH (project) projects/Amlogic/patches/linux/amlogic-0004-HACK-arm64-dts-meson-gx-add-ATF-BL32-reserved-memory.patch

    patching file arch/arm64/boot/dts/amlogic/meson-gx.dtsi

    APPLY PATCH (project) projects/Amlogic/patches/linux/amlogic-0005-HACK-media-cec-silence-CEC-timeout-message.patch

    can't find file to patch at input line 25

    Perhaps you used the wrong -p or --strip option?

    The text leading up to this was:


    |From d7ba0960e3bc51f8368ef9d3b98ce33be91e3570 Mon Sep 17 00:00:00 2001

    |From: Christian Hewitt <[email protected]>

    |Date: Tue, 7 Jan 2020 07:12:47 +0000

    |Subject: [PATCH 005/156] HACK: media: cec: silence CEC timeout message


    |If testing with an AVR that does not pass-through CEC state the system

    |log fills with timeout messages. Silence this to stop the log rotation

    |and ensure other issues are visible.


    |[ 42.718009] cec-meson_ao_cec: message ff 84 50 00 01 timed out

    |[ 45.021994] cec-meson_ao_cec: message ff 87 00 15 82 timed out

    |[ 47.325965] cec-meson_ao_cec: message 10 timed out

    |[ 49.630023] cec-meson_ao_cec: message 10 timed out

    |[ 51.933960] cec-meson_ao_cec: message 10 timed out


    |Signed-off-by: Christian Hewitt <[email protected]>


    | drivers/media/cec/cec-adap.c | 6 +++---

    | 1 file changed, 3 insertions(+), 3 deletions(-)


    |diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c

    |index 6a04d19a96b2..fcb29dba8de1 100644

    |--- a/drivers/media/cec/cec-adap.c

    |+++ b/drivers/media/cec/cec-adap.c


    File to patch:

    Skip this patch? [y]

    Skipping patch.

    1 out of 1 hunk ignored

    *********** FAILED COMMAND ***********

    patch -d $(echo "${PKG_BUILD}" | cut -f1 -d\ ) -p1 1>&${VERBOSE_OUT}


    *********** FAILED COMMAND ***********

    ${SCRIPTS}/unpack "${PKG_NAME}" "${PARENT_PKG}"


    FAILURE: scripts/build linux:host has failed!

    The following log for this failure is available:


    >>> linux:host seq 42 >>>

    [041/257] [FAIL] build linux:host

    The following log for this failure is available:


    Parallel build failure - see log for details. Time of failure: Tue Sep 22 06:53:21 PDT 2020

    make: *** [Makefile:12: image] Error 1

    My project for today is a proper build environment so I can better explore this platform.

    I have set up the build environment per the Wiki, and have successfully built the Generic-X86 load.

    I am using LibreELEC-ARMv8.arm-9.80-devel-20200918094144-569f834-amlg12.img as a starting point.

    This Yandex image boots to Kodi on my Odroid N2, good enough to get me going.

    I am using the following invocation for build:

    PROJECT=Amlogic DEVICE=AMLG12 ARCH=aarch64 make image

    Is this correct for my hardware?

    The errors I am seeing (misapplied patches) suggest to me the above Yandex binaries are built from a branch not on master.

    Specifically, what GIt library is the 569f834 referring to?


    On my 1st gen Odroid N2, LibreELEC-ARMv8.aarch64-9.80-devel-20200915062529-54b1084-amlg12.img

    FDT /dtb/amlogic/meson-g12b-odroid-n2.dtb

    Ethernet works, but I get a different (random) MAC assigned on each boot.

    (This address should be picked up from the ethernet hardware, and be the same over reboot/powercycle)

    I have not seen this issue on any of my other 5.8 based loads (Armbian, Arch)

    Grafting my golden dtb from these loads into Libre did not correct the issue.

    dmesg enclosed:

    Thanks for looking. let me know how I can help further

    Update: Issue resolved with 20200918 snapshot. Thank you.