[00006802] 
[00006802]  **  LK (0, restored from storage)  **
[00006806] dram cs0 size 80000000
[00006808] dram cs1 size 7ffc0000
[00006810] [sprd_timer_init]: enter ....
[00006813] [sprd_timer_init]: done ....
[00006816] booting 1 cpus
[00006817] 
[00006817] welcome to lk
[00006819] 
[00006819] boot args 0x0 0x16a48 0x16a20 0x8
[00006822] INIT: cpu 0, calling hook 0x9f0563a0 (version) at level 0x3ffff, flags 0x1
[00006828] version:
[00006829] 	arch:     arm64
[00006831] 	platform: sharkl3
[00006832] 	target:   sp9863a_1h10
[00006835] 	project:  sp9863a_1h10
[00006837] 	buildid:  2023-04-10-02:45:25_LOCAL
[00006840] 	release:  userdebug
[00006842] initializing heap
[00006844] calling constructors
[00006846] initializing mp
[00006847] initializing threads
[00006849] initializing timers
[00006851] initializing ports
[00006852] creating bootstrap completion thread
[00006856] top of bootstrap2()
[00006858] initializing platform
[00006860] myqin-UARTREG(0)=0
[00006861] initializing target
[00006863] i2c0, freq=100000
[00006865] I2C_CTL 	= 0x82106
[00006867] I2C_ADDR_CFG 	= 0x0
[00006868] I2C_COUNT = 0x0
[00006870] I2C_STATUS = 0x310008
[00006872] ADDR_DVD0 = 0x33004c
[00006874] ADDR_DVD1 = 0x0
[00006875] ADDR_STA0_DVD = 0x68
[00006877] i2c0 is ok!
[00006878] i2c1, freq=100000
[00006880] I2C_CTL 	= 0x82106
[00006882] I2C_ADDR_CFG 	= 0x0
[00006884] I2C_COUNT = 0x0
[00006885] I2C_STATUS = 0x310008
[00006887] ADDR_DVD0 = 0x33004c
[00006889] ADDR_DVD1 = 0x0
[00006890] ADDR_STA0_DVD = 0x68
[00006892] i2c1 is ok!
[00006893] i2c2, freq=100000
[00006895] I2C_CTL 	= 0x82106
[00006897] I2C_ADDR_CFG 	= 0x0
[00006899] I2C_COUNT = 0x0
[00006900] I2C_STATUS = 0x10008
[00006902] ADDR_DVD0 = 0x33004c
[00006904] ADDR_DVD1 = 0x0
[00006905] ADDR_STA0_DVD = 0x68
[00006907] i2c2 is ok!
[00006908] i2c3, freq=100000
[00006910] I2C_CTL 	= 0x82106
[00006912] I2C_ADDR_CFG 	= 0x0
[00006914] I2C_COUNT = 0x0
[00006915] I2C_STATUS = 0x310008
[00006917] ADDR_DVD0 = 0x33004c
[00006919] ADDR_DVD1 = 0x0
[00006920] ADDR_STA0_DVD = 0x68
[00006922] i2c3 is ok!
[00006923] i2c4, freq=100000
[00006925] I2C_CTL 	= 0x82106
[00006927] I2C_ADDR_CFG 	= 0x0
[00006929] I2C_COUNT = 0x0
[00006930] I2C_STATUS = 0x310008
[00006932] ADDR_DVD0 = 0x33004c
[00006934] ADDR_DVD1 = 0x0
[00006935] ADDR_STA0_DVD = 0x68
[00006937] i2c4 is ok!
[00006938] i2c5, freq=100000
[00006940] I2C_CTL 	= 0x82106
[00006942] I2C_ADDR_CFG 	= 0x0
[00006944] I2C_COUNT = 0x0
[00006945] I2C_STATUS = 0x10008
[00006947] ADDR_DVD0 = 0x33004c
[00006949] ADDR_DVD1 = 0x0
[00006950] ADDR_STA0_DVD = 0x68
[00006952] i2c5 is ok!
[00006953] i2c6, freq=100000
[00006955] I2C_CTL 	= 0x82106
[00006957] I2C_ADDR_CFG 	= 0x0
[00006959] I2C_COUNT = 0x0
[00006960] I2C_STATUS = 0x10008
[00006962] ADDR_DVD0 = 0x33004c
[00006964] ADDR_DVD1 = 0x0
[00006965] ADDR_STA0_DVD = 0x68
[00006967] i2c6 is ok!
[00006968] version read val is :2048
[00006971] pmic efuse wait 4
[00006974] pmic efuse wait 2
[00006978] pmic efuse read 19,val=0x7772
[00006981] pmic efuse read bits 304 ++ 16 0x00007772
[00006984] 
[00006985] get pmic efuse block 19, deta: 0x00007772
[00006988] 0.1V adc data 0x12c
[00006990] 1.0V adc data 0xce0
[00006992] adc efuse small cal 1000,3296,100,300,cal_type:4
[00006996] sprd small scale efuse have cal
[00006999] pmic efuse wait 4
[00007003] pmic efuse wait 2
[00007006] pmic efuse read 18,val=0x6f6d
[00007009] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007013] 
[00007013] get pmic efuse block 18, deta: 0x00006f6d
[00007017] adc efuse big cal 4200,3324,3600,2844,cal_type:3
[00007021] sprd big scale efuse have cal
[00007024] sprd batdet scale efuse have cal
[00007027] ADC_CTL1 value of it 0x1
[00007029] pmic_misc_init
[00007030] smpl_config
[00007031] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2800
[00007036] smpl power on flag: 0
[00007038] pmic efuse wait 4
[00007041] pmic efuse wait 2
[00007045] pmic efuse read 16,val=0x80f9
[00007048] chip id = 0x7370393836336100, VID = 0x1
[00007051] manufacturel_id is : 0x800 
[00007054] [gpio keys] 124 init!
[00007056] board_mmc_initialize entry
[00007059] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00007063] sprd_host_init, no aon_clk_reg
[00007066] sprd_sdhci_init: host version: 4
[00007070] sprd host caps: 0x7000060f
[00007072] sprd_host_init return 0
[00007075] mmc_set_bus_width width=1
[00007077] mmc_set_clock clk = 400000HZ
[00007084] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00007091] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00007097] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00007105] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00007111] mmc send app cmd(emmc ignore) error:-19
[00007365] mmc init startup
[00007367] card cid register: 15010052 4331344d 4207f973 c4749300 
[00007373] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00007378] mmc raw version = 0x40000000
[00007380] mmc spec version = 0x40040000
[00007394] mmc->version = 0x40050100
[00007396] mmc->part_num = 0, erase_grp_size = 0x800
[00007400] RST_n signal(0x1) has already be permanently enabled
[00007405] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007411] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00007415] mmc_set_clock clk = 26000000HZ
[00007418] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00007422] mmc_set_bus_width width=8
[00007425] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00007429] mmc_set_clock clk = 195000000HZ
[00007435] dpll locked done
[00007437] dll config 0xc0250d23, dll count 38, tuning length: 57
[00007442] tuning ok: 0
[00007443] tuning ok: 1
[00007444] tuning ok: 2
[00007446] tuning ok: 3
[00007447] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007454] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd04047f
[00007461] tuning fail: 4
[00007462] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007470] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd05057f
[00007477] tuning fail: 5
[00007478] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007485] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd06067f
[00007492] tuning fail: 6
[00007493] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007501] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd07077f
[00007507] tuning fail: 7
[00007509] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007516] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd08087f
[00007523] tuning fail: 8
[00007524] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007531] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd09097f
[00007538] tuning fail: 9
[00007540] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007547] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00007554] tuning fail: 10
[00007555] tuning ok: 11
[00007556] tuning ok: 12
[00007558] tuning ok: 13
[00007559] tuning ok: 14
[00007560] tuning ok: 15
[00007562] tuning ok: 16
[00007563] tuning ok: 17
[00007564] tuning ok: 18
[00007566] tuning ok: 19
[00007567] tuning ok: 20
[00007568] tuning ok: 21
[00007569] tuning ok: 22
[00007571] tuning ok: 23
[00007572] tuning ok: 24
[00007573] tuning ok: 25
[00007575] tuning ok: 26
[00007576] tuning ok: 27
[00007577] tuning ok: 28
[00007579] tuning ok: 29
[00007580] tuning ok: 30
[00007581] tuning ok: 31
[00007582] tuning ok: 32
[00007584] tuning ok: 33
[00007585] tuning ok: 34
[00007586] tuning ok: 35
[00007588] tuning ok: 36
[00007589] tuning ok: 37
[00007590] tuning ok: 38
[00007592] tuning ok: 39
[00007593] tuning ok: 40
[00007594] tuning ok: 41
[00007595] tuning ok: 42
[00007597] tuning ok: 43
[00007598] tuning ok: 44
[00007599] tuning ok: 45
[00007601] tuning ok: 46
[00007602] tuning ok: 47
[00007603] tuning ok: 48
[00007604] tuning ok: 49
[00007606] tuning ok: 50
[00007607] tuning ok: 51
[00007608] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007616] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd34347f
[00007623] tuning fail: 52
[00007624] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007631] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd35357f
[00007638] tuning fail: 53
[00007640] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007647] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd36367f
[00007654] tuning fail: 54
[00007655] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007662] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd37377f
[00007669] tuning fail: 55
[00007671] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007678] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd38387f
[00007685] tuning fail: 56
[00007686] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007693] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd39397f
[00007700] tuning fail: 57
[00007702] recalculate tuning ok: 0
[00007704] recalculate tuning ok: 1
[00007706] recalculate tuning ok: 2
[00007708] recalculate tuning ok: 3
[00007711] recalculate tuning fail: 4
[00007713] recalculate tuning fail: 5
[00007715] recalculate tuning fail: 6
[00007718] recalculate tuning fail: 7
[00007720] recalculate tuning fail: 8
[00007723] recalculate tuning fail: 9
[00007725] recalculate tuning fail: 10
[00007728] recalculate tuning ok: 11
[00007730] recalculate tuning ok: 12
[00007732] recalculate tuning ok: 13
[00007735] recalculate tuning fail: 14
[00007737] recalculate tuning fail: 15
[00007740] recalculate tuning fail: 16
[00007742] recalculate tuning fail: 17
[00007745] recalculate tuning fail: 18
[00007747] recalculate tuning ok: 19
[00007750] recalculate tuning ok: 20
[00007752] recalculate tuning ok: 21
[00007754] recalculate tuning ok: 22
[00007757] recalculate tuning ok: 23
[00007759] recalculate tuning ok: 24
[00007761] recalculate tuning ok: 25
[00007764] recalculate tuning ok: 26
[00007766] recalculate tuning ok: 27
[00007768] recalculate tuning ok: 28
[00007771] recalculate tuning ok: 29
[00007773] recalculate tuning ok: 30
[00007775] recalculate tuning ok: 31
[00007778] recalculate tuning ok: 32
[00007780] recalculate tuning ok: 33
[00007782] recalculate tuning ok: 34
[00007785] recalculate tuning ok: 35
[00007787] recalculate tuning ok: 36
[00007789] recalculate tuning ok: 37
[00007792] good tuning phase range 0 ~ 3
[00007794] good tuning phase range 11 ~ 13
[00007797] good tuning phase range 19 ~ 37
[00007800] the best tuning step range 19-37(the length is 19)
[00007805] the best step 28, phase 0xbc, delay value 0xcdbcbc7f
[00007809] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007816] mmc startup end
[00007817] mmc init: 0, cost time 743
[00007820] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007825] sprd_sdhci: 0 (eMMC)
[00007827] i2c4, freq=100000
[00007831] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007835] sprd_chg: fan54015_get_vendor_id = 0x2
[00007839] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007843] pmic efuse wait 4
[00007846] pmic efuse wait 2
[00007850] pmic efuse read 18,val=0x6f6d
[00007853] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007857] 
[00007857] get pmic efuse block 18, deta: 0x00006f6d
[00007860] sprd_chg: adc_para from efuse is 0xcfc1068 0xb1c0e10 
[00008237] pmic efuse wait 4
[00008240] pmic efuse wait 2
[00008244] pmic efuse read 3,val=0x60df
[00008247] pmic efuse read bits 48 ++ 9 0x000000df
[00008250] 
[00008250] sprd_chg: fgu_cal_get 4.2 data data: 0xdf
[00008254] sprd_chg: fgu_data: 0xb12
[00008256] sprd_chg: sprdfgu: one point
[00008259] sprd_chg: 4200mv=2834, 3600mv=0
[00008262] sprd_chg: fgu_cal.vol_1000mv_adc=675, vol_offset=0
[00008266] i2c4, freq=100000
[00008270] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00008274] i2c4, freq=100000
[00008278] sprd_chg: fan54015_read_reg reg  = 6 value =64/40
[00008282] i2c4, freq=100000
[00008285] i2c4, freq=100000
[00008289] sprd_chg: fan54015_read_reg reg  = 6 value =73/49
[00008293] i2c4, freq=100000
[00008295] sprd_chg: fan54015_sw_reset
[00008298] i2c4, freq=100000
[00008302] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00008306] i2c4, freq=100000
[00008308] i2c4, freq=100000
[00008312] sprd_chg: fan54015_read_reg reg  = 1 value =48/30
[00008316] i2c4, freq=100000
[00008319] i2c4, freq=100000
[00008323] sprd_chg: fan54015_read_reg reg  = 1 value =0/0
[00008327] i2c4, freq=100000
[00008329] i2c4, freq=100000
[00008333] sprd_chg: fan54015_read_reg reg  = 2 value =10/a
[00008337] i2c4, freq=100000
[00008340] i2c4, freq=100000
[00008343] sprd_chg: fan54015_read_reg reg  = 5 value =36/24
[00008348] i2c4, freq=100000
[00008350] sprd_chg: sprdchg_fan54015_ic_init
[00008353] sprd_chg: eica status bat1
[00008356] sprd_chg: sprdbat_init keep_charge = 0
[00008359] i2c4, freq=100000
[00008363] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00008367] i2c4, freq=100000
[00008371] sprd_chg: fan54015_read_reg reg  = 1 value =192/c0
[00008375] i2c4, freq=100000
[00008378] i2c4, freq=100000
[00008382] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00008386] i2c4, freq=100000
[00008388] sprd_chg: sprdchg_fan54015_stop_charging
[00008392] CHG init OK!
[00008393] init log type 0
[00008395] panic type boot count 2
[00008397] init log type 1
[00008399] start type init log success on 16 times
[00008403] init log type 2
[00008404] fastboot type boot count 2
[00008407] init log type 3
[00008409] download type boot count 3
[00008411] initializing apps
[00008413] Press q to LK shell cmd in 0 seconds!
[00008417] abc offset: 2048, size: 32
[00008419] ANDROID: Loaded ABC control from misc, size: 32
[00008424] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00008432] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00008438] ANDROID: Booting slot_a
[00008443] power_button_pressed status 1
[00008446] get enter_download flag :
[00008448] ==== in  [get_mode_from_chipram_env] 
[00008452] get boot mode in boot func array[0]
[00008455] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00008459] download mode!
[00008460] Watch Dog Trace: WDG_TimerStop
[00008471] do_download:enter
[00008472] abc offset: 2048, size: 32
[00008475] ANDROID: Loaded ABC control from misc, size: 32
[00008479] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00008488] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00008494] ANDROID: Booting slot_a
[00008641] now time sec 0
[00008642] now alarm sec 0
[00008644] download buffer base 0x82000000, size 10000000
[00008648] alter buffer1 base 0x92000000, size 200000
[00008652] alter buffer2 base 0x92200000, size 200000
[00008656] [do_download] pre init is ok
[00008658] [do_download] register cmd process function is ok
[00008663] [emmc_2ndhand_detect]...............
[00008666] Find gpt header from user partition,emmc was used
[00008671] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00008676] is_wr_mmc_rpmb_key rpmb key has been written
[00008680] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00008686] The Emmc rpmb partition was used
[00008689] read timestamp magic(0) incorrect.
[00008692] dl_cmd_handler:enter
[00008695] packet->body.size:0x4c, image size:0x100000
[00008699] partition_name=miscdata,size=0x100000
[00008702] partition miscdata image type is RAW, normal partition!
[00008707] operate result =1,send ack
[00008792] packet->body.size:0x4c, image size:0xa00000
[00008796] partition_name=prodnv,size=0xa00000
[00008799] partition prodnv image type is 0,partitionpurpose:0
[00008804] bad prodnv image magic(0x0)
[00008806] operate result =11,send ack
