Posts by ihipop
-
-
-
festevam Thank you for the patch. I've backported it to the 6.6 kernel on LE12.0, and it's working very well.
I've removed the bcmdhd river from my custom LE image.
Thanks for providing the information; I didn't receive a notification email, which is why I'm just seeing this now.
i will continue with some stress tests, looks good so far, I am not using any external antennas. -
It's best to take the discussion to the linux-wireless kernel mailing list.
Sorry but I'm not familiar with the Linux kernel mailing list
but I succeeded in making a bcmdhd driver work on kernel 5.10 of LE 10
Code
Display More/opt/bin/dmesg -w |grep dhd [ 7.778530] [dhd] _dhd_module_init: in Dongle Host Driver, version 101.10.591.28.18 (20230508-2)(g45c6a9b) drivers/net/wireless/bcmdhd compiled on Dec 30 2024 at 13:05:50 [ 7.780538] [dhd] STATIC-MSG) dhd_static_buf_init : 101.10.361.31 (wlan=r892223-20230427-1) [ 7.781601] [dhd] STATIC-MSG) dhd_init_wlan_mem : prealloc ok for index 0: 1100800(1075K) [ 7.782500] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1 [ 7.782503] [dhd] dhd_wifi_platform_load: Enter [ 7.782523] [dhd] Power-up adapter 'DHD generic adapter' [ 7.782708] [dhd] dummy_probe: enter [ 7.782805] [dhd] dummy_probe: enter [ 7.782837] [dhd] wifi_platform_set_power = 1, delay: 200 msec [ 7.782839] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 7.987288] [dhd] wifi_platform_set_power = 1, sleep done: 200 msec [ 7.987293] [dhd] wifi_platform_bus_enumerate device present 1 [ 7.987296] [dhd] ======== Card detection to detect SDIO card! ======== [ 8.003082] [dhd] bcmsdh_register: register client driver [ 8.003298] [dhd] bcmsdh_sdmmc_probe: Enter num=1 [ 8.003468] [dhd] bcmsdh_sdmmc_probe: Enter num=2 [ 8.003471] [dhd] bus num (host idx)=0, slot num (rca)=1 [ 8.003474] [dhd] found adapter info 'DHD generic adapter' [ 8.003480] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 3, size 139264 [ 8.004314] [dhd] succeed to alloc static buf [ 8.004317] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 4, size 0 [ 8.005175] [dhd] sdioh_attach: set sd_f2_blocksize 256 [ 8.005206] [dhd] sdioh_attach: sd clock rate = 150000000 [ 8.005486] [dhd] dhdsdio_probe : no mutex held [ 8.005488] [dhd] dhdsdio_probe : set mutex lock [ 8.005605] [dhd] F1 signature read @0x18000000=0x1042aae8 [ 8.013437] [dhd] F1 signature OK, socitype:0x1 chip:0xaae8 rev:0x2 pkg:0x4 [ 8.014193] [dhd] DHD: dongle ram size is set to 1310720(orig 1310720) at 0x170000 [ 8.014246] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 7, size 42280 [ 8.015055] [dhd] dhd_conf_set_chiprev : devid=0xaae7, chip=0xaae8, chiprev=2 [ 8.015150] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 0, size 10320 [ 8.016189] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 5, size 65536 [ 8.017529] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 19, size 65688 [ 8.018398] [dhd] dhd_attach(): thread:dhd_watchdog_thread:28a started [ 8.018491] [dhd] dhd_attach(): thread:dhd_dpc:28b started [ 8.018559] [dhd] dhd_attach(): thread:dhd_rxf:28c started [ 8.018567] [dhd] dhd_deferred_work_init: work queue initialized [ 8.018572] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2 [ 8.018574] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40 [ 8.018614] [dhd] sdioh_cis_read: func_cis_ptr[0]=0x1070 [ 8.023668] [dhd] dhd_conf_get_otp : module_name=ap6398sv [ 8.023701] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 1, size 10300 [ 8.024855] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 2, size 65536 [ 8.026025] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN [ 8.026146] [dhd] Dongle Host Driver, version 101.10.591.28.18 (20230508-2)(g45c6a9b) drivers/net/wireless/bcmdhd compiled on Dec 30 2024 at 13:05:50 [ 8.028913] [dhd] dhd_pri_open : probe is already running! return. [ 8.029024] [dhd] Register interface [wlan0] MAC: YY:YY:YY:YY:YY:YY [ 8.029153] [dhd] [wlan0] wl_android_wifi_off : g_wifi_on=1 force_off=1 [ 8.029159] [dhd] dhd_bus_devreset: == Power OFF == [ 8.029336] [dhd] dhd_bus_stop: making DHD_BUS_DOWN [ 8.029353] [dhd] dhd_bus_devreset: making dhdpub up FALSE [ 8.029357] [dhd] dhd_txglom_enable: enable 0 [ 8.029360] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN [ 8.029403] [dhd] wifi_platform_set_power = 0, delay: 0 msec [ 8.029407] [dhd] ======== PULL WL_REG_ON(-1) LOW! ======== [ 8.029410] [dhd] [wlan0] wl_android_wifi_off : out [ 8.029416] [dhd] wl_android_post_init: 0 [ 8.029419] [dhd] dhdsdio_probe : mutex is released. [ 8.029589] [dhd] _dhd_module_init: Exit err=0 [ 98.350163] [dhd] dhd_pri_open : no mutex held [ 98.350182] [dhd] dhd_pri_open : set mutex lock [ 98.350193] [dhd] [wlan0] dhd_open : Enter [ 98.350204] [dhd] Dongle Host Driver, version 101.10.591.28.18 (20230508-2)(g45c6a9b) drivers/net/wireless/bcmdhd compiled on Dec 30 2024 at 13:05:50 [ 98.350223] [dhd] dhd_open: ######### called for ifidx=0 ######### [ 98.350244] [dhd] [wlan0] wl_android_wifi_on : in g_wifi_on=0 [ 98.350257] [dhd] wifi_platform_set_power = 1, delay: 200 msec [ 98.350266] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ======== [ 98.556356] [dhd] wifi_platform_set_power = 1, sleep done: 200 msec [ 98.556371] [dhd] sdio_sw_reset: call mmc_sw_reset [ 98.687446] [dhd] sdioh_start: set sd_f2_blocksize 256 [ 98.687639] [dhd] dhd_bus_devreset: == Power ON == [ 98.687716] [dhd] F1 signature read @0x18000000=0x1042aae8 [ 98.691127] [dhd] F1 signature OK, socitype:0x1 chip:0xaae8 rev:0x2 pkg:0x4 [ 98.691786] [dhd] DHD: dongle ram size is set to 1310720(orig 1310720) at 0x170000 [ 98.691836] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN [ 98.691866] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN [ 98.691979] [dhd] dhd_conf_set_path_params : Final fw_path=/storage/.config/firmware/fw_bcm4359c51a2_ag.bin [ 98.691982] [dhd] dhd_conf_set_path_params : Final nv_path=/storage/.config/firmware/nvram_ap6398sv.txt [ 98.691986] [dhd] dhd_conf_set_path_params : Final clm_path=/storage/.config/firmware/clm_bcm4359c51a2_ag.blob [ 98.691989] [dhd] dhd_conf_set_path_params : Final conf_path=/storage/.config/firmware/config.txt [ 98.692082] [dhd] dhd_get_download_buffer: Open image file failed /storage/.config/firmware/config.txt [ 98.692086] [dhd] dhd_conf_read_config : Ignore config file /storage/.config/firmware/config.txt [ 98.692471] [dhd] dhd_os_open_image1: /storage/.config/firmware/fw_bcm4359c51a2_ag.bin (784088 bytes) open success [ 98.695507] [dhd] dhd_os_open_image1: /storage/.config/firmware/fw_bcm4359c51a2_ag.bin (784088 bytes) open success [ 98.695513] [dhd] dhdsdio_download_code_file Using SINGLE image (size 784088) [ 98.756301] [dhd] dhd_os_open_image1: /storage/.config/firmware/nvram_ap6398sv.txt (8354 bytes) open success [ 98.759305] [dhd] # AP6398SV_NVRAM_V1.0_20210227 [ 98.759937] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded. [ 98.820365] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us) [ 98.823403] [dhd] wlc_ver_major 12, wlc_ver_minor 1 [ 98.823411] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1 [ 98.823414] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40 [ 98.824577] [dhd] dhd_legacy_preinit_ioctls: use firmware generated mac_address YY:YY:YY:YY:YY:YY [ 98.824636] [dhd] dhd_os_open_image1: /storage/.config/firmware/clm_bcm4359c51a2_ag.blob (29217 bytes) open success [ 98.825111] [dhd] dhd_check_current_clm_data: ----- This FW is not included CLM data ----- [ 98.846303] [dhd] dhd_apply_default_clm: CLM download succeeded [ 98.846808] [dhd] dhd_check_current_clm_data: ----- This FW is included CLM data ----- [ 98.848964] [dhd] Firmware up: op_mode=0x0005, MAC=YY:YY:YY:YY:YY:YY [ 98.856083] [dhd] dhd_legacy_preinit_ioctls: event_log_max_sets: 26 ret: 0 [ 98.859834] [dhd] arp_enable:1 arp_ol:0 [ 98.865594] [dhd] Driver: 101.10.591.28.18 (20230508-2) [dhd] Firmware: wl0: Mar 22 2021 15:35:47 version 18.35.387.23.39 (dfff14d@SYNA) (wlan=r880297) FWID 01-256b0c32 [dhd] CLM: 9.9.7_SS (2021-03-29 17:24:17) [ 98.865782] [dhd] dhd_txglom_enable: enable 1 [ 98.865787] [dhd] dhd_conf_set_txglom_params : txglom_mode=copy [ 98.865791] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0 [ 98.865795] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1 [ 98.865798] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300 [ 98.865805] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1 [ 98.868030] [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64 [ 98.888732] [dhd] dhd_ecounter_autoconfig Ecounter autoconfig in FW not supported [ 98.889302] [dhd] failed to start ecounters [ 98.889306] [dhd] dhd_ecounter_configure Ecounters start failed [ 98.889482] [dhd] dhd_legacy_preinit_ioctls: d3_hostwake_delay IOVAR not present, proceed [ 98.914250] [dhd] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created (WLC_E_ALLOW_CREDIT_BORROW) [ 98.916005] [dhd] dhd_conf_set_country : set country CN, revision 0 [ 98.919640] [dhd] dhd_conf_set_country : Country code: CN (CN/0) [ 98.929307] [dhd] [wlan0] wl_android_wifi_on : Success [ 98.961713] [dhd] CFG80211-ERROR) __wl_update_wiphybands : error get bw_cap 6g (-13) [ 98.982894] [dhd] [wlan0] wl_cfg80211_up : Roam channel cache enabled [ 98.984641] [dhd] [wlan0] dhd_open : Exit ret=0 [ 98.984649] [dhd] [wlan0] dhd_pri_open : tx queue started [ 98.984652] [dhd] dhd_pri_open : mutex is released. [ 99.056218] [dhd] [wlan0] wl_run_escan : LEGACY_SCAN sync ID: 0, bssidx: 0 [ 102.018991] [dhd] [wlan0] wl_run_escan : LEGACY_SCAN sync ID: 1, bssidx: 0 [ 111.019782] [dhd] [wlan0] wl_run_escan : LEGACY_SCAN sync ID: 2, bssidx: 0 [ 118.361714] [dhd] [wlan0] wl_ext_set_chanspec : channel 5g-149(0xe09b 80MHz) [ 118.365580] [dhd] [wlan0] wl_conn_debug_info : Connecting with XX:XX:XX:XX:XX:XX ssid "XXXXXXXXXX", len (9), channel=5g-149(chan_cnt=1), sec=wpa2/psk/mfpn/aes, rssi=-40 [ 118.484619] [dhd] [wlan0] wl_iw_event : Link UP with XX:XX:XX:XX:XX:XX [ 118.484640] [dhd] [wlan0] wl_ext_iapsta_link : [S] Link UP with XX:XX:XX:XX:XX:XX [ 118.488113] [dhd] [wlan0] wl_bss_connect_done : Report connect result - connection succeeded [ 118.494938] [dhd] [wlan0] wl_add_keyext : key index (0) for XX:XX:XX:XX:XX:XX [ 118.501696] [dhd] [wlan0] wl_cfg80211_set_suspend_bcn_li_dtim : bcn_li_dtim:0 lpas:0 bcn_to_dly:0And I tested the throughput , and it seems acceptable
Code
Display More[ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 18.0 MBytes 151 Mbits/sec 8 1.24 MBytes [ 5] 1.00-2.00 sec 15.0 MBytes 126 Mbits/sec 26 772 KBytes [ 5] 2.00-3.00 sec 17.5 MBytes 147 Mbits/sec 15 1.20 MBytes [ 5] 3.00-4.00 sec 11.2 MBytes 94.4 Mbits/sec 13 1.23 MBytes [ 5] 4.00-5.00 sec 13.8 MBytes 115 Mbits/sec 7 1.28 MBytes [ 5] 5.00-6.00 sec 7.50 MBytes 62.9 Mbits/sec 23 894 KBytes [ 5] 6.00-7.00 sec 11.2 MBytes 94.4 Mbits/sec 5 1.20 MBytes [ 5] 7.00-8.00 sec 15.0 MBytes 126 Mbits/sec 26 1.74 MBytes [ 5] 8.00-9.00 sec 13.8 MBytes 115 Mbits/sec 10 1.21 MBytes [ 5] 9.00-10.00 sec 10.0 MBytes 83.9 Mbits/sec 52 1.29 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 133 MBytes 112 Mbits/sec 185 sender [ 5] 0.00-10.02 sec 131 MBytes 110 Mbits/sec receiverthe firmware is delivered by FriendlyELEC, the bcmdhd driver is clone from https://github.com/StreamUnlimite…59/tree/15c05df
mismatched but it works
-
Finally, I seems it to work
Code[ 7.317759] brcmfmac: F1 signature read @0x18000000=0x1042aae8 [ 7.321927] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2 [ 7.323560] usbcore: registered new interface driver brcmfmac [ 7.487029] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2 [ 7.552480] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43752/2 wl0: Aug 3 2021 17:32:21 version 18.35.387.23.57 (gdc961cae) FWID 01-fe5d6591but when scan wifi , it reports errors
Code
Display Moredmesg |grep phy0 [ 7.891161] ieee80211 phy0: brcmf_run_escan: error (-52) [ 7.891778] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 11.015748] ieee80211 phy0: brcmf_run_escan: error (-52) [ 11.016752] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 20.012771] ieee80211 phy0: brcmf_run_escan: error (-52) [ 20.013597] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 47.019855] ieee80211 phy0: brcmf_run_escan: error (-52) [ 47.020689] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 128.073757] ieee80211 phy0: brcmf_run_escan: error (-52) [ 128.075077] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 161.823492] ieee80211 phy0: brcmf_run_escan: error (-52) [ 161.825148] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 165.016151] ieee80211 phy0: brcmf_run_escan: error (-52) [ 165.017757] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 174.024473] ieee80211 phy0: brcmf_run_escan: error (-52) [ 174.025345] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 201.020337] ieee80211 phy0: brcmf_run_escan: error (-52) [ 201.021164] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) [ 282.025899] ieee80211 phy0: brcmf_run_escan: error (-52) [ 282.027504] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52) -
Code
[ 7.174669] brcmfmac: F1 signature read @0x18000000=0x1042aae8 [ 7.188845] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2the chip identifies itself as BCM43752/2, and try to load brcmfmac43752-sdio , but the patch or a rockchip vendor kernel (5.15) has the chip classified as BCM43751
Code
Display Moregrep "" /sys/bus/sdio/devices/mmc0\:0001\:*/uevent /sys/bus/sdio/devices/mmc0:0001:1/uevent:DRIVER=brcmfmac /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_ID=02D0:AAE7 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:1/uevent:MODALIAS=sdio:c00v02D0dAAE7 /sys/bus/sdio/devices/mmc0:0001:2/uevent:DRIVER=brcmfmac /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_ID=02D0:AAE7 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:2/uevent:MODALIAS=sdio:c00v02D0dAAE70xAAE7=43751
0xAAE8=43752
and also we didn't have brcmfmac43751-sdio but it seems not the problem right now
according to this commit https://github.com/StreamUnlimite…d_config.c#L224
for ap6398sv:
- the Chip ID is BCM43752_CHIP_ID
- the Devce ID is BCM43751_CHIP_ID
-
I'm happy to backport merged patches to our current kernel(s). I'm not interested in adding unmerged stale patches that nobody is working to upstream. I suggest you build an image with the RFC changes, and if they work (or don't) comment on the mailing list thread to revive it and perhaps trigger some activity with the developers.
I've tried , And I encountered the same problem as the patch author of this https://patchwork.kernel.org/project/linux-…[email protected]/
I don't know whether it's a DTS specification problem or not
it's beyond my knowledge
-
-
The old one USE AP6356S both the WIFI and Bluetooth work well with LibreELEC official images
Bash
Display Moregrep "" /sys/bus/sdio/devices/mmc0\:0001\:*/uevent /sys/bus/sdio/devices/mmc0:0001:1/uevent:DRIVER=brcmfmac /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_ID=02D0:4356 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:1/uevent:MODALIAS=sdio:c00v02D0d4356 /sys/bus/sdio/devices/mmc0:0001:2/uevent:DRIVER=brcmfmac /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_ID=02D0:4356 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:2/uevent:MODALIAS=sdio:c00v02D0d4356 /sys/bus/sdio/devices/mmc0:0001:3/uevent:SDIO_CLASS=02 /sys/bus/sdio/devices/mmc0:0001:3/uevent:SDIO_ID=02D0:4356 /sys/bus/sdio/devices/mmc0:0001:3/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:3/uevent:MODALIAS=sdio:c02v02D0d4356The new one USE AP6398SV, with LibreELEC nightly images, only Bluetooth works, and there is no Wlan interface
Codegrep "" /sys/bus/sdio/devices/mmc0\:0001\:*/uevent /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_ID=02D0:AAE7 /sys/bus/sdio/devices/mmc0:0001:1/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:1/uevent:MODALIAS=sdio:c00v02D0dAAE7 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_CLASS=00 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_ID=02D0:AAE7 /sys/bus/sdio/devices/mmc0:0001:2/uevent:SDIO_REVISION=0.0 /sys/bus/sdio/devices/mmc0:0001:2/uevent:MODALIAS=sdio:c00v02D0dAAE7currently, there are only new boards for selling
they mark the wifi chip with read font to emphasize the difference
any plan to support this?
PS: AP6398S uses bcm4359, which is already supported by the Linux kernel
Maybe related: https://patchwork.kernel.org/project/linux-…27&archive=both
-
https://opensource.rock-chips.com/images/c/cd/Rockchip_bootflow20181122.jpg
are we using Boot Flow 2?
So, may I know why the Official LE does not use a vendor rock chip bootloader?
Is there any performance or compatible reason?
-
ilmich Thanks for your kind reply
After I erase the internal eMmc with dd , LE 12 boots successfully
But I still have some questions:
LibreELEC 11.0 uses kernel 6.1.x (not mainline), LibreELEC 12.0 uses kernel 6.6.x (not mainline)
while balbes150 's unOfficial LE uses kernel 6.12.3 (latest stable) , it can boot successfully, so which means it uses a vendor rockchip bootloader?
so,may I have any idea about why the Official LE not to use the a vendor rockchip bootloader ?
Is there any official way to install LE to the internal eMMC ?
-
I've tried many versions of images
Those Don't work
Official LE 12,11, nightly won't boot, most SD cards get stuck at
a few SD cards directly boot the system on the internal eMMC
What works:
1. balbes150 's unofficial LE , which is Kernel 6.x too, works with all SD cards on my hands
ThreadUnofficial LE for RK356x RK3328\RK3399 RK3588(s) RK3576
These are not official test images for the RK33xx and rk356x rk3588(s).
Pay attention. Starting from version (20200826), the configuration order for the used DTB changes.
Please note that the algorithm for initial configuration of the system for startup has changed. Instead of a file "uEnv.txt", the file "/extlinux/extlinux.conf " is now used. The rules for editing a file remain the same.After writing the image, you must correctly configure the DTB used in the file uEnv.txt
kernel 5.
Images rk3328…
balbes150November 25, 2019 at 12:41 PM 2. Official LE 10
-
I tried LibreELEC-ARMv8.aarch64-13.0-devel-20241211151343-e5590fa-rk3399.img.gz
Your kernel 6.x works for NANO PC T4
why the latest stable libreELEC12 didn't
-
which image should I choose for NanoPC T4?
-
The log of LibreELEC 13 nightly
Please Note that I have an official Android installed in the internal eMMC , so the boot sequence directly failed and it booted into the Android in eMMC directly
this only happens with LibreELEC 13 nightly in SDCard, LibreELEC 12 will get stuck, and LibreELEC 10 will boot successfully
Code: Directly boot into android
Display MoreDDR Version 1.27 20211018 In Channel 0: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB Channel 1: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA0DAA0, stride = 0xD OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 341 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=14910MB FwPartOffset=2000 , 100000 mmc0:cmd5,20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=3776MB FwPartOffset=2000 , 0 StorageInit ok = 910536 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT 0x3335db8 signature is wrong recovery gpt... GPT 0x3335db8 signature is wrong recovery gpt fail! Trust Addr:0x4000, 0x0 Trust Addr:0x4400, 0x0 Trust Addr:0x4800, 0x0 Trust Addr:0x4c00, 0x0 Trust Addr:0x5000, 0x0 Trust Addr:0x5400, 0x0 Trust Addr:0x5800, 0x0 Trust Addr:0x5c00, 0x0 Addr:0x4000 No find trust.img! LoadTrustBL error:-3 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: uboot_a, start:0x4000, size:0x2000 GPT part: 1, name: uboot_b, start:0x6000, size:0x2000 GPT part: 2, name: trust_a, start:0x8000, size:0x2000 GPT part: 3, name: trust_b, start:0xa000, size:0x2000 GPT part: 4, name: misc, start:0xc000, size:0x2000 GPT part: 5, name: dtb, start:0xe000, size:0x2000 GPT part: 6, name: dtbo_a, start:0x10000, size:0x2000 GPT part: 7, name: dtbo_b, start:0x12000, size:0x2000 GPT part: 8, name: vbmeta_a, start:0x14000, size:0x1000 GPT part: 9, name: vbmeta_b, start:0x15000, size:0x1000 GPT part: 10, name: boot_a, start:0x16000, size:0x20000 GPT part: 11, name: boot_b, start:0x36000, size:0x20000 GPT part: 12, name: backup, start:0x56000, size:0x30000 GPT part: 13, name: security, start:0x86000, size:0x2000 GPT part: 14, name: cache, start:0x88000, size:0xc0000 GPT part: 15, name: metadata, start:0x148000, size:0x8000 GPT part: 16, name: frp, start:0x150000, size:0x2000 GPT part: 17, name: super, start:0x152000, size:0x800000 GPT part: 18, name: userdata, start:0x952000, size:0x13ccfdf find part:misc OK. first_lba:0xc000. slot priority:15, tries_remaining:0, successful_boot:1 slot priority:14, tries_remaining:7, successful_boot:0 find part:trust_a OK. first_lba:0x8000. find part:uboot_a OK. first_lba:0x4000. Trust Addr:0x8000, 0x58334c42 No find bl30.bin Load uboot, ReadLba = 4000 Load OK, addr=0x200000, size=0xf6e90 RunBL31 0x40000 @ 989487 us NOTICE: BL31: v1.3(release):845ee93 NOTICE: BL31: Built : 15:51:11, Jul 22 2020 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1196): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: Initializing BL32 INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-256-gebb61ff5 #4 Wed Apr 22 01:34:02 UTC 2020 aarch64) INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2 INF [0x0] TEE-CORE:init_teecore:83: teecore inits done INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2017.09 (Oct 19 2023 - 16:22:07 +0800) Board: NanoPC-T4 PreSerial: 2 DRAM: 3.8 GiB Sysmem: init Relocation Offset: f5bcd000, fdt: f3dc1418 Using default environment mmc@fe320000: 1, sdhci@fe330000: 0 Bootdev(atags): mmc 0 MMC0: HS400, 150Mhz PartType: EFI A/B-slot: _a, successful: 1, tries-remain: 0 Android 10.0, Build 2020.7 Found DTB in boot_a part DTB: rk3399-nanopi4-rev00.dtb (108490) HASH(c): OK boot mode: None ANDROID: fdt overlay OK I2c0 speed: 400000Hz PMIC: RK808 vdd_center 900000 uV vdd_cpu_l 900000 uV vccio_sd init 3000000 uV vdd_log 900000 uV I2c2 speed: 200000Hz Rockchip UBOOT DRM driver version: v1.0.1 I2c7 speed: 100000Hz Monitor has basic audio support Could not find baseparameter partition mode: 3840x2160 CEA mode used vic=97 final pixclk = 594000000 tmdsclk = 594000000 PHY powered down in 0 iterations PHY PLL locked 1 iterations PHY powered down in 0 iterations PHY PLL locked 1 iterations sink has audio support hdmi_set_clk_regenerator: fs=48000Hz ftdms=594.000MHz N=10240 cts=990000 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 failed to get edid failed to find display timing CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A) CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A) aplll 816000 KHz apllb 816000 KHz dpll 800000 KHz cpll 24000 KHz gpll 800000 KHz npll 600000 KHz vpll 594000 KHz aclk_perihp 133333 KHz hclk_perihp 66666 KHz pclk_perihp 33333 KHz aclk_perilp0 266666 KHz hclk_perilp0 88888 KHz pclk_perilp0 44444 KHz hclk_perilp1 100000 KHz pclk_perilp1 50000 KHz Net: eth0: ethernet@fe300000 Hit key to stop autoboot('CTRL+C'): 0 ANDROID: reboot reason: "(none)" Vboot=0, AVB images, AVB verify read_is_device_unlocked() ops returned that device is UNLOCKED avb_slot_verify.c:753: ERROR: vbmeta_a: Error verifying vbmeta image: OK_NOT_SIGNED get image from preloaded partition... Could not find "system_a" partition Booting IMAGE kernel at 0x00280000 with fdt at 0x08300000... Fdt Ramdisk skip relocation ## Booting Android Image at 0x0027f800 ... Kernel load addr 0x00280000 size 24461 KiB RAM disk load addr 0x0a200000 size 14009 KiB ## Flattened Device Tree blob at 08300000 Booting using the fdt blob at 0x8300000 XIP Kernel Image from 0x00280000 to 0x00280000 ... OK 'reserved-memory' ramoops@110000: addr=110000 size=f0000 Using Device Tree in place at 0000000008300000, end 000000000831d9e8 Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000) Adding bank: 0x0a200000 - 0xf8000000 (size: 0xede00000) Total: 2163.260 ms Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 4.19.111 (fa@jensen) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #3 SMP PREEMPT Thu Oct 19 16:22:19 CST 2023 [ 0.000000] Machine model: FriendlyElec NanoPC-T4 [ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '') [ 0.000000] bootconsole [uart8250] enabled [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'stb-devinfo@00000000': base 0x0000000000000000, size 0 MiB [ 0.000000] cma: Reserved 16 MiB at 0x00000000f7000000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 23 pages/cpu s57304 r8192 d28712 u94208 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 991752 [ 0.000000] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.dtbo_idx=0 androidboot.verifiedbootstate=orange androidboot.slot_suffix=_a androidboot.serialno=RWW3ZEKLW1 androidboot.force_normal_boot=1 console=ttyFIQ0 androidboot.baseband=N/A androidboot.wificountrycode=US androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 androidboot.verifiedbootstate=orange firmware_class.path=/vendor/etc/firmware init=/init rootwait ro loop.max_part=7 androidboot.selinux=permissive buildvariant=userdebug earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m androidboot.boot_devices=fe330000.sdhci [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 3897224K/4030464K available (13630K kernel code, 1676K rwdata, 5252K rodata, 3840K init, 2194K bss, 116856K reserved, 16384K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: no VLPI support, no direct LPI support [ 0.000000] ITS [mem 0xfee20000-0xfee3ffff] [ 0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @f1480000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GIC: using LPI property table @0x00000000f1420000 [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000 [ 0.000000] CPU0: using LPI pending table @0x00000000f1430000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] } [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] } [ 0.000000] random: random: get_random_bytes called from start_kernel+0x36c/0x4ec with crng_init=0 [ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac as parent of dclk_vop0, rate changes may not work [ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac as parent of dclk_vop1, rate changes may not work [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns ......................If I interrupt the boot sequence with ctrl+c and interact with the uBoot, force it to boot from mmc1
Code
Display MoreDDR Version 1.27 20211018 In soft reset SRX Channel 0: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB Channel 1: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x3 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA0DAA0, stride = 0xD OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 430 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=14910MB FwPartOffset=2000 , 100000 mmc0:cmd5,20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=3776MB FwPartOffset=2000 , 0 StorageInit ok = 418214 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT 0x3335db8 signature is wrong recovery gpt... GPT 0x3335db8 signature is wrong recovery gpt fail! Trust Addr:0x4000, 0x0 Trust Addr:0x4400, 0x0 Trust Addr:0x4800, 0x0 Trust Addr:0x4c00, 0x0 Trust Addr:0x5000, 0x0 Trust Addr:0x5400, 0x0 Trust Addr:0x5800, 0x0 Trust Addr:0x5c00, 0x0 Addr:0x4000 No find trust.img! LoadTrustBL error:-3 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: uboot_a, start:0x4000, size:0x2000 GPT part: 1, name: uboot_b, start:0x6000, size:0x2000 GPT part: 2, name: trust_a, start:0x8000, size:0x2000 GPT part: 3, name: trust_b, start:0xa000, size:0x2000 GPT part: 4, name: misc, start:0xc000, size:0x2000 GPT part: 5, name: dtb, start:0xe000, size:0x2000 GPT part: 6, name: dtbo_a, start:0x10000, size:0x2000 GPT part: 7, name: dtbo_b, start:0x12000, size:0x2000 GPT part: 8, name: vbmeta_a, start:0x14000, size:0x1000 GPT part: 9, name: vbmeta_b, start:0x15000, size:0x1000 GPT part: 10, name: boot_a, start:0x16000, size:0x20000 GPT part: 11, name: boot_b, start:0x36000, size:0x20000 GPT part: 12, name: backup, start:0x56000, size:0x30000 GPT part: 13, name: security, start:0x86000, size:0x2000 GPT part: 14, name: cache, start:0x88000, size:0xc0000 GPT part: 15, name: metadata, start:0x148000, size:0x8000 GPT part: 16, name: frp, start:0x150000, size:0x2000 GPT part: 17, name: super, start:0x152000, size:0x800000 GPT part: 18, name: userdata, start:0x952000, size:0x13ccfdf find part:misc OK. first_lba:0xc000. slot priority:15, tries_remaining:0, successful_boot:1 slot priority:14, tries_remaining:7, successful_boot:0 find part:trust_a OK. first_lba:0x8000. find part:uboot_a OK. first_lba:0x4000. Trust Addr:0x8000, 0x58334c42 No find bl30.bin Load uboot, ReadLba = 4000 Load OK, addr=0x200000, size=0xf6e90 RunBL31 0x40000 @ 500764 us NOTICE: BL31: v1.3(release):845ee93 NOTICE: BL31: Built : 15:51:11, Jul 22 2020 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1196): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: Initializing BL32 INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-256-gebb61ff5 #4 Wed Apr 22 01:34:02 UTC 2020 aarch64) INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2 INF [0x0] TEE-CORE:init_teecore:83: teecore inits done INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2017.09 (Oct 19 2023 - 16:22:07 +0800) Board: NanoPC-T4 PreSerial: 2 DRAM: 3.8 GiB Sysmem: init Relocation Offset: f5bcd000, fdt: f3dc1418 Using default environment mmc@fe320000: 1, sdhci@fe330000: 0 Bootdev(atags): mmc 0 MMC0: HS400, 150Mhz PartType: EFI A/B-slot: _a, successful: 1, tries-remain: 0 Android 10.0, Build 2020.7 Found DTB in boot_a part DTB: rk3399-nanopi4-rev00.dtb (108490) HASH(c): OK boot mode: normal ANDROID: fdt overlay OK I2c0 speed: 400000Hz PMIC: RK808 vdd_center 900000 uV vdd_cpu_l 900000 uV vccio_sd init 3000000 uV vdd_log 900000 uV I2c2 speed: 200000Hz Rockchip UBOOT DRM driver version: v1.0.1 I2c7 speed: 100000Hz Monitor has basic audio support Could not find baseparameter partition mode: 3840x2160 CEA mode used vic=97 final pixclk = 594000000 tmdsclk = 594000000 PHY powered down in 0 iterations PHY PLL locked 1 iterations PHY powered down in 0 iterations PHY PLL locked 1 iterations sink has audio support hdmi_set_clk_regenerator: fs=48000Hz ftdms=594.000MHz N=10240 cts=990000 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 AUX CH error happens: 2 failed to get edid failed to find display timing CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A) CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A) aplll 816000 KHz apllb 816000 KHz dpll 800000 KHz cpll 24000 KHz gpll 800000 KHz npll 600000 KHz vpll 594000 KHz aclk_perihp 133333 KHz hclk_perihp 66666 KHz pclk_perihp 33333 KHz aclk_perilp0 266666 KHz hclk_perilp0 88888 KHz pclk_perilp0 44444 KHz hclk_perilp1 100000 KHz pclk_perilp1 50000 KHz Net: eth0: ethernet@fe300000 Hit key to stop autoboot('CTRL+C'): 0 nanopi4# printenv arch=arm baudrate=1500000 board=nanopi4 board_name=nanopi4 boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_targets=mmc1 mmc0 usb0 pxe dhcp bootargs=storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.dtbo_idx=0 bootcmd=boot_android ${devtype} ${devnum};bootrkp;run distro_bootcmd; bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci; bootcmd_mmc0=setenv devnum 0; run mmc_boot bootcmd_mmc1=setenv devnum 1; run mmc_boot bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi bootcmd_usb0=setenv devnum 0; run usb_boot bootdelay=1 cpu=armv8 cpuid#=5447314d31312e3030000000000c8582 devnum=0 devtype=mmc distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done dtb_name=rk3399-nanopi4-rev00.dtb efi_dtb_prefixes=/ /dtb/ /dtb/current/ eth1addr=e2:4a:02:ef:fd:3c ethaddr=e2:4a:24:c6:ca:9c fdt_addr_r=0x08300000 kernel_addr_r=0x00280000 load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile} mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi partitions=uuid_disk=${uuid_gpt_disk};name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};name=trust,size=4M,uuid=${uuid_gpt_atf};name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};name=rootfs,size=-,uuid=B921B045-1DF0-41C3-AF44-4C6F280D3FAE; pxefile_addr_r=0x00600000 ramdisk_addr_r=0x0a200000 rkimg_bootdev=if mmc dev 1 && rkimgtest mmc 1; then setenv devtype mmc; setenv devnum 1; echo Boot from SDcard;elif mmc dev 0; then setenv devtype mmc; setenv devnum 0;elif rksfc dev 1; then setenv devtype spinor; setenv devnum 1;fi; scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scriptaddr=0x00500000 serial#=RWW3ZEKLW1 soc=rockchip stderr=serial,vidconsole stdout=serial,vidconsole usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi vendor=rockchip Environment size: 4380/32764 bytes nanopi4# run bootcmd_mmc0 switch to partitions #0, OK mmc0(part 0) is current device Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** nanopi4# run bootcmd_mmc1 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf reading /extlinux/extlinux.conf 228 bytes read in 6 ms (37.1 KiB/s) 1: LibreELEC Retrieving file: /KERNEL reading /KERNEL 23902216 bytes read in 1622 ms (14.1 MiB/s) append: boot=UUID=1212-5249 disk=UUID=8be28f2d-1b5d-4362-9cb6-b8e5d3585b03 quiet console=uart8250,mmio32,0xff1a0000 console=tty0 coherent_pool=2M cec.debounce_ms=5000 Retrieving file: /rk3399-nanopc-t4.dtb reading /rk3399-nanopc-t4.dtb 83124 bytes read in 11 ms (7.2 MiB/s) Fdt Ramdisk skip relocation ## Flattened Device Tree blob at 08300000 Booting using the fdt blob at 0x8300000 Using Device Tree in place at 0000000008300000, end 00000000083174b3 can't found rockchip,drm-logo, use rockchip,fb-logo WARNING: could not set reg FDT_ERR_BADOFFSET. failed to reserve fb-loader-logo memory Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000) Adding bank: 0x0a200000 - 0xf8000000 (size: 0xede00000) Total: 39890.768 ms Starting kernel ... [ 1.303223] rockchip-pcie f8000000.pcie: PCIe link trainin g gen1 timeout! [ 1.304020] rockchip-pcie f8000000.pcie: probe with driver rockchip-pcie failed with error -110 -
You need to share the u-boot (early stage boot) serial uart output. This will either show what stage of boot something fails at, or nothing which indicates a more fundamental u-boot compile/packaging issue.
UART/TTL log of Libreelec 12
Code
Display MoreDDR Version 1.27 20211018 In Channel 0: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x2 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x2 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB Channel 1: LPDDR3, 800MHz CS = 0 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x2 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F CS = 1 MR0=0x58 MR1=0x58 MR2=0x58 MR3=0x58 MR4=0x2 MR5=0x1 MR6=0x16 MR7=0x0 MR8=0x1F MR9=0x1F MR10=0x1F MR11=0x1F MR12=0x1F MR13=0x1F MR14=0x1F MR15=0x1F MR16=0x1F Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA0DAA0, stride = 0xD OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 342 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=14910MB FwPartOffset=2000 , 100000 mmc0:cmd5,20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=60874MB FwPartOffset=2000 , 0 StorageInit ok = 295894 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: uboot, start:0x4000, size:0x2000 GPT part: 1, name: trust, start:0x6000, size:0x2000 GPT part: 2, name: misc, start:0x8000, size:0x2000 GPT part: 3, name: dtbo, start:0xa000, size:0x2000 GPT part: 4, name: resource, start:0xc000, size:0x8000 GPT part: 5, name: kernel, start:0x14000, size:0x14000 GPT part: 6, name: boot, start:0x28000, size:0x18000 GPT part: 7, name: rootfs, start:0x40000, size:0x7e0000 GPT part: 8, name: userdata, start:0x820000, size:0x6ec4fdf find part:uboot OK. first_lba:0x4000. find part:trust OK. first_lba:0x6000. Trust Addr:0x6000, 0x0 Trust Addr:0x6400, 0x0 Trust Addr:0x6800, 0x0 Trust Addr:0x6c00, 0x0 Trust Addr:0x7000, 0x0 Trust Addr:0x7400, 0x0 Trust Addr:0x7800, 0x0 Trust Addr:0x7c00, 0x0 Addr:0x6000 No find trust.img! LoadTrustBL error:-3 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = -2, SecureMode = 0Then it hangs
-
You need to share the u-boot (early stage boot) serial uart output. This will either show what stage of boot something fails at, or nothing which indicates a more fundamental u-boot compile/packaging issue.
I will order a TTL to USB adaptor , it will take days, when it's ready, I will paste the TTL log here
It just amazes me that after two stable releases, no one noticed it even can't boot
-
Moved from here https://github.com/LibreELEC/LibreELEC.tv/issues/9562
Describe the bug
RK3399 (eg: NanoPC T4) has stopped working after Kernel 6.x
No HDMI output and bootHow to reproduce
Steps to reproduce the behavior:
- Go to https://libreelec.tv/downloads/rockchip/ or https://test.libreelec.tv/13.0/Rockchip/nanopc-t4/
- Download LE13 nightlies / LibreELEC 12.0 / LibreELEC 11.0 which has Kernel 6.x inside, burn it to an sd card, and boot from it
- NO HDMI output. There is no boot either, even the empty space of SD card has not been expanded, so there is no SSH access
Information
- LibreELEC Version: 12.0 / 11.0 / LE13 nightlies
- Hardware Platform: NanoPC T4
Log file
No log because I can't ssh into it because of the failure of the boot
Context
LibreELEC 10.0 which has kernel 5.x works