[unoffical] LE-9.2/9.80-Images for RK3229/RK3228

  • unfortunately yes, you have to open the box and read the label of the wifi chip, or if you have another working SO (like Android), retrieve the information in another way.

    Thanks for the hint. Turns out I do have a pristine spare box lying around with its original Android installed.

    The wifi card for H96 mini V8 is 024c b723 (Realtek rtl8723as/rtl8723bs).

    I see that this driver is already in the kernel so I edited the dts and build configs, but compiling the kernel is too slow on the laptop that I'm using at the moment so I couldn't test anything.

    Edited once, last by bluetako (February 3, 2022 at 7:13 AM).

  • The wifi card for H96 mini V8 is 024c b723 (Realtek rtl8723as/rtl8723bs).

    The SDIO wifi card doesn't seem to power up on H96 mini V8:

    Code
    kodi-h96mini:/ # cat /sys/devices/platform/30010000.dwmmc/power/runtime_enabled
    enabled
    
    kodi-h96mini:/ # cat /sys/devices/platform/30010000.dwmmc/mmc_host/mmc1/power/runtime_enabled
    disabled

    Writing "on" to control doesn't set the card enabled either.

    dmesg:

    Code
    [    0.572879] mmc_host mmc1: card is non-removable.
    [    0.586005] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
    [    0.615761] mmc_host mmc1: Bus speed (slot 0) = 12000000Hz (slot req 50000000Hz, actual 12000000HZ div = 0)
    [    0.617901] mmc1: new high speed SDIO card at address 0001

    I've already decompiled the H96 mini H8's dtb and modified this line inside bluetooth and wifi nodes: compatible = "realtek,rtl8723bs-bt" but the RTL driver still won't load automatically. I've also tried removing the entire wifi node and the result was the same.

    Manual loading insmod r8723bs.ko works fine but no network devices are detected:

    Code
    [    5.603049] RTL8723BS: module init start
    [    5.603075] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
    [    5.603078] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
    [    5.603253] RTL8723BS: module init ret =0

    Does this mean the pinctrl's in the device-tree may need changing? I'm new to LE and Arm/embedded. Any hint or help would be appreciated.

  • hi bluetako

    on legacy rockchip kernel there is a module called rfkill that is responsible for the wifi wakeup and probe.

    So in your dtb leave the 'wlan-platdata' in the WiFi node (this autoload rfkill) and change the wifi chip type according to your chip (for example rtl8723as).

    If works let me known, because I'm not working anymore on this build, but I know that for some users LE 9.2 is better. So maybe I'll try to add also this device

    cheers

  • Many thanks for chiming in, ilmich.

    After the change nothing new appears in dmesg and wlan interface doesn't show up still. /sys/class/rfkill/ exists but is empty. I've tried both wifi_chip_type = "rtl8723as" and wifi_chip_type = "rtl8723bs" assignments.

    Here's how the wifi node looks like. No change is made elsewhere in the dts.

    Code
            wifi@1 {
                compatible = "wlan-platdata";
                wifi_chip_type = "rtl8723as";
                reg = <0x01>;
                interrupt-parent = <0x4c>;
                interrupts = <0x1c 0x00>;
                interrupt-names = "host-wake";
                pinctrl-names = "default";
                pinctrl-0 = <0x4d>;
            };

    Diff against the original H96 mini H8 decompiled dts:

    Code
    849c849,850
    <             compatible = "brcm,bcm4329-fmac";
    ---
    >             compatible = "wlan-platdata";
    >             wifi_chip_type = "rtl8723as";
    854d854
    <             brcm,drive-strength = <0x05>;

    The new dtb is in effect:

    EDIT: I'm using the LE 9.80 h96mini image. The decompiled DTS looks quite different between 9.2 and 9.80 builds.

    Is it safe to overwrite 9.80's DTB file with that of the 9.2's? This device doesn't have a microSD slot and I'm testing this on MMC, so I'm being extra cautious. Thanks!

    Edited 3 times, last by bluetako (February 7, 2022 at 8:04 AM).

  • hi bluetako , my tips is for libreelec 9.2. On mainline kernel works different.

    Try my unofficial build of libreelec 10 with kernel 5.10.x

    ilmich
    February 3, 2022 at 10:10 AM
  • Hi,

    I have an r329q v3.0 board with rk3228, DDR2, sv6051 wifi and NAND storage.

    The LE9.2 build for the Alfawise A8 image (LibreELEC-RK322x.arm-9.2-devel-20200427213246-b7186bc-rk3228b-a8.img.gz) is the best for me on my hardware, and I have an SD card running beautifully and reliably including IR..

    However, when it's up and running from SD card, I can't see the NAND device /dev/rknand0

    When I write the image to NAND using Multitool the boot fails giving a "grep: /proc/net/pnp: No such file or directory" error and drops to a console prompt.

    This is a legacy kernel image, do they all have rknand support? Do I need to do anything specific to turn it on?

    I've compiled a custom dtb file, by cobbling bits from the dts (deconstructed from the dtb) files for the a8 and v88mars builds, and recompiling, to enable NAND but that didn't do the trick.

    BTW . I've previously upgraded the idbloader on the NAND using rk322x_loader_v1.10.256.bin and have had a LE10.x build booting on the NAND previously. Just looking to DG to 9.2 whilst the 10.x builds stabilise.

    Any help greatly appreciated.

    Barry

  • What builds did you use ?! Mine or knaerzche's ?!

    However the alfawise a8 does not have nand support, so you should try other images.

    Unfortunately, unlike the images for Libreelec 10, these are custom for each device. So if NAND support is not enabled for that device, both the bootloader and the device tree do not use it.

    You can try with the v88mars which is very similar.

    Please note that my builds are a bit more up to date, but in fact consider them not maintained anymore.

    Cheers

    Michele

  • Sorry for the confusion... I've been using both LE9.2 (knaerzche's Alfawise A* worked really well from SD) from 2020

    and your LE10.x builds from this year.

    I see you have more recent LE9.2 builds .. I'll give the some of them a try..

    Thanks again. :thumbup: :thumbup:

  • ilmich - That's worked a treat your latest v88mars image (LibreELEC-RK322x.arm-9.2-devel-20220124165557-3ce5dd4-rk3229-v88mars.img.gz) worked straight out of the box......

    As this is a sticky thread, perhaps the links on page 1 should point to your later builds, or at least offer a choice.

    Would never have found the recent LE9.2 builds without your help.

    Thanks all.

  • Hello. Please help me. I don't understand how to install it at all. I have an rk322x. What to do with this image, how to boot from it? I read what there is, and I didn't understand. I insert a usb flash drive and launch the recovery menu. There are no items and nothing is loaded.

    How does it all work, it's not clear, there are no normal instructions, what exactly to do? Here I have a flash drive and there are images, then what should I do to boot? It just doesn't load from a USB stick, I tried any images. Help please.

  • Hi deckard,

    the images you can download, unless otherwise specified, are raw images of the operating system.

    This means that you have to use them by writing them directly to a boot device (whether it's a hard disk, a USB stick, SD card, internal memory etc etc etc).

    95% of rk3229 android boxes allow to boot from sd card, so use any tool to write image to sd card ( https://wiki.libreelec.tv/installation/create-media).

    Once the image has been written, insert the sd card and power up the box.

    edit: for modern libreelec builds try [UNOFFICIAL][RK3228/RK3229]Libreelec builds