[UNOFFICIAL][Le11-10][RK3228/RK3229][box]Libreelec builds

  • Hi,

    thanks to the experience gained with my builds of libreelec 9.2.x and the work of the community (rockchip and more), I'm sharing my unofficial build of libreelec for boxes with soc rockchip 322x.

    ** BIG FAT WARNING **
    ** I won't waste too much time on the subject of pirate streaming. Know that it's not tolerated by me. **
    ** I will try to help with legal addons (which I don't develop directly anyway). But if you have problems **
    ** with other kinds of addons, nothing personal, I will ignore you. **

    Libreelec 11

    FEATURES
    - Kodi Nexus 20.4
    - mainline kernel 6.1.74
    - mainline opensource GPU driver
    - legacy u-boot
    - boot from SD
    - ir receiver (it works, but if your remote is not recognized, follow this guide https://wiki.libreelec.tv/configuration/ir-remotes and share results)
    - support for wifi chip SSV6051p, ESP8089, AP6255, and others if supported by mainline kernel.
    - hardware accelerated video decoding (mpeg2/h264/hvec/vp9). only FullHD tested because I don't own a 4k tv.
    - analog audio
    - DDR3 frequency scaling

    DOWNLOADS
    - builds: https://ilmich.libreelec.tv/libreelec-11/
    - source: https://github.com/ilmich/LibreELEC.tv/tree/libreelec-11.0

    INSTALLATION
    - for boot from SD see https://wiki.libreelec.tv/installation/create-media

    MANUAL UPDATE
    Copy (via ssh,samba, etc etc) the desired build into a folder
    Code

    Code
    /storage/.update

    and reboot the device.

    INITIAL SETUP
    To allow booting in most cases, the image uses a generic device tree. This device tree doesn't have support for ddr3 ram, doesn't turn on any LEDs, etc etc.
    However, it's possible to change the device tree by choosing from the supported devices list with rk322x-dtb-switch.sh command.

    Code
    rkelec:~ # rk322x-dtb-switch.sh
    usage: /usr/bin/rk322x-dtb-switch.sh [list|switch|help]
    
    
    show                      show current device tree
    list                      show available device trees
    switch [device tree]      switch to a device tree
    help                      show this help

    sample session

    Code
    rkelec:~ # rk322x-dtb-switch.sh switch rk3229-box-v88mars
    Device tree rk3229-box-v88mars founded
    Are you sure(y/n)?y
    Mounting flash rw
    Switching dtb
    Mounting flash ro
    Switching is ok, now you need to reboot!!

    SUPPORTED DEVICES

    DeviceDtbWifiBoardFreq DDR3Cpu ClockGpu Clock
    genericrk322x-boxssv6051p and others N/A1,0 Ghz400 Mhz
    V88marsrk322x-box-v88marsssv6051p and others N/A1,4 Ghz400 Mhz
    V884krk322x-box-v884kssv6051p and others 656 Mhz1,2 Ghz400 Mhz
    Onetv Literk322x-box-onetv-lite 656 Mhz1,2 Ghz400 Mhz
    MXQ 4k Prork322x-box-mxq4kprossv6051p and others 656 Mhz1,2 Ghz400 Mhz
    MXQ 4k Pro (r329q varian)rk322x-box-mxq4kpro_r329qssv6051p and others 656 Mhz1,2 Ghz400 Mhz
    MXQ 4krk322x-box-mxq4kssv6051 and others 656 Mhz1,2 ghz400 Mhz
    MXQ 4k (R29 variant)rk322x-box-mxq4k_r29ssv6051 and others 656 Mhz1,2 Ghz400 Mhz
    T95drk322x-box-t95dAP6255 528 Mhz1,0 Ghz400 Mhz

    KNOWN ISSUES
    - some strange wifi chip
    - some strange USB Wi-Fi chip (I can add it if you help me)
    - NAND (this is the hard part and the only legacy piece that remains)

    SUGGESTIONS
    - without your logs, I can't try to fix anything :)

    CHANGELOG
    2023/03/15: Initial release (announcement)
    2023/03/22: updated to latest Libreelec commit, reverted https://github.com/xbmc/xbmc/pull/22919, estuary skin optimization (read here)
    2023/12/02: updated mesa 23.3.0, added bcm43342 wireless firmware, raise ddr3 clock, added simple irqbalancer, added 2 new mxq4k and mxq4kpro variant, various fixes and improvements
    2023/12/30: mesa 23.3.2 and kernel 6.1.68, preemptive kernel for better performance, various fixes and improvements, updated to latest libreelec source
    2024/02/18: mesa 23.3.6 and kernel 6.1.74, added RTL8812CU usb wifi driver (untested), various fixes and improvements, updated to latest libreelec source (11.0.6)

    THANKS TO
    knaerzche , jock2, fabiobassa, oneillb, Habitual6824, ochentay4 and the libreelec community.

    DONATE
    If you like this project help:
    - by first donating to Libreelec main project https://opencollective.com/libreelec/donate
    - and secondly by helping me to buy/repair rk322x hardware https://www.paypal.com/paypalme/ilmich6502 or https://revolut.me/ilmich

  • Go to Best Answer
  • Libreelec 10

    FEATURES

    - kodi matrix 19.5

    - mainline kernel 5.10.186

    - mainline opensource gpu driver

    - legacy u-boot

    - ddr3 frequency scaling

    - boot from SD

    - boot from EMMC (thanks to jock2 for testing)

    - boot from NAND

    - ir receiver (it works, but if your remote is not recognized, follow this guide https://wiki.libreelec.tv/configuration/ir-remotes and share results)

    - wifi/bluetooth only if there is a mainline driver (I'll do my best for others, but is more safe eventually to buy an external adapter)

    - hardware accelerated video decoding (mpeg2/h264/hvec/vp9). only FullHD tested, because I don't own a 4k tv.

    - virtualpoweroff with wakeup with remote

    - analog audio

    DOWNLOADS

    - older builds (< september 2022): https://drive.google.com/drive/folders/…0IoQVjQdlMaafNx

    - builds: https://ilmich.libreelec.tv/libreelec-10/

    - source: https://github.com/ilmich/LibreELEC.tv/tree/libreelec-10.0

    INSTALLATION

    - for boot from SD see https://wiki.libreelec.tv/installation/create-media

    MANUAL UPDATE

    Copy (via ssh,samba, etc etc) the desired build into folder

    Code
    /storage/.update

    and reboot device.

    INITIAL SETUP

    To allow booting in most cases, the image uses a generic device tree. This device tree doesn't have support for ddr3 ram, doesn't turn on any LEDs, etc etc.

    However, it's possible to change the device tree by choosing from the supported devices list with rk322x-dtb-switch.sh command.

    Code
    rkelec:~ # rk322x-dtb-switch.sh
    usage: /usr/bin/rk322x-dtb-switch.sh [list|switch|help]
    
    
    show                      show current device tree
    list                      show available device trees
    switch [device tree]      switch to a device tree
    help                      show this help

    sample session

    Code
    rkelec:~ # rk322x-dtb-switch.sh switch rk3229-box-v88mars
    Device tree rk3229-box-v88mars founded
    Are you sure(y/n)?y
    Mounting flash rw
    Switching dtb
    Mounting flash ro
    Switching is ok, now you need to reboot!!

    SUPPORTED DEVICES

    The following table shows the supported devices (with device trees).

    Device trees with the suffix -ovclk contain some changes to slightly overclock cpu/ram. Overclocks are tested, but may make your board unstable. So use them at your own risk.

    DeviceDtbBoardFreq DDR3Cpu ClockGpu Clock
    Hk1 Minirk3229-box-hk1mini500Mhz1,4 Ghz500 Mhz
    rk3229-box-hk1mini-ovclk600Mhz1,5 Ghz500 Mhz
    Mxq 4k Prork3229-box-mxq4kpro500Mhz1,3 Ghz400 Mhz
    rk3229-box-mxq4kpro-ovclk600Mhz1,5 Ghz500 Mhz
    Tx2rk3229-box-tx2500Mhz1,4 Ghz500 Mhz
    rk3229-box-tx2-ovclk600Mhz1,5 Ghz500 Mhz
    V88Marsrk3229-box-v88marsChipTryp XT-MX4VR-V01N/A1,3 Ghz400 Mhz
    rk3229-box-v88mars-ovclkN/A1,5 Ghz500 Mhz
    V884krk3229-box-v884k500Mhz1,4 Ghz500 Mhz
    rk3229-box-v884k-ovclk600Mhz1,5 Ghz500 Mhz
    T95v Prork3229-box-t95vpro5001,3 Ghz400 Mhz

    KNOWN ISSUES

    - gui may not be smooth (it also depends a lot on the skin used, like legacy builds)

    - for drm contents, resolutions >= 720p are not guaranteed. This is because decoding is software and the cpu/gpu may not make it

    - analogic video not works (and maybe never will)

    - let me known

    SUGGESTIONS

    - if you have problems with pvr clients during channel switch, set a delay of around 200ms in order to let kodi and gpu release resources correctly.

    - stay at 720p and let kodi switch resolution when play something

    - without your logs, I can't try to fix anything :)

    CHANGELOG

    2022/02/03: Initial release

    2022/02/10: added ddr3 support, spdif output, other fixes

    2022/02/17: updated to latest libreelec source code, fix suspend to ram and wakeup with remote, other small fixes

    2022/02/21: undervolt cpu/gpu to avoid random freeze, disabled dmabuf because lima driver seems buggy, other small fixes

    2022/02/26: bump kernel to 5.10.102, new remote (thanks to shMatrix), changed default cpu governor, enabled RTL8192CU and RTL8XXXU wifi drivers

    2022/03/05: bump kernel to 5.10.103, updated to latest libreelec source code with kodi 19.4, backported (and fixed) NAND driver from rockchip bsp kernel 5.10.x, other stability fixes

    2022/03/08: updated mesa to 21.3.7, legacy device tree added, some kernel and boot optimizations

    2022/03/10: updated to latest libreelec source code (10.0.2), added ssv6051p wireless driver

    2022/03/20: kernel 5.10.107, mesa 22.0.0, updated to latest libreelec source code, dmabuf, new hk1mini device, new remote, removed wakeup from remote, various fixes

    2022/03/29: kernel 5.10.109, updated to latest libreelec source, backported rockchip remotectl, various fixes

    2022/04/22: kernel 5.10.111, updated to latest libreelec source, mesa 22.0.1, various fixes/improvements

    2022/05/14: kernel 5.10.116, updated to latest libreelec source, mesa 22.0.2, various fixes/improvements

    2022/06/15: kernel 5.10.120, updated to latest libreelec source, mesa 22.0.5, various fixes/improvements

    2022/07/07: kernel 5.10.128, updated to latest libreelec source, experimental esp8089 wireless driver, analog audio codec, various fixes/improvements

    2022/09/21: kernel 5.10.142, updated to latest libreelec source, mesa 22.2.0, added rtl8192fu driver, various fixes/improvements

    2022/10/03: kernel 5.10.146, updated to latest libreelec source, fix regression in hardware deinterlace filter

    2022/10/17: kernel 5.10.148, updated to latest libreelec source, fix for a remote controller, fix HDMI alsa card name

    2022/11/02: kernel 5.10.152, updated to latest libreelec source, mesa 22.2.2, fix for ssv6051p arp issue, various small fixes

    2022/11/22: kernel 5.10.155, updated to latest libreelec source, mesa 22.2.4, various small fixes, added RTL8188FU driver

    2022/12/15: kernel 5.10.158, updated to latest libreelec source, mesa 22.3.0, various small fixes

    2023/01/13: kernel 5.10.162, updated to latest libreelec source, mesa 22.3.2, kodi 19.5

    2023/02/06: kernel 5.10.167, updated to latest libreelec source, mesa 23.0.0-rc4

    2023/03/06: kernel 5.10.172, updated to latest libreelec source, mesa 23.0.0, new t95vpro box, various fixes, supports USB Bluetooth dongle

    2023/04/02: kernel 5.10.176, mesa 23.0.1, backported some kodi Nexus patches

  • Hello! V88K Plus, The remote control works at startup but if I turn it off it can't be turned on afterwards, it works well in version 9.

  • Hi Lajos, thanks for your feedback.

    Hello! V88K Plus, The remote control works at startup but if I turn it off it can't be turned on afterwards, it works well in version 9.

    I known, I'm working on backport the 'virtual poweroff' driver from legacy kernel.

  • hi JoeEdison, Lajos

    with my latest build, I've fixed some small issue, updated libreelec upstream code, and I've also fixed and enabled suspend to ram with wakeup with remote(that should be better than virtual power off)

    edit: virtual power off is not abandoned, just I need more time.

  • Hi Ilmich!

    Just a note here, based on my experience on downloading your build.

    I downloaded your last build (http://ilmich.altervista.org/le-10/LibreELE…e-rk322x.img.gz) but the size reported on the page is not what I got after downloadin. It seems that what it is on that page is the img archive, not the img.gz. When I tried to burn into a SD Card, it has troubles doing it. After packing it as gz, the burning tool worked just as expected, and my tv box is up and runing. The tar builds seems to be ok as regard to the file size.

    And thanks very much to you and everybody involved in this project for keeping alive these boxes, great job,!


    Regards

  • Hi,

    I tried booting your latest build from SD on a scishion V88 4K device, but I have a green screen on boot and I'm afraid I cannot investigate further: do you have some hints?

    Thank you for your work
    Regards

  • Hi alexwhites

    do you have a 4k tv ?!?! green screen usually indicates a resolution not supported by the driver.

    try to edit the extlinux / extlinux.conf file present in the fat partition of the sd card by adding

    Code
    video=HDMI-A-1:1280x720

    if works, in a ssh session launch this command

    Code
    cat /sys/class/drm/card1-HDMI-A-1/edid > /storage/edid

    and share the file /storage/edid

    thanks

  • Hi,

    I'm still testing your latest build from SD on a scishion V88 4K device and it seems that wifi is not working

    wifi_chip_type is ssv6051

    Do you think that a fix is possible?

    Thank you

    Regards

  • Hi alexwhites

    according to the edid you have an ACER full hd monitor(or tv), probably with some bugs.

    I have enabled a kernel hack for your particular device which prefer a particular frequency. Put this kernel inside the first partition of sdcard (obviously remove the resolution forcing)

    testing – Google Drive

    and let me known.

    Regarding ssv6051 thanks to jock2 there is a driver for mainline but with libreelec I've experienced some problems.

    Maybe in the future there will be a better driver, but for now I recommend you to use a usb wifi device. Sorry

  • do you have a 4k tv ?!?! green screen usually indicates a resolution not supported by the driver.

    try to edit the extlinux / extlinux.conf file present in the fat partition of the sd card by adding

    Code
    video=HDMI-A-1:1280x720

    Earlier today I read this post and just now I booted into my self-compiled kernel (Debian + some of LE patches) ... and got a green screen on my Rock64 (RK3328). What a coincidence :D

    Thanks :thumbup:

  • Hi,

    I tested your kernel, but I still have a green screen

    Like you said for testing I'm using an old ACER tv monitor probably with some bugs.

    Thank you

    Regards