gtking_pro_sd卡刷机信息
之前为了开发从SD卡启动只能把gtking_pro的emmc数据给擦除了,现在要恢复原先自带的android系统。
可按如下步骤进行:
1、从bee-link论坛下载刷机包C922_913P0,下载amlogic的sd卡烧录软件Burn_Card_Maker_V2.0.3.zip
2、解压C922_913P0后得到两个文件夹[sd_card,USB],通过Burn_Card_Maker把USB/GTKing_PRO_913P0_wol.img文件烧录到SD卡中,
3、把烧写完成的sd卡插入gtking_pro,重启后就进入烧录状态,流程信息如下所示
G12B:BL:6e7c85:2a3b91;FEAT:E0F97180:402000;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;
READ:0;CHK:1F;READ:0;CHK:1F;SD?:0;SD:0;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02
no sdio debug board detected
L0:00000000
L1:00000700
L2:0000c067
L3:14000020
B2:00402000
B1:e0f97180
TE: 570341
BL2 Built : 15:42:20, Aug 2 2019. g12b gfa34f81 - luan.yuan@droid15-sz
Board ID = 12
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 0008fc1b
DDR driver_vesion: LPDDR4_PHY_V_0_1_15 build time: Aug 2 2019 15:42:16
board id: 12
Load FIP HDR from SD, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part:
0
fw parse done
Load ddrfw from SD, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from SD, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 3, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1152MHz
Load ddrfw from SD, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part: 0
dmc_version 0001
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!
1D training succeed
Load ddrfw from SD, src: 0x00020200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!
R0_RxClkDly_Margin==162 ps 12
R0_TxDqDly_Margi==162 ps 12
R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001
soc_vref_reg_value 0x 00000034 00000032 00000035 00000032 0000002f 00000030 0000
0034 00000030 0000002f 0000002d 0000002f 0000002f 0000002e 0000002d 00000030 000
0002d 00000030 00000032 00000030 0000002f 00000033 0000002d 0000002f 0000002d 00
00002d 0000002d 0000002e 0000002d 0000002b 0000002f 0000002f 0000002f dram_vref_
reg_value 0x 00000010
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_15 build time: Jun 18 2019 20:30:33
auto size-- 65535DDR cs0 size: 4096MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0050002dDDR size: 3928MB
cs0 DataBus test pass
cs0 AddrBus test pass
non-sec scramble use zero key
ddr scramble enabled
100bdlr_step_size ps== 421
result report
boot times 0Enable ddr reg access
Load FIP HDR from SD, src: 0x00010200, des: 0x01700000, size: 0x00004000, part:
0
Load BL3X from SD, src: 0x00078200, des: 0x01768000, size: 0x00120000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3389-92241b5 2019-07-02 17:23:01 luan.yuan@droid15-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0b 40 00 da 57 41 ae e1 6a 87 09 d1 4b 65 09
[0.018960 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
INFO: BL3-2: ATOS-V2.4.2-13-gc341bc0 #1 Thu Jun 27 19:33:34 2019 +0800 arm
INFO: BL3-2: Chip: G12B Rev: B (29:B - 40:2)
INFO: BL3-2: crypto engine DMA
INFO: BL3-2: secure time TEE
INFO: BL3-2: CONFIG_DEVICE_SECURE 0xb200000e
U-Boot 2015.01-g93f15c4 (Sep 15 2020 - 14:36:27)
DRAM: 3.8 GiB
Relocation Offset is: d6e25000
spi_post_bind(spicc): req_seq = 0
spi_post_bind(spifc): req_seq = 1
register usb cfg[0][1] = 00000000d7f31be8
NAND: get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x00000000d3e15b10
aml_priv->desc_buf = 0x00000000d3e17e50
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x172000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
start dts,buffer=00000000d3e1a6c0,dt_addr=00000000d3e31ec0
get_partition_from_dts() 91: ret 0
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000030000000 1
12: odm 0000000008000000 1
13: system 0000000080000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x4d400000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3406: calc e3ea02a3, store e3ea02a3
_verify_dtb_checksum()-3406: calc e3ea02a3, store e3ea02a3
dtb_read()-3623: total valid 2
update_old_dtb()-3604: do nothing
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
cvbs: cpuid:0x29
lcd: detect mode: tablet, key_valid: 0
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_1
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
SARADC closed.
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 25000000
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Device: SDIO Port B
Manufacturer ID: 41
OEM: 3432
Name: SD16G
Tran Speed: 25000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 15 GiB
mmc clock: 25000000
Bus Width: 4-bit
[MSG]ini sz 0x257B
[fat]Filesize is 0x257B[0M]
[fat]0x:leftSz 257 < BPS 2000, gotSz 257
=========sdc_burn_paras=====>>>
[common]
erase_bootloader = 1
erase_flash = 1
reboot = 0x1
key_overwrite = 0x0
[burn_ex]
package = GTKing_PRO_913P0_wol.img
media =
[burn_parts]
burn_num = 0
<<<<=====sdc_burn_paras======
[fat]Filesize is 0x56070d24B[1376M]
[fat]0x:leftSz c40 < BPS 2000, gotSz 6c40
[MSG]image version [0x00000002]
[fat]Seek 0x1982b0 from 0x6c40
[MSG]itemSizeNotAligned 0x1d50
[MSG]align 4 mmc read... [fat]0x:leftSz ab0 < BPS 2000, gotSz 2e800
[MSG]Down(mem) part(dtb) sz(0x2e800) fmt(normal)
[MSG]Burn Start...
[MSG]load dt.img to 0x0000000001000000, sz=0x2e800
[MSG]Burn complete
Err imgread(L709):Logo header err.
[MSG]echo video prepare for upgrade
lcd: error: outputmode[720p60hz] is not support
hpd_state=1
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
cvbs: outputmode[720p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 4
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 3 vid_clk_div = 1
hdmitx: set enc for VIC: 4
hdmitx phy setting done
enc_vpu_bridge_reset[1249]
rx version is 1.4 or below div=10
[OSD]osd_hw.free_dst_data: 0,1279,0,719
[OSD]osd1_update_disp_freescale_enable
[MSG]dw,dh[1920, 1080]
[MSG]w,h[4,14]
[MSG]Exit before re-init
command: store exit
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
start dts,buffer=0000000001000000,dt_addr=0000000001017800
get_partition_from_dts() 91: ret 0
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000030000000 1
12: odm 0000000008000000 1
13: system 0000000080000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
XXXXXXX======enter EMMC boot======XXXXXX
co-phase 0x1, tx-dly 0, clock 40000000
co-phase 0x1, tx-dly 0, clock 40000000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x172000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
switch to partitions #0, OK
mmc1(part 0) is current device
Device: SDIO Port C
Manufacturer ID: 88
OEM: 103
Name: SLD64
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 57.6 GiB
mmc clock: 40000000
Bus Width: 8-bit
[store]amlmmc erase 1emmckey_is_protected(): protect
start = 0,end = 57343
start = 221184,end = 120831999
Erasing blocks 0 to 8192 @ boot0
start = 0,end = 8191
Erasing blocks 0 to 8192 @ boot1
start = 0,end = 8191
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
[MSG]to erase ddr parameters
[burn_parts]
burn_num = 10
burn_part0 = _aml_dtb
burn_part1 = boot
burn_part2 = dtbo
burn_part3 = logo
burn_part4 = odm
burn_part5 = product
burn_part6 = recovery
burn_part7 = system
burn_part8 = vbmeta
burn_part9 = vendor
[MSG]=====>To burn part [_aml_dtb]
[MSG]itemSizeNotAligned 0x1d50
[MSG]Down(store) part(_aml_dtb) sz(0x2e800) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 3
[MSG]itemSizeNotAligned 0x1d50, itemSizePreload 0x1d50
[fat]0x:leftSz ab0 < BPS 2000, gotSz cab0
[MSG]Burn Start...
[MSG]optimus_download_dtb_image:dataSzReceived=0x2e800
start erase dtb......
dev # 1, , several blocks erased OK
[store]To run cmd[emmc dtb_write 0x00000000013fe2b0 0x40000]
dtb_write()-3669: valid 2
dtb_write()-3689: new stamp 2, checksum 0x4667029a, version 1, magic A~D
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
start dts,buffer=00000000d3e34070,dt_addr=00000000d3e4b870
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
start dts,buffer=00000000013fe2b0,dt_addr=0000000001415ab0
get_partition_from_dts() 91: ret 0
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000030000000 1
12: odm 0000000008000000 1
13: system 0000000080000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
partition table success
[MSG]Burn complete
[store]To run cmd[emmc dtb_read 0x0000000001400000 0x40000]
dtb_read_shortcut()-3464: short cut in...
[MSG]VERIFY OK
[MSG]=====>To burn part [boot]
[fat]Seek 0x35b2b0 from 0x1c6ae0
[MSG]itemSizeNotAligned 0xd50
[MSG]flash LOGIC partCap 0x1000000B
[MSG]Down(store) part(boot) sz(0x977000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 152
[MSG]itemSizeNotAligned 0xd50, itemSizePreload 0xd50
[fat]0x:leftSz 2b0 < BPS 2000, gotSz 62b0
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part boot in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [dtbo]
[MSG]itemSizeNotAligned 0x1cf0
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(dtbo) sz(0x1b6) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[MSG]itemSizeNotAligned 0x1cf0, itemSizePreload 0x1b6
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part dtbo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [logo]
[MSG]itemSizeNotAligned 0x1b08
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(logo) sz(0x190be0) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 25
[MSG]itemSizeNotAligned 0x1b08, itemSizePreload 0x1b08
[fat]0x:leftSz 10d8 < BPS 2000, gotSz f0d8
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part logo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [odm]
[MSG]itemSizeNotAligned 0xef8
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(odm) sz(0x8304c) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 9
[MSG]itemSizeNotAligned 0xef8, itemSizePreload 0xef8
[fat]0x:leftSz 154 < BPS 2000, gotSz 2154
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part odm in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [product]
[MSG]itemSizeNotAligned 0x1dd8
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(product) sz(0x39804c) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 58
[MSG]itemSizeNotAligned 0x1dd8, itemSizePreload 0x1dd8
[fat]0x:leftSz 274 < BPS 2000, gotSz 6274
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part product in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [recovery]
[MSG]itemSizeNotAligned 0x1d58
[MSG]flash LOGIC partCap 0x1800000B
[MSG]Down(store) part(recovery) sz(0xfd7800) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 254
[MSG]itemSizeNotAligned 0x1d58, itemSizePreload 0x1d58
[fat]0x:leftSz 1aa8 < BPS 2000, gotSz 5aa8
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part recovery in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [system]
[MSG]itemSizeNotAligned 0x528
[MSG]flash LOGIC partCap 0x80000000B
[MSG]Down(store) part(system) sz(0x435e70f4) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 512
[MSG]itemSizeNotAligned 0x528, itemSizePreload 0x528
[MSG]Burn Start...
[fat]0x:leftSz bcc < BPS 2000, gotSz 6bcc
[MSG]Burn complete
Downloading %100
[MSG]Verify Start...
[MSG]To verify part system in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [vbmeta]
[MSG]itemSizeNotAligned 0x1400
[MSG]flash LOGIC partCap 0x200000B
[MSG]Down(store) part(vbmeta) sz(0x1000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[MSG]itemSizeNotAligned 0x1400, itemSizePreload 0x1000
[MSG]Burn Start...
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part vbmeta in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [vendor]
[MSG]itemSizeNotAligned 0x3d0
[MSG]flash LOGIC partCap 0x30000000B
[MSG]Down(store) part(vendor) sz(0x108330c4) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 512
[MSG]itemSizeNotAligned 0x3d0, itemSizePreload 0x3d0
[MSG]Burn Start...
[fat]0x:leftSz cf4 < BPS 2000, gotSz 2cf4
[MSG]Burn complete
[MSG]Verify Start...
[MSG]To verify part vendor in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[MSG]=====>To burn part [bootloader]
[MSG]itemSizeNotAligned 0xc0
[MSG]Down(store) part(bootloader) sz(0x194370) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 26
[MSG]itemSizeNotAligned 0xc0, itemSizePreload 0xc0
[fat]0x:leftSz 2b0 < BPS 2000, gotSz 42b0
[MSG]Burn Start...
Wrting blocks 1 to 3234 @ user
Wrting blocks 1 to 3234 @ boot0
boot_info.rsv_base_addr : 12000
boot_info.ddr.addr : 4000
boot_info.ddr.size : 0004
boot_info.version : 0001
boot_info.checksum : 16005
Wrting blocks 1 to 3234 @ boot1
boot_info.rsv_base_addr : 12000
boot_info.ddr.addr : 4000
boot_info.ddr.size : 0004
boot_info.version : 0001
boot_info.checksum : 16005
[MSG]Burn complete
[fat]Seek 0xcd22e0 from 0x1982b0
mmc switch to boot0 success
mmc switch to boot1 success
mmc switch to user success
[MSG]VERIFY OK
## save_setting ##
[MSG]Set upgrade_step to 2
Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
[MSG]to close image
[MSG]Reload bmps env.
[MSG]======sdc burn SUCCESS.
reboot mode: normal
bl31 reboot reason: 0xd
bl31 reboot reason: 0x1
system cmd 1.
G12B:BL:6e7c85:2a3b91;FEAT:E0F97180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.HH�2_stag
e_init 0x01
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02
L0:00000000
L1:00000700
L2:0000c067
L3:14000020
B2:00402000
B1:e0f97180
TE: 110764
BL2 Built : 15:42:20, Aug 2 2019. g12b gfa34f81 - luan.yuan@droid15-sz
Board ID = 12
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 0001f8e2
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_15 build time: Aug 2 2019 15:42:16
board id: 12
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part
: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part:
0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part:
0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000
, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 255
Cfg max: 3, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1152MHz
Load ddrfw from eMMC, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part:
0
dmc_version 0001
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!
1D training succeed
Load ddrfw from eMMC, src: 0x00020200, des: 0xfffd0000, size: 0x0000c000, part:
0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!
R0_RxClkDly_Margin==162 ps 12
R0_TxDqDly_Margi==176 ps 13
R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001
soc_vref_reg_value 0x 00000034 00000032 00000036 00000031 0000002e 00000030 0000
0034 0000002e 0000002e 0000002c 0000002e 0000002d 0000002d 0000002c 0000002e 000
0002d 00000030 00000031 00000030 0000002f 00000033 0000002e 00000030 0000002c 00
00002e 0000002d 0000002f 0000002e 0000002b 0000002f 00000030 00000030 dram_vref_
reg_value 0x 00000010
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_15 build time: Jun 18 2019 20:30:33
auto size-- 65535DDR cs0 size: 4096MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0050002dDDR size: 3928MB
cs0 DataBus test pass
cs0 AddrBus test pass
non-sec scramble use zero key
ddr scramble enabled
100bdlr_step_size ps== 425
result report
boot times 1Enable ddr reg access
00000000
emmc switch 3 ok
BL2: rpmb counter: 0x0000001c
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part
: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x00120000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3389-92241b5 2019-07-02 17:23:01 luan.yuan@droid15-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0b 40 00 da 57 41 ae e1 6a 87 09 d1 4b 65 09
[0.929993 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
INFO: BL3-2: ATOS-V2.4.2-13-gc341bc0 #1 Thu Jun 27 19:33:34 2019 +0800 arm
INFO: BL3-2: Chip: G12B Rev: B (29:B - 40:2)
INFO: BL3-2: crypto engine DMA
INFO: BL3-2: secure time TEE
INFO: BL3-2: CONFIG_DEVICE_SECURE 0xb200000e
U-Boot 2015.01-g93f15c4 (Sep 15 2020 - 14:36:27)
DRAM: 3.8 GiB
Relocation Offset is: d6e25000
spi_post_bind(spicc): req_seq = 0
spi_post_bind(spifc): req_seq = 1
register usb cfg[0][1] = 00000000d7f31be8
NAND: get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x00000000d3e15b10
aml_priv->desc_buf = 0x00000000d3e17e50
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x172000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
start dts,buffer=00000000d3e1a6c0,dt_addr=00000000d3e31ec0
get_partition_from_dts() 91: ret 0
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000030000000 1
12: odm 0000000008000000 1
13: system 0000000080000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x4d400000
In: serial
Out: serial
Err: serial
reboot_mode=normal
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3406: calc 4667029a, store 4667029a
_verify_dtb_checksum()-3406: calc 4667029a, store 4667029a
dtb_read()-3623: total valid 2
update_old_dtb()-3604: do nothing
Amlogic multi-dtb tool
Multi dtb detected
cpu_id.chip_rev: b
Multi dtb tool version: v2 .
Support 2 dtbs.
aml_dt soc: g12b platform: w400 variant: b
dtb 0 soc: g12b plat: w400 vari: a
dtb 1 soc: g12b plat: w400 vari: b
Find match dtb: 1
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
cvbs: cpuid:0x29
lcd: detect mode: tablet, key_valid: 0
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_1
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
SARADC closed.
Net: dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
MACADDR:02:e1:ae:41:57:da(from chipid)
CONFIG_AVB2: null
Start read misc partition datas!
info->magic =
info->version_major = 0
info->version_minor = 0
info->slots[0].priority = 0
info->slots[0].tries_remaining = 0
info->slots[0].successful_boot = 0
info->slots[1].priority = 0
info->slots[1].tries_remaining = 0
info->slots[1].successful_boot = 0
info->crc32 = 0
Magic is incorrect.
boot-info is invalid. Resetting.
save boot-info
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
active slot = 0
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode:::: normal
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
lcd: error: outputmode[1080p60hz] is not support
hpd_state=1
edid preferred_mode is 720p60hz[4]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
[OSD]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=5760, height=2160
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6 vid_clk_div = 1
hdmitx: set enc for VIC: 16
hdmitx phy setting done
enc_vpu_bridge_reset[1249]
rx version is 1.4 or below div=10
vpp: sdr_mode = 2
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
Command: bcb uboot-command
Start read misc partition datas!
BCB hasn't any datas,exit!
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
ddr_set_t_p==0xd7f84260
uboot enable auto fast boot funciton
(ddr_set_t_p->fast_boot[0])==0x00000001
uboot auto fast boot auto window test begin
str=store ddr_parameter write 0xd7f84240 0x00000290
str=g12_d2pll 1152 0x11 6 0 0 0 0 50 0x00000000 0 0
P_PREG_STICKY_REG [0x00000000] [0xff6345c0]==[0xf1300002]
P_PREG_STICKY_REG [0x00000001] [0xff6345c4]==[0x00000480]
P_PREG_STICKY_REG [0x00000002] [0xff6345c8]==[0x00000011]
P_PREG_STICKY_REG [0x00000003] [0xff6345cc]==[0x00000006]
P_PREG_STICKY_REG [0x00000004] [0xff6345d0]==[0x00000000]
P_PREG_STICKY_REG [0x00000005] [0xff6345d4]==[0x00000000]
P_PREG_STICKY_REG [0x00000006] [0xff6345d8]==[0x00000000]
P_PREG_STICKY_REG [0x00000007] [0xff6345dc]==[0x00000000]
P_PREG_STICKY_REG [0x00000008] [0xff6345e0]==[0x00000032]
P_PREG_STICKY_REG [0x00000009] [0xff6345e4]==[0x00000000]