Sorry, I was corrected links, now its downloaded as it should.
Posts by Deoptim
-
-
Works for me:
Code
Display More# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_NAME="RTL8189FS" PKG_VERSION="476020109b3841421af289a7b78c7a25b0c45fac" PKG_SHA256="34321ef57f8d5925fd52e234d1cabed1428c2d06e47e49d1eee20775635157e4" PKG_LICENSE="GPL" PKG_SITE="https://github.com/jwrdegoede/rtl8189ES_linux" PKG_URL="https://github.com/jwrdegoede/rtl8189ES_linux/archive/${PKG_VERSION}.tar.gz" PKG_LONGDESC="Realtek RTL8189FS Linux driver" PKG_IS_KERNEL_PKG="yes" pre_make_target() { unset LDFLAGS } make_target() { make V=1 \ ARCH=${TARGET_KERNEL_ARCH} \ KSRC=$(kernel_path) \ CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \ CONFIG_POWER_SAVING=n \ CONFIG_WIFI_MONITOR=y \ CONFIG_80211W=y \ CONFIG_RTW_DEBUG=n } makeinstall_target() { mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME }
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)
-
New my release LibreELEC 11.0 for OrangePI Lite on topic.
-
Solved with this package.mk
Code
Display More# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_NAME="RTL8189FS" PKG_VERSION="476020109b3841421af289a7b78c7a25b0c45fac" PKG_SHA256="34321ef57f8d5925fd52e234d1cabed1428c2d06e47e49d1eee20775635157e4" PKG_LICENSE="GPL" PKG_SITE="https://github.com/jwrdegoede/rtl8189ES_linux" PKG_URL="https://github.com/jwrdegoede/rtl8189ES_linux/archive/${PKG_VERSION}.tar.gz" PKG_LONGDESC="Realtek RTL8189FS Linux driver" PKG_IS_KERNEL_PKG="yes" pre_make_target() { unset LDFLAGS } make_target() { make V=1 \ ARCH=${TARGET_KERNEL_ARCH} \ KSRC=$(kernel_path) \ CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \ CONFIG_POWER_SAVING=n \ CONFIG_WIFI_MONITOR=y \ CONFIG_80211W=y \ CONFIG_RTW_DEBUG=n } makeinstall_target() { mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME }
Now it works well.
-
Hello.
Latest mainline of Libreelec:
CodeLibreELEC:/ # uname -a Linux LibreELEC 6.0.9 #1 SMP PREEMPT Fri Nov 18 22:07:33 EET 2022 armv7l GNU/Linux LibreELEC:/ #
Quotedmytro@DESKTOP-XXXXXX:/mnt/wsl/Alpine/LibreELEC.tv$ git log
commit ea69b27032acc8b24fa0a067de691d3585c9d198 (HEAD -> master, origin/master, origin/HEAD)
Merge: 92ea637417 d68a4b874b
Author: Rudi Heitbaum <[email protected]>
Date: Sat Nov 19 21:31:55 2022 +1100
Merge pull request #7091 from HiassofT/le11-xkb
Remove unnecessary and incorrect pkgconfig changes
commit d68a4b874b376ecf9943ce17fcfa1f0c28434c84
Author: Matthias Reichl <[email protected]>
Date: Sat Nov 5 22:05:37 2022 +0100
Revert "systemd: set PKGCONFIG directory to /usr/lib/pkgconfig"
This reverts commit 423183d431628e393ebd6d46c9249301e8169802.
....
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:
Code
Display More# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_NAME="RTL8189FS" PKG_VERSION="476020109b3841421af289a7b78c7a25b0c45fac" PKG_SHA256="34321ef57f8d5925fd52e234d1cabed1428c2d06e47e49d1eee20775635157e4" PKG_LICENSE="GPL" PKG_SITE="https://github.com/jwrdegoede/rtl8189ES_linux" PKG_URL="https://github.com/jwrdegoede/rtl8189ES_linux/archive/${PKG_VERSION}.tar.gz" PKG_LONGDESC="Realtek RTL8189FS Linux driver" PKG_IS_KERNEL_PKG="yes" pre_make_target() { unset LDFLAGS } make_target() { make V=1 \ ARCH=${TARGET_KERNEL_ARCH} \ KSRC=$(kernel_path) \ CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \ CONFIG_POWER_SAVING=n } makeinstall_target() { mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME cp *.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME }
Wifi module boots correctly(dmesg):
Code
Display More[ 15.482240] sun8i-ce 1c15000.crypto: CryptoEngine Die ID 1 [ 15.667288] usb 5-1: Warning! Unlikely big volume range (=4294967295), cval->res is probably wrong. [ 15.667326] usb 5-1: [3] FU [Mic Capture Volume] ch = 1, val = -8192/0/-8192 [ 15.668303] usbcore: registered new interface driver snd-usb-audio [ 15.726860] input: eventlircd as /devices/virtual/input/input6 [ 15.726876] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 15.905023] lima 1c40000.gpu: gp - mali400 version major 1 minor 1 [ 15.905185] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1 [ 15.905307] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1 [ 15.905366] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus [ 15.956268] lima 1c40000.gpu: bus rate = 200000000 [ 15.956313] lima 1c40000.gpu: mod rate = 297000000 [ 15.956446] lima 1c40000.gpu: error -ENODEV: _opp_set_regulators: no regulator (mali) found [ 15.959021] [drm] Initialized lima 1.1.0 20191231 for 1c40000.gpu on minor 1 [ 16.194894] 8189fs: loading out-of-tree module taints kernel. [ 16.265681] RTW: module init start [ 16.265719] RTW: rtl8189fs v5.7.9_35795.20191128 [ 16.265732] RTW: build time: Nov 18 2022 23:31:21 [ 16.265811] RTW: rtw_inetaddr_notifier_register [ 16.278776] RTW: == SDIO Card Info == [ 16.278811] RTW: card: 3ee3ed21 [ 16.278832] RTW: clock: 50000000 Hz [ 16.278841] RTW: timing spec: sd high-speed [ 16.278862] RTW: sd3_bus_mode: FALSE [ 16.278871] RTW: func num: 1 [ 16.278878] RTW: func1: 6b0f6f21 (*) [ 16.278888] RTW: ================ [ 16.278903] RTW: CHIP TYPE: RTL8188F [ 16.279324] RTW: rtw_hal_config_rftype RF_Type is 0 TotalTxPath is 1 [ 16.279354] RTW: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0) [ 16.279542] RTW: SetHwReg: hci_sus_state=1 [ 16.281529] RTW: SetHwReg: bMacPwrCtrlOn=1 [ 16.281564] RTW: SetHwReg: hci_sus_state=2 [ 16.281835] RTW: sdio_power_on_check: val_mix:0x0000063f, res:0x0000063f [ 16.281854] RTW: sdio_power_on_check: 0x100 the result of cmd52 and cmd53 is the same. [ 16.281927] RTW: sdio_power_on_check: 0x1B8 test Pass. [ 16.281989] RTW: EEPROM type is E-FUSE [ 16.282479] RTW: hal_EfuseSwitchToBank: Efuse switch bank to 0 [ 16.292899] RTW: hal_ReadEFuse_WiFi: data end at address=0x12 [ 16.293016] RTW: HW EFUSE [ 16.293042] RTW: 0x000: 29 81 03 CC 00 00 50 00 00 00 04 CC 0A 0C 00 00 [ 16.293132] RTW: 0x010: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293219] RTW: 0x020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293307] RTW: 0x030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293393] RTW: 0x040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293479] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293566] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293652] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293738] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293824] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293910] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.293996] RTW: 0x0B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294305] RTW: 0x0C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294432] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294601] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294767] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294886] RTW: 0x100: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.294992] RTW: 0x110: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295160] RTW: 0x120: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295273] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295361] RTW: 0x140: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295448] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295561] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295719] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.295872] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296000] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296169] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296343] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296482] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296616] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296713] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.296802] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [ 16.304986] RTW: rtw_read_efuse_from_file /system/etc/wifi/wifi_efuse_8189fs.map is not readable [ 16.305025] RTW: ERROR invalid phy efuse and read from file fail, will use driver default!! [ 16.305074] RTW: rtw_read_macaddr_from_file /data/wifimac.txt is not readable [ 16.305096] RTW: [A] 2G G00 CCK-1T base:34 from IC_DEF [ 16.305113] RTW: [A] 2G G01 CCK-1T base:34 from IC_DEF [ 16.305128] RTW: [A] 2G G02 CCK-1T base:34 from IC_DEF [ 16.305141] RTW: [A] 2G G03 CCK-1T base:34 from IC_DEF [ 16.305150] RTW: [A] 2G G04 CCK-1T base:34 from IC_DEF [ 16.305159] RTW: [A] 2G G05 CCK-1T base:34 from IC_DEF [ 16.305168] RTW: [A] 2G G00 BW40-1S base:39 from IC_DEF [ 16.305183] RTW: [A] 2G G01 BW40-1S base:39 from IC_DEF [ 16.305193] RTW: [A] 2G G02 BW40-1S base:39 from IC_DEF [ 16.305201] RTW: [A] 2G G03 BW40-1S base:39 from IC_DEF [ 16.305210] RTW: [A] 2G G04 BW40-1S base:39 from IC_DEF [ 16.305229] RTW: hal_com_config_channel_plan use def_chplan:0x20 [ 16.307215] RTW: kfree Pwr Trim flag:3 [ 16.307242] RTW: bb_gain:2 [ 16.307251] RTW: thermal:-7 [ 16.307392] RTW: rtl8188f_FirmwareDownload((null)) tmp_ps=3 [ 16.307415] RTW: rtl8188f_FirmwareDownload fw: FW_NIC, size: 20306 [ 16.307427] RTW: rtl8188f_FirmwareDownload: fw_ver=e fw_subver=0000 sig=0x88f1, Month=06, Date=07, Hour=17, Minute=18 [ 16.307443] RTW: rtl8188f_FirmwareDownload(): Shift for fw header! [ 16.307452] RTW: rtl8188f_FirmwareDownload by IO write! [ 16.307939] systemd-journald[277]: Data hash table of /run/log/journal/727cb5992aa70c8e16b75965636a60a8/system.journal has a fill level at 75.1 (1537 of 2047 items, 524288 file size, 341 bytes per hash table item), suggesting rotation. [ 16.307994] systemd-journald[277]: /run/log/journal/727cb5992aa70c8e16b75965636a60a8/system.journal: Journal header limits reached or header out-of-date, rotating. [ 16.557507] RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x07040105 [ 16.557969] RTW: _8051Reset8188: Finish [ 16.571484] RTW: _FWFreeToGo: Polling FW ready OK! (164, 10ms), REG_MCUFWDL:0x070401c6 [ 16.571531] RTW: rtl8188f_FirmwareDownload: DLFW OK ! [ 16.571540] RTW: rtl8188f_FirmwareDownload success. write_fw:1, 260ms [ 16.571589] RTW: <=== rtl8188f_FirmwareDownload() [ 16.590605] RTW: hal_read_mac_hidden_rpt OK! (2, 20ms), fwdl:1, id:0x19 [ 16.591090] RTW: SetHwReg: bMacPwrCtrlOn=0 [ 16.591106] RTW: SetHwReg: hci_sus_state=3 [ 16.592015] RTW: SetHwReg: hci_sus_state=0 [ 16.592042] RTW: rtw_hal_read_chip_info in 310 ms [ 16.592086] RTW: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13 [ 16.592231] RTW: init_mlme_default_rate_set: support CCK [ 16.592244] RTW: init_mlme_default_rate_set: support OFDM [ 16.592874] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1 [ 16.592915] RTW: rtw_init_pwrctrl_priv: IPS_mode=0, LPS_mode=0, LPS_level=0 [ 16.592947] RTW: IQK FW offload:disable [ 16.592963] RTW: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=12 [ 16.592977] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1 [ 16.593143] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array! [ 16.593173] RTW: default power by rate loaded [ 16.593263] RTW: rtw_macaddr_cfg mac addr:XX:XX:XX:XX:XX:XX [ 16.593431] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0 [ 16.593551] RTW: rtw_wiphy_alloc(phy0) [ 16.593563] RTW: rtw_wdev_alloc(padapter=5ded42cd) [ 16.593586] RTW: rtw_wiphy_register(phy0) [ 16.593594] RTW: Register RTW cfg80211 vendor cmd(0x67) interface [ 16.594852] RTW: rtw_reg_notifier: NL80211_REGDOM_SET_BY_CORE [ 16.594932] RTW: rtw_ndev_init(wlan0) if1 mac_addr=XX:XX:XX:XX:XX:XX [ 16.595366] RTW: rtw_ndev_notifier_call(wlan0) state:17 [ 16.599111] RTW: cfg80211_rtw_get_txpower [ 16.599145] RTW: rtw_ndev_notifier_call(wlan0) state:5 [ 16.600401] RTW: module init ret=0 [ 45.127556] hrtimer: interrupt took 383959 ns
iw tool show device corectly:
CodeLibreELEC:/ # 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:
Code
Display MoreLibreELEC:/ # LibreELEC:/ # iw dev wlan0 scan BSS xx:xx:xx:xx:xx:xx(on wlan0) TSF: 7209933681 usec (0d, 02:00:09) freq: 2412 beacon interval: 100 TUs capability: ESS Privacy ShortSlotTime (0x0411) signal: -74.00 dBm last seen: 0 ms ago SSID: NewWiFi Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 DS Parameter set: channel 1 Extended supported rates: 6.0 12.0 24.0 48.0 TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x40 RSN: * Version: 1 * Group cipher: CCMP * Pairwise ciphers: CCMP * Authentication suites: PSK * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000) WPS: * Version: 1.0 * Wi-Fi Protected Setup State: 2 (Configured) * UUID: 38833092-3092-1883-9c77-cc32e598a3c4 * RF Bands: 0x1 * Version2: 2.0 ERP: Barker_Preamble_Mode HT capabilities: Capabilities: 0x106e HT20/HT40 SM Power Save disabled RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 3839 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 4 usec (0x05) HT RX MCS rate indexes supported: 0-15, 32 HT TX MCS rate indexes are undefined HT operation: * primary channel: 1 * secondary channel offset: above * STA channel width: any * RIFS: 0 * HT protection: nonmember * non-GF present: 1 * OBSS non-GF present: 0 * dual beacon: 0 * dual CTS protection: 0 * STBC beacon: 0 * L-SIG TXOP Prot: 0 * PCO active: 0 * PCO phase: 0 Overlapping BSS scan params: * passive dwell: 20 TUs * active dwell: 10 TUs * channel width trigger scan interval: 300 s * scan passive total per channel: 200 TUs * scan active total per channel: 20 TUs * BSS width channel transition delay factor: 5 * OBSS Scan Activity Threshold: 0.25 % WMM: * Parameter version 1 * BE: CW 15-1023, AIFSN 3 * BK: CW 15-1023, AIFSN 7 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec * VO: CW 3-7, AIFSN 2, TXOP 1504 usec BSS Load: * station count: 5 * channel utilisation: 0/255 * available admission capacity: 31250 [*32us] BSS xx:xx:xx:xx:xx:xx(on wlan0) TSF: 7209933646 usec (0d, 02:00:09) .......
Modules loaded:
Code
Display MoreLibreELEC:/ # lsmod Module Size Used by 8189fs 1425408 0 lima 45056 1 drm_shmem_helper 16384 1 lima gpu_sched 24576 1 lima snd_usb_audio 212992 0 snd_hwdep 16384 1 snd_usb_audio sun8i_ce 32768 0 snd_usbmidi_lib 28672 1 snd_usb_audio crypto_engine 16384 1 sun8i_ce snd_rawmidi 28672 1 snd_usbmidi_lib cfg80211 323584 1 8189fs rng_core 20480 1 sun8i_ce sun8i_di 20480 0 display_connector 16384 0 pkcs8_key_parser 16384 0 fuse 102400 1 LibreELEC:/ #
But no wifi list on menu KODI.
I was try this manual over console and got this:
Code
Display MoreLibreELEC:/ # connmanctl connmanctl> connmanctl> Agent registered <=response to the command "agent on" connmanctl> connmanctl> Error /net/connman/technology/wifi: Method "Scan" with signature "" on interface "net.connman.Technology" doesn't exist connmanctl> <=empty response to the command "services" connmanctl> connmanctl>
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: sha2564c90124c761c66709191e7635b3c10d5c5c1ab6a4857b377114f049da9e5bfc2 LibreELEC-H3.arm-10.0-devel-20220223213643-9b33376-orangepi-lite.img.gz
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: sha2567c2d122ef7d7aa8d25575a4a4c9f8e1d6d92298976ec4c02800527b56fba178a LibreELEC-H3.arm-11.0-devel-20230404161950-bb4c561-orangepi-lite.img.gz
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 LabsThe Silicon Labs Community is ideal for development support through Q&A forums, articles, discussions, projects and resources.community.silabs.comAdapted patch for new linux kernel (5.10.xx):
Diff
Display More--- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -374,6 +374,7 @@ #define MMC_CAP2_CQE_DCMD (1 << 24) /* CQE can issue a direct command */ #define MMC_CAP2_AVOID_3_3V (1 << 25) /* Host must negotiate down from 3.3V */ #define MMC_CAP2_MERGE_CAPABLE (1 << 26) /* Host can merge a segment over the segment size */ +#define MMC_REPLY_GO_IDLE (1 << 27) /* Connected chip reply to GO_IDLE_STATUS command (CMD0) */ int fixed_drv_type; /* fixed driver type for non-removable media */ --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -336,6 +336,8 @@ host->caps2 |= MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR; if (device_property_read_bool(dev, "mmc-hs400-1_2v")) host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR; + if (device_property_read_bool(dev, "mmc-reply-go-idle")) + host->caps2 |= MMC_REPLY_GO_IDLE; if (device_property_read_bool(dev, "mmc-hs400-enhanced-strobe")) host->caps2 |= MMC_CAP2_HS400_ES; if (device_property_read_bool(dev, "no-sdio")) --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -153,6 +153,8 @@ cmd.opcode = MMC_GO_IDLE_STATE; cmd.arg = 0; cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_NONE | MMC_CMD_BC; + if (host->caps2 & MMC_REPLY_GO_IDLE) + cmd.flags |= MMC_RSP_R1; err = mmc_wait_for_cmd(host, &cmd, 0); --- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml @@ -226,6 +226,11 @@ minimum: 0 maximum: 0xffff + mmc-reply-go-idle: + $ref: /schemas/types.yaml#/definitions/flag + description: + expect reply on GO_IDLE_STATE command (CMD0) + no-sdio: $ref: /schemas/types.yaml#/definitions/flag description:
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:
Diff
Display More--- a/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts @@ -84,6 +84,7 @@ status_led { label = "orangepi:red:status"; gpios = <&pio 0 15 GPIO_ACTIVE_HIGH>; + linux,default-trigger="mmc0"; }; }; @@ -92,16 +93,41 @@ sw4 { label = "sw4"; - linux,code = <BTN_0>; + linux,code = <KEY_POWER>; gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; + wakeup-source; }; }; + + reg_sy8113b: vdd-cpux-regulator { + compatible = "regulator-gpio"; + regulator-name = "vdd-cpux"; + regulator-type = "voltage"; + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-ramp-delay = <50>; /* 4ms */ + + gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + enable-active-high; + gpios-states = <1>; + states = <1100000 0>, <1300000 1>; + }; }; &de { status = "okay"; }; +&cpu0 { + cpu-supply = <®_sy8113b>; +}; + +&ehci0 { + status = "okay"; +}; + &ehci1 { status = "okay"; }; @@ -135,8 +161,11 @@ &mmc1 { vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; bus-width = <4>; non-removable; + keep-power-in-suspend; + mmc-reply-go-idle; status = "okay"; /* @@ -148,6 +177,10 @@ }; }; +&ohci0 { + status = "okay"; +}; + &ohci1 { status = "okay"; }; @@ -162,6 +195,11 @@ status = "okay"; }; +&usb_otg { + status = "okay"; + dr_mode = "peripheral"; +}; + &usbphy { /* USB VBUS is always on */ status = "okay";
Good luck.