Posts by balbes150

    please push changes to your GitHub repo, thanks.

    switching to wayland · 150balbes/LibreELEC.tv@7a90b8e


    п.с. тут не все изменения строго нужны, просто добавил сразу то, что-бы можно было запустить сборку и получить готовый образ для rock5b с рабочим выводом на экран.

    PROJECT=Rockchip DEVICE=RK3588 ARCH=aarch64 UBOOT_SYSTEM=rock-5b make image

    Now this was all relevant to a fairly specific Armbian build using the old 5.1 kernel and unfortunately, the liujianfeng1994 repositories don't work with newer builds.

    This is a BSP core for which you need to use rk-mpp (for HW decoding), which greatly reduces its benefits. Back in 2023, I released LE builds with BSP 6.1 kernels, you can find them on the website. Yes, this core has better support for rk3588 hardware, but it's not the main core with a lot of hacks.

    Wrote test-image to sdcard and changed FTD to NanoPi-r6c

    rk3588-roc-pc.img.gz

    When writing to the SD card, the u-boot for RK3588-ROC-PC is used, which is not compatible with your model. You will have to manually replace the u-boot on the SD card with one that supports your model and (importantly) knows how to run the system using extlinux.conf.

    Or you need to use a USB flash drive, but you need a u-boot for your model that works with USB (as it is implemented for supported models of this theme).

    starting USB...
    Bus usb@fc800000: USB EHCI 1.00
    Bus usb@fc840000: USB OHCI 1.0
    Bus usb@fc880000: USB EHCI 1.00
    Bus usb@fc8c0000: USB OHCI 1.0
    Bus usb@fcd00000: usb maximum-speed not found
    Register 2000140 NbrPorts 2
    Starting the controller
    USB XHCI 1.10
    scanning bus usb@fc800000 for devices... WARN: interface 0 has 2 endpoint descriptor, different from the interface descriptor's value: 1
    4 USB Device(s) found
    scanning bus usb@fc840000 for devices... 1 USB Device(s) found
    scanning bus usb@fc880000 for devices... 1 USB Device(s) found
    scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
    scanning bus usb@fcd00000 for devices... 1 USB Device(s) found
    scanning usb for storage devices... 0 Storage Device(s) found

    Device 0: unknown device
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found /extlinux/extlinux.conf
    Retrieving file: /extlinux/extlinux.conf
    reading /extlinux/extlinux.conf
    225 bytes read in 6 ms (36.1 KiB/s)
    1: LibreELEC
    Retrieving file: /KERNEL
    reading /KERNEL
    86051328 bytes read in 13673 ms (6 MiB/s)
    !!! env helper try: /uEnv.txt
    Retrieving file: /uEnv.txt
    ** Unable to read file /uEnv.txt **
    append: boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet console=ttyS2,1500000 console=tty0 systemd.debug_shell=ttyS2 coherent_pool=2M cec.debounce_ms=5000
    Retrieving file: /dtb/rockchip/rk3588-rock-5b.dtb
    reading /dtb/rockchip/rk3588-rock-5b.dtb
    178470 bytes read in 41 ms (4.2 MiB/s)
    Fdt Ramdisk skip relocation
    No misc partition
    ## Flattened Device Tree blob at 0x0a100000
    Booting using the fdt blob at 0x0a100000
    'reserved-memory' shmem@10f000: addr=10f000 size=100
    Using Device Tree in place at 000000000a100000, end 000000000a12e925
    can't found rockchip,drm-logo, use rockchip,fb-logo
    WARNING: could not set reg FDT_ERR_BADOFFSET.
    failed to reserve fb-loader-logo memory
    Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
    Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
    Adding bank: 0x100000000 - 0x3fc000000 (size: 0x2fc000000)
    Adding bank: 0x3fc500000 - 0x3fff00000 (size: 0x03a00000)
    Adding bank: 0x4f0000000 - 0x500000000 (size: 0x10000000)
    Total: 20528.512 ms

    Starting kernel ...

    is building the image with the Wayland windowing environment, and this restricts you to a single refresh rate because Wayland does not support dynamic refresh rate changes. This is why LE does not use Wayland in official images (only GBM, and Xorg for nVidia). The LE build system supports Wayland because it's used with the Lakka retrogaming fork.

    If wyland hadn't been able to do this, no one would have started translating all modern distributions to wyland with gnome and kde. I admit that there are no such tools in LE yet (perhaps they just weren't needed yet).

    I launched armbian with a 6.15 core on Rock 5b with gnome and wyland - in the settings I can change the screen frequency (60 59.5 50 etc) and any resolution formats. And this is taking into account that there is not all support for 3588 yet.


    Alpha version 20250610-wayland . This is a universal version for all supported devices RK3399 RK356X RK3588 RK3576. SW decoding works on all devices by default. To enable HW decoding (including on 3588), need to enable drm_prem_hw in the settings (see the screenshots for details on how to do this). But on 3588, when HW decoding is turned on, there is a bug - on 4K video it does not work and the video freezes, all videos =< 1920 x 1080 work with HW decoding without any problems.


    screen_drm_hw
    Посмотреть и скачать с Яндекс Диска
    disk.yandex.ru

    почему wayland?

    с ним нормально работает графика, и плюс он лучше поддерживается в основном ядре


    Playing around a little more. I noticed that the monitor refresh rate only had one option, 30mhz and I was unable to connect to to either the Kodi or Libreelec repositories to install addons. I just get a timeout error.

    Here are screenshots showing that the network turnips are working on the supported models (the installation is going well) and the frequency is available at 60 Hz.

    screen
    Посмотреть и скачать с Яндекс Диска
    disk.yandex.ru

    In the latest version of images dir for 3588, an alpha image for Mekotronics R57 (rk3576) has been added.

    Please note that the launch is performed from a USB media after updating the firmware in eMMC to the Armbian\Debian version with support for direct launch of systems from USB media.

    LibreELEC-ARMv8.aarch64-13.0-devel-20250428154921-e5590fa-rk3588-r57.img.gz

    Ver 20250427 for rk33xx and rk356x kernel 6.15 and rk3588 kernel 6.1.99 KODI 22


    So does this not indicate that there are still issues with it creating distortion of the image, requiring a little more work?

    This information applies only to the use of the main 6.13 kernel. Images with the 6.1 kernel work fine on the rk3588 without any distortion.


    Is it possible to somehow correct the microfreezes for RK3399 as it was done in LE 11.95, LE 12.0.0, 12.0.1?

    I don't see these problems on the models I've tested.


    I have FriendlyElec NanoPi R6S

    Is there LibreElec with latest Kodi for this device?

    I don't have this model, so it's not supported by images from this theme.

    I'm waiting for Kwiboo to finish with u-boot support.

    This has been implemented and is working for a long time.

    Rockchip: add initial support for RK356x and RK3588 by Kwiboo · Pull Request #7864 · LibreELEC/LibreELEC.tv
    This PR introduces initial support for Rockchip RK356x devices. U-Boot 2023.07, scheduled for 03 July 2023, will be the first version with decent support for…
    github.com


    Run LE from u-boot 2024.10

    DR V1.09 a930779e06 typ 22/11/21-17:50:56
    LPDDR4X, 2112MHz
    channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
    channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
    channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
    channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
    Manufacturer ID:0x6
    CH0 RX Vref:30.7%, TX Vref:21.8%,21.8%
    CH1 RX Vref:32.7%, TX Vref:23.8%,22.8%
    CH2 RX Vref:31.7%, TX Vref:21.8%,21.8%
    CH3 RX Vref:33.7%, TX Vref:22.8%,22.8%
    change to F1: 528MHz
    change to F2: 1068MHz
    change to F3: 1560MHz
    change to F0: 2112MHz
    out
    U-Boot SPL board init
    U-Boot SPL 2017.09-armbian (Jun 20 2023 - 14:17:33)
    Trying to boot from MMC2
    Trying fit image at 0x4000 sector
    ## Verified-boot: 0
    ## Checking atf-1 0x00040000 ... sha256(6a4a192c10...) + OK
    ## Checking u-boot 0x00a00000 ... sha256(f5da679ec9...) + OK
    ## Checking fdt-1 0x00ac66e0 ... sha256(a52cd719a6...) + OK
    ## Checking atf-2 0x000f0000 ... sha256(569ee96047...) + OK
    ## Checking atf-3 0xff100000 ... sha256(70505bb764...) + OK
    Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
    Total: 716.223 ms

    INFO: Preloader serial: 2
    NOTICE: BL31: v2.3():v2.3-831-g92b1674a5:derrick.huang, fwver: v1.47
    NOTICE: BL31: Built : 16:18:39, Sep 4 2024
    INFO: spec: 0x1
    INFO: code: 0x88
    INFO: ext 32k is not valid
    INFO: ddr: stride-en 4CH
    INFO: GICv3 without legacy support detected.
    INFO: ARM GICv3 driver initialized in EL3
    INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
    INFO: l3 cache partition cfg-0
    INFO: system boots from cpu-hwid-0
    INFO: disable memory repair
    INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
    ERROR: dfs get fsp_params[0] error, 0xfead0001 != 0xfead0004
    ERROR: dfs get fsp_params[1] error, 0xa54 != 0xfead0004
    ERROR: dfs get fsp_params[2] error, 0xbc != 0xfead0004
    ERROR: dfs get fsp_params[3] error, 0x3f0033 != 0xfead0004
    ERROR: loader&trust unmatch!!! Please update loader if need enable dmc
    ERROR: current trust bl31 need match with loader ddr bin V1.13 or newer
    ERROR: current loader need match with trust bl31 V1.07-V1.37
    INFO: BL31: Initialising Exception Handling Framework
    INFO: BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
    ERROR: Error initializing runtime service opteed_fast
    INFO: BL31: Preparing for EL3 exit to normal world
    INFO: Entry point address = 0xa00000
    INFO: SPSR = 0x3c9


    U-Boot 2024.10 (Mar 31 2025 - 15:13:49 +0300)

    Model: Radxa ROCK 5B
    DRAM: 16 GiB
    Core: 351 devices, 32 uclasses, devicetree: separate
    MMC: mmc@fe2c0000: 1, mmc@fe2d0000: 2, mmc@fe2e0000: 0
    Loading Environment from nowhere... OK
    In: serial@feb50000
    Out: serial@feb50000
    Err: serial@feb50000
    Model: Radxa ROCK 5B
    Net: No ethernet found.
    Hit any key to stop autoboot: 0
    Scanning for bootflows in all bootdevs
    Seq Method State Uclass Part Name Filename
    --- ----------- ------ -------- ---- ------------------------ ----------------
    Scanning bootdev '[email protected]':
    0 extlinux ready mmc 1 [email protected] /extlinux/extlinux.conf
    ** Booting bootflow '[email protected]_1' with extlinux
    1: LibreELEC
    Retrieving file: /KERNEL
    append: boot=UUID=3103-0153 disk=UUID=223bb7bf-2783-4489-a3ed-7c12b0e35c07 quiet console=ttyS2,1500000 console=tty0 systemd.debug_shell=ttyS2 coherent_pool=2M cec.debounce_ms=5000
    Retrieving file: /rockchip/rk3588-rock-5b.dtb
    ## Flattened Device Tree blob at 12000000
    Booting using the fdt blob at 0x12000000
    Working FDT set to 12000000
    Loading Device Tree to 00000000edbb0000, end 00000000edbdd41f ... OK
    Working FDT set to edbb0000

    Starting kernel ...


    and u-boot 2025.01


    U-Boot 2025.01 (Apr 01 2025 - 11:05:20 +0300)

    Model: Radxa ROCK 5B
    DRAM: 16 GiB
    fusb302 usb-typec@22: TCPM: PD transmit data failed: -110
    Core: 355 devices, 34 uclasses, devicetree: separate
    MMC: mmc@fe2c0000: 1, mmc@fe2d0000: 2, mmc@fe2e0000: 0
    Loading Environment from nowhere... OK
    In: serial@feb50000
    Out: serial@feb50000
    Err: serial@feb50000
    Model: Radxa ROCK 5B
    Net: No ethernet found.
    Hit any key to stop autoboot: 0
    Scanning for bootflows in all bootdevs
    Seq Method State Uclass Part Name Filename
    --- ----------- ------ -------- ---- ------------------------ ----------------
    Scanning bootdev '[email protected]':
    0 extlinux ready mmc 1 [email protected] /extlinux/extlinux.conf
    ** Booting bootflow '[email protected]_1' with extlinux
    1: LibreELEC
    Retrieving file: /KERNEL
    append: boot=UUID=0104-0615 disk=UUID=03dee71e-b8ea-4889-9600-3b3ab7ac68e6 quiet console=ttyS2,1500000 console=tty0 systemd.debug_shell=ttyS2 coherent_pool=2M cec.debounce_ms=5000
    Retrieving file: /rockchip/rk3588-rock-5b.dtb
    ## Flattened Device Tree blob at 12000000
    Booting using the fdt blob at 0x12000000
    Working FDT set to 12000000
    Loading Device Tree to 00000000ecbb5000, end 00000000ecbe241f ... OK
    Working FDT set to ecbb5000

    Starting kernel ...

    Ver 20250303 for rk33xx and rk356x kernel 6.12.17


    ust read the rk3588 status from collabora,

    I have been testing LE with the main core for a long time (see the link for details https://github.com/LibreELEC/Libr…ment-2631095501 ).

    LE with the main core starts and works, but for now there is a problem, the HDMI frequency synchronization out of the box does not work (perhaps this is a local problem of my monitor), I have not yet delved into the essence of the problem, LE with the 6.1 core on the 3588 is enough for me.

    I can give you a link to test images with the main core for those who want to try, perhaps on their hardware or with additional settings on the command line, KODI will work fully.

    20250303-3588-test
    Посмотреть и скачать с Яндекс Диска
    disk.yandex.ru

    Most of the codecs aren't upstream yet either.

    the performance of the 3588 is so high that it does not require HW decoders for video playback up to 4K in the banal SW mode :)