[00007144] [c0] 
[00007145] [c0]  **  LK (0, restored from storage)  **
[00007149] [c0] dram cs0 size 80000000
[00007151] [c0] dram cs1 size 7ffff000
[00007155] [c0] [sprd_timer_init]: enter ....
[00007158] [c0] [sprd_timer_init]: done ....
[00007161] [c0] booting 2 cpus
[00007163] [c0] 
[00007163] [c0] welcome to lk/MP
[00007165] [c0] 
[00007166] [c0] boot args 0x0 0x65011708 0x650116e0 0x8
[00007170] [c0] INIT: cpu 0, calling hook 0x9f05b0b8 (version) at level 0x3ffff, flags 0x1
[00007177] [c0] version:
[00007178] [c0] 	arch:     arm64
[00007180] [c0] 	platform: qogirl6
[00007182] [c0] 	target:   ums9230_1h10
[00007185] [c0] 	project:  ums9230_1h10
[00007187] [c0] 	buildid:  2023-04-18-06:14:17_LOCAL
[00007191] [c0] 	release:  userdebug
[00007194] [c0] initializing heap
[00007196] [c0] calling constructors
[00007198] [c0] initializing mp
[00007200] [c0] initializing threads
[00007202] [c0] initializing timers
[00007204] [c0] initializing ports
[00007207] [c0] creating bootstrap completion thread
[00007210] [c0] arch_context_switch: cpu 0, old 0x9f1864c0 (idle 0, pri 0, flags 0x11), new 0x9f70c018 (bootstrap2, pri 16, flags 0x27)
[00007221] [c0] top of bootstrap2()
[00007223] [c0] creating bootstrap completion thread for cpu 1
[00007228] [c0] initializing platform
[00007230] [c0] myqin-UARTREG(0)=0
[00007233] [c0] initializing target
[00007235] [c0] i2c0, freq=100000
[00007237] [c0] I2C_CTL 	= 0x682106
[00007239] [c0] I2C_ADDR_CFG 	= 0x0
[00007242] [c0] I2C_COUNT = 0x0
[00007244] [c0] I2C_STATUS = 0x310008
[00007246] [c0] ADDR_DVD0 = 0x33004c
[00007248] [c0] ADDR_DVD1 = 0x0
[00007250] [c0] ADDR_STA0_DVD = 0x68
[00007253] [c0] i2c0 is ok!
[00007254] [c0] i2c1, freq=100000
[00007256] [c0] I2C_CTL 	= 0x682106
[00007258] [c0] I2C_ADDR_CFG 	= 0x0
[00007261] [c0] I2C_COUNT = 0x0
[00007263] [c0] I2C_STATUS = 0x310008
[00007265] [c0] ADDR_DVD0 = 0x33004c
[00007267] [c0] ADDR_DVD1 = 0x0
[00007269] [c0] ADDR_STA0_DVD = 0x68
[00007272] [c0] i2c1 is ok!
[00007273] [c0] i2c2, freq=100000
[00007275] [c0] I2C_CTL 	= 0x682106
[00007277] [c0] I2C_ADDR_CFG 	= 0x0
[00007280] [c0] I2C_COUNT = 0x0
[00007282] [c0] I2C_STATUS = 0x310008
[00007284] [c0] ADDR_DVD0 = 0x33004c
[00007286] [c0] ADDR_DVD1 = 0x0
[00007288] [c0] ADDR_STA0_DVD = 0x68
[00007291] [c0] i2c2 is ok!
[00007292] [c0] i2c3, freq=100000
[00007294] [c0] I2C_CTL 	= 0x682106
[00007297] [c0] I2C_ADDR_CFG 	= 0x0
[00007299] [c0] I2C_COUNT = 0x0
[00007301] [c0] I2C_STATUS = 0x310008
[00007303] [c0] ADDR_DVD0 = 0x33004c
[00007305] [c0] ADDR_DVD1 = 0x0
[00007307] [c0] ADDR_STA0_DVD = 0x68
[00007310] [c0] i2c3 is ok!
[00007311] [c0] i2c4, freq=100000
[00007313] [c0] I2C_CTL 	= 0x682106
[00007316] [c0] I2C_ADDR_CFG 	= 0x0
[00007318] [c0] I2C_COUNT = 0x0
[00007320] [c0] I2C_STATUS = 0x310008
[00007322] [c0] ADDR_DVD0 = 0x33004c
[00007324] [c0] ADDR_DVD1 = 0x0
[00007326] [c0] ADDR_STA0_DVD = 0x68
[00007329] [c0] i2c4 is ok!
[00007330] [c0] i2c5, freq=100000
[00007332] [c0] I2C_CTL 	= 0x682106
[00007335] [c0] I2C_ADDR_CFG 	= 0x0
[00007337] [c0] I2C_COUNT = 0x0
[00007339] [c0] I2C_STATUS = 0x210008
[00007341] [c0] ADDR_DVD0 = 0x33004c
[00007344] [c0] ADDR_DVD1 = 0x0
[00007345] [c0] ADDR_STA0_DVD = 0x68
[00007348] [c0] i2c5 is ok!
[00007349] [c0] i2c6, freq=100000
[00007351] [c0] I2C_CTL 	= 0x682106
[00007354] [c0] I2C_ADDR_CFG 	= 0x0
[00007356] [c0] I2C_COUNT = 0x0
[00007358] [c0] I2C_STATUS = 0x310008
[00007360] [c0] ADDR_DVD0 = 0x33004c
[00007363] [c0] ADDR_DVD1 = 0x0
[00007364] [c0] ADDR_STA0_DVD = 0x68
[00007367] [c0] i2c6 is ok!
[00007368] [c0] i2c7, freq=100000
[00007370] [c0] I2C_CTL 	= 0x682106
[00007373] [c0] I2C_ADDR_CFG 	= 0x0
[00007375] [c0] I2C_COUNT = 0x0
[00007377] [c0] I2C_STATUS = 0x310008
[00007379] [c0] ADDR_DVD0 = 0x33004c
[00007382] [c0] ADDR_DVD1 = 0x0
[00007383] [c0] ADDR_STA0_DVD = 0x68
[00007386] [c0] i2c7 is ok!
[00007387] [c0] pmic efuse wait 4
[00007391] [c0] pmic efuse wait 2
[00007395] [c0] pmic efuse read 19,val=0x7c84
[00007399] [c0] pmic efuse read bits 304 ++ 16 0x00007c84
[00007403] 
[00007403] [c0] get pmic efuse block 19, deta: 0x00007c84
[00007407] [c0] 0.1V adc data 0x130
[00007409] [c0] 1.0V adc data 0xd14
[00007412] [c0] adc efuse small cal 1000,3348,100,304,cal_type:4
[00007416] [c0] sprd small scale efuse have cal
[00007420] [c0] pmic efuse wait 4
[00007424] [c0] pmic efuse wait 2
[00007428] [c0] pmic efuse read 18,val=0x8787
[00007431] [c0] pmic efuse read bits 288 ++ 16 0x00008787
[00007435] 
[00007435] [c0] get pmic efuse block 18, deta: 0x00008787
[00007439] [c0] adc efuse big cal 4200,3452,3600,2960,cal_type:3
[00007444] [c0] sprd big scale efuse have cal
[00007447] [c0] sprd batdet scale efuse have cal
[00007451] [c0] pmic_misc_init
[00007452] [c0] smpl_config
[00007454] [c0] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x2820
[00007459] [c0] Not power off from smpl
[00007462] [c0] pmic efuse wait 4
[00007466] [c0] pmic efuse wait 2
[00007470] [c0] pmic efuse read 14,val=0x7f16
[00007473] [c0] pmic efuse wait 4
[00007477] [c0] pmic efuse wait 2
[00007481] [c0] pmic efuse read 14,val=0x7f16
[00007484] [c0] chip id = 0x756d733932333000, VID = 0x1
[00007488] [c0] chip_bonding:1, chip_id:1, boot_device:0x206
[00007492] [c0] vddrf1v25:set voltage:1250 = 900 + 350mv (trim=23 step=15000uv);
[00007499] [c0] i2c7, freq=100000
[00007502] [c0] i2c7, freq=100000
[00007506] [c0] eta_read_reg reg = 0x0, value = 158 / 9e
[00007514] [c0] init_global_reg 
[00007516]  Reset UFS host controller success
[00007519] [c0] Send link startup UIC command
[00007537] [c0] Connection been established with UFS device!
[00007543] [c0] NOP OUT response ret = 0x0
[00007645] [c0] fDeviceInit flag==0, UFS device init complete
[00007652] [c0] ufs hpb_disabled for  device
[00007657] [c0] UFS device version: 0x210
[00007659] [c0] UFS device total cap=0xee64000,allocation unit size=0x2000
[00007676] [c0] write idn=0xa
[00007681] [c0] UFS configuration table same with device, no need of reconstruction
[00007687] [c0] write idn=0x0
[00007691] [c0] Power mode:pwr_rx(1), pwr_tx(1), lane_rx(2), lane_tx(2), gear_rx(3), gear_tx(3), hs_rate(2)
[00007704] [c0] Success change ufs pwr mode.
[00007707] [c0] [gpio keys] 124 init!
[00007709] [c0] i2c3, freq=100000
[00007712] [c0] i2c transfer fail
[00007714] [c0] sprd_chg: bq2560x_read_reg reg(0x7), ret(-1)
[00007719] [c0] i2c3, freq=100000
[00007722] [c0] i2c transfer fail
[00007724] [c0] sprd_chg: bq2560x_write_reg reg(0x7), ret(-1)
[00007728] [c0] i2c3, freq=100000
[00007731] [c0] i2c transfer fail
[00007733] [c0] sprd_chg: bq2560x_read_reg reg(0x5), ret(-1)
[00007738] [c0] i2c3, freq=100000
[00007741] [c0] i2c transfer fail
[00007743] [c0] sprd_chg: bq2560x_write_reg reg(0x5), ret(-1)
[00007747] [c0] sprd_chg: sprdchg_bq2560x_init
[00007750] [c0] pmic efuse wait 4
[00007754] [c0] pmic efuse wait 2
[00007758] [c0] pmic efuse read 18,val=0x8787
[00007762] [c0] pmic efuse read bits 288 ++ 16 0x00008787
[00007766] 
[00007766] [c0] get pmic efuse block 18, deta: 0x00008787
[00007770] [c0] sprd_chg: adc_para from efuse is 0xd7c1068 0xb900e10 
[00007775] [c0] pmic efuse wait 4
[00007779] [c0] pmic efuse wait 2
[00007783] [c0] pmic efuse read 3,val=0x8529
[00007786] [c0] pmic efuse read bits 48 ++ 9 0x00000129
[00007790] 
[00007791] [c0] sprd_chg: fgu_cal_get 4.2 data data: 0x129
[00007795] [c0] sprd_chg: fgu_data: 0xb5c
[00007798] [c0] sprd_chg: sprdfgu: one point
[00007801] [c0] sprd_chg: 4200mv=2908, 3600mv=0
[00007804] [c0] sprd_chg: fgu_cal.vol_1000mv_adc=692, vol_offset=0
[00008237] [c0] sprd_chg: chg_bq2560x_init
[00008240] [c0] sprd_chg: eica status bat1
[00008243] [c0] sprd_chg: sprdbat_init keep_charge = 0
[00008247] [c0] i2c3, freq=100000
[00008250] [c0] i2c transfer fail
[00008252] [c0] sprd_chg: bq2560x_read_reg reg(0x0), ret(-1)
[00008256] [c0] i2c3, freq=100000
[00008259] [c0] i2c transfer fail
[00008261] [c0] sprd_chg: bq2560x_write_reg reg(0x0), ret(-1)
[00008266] [c0] i2c3, freq=100000
[00008269] [c0] i2c transfer fail
[00008271] [c0] sprd_chg: bq2560x_read_reg reg(0x2), ret(-1)
[00008275] [c0] i2c3, freq=100000
[00008278] [c0] i2c transfer fail
[00008280] [c0] sprd_chg: bq2560x_write_reg reg(0x2), ret(-1)
[00008285] [c0] sprd_chg: chg_bq2560x_disable_chg
[00008288] [c0] i2c3, freq=100000
[00008291] [c0] i2c transfer fail
[00008293] [c0] sprd_chg: bq2560x_read_reg reg(0x1), ret(-1)
[00008298] [c0] i2c3, freq=100000
[00008301] [c0] i2c transfer fail
[00008303] [c0] sprd_chg: bq2560x_write_reg reg(0x1), ret(-1)
[00008307] [c0] sprd_chg: bq2560x_set_power_path val = 0
[00008311] [c0] i2c3, freq=100000
[00008314] [c0] i2c transfer fail
[00008317] [c0] sprd_chg: bq2560x_read_reg reg(0x0), ret(-1)
[00008321] [c0] i2c3, freq=100000
[00008324] [c0] i2c transfer fail
[00008326] [c0] sprd_chg: bq2560x_write_reg reg(0x0), ret(-1)
[00008331] [c0] i2c3, freq=100000
[00008334] [c0] i2c transfer fail
[00008336] [c0] sprd_chg: bq2560x_read_reg reg(0x5), ret(-1)
[00008340] [c0] i2c3, freq=100000
[00008343] [c0] i2c transfer fail
[00008345] [c0] sprd_chg: bq2560x_write_reg reg(0x5), ret(-1)
[00008350] [c0] CHG init OK!
[00008351] [c0] init log type 0
[00008354] [c0] panic type boot count 2
[00008357] [c0] init log type 1
[00008359] [c0] start type init log success on 2 times
[00008363] [c0] init log type 2
[00008365] [c0] fastboot type boot count 2
[00008368] [c0] init log type 3
[00008370] [c0] download type boot count 2
[00008373] [c0] initializing apps
[00008375] [c0] Press q to LK shell cmd in 0 seconds!
[00008380] [c0] abc offset: 2048, size: 32
[00008383] [c0] ANDROID: Loaded ABC control from misc, size: 32
[00008388] [c0] ANDROID: Invalid crc32_le (caculate: 807077e9, read from disk        0),Initializing ab_control to default value
[00008398] [c0] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00008407] [c0] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00008413] [c0] ANDROID: Booting slot_a
[00008419] [c0] power_button_pressed status 1
[00008422] [c0] get enter_download flag :
[00008425] [c0] ==== in  [get_mode_from_chipram_env] 
[00008429] [c0] get boot mode in boot func array[0]
[00008433] [c0] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00008437] [c0] download mode!
[00008439] [c0] Watch Dog Trace: WDG_TimerStop
[00008443] [c0] write lun(0), start(0x6505), write_block(0x1)
[00008447] [c0] UFS write source addr not aligned to 4 bytes, it will harm the write efficiency!
[00008455] [c0] write lun(0), start(0x6508), write_block(0x1)
[00008460] [c0] write lun(0), start(0x6500), write_block(0x1)
[00008465] [c0] do_download:enter
[00008468] [c0] abc offset: 2048, size: 32
[00008471] [c0] ANDROID: Loaded ABC control from misc, size: 32
[00008475] [c0] ANDROID: Invalid crc32_le (caculate: 807077e9, read from disk        0),Initializing ab_control to default value
[00008486] [c0] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00008495] [c0] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00008501] [c0] ANDROID: Booting slot_a
[00008641] [c0] now time sec 0
[00008643] [c0] now alarm sec 0
[00008645] [c0] download buffer base 0xc0000000, size 40000000
[00008649] alter buffer1 base 0x92000000, size 200000
[00008653] alter buffer2 base 0x92200000, size 200000
[00008657] [c0] [do_download] pre init is ok
[00008660] [c0] [do_download] register cmd process function is ok
[00008665] [c0] read timestamp magic(0) incorrect.
[00008669] [c0] dl_cmd_handler:enter
[00008673] [c0] packet->body.size:0x4c, image size:0x100000
[00008678] [c0] partition_name=l_fixnv1_a,size=0x100000
[00008682] [c0] partition l_fixnv1_a image type is 0,partitionpurpose:1
[00008687] [c0] get partition slot: l_fixnv1_b
[00008691] [c0] fixnv download status:PAC_WITH_SLOT_AB | DEVICE_WITH_SLOT_AB
[00008696] [c0] repair nv img with partition : l_fixnv1_a
[00008714] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac
[00008718] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac,len=0x0,chkflag=0x0
[00008725] [c0] read origin nv image success and crc correct
[00008729] [c0] partition_name is l_fixnv1_a
[00008746] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac
[00008750] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac,len=0x0,chkflag=0x0
[00008756] [c0] read backup nv image success and crc correct
[00008760] [c0] both org and bak nv partition are ok
[00008764] [c0] partition_name is l_fixnv1_a, ret = 1
[00008768] [c0] operate result =1,send ack
partition_name is l_fixnv1_a
[00007786] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac
[00007790] [c0] fdl_check_crc  calcout = 0x53ac,org = 0x53ac,len=0x0,chkflag=0x0
[00007797] [c0] read backup nv image success and crc correct
[00007801] [c0] both org and bak nv partition are ok
[00007805] [c0] partition_name is l_fixnv1_a, ret = 1
[00007809] [c0] operate result =1,send ack
R