全志平台Tina系统正常烧录rotpk

根据全志提供的方法(有文档)和工具(dragonSN),正常烧录的log如下:

[962]HELLO! BOOT0 is starting!
[966]sbrom commit : e1f5952f043afc67db586301da04b263f59835a9
 
[1003]rsb_send_initseq: rsb clk 400Khz -> 3Mhz
[1008]PMU: AXP81X
[1010]set pll start
[1016]set pll end
[1018]try to probe rtc region
[1021]DRAM driver version: V1.6
[1023]the chip id is 0x000000bc
[1026]the chip id is 0x000000bc
[1029]the chip id is 0x000000bc
[1032]the chip id is 0x000000bc
[1035]the chip id is 0x000000bc
[1038]DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
[1043]DRAM clk = 672 MHz
[1045]DRAM zq value: 003b3bbb
[1050]DRAM init OK 
[1052]DRAM size = 256 MB
[1054]DRAM init ok
[1056]init dram ok, size=256M
[1059]init heap
[1060]boot0:nand driver date:20171025
[1064]NAND_ClkRequest, nand_index: 0x00000000
[1068]Reg 0x01c20080: 0x80000000
[1072]Reg 0x01c20060: 0x00006060
[1075]Reg 0x01c202c0: 0x00006060
[1078]NAND_SetClk, nand_index: 0x00000000
[1082]Reg 0x01c20080: 0x80000000
[1086]NB0 : nand phy init ok
[1089]block from 2 to 41
[1091]nand block 2 is bad
[1094]load_toc1_from_nand err: the toc1 head magic is invalid
[1101]nand block 4 is bad
[1104]nand block 5 is bad
[1106]nand block 6 is bad
[1109]nand block 7 is bad
[1112]current block is 8 and last block is 41.
[1136]current block is 9 and last block is 41.
[1159]current block is 10 and last block is 41.
[1182]current block is 11 and last block is 41.
[1205]current block is 12 and last block is 41.
[1210]current block is 13 and last block is 41.
[1233]current block is 14 and last block is 41.
[1256]current block is 15 and last block is 41.
[1280]current block is 16 and last block is 41.
[1303]current block is 17 and last block is 41.
[1326]current block is 18 and last block is 41.
[1387]The file stored in start block %u is perfect.
[1392]OLD version: 0.0
[1394]NEW version: 0.0
[1676]enter the sbromsw_parse_boot_package
[1694]*******************Boot_package Head Message*************************
[1701]Toc_name          = sunxi-package
[1705]Toc_magic         = 0x89119800
[1709]Toc_add_sum         = 0x2fb58907
[1712]Toc_serial_num    = 0x00000000
[1715]Toc_status        = 0x00000000
[1719]Toc_items_nr      = 0x00000004
[1723]Toc_valid_len     = 0x00104000
[1726]TOC_MAIN_END      = 0x3b45494d
[1730]***************************************************************

[1737]
*******************Boot_package Item Message*************************
[1744]Entry_name        = u-boot
[1748]Entry_data_offset = 0x00000800
[1751]Entry_data_len    = 0x000b0000
[1755]encrypt           = 0x00000000
[1759]Entry_type        = 0x00000003
[1762]run_addr          = 0x43800000
[1766]index             = 0x00000000
[1769]Entry_end         = 0x3b454949
[1773]***************************************************************

[1784]
*******************Boot_package Item Message*************************
[1792]Entry_name        = scp
[1794]Entry_data_offset = 0x000b0800
[1798]Entry_data_len    = 0x000195bc
[1802]encrypt           = 0x00000000
[1805]Entry_type        = 0x00000003
[1809]run_addr          = 0x00000000
[1813]index             = 0x00000000
[1816]Entry_end         = 0x3b454949
[1820]***************************************************************

[1831]
*******************Boot_package Item Message*************************
[1839]Entry_name        = monitor
[1842]Entry_data_offset = 0x000ca000
[1846]Entry_data_len    = 0x0000c1d8
[1849]encrypt           = 0x00000000
[1853]Entry_type        = 0x00000003
[1857]run_addr          = 0x47e00000
[1860]index             = 0x00000000
[1864]Entry_end         = 0x3b454949
[1867]***************************************************************

[1875]
*******************Boot_package Item Message*************************
[1882]Entry_name        = optee
[1885]Entry_data_offset = 0x000d6400
[1889]Entry_data_len    = 0x0002d008
[1893]encrypt           = 0x00000000
[1896]Entry_type        = 0x00000003
[1900]run_addr          = 0x48600000
[1903]index             = 0x00000000
[1907]Entry_end         = 0x3b454949
[1911]***************************************************************

[1919]item_group.binfile->name: soc-cfg, item_group.binfile->data_offset: 0x00105c00, item_group.binfile->data_len: 45056, addr: 1135607808
[1932]1 - item_group.binfile->name: soc-cfg, item_group.binfile->data_offset: 0x00105c00, item_group.binfile->data_len: 45056, addr: 1135607808
[1946]item_group.binfile->name: dtb, item_group.binfile->data_offset: 0x00110c00, item_group.binfile->data_len: 80896, addr: 1134559232
[1960]1 - item_group.binfile->name: dtb, item_group.binfile->data_offset: 0x00110c00, item_group.binfile->data_len: 80896, addr: 1134559232
[1973]item_group.binfile->name: board-cfg, item_group.binfile->data_offset: 0x00124800, item_group.binfile->data_len: 1024, addr: 1136132096
[1987]1 - item_group.binfile->name: board-cfg, item_group.binfile->data_offset: 0x00124800, item_group.binfile->data_len: 1024, addr: 1136132096
9=    Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):e5156cc
NOTICE:  BL3-1: Built : 10:51:03, Mar 27 2018
NOTICE:  BL3-1 commit: e5156cc88d7bf8cd7f75320f9dbc75a0397f4912

INFO:    BL3-1: Initializing runtime services
NOTICE:  secure os exist
INFO:    BL3-1: Initializing BL3-2
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x43800000
INFO:    BL3-1: Next image spsr = 0x1d3


U-Boot 2014.07 (Sep 15 2018 - 15:36:39) Allwinner Technology 

uboot commit : fa517f11c2d063b6532cbacd99e39f4963c36731
 
secure mode: with secureos
I2C:   [I2C-ERROR]:twi_send_clk_9pulse() 205 [i2c] SDA is still Stuck Low, failed.
ready
rsb: secure monitor exist
[2.087]pmbus:   ready
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc version: [sun8iw5_v0.03.00-399-g9fac845]
[SCP] :sunxi-arisc driver v1.10 is starting
boot0 probe pmu_type = 0x11
[2.127]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=100 Mhz, APB1=50Mhz AHB2=100Mhz MBus=400Mhz
DRAM:  256 MiB
[2.131]Reserving ATF 0x200000, now relocaddr is at: 0x4fdfffff
Relocation Offset is: 0c403000
gic: sec monitor mode
[2.179]power on cpu1
[cpu1]Battery Voltage=1, Ratio=100
[cpu1]STATE_ANDROID_CHARGE
[2.189]power on cpu2
workmode = 0,storage type = 0
[cpu2]bmp lzma decode err
[2.189]NAND: NAND_UbootInit
NAND_UbootInit start
NB1 : enter NAND_LogicInit
nand : get id number_ctl from script:0x55aaaa55
uboot: nand version: 3 5020 20180528 16891444 
nand : get CapacityLevel from script, 55aaaa55
not burn nand partition table!
NB1 : nftl num: 1 
 init nftl: 0 
NB1 : NAND_LogicInit ok, result = 0x0 
NAND_UbootInit end: 0x0
the secure storage map is empty
no item name widevine in the map
sunxi storage read fail
secure storage read widevine fail
[2.488]secure storage read fail
[2.491]Widevine key install fail !!!
no item name ec_key in the map
sunxi storage read fail
secure storage read ec_key fail
no item name rsa_key in the map
sunxi storage read fail
secure storage read rsa_key fail
no item name ec_cert1 in the map
sunxi storage read fail
secure storage read ec_cert1 fail
no item name ec_cert2 in the map
sunxi storage read fail
secure storage read ec_cert2 fail
no item name ec_cert3 in the map
sunxi storage read fail
secure storage read ec_cert3 fail
no item name rsa_cert1 in the map
sunxi storage read fail
secure storage read rsa_cert1 fail
no item name rsa_cert2 in the map
sunxi storage read fail
secure storage read rsa_cert2 fail
no item name rsa_cert3 in the map
sunxi storage read fail
secure storage read rsa_cert3 fail
** Unrecognized filesystem type **
Get boardid faile
check boardid faile,will used default soccfg and dtb!
no item name key_burned_flag in the map
sunxi storage read fail
sunxi secure storage has no flag
[2.578]usb burn from boot
delay time 0
weak:otg_phy_config
[2.660]usb prepare ok
usb sof ok
[2.869]usb probe ok
[2.869]usb setup ok
set address 0x7
set address 0x7 ok
malloc memory
SUNXI_USB_SEND_DATA=32
recv_size=404
6b 65 79 2d 67 72 6f 75 70 2d 64 62 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
72 6f 74 70 6b 00 c0 03 20 05 c0 03 a4 f3 56 04 
58 05 ff 6f 58 05 ff 6f 44 4b 9f 03 34 05 c0 03 
00 00 00 00 20 05 c0 03 a4 f3 56 04 00 00 00 00 
00 00 00 00 59 cc 71 77 80 5c c0 03 5e cf f0 47 
00 00 00 00 20 00 00 00 01 00 00 00 01 00 00 00 
00 00 00 00 90 fa 80 f1 54 49 51 2a 8a 04 23 97 
06 6f 5f 78 0b 6c 8f 89 21 98 e8 d1 ba a4 2e b6 
ce d1 76 f3 00 00 00 00 00 00 00 00 00 00 00 00 

recv_size=404
6b 65 79 2d 67 72 6f 75 70 2d 64 62 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
72 6f 74 70 6b 00 c0 03 20 05 c0 03 a4 f3 56 04 
58 05 ff 6f 58 05 ff 6f 44 4b 9f 03 34 05 c0 03 
00 00 00 00 20 05 c0 03 a4 f3 56 04 00 00 00 00 
00 00 00 00 59 cc 71 77 80 5c c0 03 5e cf f0 47 
00 00 00 00 20 00 00 00 01 00 00 00 01 00 00 00 
00 00 00 00 90 fa 80 f1 54 49 51 2a 8a 04 23 97 
06 6f 5f 78 0b 6c 8f 89 21 98 e8 d1 ba a4 2e b6 
ce d1 76 f3 00 00 00 00 00 00 00 00 00 00 00 00 

key_count=1
^^^^^^^^^^^^^^^^^^^
key index=0
key name=rotpk
key type=0
key len=32
key if_burn=1
key if_replace=1
key if_crypt=0
key data:
90 fa 80 f1 54 49 51 2a 8a 04 23 97 06 6f 5f 78 
0b 6c 8f 89 21 98 e8 d1 ba a4 2e b6 ce d1 76 f3 

###################
offset=116
ready to burn rootkey
find cert name rootkey
show hash of publickey in certif
90 fa 80 f1 54 49 51 2a 8a 04 23 97 06 6f 5f 78 
0b 6c 8f 89 21 98 e8 d1 ba a4 2e b6 ce d1 76 f3 

the hash of input data and toc are equal
^^^^^^^tf_printf key_buf^^^^^^^^^^^^
key name=rotpk
key len=32
key data:4dd4dc9c
90 fa 80 f1 54 49 51 2a 8a 4 23 97 6 6f 5f 78 
b 6c 8f 89 21 98 e8 d1 ba a4 2e b6 ce d1 76 f3 

###################
 burn key start
burn key start
key name = rotpk
key index = 0x64
===== key_map->burned_bit_offset ====3 
key_data_remain_size=32
key_data_remain_size=32
key data=0xf180fa90, addr=0x47e0c3d0
[efuse] addr = 0x64, data = 0xf180fa90
key_data_remain_size=28
key data=0x2a514954, addr=0x47e0c3d4
[efuse] addr = 0x68, data = 0x2a514954
key_data_remain_size=24
key data=0x9723048a, addr=0x47e0c3d8
[efuse] addr = 0x6c, data = 0x9723048a
key_data_remain_size=20
key data=0x785f6f06, addr=0x47e0c3dc
[efuse] addr = 0x70, data = 0x785f6f06
key_data_remain_size=16
key data=0x898f6c0b, addr=0x47e0c3e0
[efuse] addr = 0x74, data = 0x898f6c0b
key_data_remain_size=12
key data=0xd1e89821, addr=0x47e0c3e4
[efuse] addr = 0x78, data = 0xd1e89821
key_data_remain_size=8
key data=0xb62ea4ba, addr=0x47e0c3e8
[efuse] addr = 0x7c, data = 0xb62ea4ba
key_data_remain_size=4
key data=0xf376d1ce, addr=0x47e0c3ec
[efuse] addr = 0x80, data = 0xf376d1ce
 burn key end
SUNXI_USB_SEND_DATA=68

PC端工具DragonSN会这样显示:

 

烧写成功

猜你喜欢

转载自blog.csdn.net/weixin_43094346/article/details/82988839