Posts by ilmich

    Hi hamafever , sorry for the late reply.

    Your board is one that I know has startup problems. Please try with my previous libreelec 11 build https://ilmich.libreelec.tv/libreelec-11/ and let me know.

    In any case it would be useful

    - if you can produce a boot log via serial connection (I see from the photos that you have a cable connected so perhaps you already have a uart available)

    - the exact version of your android firmware (even better if you have a download link)

    Cheers
    Michele

    hi spigui

    Thanks for continuing to update this box, great job!

    thank you very much.

    1) It plays some videos but it freezes every few seconds, I tried to make the cache bigger but it didn't work.
    2) Some videos don't play and I've attached a picture of the screen and logs

    from the log you sent, I saw there are errors with your multimedia UPNP server (ums?). I used minidlna for a while but never had any problems. I'll try to install it and do some testing even if it could be a kodi bug.

    3) I couldn't find the AC3 and EAC3 passthrough option that was previously in AUDIO. I saw it in the player but it didn't work, I couldn't get 5.1 sound like I had in LE11.

    I know.. the porting of libreelec 11 is not completed yet.

    Cheers
    Michele

    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 12

    FEATURES
    - Kodi Omega 21.2
    - mainline kernel 6.6.71
    - 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-12/
    - source: https://github.com/rockchip-with-…le12-rk322x-wip

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

    MANUAL UPDATE

    WARNING: The upgrade from libreelec 11 is tested, but a backup is recommended and in case of problems a clean install is suggested.


    Copy (via ssh,samba, etc etc) the desired build into the 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 666 Mhz1,2 Ghz400 Mhz
    Onetv Literk322x-box-onetv-lite 666 Mhz1,2 Ghz400 Mhz
    MXQ 4k Prork322x-box-mxq4kprossv6051p and others 666 Mhz1,2 Ghz400 Mhz
    MXQ 4k Pro (r329q varian)rk322x-box-mxq4kpro_r329qssv6051p and others 666 Mhz1,2 Ghz400 Mhz
    MXQ 4krk322x-box-mxq4kssv6051 and others 666 Mhz1,2 ghz400 Mhz
    MXQ 4k (R29 variant)rk322x-box-mxq4k_r29ssv6051 and others 666 Mhz1,2 Ghz400 Mhz
    T95drk322x-box-t95dAP6255 400 Mhz1,0 Ghz400 Mhz
    Alfawise A95XR1rk322x-box-a95xr1ssv6051 and others 666 Mhz1,2 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
    2024/09/14: Initial release

    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

    hi ochentay4 kodi is a libretro frontend just like retroarch so take a look here https://kodi.wiki/view/Game_add-ons. You can find the libretro cores in the libreelec repository so addons --> install from repository --> libreelec addons --> games addons --> emulators .

    Please note that:

    The cores can be configured like with Retroarch, but in general, there are fewer features at the moment. For me, this is a good thing because I prefer playing games rather than looking for the best emulation of a CRT monitor.

    - in the libreelec 11 branch some cores do not work 100% (for example the PS1 one). I never really understood the reason (Kodi problem or something else) but I can tell you that everything works in libreelec 12 and the performance on the 3228 boxes is comparable with my Lakka build.

    ilmich Hi! I found out that you released some time ago Lakka for this box using similar tools like you did for LibreELEC. Could you release an updated version for RK322x? Lakka v4 or v5? As you did here? http://ilmich6502.it/lakka-4.x/

    Latest release LibreELEC-RK322X.arm-11.0-nightly-20240218-d7324fb-rk322x.img worked really fine on my box, maybe if its tranplanted with Lakka it will probably run great too!

    Also, any news regarding an updated LibreELEC for this boxes?

    Hi ochentay4 this is not the right place to talk about lakka but know that I intend to continue that project too
    even if I prefer libreelec for retrograming as it's more simple than lakka (more click and play than the thousand settings of lakka) and the performances are identical (some addons on libreelec 11 are broken but most of them works)

    Also, any news regarding an updated LibreELEC for this boxes?

    I'm trying a test build that I will publish in a new post, you need to have a little patience but as I have written in the past, the project is not dead :)

    hi spigui I see from your logs

    Code
    Aug 21 15:59:44 LibreELEC kernel: VideoPlayer invoked oom-killer: gfp_mask=0x400dc2(GFP_KERNEL_ACCOUNT|__GFP_HIGHMEM|__GFP_ZERO), order=0, oom_score_adj=0

    basically kodi has run out of available memory. I don't think it's a problem with my build but maybe some KODI bug with the stream you're trying to play. try playing it locally rather than another streaming method (http for example instead of UPnP)

    It seems there are some problems with your SD card, try replacing it

    Hi openminded

    I see you are running low on time ilmich , let me know how I can help out with that.

    yes, real life and lack of devices (I lost a couple of boxes due to some experiments) is preventing me from working on this project. But it's not dead, I started working on libreelec 12 (https://github.com/rockchip-with-…e12-rk322x-wip/).

    Time I have soon, I know Linux, kernels and have been compiling kernels and hacking all kinds of boxes ( although no expert ).

    it would be great, first of all I recommend trying to build libreelec yourself and study the patches you find for rk322x. the code is quite stable but as you can see some boxes work better than others (especially because there are so many variations and not having them it is impossible for me to make everything work)

    I can dumb a dtb from Android if useful ? It's running Android 11.1 I think.

    it would be useful because the wifi must be activated via gpio pin and they are often indicated in the dtb. if your board is equipped with wifi compatible with the mainline kernel there is hope of making it work. otherwise, I recommend the network cable or an external USB wifi.

    I had some time to try with my rpi4. I don't know if anything has changed in the meantime, but trying on a clean install of Libreelec 12 (no other addons) the psx emulation with pcsx_rearmed didn't give me any problems (just moments of fun with an old car racing game)

    By the way, it also works fine on my old rk3229 box (arm 32bit and unofficial build of libreelec 12) but that's off-topic of course.

    P.s: I saw from your logs that you are using libreelec 11, I suggest you try to update.

    pcsx-rearmed contains special optimizations for arm architectures (dynamic recompiler and emulated graphics card optimized with NEON instructions). if they are not enabled it's essentially unusable. Lakka enables them, the kodi addon (used by libreelec) does not. Or at least that's what I saw. I'll try to take a look at it.

    sorry, forget what I wrote. in the past pcsx_rearmed had to be compiled by manually inserting optimizations at build time (as the LAKKA build system still does). But I saw that now the best architecture and options are automatically selected by the makefile without any need to specify them

    pcsx-rearmed contains special optimizations for arm architectures (dynamic recompiler and emulated graphics card optimized with NEON instructions). if they are not enabled it's essentially unusable. Lakka enables them, the kodi addon (used by libreelec) does not. Or at least that's what I saw. I'll try to take a look at it.

    jaum20 I use estuary and my builds are optimized for this skin. personally on the boxes with ddr2 I tried pellucid for a period but estuary is the best currently.

    However, try this pre-release build if you have an extra SD card.

    Index of /libreelec-11/test/

    there are some kodi optimizations that use smaller textures (lower quality but less stress on the cpu/gpu). Even third party skins should be better (I tried arctic fuse and it's not too bad)

    remlei I imagine you also tried changing the HDMI cable. In any case, the problem is that the edid is not read correctly (so basically your TV is not correctly detected). this can happen if the HDMI cable is of poor quality, or the TV returns an EDID not correctly recognized by the driver.

    Android in these cases sets the resolution fixed to 720p with audio. Linux instead at 768p without audio.
    The best thing would be to understand if this is the problem (I'm pretty sure it is) because I could simulate what android does but you miss out on all the other resolutions.
    So, as requested, please send a log (tutorial here https://wiki.libreelec.tv/support/log-files)

    hi pocng

    it's because I don't have any SDIO device information in the dmesg

    that's correct, if you don't see this

    Code
    mmc2: new high speed SDIO card at address 0001

    at least it means that the wifi card is not active. I looked at the DTS and it seems to me to be the usual pin (90 --> gpio2 PD2) so the problem is really strange.

    Thanks for rtl8822bs-aml git projet, I'll test it as soon as I get to detect SDIO

    Index of /libreelec-11/test/

    in this image, I have compiled the driver I was telling you about. the source is here (I forked) https://github.com/rockchip-with-…rtchip-sci-wifi

    PS: for the r329q v3.1 I've finally made the merge request for boot support on the emmc :) and share this patched LibreElec built here

    Thanks so much, I'll take a look at it as soon as I can