Posts by ilmich

    The stock Android is terrible, but LibreELEC seems to run pretty well on it, so thanks a lot!

    I'm happy, the work behind it was long and sometimes complicated.

    Ethernet and Wi-Fi doesn't work,

    I saw some errors related to missing firmware. Let's see what I can do.

    Ended up dumping DTB from both image and /proc as I wasn't sure if I did it correctly from the image, both attached should they be useful somehow.

    they are useful because I could add support to your box too.

    My Apple type-c to headphone adapter doesn't show up as an audio device in settings. I did check lsusb and it does show up there so not sure what's up. This also happens in LE11. Currently my workaround is to use a cheap optical/coax to 3.5mm converter, which works with the SPDIF output.

    After some research, I read that the device actually activates when you connect a device via 3.5mm jack. Can you please try? In the meantime, I'm trying to understand if some drivers are missing.

    Hey, good to know you're still maintaining this box.

    thank you for using my builds to save old hardware from oblivion :)

    Wifi still doesn't show any networks to connect to. It's never worked on LE11 either. Mine has the RK3228A + ESP8089.

    I saw that the driver loaded correctly. try disabling and re-enabling networking from the libreelec configuration tool. I don't think this is the problem but also make sure you have wifi networks in 2.4ghz mode because the chip does not support 5g and higher

    Framerate on the UI seems pretty low.

    I saw that you use 4k resolution. Comparing Kodi Nexus with Kodi Omega is difficult, but the processor may not be able to handle the UI smoothly at such high resolutions. For now, I advise you to try with a lower resolution, leaving the switch to the player that increases the resolution only when needed.

    At this moment I don't have a 4k device for tests, perhaps in the future I will be able to further optimize the performance even if a lot depends on the work of Kodi developers who care about less powerful devices.

    Is emmc install no longer a thing?

    your device has an internal emmc so should works, but I only recommend it to those who know what they are doing.
    I prefer boot from an SD card because I can decide the capacity and in case of problems I simply replace it (which you can't do easily with internal memory)

    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.1
    - mainline kernel 6.6.46
    - 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

    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.