就是VIM4启动时打印如下Log的代码:
T7:BL:055c20;ID:1056201E43811817;FEAT:30F:1FFF0000:B002F:1;POC:CF;RCY:0;OVD:0;DF
U:0;SD:2002;eMMC:0;RD-0:0;CHK:1;RD-1:0;CHK:1;RD-2:0;CHK:1;SPINOR:0;RD-0:0;CHK:0;
SCS:0;
Bl2_early_platform_setup: indicates bl2ex flow!
OTP_LIC00 : 0f0300000000ff1f2f000b0000000000
OTP_LIC10 : 008207000001fc000c00001000000300
OTP_LIC20 : ffffffbfffff0700ff80008003000003
OTP_LIC30 : 00000002010000008f03000203000000
TE: 800906
BL2 Built : 19:14:54, Aug 25 2021. t7 griscure-review-sc2-bl2-10272020-2-96-gc9c
facc - jenkins@walle02-sh
Board ID = 6
Set sys clock to 24Mhz
syspll is 1512Mhz. Locked
sys1pll is 1608Mhz. Locked
Set sys clock to 167Mhz
gp0pll is 0Mhz. Locked
bl2_platform_setup
boot area list:
1STBLOB 00000000 00040000
BL2E 00080000 00013000
BL2X 000a6000 00011000
DDRFIP 000c8000 00040000
DEVFIP 00148000 00300000
storage_spinor_init !
derive RSPK OK
DDR driver_vesion: AML_S_PHY_V_1_8 build time: Aug 25 2021 19:14:48
ddr id: 0
ddr clk to 1608MHz
PIEI done
Cfg max: 2, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
ch0 1D training succeed
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
ch1 1D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : Training has run successfully!
2d_training Time: 469405 us
R0_Rx=12 steps R0_Tx=11 steps Vref_Margin_R0=24 Dramvref_Margin_R0=21
R0_Rx=12 steps R0_Tx=11 steps Vref_Margin_R0=30 Dramvref_Margin_R0=27
soc_vref_reg_value 0x 00000020 0000001e 0000001f 00000020 0000001f 0000001f 0000
001f 0000001f 00000020 0000001f 00000021 0000001f 0000001f 00000020 0000001f 000
00020 00000022 00000021 00000021 00000020 00000020 00000020 00000020 00000020 00
000021 00000021 00000020 00000020 00000020 0000001f 0000001f 00000021
dram_verdor_id=00000006 dram_vref_reg_value 0x 00000011
Ch0 2D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : Training has run successfully!
2d_training Time: 469319 us
R0_Rx=11 steps R0_Tx=11 steps Vref_Margin_R0=25 Dramvref_Margin_R0=20
R0_Rx=12 steps R0_Tx=11 steps Vref_Margin_R0=28 Dramvref_Margin_R0=27
soc_vref_reg_value 0x 0000001f 0000001f 00000020 00000020 00000021 00000021 0000
001f 0000001e 0000001f 00000020 0000001f 00000020 00000020 0000001f 00000021 000
00020 0000001e 0000001f 00000020 00000020 0000001f 0000001f 0000001f 00000020 00
00001e 0000001e 0000001f 00000020 0000001f 0000001e 0000001e 0000001e
dram_verdor_id=00000006 dram_vref_reg_value 0x 00000010
ch1 2D training succeed
100bdlr_step_size ps== 425
100bdlr_step_size ps== 437
finnal_config_axi
finnal_config_axiset_cci_config:
cpu0_gic_init done
start ao cpu:
Wait AO...done.
debug_read..
SYSCTRL_CCI_CFG1==ffff3fff
SYSCTRL_CCI_CFG9==aaaaaaaa
SYSCTRL_NOC_CFG0==00000000
dram_size_config==10001000ap ao cmd ok
DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00044DDR size: 3584MB
DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00044DDR size: 3584MB
result report
boot times 0
non-sec scramble use random key
scramble use random key
ddr scramble enabled
INFO: bl2_load_bl2ex start!
INFO: load ...
Load: BL2E From: SPINOR - 2.0 src: 00002000, dst: 00fffff0, size: 00011000
;
INFO: check ...
SHA CHK OK!
aml log : dump from buffer 01000000
0e 88 2b 45 15 73 21 c8 6f 72 ff 4d c9 c5 e8 2f
bf cb 73 8c e9 81 21 a7 ab 57 a1 8e 7e 00 9e 73
INFO: load ...
Load: BL2X From: SPINOR - 2.0 src: 00000000, dst: 007ffff0, size: 00011000
;
INFO: check ...
SHA CHK OK!
aml log : dump from buffer 00800000
3b dd d0 66 d9 35 08 d2 27 fd b2 96 55 67 77 4e
ef cc 74 53 6a be 88 18 c9 6d f4 8d 3c cb 8b d6
run into bl2e
info: get valid params from BL2 !
BL2E: do things as vendor specific ...
Hello world, now in BL2E
TE: 2017509
BL2E Built : 20:13:38, Sep 2 2021. t7 g884ba28 - jenkins@walle02-sh
Start to do bl2e platform setup !
boot area list:
1STBLOB 00000000 00040000
BL2E 00080000 00013000
BL2X 000a6000 00011000
DDRFIP 000c8000 00040000
DEVFIP 00148000 00300000
aml log : BL2E load BL3X.....
TE: 2020791
Load FIP HDR from SPI, src: 0x00000000, des: 0x00300000, size: 0x00008000, part:
0
Load BL3X from SPI, src: 0x00008000, des: 0x00308000, size: 0x0026c260, part: 0
bl30 payload size: 0x00010260
bl30 memcpy
info: process payload 0 bl3x_toc: 0x00300020 bl3x_data: 0x00308000 rc=150
bl40 payload size: 0x00018470
info: process payload 1 bl3x_toc: 0x00300048 bl3x_data: 0x00319000 rc=194
bl31 payload size: 0x00040470
info: process payload 2 bl3x_toc: 0x00300070 bl3x_data: 0x00332000 rc=217
bl32 payload size: 0x00080470
info: process payload 3 bl3x_toc: 0x00300098 bl3x_data: 0x00373000 rc=252
bl33 memcpy
bl33 payload size: 0x00180260 offset: 0x000f4000
info: process payload 4 bl3x_toc: 0x003000c0 bl3x_data: 0x003f4000 rc=276
info: process payload 5 bl3x_toc: 0x003000e8 bl3x_data: 0x003001e0 rc=150
info: process payload 6 bl3x_toc: 0x00300110 bl3x_data: 0x00300fe0 rc=194
info: process payload 7 bl3x_toc: 0x00300138 bl3x_data: 0x00301de0 rc=217
info: process payload 8 bl3x_toc: 0x00300160 bl3x_data: 0x00302be0 rc=252
info: process payload 9 bl3x_toc: 0x00300188 bl3x_data: 0x003039e0 rc=276
info: process payload 10 bl3x_toc: 0x003001b0 bl3x_data: 0x003047e0 rc=324
aml log : BL2E loading BL3X is done...!
boot bl2x
params to bl2x, address=0x0100d190
Hello, we are in BL2X world !
TE: 4770115
BL2X Built : 17:20:12, Sep 2 2021. t7 griscure-review-s4-bl2x-04052021-25-gb0e7
456 - jenkins@walle02-sh
bl2_platform_setup
INFO: get valid list_blobinfo, 0x0100d190
Info: get valid bl31 payload info, address= 0x00332000 size= 0x00040470
Info: bl31 image is now ready !
Info: get valid bl40 payload info, address= 0x00319000 size= 0x00018470
FEAT_DISABLE_SECURE_ENCLAVE: 1
bl2e_2 entry: 0100009c
run into bl31
NOTICE: BL31: v1.3(release):effdd38bf
NOTICE: BL31: Built : 12:17:40, Aug 31 2021
BL31:tsensor calibration: tsensor1 = 960000c8
BL31:tsensor calibration: tsensor2 = 9600009e
BL31:tsensor calibration: tsensor3 = 960000b8
BL31:tsensor calibration: tsensor4 = 9600010f
BL31:tsensor calibration: tsensor5 = 960000c1
BL31:tsensor calibration: tsensor6 = 960000c8
[mhu]: mhu_init-v1
[mhu]: 0xfe007100, 0x12120210
[mhu]: 0xfe007104, 0x12121002
[mhu]: 0xfe00710c, 0xa0a0802
[mhu]: 0xfe007118, 0x12120210
[mhu]: 0xfe00711c, 0x12121002
[mhu]: 0xfe007120, 0x10101010
[mhu]: 0xfe007124, 0x10101010
[mhu]: 0xfe007020, 0x3
[mhu]: 0xfe007028, 0x10
[mhu]: 0xfe007024, 0x8
[mhu]: 0xfe00702c, 0x10
[mhu]: 0xfe007040, 0x9089
[mhu]: 0xfe007044, 0x0
[mhu]: 0xfe007048, 0x660
[mhu]: 0xfe00704c, 0x0
[mhu]: 0xfe007050, 0x90006
[mhu]: 0xfe007054, 0x0
[mhu]: 0xfe007058, 0x66000
[mhu]: 0xfe00705c, 0x0
[mhu]: mhu_init-v1 1230 done
DEVICE_MVN=0x0
NOTICE: BL31: T7 normal boot!
NOTICE: BL31: BL33 decompress pass
E/TC:0 00 INFO: BL3-2: ATOS-V3.8.0-fcff78e3a (gcc version 8.3.0 (GNU Toolchai
n for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Fri Sep 3 11:2
2:58 UTC 2021 arm
E/TC:0 00 INFO: BL3-2: secure time TEE
E/TC:0 00 INFO: BL3-2: Chip: T7 Rev: B (36:B - 0:3)
Hello world again, bl2e meet you guys!
valid entry info for bl33, pc = 0x00000000