[00006697] 
[00006698]  **  LK (0, restored from storage)  **
[00006701] dram cs0 size 80000000
[00006703] dram cs1 size 7ffc0000
[00006705] [sprd_timer_init]: enter ....
[00006708] [sprd_timer_init]: done ....
[00006711] booting 1 cpus
[00006712] 
[00006712] welcome to lk
[00006714] 
[00006714] boot args 0x0 0x16a48 0x16a20 0x8
[00006717] INIT: cpu 0, calling hook 0x9f0563a0 (version) at level 0x3ffff, flags 0x1
[00006723] version:
[00006724] 	arch:     arm64
[00006726] 	platform: sharkl3
[00006728] 	target:   sp9863a_1h10
[00006730] 	project:  sp9863a_1h10
[00006732] 	buildid:  2023-04-10-02:45:25_LOCAL
[00006735] 	release:  userdebug
[00006737] initializing heap
[00006739] calling constructors
[00006741] initializing mp
[00006742] initializing threads
[00006744] initializing timers
[00006746] initializing ports
[00006748] creating bootstrap completion thread
[00006751] top of bootstrap2()
[00006753] initializing platform
[00006755] myqin-UARTREG(0)=0
[00006756] initializing target
[00006758] i2c0, freq=100000
[00006760] I2C_CTL 	= 0x82106
[00006762] I2C_ADDR_CFG 	= 0x0
[00006764] I2C_COUNT = 0x0
[00006765] I2C_STATUS = 0x310008
[00006767] ADDR_DVD0 = 0x33004c
[00006769] ADDR_DVD1 = 0x0
[00006770] ADDR_STA0_DVD = 0x68
[00006772] i2c0 is ok!
[00006773] i2c1, freq=100000
[00006775] I2C_CTL 	= 0x82106
[00006777] I2C_ADDR_CFG 	= 0x0
[00006779] I2C_COUNT = 0x0
[00006780] I2C_STATUS = 0x310008
[00006782] ADDR_DVD0 = 0x33004c
[00006784] ADDR_DVD1 = 0x0
[00006785] ADDR_STA0_DVD = 0x68
[00006787] i2c1 is ok!
[00006788] i2c2, freq=100000
[00006790] I2C_CTL 	= 0x82106
[00006792] I2C_ADDR_CFG 	= 0x0
[00006794] I2C_COUNT = 0x0
[00006795] I2C_STATUS = 0x10008
[00006797] ADDR_DVD0 = 0x33004c
[00006799] ADDR_DVD1 = 0x0
[00006800] ADDR_STA0_DVD = 0x68
[00006802] i2c2 is ok!
[00006803] i2c3, freq=100000
[00006805] I2C_CTL 	= 0x82106
[00006807] I2C_ADDR_CFG 	= 0x0
[00006809] I2C_COUNT = 0x0
[00006810] I2C_STATUS = 0x310008
[00006812] ADDR_DVD0 = 0x33004c
[00006814] ADDR_DVD1 = 0x0
[00006815] ADDR_STA0_DVD = 0x68
[00006817] i2c3 is ok!
[00006819] i2c4, freq=100000
[00006820] I2C_CTL 	= 0x82106
[00006822] I2C_ADDR_CFG 	= 0x0
[00006824] I2C_COUNT = 0x0
[00006825] I2C_STATUS = 0x310008
[00006827] ADDR_DVD0 = 0x33004c
[00006829] ADDR_DVD1 = 0x0
[00006831] ADDR_STA0_DVD = 0x68
[00006832] i2c4 is ok!
[00006834] i2c5, freq=100000
[00006835] I2C_CTL 	= 0x82106
[00006837] I2C_ADDR_CFG 	= 0x0
[00006839] I2C_COUNT = 0x0
[00006840] I2C_STATUS = 0x10008
[00006842] ADDR_DVD0 = 0x33004c
[00006844] ADDR_DVD1 = 0x0
[00006845] ADDR_STA0_DVD = 0x68
[00006847] i2c5 is ok!
[00006849] i2c6, freq=100000
[00006850] I2C_CTL 	= 0x82106
[00006852] I2C_ADDR_CFG 	= 0x0
[00006854] I2C_COUNT = 0x0
[00006855] I2C_STATUS = 0x10008
[00006857] ADDR_DVD0 = 0x33004c
[00006859] ADDR_DVD1 = 0x0
[00006860] ADDR_STA0_DVD = 0x68
[00006862] i2c6 is ok!
[00006863] version read val is :2048
[00006866] pmic efuse wait 4
[00006869] pmic efuse wait 2
[00006873] pmic efuse read 19,val=0x7772
[00006876] pmic efuse read bits 304 ++ 16 0x00007772
[00006880] 
[00006880] get pmic efuse block 19, deta: 0x00007772
[00006883] 0.1V adc data 0x12c
[00006885] 1.0V adc data 0xce0
[00006887] adc efuse small cal 1000,3296,100,300,cal_type:4
[00006891] sprd small scale efuse have cal
[00006894] pmic efuse wait 4
[00006898] pmic efuse wait 2
[00006901] pmic efuse read 18,val=0x6f6d
[00006904] pmic efuse read bits 288 ++ 16 0x00006f6d
[00006908] 
[00006908] get pmic efuse block 18, deta: 0x00006f6d
[00006912] adc efuse big cal 4200,3324,3600,2844,cal_type:3
[00006916] sprd big scale efuse have cal
[00006919] sprd batdet scale efuse have cal
[00006922] ADC_CTL1 value of it 0x1
[00006924] pmic_misc_init
[00006925] smpl_config
[00006926] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x20
[00006931] smpl power on flag: 0
[00006933] pmic efuse wait 4
[00006936] pmic efuse wait 2
[00006940] pmic efuse read 16,val=0x80f9
[00006943] chip id = 0x7370393836336100, VID = 0x1
[00006946] manufacturel_id is : 0x800 
[00006950] [gpio keys] 124 init!
[00006952] board_mmc_initialize entry
[00006955] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00006959] sprd_host_init, no aon_clk_reg
[00006962] sprd_sdhci_init: host version: 4
[00006966] sprd host caps: 0x7000060f
[00006968] sprd_host_init return 0
[00006970] mmc_set_bus_width width=1
[00006973] mmc_set_clock clk = 400000HZ
[00006980] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006987] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00006993] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00007000] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00007006] mmc send app cmd(emmc ignore) error:-19
[00007312] mmc init startup
[00007314] card cid register: 15010052 4331344d 4207f973 c4749300 
[00007320] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00007325] mmc raw version = 0x40000000
[00007328] mmc spec version = 0x40040000
[00007341] mmc->version = 0x40050100
[00007343] mmc->part_num = 0, erase_grp_size = 0x800
[00007347] RST_n signal(0x1) has already be permanently enabled
[00007352] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007358] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00007363] mmc_set_clock clk = 26000000HZ
[00007365] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00007370] mmc_set_bus_width width=8
[00007372] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00007376] mmc_set_clock clk = 195000000HZ
[00007382] dpll locked done
[00007384] dll config 0xc0250d23, dll count 38, tuning length: 57
[00007389] tuning ok: 0
[00007391] tuning ok: 1
[00007392] tuning ok: 2
[00007393] tuning ok: 3
[00007394] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007402] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd04047f
[00007408] tuning fail: 4
[00007410] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007417] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd05057f
[00007424] tuning fail: 5
[00007425] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007432] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd06067f
[00007439] tuning fail: 6
[00007441] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007448] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd07077f
[00007455] tuning fail: 7
[00007456] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007463] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd08087f
[00007470] tuning fail: 8
[00007471] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007479] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd09097f
[00007485] tuning fail: 9
[00007487] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007494] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00007501] tuning fail: 10
[00007502] tuning ok: 11
[00007504] tuning ok: 12
[00007505] tuning ok: 13
[00007506] tuning ok: 14
[00007508] tuning ok: 15
[00007509] tuning ok: 16
[00007510] tuning ok: 17
[00007512] tuning ok: 18
[00007513] tuning ok: 19
[00007514] tuning ok: 20
[00007515] tuning ok: 21
[00007517] tuning ok: 22
[00007518] tuning ok: 23
[00007519] tuning ok: 24
[00007521] tuning ok: 25
[00007522] tuning ok: 26
[00007523] tuning ok: 27
[00007525] tuning ok: 28
[00007526] tuning ok: 29
[00007527] tuning ok: 30
[00007528] tuning ok: 31
[00007530] tuning ok: 32
[00007531] tuning ok: 33
[00007532] tuning ok: 34
[00007534] tuning ok: 35
[00007535] tuning ok: 36
[00007536] tuning ok: 37
[00007538] tuning ok: 38
[00007539] tuning ok: 39
[00007540] tuning ok: 40
[00007541] tuning ok: 41
[00007543] tuning ok: 42
[00007544] tuning ok: 43
[00007545] tuning ok: 44
[00007547] tuning ok: 45
[00007548] tuning ok: 46
[00007549] tuning ok: 47
[00007550] tuning ok: 48
[00007552] tuning ok: 49
[00007553] tuning ok: 50
[00007554] tuning ok: 51
[00007556] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007563] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd34347f
[00007570] tuning fail: 52
[00007571] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007579] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd35357f
[00007585] tuning fail: 53
[00007587] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007594] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd36367f
[00007601] tuning fail: 54
[00007602] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007610] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd37377f
[00007616] tuning fail: 55
[00007618] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007625] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd38387f
[00007632] tuning fail: 56
[00007633] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007641] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd39397f
[00007647] tuning fail: 57
[00007649] recalculate tuning ok: 0
[00007651] recalculate tuning ok: 1
[00007653] recalculate tuning ok: 2
[00007656] recalculate tuning ok: 3
[00007658] recalculate tuning fail: 4
[00007660] recalculate tuning fail: 5
[00007663] recalculate tuning fail: 6
[00007665] recalculate tuning fail: 7
[00007668] recalculate tuning fail: 8
[00007670] recalculate tuning fail: 9
[00007672] recalculate tuning fail: 10
[00007675] recalculate tuning ok: 11
[00007677] recalculate tuning ok: 12
[00007680] recalculate tuning ok: 13
[00007682] recalculate tuning fail: 14
[00007684] recalculate tuning fail: 15
[00007687] recalculate tuning fail: 16
[00007689] recalculate tuning fail: 17
[00007692] recalculate tuning fail: 18
[00007694] recalculate tuning ok: 19
[00007697] recalculate tuning ok: 20
[00007699] recalculate tuning ok: 21
[00007702] recalculate tuning ok: 22
[00007704] recalculate tuning ok: 23
[00007706] recalculate tuning ok: 24
[00007708] recalculate tuning ok: 25
[00007711] recalculate tuning ok: 26
[00007713] recalculate tuning ok: 27
[00007716] recalculate tuning ok: 28
[00007718] recalculate tuning ok: 29
[00007720] recalculate tuning ok: 30
[00007723] recalculate tuning ok: 31
[00007725] recalculate tuning ok: 32
[00007727] recalculate tuning ok: 33
[00007730] recalculate tuning ok: 34
[00007732] recalculate tuning ok: 35
[00007734] recalculate tuning ok: 36
[00007737] recalculate tuning ok: 37
[00007739] good tuning phase range 0 ~ 3
[00007742] good tuning phase range 11 ~ 13
[00007744] good tuning phase range 19 ~ 37
[00007747] the best tuning step range 19-37(the length is 19)
[00007752] the best step 28, phase 0xbc, delay value 0xcdbcbc7f
[00007756] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007763] mmc startup end
[00007765] mmc init: 0, cost time 795
[00007767] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007772] sprd_sdhci: 0 (eMMC)
[00007774] i2c4, freq=100000
[00007778] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007782] sprd_chg: fan54015_get_vendor_id = 0x2
[00007786] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007790] pmic efuse wait 4
[00007794] pmic efuse wait 2
[00007797] pmic efuse read 18,val=0x6f6d
[00007800] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007804] 
[00007804] get pmic efuse block 18, deta: 0x00006f6d
[00007808] sprd_chg: adc_para from efuse is 0xcfc1068 0xb1c0e10 
[00008236] pmic efuse wait 4
[00008240] pmic efuse wait 2
[00008244] pmic efuse read 3,val=0x60df
[00008246] 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
[00008261] sprd_chg: fgu_cal.vol_1000mv_adc=675, vol_offset=0
[00008266] i2c4, freq=100000
[00008269] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00008274] i2c4, freq=100000
[00008277] sprd_chg: fan54015_read_reg reg  = 6 value =121/79
[00008282] i2c4, freq=100000
[00008285] i2c4, freq=100000
[00008288] sprd_chg: fan54015_read_reg reg  = 6 value =121/79
[00008293] i2c4, freq=100000
[00008295] sprd_chg: fan54015_sw_reset
[00008298] i2c4, freq=100000
[00008301] 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
[00008322] sprd_chg: fan54015_read_reg reg  = 1 value =0/0
[00008326] 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
[00008381] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00008385] 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
[00008402] init log type 2
[00008404] fastboot type boot count 2
[00008407] init log type 3
[00008408] download type boot count 6
[00008411] initializing apps
[00008412] 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
[00008468] do_download:enter
[00008469] abc offset: 2048, size: 32
[00008472] ANDROID: Loaded ABC control from misc, size: 32
[00008476] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00008485] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00008491] 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
[00008791] packet->body.size:0x4c, image size:0xa00000
[00008795] partition_name=prodnv,size=0xa00000
[00008798] partition prodnv image type is 0,partitionpurpose:0
[00008803] bad prodnv image magic(0x0)
[00008805] operate result =11,send ack
