[00006532] 
[00006532]  **  LK (0, restored from storage)  **
[00006536] dram cs0 size 80000000
[00006538] dram cs1 size 7ffc0000
[00006540] [sprd_timer_init]: enter ....
[00006543] [sprd_timer_init]: done ....
[00006545] booting 1 cpus
[00006547] 
[00006547] welcome to lk
[00006548] 
[00006548] boot args 0x0 0x16a48 0x16a20 0x8
[00006552] INIT: cpu 0, calling hook 0x9f0563a0 (version) at level 0x3ffff, flags 0x1
[00006558] version:
[00006559] 	arch:     arm64
[00006561] 	platform: sharkl3
[00006562] 	target:   sp9863a_1h10
[00006564] 	project:  sp9863a_1h10
[00006567] 	buildid:  2023-04-10-02:45:25_LOCAL
[00006570] 	release:  userdebug
[00006572] initializing heap
[00006573] calling constructors
[00006575] initializing mp
[00006577] initializing threads
[00006579] initializing timers
[00006581] initializing ports
[00006582] creating bootstrap completion thread
[00006586] top of bootstrap2()
[00006587] initializing platform
[00006589] myqin-UARTREG(0)=0
[00006591] initializing target
[00006593] i2c0, freq=100000
[00006595] I2C_CTL 	= 0x82106
[00006596] I2C_ADDR_CFG 	= 0x0
[00006598] I2C_COUNT = 0x0
[00006600] I2C_STATUS = 0x310008
[00006602] ADDR_DVD0 = 0x33004c
[00006604] ADDR_DVD1 = 0x0
[00006605] ADDR_STA0_DVD = 0x68
[00006607] i2c0 is ok!
[00006608] i2c1, freq=100000
[00006610] I2C_CTL 	= 0x82106
[00006611] I2C_ADDR_CFG 	= 0x0
[00006613] I2C_COUNT = 0x0
[00006615] I2C_STATUS = 0x310008
[00006617] ADDR_DVD0 = 0x33004c
[00006619] ADDR_DVD1 = 0x0
[00006620] ADDR_STA0_DVD = 0x68
[00006622] i2c1 is ok!
[00006623] i2c2, freq=100000
[00006625] I2C_CTL 	= 0x82106
[00006627] I2C_ADDR_CFG 	= 0x0
[00006628] I2C_COUNT = 0x0
[00006630] I2C_STATUS = 0x10008
[00006632] ADDR_DVD0 = 0x33004c
[00006634] ADDR_DVD1 = 0x0
[00006635] ADDR_STA0_DVD = 0x68
[00006637] i2c2 is ok!
[00006638] i2c3, freq=100000
[00006640] I2C_CTL 	= 0x82106
[00006642] I2C_ADDR_CFG 	= 0x0
[00006643] I2C_COUNT = 0x0
[00006645] I2C_STATUS = 0x310008
[00006647] ADDR_DVD0 = 0x33004c
[00006649] ADDR_DVD1 = 0x0
[00006650] ADDR_STA0_DVD = 0x68
[00006652] i2c3 is ok!
[00006653] i2c4, freq=100000
[00006655] I2C_CTL 	= 0x82106
[00006657] I2C_ADDR_CFG 	= 0x0
[00006658] I2C_COUNT = 0x0
[00006660] I2C_STATUS = 0x310008
[00006662] ADDR_DVD0 = 0x33004c
[00006664] ADDR_DVD1 = 0x0
[00006665] ADDR_STA0_DVD = 0x68
[00006667] i2c4 is ok!
[00006668] i2c5, freq=100000
[00006670] I2C_CTL 	= 0x82106
[00006672] I2C_ADDR_CFG 	= 0x0
[00006673] I2C_COUNT = 0x0
[00006675] I2C_STATUS = 0x10008
[00006677] ADDR_DVD0 = 0x33004c
[00006679] ADDR_DVD1 = 0x0
[00006680] ADDR_STA0_DVD = 0x68
[00006682] i2c5 is ok!
[00006683] i2c6, freq=100000
[00006685] I2C_CTL 	= 0x82106
[00006687] I2C_ADDR_CFG 	= 0x0
[00006688] I2C_COUNT = 0x0
[00006690] I2C_STATUS = 0x10008
[00006692] ADDR_DVD0 = 0x33004c
[00006694] ADDR_DVD1 = 0x0
[00006695] ADDR_STA0_DVD = 0x68
[00006697] i2c6 is ok!
[00006698] version read val is :2048
[00006701] pmic efuse wait 4
[00006704] pmic efuse wait 2
[00006708] pmic efuse read 19,val=0x7772
[00006710] pmic efuse read bits 304 ++ 16 0x00007772
[00006714] 
[00006714] get pmic efuse block 19, deta: 0x00007772
[00006718] 0.1V adc data 0x12c
[00006720] 1.0V adc data 0xce0
[00006722] adc efuse small cal 1000,3296,100,300,cal_type:4
[00006726] sprd small scale efuse have cal
[00006729] pmic efuse wait 4
[00006732] pmic efuse wait 2
[00006736] pmic efuse read 18,val=0x6f6d
[00006739] pmic efuse read bits 288 ++ 16 0x00006f6d
[00006743] 
[00006743] get pmic efuse block 18, deta: 0x00006f6d
[00006746] adc efuse big cal 4200,3324,3600,2844,cal_type:3
[00006751] sprd big scale efuse have cal
[00006753] sprd batdet scale efuse have cal
[00006756] ADC_CTL1 value of it 0x1
[00006759] pmic_misc_init
[00006760] smpl_config
[00006761] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2820
[00006766] smpl power on flag: 0
[00006768] pmic efuse wait 4
[00006771] pmic efuse wait 2
[00006775] pmic efuse read 16,val=0x80f9
[00006777] chip id = 0x7370393836336100, VID = 0x1
[00006781] manufacturel_id is : 0x800 
[00006785] [gpio keys] 124 init!
[00006787] board_mmc_initialize entry
[00006789] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00006794] sprd_host_init, no aon_clk_reg
[00006797] sprd_sdhci_init: host version: 4
[00006801] sprd host caps: 0x7000060f
[00006803] sprd_host_init return 0
[00006805] mmc_set_bus_width width=1
[00006808] mmc_set_clock clk = 400000HZ
[00006815] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006822] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00006828] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006835] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00006841] mmc send app cmd(emmc ignore) error:-19
[00007147] mmc init startup
[00007149] card cid register: 15010052 4331344d 4207f973 c4749300 
[00007155] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00007160] mmc raw version = 0x40000000
[00007163] mmc spec version = 0x40040000
[00007176] mmc->version = 0x40050100
[00007178] mmc->part_num = 0, erase_grp_size = 0x800
[00007182] RST_n signal(0x1) has already be permanently enabled
[00007187] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007193] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00007197] mmc_set_clock clk = 26000000HZ
[00007200] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00007205] mmc_set_bus_width width=8
[00007207] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00007211] mmc_set_clock clk = 195000000HZ
[00007217] dpll locked done
[00007219] dll config 0xc0250d23, dll count 38, tuning length: 57
[00007224] tuning ok: 0
[00007225] tuning ok: 1
[00007227] tuning ok: 2
[00007228] tuning ok: 3
[00007229] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007236] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd04047f
[00007243] tuning fail: 4
[00007245] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007252] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd05057f
[00007259] tuning fail: 5
[00007260] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007267] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd06067f
[00007274] tuning fail: 6
[00007275] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007283] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd07077f
[00007290] tuning fail: 7
[00007291] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007298] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd08087f
[00007305] tuning fail: 8
[00007306] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007314] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd09097f
[00007320] tuning fail: 9
[00007322] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007329] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00007336] tuning fail: 10
[00007337] tuning ok: 11
[00007339] tuning ok: 12
[00007340] tuning ok: 13
[00007341] tuning ok: 14
[00007343] tuning ok: 15
[00007344] tuning ok: 16
[00007345] tuning ok: 17
[00007346] tuning ok: 18
[00007348] tuning ok: 19
[00007349] tuning ok: 20
[00007350] tuning ok: 21
[00007352] tuning ok: 22
[00007353] tuning ok: 23
[00007354] tuning ok: 24
[00007355] tuning ok: 25
[00007357] tuning ok: 26
[00007358] tuning ok: 27
[00007359] tuning ok: 28
[00007361] tuning ok: 29
[00007362] tuning ok: 30
[00007363] tuning ok: 31
[00007365] tuning ok: 32
[00007366] tuning ok: 33
[00007367] tuning ok: 34
[00007368] tuning ok: 35
[00007370] tuning ok: 36
[00007371] tuning ok: 37
[00007372] tuning ok: 38
[00007374] tuning ok: 39
[00007375] tuning ok: 40
[00007376] tuning ok: 41
[00007378] tuning ok: 42
[00007379] tuning ok: 43
[00007380] tuning ok: 44
[00007381] tuning ok: 45
[00007383] tuning ok: 46
[00007384] tuning ok: 47
[00007385] tuning ok: 48
[00007387] tuning ok: 49
[00007388] tuning ok: 50
[00007389] tuning ok: 51
[00007391] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007398] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd34347f
[00007405] tuning fail: 52
[00007406] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007414] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd35357f
[00007420] tuning fail: 53
[00007422] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007429] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd36367f
[00007436] tuning fail: 54
[00007437] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007445] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd37377f
[00007451] tuning fail: 55
[00007453] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007460] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd38387f
[00007467] tuning fail: 56
[00007468] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007476] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd39397f
[00007482] tuning fail: 57
[00007484] recalculate tuning ok: 0
[00007486] recalculate tuning ok: 1
[00007488] recalculate tuning ok: 2
[00007491] recalculate tuning ok: 3
[00007493] recalculate tuning fail: 4
[00007495] recalculate tuning fail: 5
[00007498] recalculate tuning fail: 6
[00007500] recalculate tuning fail: 7
[00007502] recalculate tuning fail: 8
[00007505] recalculate tuning fail: 9
[00007507] recalculate tuning fail: 10
[00007510] recalculate tuning ok: 11
[00007512] recalculate tuning ok: 12
[00007514] recalculate tuning ok: 13
[00007517] recalculate tuning fail: 14
[00007519] recalculate tuning fail: 15
[00007522] recalculate tuning fail: 16
[00007524] recalculate tuning fail: 17
[00007527] recalculate tuning fail: 18
[00007529] recalculate tuning ok: 19
[00007532] recalculate tuning ok: 20
[00007534] recalculate tuning ok: 21
[00007536] recalculate tuning ok: 22
[00007539] recalculate tuning ok: 23
[00007541] recalculate tuning ok: 24
[00007543] recalculate tuning ok: 25
[00007546] recalculate tuning ok: 26
[00007548] recalculate tuning ok: 27
[00007550] recalculate tuning ok: 28
[00007553] recalculate tuning ok: 29
[00007555] recalculate tuning ok: 30
[00007557] recalculate tuning ok: 31
[00007560] recalculate tuning ok: 32
[00007562] recalculate tuning ok: 33
[00007564] recalculate tuning ok: 34
[00007567] recalculate tuning ok: 35
[00007569] recalculate tuning ok: 36
[00007571] recalculate tuning ok: 37
[00007574] good tuning phase range 0 ~ 3
[00007576] good tuning phase range 11 ~ 13
[00007579] good tuning phase range 19 ~ 37
[00007582] the best tuning step range 19-37(the length is 19)
[00007587] the best step 28, phase 0xbc, delay value 0xcdbcbc7f
[00007591] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007598] mmc startup end
[00007599] mmc init: 0, cost time 794
[00007602] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007607] sprd_sdhci: 0 (eMMC)
[00007609] i2c4, freq=100000
[00007613] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007617] sprd_chg: fan54015_get_vendor_id = 0x2
[00007621] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007625] pmic efuse wait 4
[00007629] pmic efuse wait 2
[00007632] pmic efuse read 18,val=0x6f6d
[00007635] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007639] 
[00007639] get pmic efuse block 18, deta: 0x00006f6d
[00007643] sprd_chg: adc_para from efuse is 0xcfc1068 0xb1c0e10 
[00007736] pmic efuse wait 4
[00007739] pmic efuse wait 2
[00007743] pmic efuse read 3,val=0x60df
[00007746] pmic efuse read bits 48 ++ 9 0x000000df
[00007749] 
[00007749] sprd_chg: fgu_cal_get 4.2 data data: 0xdf
[00007753] sprd_chg: fgu_data: 0xb12
[00007755] sprd_chg: sprdfgu: one point
[00007758] sprd_chg: 4200mv=2834, 3600mv=0
[00007761] sprd_chg: fgu_cal.vol_1000mv_adc=675, vol_offset=0
[00007765] i2c4, freq=100000
[00007769] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007773] i2c4, freq=100000
[00007777] sprd_chg: fan54015_read_reg reg  = 6 value =64/40
[00007781] i2c4, freq=100000
[00007784] i2c4, freq=100000
[00007787] sprd_chg: fan54015_read_reg reg  = 6 value =73/49
[00007792] i2c4, freq=100000
[00007794] sprd_chg: fan54015_sw_reset
[00007797] i2c4, freq=100000
[00007800] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00007805] i2c4, freq=100000
[00007807] i2c4, freq=100000
[00007811] sprd_chg: fan54015_read_reg reg  = 1 value =48/30
[00007815] i2c4, freq=100000
[00007818] i2c4, freq=100000
[00007821] sprd_chg: fan54015_read_reg reg  = 1 value =0/0
[00007826] i2c4, freq=100000
[00007828] i2c4, freq=100000
[00007832] sprd_chg: fan54015_read_reg reg  = 2 value =10/a
[00007836] i2c4, freq=100000
[00007839] i2c4, freq=100000
[00007842] sprd_chg: fan54015_read_reg reg  = 5 value =36/24
[00007847] i2c4, freq=100000
[00007849] sprd_chg: sprdchg_fan54015_ic_init
[00007852] sprd_chg: eica status bat1
[00007855] sprd_chg: sprdbat_init keep_charge = 0
[00007858] i2c4, freq=100000
[00007862] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007866] i2c4, freq=100000
[00007870] sprd_chg: fan54015_read_reg reg  = 1 value =192/c0
[00007874] i2c4, freq=100000
[00007877] i2c4, freq=100000
[00007880] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00007885] i2c4, freq=100000
[00007887] sprd_chg: sprdchg_fan54015_stop_charging
[00007891] CHG init OK!
[00007892] init log type 0
[00007894] panic type boot count 2
[00007896] init log type 1
[00007898] start type init log success on 16 times
[00007902] init log type 2
[00007903] fastboot type boot count 2
[00007906] init log type 3
[00007907] download type boot count 4
[00007910] initializing apps
[00007911] Press q to LK shell cmd in 0 seconds!
[00007916] abc offset: 2048, size: 32
[00007918] ANDROID: Loaded ABC control from misc, size: 32
[00007923] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00007931] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00007937] ANDROID: Booting slot_a
[00007942] power_button_pressed status 1
[00007945] get enter_download flag :
[00007947] ==== in  [get_mode_from_chipram_env] 
[00007951] get boot mode in boot func array[0]
[00007954] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00007958] download mode!
[00007959] Watch Dog Trace: WDG_TimerStop
[00007967] do_download:enter
[00007968] abc offset: 2048, size: 32
[00007971] ANDROID: Loaded ABC control from misc, size: 32
[00007975] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00007984] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00007990] ANDROID: Booting slot_a
[00008141] now time sec 0
[00008142] now alarm sec 0
[00008144] download buffer base 0x82000000, size 10000000
[00008148] alter buffer1 base 0x92000000, size 200000
[00008152] alter buffer2 base 0x92200000, size 200000
[00008156] [do_download] pre init is ok
[00008158] [do_download] register cmd process function is ok
[00008163] [emmc_2ndhand_detect]...............
[00008166] Find gpt header from user partition,emmc was used
[00008171] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00008176] is_wr_mmc_rpmb_key rpmb key has been written
[00008180] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00008186] The Emmc rpmb partition was used
[00008189] read timestamp magic(0) incorrect.
[00008192] dl_cmd_handler:enter
[00008196] packet->body.size:0x4c, image size:0x100000
[00008200] partition_name=miscdata,size=0x100000
[00008203] partition miscdata image type is RAW, normal partition!
[00008208] operate result =1,send ack
[00008293] packet->body.size:0x4c, image size:0xa00000
[00008297] partition_name=prodnv,size=0xa00000
[00008300] partition prodnv image type is 0,partitionpurpose:0
[00008305] bad prodnv image magic(0x0)
[00008307] operate result =11,send ack
