lithoc rk3228 and rk3128 are two differenti soc. so you can't boot os designed for rk3128.
Posts by ilmich
-
-
ilmich Hi! I found out that you released some time ago Lakka for this box using similar tools like you did for LibreELEC. Could you release an updated version for RK322x? Lakka v4 or v5? As you did here? http://ilmich6502.it/lakka-4.x/
Latest release LibreELEC-RK322X.arm-11.0-nightly-20240218-d7324fb-rk322x.img worked really fine on my box, maybe if its tranplanted with Lakka it will probably run great too!
Also, any news regarding an updated LibreELEC for this boxes?
Hi ochentay4 this is not the right place to talk about lakka but know that I intend to continue that project too
even if I prefer libreelec for retrograming as it's more simple than lakka (more click and play than the thousand settings of lakka) and the performances are identical (some addons on libreelec 11 are broken but most of them works)Also, any news regarding an updated LibreELEC for this boxes?
I'm trying a test build that I will publish in a new post, you need to have a little patience but as I have written in the past, the project is not dead
-
hi spigui I see from your logs
CodeAug 21 15:59:44 LibreELEC kernel: VideoPlayer invoked oom-killer: gfp_mask=0x400dc2(GFP_KERNEL_ACCOUNT|__GFP_HIGHMEM|__GFP_ZERO), order=0, oom_score_adj=0
basically kodi has run out of available memory. I don't think it's a problem with my build but maybe some KODI bug with the stream you're trying to play. try playing it locally rather than another streaming method (http for example instead of UPnP)
Code
Display MoreAug 21 15:59:45 LibreELEC kernel: EXT4-fs warning (device mmcblk0p2): ext4_dirblock_csum_verify:405: inode #1015809: comm cat: No space for directory leaf checksum. Please run e2fsck -D. Aug 21 15:59:45 LibreELEC kernel: EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1693: inode #1015809: comm cat: checksumming directory block 0 Aug 21 15:59:45 LibreELEC kernel: EXT4-fs warning (device mmcblk0p2): ext4_dirblock_csum_verify:405: inode #1015809: comm kodi-safe-mode: No space for directory leaf checksum. Please run e2fsck -D. Aug 21 15:59:45 LibreELEC kernel: EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1693: inode #1015809: comm kodi-safe-mode: checksumming directory block 0 Aug 21 15:59:45 LibreELEC kodi-safe-mode[1358]: /usr/lib/kodi/kodi-safe-mode: line 27: can't create /storage/.config/boot.status: Bad message Aug 21 15:59:45 LibreELEC systemd[1]: kodi.service: Failed with result 'oom-kill'. Aug 21 15:59:45 LibreELEC systemd[1]: kodi.service: Consumed 6min 47.434s CPU time. Aug 21 15:59:47 LibreELEC kernel: EXT4-fs warning (device mmcblk0p2): ext4_dirblock_csum_verify:405: inode #1015809: comm systemd: No space for directory leaf checksum. Please run e2fsck -D. Aug 21 15:59:47 LibreELEC kernel: EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1693: inode #1015809: comm systemd: checksumming directory block 0 Aug 21 15:59:47 LibreELEC kernel: EXT4-fs warning (device mmcblk0p2): ext4_dirblock_csum_verify:405: inode #1015809: comm systemd: No space for directory leaf checksum. Please run e2fsck -D. Aug 21 15:59:47 LibreELEC kernel: EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1693: inode #1015809: comm systemd: checksumming directory block 0 Aug 21 15:59:47 LibreELEC kernel: EXT4-fs warning (device mmcblk0p2): ext4_dirblock_csum_verify:405: inode #1015809: comm systemd: No space for directory leaf checksum. Please run e2fsck -D. Aug 21 15:59:47 LibreELEC kernel: EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1693: inode #1015809: comm systemd: checksumming directory block 0 Aug 21 15:59:47 LibreELEC systemd[1]: Failed to resolve symlink /storage/.config/system.d, ignoring: Bad message
It seems there are some problems with your SD card, try replacing it
-
The ethernet works, wifi does not and it does not have bluetooth I think.
also dmesg log are useful
-
Hi openminded
I see you are running low on time ilmich , let me know how I can help out with that.
yes, real life and lack of devices (I lost a couple of boxes due to some experiments) is preventing me from working on this project. But it's not dead, I started working on libreelec 12 (https://github.com/rockchip-with-…e12-rk322x-wip/).
Time I have soon, I know Linux, kernels and have been compiling kernels and hacking all kinds of boxes ( although no expert ).
it would be great, first of all I recommend trying to build libreelec yourself and study the patches you find for rk322x. the code is quite stable but as you can see some boxes work better than others (especially because there are so many variations and not having them it is impossible for me to make everything work)
I can dumb a dtb from Android if useful ? It's running Android 11.1 I think.
it would be useful because the wifi must be activated via gpio pin and they are often indicated in the dtb. if your board is equipped with wifi compatible with the mainline kernel there is hope of making it work. otherwise, I recommend the network cable or an external USB wifi.
-
I had some time to try with my rpi4. I don't know if anything has changed in the meantime, but trying on a clean install of Libreelec 12 (no other addons) the psx emulation with pcsx_rearmed didn't give me any problems (just moments of fun with an old car racing game)
By the way, it also works fine on my old rk3229 box (arm 32bit and unofficial build of libreelec 12) but that's off-topic of course.
P.s: I saw from your logs that you are using libreelec 11, I suggest you try to update.
-
pcsx-rearmed contains special optimizations for arm architectures (dynamic recompiler and emulated graphics card optimized with NEON instructions). if they are not enabled it's essentially unusable. Lakka enables them, the kodi addon (used by libreelec) does not. Or at least that's what I saw. I'll try to take a look at it.
sorry, forget what I wrote. in the past pcsx_rearmed had to be compiled by manually inserting optimizations at build time (as the LAKKA build system still does). But I saw that now the best architecture and options are automatically selected by the makefile without any need to specify them
-
pcsx-rearmed contains special optimizations for arm architectures (dynamic recompiler and emulated graphics card optimized with NEON instructions). if they are not enabled it's essentially unusable. Lakka enables them, the kodi addon (used by libreelec) does not. Or at least that's what I saw. I'll try to take a look at it.
-
jaum20 I use estuary and my builds are optimized for this skin. personally on the boxes with ddr2 I tried pellucid for a period but estuary is the best currently.
However, try this pre-release build if you have an extra SD card.
there are some kodi optimizations that use smaller textures (lower quality but less stress on the cpu/gpu). Even third party skins should be better (I tried arctic fuse and it's not too bad)
-
remlei I imagine you also tried changing the HDMI cable. In any case, the problem is that the edid is not read correctly (so basically your TV is not correctly detected). this can happen if the HDMI cable is of poor quality, or the TV returns an EDID not correctly recognized by the driver.
Android in these cases sets the resolution fixed to 720p with audio. Linux instead at 768p without audio.
The best thing would be to understand if this is the problem (I'm pretty sure it is) because I could simulate what android does but you miss out on all the other resolutions.
So, as requested, please send a log (tutorial here https://wiki.libreelec.tv/support/log-files) -
hi pocng
it's because I don't have any SDIO device information in the dmesg
that's correct, if you don't see this
at least it means that the wifi card is not active. I looked at the DTS and it seems to me to be the usual pin (90 --> gpio2 PD2) so the problem is really strange.
Thanks for rtl8822bs-aml git projet, I'll test it as soon as I get to detect SDIO
in this image, I have compiled the driver I was telling you about. the source is here (I forked) https://github.com/rockchip-with-…rtchip-sci-wifi
PS: for the r329q v3.1 I've finally made the merge request for boot support on the emmc and share this patched LibreElec built here
Thanks so much, I'll take a look at it as soon as I can
-
Hi @ilmich,
I quickly checked the GPIOs for Wlan and so far I haven't found the source of the problem. At first glance, the pins are indeed those defined in the dtb...
To help me identify the pinctrl from the gpio kernel debug file, I've made myself a correspondence table, I don't know if it can help other people but i share it here : http://sandbox02.poc.ng/tvbox/rk322x_linux_gpio.txtCode
Display MoreWIP : * From Extract info from android DTS: WIFI,host_wake_irq = <0x75 0x1c 0x00>; => gpio0/RK_PD4 WIFI,poweren_gpio = <0x7c 0x1a 0x00>; => gpio2/RK_PD2 BT,power_gpio = <0x7c 0x1d 0x00>; => gpio2/RK_PD5 uart_rts_gpios = <0xa9 0x06 0x01>; => gpio3/RK_PA6 BT,wake_gpio = <0xa9 0x1b 0x00>; => gpio3/RK_PD3 * From dmesg [ 5.250216] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 102. => GPIO3 RK_PA6 [ 5.250334] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,power_gpio = 93. => GPIO2 RK_PD5 => rk322x.dtsi =??=> uart0-cts (rockchip,pins = <2 RK_PD5 1 &pcfg_pull_none>;) [ 5.250466] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 123. => GPIO3 RK_PD3 [ 5.250604] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 122. [ 4.789424] export led gpio: 39 => GPIO1 RK_PA7 /* defined in android dtb but fd650 not present */ [ 4.965395] fd650_devs_get_of_pdata sda gpio:13 => GPIO0 RK_PB5 [ 4.965530] fd650_devs_get_of_pdata scl gpio:116 => GPIO3 RK_PC4 * from /sys/kernel/degub/gpio GPIOs 0-31, platform/pinctrl.17, gpio0: gpio-13 (fd650_sda ) out hi GPIO0 RK_PB5 /* fd650 controle not present */ GPIOs 32-63, platform/pinctrl.17, gpio1: gpio-35 (spk_ctl ) out lo GPIO1 RK_PA3 gpio-39 (power-led-normal ) out lo GPIO1 RK_PA7 GPIOs 64-95, platform/pinctrl.17, gpio2: gpio-72 (phy_led ) out lo GPIO2 RK_PB0 /* orange led */ gpio-75 (power-hold ) in lo GPIO2 RK_PB3 gpio-90 (wlan_default_wlan_po) out hi GPIO2 RK_PD2 gpio-93 (ap6335_poweron ) out lo GPIO2 RK_PD3 GPIOs 96-127, platform/pinctrl.17, gpio3: gpio-102 (ap6335_rts ) in hi GPIO3 RK_PA6 gpio-116 (fd650_scl ) out hi GPIO3 RK_PC2 /* fd650 controle not present */ gpio-117 (phy_link ) out lo GPIO3 RK_PC3 gpio-118 (otg_drv_gpio ) out hi GPIO3 RK_PC4 gpio-119 (power ) in hi GPIO3 RK_PC5 gpio-121 (menu ) in hi GPIO3 RK_PC7 gpio-122 (ap6335_wake_host ) in hi GPIO3 RK_PD2 gpio-123 (ap6335_wake ) in hi GPIO3 RK_PD3
To be continue ...
maybe you have already sent it, but could you please send me a dmesg? at this point the problem could be elsewhere.
SDIO WIFI : not detected => wifi is sdio 02e7/9086 / smartchip sci S9082H (on armbian forum i can see : its a clone of some wifi rtl chips , its closse source , no linux support)
I found this driver
GitHub - ChalesYu/rtl8822bs-aml at smartchip_sci_s9012punoffical driver for linux (Support rtl8189es rtl8723bs rtl8822bs) and SCI(smartchip)WiFi(S9082C S9012P) - GitHub - ChalesYu/rtl8822bs-aml at…github.comI don't like it much but I can try.
-
That might not be a simple exercise though, and his time is limited.
I'm starting to work on libreelec 12, but unfortunately, it's true that I have little time available.
pocng , do you have a link to the Android firmware of your box (alternatively also the first ~100mb of a dump of the internal memory) ? I looked at the logs and you should have a Broadcom BCM4330 wifi chip which is supported by the mainline kernel. If it's not detected, the correct gpio that enables it probably needs to be added, but I need the android dtb.
guerrero2694 as pocng said, try sending a photo of the board
-
The resizing process appears to have been interrupted because the partition is 7GB but the filesystem has not been completely resized. as they told you, post the resize log because it may have had problems completing. however you can also try the manual resize directly from the multitool
-
try this one
https://test.libreelec.tv/13.0/Rockchip/rock-4c-plus/
deleonkikko has tested it and everything seems to work except the 2k port. Unfortunately, I don't have time to work on it, but it should still be usable.
-
for max-frequency I based it on a DTS with the same emmc (a samsung iot dev platform) and on another box that uses the same eemc component (an Amlogic Phicomm N1 box) => max-frequency = <0x2faf080>.
thank you, try again
-
pocng try this new build
Index of /libreelec-11/test/
Fingers crossed
I modified the emmc node like this
-