[00032772] 
[00032772]  **  LK (0, restored from storage)  **
[00032776] dram cs0 size 80000000
[00032778] dram cs1 size 7ffc0000
[00032780] [sprd_timer_init]: enter ....
[00032783] [sprd_timer_init]: done ....
[00032785] booting 1 cpus
[00032787] 
[00032787] welcome to lk
[00032788] 
[00032788] boot args 0x0 0x16a48 0x16a20 0x8
[00032791] INIT: cpu 0, calling hook 0x9f0566c8 (version) at level 0x3ffff, flags 0x1
[00032798] version:
[00032799] 	arch:     arm64
[00032800] 	platform: sharkl3
[00032802] 	target:   sp9863a_1h10
[00032804] 	project:  sp9863a_1h10
[00032807] 	buildid:  2023-03-28-09:41:07_LOCAL
[00032810] 	release:  userdebug
[00032812] initializing heap
[00032813] calling constructors
[00032815] initializing mp
[00032817] initializing threads
[00032819] initializing timers
[00032820] initializing ports
[00032822] creating bootstrap completion thread
[00032825] top of bootstrap2()
[00032827] initializing platform
[00032829] myqin-UARTREG(0)=0
[00032831] initializing target
[00032833] i2c0, freq=100000
[00032835] I2C_CTL 	= 0x82106
[00032836] I2C_ADDR_CFG 	= 0x0
[00032838] I2C_COUNT = 0x0
[00032840] I2C_STATUS = 0x310008
[00032842] ADDR_DVD0 = 0x33004c
[00032844] ADDR_DVD1 = 0x0
[00032845] ADDR_STA0_DVD = 0x68
[00032847] i2c0 is ok!
[00032848] i2c1, freq=100000
[00032850] I2C_CTL 	= 0x82106
[00032851] I2C_ADDR_CFG 	= 0x0
[00032853] I2C_COUNT = 0x0
[00032855] I2C_STATUS = 0x310008
[00032857] ADDR_DVD0 = 0x33004c
[00032859] ADDR_DVD1 = 0x0
[00032860] ADDR_STA0_DVD = 0x68
[00032862] i2c1 is ok!
[00032863] i2c2, freq=100000
[00032865] I2C_CTL 	= 0x82106
[00032866] I2C_ADDR_CFG 	= 0x0
[00032868] I2C_COUNT = 0x0
[00032870] I2C_STATUS = 0x10008
[00032872] ADDR_DVD0 = 0x33004c
[00032874] ADDR_DVD1 = 0x0
[00032875] ADDR_STA0_DVD = 0x68
[00032877] i2c2 is ok!
[00032878] i2c3, freq=100000
[00032880] I2C_CTL 	= 0x82106
[00032881] I2C_ADDR_CFG 	= 0x0
[00032883] I2C_COUNT = 0x0
[00032885] I2C_STATUS = 0x310008
[00032887] ADDR_DVD0 = 0x33004c
[00032889] ADDR_DVD1 = 0x0
[00032890] ADDR_STA0_DVD = 0x68
[00032892] i2c3 is ok!
[00032893] i2c4, freq=100000
[00032895] I2C_CTL 	= 0x82106
[00032897] I2C_ADDR_CFG 	= 0x0
[00032898] I2C_COUNT = 0x0
[00032900] I2C_STATUS = 0x310008
[00032902] ADDR_DVD0 = 0x33004c
[00032904] ADDR_DVD1 = 0x0
[00032905] ADDR_STA0_DVD = 0x68
[00032907] i2c4 is ok!
[00032908] i2c5, freq=100000
[00032910] I2C_CTL 	= 0x82106
[00032912] I2C_ADDR_CFG 	= 0x0
[00032913] I2C_COUNT = 0x0
[00032915] I2C_STATUS = 0x10008
[00032917] ADDR_DVD0 = 0x33004c
[00032919] ADDR_DVD1 = 0x0
[00032920] ADDR_STA0_DVD = 0x68
[00032922] i2c5 is ok!
[00032923] i2c6, freq=100000
[00032925] I2C_CTL 	= 0x82106
[00032927] I2C_ADDR_CFG 	= 0x0
[00032928] I2C_COUNT = 0x0
[00032930] I2C_STATUS = 0x10008
[00032932] ADDR_DVD0 = 0x33004c
[00032934] ADDR_DVD1 = 0x0
[00032935] ADDR_STA0_DVD = 0x68
[00032937] i2c6 is ok!
[00032938] version read val is :2560
[00032943] pmic efuse wait 4
[00032946] pmic efuse wait 2
[00032950] pmic efuse read 19,val=0x757f
[00032952] pmic efuse read bits 304 ++ 16 0x0000757f
[00032956] 
[00032956] get pmic efuse block 19, deta: 0x0000757f
[00032960] 0.1V adc data 0x124
[00032962] 1.0V adc data 0xd14
[00032964] adc efuse small cal 1000,3348,100,292,cal_type:4
[00032968] sprd small scale efuse have cal
[00032971] pmic efuse wait 4
[00032974] pmic efuse wait 2
[00032978] pmic efuse read 18,val=0x7777
[00032981] pmic efuse read bits 288 ++ 16 0x00007777
[00032985] 
[00032985] get pmic efuse block 18, deta: 0x00007777
[00032988] adc efuse big cal 4200,3364,3600,2876,cal_type:3
[00032993] sprd big scale efuse have cal
[00032995] sprd batdet scale efuse have cal
[00032998] ADC_CTL1 value of it 0x1
[00033001] pmic_misc_init
[00033002] smpl_config
[00033003] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2800
[00033008] Not power off from smpl
[00033010] pmic efuse wait 4
[00033013] pmic efuse wait 2
[00033017] pmic efuse read 16,val=0x80e9
[00033020] chip id = 0x7370393836336100, VID = 0x1
[00033023] manufacturel_id is : 0xa00 
[00033026] [gpio keys] 124 init!
[00033028] board_mmc_initialize entry
[00033031] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00033035] sprd_host_init, no aon_clk_reg
[00033038] sprd_sdhci_init: host version: 4
[00033042] sprd host caps: 0x7000060f
[00033044] sprd_host_init return 0
[00033046] mmc_set_bus_width width=1
[00033049] mmc_set_clock clk = 400000HZ
[00033056] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00033063] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00033069] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00033077] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00033083] mmc send app cmd(emmc ignore) error:-19
[00033110] mmc init startup
[00033112] card cid register: 15010052 4836344d 42029991 36637600 
[00033118] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00033123] mmc raw version = 0x40000000
[00033126] mmc spec version = 0x40040000
[00033139] mmc->version = 0x40050100
[00033141] mmc->part_num = 0, erase_grp_size = 0x800
[00033145] RST_n signal is will be permanently enabled
[00033150] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00033156] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00033161] mmc_set_clock clk = 26000000HZ
[00033164] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00033168] mmc_set_bus_width width=8
[00033171] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00033175] mmc_set_clock clk = 195000000HZ
[00033181] dpll locked done
[00033183] dll config 0xc0250d23, dll count 40, tuning length: 60
[00033188] tuning ok: 0
[00033190] tuning ok: 1
[00033191] tuning ok: 2
[00033192] tuning ok: 3
[00033194] tuning ok: 4
[00033195] tuning ok: 5
[00033197] tuning ok: 6
[00033198] tuning ok: 7
[00033199] tuning ok: 8
[00033201] tuning ok: 9
[00033202] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00033210] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00033216] tuning fail: 10
[00033218] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00033225] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0b0b7f
[00033232] tuning fail: 11
[00033234] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00033241] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0c0c7f
[00033248] tuning fail: 12
[00033249] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033257] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0d0d7f
[00033263] tuning fail: 13
[00033265] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033272] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0e0e7f
[00033279] tuning fail: 14
[00033280] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033288] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd0f0f7f
[00033294] tuning fail: 15
[00033296] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033303] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd10107f
[00033310] tuning fail: 16
[00033311] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033319] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd11117f
[00033325] tuning fail: 17
[00033327] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00033334] sprd_sdhci_send_command interrupt status: 0xa8003, CMD21, delay: 0xcd12127f
[00033341] tuning fail: 18
[00033342] tuning ok: 19
[00033344] tuning ok: 20
[00033345] tuning ok: 21
[00033347] tuning ok: 22
[00033348] tuning ok: 23
[00033350] tuning ok: 24
[00033351] tuning ok: 25
[00033353] tuning ok: 26
[00033354] tuning ok: 27
[00033356] tuning ok: 28
[00033357] tuning ok: 29
[00033359] tuning ok: 30
[00033360] tuning ok: 31
[00033362] tuning ok: 32
[00033363] tuning ok: 33
[00033365] tuning ok: 34
[00033366] tuning ok: 35
[00033368] tuning ok: 36
[00033369] tuning ok: 37
[00033371] tuning ok: 38
[00033372] tuning ok: 39
[00033374] tuning ok: 40
[00033375] tuning ok: 41
[00033377] tuning ok: 42
[00033378] tuning ok: 43
[00033380] tuning ok: 44
[00033381] tuning ok: 45
[00033383] tuning ok: 46
[00033384] tuning ok: 47
[00033386] tuning ok: 48
[00033387] tuning ok: 49
[00033389] tuning ok: 50
[00033390] tuning ok: 51
[00033392] tuning ok: 52
[00033393] tuning ok: 53
[00033395] tuning ok: 54
[00033396] tuning ok: 55
[00033398] tuning ok: 56
[00033399] tuning ok: 57
[00033401] tuning ok: 58
[00033402] tuning ok: 59
[00033404] tuning ok: 60
[00033405] recalculate tuning ok: 0
[00033407] recalculate tuning ok: 1
[00033409] recalculate tuning ok: 2
[00033412] recalculate tuning ok: 3
[00033414] recalculate tuning ok: 4
[00033416] recalculate tuning ok: 5
[00033418] recalculate tuning ok: 6
[00033421] recalculate tuning ok: 7
[00033423] recalculate tuning ok: 8
[00033425] recalculate tuning ok: 9
[00033427] recalculate tuning fail: 10
[00033430] recalculate tuning fail: 11
[00033432] recalculate tuning fail: 12
[00033435] recalculate tuning fail: 13
[00033437] recalculate tuning fail: 14
[00033440] recalculate tuning fail: 15
[00033442] recalculate tuning fail: 16
[00033445] recalculate tuning fail: 17
[00033447] recalculate tuning fail: 18
[00033450] recalculate tuning ok: 19
[00033452] recalculate tuning ok: 20
[00033455] recalculate tuning ok: 21
[00033457] recalculate tuning ok: 22
[00033459] recalculate tuning ok: 23
[00033462] recalculate tuning ok: 24
[00033464] recalculate tuning ok: 25
[00033466] recalculate tuning ok: 26
[00033469] recalculate tuning ok: 27
[00033471] recalculate tuning ok: 28
[00033473] recalculate tuning ok: 29
[00033476] recalculate tuning ok: 30
[00033478] recalculate tuning ok: 31
[00033480] recalculate tuning ok: 32
[00033483] recalculate tuning ok: 33
[00033485] recalculate tuning ok: 34
[00033487] recalculate tuning ok: 35
[00033490] recalculate tuning ok: 36
[00033492] recalculate tuning ok: 37
[00033494] recalculate tuning ok: 38
[00033497] recalculate tuning ok: 39
[00033499] good tuning phase range 19 ~ 9
[00033502] the best tuning step range 19-9(the length is 31)
[00033506] the best step 34, phase 0xd9, delay value 0xcdd9d97f
[00033511] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00033518] test_part_dos:This part type is not DOS_MBR!
[00033522] mmc startup end
[00033524] mmc init: 0, cost time 477
[00033527] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00033532] sprd_sdhci: 0 (eMMC)
[00033534] aw32207init
[00033535] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00033539] pmic efuse wait 4
[00033543] pmic efuse wait 2
[00033547] pmic efuse read 18,val=0x7777
[00033549] pmic efuse read bits 288 ++ 16 0x00007777
[00033553] 
[00033553] get pmic efuse block 18, deta: 0x00007777
[00033557] sprd_chg: adc_para from efuse is 0xd241068 0xb3c0e10 
[00033562] pmic efuse wait 4
[00033565] pmic efuse wait 2
[00033569] pmic efuse read 3,val=0x8121
[00033571] pmic efuse read bits 48 ++ 9 0x00000121
[00033575] 
[00033575] sprd_chg: fgu_cal_get 4.2 data data: 0x121
[00033579] sprd_chg: fgu_data: 0xb54
[00033581] sprd_chg: sprdfgu: one point
[00033584] sprd_chg: 4200mv=2900, 3600mv=0
[00033587] sprd_chg: fgu_cal.vol_1000mv_adc=690, vol_offset=0
[00033738] i2c4, freq=100000
[00033741] sprd_chg: aw32207_read_reg reg  = 6 value =64/40
[00033746] i2c4, freq=100000
[00033748] i2c4, freq=100000
[00033752] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00033756] sprd_chg: sprdchg_aw32207_ic_init this is aw32207
[00033761] i2c4, freq=100000
[00033764] sprd_chg: aw32207_read_reg reg  = 6 value =79/4f
[00033768] i2c4, freq=100000
[00033771] sprd_chg: aw32207_sw_reset
[00033773] i2c4, freq=100000
[00033777] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00033781] i2c4, freq=100000
[00033844] i2c4, freq=100000
[00033847] sprd_chg: aw32207_read_reg reg  = 2 value =10/a
[00033852] i2c4, freq=100000
[00033854] i2c4, freq=100000
[00033858] sprd_chg: aw32207_read_reg reg  = 5 value =36/24
[00033862] i2c4, freq=100000
[00033865] i2c4, freq=100000
[00033868] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00033873] i2c4, freq=100000
[00033875] sprd_chg: sprdchg_aw32207_ic_init
[00033878] sprd_chg: eica status bat1
[00033881] sprd_chg: sprdbat_init keep_charge = 0
[00033884] i2c4, freq=100000
[00033888] sprd_chg: aw32207_read_reg reg  = 3 value =67/43
[00033892] i2c4, freq=100000
[00033896] sprd_chg: aw32207_read_reg reg  = 4 value =1/1
[00033900] i2c4, freq=100000
[00033902] sprd_chg: sprdchg_aw32207_stop_charging
[00033906] i2c4, freq=100000
[00033909] sprd_chg: aw32207_read_reg reg  = 1 value =48/30
[00033914] i2c4, freq=100000
[00033916] CHG init OK!
[00033917] init log type 0
[00033919] read size(0x200 + 0x100000) overflow the total partition size(0x0)
[00033925] read hdr error
[00033926] initializing apps
[00033928] Press q to LK shell cmd in 0 seconds!
[00033932] get info from misc partition failed!
[00033935] Android boot failed, error -1.
[00033941] power_button_pressed status 1
[00033943] read size(0x20 + 0x2680) overflow the total partition size(0x0)
[00033949] get enter_download flag fail
[00033951] ==== in  [get_mode_from_chipram_env] 
[00033955] get boot mode in boot func array[0]
[00033958] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00033962] download mode!
[00033963] Watch Dog Trace: WDG_TimerStop
[00033966] do_download:enter
[00033968] get info from misc partition failed!
[00033971] Android boot failed, error -1.
[00034110] now time sec 0
[00034111] now alarm sec 0
[00034113] download buffer base 0x82000000, size 10000000
[00034117] alter buffer1 base 0x92000000, size 200000
[00034121] alter buffer2 base 0x92200000, size 200000
[00034124] [do_download] pre init is ok
[00034127] [do_download] register cmd process function is ok
[00034131] [emmc_2ndhand_detect]...............
[00034135] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00034141] is_wr_mmc_rpmb_key rpmb key not write
[00034144] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00034150] The Emmc rpmb partition was used
[00034153] read size(0xc + 0x2700) overflow the total partition size(0x0)
[00034158] read miscdata timestamp error.
[00034161] dl_cmd_handler:enter
[00034165] packet->body.size:0x4c, image size:0x100000
[00034169] partition_name=miscdata,size=0x100000
[00034172] partition miscdata image type is RAW, normal partition!
[00034177] operate result =1,send ack
[00034180] read error!
[00034181] operate result =13,send ack
[00034184] read error!
[00034185] operate result =13,send ack
*=`JqA