LibreELEC self compiled

2»

Comments

  • My Plex server is running Ubuntu 18.04, whereas the machine I was building LibreELEC on has 19.04 - I've retried the build on the plex machine and now my build behaves the same as your binary, @thor ; presumably there's some difference between the versions of the packages that makes a difference. I tried, on each machine, copying your instructions verbatim via cut-and-paste (with an added checkout of the matching commit) and it's worked on the 18.04 machine. Sanity prevails.
  • davisonja said:
    My Plex server is running Ubuntu 18.04, whereas the machine I was building LibreELEC on has 19.04 - I've retried the build on the plex machine and now my build behaves the same as your binary, @thor ; presumably there's some difference between the versions of the packages that makes a difference. I tried, on each machine, copying your instructions verbatim via cut-and-paste (with an added checkout of the matching commit) and it's worked on the 18.04 machine. Sanity prevails.
    Good to know, I'll add 18.04 to the build instructions.
  • Thank you very much, working correctly libreelec.... ;) ;) ;)
  • edited October 2019
    LE aims for packages to be 'reproducible' but there are a couple within the total distro image that will never be .. so minor differences in images created on different build OS is normal and expected. LE official images are built on Ubuntu LTS releases only (mostly 18.04, one of the build slaves still has 16.04 I think) so YMMV on other OS.
    NB: If you provide "PROJECT=Amlogic DEVICE=AMLGX ARCH=arm UBOOT_SYSTEM=box make image" and then edit uEnv.ini to use the LaFrite dts the image (which does not contain u-boot) will boot fine with the u-boot in the SPI flash on the LaFrite board.
    I haven't done a lot of testing with LaFrite due to being busy at work and many other devices to experiment with, but I didn't see any issues with the boot process. Feedback on official nightly images here: https://test.libreelec.tv is always appreciated.
  • Thanks @chewitt for the information. I did neither know about those nightlies nor what the box version was for. I flashed LibreELEC-AMLGX.arm-9.80-nightly-20191005-2d77722-box.img.gz clean and updated via the LibreELEC-AMLGX.arm-9.80-nightly-20191006-96737bf.tar. The update and both images seemed to work rather well.

    So I won't build any new images (but keep the download link up for a while), but will write a slightly more detailed explanation than yours on how to get the box image running, soon.

  • davisonja said:
    My Plex server is running Ubuntu 18.04, whereas the machine I was building LibreELEC on has 19.04 - I've retried the build on the plex machine and now my build behaves the same as your binary, @thor ; presumably there's some difference between the versions of the packages that makes a difference. I tried, on each machine, copying your instructions verbatim via cut-and-paste (with an added checkout of the matching commit) and it's worked on the 18.04 machine. Sanity prevails.
    What's plex like?  Can you use it to cast to DLNA on TVs?  Do you know off hand about support for Apple TV?
  • Thanks Thor,
    Using your instructions in post #1 I ran into an error, thus the build failed.  Apologies, as i am i rusty on building my own software, but I ran into an error.  Most of the build went fine but near the end the "scripts/install u-boot" failed and it seems that the whole build failed and there is not "target" folder.  I'm building on x86_x64 Linux Mint.

    Here is some screen cap around where it failed:
    u-boot: creating u-boot.bin
    2076+0 records in
    2076+0 records out
    2076 bytes (2.1 kB, 2.0 KiB) copied, 0.00707333 s, 293 kB/s
    3184+0 records in
    3184+0 records out
    3184 bytes (3.2 kB, 3.1 KiB) copied, 0.0109727 s, 290 kB/s
    RuntimeError: Bad magic number in .pyc file
    FAILURE: scripts/install u-boot has failed!
    [077/246] [FAIL] install u-boot

    The following logs for this failure are available:
      stdout: /home/kitchen/Downloads/Software/LibreELEC.tv/build.LibreELEC-AMLGX.arm-9.80-devel/.threads/logs/78/stdout
      stderr: /home/kitchen/Downloads/Software/LibreELEC.tv/build.LibreELEC-AMLGX.arm-9.80-devel/.threads/logs/78/stderr

    Any ideas?
  • There seems to be much activity around moving from python2 to python3 at the moment. One of those commits probably breaks it.
    You could try running
    git checkout 708dbf9
    After compilation you should then have basically the same image as found on test.libreelec.tv


  • thor said:
    You could try running
    git checkout 708dbf9
    I really appreciate the reply.  So I just ran that command in the LibreELEC.tv directory, then reissued the "PROJECT=Amlogic DEVICE=AMLGX ARCH=arm UBOOT_SYSTEM=lafrite make image" command to build.  Just for my understanding, did that command say to use a previous build?  One that might not have the u-boot script part that it choked on?

    Also, i've recompiled and flashed to a usb.  The La Frite seems to have frozen when re-partitioning.  Couldn't get it to boot again after that.  Maybe it was just reparting super slow, i didn't use a usb drive that had an activity light, so i'll retry again.
  • Yes, the command changes the code to how it was after commit 708dbf9 , which was also used for the image found on https://test.libreelec.tv , so I knew it would at least build.
    You could try going back to 76b3023, which is the version I used for my first image. Also I would recommend building the box image (i.e. use UBOOT_SYSTEM=box instead of lafrite) and changing the uEnv.ini as I explained in https://forum.loverpi.com/discussion/comment/2450/#Comment_2450 .

  • edited November 2019
    Just a follow up:  I used a different usb and the whole thing flew compared to the other, reparted, now Kodi runs fine.  I'll tuck away the image and try your original build, as well.  My CEC isn't working, was the original build having the same issue?
    Update: There is another thread here (https://forum.loverpi.com/discussion/709/cec#latest) but i haven't determined the pins to connect.
  • I've had no great success with CEC, though historically I understand support for it varies by manufacturer/model - it's not quite the easy standard that I expected from my early days with a Raspberry Pi and a sony tv. Can I ask what model LaFrite you've got? 512 or 1G?
    FWIW I found if the CEC jumper was on the first two pins (closest to the USB ports) things like cec-client did something. If the jumper was on the other two pins (closest to the HDMI socket) I got lots of errors trying to run things like cec-client (I think they were in dmesg/syslog) suggesting that the first two pins are actually connecting it to the cable.
  • Sweet, I have the La Frite 1GB model.  I'm running it on a known good setup with a Samsung TV (I believe I had to turn CEC on in the tv menus first).  My RPI2 running LibreElec has no problems at all "talking back through the remote".  The LibreElec that I built with help from user thor on another thread seems to be loading the drivers for the CEC no problem, and i'm going to try connecting that jumpers closest to the USB.

    Update: I tried both, they both aren't working, I'm going to try an earlier build of Kodi i think (this one is 19 alpha)
  • edited November 2019
    thor said:
    Yes, the command changes the code to how it was after commit 708dbf9 , which was also used for the image found on https://test.libreelec.tv , so I knew it would at least build.
    You could try going back to 76b3023, which is the version I used for my first image. Also I would recommend building the box image (i.e. use UBOOT_SYSTEM=box instead of lafrite) and changing the uEnv.ini as I explained in https://forum.loverpi.com/discussion/comment/2450/#Comment_2450 .

    I used the checkout command with the 76b3023 version, i built using the instructions from (https://forum.loverpi.com/discussion/comment/2450/#Comment_2450) using the box image, changed uEnv.ini and it's running great.  Kodi Leia.  That pesky CEC is still not working.  For the record, it's the triple pin connector close to the hdmi port and next to the network port?  I placed jumper over two farthest from hdmi (the way it came from factory) and i also placed jumper over the two closest to the hdmi and still no go.  I'm going to check the logs like @davisonja did.

  • Just want to add a thank you to this thread. Was having so much difficulty trying to get something to boot onto my la frite until using @thor s builds and following the steps in these posts. Cheers
  • Looks like test.libreelec.tv is no longer hosting Amlogic builds, any ideas on where to get a new image from?
  • I see this ones today on the site test.libreelec.tv for La Frite:
    LibreELEC-AMLGX.arm-9.80-devel-20200423211119-38764c8-lafrite.img.gz
    LibreELEC-AMLGX.arm-9.80-nightly-20200420-9850f95-lafrite.img.gz
  • I see this ones today on the site test.libreelec.tv for La Frite:
    LibreELEC-AMLGX.arm-9.80-devel-20200423211119-38764c8-lafrite.img.gz
    LibreELEC-AMLGX.arm-9.80-nightly-20200420-9850f95-lafrite.img.gz
    Looks like the builds have returned. There is a post on the LE forums by chewitt that suggested a bug with wireguard was preventing them from publishing AMLGX nightlies. Looks to be all sorted now!
Sign In or Register to comment.