[UNOFFICIAL][RK3228/RK3229][box]Libreelec builds

  • Hi ilmich ,

    Same thing : not working :(

    I'm going to check the changes I've made on my side (and how work fine) and I'll get back to you soon (with an MR I think), I'm out of town for the next two weeks...
    See you soon!

    log:

  • Hi guys, im new here.

    First of all, thanks for the work you've done, i've been reading and its a lot of passion here.

    I recently got a MXQ PRO 5g 4K:

    *Rockchip RK3229

    I installed LibreELEC and works but my Wi-Fi Card is not working, can you help?


    PrivateBin
    Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.
    privatebin.net
  • I'd ask ilmich to bump the kernel to something newer than Linux 6.1.y as there are improvements/fixes to the rtl8xxxu driver that might benefit things for an RTL8723BU chip. That might not be a simple exercise though, and his time is limited. In the longer term support should be added to the rtw88 driver, but that effort is still in early stages.

    Plan B .. (or C) .. use an external USB wifi device or something that's powered from USB but presents an Ethernet interface (so there are no drivers involved).

  • Hi guerrero2694,

    You could provide the reference of the board (you have to remove the 4 screws hidden behind the little anti-slip pads).
    I also bought a model with the same reference "MXQ PRO 5g 4K" recently (today :) ), the reference of my card inside is: r29_5g_lp3_v3.0 231005

    I quickly tested the tvbox (on libreelec with r29 dtb):

    boot on SDcard : ok
    Ethernet: OK
    HDMI/video playback: ok
    USB : OK

    console UART Ok (requires soldering)
    maskrom pin : I'll need to look for it...

    Install to emmc : NO OK ( strange thing is that if I boot with multitool, and then reboot with quick removing the SD card, I manage to boot correctly... otherwise on cold boot the emmc is not detected by the uboot..)

    wifi : no detected

    For info => Android GPIO debug + dmesg :

    PrivateBin
    Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.
    privatebin.net
  • That might not be a simple exercise though, and his time is limited.

    I'm starting to work on libreelec 12, but unfortunately, it's true that I have little time available.

    pocng , do you have a link to the Android firmware of your box (alternatively also the first ~100mb of a dump of the internal memory) ? I looked at the logs and you should have a Broadcom BCM4330 wifi chip which is supported by the mainline kernel. If it's not detected, the correct gpio that enables it probably needs to be added, but I need the android dtb.

    guerrero2694 as pocng said, try sending a photo of the board

  • Hi ilmich

    You will find on this share : http://sandbox02.poc.ng/tvbox/r29/
    - the backup made with multitools
    - 100MB first rom backup (FIRST100MB-R29_5G_LP3_V3.0-231005_mxqpro4k.img.xz)
    - the android device tree in FS mode (R29_5G_LP3_V3.0-231005_android_dtbfs.tar.gz )
    - the source device tree created from devicetree fs android (R29_5G_LP3_V3.0-231005_android.dts)
    - the gpio kernel debug file (R29_5G_LP3_V3.0-231005_gpio.txt)
    - Board pictures (R29_5G_LP3_V3.0-231005-Photos.pdf)

    guerrero2694 can you confirm that you have the same? (look http://sandbox02.poc.ng/tvbox/r29/R29_…1005-Photos.pdf)

    Edited 2 times, last by pocng (June 15, 2024 at 1:44 PM).

  • Hi @ilmich,

    I quickly checked the GPIOs for Wlan and so far I haven't found the source of the problem. At first glance, the pins are indeed those defined in the dtb...


    To help me identify the pinctrl from the gpio kernel debug file, I've made myself a correspondence table, I don't know if it can help other people but i share it here : http://sandbox02.poc.ng/tvbox/rk322x_linux_gpio.txt
    :)

    To be continue ... :)

  • Hi @ilmich,

    I once again fell for a box on special offer for less than $7 (including postage, just received), an H20 (board tagged H20-221-1.8-B).
    The DTS decompiled from Android is almost identical to the DTS of the R2 _5G_LP3_V3.0-231005 box (quoted posts above but another wifi chipset).

    With the "R29" DTB:
    Boot on SDcard: OK
    Ethernet: OK
    HDMI/video Playback : OK (for over 3 hours)
    Power/Standby LED : OK

    UART Port Pin : OK
    SDIO WIFI : not detected :( => wifi is sdio 02e7/9086 / smartchip sci S9082H (on armbian forum i can see : its a clone of some wifi rtl chips , its closse source , no linux support)

    I've added this tvbox info (photo, android dts, backup...) to this share: http://sandbox02.poc.ng/tvbox/H20-221-V1_8-B/

    Edited 2 times, last by pocng (June 19, 2024 at 11:43 PM).

  • Hi @ilmich,

    I quickly checked the GPIOs for Wlan and so far I haven't found the source of the problem. At first glance, the pins are indeed those defined in the dtb...


    To help me identify the pinctrl from the gpio kernel debug file, I've made myself a correspondence table, I don't know if it can help other people but i share it here : http://sandbox02.poc.ng/tvbox/rk322x_linux_gpio.txt
    :)

    To be continue ... :)

    maybe you have already sent it, but could you please send me a dmesg? at this point the problem could be elsewhere.

    SDIO WIFI : not detected :( => wifi is sdio 02e7/9086 / smartchip sci S9082H (on armbian forum i can see : its a clone of some wifi rtl chips , its closse source , no linux support)

    I found this driver

    GitHub - ChalesYu/rtl8822bs-aml at smartchip_sci_s9012p
    unoffical driver for linux (Support rtl8189es rtl8723bs rtl8822bs) and SCI(smartchip)WiFi(S9082C S9012P) - GitHub - ChalesYu/rtl8822bs-aml at…
    github.com

    I don't like it much but I can try.

  • Hi ilmich

    When I wrote that the wifi card is not detected, it's because I don't have any SDIO device information in the dmesg (dmesg | grep -i sdio => nothing). I think I've got a DTS problem, probably something missing...
    I've read the article https://community.silabs.com/s/article/linu…?language=en_US and for the moment it's not a driver problem but more a mmc/sdio dts config problem, I'm going to have another look at the configs and prepare debug files to share. (same things with r29 tv box posted above...)

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

    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

    PS2: the Android dmesg / dts / firmware / pictures for H20 and R29 box is shared here :)

  • I flashed my rk3328a MXQ Box and it seems to works just fine.

    But there's one big issue, most of my TV outputs only at 1024x768 (LG and Sony TVs) and without any kind of audio. Sometimes a power cycle fix it but the issue seems to be popping up randomly every boot. But some of my TVs dont really like the TV box at all, it just outputs with unsupported resolution (Samsung TV). And finally I tested it with a cheap dumb TV from china it works but as I said earlier limited to 1024x768 with no audio as well, and here's a weird thing, that cheap tv detects the signal as DVI instead of HDMI.

    BTW, I dont have any kind of issue regarding to video and audio output on this thing via HDMI with a Android ROM on it. The cheap chinese tv now detects it as a proper HDMI signal instead of DVI.

  • 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

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

  • Thanks again for the effort you put on this, ilmich .


    Wich skins are you guys using with the latest build? I like AH2, but I think it is too much to this little board to handle

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