Hello everyone!
First, thank @ilmich for this great port for rk322x devices!.
I have a tv box (crylight TVbox Art no 4412) based on the "r329q" motherboard in version 3.1 (cpu : rk3229 / ram K4B4G0446Q, emmc Samsung KLM8G1GEME).
Boot from SD card works perfectly and dtb rk322x-box-mxq4kpro_r329q is OK it's perfect.
I'm now trying to install on the eMMC (using multitool or rkflashtool or rkdeveloptool)... Flash works fine, but when the box reboots, it can't find the MMC under UBOOT (when I break the boot process and use the mmc info command, I get no information):
Image used: LibreELEC-RK322X.arm-11.0-nightly-20240218-d7324fb-rk322x.img.gz (also tested with 20240312)
From multitool UBOOT :
=> mmc info
Device: dwmmc@30020000
Manufacturer ID: 15
OEM: 0
Name: M8G2FB
Bus Speed: 50000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 4.4.1
High Capacity: Yes
Capacity: 7.3 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.3 GiB WRREL
Boot Capacity: 2 MiB ENH
RPMB Capacity: 128 KiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=> mmc list
dwmmc@30000000: 1
dwmmc@30020000: 0 (eMMC)
Display More
Boot from LibreElec on eMMC :
U-Boot 2017.09 (Feb 29 2024 - 16:34:18 +0100)
Model: Rockchip RK322x SoC (eMMC)
PreSerial: 2
DRAM: 2 GiB
Sysmem: init
Relocation Offset is: 00000000
MMC: dwmmc@30000000: 1, dwmmc@30020000: 0
Using default environment
In: serial@11030000
Out: serial@11030000
Err: serial@11030000
Model: Rockchip RK322x SoC (eMMC)
Bootdev(atags): mmc 0
mmc_init: -110, time 31
rockchip_get_bootdev: can't find dev_desc!
rockchip_get_boot_mode: dev_desc is NULL!
CLK: (sync kernel. arm: enter 600000 KHz, init 600000 KHz, kernel 0N/A)
apll 600000 KHz
dpll 660000 KHz
cpll 500000 KHz
gpll 594000 KHz
armclk 600000 KHz
aclk_bus 74250 KHz
hclk_bus 37125 KHz
pclk_bus 37125 KHz
aclk_peri 74250 KHz
hclk_peri 37125 KHz
pclk_peri 37125 KHz
Net: eth0: ethernet@30200000
Hit key to stop autoboot('CTRL+C'): 0
MMC: no card present
mmc_init: -123, time 2
mmc_init: -110, time 31
Device 0: FtlInit fffffffe
unknown device
starting USB...
USB0: Core Release: 3.10a
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Device 0: unknown device
DMA reset timeout
Display More
=> mmc list
dwmmc@30000000: 1
dwmmc@30020000: 0
mmc info
mmc_init: -110, time 3
=> mmc rescan
mmc_init: -110, time 31
#sdcard insered
=> mmc rescan
=> mmc dev 1
mmc_init: -110, time 19
Display More
If I boot Libreelec from SD card and force the boot from the eMMC : it's works! :
I can see all mmc devices :
=> mmc list
dwmmc@30000000: 1 (SD)
dwmmc@30020000: 0
I can even boot from it:
devnum=0; run mmc_boot
and everything works fine...
So I'm having a problem with uboot at startup from eMMC, but I can't figure out what it is.
Any idea?
Thanks