使用debos-radxa默认参数生成GPT-IMG不启动了

DDR Version V1.10 20210810
In
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
tdqss: cs0 dqs0: -72ps, dqs1: -168ps, dqs2: -144ps, dqs3: -265ps,
tdqss: cs1 dqs0: -72ps, dqs1: -168ps, dqs2: -144ps, dqs3: -241ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x66

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x4f
cs 0:
the read training result:
DQS0:0x3c, DQS1:0x39, DQS2:0x3a, DQS3:0x35,
min : 0xd 0xc 0x10 0xd 0x2 0x7 0xb 0x4 , 0x8 0x7 0x1 0x0 0xa 0x8 0xb 0x5 ,
0xf 0xd 0xa 0x8 0x3 0x1 0x2 0x3 , 0x9 0x5 0x5 0x1 0xa 0xb 0x9 0xb ,
mid :0x2a 0x2a 0x2d 0x2b 0x20 0x25 0x27 0x22 ,0x26 0x25 0x1e 0x1e 0x28 0x26 0x28 0x23 ,
0x2c 0x2b 0x26 0x25 0x20 0x1d 0x1f 0x20 ,0x27 0x23 0x22 0x1f 0x28 0x29 0x27 0x29 ,
max :0x48 0x49 0x4b 0x49 0x3f 0x43 0x44 0x40 ,0x44 0x44 0x3b 0x3d 0x47 0x45 0x46 0x41 ,
0x4a 0x4a 0x43 0x43 0x3d 0x3a 0x3c 0x3e ,0x45 0x41 0x40 0x3d 0x47 0x47 0x45 0x47 ,
range:0x3b 0x3d 0x3b 0x3c 0x3d 0x3c 0x39 0x3c ,0x3c 0x3d 0x3a 0x3d 0x3d 0x3d 0x3b 0x3c ,
0x3b 0x3d 0x39 0x3b 0x3a 0x39 0x3a 0x3b ,0x3c 0x3c 0x3b 0x3c 0x3d 0x3c 0x3c 0x3c ,
the write training result:
DQS0:0x46, DQS1:0x39, DQS2:0x3c, DQS3:0x2c,
min :0x62 0x66 0x66 0x64 0x59 0x5b 0x5e 0x5e 0x5d ,0x56 0x55 0x4f 0x4f 0x58 0x55 0x55 0x56 0x51 ,
0x59 0x59 0x56 0x56 0x50 0x4d 0x4e 0x53 0x51 ,0x49 0x48 0x47 0x44 0x4d 0x4c 0x49 0x4d 0x46 ,
mid :0x7f 0x81 0x82 0x80 0x75 0x78 0x7b 0x79 0x78 ,0x71 0x70 0x6a 0x6b 0x74 0x70 0x70 0x70 0x6d ,
0x75 0x76 0x71 0x71 0x6c 0x67 0x69 0x6e 0x6d ,0x65 0x63 0x62 0x5f 0x68 0x68 0x64 0x68 0x61 ,
max :0x9c 0x9c 0x9e 0x9c 0x92 0x95 0x98 0x95 0x93 ,0x8d 0x8b 0x85 0x88 0x90 0x8b 0x8c 0x8b 0x89 ,
0x92 0x93 0x8d 0x8c 0x88 0x82 0x85 0x89 0x89 ,0x81 0x7f 0x7d 0x7b 0x84 0x85 0x80 0x84 0x7c ,
range:0x3a 0x36 0x38 0x38 0x39 0x3a 0x3a 0x37 0x36 ,0x37 0x36 0x36 0x39 0x38 0x36 0x37 0x35 0x38 ,
0x39 0x3a 0x37 0x36 0x38 0x35 0x37 0x36 0x38 ,0x38 0x37 0x36 0x37 0x37 0x39 0x37 0x37 0x36 ,
cs 1:
the read training result:
DQS0:0x3a, DQS1:0x3a, DQS2:0x3b, DQS3:0x37,
min : 0xd 0xb 0xf 0xc 0x1 0x6 0x9 0x4 , 0x9 0x7 0x2 0x1 0xb 0x8 0xc 0x6 ,
0xf 0xc 0xa 0x9 0x4 0x1 0x1 0x3 , 0xb 0x7 0x6 0x1 0xb 0xc 0x9 0xc ,
mid :0x29 0x29 0x2c 0x29 0x1f 0x23 0x24 0x20 ,0x26 0x25 0x1e 0x1e 0x29 0x26 0x29 0x24 ,
0x2c 0x2b 0x26 0x26 0x21 0x1e 0x1f 0x20 ,0x29 0x26 0x24 0x20 0x2a 0x2a 0x28 0x2a ,
max :0x46 0x47 0x49 0x47 0x3d 0x40 0x40 0x3d ,0x44 0x43 0x3b 0x3c 0x47 0x45 0x46 0x42 ,
0x49 0x4a 0x43 0x44 0x3e 0x3c 0x3d 0x3e ,0x47 0x45 0x43 0x3f 0x49 0x48 0x47 0x49 ,
range:0x39 0x3c 0x3a 0x3b 0x3c 0x3a 0x37 0x39 ,0x3b 0x3c 0x39 0x3b 0x3c 0x3d 0x3a 0x3c ,
0x3a 0x3e 0x39 0x3b 0x3a 0x3b 0x3c 0x3b ,0x3c 0x3e 0x3d 0x3e 0x3e 0x3c 0x3e 0x3d ,
the write training result:
DQS0:0x46, DQS1:0x39, DQS2:0x3c, DQS3:0x2c,
min :0x61 0x65 0x65 0x62 0x58 0x5b 0x5d 0x5c 0x5b ,0x55 0x55 0x4f 0x4e 0x58 0x56 0x55 0x55 0x51 ,
0x5a 0x59 0x55 0x55 0x50 0x4d 0x4e 0x53 0x52 ,0x4c 0x4b 0x4a 0x46 0x50 0x50 0x4c 0x51 0x48 ,
mid :0x7d 0x7f 0x81 0x7e 0x73 0x77 0x79 0x78 0x76 ,0x70 0x70 0x69 0x6a 0x73 0x70 0x70 0x6f 0x6c ,
0x76 0x75 0x71 0x71 0x6b 0x68 0x69 0x6d 0x6d ,0x68 0x66 0x65 0x62 0x6c 0x6b 0x67 0x6c 0x63 ,
max :0x99 0x9a 0x9d 0x9a 0x8f 0x93 0x95 0x94 0x91 ,0x8c 0x8b 0x83 0x86 0x8f 0x8a 0x8c 0x8a 0x88 ,
0x92 0x92 0x8d 0x8e 0x87 0x83 0x84 0x88 0x89 ,0x84 0x82 0x80 0x7e 0x88 0x86 0x83 0x88 0x7f ,
range:0x38 0x35 0x38 0x38 0x37 0x38 0x38 0x38 0x36 ,0x37 0x36 0x34 0x38 0x37 0x34 0x37 0x35 0x37 ,
0x38 0x39 0x38 0x39 0x37 0x36 0x36 0x35 0x37 ,0x38 0x37 0x36 0x38 0x38 0x36 0x37 0x37 0x37 ,
CA Training result:
cs:0 min :0x4a 0x45 0x40 0x3b 0x40 0x36 0x40 ,0x48 0x40 0x42 0x38 0x40 0x3a 0x40 ,
cs:0 mid :0x86 0x86 0x7d 0x7c 0x7c 0x78 0x6d ,0x84 0x83 0x7e 0x79 0x7d 0x7a 0x6e ,
cs:0 max :0xc2 0xc8 0xba 0xbd 0xb8 0xba 0x9a ,0xc1 0xc6 0xba 0xbb 0xba 0xba 0x9d ,
cs:0 range:0x78 0x83 0x7a 0x82 0x78 0x84 0x5a ,0x79 0x86 0x78 0x83 0x7a 0x80 0x5d ,
cs:1 min :0x46 0x45 0x3f 0x3a 0x3f 0x37 0x41 ,0x45 0x43 0x3e 0x39 0x3c 0x39 0x3f ,
cs:1 mid :0x84 0x85 0x7b 0x79 0x7c 0x78 0x6f ,0x82 0x82 0x7c 0x78 0x7a 0x78 0x6c ,
cs:1 max :0xc2 0xc5 0xb7 0xb9 0xb9 0xb9 0x9e ,0xc0 0xc1 0xba 0xb7 0xb9 0xb7 0x9a ,
cs:1 range:0x7c 0x80 0x78 0x7f 0x7a 0x82 0x5d ,0x7b 0x7e 0x7c 0x7e 0x7d 0x7e 0x5b ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g83031e78f1b-211223 #stephen (Jan 14 2022 - 12:05:56)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
MMC error: The cmd index is 1, ret is -110
Card did not respond to voltage select!
mmc_init: -95, time 9
spl: mmc init failed with error: -95
Trying to boot from MMC1

Verified-boot: 0

Checking atf-1 0x00040000 … sha256(fe4f274c06…) + OK

Checking uboot 0x00a00000 … sha256(4fd871418c…) + OK

Checking fdt 0x00b2f650 … sha256(ed0e2abb0d…) + OK

Checking atf-2 0x00068000 … sha256(8d44036095…) + OK

Checking atf-3 0xfdcd0000 … sha256(e410275b51…) + OK

Checking atf-4 0xfdcc9000 … sha256(990c53fc01…) + OK

Checking atf-5 0x00066000 … sha256(315a4195a9…) + OK

Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 221.275 ms

INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE: BL31: Built : 10:55:41, Oct 18 2021
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: pmu v1 is valid
INFO: dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
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 = 0xa00000
INFO: SPSR = 0x3c9

U-Boot 2017.09-g83031e78f1b-211223 #stephen (Jan 14 2022 - 12:05:56 +0800)

Model: Radxa ROCK 3 Model A
PreSerial: 2, raw, 0xfe660000
DRAM: 4 GiB
Sysmem: init
Relocation Offset: ed349000
Relocation fdt: eb9f7320 - eb9fecd0
CR: M/C/I
Using default environment

这是停到哪里了呢?

执行这几个命令,再测试一下。

构建 docker 容器

cd debos-radxa
./dev-shell

在 docker 容器里构建固件。

./build.sh -c rk3568 -b rock-3a -m ubuntu -d focal -v server -a arm64 -f gpt

在 debos-radxa/output 里查看生成的固件。

非常感谢支持,我去做一下,试试

在Docker容器里构建结果是一样的,日志都是一样的

把完整的固件构建日志发出来,我看看。

上传了好多遍都没成功,放在百度网盘中了,链接如下 :
链接:https://pan.baidu.com/s/12lhlR4XobUaEUCXNg4n_lw
提取码:rock

麻烦老师下载查看

日志,没看到有问题。

你用这个固件(https://github.com/radxa/debos-radxa/releases/download/main-7f328c0c/rock-3a-ubuntu-focal-server-arm64-20220117-0232-gpt.img.xz)先跑一下。

刷入这个新固件可以启动了,是什么原因呢?

我编译的差在哪里了?不能启动

file 命令看看编译出来的固件,然后用 parted 命令看看你的固件分区有没有问题。