|
【Linux】
使用Linux_SDK自行编译固件,设备启动不了
发表于 2022-4-28 16:20:01
浏览:5285
|
回复:1
打印
只看该作者
[复制链接]
楼主
本帖最后由 南宫尘雪 于 2022-4-28 16:21 编辑
一、设备及SDK:
设备:IPC-M10R800-A3568J
SDK包名称:rk356x_linux_release_v1.2.0_20211019_split_dir(官网下载)
SDK版本信息:rk356x_linux_release_20220311_v1.2.3a
二、基本情况:
1、Linux_SDK下载完成解压完毕,进行编译
2、选择ipc-m10r800-a3568j-ubuntu.mk 配置文件
3、使用Ubuntu Desktop文件系统
4、编译过程中配置电压阈:
pmuio1-supply = <&vcc3v3_pmu>;
pmuio2-supply = <&vcc3v3_pmu>;
vccio1-supply = <&vccio_acodec>; 3v3
vccio3-supply = <&vccio_sd>;
vccio4-supply = <&vcc_1v8>;
vccio5-supply = <&vcc_3v3>;
vccio6-supply = <&vcc_1v8>;
vccio7-supply = <&vcc_3v3>;
5、编译过程中没有报错
6、使用RKdevtool进行固件升级(使用了默认名称:IPC-M10R800-A3568J_Rk356x_v1.2.3a_220428.img),没有报错
7、固件升级完成后无法启动,log见附件与下文
8、使用官网所提供的IPC-M10R800-A3568J_Ubuntu18.04_GPT_20211207_1109.img固件,则设备正常工作,log见附件,经对比,有多处不同
三、自行编译固件启动log
[BEGIN] 2022/4/28 15:12:55
DDR Version V1.12 20220105
In
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 72ps, dqs1: -48ps, dqs2: -24ps, dqs3: -144ps,
tdqss: cs1 dqs0: 72ps, dqs1: -48ps, dqs2: -24ps, dqs3: -144ps,
change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x61
error cs 0 read training error
error cs 1 read training error
change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x62
error cs 0 read training error
error cs 1 read training error
change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
lowest freq may be too high!!!
clk skew:0x63
change to: 1560MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
lowest freq may be too high!!!
clk skew:0x67
cs 0:
the read training result:
DQS0:0x34, DQS1:0x37, DQS2:0x38, DQS3:0x31,
min : 0xf 0xf 0x12 0xf 0x1 0x7 0xb 0x5 , 0xb 0x9 0x3 0x0 0x10 0xb 0xe 0x9 ,
0x15 0x14 0xc 0xc 0x5 0x2 0x4 0x7 , 0xd 0x9 0x9 0x2 0xf 0x10 0xd 0xe ,
mid :0x27 0x2a 0x2c 0x27 0x19 0x1f 0x23 0x1e ,0x26 0x25 0x1d 0x1d 0x2a 0x28 0x29 0x24 ,
0x2e 0x2f 0x27 0x27 0x1f 0x1e 0x1e 0x21 ,0x26 0x24 0x22 0x1c 0x2a 0x2b 0x27 0x2a ,
max :0x40 0x45 0x46 0x3f 0x32 0x38 0x3b 0x37 ,0x42 0x42 0x38 0x3b 0x45 0x46 0x45 0x40 ,
0x48 0x4a 0x42 0x42 0x39 0x3a 0x39 0x3b ,0x3f 0x3f 0x3b 0x37 0x45 0x47 0x42 0x46 ,
range:0x31 0x36 0x34 0x30 0x31 0x31 0x30 0x32 ,0x37 0x39 0x35 0x3b 0x35 0x3b 0x37 0x37 ,
0x33 0x36 0x36 0x36 0x34 0x38 0x35 0x34 ,0x32 0x36 0x32 0x35 0x36 0x37 0x35 0x38 ,
the write training result:
DQS0:0x75, DQS1:0x5e, DQS2:0x63, DQS3:0x4b,
min :0xc3 0xc6 0xc8 0xc3 0xb3 0xb8 0xbc 0xb9 0xbb ,0xa7 0xa5 0xa0 0xa0 0xa9 0xa9 0xaa 0xa7 0xa3 ,
0xb1 0xb2 0xab 0xab 0xa3 0xa0 0xa2 0xa5 0xa8 ,0x9a 0x98 0x98 0x92 0x9f 0xa0 0x9a 0x9e 0x95 ,
mid :0xdf 0xe1 0xe3 0xdf 0xcf 0xd2 0xd8 0xd5 0xd6 ,0xc2 0xc1 0xba 0xba 0xc5 0xc2 0xc3 0xc1 0xbe ,
0xce 0xce 0xc7 0xc7 0xbf 0xbb 0xbd 0xc0 0xc3 ,0xb5 0xb3 0xb1 0xac 0xb9 0xbb 0xb5 0xb9 0xb0 ,
max :0xfb 0xfd 0xfe 0xfb 0xec 0xed 0xf4 0xf1 0xf1 ,0xdd 0xdd 0xd4 0xd5 0xe2 0xdc 0xdd 0xdb 0xd9 ,
0xeb 0xea 0xe3 0xe4 0xdb 0xd7 0xd8 0xdc 0xdf ,0xd1 0xce 0xcb 0xc6 0xd3 0xd7 0xd0 0xd5 0xcb ,
range:0x38 0x37 0x36 0x38 0x39 0x35 0x38 0x38 0x36 ,0x36 0x38 0x34 0x35 0x39 0x33 0x33 0x34 0x36 ,
0x3a 0x38 0x38 0x39 0x38 0x37 0x36 0x37 0x37 ,0x37 0x36 0x33 0x34 0x34 0x37 0x36 0x37 0x36 ,
cs 1:
the read training result:
DQS0:0x32, DQS1:0x37, DQS2:0x38, DQS3:0x2f,
min : 0xe 0xe 0x11 0xf 0x2 0x7 0xb 0x5 , 0xa 0x9 0x1 0x1 0xd 0xd 0xe 0x9 ,
0x15 0x14 0xd 0xb 0x5 0x2 0x5 0x7 , 0xb 0x9 0x5 0x1 0xe 0xf 0xa 0xd ,
mid :0x26 0x29 0x2b 0x26 0x1a 0x1f 0x23 0x1e ,0x27 0x26 0x1e 0x1e 0x29 0x2a 0x2a 0x25 ,
0x2e 0x30 0x28 0x26 0x1f 0x1e 0x1f 0x22 ,0x23 0x22 0x1e 0x19 0x27 0x28 0x24 0x27 ,
max :0x3f 0x44 0x45 0x3e 0x32 0x38 0x3b 0x37 ,0x44 0x44 0x3b 0x3c 0x46 0x48 0x46 0x42 ,
0x48 0x4c 0x43 0x42 0x3a 0x3b 0x3a 0x3d ,0x3c 0x3b 0x37 0x32 0x41 0x41 0x3f 0x42 ,
range:0x31 0x36 0x34 0x2f 0x30 0x31 0x30 0x32 ,0x3a 0x3b 0x3a 0x3b 0x39 0x3b 0x38 0x39 ,
0x33 0x38 0x36 0x37 0x35 0x39 0x35 0x36 ,0x31 0x32 0x32 0x31 0x33 0x32 0x35 0x35 ,
the write training result:
DQS0:0x75, DQS1:0x5e, DQS2:0x63, DQS3:0x4b,
min :0xbe 0xc4 0xc6 0xc3 0xb2 0xb6 0xba 0xb8 0xb8 ,0xa9 0xa8 0xa1 0xa3 0xac 0xab 0xab 0xaa 0xa5 ,
0xad 0xaf 0xa9 0xa9 0xa0 0x9e 0xa0 0xa2 0xa5 ,0x99 0x98 0x96 0x92 0x9d 0x9f 0x9a 0x9e 0x94 ,
mid :0xdb 0xdf 0xe1 0xde 0xce 0xd1 0xd6 0xd3 0xd4 ,0xc4 0xc3 0xbb 0xbc 0xc8 0xc4 0xc5 0xc3 0xbf ,
0xcb 0xcb 0xc4 0xc5 0xbc 0xb9 0xba 0xbd 0xc0 ,0xb5 0xb3 0xb1 0xac 0xb8 0xbb 0xb5 0xb9 0xb0 ,
max :0xf9 0xfb 0xfc 0xf9 0xea 0xed 0xf3 0xef 0xf0 ,0xdf 0xdf 0xd5 0xd5 0xe4 0xdd 0xdf 0xdc 0xd9 ,
0xe9 0xe8 0xdf 0xe1 0xd9 0xd4 0xd5 0xd9 0xdc ,0xd1 0xce 0xcc 0xc7 0xd4 0xd8 0xd1 0xd5 0xcc ,
range:0x3b 0x37 0x36 0x36 0x38 0x37 0x39 0x37 0x38 ,0x36 0x37 0x34 0x32 0x38 0x32 0x34 0x32 0x34 ,
0x3c 0x39 0x36 0x38 0x39 0x36 0x35 0x37 0x37 ,0x38 0x36 0x36 0x35 0x37 0x39 0x37 0x37 0x38 ,
CA Training result:
cs:0 min :0x49 0x48 0x3f 0x3d 0x40 0x38 0x45 ,0x49 0x43 0x3c 0x38 0x3e 0x38 0x45 ,
cs:0 mid :0x87 0x87 0x7c 0x7b 0x7c 0x76 0x73 ,0x86 0x82 0x79 0x76 0x79 0x76 0x72 ,
cs:0 max :0xc6 0xc7 0xb9 0xba 0xb9 0xb4 0xa1 ,0xc3 0xc2 0xb6 0xb5 0xb5 0xb5 0x9f ,
cs:0 range:0x7d 0x7f 0x7a 0x7d 0x79 0x7c 0x5c ,0x7a 0x7f 0x7a 0x7d 0x77 0x7d 0x5a ,
cs:1 min :0x45 0x4e 0x3c 0x40 0x3e 0x3d 0x47 ,0x44 0x47 0x3a 0x3e 0x3a 0x3c 0x44 ,
cs:1 mid :0x87 0x87 0x7c 0x7a 0x7e 0x76 0x75 ,0x85 0x82 0x7b 0x76 0x7a 0x75 0x73 ,
cs:1 max :0xc9 0xc1 0xbd 0xb5 0xbf 0xb0 0xa4 ,0xc6 0xbd 0xbc 0xaf 0xba 0xaf 0xa2 ,
cs:1 range:0x84 0x73 0x81 0x75 0x81 0x73 0x5d ,0x82 0x76 0x82 0x71 0x80 0x73 0x5e ,
out
U-Boot SPL board init
U-Boot SPL 2017.09(u-boot commit id: 0b07ec816470af0052545233fbdc6f33fc370bf2)(sdk version: rk356x_linux_release_20220311_v1.2.3a.xml)-g0b07ec8164 #yupu (Apr 28 2022 - 14:22:20)
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 13
spl: mmc init failed with error: -95
Trying to boot from MMC1
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(fe4f274c06...) + OK
## Checking uboot 0x00a00000 ... sha256(8b8d87e0bf...) + OK
## Checking fdt 0x00b27a48 ... sha256(30938731de...) + 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
## Checking optee 0x08400000 ... sha256(c9dfa757d0...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 228.267 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= 1560MHz
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
INFO: BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-630-g631d7ed9a #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #6 Mon Jan 17 19:07:43 CST 2022 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
U-Boot 2017.09(u-boot commit id: 0b07ec816470af0052545233fbdc6f33fc370bf2)(sdk version: rk356x_linux_release_20220311_v1.2.3a.xml)-g0b07ec8164 #yupu (Apr 28 2022 - 14:22:20 +0800)
Model: Firefly RK3568 Board
PreSerial: 2, raw, 0xfe660000
DRAM: 7.7 GiB
Sysmem: init
Relocation Offset: ed351000
Relocation fdt: eb9f8728 - eb9fece0
CR: M/C/I
Using default environment
dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
DM: v1
boot mode: recovery (misc)
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 100000Hz
PMIC: RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
I2c1 speed: 100000Hz
Device 'gpio@fe740000': seq 1 is in use by 'gpio@21'
io-domain: OK
Could not find baseparameter partition
Model: IPC-M10R800-A3568J MIPI M101014-BE45-A1 (Linux)
"Synchronous Abort" handler, esr 0x96000145
* Reason: Exception from a Data abort, from current exception level
* PC = 0000000000a01ac8
* LR = 0000000000a4f410
* SP = 00000000eb9f8390
* ESR_EL2 = 0000000096000145
* Reloc Off = 00000000ed351000
x0 : 0000000100000000 x1 : 000000010dfb8880
x2 : 0000000000000040 x3 : 000000000000003f
x4 : 00000000ebf50be0 x5 : 0000000000000005
x6 : 0000000000000018 x7 : 00000000ede4f0e0
x8 : 00000000ec008590 x9 : 0000000000000008
x10: 00000000ebf3f6d0 x11: 00000000ebd57310
x12: 0000000000000000 x13: 0000000000000200
x14: 0000000000000030 x15: 00000000ffffffff
x16: 000000000000000c x17: 0000000000000001
x18: 00000000eb9ffcf0 x19: 0000000000000000
x20: 000000001ff48874 x21: 00000000000b8920
x22: 00000000ebf50bf0 x23: 00000000000001f5
x24: 00000000000001f8 x25: 00000000ebf50b90
x26: 00000000000001f4 x27: 00000000ee070000
x28: 00000000ee070000 x29: 00000000eb9f8570
Call trace:
PC: [< 00a01ac8 >]
LR: [< 00a4f410 >]
Stack:
[< 00a01ac8 >]
[< 00a4f618 >]
[< 00a03ba8 >]
[< 00a9bb48 >]
[< 00a19774 >]
[< 00a01e00 >]
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 ###
请问怎么解决呀
|
-
-
log.zip
33.54 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
|