Posts by balbes150

    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 :)

    I use that version and Libreelec start but, Wi-Fi

    Unzip this archive (or you can take the contents of this directory from Armbian /usr/lib/firmware) on USB to a directory /storage/.config/

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

    You should be able to do it /storage/.config/firmware/ap6275p


    LibreELEC:/ # ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
       link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
       inet 127.0.0.1/8 scope host lo
          valid_lft forever preferred_lft forever
       inet6 ::1/128 scope host noprefixroute 
          valid_lft forever preferred_lft forever
    2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel qlen 1000
       link/ether xxxxxxxxxxxxxxxxx brd ff:ff:ff:ff:ff:ff
       inet 10.1.30.46/24 brd 10.1.30.255 scope global wlan0
          valid_lft forever preferred_lft forever
    3: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel qlen 1000
       link/ether xxxxxxxxxxxxxxxxxx brd ff:ff:ff:ff:ff:ff


    and LAN module is not recognize

    There khadas-ede2 is no LAN port, LAN can only be accessed via a USB LAN adapter. Not all adapters are supported. I have two adapters and they work without problems.


    I also haven't been able to get any builds after 20240501-rk3588 to post on my Khadas Edge2 even the last one doesn't work. Has anyone else been able to get the newer builds working?

    What system is installed in eMMC? Which u-boot is used? A detailed description of all the steps to launch LE. I have everything working with USB and SD without any problems.


    Hit key to stop autoboot('CTRL+C'): 0
    starting USB...
    Bus usb@fb800000: USB EHCI 1.00
    Bus usb@fc840000: USB OHCI 1.0
    Bus tsb@fc880000: USB EHCI 1.00
    Bus usb@fc8c0000: USB OHCI 1.0
    scanning bus usb@fc800000 for devices... WARN: interface 0 has 2 endpoint descriptor, different from the interface descriptor's value: 1
    6 USB Device(s) found
    scanning bus usb@fc840000 for devices... 1 USB Device(s) found
    scannhng bus usb@fc880000 for devices... 2 USB Device(s) found
    scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
    scanning usb for storage devices... 1 Storage Device(s) found

    Device 0: Vendor: UFD 2.0 Rev: 1100 Prod: Silicon-Power4G
    Type: Removable Hard Disk
    Capacity: 3841.0 MB = 3.7 GB (7866368 x 512)
    ... is now current device
    Scanning usb 0:1...
    Found /extlinux/extlinux.conf
    Retrieving file: /extlinux/extlinux.conf
    reading /extlinux/extlinux.conf
    235 bytes read in 76 ms (2.9 KiB/s)
    1: LibreELEC
    Retrieving file: /KERNEL
    reading /KERNEL
    70242816 bytes read in 5454 ms (12.3 MiB/s)
    append: boot=LABEL=LIBREELEC disk=LABEL=STORAFE quiet console=ttyFIQ0,1500000 console=tty0 systemd.debug_shell=ttyFIQ0 coherent_pool=2M cec.debounce_ms=5000
    Retrheving file: /dtb/rockchip/rk3588s-khadas-edge2.dtb
    reading /dtb/rockchip/rk3588s-khadas-edge2.dtb
    241292 bytes read in 214 ms (1.1 MiB/s)

    [ 13.033562] rkvenc_init:1870: failed to add venc devfreq
    [ 13.036265] rockchip-dmc dmc: Current ATF unsupported get_stall_time
    [ 13.036322] rockchhp-dmc dmc: failed to get vop bandwidth to dmc rate
    [ 13.036236] rockchip-dmc dmc: failed to get vop pn to lsch rl
    [ 13.121973] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
    [ 13.122017] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
    [ 12.122036] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
    [ 13.124416] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
    [ 13.135632] debugfs: Directory &fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
    [ 13.136109] debugfs: File 'uA_load' in directory '/' already present!
    [ 13.136126] debugfs: File 'min_uV' in directory '/' already present!
    [ 13.136143] debugfs: File 'max_uV' in directory '/' already present!
    [ 13.136160] debugfs: File 'constraint_flags' in directory '/' already present!
    [ 13.232202] integrity: Unable to open file: /etc/keys/x509_ima.der (-2)
    p104p104LibreELEC:/ #

    p104p104LibreELEC:/ # uname -a
    Linux LibreELEC 6.1.43 #2 SLP PREEMPT Sun Jan 26 10:45:11 MSK 2025 aarch64 GNU/Linux
    LibreELEC:/ #


    Screenshots

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

    Update 20241016 of Libreelec and Armbian images for Mekotronics R58X with support for direct launch of any systems from USB media. You can install these versions in eMMC and get the ability to directly launch any systems from USB.

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

    For example, install Libreelec in eMMC, and write Armbian to a USB flash drive and quickly switch between these systems (by simply connecting a USB flash drive to the device and the system will automatically start from it, without affecting the system in eMMC).

    Good news, the first Libreelec image for Mekotronics r58x is ready for installation on emmc.
    The installation procedure in emmc is similar to the Armbian installation
    Armbian firmware upgrade tool and instruction: https://we.tl/t-5e0Hfs4zri
    only use the LE image as an image (download and unpack before recording).

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

    By default, sound is enabled via DP, so to output via HDMI or analog output, you need to change the settings to the desired option.