[00006657] 
[00006657]  **  LK (0, restored from storage)  **
[00006660] dram cs0 size 80000000
[00006662] dram cs1 size 7ffc0000
[00006665] [sprd_timer_init]: enter ....
[00006667] [sprd_timer_init]: done ....
[00006670] booting 1 cpus
[00006672] 
[00006672] welcome to lk
[00006673] 
[00006673] boot args 0x0 0x16a48 0x16a20 0x8
[00006676] INIT: cpu 0, calling hook 0x9f0563a0 (version) at level 0x3ffff, flags 0x1
[00006683] version:
[00006684] 	arch:     arm64
[00006685] 	platform: sharkl3
[00006687] 	target:   sp9863a_1h10
[00006689] 	project:  sp9863a_1h10
[00006691] 	buildid:  2023-04-10-02:45:25_LOCAL
[00006694] 	release:  userdebug
[00006696] initializing heap
[00006698] calling constructors
[00006700] initializing mp
[00006701] initializing threads
[00006703] initializing timers
[00006705] initializing ports
[00006707] creating bootstrap completion thread
[00006710] top of bootstrap2()
[00006712] initializing platform
[00006714] myqin-UARTREG(0)=0
[00006716] initializing target
[00006718] i2c0, freq=100000
[00006719] I2C_CTL 	= 0x82106
[00006721] I2C_ADDR_CFG 	= 0x0
[00006723] I2C_COUNT = 0x0
[00006724] I2C_STATUS = 0x310008
[00006726] ADDR_DVD0 = 0x33004c
[00006728] ADDR_DVD1 = 0x0
[00006730] ADDR_STA0_DVD = 0x68
[00006732] i2c0 is ok!
[00006733] i2c1, freq=100000
[00006734] I2C_CTL 	= 0x82106
[00006736] I2C_ADDR_CFG 	= 0x0
[00006738] I2C_COUNT = 0x0
[00006739] I2C_STATUS = 0x310008
[00006741] ADDR_DVD0 = 0x33004c
[00006743] ADDR_DVD1 = 0x0
[00006745] ADDR_STA0_DVD = 0x68
[00006747] i2c1 is ok!
[00006748] i2c2, freq=100000
[00006749] I2C_CTL 	= 0x82106
[00006751] I2C_ADDR_CFG 	= 0x0
[00006753] I2C_COUNT = 0x0
[00006754] I2C_STATUS = 0x10008
[00006756] ADDR_DVD0 = 0x33004c
[00006758] ADDR_DVD1 = 0x0
[00006760] ADDR_STA0_DVD = 0x68
[00006762] i2c2 is ok!
[00006763] i2c3, freq=100000
[00006764] I2C_CTL 	= 0x82106
[00006766] I2C_ADDR_CFG 	= 0x0
[00006768] I2C_COUNT = 0x0
[00006769] I2C_STATUS = 0x310008
[00006771] ADDR_DVD0 = 0x33004c
[00006773] ADDR_DVD1 = 0x0
[00006775] ADDR_STA0_DVD = 0x68
[00006777] i2c3 is ok!
[00006778] i2c4, freq=100000
[00006779] I2C_CTL 	= 0x82106
[00006781] I2C_ADDR_CFG 	= 0x0
[00006783] I2C_COUNT = 0x0
[00006784] I2C_STATUS = 0x310008
[00006786] ADDR_DVD0 = 0x33004c
[00006788] ADDR_DVD1 = 0x0
[00006790] ADDR_STA0_DVD = 0x68
[00006792] i2c4 is ok!
[00006793] i2c5, freq=100000
[00006794] I2C_CTL 	= 0x82106
[00006796] I2C_ADDR_CFG 	= 0x0
[00006798] I2C_COUNT = 0x0
[00006800] I2C_STATUS = 0x10008
[00006801] ADDR_DVD0 = 0x33004c
[00006803] ADDR_DVD1 = 0x0
[00006805] ADDR_STA0_DVD = 0x68
[00006807] i2c5 is ok!
[00006808] i2c6, freq=100000
[00006809] I2C_CTL 	= 0x82106
[00006811] I2C_ADDR_CFG 	= 0x0
[00006813] I2C_COUNT = 0x0
[00006814] I2C_STATUS = 0x10008
[00006816] ADDR_DVD0 = 0x33004c
[00006818] ADDR_DVD1 = 0x0
[00006820] ADDR_STA0_DVD = 0x68
[00006822] i2c6 is ok!
[00006823] version read val is :2048
[00006825] pmic efuse wait 4
[00006829] pmic efuse wait 2
[00006832] pmic efuse read 19,val=0x7772
[00006835] pmic efuse read bits 304 ++ 16 0x00007772
[00006839] 
[00006839] get pmic efuse block 19, deta: 0x00007772
[00006843] 0.1V adc data 0x12c
[00006844] 1.0V adc data 0xce0
[00006846] adc efuse small cal 1000,3296,100,300,cal_type:4
[00006851] sprd small scale efuse have cal
[00006853] pmic efuse wait 4
[00006857] pmic efuse wait 2
[00006861] pmic efuse read 18,val=0x6f6d
[00006863] pmic efuse read bits 288 ++ 16 0x00006f6d
[00006867] 
[00006867] get pmic efuse block 18, deta: 0x00006f6d
[00006871] adc efuse big cal 4200,3324,3600,2844,cal_type:3
[00006875] sprd big scale efuse have cal
[00006878] sprd batdet scale efuse have cal
[00006881] ADC_CTL1 value of it 0x1
[00006883] pmic_misc_init
[00006885] smpl_config
[00006886] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2820
[00006890] smpl power on flag: 0
[00006892] pmic efuse wait 4
[00006896] pmic efuse wait 2
[00006899] pmic efuse read 16,val=0x80f9
[00006902] chip id = 0x7370393836336100, VID = 0x1
[00006906] manufacturel_id is : 0x800 
[00006910] [gpio keys] 124 init!
[00006912] board_mmc_initialize entry
[00006914] mmc ldo_core:vddemmccore, ldo_io:vddgen
[00006919] sprd_host_init, no aon_clk_reg
[00006921] sprd_sdhci_init: host version: 4
[00006925] sprd host caps: 0x7000060f
[00006928] sprd_host_init return 0
[00006930] mmc_set_bus_width width=1
[00006932] mmc_set_clock clk = 400000HZ
[00006939] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006946] sprd_sdhci_send_command interrupt status: 0x18001, CMD8, delay: 0x0
[00006953] sprd_sdhci_send_command: ret = -1, interrupt status: 0x18000
[00006960] sprd_sdhci_send_command interrupt status: 0x18001, CMD55, delay: 0x0
[00006966] mmc send app cmd(emmc ignore) error:-19
[00007272] mmc init startup
[00007274] card cid register: 15010052 4331344d 4207f973 c4749300 
[00007280] card csd register: d0270132 0f5903ff f6dbffef 8e404000 
[00007285] mmc raw version = 0x40000000
[00007287] mmc spec version = 0x40040000
[00007301] mmc->version = 0x40050100
[00007303] mmc->part_num = 0, erase_grp_size = 0x800
[00007307] RST_n signal(0x1) has already be permanently enabled
[00007311] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007317] selecting mode MMC High Speed (26MHz) (freq : 26 MHz)
[00007322] mmc_set_clock clk = 26000000HZ
[00007325] trying mode HS200 (200MHz) width 8 (at 200 MHz)
[00007329] mmc_set_bus_width width=8
[00007332] selecting mode HS200 (200MHz) (freq : 200 MHz)
[00007336] mmc_set_clock clk = 195000000HZ
[00007342] dpll locked done
[00007345] dll config 0xc0250d23, dll count 38, tuning length: 57
[00007350] tuning ok: 0
[00007351] tuning ok: 1
[00007352] tuning ok: 2
[00007353] tuning ok: 3
[00007355] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007362] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd04047f
[00007369] tuning fail: 4
[00007370] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007378] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd05057f
[00007384] tuning fail: 5
[00007386] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007393] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd06067f
[00007400] tuning fail: 6
[00007401] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007408] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd07077f
[00007415] tuning fail: 7
[00007417] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007424] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd08087f
[00007431] tuning fail: 8
[00007432] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007439] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd09097f
[00007446] tuning fail: 9
[00007447] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007455] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd0a0a7f
[00007461] tuning fail: 10
[00007463] tuning ok: 11
[00007464] tuning ok: 12
[00007466] tuning ok: 13
[00007467] tuning ok: 14
[00007468] tuning ok: 15
[00007469] tuning ok: 16
[00007471] tuning ok: 17
[00007472] tuning ok: 18
[00007473] tuning ok: 19
[00007475] tuning ok: 20
[00007476] tuning ok: 21
[00007477] tuning ok: 22
[00007479] tuning ok: 23
[00007480] tuning ok: 24
[00007481] tuning ok: 25
[00007482] tuning ok: 26
[00007484] tuning ok: 27
[00007485] tuning ok: 28
[00007486] tuning ok: 29
[00007488] tuning ok: 30
[00007489] tuning ok: 31
[00007490] tuning ok: 32
[00007491] tuning ok: 33
[00007493] tuning ok: 34
[00007494] tuning ok: 35
[00007495] tuning ok: 36
[00007497] tuning ok: 37
[00007498] tuning ok: 38
[00007499] tuning ok: 39
[00007501] tuning ok: 40
[00007502] tuning ok: 41
[00007503] tuning ok: 42
[00007504] tuning ok: 43
[00007506] tuning ok: 44
[00007507] tuning ok: 45
[00007508] tuning ok: 46
[00007510] tuning ok: 47
[00007511] tuning ok: 48
[00007512] tuning ok: 49
[00007514] tuning ok: 50
[00007515] tuning ok: 51
[00007516] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007524] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd34347f
[00007530] tuning fail: 52
[00007532] sprd_sdhci_transfer_data: Error detected in status(0x208002)!
[00007539] sprd_sdhci_send_command interrupt status: 0x208002, CMD21, delay: 0xcd35357f
[00007546] tuning fail: 53
[00007547] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007555] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd36367f
[00007561] tuning fail: 54
[00007563] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007570] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd37377f
[00007577] tuning fail: 55
[00007578] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007586] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd38387f
[00007592] tuning fail: 56
[00007594] sprd_sdhci_send_command: ret = -1, interrupt status: 0xa8001
[00007601] sprd_sdhci_send_command interrupt status: 0x2a8003, CMD21, delay: 0xcd39397f
[00007608] tuning fail: 57
[00007609] recalculate tuning ok: 0
[00007612] recalculate tuning ok: 1
[00007614] recalculate tuning ok: 2
[00007616] recalculate tuning ok: 3
[00007618] recalculate tuning fail: 4
[00007621] recalculate tuning fail: 5
[00007623] recalculate tuning fail: 6
[00007626] recalculate tuning fail: 7
[00007628] recalculate tuning fail: 8
[00007630] recalculate tuning fail: 9
[00007633] recalculate tuning fail: 10
[00007635] recalculate tuning ok: 11
[00007638] recalculate tuning ok: 12
[00007640] recalculate tuning ok: 13
[00007642] recalculate tuning fail: 14
[00007645] recalculate tuning fail: 15
[00007647] recalculate tuning fail: 16
[00007650] recalculate tuning fail: 17
[00007652] recalculate tuning fail: 18
[00007655] recalculate tuning ok: 19
[00007657] recalculate tuning ok: 20
[00007660] recalculate tuning ok: 21
[00007662] recalculate tuning ok: 22
[00007664] recalculate tuning ok: 23
[00007667] recalculate tuning ok: 24
[00007669] recalculate tuning ok: 25
[00007671] recalculate tuning ok: 26
[00007674] recalculate tuning ok: 27
[00007676] recalculate tuning ok: 28
[00007678] recalculate tuning ok: 29
[00007681] recalculate tuning ok: 30
[00007683] recalculate tuning ok: 31
[00007685] recalculate tuning ok: 32
[00007688] recalculate tuning ok: 33
[00007690] recalculate tuning ok: 34
[00007692] recalculate tuning ok: 35
[00007695] recalculate tuning ok: 36
[00007697] recalculate tuning ok: 37
[00007699] good tuning phase range 0 ~ 3
[00007702] good tuning phase range 11 ~ 13
[00007705] good tuning phase range 19 ~ 37
[00007708] the best tuning step range 19-37(the length is 19)
[00007712] the best step 28, phase 0xbc, delay value 0xcdbcbc7f
[00007717] mmc speed mode: HS200 (200MHz)(freq:200MHz),blksz:512,card_caps:0x7000040f
[00007724] mmc startup end
[00007725] mmc init: 0, cost time 795
[00007728] capacity -user: 0xe8f800000, -boot: 0x400000, -rpmb: 0x400000
[00007733] sprd_sdhci: 0 (eMMC)
[00007735] i2c4, freq=100000
[00007738] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00007743] sprd_chg: fan54015_get_vendor_id = 0x2
[00007746] sprd_chg: sprdchg_fan54015_init, i2c_bus_num = 4
[00007751] pmic efuse wait 4
[00007754] pmic efuse wait 2
[00007758] pmic efuse read 18,val=0x6f6d
[00007761] pmic efuse read bits 288 ++ 16 0x00006f6d
[00007764] 
[00007764] get pmic efuse block 18, deta: 0x00006f6d
[00007768] sprd_chg: adc_para from efuse is 0xcfc1068 0xb1c0e10 
[00008237] pmic efuse wait 4
[00008241] pmic efuse wait 2
[00008244] pmic efuse read 3,val=0x60df
[00008247] pmic efuse read bits 48 ++ 9 0x000000df
[00008250] 
[00008251] sprd_chg: fgu_cal_get 4.2 data data: 0xdf
[00008254] sprd_chg: fgu_data: 0xb12
[00008257] sprd_chg: sprdfgu: one point
[00008259] sprd_chg: 4200mv=2834, 3600mv=0
[00008262] sprd_chg: fgu_cal.vol_1000mv_adc=675, vol_offset=0
[00008267] i2c4, freq=100000
[00008270] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00008275] i2c4, freq=100000
[00008278] sprd_chg: fan54015_read_reg reg  = 6 value =64/40
[00008283] i2c4, freq=100000
[00008285] i2c4, freq=100000
[00008289] sprd_chg: fan54015_read_reg reg  = 6 value =73/49
[00008293] i2c4, freq=100000
[00008296] sprd_chg: fan54015_sw_reset
[00008298] i2c4, freq=100000
[00008302] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00008306] i2c4, freq=100000
[00008309] i2c4, freq=100000
[00008312] sprd_chg: fan54015_read_reg reg  = 1 value =48/30
[00008317] i2c4, freq=100000
[00008319] i2c4, freq=100000
[00008323] sprd_chg: fan54015_read_reg reg  = 1 value =0/0
[00008327] i2c4, freq=100000
[00008330] i2c4, freq=100000
[00008333] sprd_chg: fan54015_read_reg reg  = 2 value =10/a
[00008337] i2c4, freq=100000
[00008340] i2c4, freq=100000
[00008344] sprd_chg: fan54015_read_reg reg  = 5 value =36/24
[00008348] i2c4, freq=100000
[00008351] sprd_chg: sprdchg_fan54015_ic_init
[00008354] sprd_chg: eica status bat1
[00008356] sprd_chg: sprdbat_init keep_charge = 0
[00008360] i2c4, freq=100000
[00008363] sprd_chg: fan54015_read_reg reg  = 3 value =67/43
[00008368] i2c4, freq=100000
[00008371] sprd_chg: fan54015_read_reg reg  = 1 value =192/c0
[00008376] i2c4, freq=100000
[00008378] i2c4, freq=100000
[00008382] sprd_chg: fan54015_read_reg reg  = 4 value =1/1
[00008386] i2c4, freq=100000
[00008389] sprd_chg: sprdchg_fan54015_stop_charging
[00008392] CHG init OK!
[00008393] init log type 0
[00008395] panic type boot count 2
[00008398] init log type 1
[00008399] start type init log success on 16 times
[00008403] init log type 2
[00008405] fastboot type boot count 2
[00008407] init log type 3
[00008409] download type boot count 5
[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
[00008468] do_download:enter
[00008470] 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
[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)
[00008807] operate result =11,send ack
