I have a CM5 with its IO board.
I have flashed the eMMC based on this guide:
https://wiki.radxa.com/Rock5/install/usb-install-emmc
All went through correctly.
I connected the UART port to a Rpi, to see the boot messages and login.
But what I saw, the board failed to boot, here is the complete log:
DDR 73dffea49e typ 23/09/20-14:18:32,fwver: v1.14
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
Manufacturer ID:0x6
CH0 RX Vref:29.3%, TX Vref:24.8%,0.0%
CH1 RX Vref:29.7%, TX Vref:24.8%,0.0%
CH2 RX Vref:29.7%, TX Vref:21.8%,0.0%
CH3 RX Vref:31.4%, TX Vref:22.8%,0.0%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL rknext-2017.09-8-84dc6c9-g129adcf #runner (Jan 04 2024 - 08:17:57)
Trying to boot from MMC2
MMC: no card present
mmc_init: -123, time 1
spl: mmc init failed with error: -123
Trying to boot from MMC1
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(6f85d1c4de...) + OK
## Checking uboot 0x00200000 ... sha256(2626065e94...) + OK
## Checking fdt 0x0031eea0 ... sha256(736c2d8e69...) + OK
## Checking atf-2 0xff100000 ... sha256(225d6bf071...) + OK
## Checking atf-3 0x000f0000 ... sha256(aa71013e72...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 117.317 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-652-g24b7dd41a:derrick.huang, fwver: v1.43
NOTICE: BL31: Built : 14:53:32, Sep 26 2023
INFO: spec: 0x13
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: l3 cache partition cfg-0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot rknext-2017.09-8-84dc6c9-g129adcf #runner (Jan 04 2024 - 08:17:55 +0000)
Model: Radxa CM5 IO
PreSerial: 2, raw, 0xfeb50000
DRAM: 4 GiB
Sysmem: init
Relocation Offset: eda3f000
Relocation fdt: eb9f9b78 - eb9fecd8
CR: M/C/I
Using default environment
mmc@fe2c0000: 1, mmc@fe2e0000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
DM: v2
No misc partition
boot mode: None
No resource partition
No resource partition
Failed to load DTB, ret=-19
No find valid DTB, ret=-22
Failed to get kernel dtb, ret=-22
Model: Radxa CM5 IO
starting USB...
Bus usb@fc800000: USB EHCI 1.00
Bus usb@fc840000: USB OHCI 1.0
Bus usb@fc880000: USB EHCI 1.00
Bus usb@fc8c0000: USB OHCI 1.0
scanning bus usb@fc800000 for devices... 2 USB Device(s) found
scanning bus usb@fc840000 for devices... 1 USB Device(s) found
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
No usb mass storage found
CLK: (sync kernel. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
b0pll 24000 KHz
b1pll 24000 KHz
lpll 24000 KHz
v0pll 24000 KHz
aupll 24000 KHz
cpll 1500000 KHz
gpll 1188000 KHz
npll 24000 KHz
ppll 1100000 KHz
aclk_center_root 702000 KHz
pclk_center_root 100000 KHz
hclk_center_root 396000 KHz
aclk_center_low_root 500000 KHz
aclk_top_root 750000 KHz
pclk_top_root 100000 KHz
aclk_low_top_root 396000 KHz
Net: No ethernet found.
Hit Ctrl+C key in 0 seconds to stop autoboot...
Device 0: unknown device
MMC: no card present
mmc_init: -123, time 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2...
Scanning mmc 0:3...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1079 bytes read in 4 ms (262.7 KiB/s)
U-Boot menu
1: Ubuntu 22.04.3 LTS 5.10.110-28-rockchip
2: Ubuntu 22.04.3 LTS 5.10.110-28-rockchip (rescue target)
Enter choice: 1: Ubuntu 22.04.3 LTS 5.10.110-28-rockchip
Retrieving file: /boot/initrd.img-5.10.110-28-rockchip
10595717 bytes read in 67 ms (150.8 MiB/s)
Retrieving file: /boot/vmlinuz-5.10.110-28-rockchip
28310016 bytes read in 172 ms (157 MiB/s)
append: root=UUID=9ab3da36-8ff9-46a6-8cf2-2b813364d128 console=ttyFIQ0,1500000n8 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty1 coherent_pool=1
Fdt Ramdisk skip relocation
No misc partition
"Synchronous Abort" handler, esr 0x96000010
* Reason: Exception from a Data abort, from current exception level
* PC = 000000000028e6bc
* LR = 00000000002283e4
* SP = 00000000eb9f7340
* ESR_EL2 = 0000000096000010
* Reloc Off = 00000000eda3f000
x0 : 0000000000000000 x1 : 0000000000000000
x2 : 0000000000000062 x3 : 00000000edd3e118
x4 : 0000000000000000 x5 : 00000000edd5ea28
x6 : 0000000000000001 x7 : 00000000ebc6dc80
x8 : 0000000000000001 x9 : 0000000000000008
x10: 00000000ebc4a170 x11: 00000000ebc454a8
x12: 0000000000000000 x13: 0000000000000200
x14: 0000000000000002 x15: 0000000000000020
x16: 00000000edc7ba50 x17: 00000000ae0282a0
x18: 00000000eb9ffce0 x19: 0000000000000000
x20: 0000000000000000 x21: 0000000000000710
x22: 00000000edd5eb68 x23: 0000000000000001
x24: 00000000eb9f76d8 x25: 00000000edd3fad0
x26: 0000000000000000 x27: 0000000000000003
x28: 0000000000000000 x29: 00000000eb9f7520
Call trace:
PC: [< 0028e6bc >]
LR: [< 002283e4 >]
Stack:
[< 0028e6bc >]
[< 0021aee0 >]
[< 00210848 >]
[< 00210924 >]
[< 00210cbc >]
[< 0022ce78 >]
[< 00219328 >]
[< 002194dc >]
[< 00218c2c >]
[< 002191e0 >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 00218fbc >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 00218fbc >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 00218fbc >]
[< 00218fbc >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 00218fbc >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 002194dc >]
[< 00218c2c >]
[< 002191e0 >]
[< 00218fbc >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c440 >]
[< 0022ce78 >]
[< 00219328 >]
[< 002194dc >]
[< 00218bf0 >]
[< 0022c3a4 >]
[< 00219cd4 >]
[< 002176d4 >]
[< 0021a2e8 >]
[< 002919e0 >]
[< 0021a524 >]
[< 00201e18 >]
Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt
Resetting CPU ...
### ERROR ### Please RESET the board ###
Does somebody have any idea why it is not booting from eMMC?
Note: I used the radxa-cm5-io_ubuntu_jammy-test_kde_t4.img image.