Mecool m8s plus (s905x2) box with wifi RTL8188F.

  • I have a box as in the subject, trying to start wifi under *Elec I came across this topic: Nexbox A95X (GXBB) .

    I tried the image from @chewitt, not knowing the correct dtb, checked all menson-g12a-* .

    The box launches for: meson-g12a-x96-max.dtb and meson-g12a-sei510.dtb .

    In the case of x96 there is picture and sound, no wired network, and the wireless network sees the router but cannot connect (invalid key).

    For sei510 there is a picture, no sound, the wired network works, for the wireless network it is the same as for x96.

    How chewitt built the image with rtl8189 and it works, since in the dtb files used, there is nothing about this wifi module?

    How to make it have picture, sound and wired and wireless network in this box??

    dmesg for dtb sei510: http://ix.io/4AY3

    I also have dtb file from android 9: g12a-u212-2g.dtb.zip

    Edited once, last by secam7 (July 19, 2023 at 8:48 PM).

  • Code
    &ethmac {
        status = "okay";
        phy-handle = <&internal_ephy>;
        phy-mode = "rmii";
    };

    SEI510 uses the internal Ethernet PHY embedded in the SoC itself so as long as that's present in device-tree Ethernet works. The X96-Max dtb uses external PHY which requires different content and the correct compatibles to work. The SEI510 has special audio config though, which will not align to the config used with most TV boxes.

    For WiFi, the SDIO bus supports discovery and probing by the kernel so as long as the bus is enabled (and is most device-tree files it is) the chip can be seen and matched to a kernel driver and used. I've added the RTL8189ES/FS drivers into my private LE sources for a while so the needed driver is present in the image. Those vendor drivers are deliberately not present in the main LE releases, and that's not going to change. You can find the packages here: https://github.com/chewitt/LibreELEC.tv/commits/amlogic

    It should be fairly simple to create a device-tree for the box. Start with the X96-Max and just change the Ethernet config.

  • Have a read of this: https://wiki.libreelec.tv/development/git-tutorial

    In short, you need to create a diff patch that patches the kernel sources either modifies the x96-max dts file or (better) adds a new dts file for your box. Clone Linux kernel sources from https://github.com/chewitt/linux/commits/amlogic-6.1.y then create a new branch and make and then commit changes. You can then generate the diff patches from the commits (git format-patch ..) and copy them into the LE buildsystem at projects/Amlogic/devices/AMLGX/patches/linux/ then rebuild the image so the patches are applied to kernel sources and included in the built kernel. If you modify the kernel build folder direct; a) respinning the image will not pickup the changes, b) if you force the kernel package to be rebuilt this will remove the build folder and unpack it again from sources overwriting your changes.

  • I wanted to thank you very much, you helped me a lot! :)

    The wired connection works, the sound is too.

    Now I'm trying to get wifi to work but it's having issues with the sd card/reader. Maybe with the box itself.

    I'm sure I'll have more questions, but for now I have to deal with some technical issues.

    I wish you success in activities other than this one. :)