Posts by bluetako

    UPDATE: Found a copy of LibreELEC-ARMv7.arm-11.0-devel-20210818064457-34fd57d-rk3188 -- it boots fine. No wifi but everything else appears to be working. The current/newer builds in the first post have broken rk3188/cs918 support. Thanks balbes150 for the images.


    I have a few rk3188 boxes (cs918) that I'd like to run LE on, but LE kernel panics about 1 sec after starting kernel.


    I've tried all three 2021 armv7 rk3188 builds that are currently available in your Yandax disk -- the results are the same.

    Code
    LABEL LibreELEC
      LINUX /KERNEL
      FDT /dtb/rockchip/rk3188-rbox-cs918.dtb
      APPEND boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet console=uart8250,mmio32,0x20064000 console=tty0 systemd.debug_shell=ttyS2 coherent_pool=2M video=HDMI-A-1:[email protected]

    Interestingly balbes150's ArmbianTV rk3188 builds boot fine on these boxes. I've tried overwriting LE's DTB by that of Armbian's, but it didn't solve the kernel panic issue.


    Hints are appreciated. Thanks!

    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
            [email protected] {
                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!

    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.

    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.

    bluetako wich builds?! mainline or legacy?!

    Can you please share more info of WiFi chip?! (brand and model)


    cheers


    Looks like it's bcm4329.


    Code
    h96miniv8:/ # cat /sys/firmware/devicetree/base/[email protected]/[email protected]/compatible
    brcm,bcm4329-fmac

    EDIT: this seems to be wrong - it's coming straight from the dts. Is it possible to get the wifi card model from the sysfs, or do I have to open up the box?