Posts by Deoptim

    Works for me:

    Note:

    1. from sources jwrdegoede(fixed compile issues for Linux kernel up to 6.1.x) it normally compile without errors.

    2. added parameter CONFIG_80211W without this parameter WIFI will not work

    Link: Orange Pi Lite image

    P.S.

    As mentioned chewitt, in file "distributions/LibreELEC/options" of sources you must add in parameter ADDITIONAL_DRIVERS => an option RTL8189FS to compile this new "packages/linux-drivers/RTL8189FS/package.mk", for example:

    Code
    # for a list of additional drivers see packages/linux-drivers
    # Space separated list is supported,
    # e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
    # original
    #ADDITIONAL_DRIVERS="RTL8192DU RTL8812AU"
    # added new RTL8189FS parameter via 'space'
    ADDITIONAL_DRIVERS="RTL8192DU RTL8812AU RTL8189FS"

    After that (before the main make command) don't forget usage command: "ARCH=arm PROJECT=Allwinner DEVICE="H3 UBOOT_SYSTEM=<your device> tools/download-tool" or "ARCH=arm PROJECT=Allwinner DEVICE=H6 UBOOT_SYSTEM=<your device> tools/download-tool" (if your device is H6 or H3 respectively)

    Solved with this package.mk

    Now it works well.

    Hello.

    Latest mainline of Libreelec:

    Code
    LibreELEC:/ # uname -a
    Linux LibreELEC 6.0.9 #1 SMP PREEMPT Fri Nov 18 22:07:33 EET 2022 armv7l GNU/Linux
    LibreELEC:/ #

    Latest buld Libreelec from tree for Allwinner H3 Orange Pi Lite with 1G RAM Wifi SDIO type rtl8189fs from tree https://github.com/jwrdegoede/rtl8189ES_linux/tree/rtl8189fs

    Successfully compiled.

    Only the drivers have been added to the packages:

    Wifi module boots correctly(dmesg):

    iw tool show device corectly:

    Code
    LibreELEC:/ # iw dev
    phy#0
            Interface wlan0
                    ifindex 3
                    wdev 0x1
                    addr XX:XX:XX:XX:XX:XX
                    type managed
                    txpower 12.00 dBm
    LibreELEC:/ #

    if use iw for scan, its scan wifi sorrectly:

    Modules loaded:

    But no wifi list on menu KODI.

    I was try this manual over console and got this:

    If the Wifi module works correctly, why is AP's not in the list of available networks?

    Thank you.

    I'm curious why did you add mali utgard driver patches?That's not used by mesa at all. Also, why did you change DEBUG_TTY="/dev/console" to DEBUG_TTY="/dev/ttyS0"? Serial console works without this change.

    I've tried using mali utgard instead of mesa with no success. Therefore, these changes remained in the patch. I made a patch from my local git and didn't clean it up, so sorry.

    By default, the console does not work via UART - there is silence. I had to do this following the example of the Samsung profile and the console now worked well.

    Maybe only this parameter turn on console in UART: systemd.debug_shell=ttyS0

    But as I said, the console did not work for me until I did it following the example of a Samsung device.

    Hello.

    I compiled LibreELEC 11.0 (from upgradable mainline tree LibreELEC) for Orange Pi Lite

    For those who are interested, attached.

    Work done:

    1. I fixed the sleep mode due to the WiFi feature on board.

    2. Disabled DEBUG extra output in dmesg in the WiFi adapter module - now it doesn't spam in the kernel log.

    3. Also, as a useless red indicator, a "heartbeat" is made, the status of reading a memory card, it regularly writes/reads something about once a second - if it freezes, it simply will stop blinking.

    4. MicroUSB OTG connector is used as a host and now it can be used just as another additional USB connector.

    5. Added zram service that provides dynamic compression of data in memory (why it is needed, it is written below), by default 25% of RAM is used as zram0 swap partition if it is enabled. It compatable with parallel enabled swap file!

    6. Libreelec debug console for UART port is turned on.

    In general, nothing has been added or changed, the images are like on the page https://libreelec.tv/downloads/allwinner/ only for the features of this subject.

    Of the features that I noticed compared to version 8.0 and 9.0, hardware decoding works fully up to 4k@30 (but with 60 frames does not work), Wifi also works without problems.

    Please note that you need a high-quality power supply for this device and a good memory card (above class 10, for example U3).

    I myself encountered problems: regular freezes, write errors to the memory card - and all because of a bad memory card, the card is equal of class 10!

    Now about zram, keep in mind that there are two types of Orange Pi Lite: this is the 515MB version (main) and the version with 1GB RAM.

    I tested zram on the 1GB version, and I don't know how it will behave on the 512MB version.

    Libreelec's default settings have a setting that reserves 320MB of RAM for the graphics core.

    I made sure from experience that if you reduce this parameter, then the video will slow down, this is the optimal value, it makes no sense to reduce it, at least for the mesa+lima driver.

    This means that there will be less free RAM available, which is why we came up with the idea of using either a swap partition (to disk) or if it is very critical (slow write speed and some kind of freeze), you can use zram - here it’s your choice and for specific tasks, and two methods can be used at once.

    For example, I used the PVR IPTV Simple Client add-on with about 2000 channels with an Archive for 4 days, and what is important, this is an EPG from the site https://epg.it999.ru/.

    Please note that without using swap or zram, updating the EPG is not possible. the memory will immediately run out and the device will reboot cyclically.

    In my experience, for such a bundle of 2000 channels + EPG + Channel Logos, it is necessary to allocate 50-60% of 1GB of RAM for zram. Or this way: zram 25% and parallel swap 512MB on disk.

    This is done very simply (following the swap example), you need to connect to OPi via ssh or sftp and copy the /etc/zramswap.conf file to /storage/.config/zramswap.conf and edit the RAM_PERCENT and ZRAM_MAX_PERCENT parameters there by say 50 percent and enable ZRAM_ENABLED="yes" .

    It's important not to go over the above mentioned 320MB of kernel graph reserve, otherwise it will try to compress this data once again...

    For the 512MB version of OPi, zram is not enough and you will most likely have to include the swap file separately or in addition to zram. It is important to use an external drive for the swap file and not a memory card, otherwise you will slow down everything.

    Old my release LibreELEC 10.0.2 for OrangePI Lite
    Code: sha256
    4c90124c761c66709191e7635b3c10d5c5c1ab6a4857b377114f049da9e5bfc2  LibreELEC-H3.arm-10.0-devel-20220223213643-9b33376-orangepi-lite.img.gz

    https://www.mediafire.com/file/34l8qeuok…ite.img.gz/file

    https://www.mediafire.com/file/rcf2hak36….patch.zip/file

    New my release LibreELEC 11.0 for OrangePI Lite:

    What's new compared to the my old release?

    Added entware package, for install it, connect to the device console via SSH or UART and execute the command: installentware (with connected internet on device). After request to reboot - enter the command: reboot

    Code: sha256
    7c2d122ef7d7aa8d25575a4a4c9f8e1d6d92298976ec4c02800527b56fba178a  LibreELEC-H3.arm-11.0-devel-20230404161950-bb4c561-orangepi-lite.img.gz

    https://www.mediafire.com/file/oxah2llv7x48grx/LibreELEC-H3.arm-11.0-devel-20230404161950-bb4c561-orangepi-lite.img.gz/file

    https://www.mediafire.com/file/br705z0kj4abdye/patch-file-for-libreelec11-oprangepi-lite.zip/file

    To apply patch use command to mainline git tree: git apply --reject --whitespace=fix ./patch-file-for-libreelec11-oprangepi-lite.patch

    Hello.

    For me fix the WiFi freeze is sdio patch from this source:

    Community - Silicon Labs
    The Silicon Labs Community is ideal for development support through Q&A forums, articles, discussions, projects and resources.
    community.silabs.com

    Adapted patch for new linux kernel (5.10.xx):

    Copy these code as patch file to the project directory, for example libreelec-10.0/projects/Allwinner/patches/linux/ or other your specific platform.

    Also you must to add new flag mmc-reply-go-idle to the DTS file of your device in the mmc node (where is sdio-wifi connected).

    For example of my patch for my Orange-Pi Lite device:

    Good luck.