[00006236] 
[00006236]  **  LK (0, restored from storage)  **
[00006240] dram cs0 size 80000000
[00006242] dram cs1 size 7ffc0000
[00006244] [sprd_timer_init]: enter ....
[00006247] [sprd_timer_init]: done ....
[00006250] booting 1 cpus
[00006251] 
[00006251] welcome to lk
[00006252] 
[00006253] boot args 0x0 0x16a48 0x16a20 0x8
[00006256] INIT: cpu 0, calling hook 0x9f0563a0 (version) at level 0x3ffff, flags 0x1
[00006262] version:
[00006263] 	arch:     arm64
[00006265] 	platform: sharkl3
[00006266] 	target:   sp9863a_1h10
[00006268] 	project:  sp9863a_1h10
[00006271] 	buildid:  2023-04-10-02:45:25_LOCAL
[00006274] 	release:  userdebug
[00006276] initializing heap
[00006277] calling constructors
[00006279] initializing mp
[00006281] initializing threads
[00006283] initializing timers
[00006285] initializing ports
[00006286] creating bootstrap completion thread
[00006290] top of bootstrap2()
[00006291] initializing platform
[00006293] myqin-UARTREG(0)=0
[00006295] initializing target
[00006297] i2c0, freq=100000
[00006299] I2C_CTL 	= 0x82106
[00006301] I2C_ADDR_CFG 	= 0x0
[00006302] I2C_COUNT = 0x0
[00006304] I2C_STATUS = 0x310008
[00006306] ADDR_DVD0 = 0x33004c
[00006308] ADDR_DVD1 = 0x0
[00006309] ADDR_STA0_DVD = 0x68
[00006311] i2c0 is ok!
[00006312] i2c1, freq=100000
[00006314] I2C_CTL 	= 0x82106
[00006316] I2C_ADDR_CFG 	= 0x0
[00006317] I2C_COUNT = 0x0
[00006319] I2C_STATUS = 0x310008
[00006321] ADDR_DVD0 = 0x33004c
[00006323] ADDR_DVD1 = 0x0
[00006324] ADDR_STA0_DVD = 0x68
[00006326] i2c1 is ok!
[00006327] i2c2, freq=100000
[00006329] I2C_CTL 	= 0x82106
[00006331] I2C_ADDR_CFG 	= 0x0
[00006332] I2C_COUNT = 0x0
[00006334] I2C_STATUS = 0x10008
[00006336] ADDR_DVD0 = 0x33004c
[00006338] ADDR_DVD1 = 0x0
[00006339] ADDR_STA0_DVD = 0x68
[00006341] i2c2 is ok!
[00006342] i2c3, freq=100000
[00006344] I2C_CTL 	= 0x82106
[00006346] I2C_ADDR_CFG 	= 0x0
[00006347] I2C_COUNT = 0x0
[00006349] I2C_STATUS = 0x310008
[00006351] ADDR_DVD0 = 0x33004c
[00006353] ADDR_DVD1 = 0x0
[00006354] ADDR_STA0_DVD = 0x68
[00006356] i2c3 is ok!
[00006357] i2c4, freq=100000
[00006359] I2C_CTL 	= 0x82106
[00006361] I2C_ADDR_CFG 	= 0x0
[00006362] I2C_COUNT = 0x0
[00006364] I2C_STATUS = 0x310008
[00006366] ADDR_DVD0 = 0x33004c
[00006368] ADDR_DVD1 = 0x0
[00006369] ADDR_STA0_DVD = 0x68
[00006371] i2c4 is ok!
[00006372] i2c5, freq=100000
[00006374] I2C_CTL 	= 0x82106
[00006376] I2C_ADDR_CFG 	= 0x0
[00006377] I2C_COUNT = 0x0
[00006379] I2C_STATUS = 0x10008
[00006381] ADDR_DVD0 = 0x33004c
[00006383] ADDR_DVD1 = 0x0
[00006384] ADDR_STA0_DVD = 0x68
[00006386] i2c5 is ok!
[00006387] i2c6, freq=100000
[00006389] I2C_CTL 	= 0x82106
[00006391] I2C_ADDR_CFG 	= 0x0
[00006392] I2C_COUNT = 0x0
[00006394] I2C_STATUS = 0x10008
[00006396] ADDR_DVD0 = 0x33004c
[00006398] ADDR_DVD1 = 0x0
[00006399] ADDR_STA0_DVD = 0x68
[00006401] i2c6 is ok!
[00006402] version read val is :2048
[00006405] pmic efuse wait 4
[00006408] pmic efuse wait 2
[00006412] pmic efuse read 19,val=0x7772
[00006415] pmic efuse read bits 304 ++ 16 0x00007772
[00006418] 
[00006418] get pmic efuse block 19, deta: 0x00007772
[00006422] 0.1V adc data 0x12c
[00006424] 1.0V adc data 0xce0
[00006426] adc efuse small cal 1000,3296,100,300,cal_type:4
[00006430] sprd small scale efuse have cal
[00006433] pmic efuse wait 4
[00006437] pmic efuse wait 2
[00006440] pmic efuse read 18,val=0x6f6d
[00006443] pmic efuse read bits 288 ++ 16 0x00006f6d
[00006447] 
[00006447] get pmic efuse block 18, deta: 0x00006f6d
[00006450] adc efuse big cal 4200,3324,3600,2844,cal_type:3
[00006455] sprd big scale efuse have cal
[00006457] sprd batdet scale efuse have cal
[00006460] ADC_CTL1 value of it 0x1
[00006463] pmic_misc_init
[00006464] smpl_config
[00006465] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2800
[00006470] smpl power on flag: 0
[00006472] pmic efuse wait 4
[00006475] pmic efuse wait 2
[00006479] pmic efuse read 16,val=0x80f9
[00006482] chip id = 0x7370393836336100, VID = 0x1
[00006485] manufacturel_id is : 0x800 
[00006488] [gpio keys] 124 init!
[00006490] board_mmc_initialize entry
[00006493] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00006497] sprd_host_init, no aon_clk_reg
[00006500] sprd_sdhci_init: host version: 4
[00006504] sprd host caps: 0x7000060f
[00006506] sprd_host_init return 0
[00006508] mmc_set_bus_width width=1
[00006511] mmc_set_clock clk = 400000HZ
[00006518] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006525] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00006531] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006538] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00006545] mmc send app cmd(emmc ignore) error:-19
[00006799] mmc init startup
[00006801] card cid register: 15010052 4331344d 4207f973 c4749300 
[00006807] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00006812] mmc raw version = 0x40000000
[00006814] mmc spec version = 0x40040000
[00006828] mmc->version = 0x40050100
[00006830] mmc->part_num = 0, erase_grp_size = 0x800
[00006834] RST_n signal(0x1) has already be permanently enabled
[00006838] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00006844] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00006849] mmc_set_clock clk = 26000000HZ
[00006852] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00006856] mmc_set_bus_width width=8
[00006859] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00006863] mmc_set_clock clk = 195000000HZ
[00006869] dpll locked done
[00006871] dll config 0xc0250d23, dll count 38, tuning length: 57
[00006876] tuning ok: 0
[00006877] tuning ok: 1
[00006878] tuning ok: 2
[00006880] tuning ok: 3
[00006881] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00006888] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd04047f
[00006895] tuning fail: 4
[00006896] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00006904] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd05057f
[00006910] tuning fail: 5
[00006912] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006919] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd06067f
[00006926] tuning fail: 6
[00006927] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006934] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd07077f
[00006941] tuning fail: 7
[00006943] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006950] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd08087f
[00006957] tuning fail: 8
[00006958] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00006965] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd09097f
[00006972] tuning fail: 9
[00006973] tuning ok: 10
[00006975] tuning ok: 11
[00006976] tuning ok: 12
[00006977] tuning ok: 13
[00006979] tuning ok: 14
[00006980] tuning ok: 15
[00006981] tuning ok: 16
[00006983] tuning ok: 17
[00006984] tuning ok: 18
[00006985] tuning ok: 19
[00006986] tuning ok: 20
[00006988] tuning ok: 21
[00006989] tuning ok: 22
[00006990] tuning ok: 23
[00006992] tuning ok: 24
[00006993] tuning ok: 25
[00006994] tuning ok: 26
[00006995] tuning ok: 27
[00006997] tuning ok: 28
[00006998] tuning ok: 29
[00006999] tuning ok: 30
[00007001] tuning ok: 31
[00007002] tuning ok: 32
[00007003] tuning ok: 33
[00007005] tuning ok: 34
[00007006] tuning ok: 35
[00007007] tuning ok: 36
[00007008] tuning ok: 37
[00007010] tuning ok: 38
[00007011] tuning ok: 39
[00007012] tuning ok: 40
[00007014] tuning ok: 41
[00007015] tuning ok: 42
[00007016] tuning ok: 43
[00007018] tuning ok: 44
[00007019] tuning ok: 45
[00007020] tuning ok: 46
[00007021] tuning ok: 47
[00007023] tuning ok: 48
[00007024] tuning ok: 49
[00007025] tuning ok: 50
[00007027] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007034] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd33337f
[00007041] tuning fail: 51
[00007042] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007050] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd34347f
[00007056] tuning fail: 52
[00007058] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007065] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd35357f
[00007072] tuning fail: 53
[00007073] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007081] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd36367f
[00007087] tuning fail: 54
[00007089] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007096] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd37377f
[00007103] tuning fail: 55
[00007104] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007112] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd38387f
[00007118] tuning fail: 56
[00007120] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007127] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd39397f
[00007134] tuning fail: 57
[00007135] recalculate tuning ok: 0
[00007138] recalculate tuning ok: 1
[00007140] recalculate tuning ok: 2
[00007142] recalculate tuning ok: 3
[00007144] recalculate tuning fail: 4
[00007147] recalculate tuning fail: 5
[00007149] recalculate tuning fail: 6
[00007152] recalculate tuning fail: 7
[00007154] recalculate tuning fail: 8
[00007157] recalculate tuning fail: 9
[00007159] recalculate tuning ok: 10
[00007161] recalculate tuning ok: 11
[00007164] recalculate tuning ok: 12
[00007166] recalculate tuning fail: 13
[00007169] recalculate tuning fail: 14
[00007171] recalculate tuning fail: 15
[00007174] recalculate tuning fail: 16
[00007176] recalculate tuning fail: 17
[00007179] recalculate tuning fail: 18
[00007181] recalculate tuning ok: 19
[00007183] recalculate tuning ok: 20
[00007186] recalculate tuning ok: 21
[00007188] recalculate tuning ok: 22
[00007190] recalculate tuning ok: 23
[00007193] recalculate tuning ok: 24
[00007195] recalculate tuning ok: 25
[00007197] recalculate tuning ok: 26
[00007200] recalculate tuning ok: 27
[00007202] recalculate tuning ok: 28
[00007204] recalculate tuning ok: 29
[00007207] recalculate tuning ok: 30
[00007209] recalculate tuning ok: 31
[00007211] recalculate tuning ok: 32
[00007214] recalculate tuning ok: 33
[00007216] recalculate tuning ok: 34
[00007218] recalculate tuning ok: 35
[00007221] recalculate tuning ok: 36
[00007223] recalculate tuning ok: 37
[00007225] good tuning phase range 0 ~ 3
[00007228] good tuning phase range 10 ~ 12
[00007231] good tuning phase range 19 ~ 37
[00007234] the best tuning step range 19-37(the length is 19)
[00007238] the best step 28, phase 0xbc, delay value 0xcdbcbc7f
[00007243] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007250] mmc startup end
[00007251] mmc init: 0, cost time 743
[00007254] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007259] sprd_sdhci: 0 (eMMC)
[00007261] i2c4, freq=100000
[00007265] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007269] sprd_chg: fan54015_get_vendor_id = 0x2
[00007272] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007277] pmic efuse wait 4
[00007280] pmic efuse wait 2
[00007284] pmic efuse read 18,val=0x6f6d
[00007287] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007290] 
[00007291] get pmic efuse block 18, deta: 0x00006f6d
[00007294] sprd_chg: adc_para from efuse is 0xcfc1068 0xb1c0e10 
[00007737] pmic efuse wait 4
[00007741] pmic efuse wait 2
[00007744] pmic efuse read 3,val=0x60df
[00007747] pmic efuse read bits 48 ++ 9 0x000000df
[00007750] 
[00007751] sprd_chg: fgu_cal_get 4.2 data data: 0xdf
[00007754] sprd_chg: fgu_data: 0xb12
[00007757] sprd_chg: sprdfgu: one point
[00007759] sprd_chg: 4200mv=2834, 3600mv=0
[00007762] sprd_chg: fgu_cal.vol_1000mv_adc=675, vol_offset=0
[00007767] i2c4, freq=100000
[00007770] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007775] i2c4, freq=100000
[00007778] sprd_chg: fan54015_read_reg reg  = 6 value =64/40
[00007783] i2c4, freq=100000
[00007785] i2c4, freq=100000
[00007789] sprd_chg: fan54015_read_reg reg  = 6 value =73/49
[00007793] i2c4, freq=100000
[00007796] sprd_chg: fan54015_sw_reset
[00007798] i2c4, freq=100000
[00007802] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00007806] i2c4, freq=100000
[00007809] i2c4, freq=100000
[00007812] sprd_chg: fan54015_read_reg reg  = 1 value =48/30
[00007817] i2c4, freq=100000
[00007819] i2c4, freq=100000
[00007823] sprd_chg: fan54015_read_reg reg  = 1 value =0/0
[00007827] i2c4, freq=100000
[00007829] i2c4, freq=100000
[00007833] sprd_chg: fan54015_read_reg reg  = 2 value =10/a
[00007837] i2c4, freq=100000
[00007840] i2c4, freq=100000
[00007844] sprd_chg: fan54015_read_reg reg  = 5 value =36/24
[00007848] i2c4, freq=100000
[00007851] sprd_chg: sprdchg_fan54015_ic_init
[00007854] sprd_chg: eica status bat1
[00007856] sprd_chg: sprdbat_init keep_charge = 0
[00007860] i2c4, freq=100000
[00007863] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007867] i2c4, freq=100000
[00007871] sprd_chg: fan54015_read_reg reg  = 1 value =192/c0
[00007876] i2c4, freq=100000
[00007878] i2c4, freq=100000
[00007882] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00007886] i2c4, freq=100000
[00007889] sprd_chg: sprdchg_fan54015_stop_charging
[00007892] CHG init OK!
[00007893] init log type 0
[00007895] panic type boot count 2
[00007898] init log type 1
[00007899] start type init log success on 16 times
[00007903] init log type 2
[00007905] fastboot type boot count 2
[00007907] init log type 3
[00007909] download type boot count 2
[00007911] initializing apps
[00007913] Press q to LK shell cmd in 0 seconds!
[00007917] abc offset: 2048, size: 32
[00007919] ANDROID: Loaded ABC control from misc, size: 32
[00007924] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00007932] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00007938] ANDROID: Booting slot_a
[00007943] power_button_pressed status 1
[00007946] get enter_download flag :
[00007948] ==== in  [get_mode_from_chipram_env] 
[00007952] get boot mode in boot func array[0]
[00007955] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00007959] download mode!
[00007960] Watch Dog Trace: WDG_TimerStop
[00007968] do_download:enter
[00007969] abc offset: 2048, size: 32
[00007972] ANDROID: Loaded ABC control from misc, size: 32
[00007976] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00007985] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00007991] 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
[00008195] packet->body.size:0x4c, image size:0x100000
[00008199] partition_name=miscdata,size=0x100000
[00008202] partition miscdata image type is RAW, normal partition!
[00008207] operate result =1,send ack
[00008292] packet->body.size:0x4c, image size:0xa00000
[00008296] partition_name=prodnv,size=0xa00000
[00008299] partition prodnv image type is 0,partitionpurpose:0
[00008304] bad prodnv image magic(0x0)
[00008306] operate result =11,send ack
