Problem Compiling 8.0.0 for RPi

  • I'm new to compiling LE and have successfully compiled the master branch. However, I'm trying to compile the 8.0.0 branch and keep getting the following error when creating the image file:
    ============
    image: creating file LibreELEC-RPi.arm-8.0.0.img...
    image: creating partition table...
    image: creating part1...
    image: creating part2...
    image: creating filesystem on part1...
    image: creating bootloader configuration...
    image: copying files to part1...
    image: extracting part2 from image...
    image: creating filesystem on part2...
    image: populating filesystem on part2...
    image: error happen...

    Error: [Filesystem error] /tmp/tmp.XWIglA7cq4/part2.ext4 cannot be opened.
    ===============

    In the target directory the img, kernel, system and tar files are created but not the img.gz file.

    I would appreciate any assistance anyone can offer to help resolve this issue.

    Sent from my GT-P3113 using Tapatalk

  • You need to use newer e2fsprogs package. Run this:

    Code
    wget -O pr1154.patch https://patch-diff.githubusercontent.com/raw/LibreELEC/LibreELEC.tv/pull/1154.patch
    patch -p1 <pr1154.patch
    PROJECT=RPi ARCH=arm ./scripts/clean e2fsprogs
    PROJECT=RPi ARCH=arm make image

  • You need to use newer e2fsprogs package. Run this:

    Code
    wget -O pr1154.patch https://patch-diff.githubusercontent.com/raw/LibreELEC/LibreELEC.tv/pull/1154.patch
    patch -p1 <pr1154.patch
    PROJECT=RPi ARCH=arm ./scripts/clean e2fsprogs
    PROJECT=RPi ARCH=arm make image


    Thanks for your help.
    I followed your advice but encountered the following problem after the 2nd command:
    ========
    LibreELEC.tv> patch -p1 <pr1154.patch
    patching file packages/sysutils/e2fsprogs/package.mk
    Hunk #1 FAILED at 17.
    1 out of 1 hunk FAILED -- saving rejects to file packages/sysutils/e2fsprogs/package.mk.rej
    ========


    Sent from my GT-P3113 using Tapatalk

  • Then try to bump populatefs too:

    Code
    wget -O packages/tools/populatefs/package.mk https://raw.githubusercontent.com/LibreELEC/LibreELEC.tv/master/packages/tools/populatefs/package.mk
    PROJECT=RPi ARCH=arm ./scripts/clean populatefs
    PROJECT=RPi ARCH=arm make image

    Edited once, last by vpeter (February 26, 2017 at 3:13 PM).


  • Then try to bump populatefs too:

    Code
    wget -O packages/tools/populatefs/package.mk https://raw.githubusercontent.com/LibreELEC/LibreELEC.tv/master/packages/tools/populatefs/package.mk
    PROJECT=RPi ARCH=arm ./scripts/clean populatefs
    PROJECT=RPi ARCH=arm make image

    I've implemented all of your suggestions to myself and others with similar problems compiling LE8.
    However, now I'm getting the following new error:
    ===================================
    You will probably need to make your busybox binary
    setuid root to ensure all configured applets will
    work properly.
    --------------------------------------------------

    make[1]: Leaving directory '/home/john/http://LibreELEC.tv/build.LibreELEC-RPi.arm-8.0.0/busybox-1.25.1/.armv6zk-libreelec-linux-gnueabi'
    INSTALL busybox (target)
    INSTALL busybox (host)
    INSTALL hdparm (target)
    INSTALL e2fsprogs (target)
    INSTALL diskdev_cmds (target)
    INSTALL libressl (target)
    INSTALL zip (target)
    INSTALL bzip2 (target)
    INSTALL unzip (target)
    INSTALL usbutils (target)
    INSTALL libusb (target)
    INSTALL systemd (target)
    INSTALL libcap (target)
    INSTALL kmod (target)
    INSTALL entropy (target)
    INSTALL parted (target)
    INSTALL parted (host)
    INSTALL procps-ng (target)
    INSTALL netbsd-curses (target)
    INSTALL nano (target)
    INSTALL rpcbind (target)
    INSTALL libtirpc (target)
    UNPACK liberation-fonts-ttf
    Makefile:12: recipe for target 'image' failed
    ===============================
    Do you have any advice for resolving this issue?

    BTW, I wanted to use pastebin to post my entire log but unlike previous logs, the current log file is huge (36MB)

  • Code
    wget -O packages/x11/font/liberation-fonts-ttf/package.mk https://raw.githubusercontent.com/LibreELEC/LibreELEC.tv/c4ab1f6ca47dcb781811f9a3740506267e229ea1/packages/x11/font/liberation-fonts-ttf/package.mk
    PROJECT=RPi ARCH=arm ./scripts/clean liberation-fonts-ttf
    rm sources/liberation-fonts-ttf/liberation-fonts-ttf-2.00.1.tar.gz*
    PROJECT=RPi ARCH=arm make

    Edited once, last by vpeter (March 6, 2017 at 3:28 PM).

  • Code
    wget -O packages/x11/font/liberation-fonts-ttf/package.mk https://raw.githubusercontent.com/LibreELEC/LibreELEC.tv/c4ab1f6ca47dcb781811f9a3740506267e229ea1/packages/x11/font/liberation-fonts-ttf/package.mk
    PROJECT=RPi ARCH=arm ./scripts/clean liberation-fonts-ttf
    rm sources/liberation-fonts-ttf/liberation-fonts-ttf-2.00.1.tar.gz*
    PROJECT=RPi ARCH=arm make

    I appreciate all the help you've given me and I feel like I'm almost there.
    I now have the following error:
    ===================
    image: creating file LibreELEC-RPi.arm-8.0.0.img...
    image: creating partition table...
    image: creating part1...
    image: creating part2...
    image: creating filesystem on part1...
    image: creating bootloader configuration...
    image: copying files to part1...
    image: extracting part2 from image...
    image: creating filesystem on part2...
    image: populating filesystem on part2...
    image: error happen...

    scripts/mkimage: line 287: populatefs: command not found

    image: cleanup...
    ===========================
    I ran the following commands you gave me:
    wget -O packages/tools/populatefs/package.mk package.mk
    PROJECT=RPi ARCH=arm ./scripts/clean populatefs

    and then recompiled but I still get the same error dealing with populatefs.

    What should I do next?

    Full Log:LE8 Compile 3/6/17

    Edited once, last by jmooremcc (March 7, 2017 at 4:27 AM).

  • Not sure what happen but this should work.

    Code
    PROJECT=RPi ARCH=arm ./scripts/clean populatefs
    PROJECT=RPi ARCH=arm ./scripts/build populatefs:host
    PROJECT=RPi ARCH=arm make

  • Not sure what happen but this should work.

    Code
    PROJECT=RPi ARCH=arm ./scripts/clean populatefs
    PROJECT=RPi ARCH=arm ./scripts/build populatefs:host
    PROJECT=RPi ARCH=arm make


    Unfortunately that didn't work. Got the same error. Where should populatefs be located?
    Is it a script file or executable?
    I did a search using the find command and find said the file does not exist.


    Sent from my EM756 using Tapatalk

  • For me it is

    Code
    build.LibreELEC-RPi.arm-8.0.0/toolchain/sbin/populatefs


    I think something is messed up with your system. This package should be build automatically.


  • For me it is

    Code
    build.LibreELEC-RPi.arm-8.0.0/toolchain/sbin/populatefs


    I think something is messed up with your system. This package should be build automatically.

    It's not in that directory on my system.
    I'm running the following system on a Dell computer:
    Distributor ID: Ubuntu
    Description: Ubuntu 16.10
    Release: 16.10
    Codename: yakkety

    what's the command to compile only populatefs?

    Edited once, last by jmooremcc (March 7, 2017 at 2:50 PM).

  • HooRaay! I finally got LE 8.0 to compile.
    Thanks vpeter for your advice that helped resolve my pronlem.
    Your advice to update the e2fsprogs package and the fonts package specifically helped resolve the issue. The update to populatefs was not required,.

    Sent from my GT-P3113 using Tapatalk