[00006379] 
[00006379]  **  LK (0, restored from storage)  **
[00006383] dram cs0 size 80000000
[00006385] dram cs1 size 7ffc0000
[00006387] [sprd_timer_init]: enter ....
[00006390] [sprd_timer_init]: done ....
[00006393] booting 1 cpus
[00006394] 
[00006394] welcome to lk
[00006396] 
[00006396] boot args 0x0 0x16a48 0x16a20 0x8
[00006399] INIT: cpu 0, calling hook 0x9f0566c8 (version) at level 0x3ffff, flags 0x1
[00006405] version:
[00006406] 	arch:     arm64
[00006408] 	platform: sharkl3
[00006409] 	target:   sp9863a_1h10
[00006412] 	project:  sp9863a_1h10
[00006414] 	buildid:  2023-03-28-09:41:07_LOCAL
[00006417] 	release:  userdebug
[00006419] initializing heap
[00006421] calling constructors
[00006423] initializing mp
[00006424] initializing threads
[00006426] initializing timers
[00006428] initializing ports
[00006429] creating bootstrap completion thread
[00006433] top of bootstrap2()
[00006435] initializing platform
[00006437] myqin-UARTREG(0)=0
[00006438] initializing target
[00006440] i2c0, freq=100000
[00006442] I2C_CTL 	= 0x82106
[00006444] I2C_ADDR_CFG 	= 0x0
[00006445] I2C_COUNT = 0x0
[00006447] I2C_STATUS = 0x310008
[00006449] ADDR_DVD0 = 0x33004c
[00006451] ADDR_DVD1 = 0x0
[00006452] ADDR_STA0_DVD = 0x68
[00006454] i2c0 is ok!
[00006455] i2c1, freq=100000
[00006457] I2C_CTL 	= 0x82106
[00006459] I2C_ADDR_CFG 	= 0x0
[00006461] I2C_COUNT = 0x0
[00006462] I2C_STATUS = 0x310008
[00006464] ADDR_DVD0 = 0x33004c
[00006466] ADDR_DVD1 = 0x0
[00006467] ADDR_STA0_DVD = 0x68
[00006469] i2c1 is ok!
[00006470] i2c2, freq=100000
[00006472] I2C_CTL 	= 0x82106
[00006474] I2C_ADDR_CFG 	= 0x0
[00006476] I2C_COUNT = 0x0
[00006477] I2C_STATUS = 0x10008
[00006479] ADDR_DVD0 = 0x33004c
[00006481] ADDR_DVD1 = 0x0
[00006482] ADDR_STA0_DVD = 0x68
[00006484] i2c2 is ok!
[00006485] i2c3, freq=100000
[00006487] I2C_CTL 	= 0x82106
[00006489] I2C_ADDR_CFG 	= 0x0
[00006491] I2C_COUNT = 0x0
[00006492] I2C_STATUS = 0x310008
[00006494] ADDR_DVD0 = 0x33004c
[00006496] ADDR_DVD1 = 0x0
[00006497] ADDR_STA0_DVD = 0x68
[00006499] i2c3 is ok!
[00006500] i2c4, freq=100000
[00006502] I2C_CTL 	= 0x82106
[00006504] I2C_ADDR_CFG 	= 0x0
[00006506] I2C_COUNT = 0x0
[00006507] I2C_STATUS = 0x310008
[00006509] ADDR_DVD0 = 0x33004c
[00006511] ADDR_DVD1 = 0x0
[00006512] ADDR_STA0_DVD = 0x68
[00006514] i2c4 is ok!
[00006515] i2c5, freq=100000
[00006517] I2C_CTL 	= 0x82106
[00006519] I2C_ADDR_CFG 	= 0x0
[00006521] I2C_COUNT = 0x0
[00006522] I2C_STATUS = 0x10008
[00006524] ADDR_DVD0 = 0x33004c
[00006526] ADDR_DVD1 = 0x0
[00006527] ADDR_STA0_DVD = 0x68
[00006529] i2c5 is ok!
[00006530] i2c6, freq=100000
[00006532] I2C_CTL 	= 0x82106
[00006534] I2C_ADDR_CFG 	= 0x0
[00006536] I2C_COUNT = 0x0
[00006537] I2C_STATUS = 0x10008
[00006539] ADDR_DVD0 = 0x33004c
[00006541] ADDR_DVD1 = 0x0
[00006542] ADDR_STA0_DVD = 0x68
[00006544] i2c6 is ok!
[00006545] version read val is :2560
[00006550] pmic efuse wait 4
[00006553] pmic efuse wait 2
[00006557] pmic efuse read 19,val=0x757f
[00006560] pmic efuse read bits 304 ++ 16 0x0000757f
[00006564] 
[00006564] get pmic efuse block 19, deta: 0x0000757f
[00006567] 0.1V adc data 0x124
[00006569] 1.0V adc data 0xd14
[00006571] adc efuse small cal 1000,3348,100,292,cal_type:4
[00006575] sprd small scale efuse have cal
[00006578] pmic efuse wait 4
[00006582] pmic efuse wait 2
[00006585] pmic efuse read 18,val=0x7777
[00006588] pmic efuse read bits 288 ++ 16 0x00007777
[00006592] 
[00006592] get pmic efuse block 18, deta: 0x00007777
[00006596] adc efuse big cal 4200,3364,3600,2876,cal_type:3
[00006600] sprd big scale efuse have cal
[00006603] sprd batdet scale efuse have cal
[00006606] ADC_CTL1 value of it 0x1
[00006608] pmic_misc_init
[00006609] smpl_config
[00006610] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2820
[00006615] Not power off from smpl
[00006617] pmic efuse wait 4
[00006621] pmic efuse wait 2
[00006624] pmic efuse read 16,val=0x80e9
[00006627] chip id = 0x7370393836336100, VID = 0x1
[00006630] manufacturel_id is : 0xa00 
[00006634] [gpio keys] 124 init!
[00006636] board_mmc_initialize entry
[00006638] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00006642] sprd_host_init, no aon_clk_reg
[00006645] sprd_sdhci_init: host version: 4
[00006649] sprd host caps: 0x7000060f
[00006652] sprd_host_init return 0
[00006654] mmc_set_bus_width width=1
[00006656] mmc_set_clock clk = 400000HZ
[00006663] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006670] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00006677] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006684] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00006690] mmc send app cmd(emmc ignore) error:-19
[00006728] mmc init startup
[00006730] card cid register: 15010052 4836344d 42029991 36637600 
[00006736] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00006741] mmc raw version = 0x40000000
[00006743] mmc spec version = 0x40040000
[00006757] mmc->version = 0x40050100
[00006759] mmc->part_num = 0, erase_grp_size = 0x800
[00006763] RST_n signal(0x1) has already be permanently enabled
[00006767] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00006773] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00006778] mmc_set_clock clk = 26000000HZ
[00006781] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00006786] mmc_set_bus_width width=8
[00006788] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00006792] mmc_set_clock clk = 195000000HZ
[00006798] dpll locked done
[00006801] dll config 0xc0250d23, dll count 40, tuning length: 60
[00006806] tuning ok: 0
[00006807] tuning ok: 1
[00006808] tuning ok: 2
[00006810] tuning ok: 3
[00006811] tuning ok: 4
[00006813] tuning ok: 5
[00006814] tuning ok: 6
[00006815] tuning ok: 7
[00006817] tuning ok: 8
[00006818] tuning ok: 9
[00006820] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00006827] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00006834] tuning fail: 10
[00006835] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00006843] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0b0b7f
[00006849] tuning fail: 11
[00006851] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00006859] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0c0c7f
[00006865] tuning fail: 12
[00006867] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006874] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0d0d7f
[00006881] tuning fail: 13
[00006882] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006890] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0e0e7f
[00006896] tuning fail: 14
[00006898] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006905] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0f0f7f
[00006912] tuning fail: 15
[00006913] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006921] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd10107f
[00006927] tuning fail: 16
[00006929] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006936] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd11117f
[00006943] tuning fail: 17
[00006944] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006952] sprd_sdhci_send_command interrupt status: 0xa8003, CMD21, delay: 0xcd12127f
[00006958] tuning fail: 18
[00006960] tuning ok: 19
[00006961] tuning ok: 20
[00006963] tuning ok: 21
[00006964] tuning ok: 22
[00006966] tuning ok: 23
[00006967] tuning ok: 24
[00006969] tuning ok: 25
[00006970] tuning ok: 26
[00006972] tuning ok: 27
[00006973] tuning ok: 28
[00006975] tuning ok: 29
[00006976] tuning ok: 30
[00006978] tuning ok: 31
[00006979] tuning ok: 32
[00006981] tuning ok: 33
[00006982] tuning ok: 34
[00006984] tuning ok: 35
[00006985] tuning ok: 36
[00006987] tuning ok: 37
[00006988] tuning ok: 38
[00006990] tuning ok: 39
[00006991] tuning ok: 40
[00006993] tuning ok: 41
[00006994] tuning ok: 42
[00006996] tuning ok: 43
[00006997] tuning ok: 44
[00006999] tuning ok: 45
[00007000] tuning ok: 46
[00007002] tuning ok: 47
[00007003] tuning ok: 48
[00007005] tuning ok: 49
[00007006] tuning ok: 50
[00007008] tuning ok: 51
[00007009] tuning ok: 52
[00007011] tuning ok: 53
[00007012] tuning ok: 54
[00007013] tuning ok: 55
[00007015] tuning ok: 56
[00007016] tuning ok: 57
[00007018] tuning ok: 58
[00007019] tuning ok: 59
[00007021] tuning ok: 60
[00007022] recalculate tuning ok: 0
[00007025] recalculate tuning ok: 1
[00007027] recalculate tuning ok: 2
[00007029] recalculate tuning ok: 3
[00007031] recalculate tuning ok: 4
[00007034] recalculate tuning ok: 5
[00007036] recalculate tuning ok: 6
[00007038] recalculate tuning ok: 7
[00007040] recalculate tuning ok: 8
[00007043] recalculate tuning ok: 9
[00007045] recalculate tuning fail: 10
[00007047] recalculate tuning fail: 11
[00007050] recalculate tuning fail: 12
[00007052] recalculate tuning fail: 13
[00007055] recalculate tuning fail: 14
[00007057] recalculate tuning fail: 15
[00007060] recalculate tuning fail: 16
[00007062] recalculate tuning fail: 17
[00007065] recalculate tuning fail: 18
[00007067] recalculate tuning ok: 19
[00007070] recalculate tuning ok: 20
[00007072] recalculate tuning ok: 21
[00007074] recalculate tuning ok: 22
[00007077] recalculate tuning ok: 23
[00007079] recalculate tuning ok: 24
[00007081] recalculate tuning ok: 25
[00007084] recalculate tuning ok: 26
[00007086] recalculate tuning ok: 27
[00007088] recalculate tuning ok: 28
[00007091] recalculate tuning ok: 29
[00007093] recalculate tuning ok: 30
[00007095] recalculate tuning ok: 31
[00007098] recalculate tuning ok: 32
[00007100] recalculate tuning ok: 33
[00007102] recalculate tuning ok: 34
[00007105] recalculate tuning ok: 35
[00007107] recalculate tuning ok: 36
[00007109] recalculate tuning ok: 37
[00007112] recalculate tuning ok: 38
[00007114] recalculate tuning ok: 39
[00007116] good tuning phase range 19 ~ 9
[00007119] the best tuning step range 19-9(the length is 31)
[00007124] the best step 34, phase 0xd9, delay value 0xcdd9d97f
[00007128] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007135] test_part_dos:This part type is not DOS_MBR!
[00007139] mmc startup end
[00007141] mmc init: 0, cost time 487
[00007143] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007149] sprd_sdhci: 0 (eMMC)
[00007151] aw32207init
[00007152] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007156] pmic efuse wait 4
[00007160] pmic efuse wait 2
[00007163] pmic efuse read 18,val=0x7777
[00007166] pmic efuse read bits 288 ++ 16 0x00007777
[00007170] 
[00007170] get pmic efuse block 18, deta: 0x00007777
[00007174] sprd_chg: adc_para from efuse is 0xd241068 0xb3c0e10 
[00007179] pmic efuse wait 4
[00007182] pmic efuse wait 2
[00007186] pmic efuse read 3,val=0x8121
[00007188] pmic efuse read bits 48 ++ 9 0x00000121
[00007192] 
[00007192] sprd_chg: fgu_cal_get 4.2 data data: 0x121
[00007196] sprd_chg: fgu_data: 0xb54
[00007198] sprd_chg: sprdfgu: one point
[00007201] sprd_chg: 4200mv=2900, 3600mv=0
[00007204] sprd_chg: fgu_cal.vol_1000mv_adc=690, vol_offset=0
[00007236] i2c4, freq=100000
[00007240] sprd_chg: aw32207_read_reg reg  = 6 value =64/40
[00007244] i2c4, freq=100000
[00007247] i2c4, freq=100000
[00007250] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00007255] sprd_chg: sprdchg_aw32207_ic_init this is aw32207
[00007259] i2c4, freq=100000
[00007263] sprd_chg: aw32207_read_reg reg  = 6 value =79/4f
[00007267] i2c4, freq=100000
[00007269] sprd_chg: aw32207_sw_reset
[00007272] i2c4, freq=100000
[00007275] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00007280] i2c4, freq=100000
[00007342] i2c4, freq=100000
[00007346] sprd_chg: aw32207_read_reg reg  = 2 value =10/a
[00007350] i2c4, freq=100000
[00007353] i2c4, freq=100000
[00007356] sprd_chg: aw32207_read_reg reg  = 5 value =36/24
[00007360] i2c4, freq=100000
[00007363] i2c4, freq=100000
[00007367] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00007371] i2c4, freq=100000
[00007374] sprd_chg: sprdchg_aw32207_ic_init
[00007377] sprd_chg: eica status bat1
[00007379] sprd_chg: sprdbat_init keep_charge = 0
[00007382] i2c4, freq=100000
[00007386] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00007390] i2c4, freq=100000
[00007394] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00007398] i2c4, freq=100000
[00007401] sprd_chg: sprdchg_aw32207_stop_charging
[00007404] i2c4, freq=100000
[00007408] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00007412] i2c4, freq=100000
[00007415] CHG init OK!
[00007416] init log type 0
[00007417] read size(0x200 + 0x100000) overflow the total partition size(0x0)
[00007423] read hdr error
[00007425] initializing apps
[00007426] Press q to LK shell cmd in 0 seconds!
[00007431] get info from misc partition failed!
[00007434] Android boot failed, error -1.
[00007440] power_button_pressed status 1
[00007442] read size(0x20 + 0x2680) overflow the total partition size(0x0)
[00007448] get enter_download flag fail
[00007450] ==== in  [get_mode_from_chipram_env] 
[00007454] get boot mode in boot func array[0]
[00007457] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00007461] download mode!
[00007462] Watch Dog Trace: WDG_TimerStop
[00007465] do_download:enter
[00007467] get info from misc partition failed!
[00007470] Android boot failed, error -1.
[00007610] now time sec 0
[00007611] now alarm sec 0
[00007613] download buffer base 0x82000000, size 10000000
[00007617] alter buffer1 base 0x92000000, size 200000
[00007621] alter buffer2 base 0x92200000, size 200000
[00007624] [do_download] pre init is ok
[00007627] [do_download] register cmd process function is ok
[00007631] [emmc_2ndhand_detect]...............
[00007635] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007641] is_wr_mmc_rpmb_key rpmb key not write
[00007644] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007650] The Emmc rpmb partition was used
[00007653] read size(0xc + 0x2700) overflow the total partition size(0x0)
[00007658] read miscdata timestamp error.
[00007661] dl_cmd_handler:enter
[00007667] packet->body.size:0x4c, image size:0x100000
[00007671] partition_name=miscdata,size=0x100000
[00007674] partition miscdata image type is RAW, normal partition!
[00007679] operate result =1,send ack
[00007684] read error!
[00007685] operate result =13,send ack
[00007688] read error!
[00007689] operate result =13,send ack
