1. Welcome to the official forum for MINIX devices!

Custom ROM LibreElec 8.2 RC kodi 17.6 RC1

Discussion in 'NEO X8-H Plus Custom ROMs, Kernels & Discussion' started by datrh, Sep 3, 2017.

  1. datrh

    datrh Active Member

    Always try the X8H-Series build first and always try to boot it first from usb/sd card, if your X8-HP gives you trouble with wifi or lan, try the X8HP-Gen1 build
    If you need to activate the "multiboot", make a "boot" folder on the root of the SD card and copy http://www.mediafire.com/file/t1ikkmfk5e05umb/boot.scr in this folder.

    Build V1.4

    changeslog : various patches(eg: "shutdown workaround") + kodi 17.6rc1
    remarks :
    • use advancedsettings.xml to tweak the cache for best result
    • haven't tested the tar files : may give you label errors but doesn't break the update process
    X8H-Series : http://www.mediafire.com/file/sl1jmt6b08nvsuf/LibreELEC-X8-H_Series.arm-8.2RC-kodi_17.6-RC1.img.gz
    Tar file : http://www.mediafire.com/file/93adlpy8a9eys4c/LibreELEC-X8-H_Series.arm-8.2RC-kodi_17.6-RC1.tar
    X8HP-Gen1 (to be used is the above didn't give you lan or wifi.) : http://www.mediafire.com/file/8x4czyljtn22625/LibreELEC-X8-H_PlusGen1.arm-8.2RC-kodi_17.6-RC1.img.gz
    Tar file : http://www.mediafire.com/file/eb9794v0idjp9jd/LibreELEC-X8-H_PlusGen1.arm-8.2RC-kodi_17.6-RC1.tar

    Archive
    Build V1.3

    X8H-Series
    : http://www.mediafire.com/file/tf414o576mx4275/LibreELEC-X8-H_Series.arm-8.2-kodi_17.4.img.gz
    X8HP-Gen1 (to be used is the above didn't give you lan or wifi.) : https://www.mediafire.com/file/v225hbe8oh0vtbv/LibreELEC-X8-H_PlusGen1.arm-8.2-kodi_17.4.img.gz
    ----------------------------------------------------------------------------------------------------------------
    With the latest build you get :
    • LibreElec 8.2 RC
    • Kodi 17.6rc1
    • Wifi
    • Lan
    • Bluetooth
    • multi-boot (SD,USB)
    • 24p support
    • ac3-dts-.. passthrough
    • a lot of dvb-.. drivers
    • XBOX one bluetooth controller support
    • minix ir remote support
    • shutdown workaround
    feedback are welcome

    Sources : surkovalex , Balbes150 , kszaq

    To update
    • to update you may need to use a " .nocompat"
    • copy tar file to /storage/.update and reboot
    Git stuff
    libreELEC : https://github.com/datrh/LibreELEC.tv
    linux : https://github.com/datrh/linux

    Backup and restore your Kodi sources
    bored to setup again your sources in kodi after having try a new build?

    inbuilt backup
    the manual way
    to backup :
    "ssh" your minix and save at least on your pc :
    /storage/.kodi/userdata/advancedsettings.xml =>mysql cfg, etc
    /storage/.kodi/userdata/sources.xml => smb shares,..
    /storage/.kodi/userdata/passwords.xml => password to access the smb shares

    to restore :
    copy the xml files back to the /storage/.kodi/userdata/
    reboot the box

    Toothpick or not
    if you've already try an image with the "universal" Balbes150 bootloader script (Balbes150 build's, mine,..), you don't need to use the toothpick method.
    Just burn the img.gz on a SD card, put the SD card in your Minix and reboot.

    The toothpick method is needed if the bootloader isn't patched by Balbes150 script.

    SMB and windows 10
    check https://forum.libreelec.tv/thread/9...ndows-10-creators-update-machine-walkthrough/

    ps : i don't pretend to be a DEV, i'm more a tweaker than something else.
    Last edited: Nov 21, 2017 at 10:24 PM
  2. windex961

    windex961 Member

    Hello..
    I copied the update tar to the "update" folder on the X8hp and rebooted.. system found the updated, extracted, check sum pass, but the aborts the install stating that it is not compatible with 812 arm... Any ideas?
  3. AxesOfEvil

    AxesOfEvil Member

    After using my image for the past year or so, I decided I wanted to update to 8.2. Before rolling my own, I thought I'd see what was out there.

    I tried the image over on the libreelec forum, and while it kinda works, there is very high CPU load and 8-bit hevc looks terrible (with hardware decoding), and I couldn't get h264 hw decoding to work at all.

    I then tried this build, and it doesn't properly connect to my internal network (wired or wireless) and I still see the high CPU load (~30% on one CPU at idle). Since I have no network access, I can't test playback.

    Do you have a github repo for your build?
  4. windex961

    windex961 Member

    I'm in the same boat... Update with this image and now I don't have internet access at all... Tried a static IP address and still no luck, and dhcp retrieves a 169.x.x.x IP.....
  5. mark2

    mark2 Active Member

    Im getting wifi ethernet and bluetooth so strange that your not
    have you tried going into Libreelec settings and in network switch active off/on
  6. windex961

    windex961 Member

    Yeah I did.. also tried reflashing it a couple times with no luck..
  7. mark2

    mark2 Active Member

    I have tried 3 builds to compare with the one from datrh all left to idle for ten minutes
    this build idled @38% max down to 0% then the usual up and down across all 4cpu
    this one from balbes150
    LibreELEC-S812.arm-17.4_20170830-X8H_Plus.img.gz idled @69% this went down to 0% the other 3 cpu just froze
    these didnt move up or down
    then i tried LibreELEC-S812.arm-17.4_20170830-MXIII_Plus.tar also from balbes150
    this gave me the same results as his other peaking at 69% other cpus froze again
    as for h264 hw decoding running youtube 720p video
    video decoder am-h264 HW
    Deinterlaced method hardware
    system memory 9% CPU 38% 20% 22% 24%
    maybe this can tell you something
  8. mark2

    mark2 Active Member

    Which Android version are you running is it kitkat
  9. AxesOfEvil

    AxesOfEvil Member

    What does this question mean? There is no Android involved in these images, right?

    I have never seen any kernel newer than the one surkovalex had that doesn't have high idle CPU %. This may be due to using a different governor (it has been more than a year since I looked at it), but my Jarvis build from last July definitely feels more responsive (as I said, without any network connectivity I can't test anything)

    As a reference, my Jarvis build from last year runs (hw decoding) ~7%CPU, all others ~1% for both 1280p hevc and h264. But it isn't fair to compare without knowing what the actual CPU frequency is.

    If datrh can provide a build which lets me use network, I can do a better comparison. I think I saw some comments along the line of there being hardware variations on the X8H-Plus...I dunno why your network would be ok, and mine and windex961 not.
  10. senzalice

    senzalice Member

    It might be a good idea for all to mention their player info...i'm sure it may help to identify some issues people are having. This is mine:

    Model: NEO-X8H-PLUS
    Version: 5.1.1 (Lollipop RC2 http://minixforum.com/threads/x8-h-plus-lollipop-rc2-firmware-july-2017.16633/)
    Build: n200-userdebug 5.1.1 LMY47V 20170703 release-keys

    LibreELEC-X8-H_Plus.arm-8.2-kodi_17.4.img.gz
    • boots from SD with wifi & ethernet working, auto frame switch OK, DD 5.1 OK
    • only tested 4K video @ 25fps and OK
    • Power Menu OFF works...but cannot switch on via remote (need to pull power plug out)
    • Suspend mode (and then wake-up via remote) is working
    • Reboot is working
    • Reboot from Internal FREEZES my box
    • Windows Network (SMB) not working ....(but I can add a new network place (SMB) and then access my home network)
  11. AxesOfEvil

    AxesOfEvil Member

    Maybe related. I am not dual-booting/running off sd card/usb. I have reflashed the image. on the internal flash drive. It is weird though, since the image does boot up, I'm not sure why it would care if it were dual-booted or not
  12. datrh

    datrh Active Member

    you mean no network at all or name resolution troubles? i personally have resolution trouble but nothing related to the minix, more something with my router or a windows 10 sec fix.

    yes , i will provide all the infos . Actually, it's not up-to-date. i need to sort the mess in my vm, my pc and to sync the things.
    Also a lot of "cosmetics" changes would be nice.

    to resume ,after a lot of trials and errors, the winning combination :
    • a fork of Balbes150 works (all the LibreElec stuff ...)
    • a fork of Kszaq Linux release (needed to get a working kodi 17.4 : you can't stay with a too old linux release)
    • DTBs and wifi drivers from a Surkovalex Linux release (needed to get a functional wifi and SD boot with X8-HP)

    http://www.minixforum.com/threads/openelec-minix-x8-h-plus.3342/page-98#post-141174

    i will build a dedicated img (it will probably not works for X8H_Plus "rev 2" device)
    Last edited: Sep 4, 2017
  13. AxesOfEvil

    AxesOfEvil Member

    My problem is he same as windex961. I get a 169.xxx.xxx.xxx IP address from dhcp. using a static address doesn't make things better. No wireless adapter seems to be found


    Can you explain this:
    I never had good luck with his kernels when I used them (high CPU usage was the issue I think). Do you know what in Kodi needs this? What were the symptoms if you used an older kernel? I'm thinking of trying using your current build but with surkovalex's kernel and video drivers (once you have a repo available)
  14. datrh

    datrh Active Member

    the video driver. EGL errors
    my main focus was to get a working wifi, so i've chosen to not introduce another error factor.

    about the high cpu usage, the "platform_init" and the "CONFIG_CMDLINE" are dependant on who's made the build.
    i mean : surkovlex platform_init/config_cmdline are not the same as the ones of balbes150 and so on.

    eg : surkovalex (openelec 6.0 erea) fixes limits

    linux.arm.conf : CONFIG_CMDLINE="hdmitx=cecf boot=/dev/system disk=/dev/data BOOT_IMAGE=/dev/boot scaling_governor=ondemand scaling_min_freq=96000 scaling_max_freq=1608000 ssh"

    platform_init :
    # Parse command line arguments
    for arg in $(cat /proc/cmdline); do
    case $arg in
    hdmimode=*)
    hdmimode="${arg#*=}"
    ;;
    scaling_governor=*)
    scaling_governor="${arg#*=}"
    ;;
    scaling_min_freq=*)
    scaling_min_freq="${arg#*=}"
    ;;
    scaling_max_freq=*)
    scaling_max_freq="${arg#*=}"
    ;;
    esac
    done

    # Boot with performance governor, then switch to the governor specified in the kernel command line
    for cpufreq in /sys/devices/system/cpu/cpu[0-9]*/cpufreq; do
    if [ -n "$scaling_governor" ]; then
    echo "$scaling_governor" > "$cpufreq/scaling_governor"
    fi
    if [ -n "$scaling_min_freq" ]; then
    echo "$scaling_min_freq" > "$cpufreq/scaling_min_freq"
    fi
    if [ -n "$scaling_max_freq" ]; then
    echo "$scaling_max_freq" > "$cpufreq/scaling_max_freq"
    fi
    done



    if you want to venture in the governor things, check this http://linux-sunxi.org/Cpufreq
  15. datrh

    datrh Active Member

    special build for those with lan trouble.(do not use it if build in #1 is working for you)
    it's a "mono" dtb build so i haven't test it on x8-h.
    i dunno if it's boot from SD.

    http://www.mediafire.com/file/4jmbb8118bbarq0/LibreELEC-X8-H_Plus.arm-8.2-kodi_17.4.img.gz
    svankan likes this.
  16. mark2

    mark2 Active Member

    The reason i asked what Android was being used was when Minix released Lollipop Beta i could get certain Libreelec builds running on Lollipop
    others who were still running Kitkat couldnt but when they put Lollipop on there box they could get the same builds to work
    this was using builds on SD card
    but as you have said above it could be because of different hardware variations not OS
  17. AxesOfEvil

    AxesOfEvil Member

    This does indeed work with my hardware (both wireless and wired). I also verified that by using the same minimum-freq (1608000) that surkovalex used, my cpu load is similar to with his kernel, and the performance feels a bit snappier. I'm not sure if it matters or not.

    Hardware h264 works very well. I still get lots of artifacts in 1080p hevc 8-bit sadly.
  18. AxesOfEvil

    AxesOfEvil Member

    In case anyone wants to independently test, I tried the jellyfish samples here:
    http://jell.yfish.us/
    Bitrate doesn't seem to matter. For instance the 5Mbps 8-bit hevc sample shows lots of artifacts:
    jellyfish-5-mbps-hd-hevc.mkv

    This played fine on my Jarvis build using hw-decoder, so it isn't hardware related.
  19. windex961

    windex961 Member

    I tried burning this to a USB drive using the burning tool, then paperclip into recovery, select EXT, then Udisk, and the script .zip file, but it fails to install.. is there another way to install this file?
  20. datrh

    datrh Active Member

    there are certainly a few adjustment that must be done in the dtd/dtb.


    it's supposed to uboot the right way. maybe you need to put a boot.scr