官方一起买的 emmc 模块。接tf转接板可以被识别,但是启动会报错,如图
用的官方镜像,同样写到tf卡就可以正常启动,换了另外一个大佬的固件也是这样。
直接插板子的 emmc 座是没有反应启动不了的,ttl 日志有这样的输出
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 RoCS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x
CH0 RX Vref:32.7%, TX Vref:22.8%,21.8%
CH1 RX Vref:31.7%, TX Vref:24.8%,24.8%
CH2 RX Vref:29.7%, TX Vref:24.8%,23.8%
CH3 RX Vref:29.7%, TX Vref:23.8%,23.8%
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 2017.09-gc060f28d70-220414 #zyf (Apr 18 2022 - 18:1Failed to set cpub01
Failed to set cpub23
Trying to boot from MMC2
MMC: no card present
mmc_init: -123, iled with error: -123
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 13
spl: mmc init failed with error
Trying to boot from MTD2
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(a1a86d26d5...) + OK
## Checking fdt 0x0030a010 ... sha256(d32827d3ac...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 495.417 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-405-gb52c2eadd:derrick.huang
NOTICE: BL31: Built : 11:23:47, Aug 15INFO: spec: 0x1
INFO: ext 32k is not valid
INFO: GICv3 without legacy supINFO: ARM GICv3 driver initialized in EL3
INFO: system bo 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[2q_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: nitializing runtime services
WARNING: No OPTEE provided by BL2 oader, 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
在win下用 maskrom,一开始也是不能识别连接到 emmc 的,rkdevtool 输出日志是
Emmc IO init.
Emmc IO init.
mmc_set_bus_width: 1
SetEmmcClk: 375000, 2, 64
mmc: ERRR: SDHCI ERR:cmd:0x209,stat:0x18000
emmc reinit
mmc_set_bus_width: 1
mmc: ERRR: SDHCI ERR:cmd:0x102,stat:0x18000
emmu reinit
mmc_set_bus_width: 1
mmc: ERRR: SDHCI ERR:cmd:0x102,stat:0x18000
Sdmmcinit=2 1
sf nor id: ff ff ff
sf nor id: ff ff ff
sf nor id: ff ff ff
UsbBoot ...81174
powerOn 83497
Emmc IO init
Emmc IO init
mmc_set_bus_width: 1
SetEmmcClk: 375000, 2, 64
mmc: ERRR: SDHCI ERR:cmd:0x102,stat:0x18000
emmc reinit
mmc_set_bus_width: 1
SetEmmcClk: 375000, 2, 64
mmc: ERRR: SDHCI ERR:cmd:0x102,stat:0x18000
emmc reinit
mmc_set_bus_width: 1
SetEmmcClk: 375000, 2, 64
mmc: ERRR: SDHCI ERR:cmd:0x102,stat:0x18000
Sdmminit=2 1
然后多试了几次 rkdevtool 在 maskrom 下又可以连接到 emmc 了,flashinfo 能输出信息。但是用emmc启动还是没有反应,ttl 输出上面那样的日志。用tf卡启动系统 lsblk 也没有 emmc。
这是哪出了问题,emmc 坏了么,还是我哪里出了错,求助
================
更新,酒精刷了一下emmc座,模块接口也一起刷了一下。重新在 maskrom 下刷入 loader, spi image, 镜像刷入 emmc,跑起来了,已经启动。
不知道是酒精刷的还是单纯的多插了几下重新刷系统弄好的。
也不知道还会不会出问题,害。