1. Registration issues have now been resolved. New accounts are able to be created

Custom ROM LibreElec 8.2 kodi 17.4

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

  1. datrh

    datrh Active Member

    Build V1.3

    changeslog :

    X8H-Series :
    X8HP-Gen1 (to be used is the above didn't give you lan or wifi. Bug : no sd boot) :

    Build V1.2


    changeslog : minix ir remote support

    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. Bug : no sd boot) : http://www.mediafire.com/file/cgkpqaavktxa7gt/LibreELEC-X8-H_PlusGen1.arm-8.2-kodi_17.4.img.gz

    Build V1.1

    X8H-Series (x8h, x8h-Plus(gen2) and probably other devices base on ref boards : m8m2_n200, m8m2_n200c, m8_k200)

    http://www.mediafire.com/file/83ameoqg320i254/LibreELEC-X8-H_Series.arm-8.2-kodi_17.4.img.gz

    changeslog:
    • X8-H dtb
    • experimental : XBOX one bluetooth controller support
    X8HP-Gen1 (to be used is the above didn't give you lan or wifi)

    http://www.mediafire.com/file/pm69b6ufy6039nu/LibreELEC-X8-H_PlusGen1.arm-8.2-kodi_17.4.img.gz

    changeslog:
    • @AxesOfEvil dtb's
    • experimental : XBOX one bluetooth controller support
    bug : no SD boot


    Build V1

    img to burn on a SD or USB
    : http://www.mediafire.com/file/72tpcjv3sp2pr18/LibreELEC-X8-H_Plus.arm-8.2-kodi_17.4.img.gz

    update .tar : http://www.mediafire.com/file/rd4o5oe8ob5bt9w/LibreELEC-X8-H_Plus.arm-8.2-kodi_17.4.tar

    you get :
    • LibreElec 8.2
    • Kodi 17.4
    • Wifi
    • Lan
    • Bluetooth
    • multi-boot (SD,USB)
    • 24p support
    • ac3-dts-.. passthrough
    • a lot of dvb-.. drivers
    • ....
    ! :
    if the image above doesn't give you lan or wifi, try this one : http://www.mediafire.com/file/4jmbb8118bbarq0/LibreELEC-X8-H_Plus.arm-8.2-kodi_17.4.img.gz

    feedback are welcome

    Sources : surkovalex , Balbes150 , kszaq

    edit:
    • to update you may need to use a " .nocompat"
    • **reserved**
    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(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 the one's from Balbes150.

    ps : i don't pretend to be a DEV, i'm more a tweaker than something else.
    Last edited: Sep 18, 2017 at 11:20 PM
    senzalice and kingsizept like this.
  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