[00098669] 
[00098669]  **  LK (0, restored from storage)  **
[00098673] dram cs0 size 80000000
[00098675] dram cs1 size 7ffc0000
[00098677] [sprd_timer_init]: enter ....
[00098680] [sprd_timer_init]: done ....
[00098682] booting 1 cpus
[00098684] 
[00098684] welcome to lk
[00098685] 
[00098685] boot args 0x0 0x16a48 0x16a20 0x8
[00098689] INIT: cpu 0, calling hook 0x9f0566c8 (version) at level 0x3ffff, flags 0x1
[00098695] version:
[00098696] 	arch:     arm64
[00098698] 	platform: sharkl3
[00098699] 	target:   sp9863a_1h10
[00098701] 	project:  sp9863a_1h10
[00098704] 	buildid:  2023-03-28-09:41:07_LOCAL
[00098707] 	release:  userdebug
[00098709] initializing heap
[00098710] calling constructors
[00098712] initializing mp
[00098714] initializing threads
[00098716] initializing timers
[00098717] initializing ports
[00098719] creating bootstrap completion thread
[00098723] top of bootstrap2()
[00098724] initializing platform
[00098726] myqin-UARTREG(0)=0
[00098728] initializing target
[00098730] i2c0, freq=100000
[00098732] I2C_CTL 	= 0x82106
[00098733] I2C_ADDR_CFG 	= 0x0
[00098735] I2C_COUNT = 0x0
[00098737] I2C_STATUS = 0x310008
[00098739] ADDR_DVD0 = 0x33004c
[00098741] ADDR_DVD1 = 0x0
[00098742] ADDR_STA0_DVD = 0x68
[00098744] i2c0 is ok!
[00098745] i2c1, freq=100000
[00098747] I2C_CTL 	= 0x82106
[00098748] I2C_ADDR_CFG 	= 0x0
[00098750] I2C_COUNT = 0x0
[00098752] I2C_STATUS = 0x310008
[00098754] ADDR_DVD0 = 0x33004c
[00098756] ADDR_DVD1 = 0x0
[00098757] ADDR_STA0_DVD = 0x68
[00098759] i2c1 is ok!
[00098760] i2c2, freq=100000
[00098762] I2C_CTL 	= 0x82106
[00098764] I2C_ADDR_CFG 	= 0x0
[00098765] I2C_COUNT = 0x0
[00098767] I2C_STATUS = 0x10008
[00098769] ADDR_DVD0 = 0x33004c
[00098771] ADDR_DVD1 = 0x0
[00098772] ADDR_STA0_DVD = 0x68
[00098774] i2c2 is ok!
[00098775] i2c3, freq=100000
[00098777] I2C_CTL 	= 0x82106
[00098778] I2C_ADDR_CFG 	= 0x0
[00098780] I2C_COUNT = 0x0
[00098782] I2C_STATUS = 0x310008
[00098784] ADDR_DVD0 = 0x33004c
[00098786] ADDR_DVD1 = 0x0
[00098787] ADDR_STA0_DVD = 0x68
[00098789] i2c3 is ok!
[00098790] i2c4, freq=100000
[00098792] I2C_CTL 	= 0x82106
[00098794] I2C_ADDR_CFG 	= 0x0
[00098795] I2C_COUNT = 0x0
[00098797] I2C_STATUS = 0x310008
[00098799] ADDR_DVD0 = 0x33004c
[00098801] ADDR_DVD1 = 0x0
[00098802] ADDR_STA0_DVD = 0x68
[00098804] i2c4 is ok!
[00098805] i2c5, freq=100000
[00098807] I2C_CTL 	= 0x82106
[00098809] I2C_ADDR_CFG 	= 0x0
[00098810] I2C_COUNT = 0x0
[00098812] I2C_STATUS = 0x10008
[00098814] ADDR_DVD0 = 0x33004c
[00098816] ADDR_DVD1 = 0x0
[00098817] ADDR_STA0_DVD = 0x68
[00098819] i2c5 is ok!
[00098820] i2c6, freq=100000
[00098822] I2C_CTL 	= 0x82106
[00098824] I2C_ADDR_CFG 	= 0x0
[00098825] I2C_COUNT = 0x0
[00098827] I2C_STATUS = 0x10008
[00098829] ADDR_DVD0 = 0x33004c
[00098831] ADDR_DVD1 = 0x0
[00098832] ADDR_STA0_DVD = 0x68
[00098834] i2c6 is ok!
[00098835] version read val is :2560
[00098840] pmic efuse wait 4
[00098843] pmic efuse wait 2
[00098847] pmic efuse read 19,val=0x757f
[00098849] pmic efuse read bits 304 ++ 16 0x0000757f
[00098853] 
[00098853] get pmic efuse block 19, deta: 0x0000757f
[00098857] 0.1V adc data 0x124
[00098859] 1.0V adc data 0xd14
[00098861] adc efuse small cal 1000,3348,100,292,cal_type:4
[00098865] sprd small scale efuse have cal
[00098868] pmic efuse wait 4
[00098871] pmic efuse wait 2
[00098875] pmic efuse read 18,val=0x7777
[00098878] pmic efuse read bits 288 ++ 16 0x00007777
[00098882] 
[00098882] get pmic efuse block 18, deta: 0x00007777
[00098885] adc efuse big cal 4200,3364,3600,2876,cal_type:3
[00098890] sprd big scale efuse have cal
[00098892] sprd batdet scale efuse have cal
[00098895] ADC_CTL1 value of it 0x1
[00098898] pmic_misc_init
[00098899] smpl_config
[00098900] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2820
[00098905] Not power off from smpl
[00098907] pmic efuse wait 4
[00098910] pmic efuse wait 2
[00098914] pmic efuse read 16,val=0x80e9
[00098917] chip id = 0x7370393836336100, VID = 0x1
[00098920] manufacturel_id is : 0xa00 
[00098923] [gpio keys] 124 init!
[00098925] board_mmc_initialize entry
[00098928] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00098932] sprd_host_init, no aon_clk_reg
[00098935] sprd_sdhci_init: host version: 4
[00098939] sprd host caps: 0x7000060f
[00098941] sprd_host_init return 0
[00098943] mmc_set_bus_width width=1
[00098946] mmc_set_clock clk = 400000HZ
[00098953] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00098960] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00098966] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00098974] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00098980] mmc send app cmd(emmc ignore) error:-19
[00099007] mmc init startup
[00099009] card cid register: 15010052 4836344d 42029991 36637600 
[00099015] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00099020] mmc raw version = 0x40000000
[00099023] mmc spec version = 0x40040000
[00099036] mmc->version = 0x40050100
[00099038] mmc->part_num = 0, erase_grp_size = 0x800
[00099042] RST_n signal(0x1) has already be permanently enabled
[00099047] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00099053] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00099058] mmc_set_clock clk = 26000000HZ
[00099061] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00099065] mmc_set_bus_width width=8
[00099068] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00099072] mmc_set_clock clk = 195000000HZ
[00099078] dpll locked done
[00099080] dll config 0xc0250d23, dll count 40, tuning length: 60
[00099085] tuning ok: 0
[00099086] tuning ok: 1
[00099088] tuning ok: 2
[00099089] tuning ok: 3
[00099091] tuning ok: 4
[00099092] tuning ok: 5
[00099093] tuning ok: 6
[00099095] tuning ok: 7
[00099096] tuning ok: 8
[00099098] tuning ok: 9
[00099099] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00099106] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00099113] tuning fail: 10
[00099115] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00099122] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0b0b7f
[00099129] tuning fail: 11
[00099131] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00099138] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0c0c7f
[00099145] tuning fail: 12
[00099146] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099153] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0d0d7f
[00099160] tuning fail: 13
[00099162] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099169] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0e0e7f
[00099176] tuning fail: 14
[00099177] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099184] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0f0f7f
[00099191] tuning fail: 15
[00099193] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099200] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd10107f
[00099207] tuning fail: 16
[00099208] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099216] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd11117f
[00099222] tuning fail: 17
[00099224] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099231] sprd_sdhci_send_command interrupt status: 0xa8003, CMD21, delay: 0xcd12127f
[00099238] tuning fail: 18
[00099239] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00099246] sprd_sdhci_send_command interrupt status: 0xa8003, CMD21, delay: 0xcd13137f
[00099253] tuning fail: 19
[00099255] tuning ok: 20
[00099256] tuning ok: 21
[00099258] tuning ok: 22
[00099259] tuning ok: 23
[00099261] tuning ok: 24
[00099262] tuning ok: 25
[00099264] tuning ok: 26
[00099265] tuning ok: 27
[00099267] tuning ok: 28
[00099268] tuning ok: 29
[00099270] tuning ok: 30
[00099271] tuning ok: 31
[00099273] tuning ok: 32
[00099274] tuning ok: 33
[00099276] tuning ok: 34
[00099277] tuning ok: 35
[00099279] tuning ok: 36
[00099280] tuning ok: 37
[00099282] tuning ok: 38
[00099283] tuning ok: 39
[00099285] tuning ok: 40
[00099286] tuning ok: 41
[00099288] tuning ok: 42
[00099289] tuning ok: 43
[00099290] tuning ok: 44
[00099292] tuning ok: 45
[00099293] tuning ok: 46
[00099295] tuning ok: 47
[00099296] tuning ok: 48
[00099298] tuning ok: 49
[00099299] tuning ok: 50
[00099301] tuning ok: 51
[00099302] tuning ok: 52
[00099304] tuning ok: 53
[00099305] tuning ok: 54
[00099307] tuning ok: 55
[00099308] tuning ok: 56
[00099310] tuning ok: 57
[00099311] tuning ok: 58
[00099313] tuning ok: 59
[00099314] tuning ok: 60
[00099316] recalculate tuning ok: 0
[00099318] recalculate tuning ok: 1
[00099320] recalculate tuning ok: 2
[00099322] recalculate tuning ok: 3
[00099325] recalculate tuning ok: 4
[00099327] recalculate tuning ok: 5
[00099329] recalculate tuning ok: 6
[00099331] recalculate tuning ok: 7
[00099334] recalculate tuning ok: 8
[00099336] recalculate tuning ok: 9
[00099338] recalculate tuning fail: 10
[00099341] recalculate tuning fail: 11
[00099343] recalculate tuning fail: 12
[00099346] recalculate tuning fail: 13
[00099348] recalculate tuning fail: 14
[00099351] recalculate tuning fail: 15
[00099353] recalculate tuning fail: 16
[00099356] recalculate tuning fail: 17
[00099358] recalculate tuning fail: 18
[00099361] recalculate tuning fail: 19
[00099363] recalculate tuning ok: 20
[00099366] recalculate tuning ok: 21
[00099368] recalculate tuning ok: 22
[00099370] recalculate tuning ok: 23
[00099373] recalculate tuning ok: 24
[00099375] recalculate tuning ok: 25
[00099377] recalculate tuning ok: 26
[00099380] recalculate tuning ok: 27
[00099382] recalculate tuning ok: 28
[00099384] recalculate tuning ok: 29
[00099387] recalculate tuning ok: 30
[00099389] recalculate tuning ok: 31
[00099391] recalculate tuning ok: 32
[00099394] recalculate tuning ok: 33
[00099396] recalculate tuning ok: 34
[00099398] recalculate tuning ok: 35
[00099401] recalculate tuning ok: 36
[00099403] recalculate tuning ok: 37
[00099405] recalculate tuning ok: 38
[00099408] recalculate tuning ok: 39
[00099410] good tuning phase range 20 ~ 9
[00099413] the best tuning step range 20-9(the length is 30)
[00099417] the best step 35, phase 0xe0, delay value 0xcde0e07f
[00099422] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00099429] test_part_dos:This part type is not DOS_MBR!
[00099433] mmc startup end
[00099434] mmc init: 0, cost time 491
[00099438] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00099443] sprd_sdhci: 0 (eMMC)
[00099445] aw32207init
[00099446] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00099450] pmic efuse wait 4
[00099454] pmic efuse wait 2
[00099458] pmic efuse read 18,val=0x7777
[00099460] pmic efuse read bits 288 ++ 16 0x00007777
[00099464] 
[00099464] get pmic efuse block 18, deta: 0x00007777
[00099468] sprd_chg: adc_para from efuse is 0xd241068 0xb3c0e10 
[00099473] pmic efuse wait 4
[00099476] pmic efuse wait 2
[00099480] pmic efuse read 3,val=0x8121
[00099482] pmic efuse read bits 48 ++ 9 0x00000121
[00099486] 
[00099486] sprd_chg: fgu_cal_get 4.2 data data: 0x121
[00099490] sprd_chg: fgu_data: 0xb54
[00099492] sprd_chg: sprdfgu: one point
[00099495] sprd_chg: 4200mv=2900, 3600mv=0
[00099498] sprd_chg: fgu_cal.vol_1000mv_adc=690, vol_offset=0
[00099741] i2c4, freq=100000
[00099745] sprd_chg: aw32207_read_reg reg  = 6 value =64/40
[00099749] i2c4, freq=100000
[00099752] i2c4, freq=100000
[00099755] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00099760] sprd_chg: sprdchg_aw32207_ic_init this is aw32207
[00099764] i2c4, freq=100000
[00099768] sprd_chg: aw32207_read_reg reg  = 6 value =79/4f
[00099772] i2c4, freq=100000
[00099774] sprd_chg: aw32207_sw_reset
[00099777] i2c4, freq=100000
[00099780] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00099785] i2c4, freq=100000
[00099847] i2c4, freq=100000
[00099851] sprd_chg: aw32207_read_reg reg  = 2 value =10/a
[00099855] i2c4, freq=100000
[00099858] i2c4, freq=100000
[00099861] sprd_chg: aw32207_read_reg reg  = 5 value =36/24
[00099865] i2c4, freq=100000
[00099868] i2c4, freq=100000
[00099872] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00099876] i2c4, freq=100000
[00099879] sprd_chg: sprdchg_aw32207_ic_init
[00099882] sprd_chg: eica status bat1
[00099884] sprd_chg: sprdbat_init keep_charge = 0
[00099887] i2c4, freq=100000
[00099891] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00099895] i2c4, freq=100000
[00099899] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00099903] i2c4, freq=100000
[00099906] sprd_chg: sprdchg_aw32207_stop_charging
[00099909] i2c4, freq=100000
[00099913] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00099917] i2c4, freq=100000
[00099920] CHG init OK!
[00099921] init log type 0
[00099922] read size(0x200 + 0x100000) overflow the total partition size(0x0)
[00099928] read hdr error
[00099930] initializing apps
[00099931] Press q to LK shell cmd in 0 seconds!
[00099936] get info from misc partition failed!
[00099939] Android boot failed, error -1.
[00099945] power_button_pressed status 1
[00099947] read size(0x20 + 0x2680) overflow the total partition size(0x0)
[00099953] get enter_download flag fail
[00099955] ==== in  [get_mode_from_chipram_env] 
[00099959] get boot mode in boot func array[0]
[00099962] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00099966] download mode!
[00099967] Watch Dog Trace: WDG_TimerStop
[00099970] do_download:enter
[00099972] get info from misc partition failed!
[00099975] Android boot failed, error -1.
[00100110] now time sec 0
[00100111] now alarm sec 0
[00100113] download buffer base 0x82000000, size 10000000
[00100117] alter buffer1 base 0x92000000, size 200000
[00100121] alter buffer2 base 0x92200000, size 200000
[00100124] [do_download] pre init is ok
[00100127] [do_download] register cmd process function is ok
[00100131] [emmc_2ndhand_detect]...............
[00100135] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00100141] is_wr_mmc_rpmb_key rpmb key not write
[00100144] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00100150] The Emmc rpmb partition was used
[00100153] read size(0xc + 0x2700) overflow the total partition size(0x0)
[00100158] read miscdata timestamp error.
[00100161] dl_cmd_handler:enter
[00100164] packet->body.size:0x4c, image size:0x100000
[00100168] partition_name=miscdata,size=0x100000
[00100172] partition miscdata image type is RAW, normal partition!
[00100177] operate result =1,send ack
[00100180] read error!
[00100181] operate result =13,send ack
[00100184] read error!
[00100185] operate result =13,send ack
