[00010115] [c0] 
[00010115] [c0]  **  LK (0, restored from storage)  **
[00010119] [c0] dram cs0 size 100000000
[00010119] [c0] dram cs1 size fffff000
[00010121] [c0] [sprd_timer_init]: enter ....
[00010121] [c0] [sprd_timer_init]: done ....
[00010121] [c0] booting 2 cpus
[00010121] [c0] 
[00010121] [c0] welcome to lk/MP
[00010123] [c0] 
[00010123] [c0] boot args 0x0 0x650118c8 0x650118a0 0x8
[00010127] [c0] version:
[00010127] [c0] 	arch:     arm64
[00010127] [c0] 	platform: qogirl6
[00010127] [c0] 	target:   g2315guf_v1_1gc_ym_a15_zx_t
[00010127] [c0] 	project:  g2315guf_v1_1gc_ym_a15_zx_t
[00010127] [c0] 	buildid:  2024-03-02-15:08:23_LOCAL
[00010127] [c0] 	release:  user
[00010127] [c0] initializing heap
[00010129] [c0] calling constructors
[00010131] [c0] initializing mp
[00010131] [c0] initializing threads
[00010131] [c0] initializing timers
[00010131] [c0] initializing ports
[00010132] [c0] creating bootstrap completion thread
[00010135] [c0] arch_context_switch: cpu 0, old 0x9f122330 (idle 0, pri 0, flags 0x11), new 0x9f6a8010 (bootstrap2, pri 16, flags 0x7)
[00010146] [c0] top of bootstrap2()
[00010146] [c0] creating bootstrap completion thread for cpu 1
[00010146] [c0] initializing platform
[00010146] [c0] myqin-UARTREG(0)=0
[00010146] [c0] initializing target
[00010146] [c0] i2c0, freq=100000
[00010148] [c0] I2C_CTL 	= 0x682106
[00010148] [c0] I2C_ADDR_CFG 	= 0x0
[00010148] [c0] I2C_COUNT = 0x0
[00010148] [c0] I2C_STATUS = 0x310008
[00010148] [c0] ADDR_DVD0 = 0x33004c
[00010148] [c0] ADDR_DVD1 = 0x0
[00010148] [c0] ADDR_STA0_DVD = 0x68
[00010148] [c0] i2c0 is ok!
[00010148] [c0] i2c1, freq=100000
[00010150] [c0] I2C_CTL 	= 0x682106
[00010150] [c0] I2C_ADDR_CFG 	= 0x0
[00010150] [c0] I2C_COUNT = 0x0
[00010150] [c0] I2C_STATUS = 0x310008
[00010150] [c0] ADDR_DVD0 = 0x33004c
[00010150] [c0] ADDR_DVD1 = 0x0
[00010150] [c0] ADDR_STA0_DVD = 0x68
[00010150] [c0] i2c1 is ok!
[00010150] [c0] i2c2, freq=100000
[00010152] [c0] I2C_CTL 	= 0x682106
[00010152] [c0] I2C_ADDR_CFG 	= 0x0
[00010152] [c0] I2C_COUNT = 0x0
[00010152] [c0] I2C_STATUS = 0x310008
[00010152] [c0] ADDR_DVD0 = 0x33004c
[00010152] [c0] ADDR_DVD1 = 0x0
[00010152] [c0] ADDR_STA0_DVD = 0x68
[00010152] [c0] i2c2 is ok!
[00010153] [c0] i2c3, freq=100000
[00010155] [c0] I2C_CTL 	= 0x682106
[00010155] [c0] I2C_ADDR_CFG 	= 0x0
[00010155] [c0] I2C_COUNT = 0x0
[00010155] [c0] I2C_STATUS = 0x10008
[00010155] [c0] ADDR_DVD0 = 0x33004c
[00010155] [c0] ADDR_DVD1 = 0x0
[00010155] [c0] ADDR_STA0_DVD = 0x68
[00010155] [c0] i2c3 is ok!
[00010155] [c0] i2c4, freq=100000
[00010157] [c0] I2C_CTL 	= 0x682106
[00010157] [c0] I2C_ADDR_CFG 	= 0x0
[00010157] [c0] I2C_COUNT = 0x0
[00010157] [c0] I2C_STATUS = 0x10008
[00010157] [c0] ADDR_DVD0 = 0x33004c
[00010157] [c0] ADDR_DVD1 = 0x0
[00010157] [c0] ADDR_STA0_DVD = 0x68
[00010157] [c0] i2c4 is ok!
[00010157] [c0] i2c5, freq=100000
[00010159] [c0] I2C_CTL 	= 0x682106
[00010159] [c0] I2C_ADDR_CFG 	= 0x0
[00010159] [c0] I2C_COUNT = 0x0
[00010159] [c0] I2C_STATUS = 0x310008
[00010159] [c0] ADDR_DVD0 = 0x33004c
[00010159] [c0] ADDR_DVD1 = 0x0
[00010159] [c0] ADDR_STA0_DVD = 0x68
[00010159] [c0] i2c5 is ok!
[00010159] [c0] i2c6, freq=100000
[00010161] [c0] I2C_CTL 	= 0x682106
[00010161] [c0] I2C_ADDR_CFG 	= 0x0
[00010161] [c0] I2C_COUNT = 0x0
[00010161] [c0] I2C_STATUS = 0x310008
[00010161] [c0] ADDR_DVD0 = 0x33004c
[00010161] [c0] ADDR_DVD1 = 0x0
[00010161] [c0] ADDR_STA0_DVD = 0x68
[00010161] [c0] i2c6 is ok!
[00010161] [c0] i2c7, freq=100000
[00010163] [c0] I2C_CTL 	= 0x682106
[00010163] [c0] I2C_ADDR_CFG 	= 0x0
[00010163] [c0] I2C_COUNT = 0x0
[00010163] [c0] I2C_STATUS = 0x310008
[00010163] [c0] ADDR_DVD0 = 0x33004c
[00010163] [c0] ADDR_DVD1 = 0x0
[00010163] [c0] ADDR_STA0_DVD = 0x68
[00010163] [c0] i2c7 is ok!
[00010163] [c0] pmic efuse wait 4
[00010167] [c0] pmic efuse wait 2
[00010171] [c0] pmic efuse read 19,val=0x7d87
[00010174] [c0] pmic efuse read bits 304 ++ 16 0x00007d87
[00010178] 
[00010179] [c0] get pmic efuse block 19, deta: 0x00007d87
[00010183] [c0] 0.1V adc data 0x134
[00010185] [c0] 1.0V adc data 0xd20
[00010187] [c0] adc efuse small cal 1000,3360,100,308,cal_type:4
[00010192] [c0] sprd small scale efuse have cal
[00010195] [c0] pmic efuse wait 4
[00010199] [c0] pmic efuse wait 2
[00010203] [c0] pmic efuse read 18,val=0x8a8a
[00010206] [c0] pmic efuse read bits 288 ++ 16 0x00008a8a
[00010211] 
[00010211] [c0] get pmic efuse block 18, deta: 0x00008a8a
[00010215] [c0] adc efuse big cal 4200,3464,3600,2972,cal_type:3
[00010220] [c0] sprd big scale efuse have cal
[00010223] [c0] sprd batdet scale efuse have cal
[00010226] [c0] pmic_misc_init
[00010226] [c0] smpl_config
[00010226] [c0] last shutdown flag ANA_REG_GLB_POR_OFF_FLAG:0x20
[00010231] [c0] Not power off from smpl
[00010234] [c0] pmic efuse wait 4
[00010238] [c0] pmic efuse wait 2
[00010242] [c0] pmic efuse read 14,val=0x7f14
[00010245] [c0] pmic efuse wait 4
[00010249] [c0] pmic efuse wait 2
[00010253] [c0] pmic efuse read 14,val=0x7f14
[00010256] [c0] chip id = 0x756d733932333000, VID = 0x3
[00010256] [c0] chip_bonding:0, chip_id:3, boot_device:0x206
[00010260] [c0] enter chip_download_distinction OK!
[00010260] [c0] chip_bonding:0
[00010262] [c0] enter chip_download_distinction OK2!,ret = 0
[00010262] [c0] vddrf1v25:set voltage:1250 = 900 + 350mv (trim=23 step=15000uv);
[00010262] [c0] i2c7, freq=100000
[00010265] [c0] i2c7, freq=100000
[00010269] [c0] eta_read_reg reg = 0x0, value = 158 / 9e
[00010278] [c0] init_global_reg  sai
[00010278]  Reset UFS host controller success
[00010278] [c0] Send link startup UIC command
[00010297] [c0] Connection been established with UFS device!
[00010299] [c0] NOP OUT response ret = 0x0
[00010302] [c0] fDeviceInit flag==0, UFS device init complete
[00010306] [c0] ufs hpb_disabled for  device
[00010307] [c0] wb uspc type: 0x1, buf type: 0x1, shared buffer size: 0x1e00
[00010307] [c0] UFS device version: 0x220
[00010308] [c0] UFS device total cap=0x1dcbc000,allocation unit size=0x2000
[00010322] [c0] write idn=0xa
[00010326] [c0] UFS configuration table same with device, no need of reconstruction
[00010326] [c0] write idn=0x0
[00010329] [c0] Power mode:pwr_rx(1), pwr_tx(1), lane_rx(2), lane_tx(2), gear_rx(3), gear_tx(3), hs_rate(2)
[00010333] [c0] Success change ufs pwr mode.
[00010333] [c0] [gpio keys] init!
[00010333] [c0] i2c5, freq=100000
[00010337] [c0] sprd_chg: bq2560x_read_reg reg = 0x7, value = 72/0x48
[00010337] [c0] i2c5, freq=100000
[00010340] [c0] i2c5, freq=100000
[00010344] [c0] sprd_chg: bq2560x_read_reg reg = 0x5, value = 143/0x8f
[00010344] [c0] i2c5, freq=100000
[00010347] [c0] sprd_chg: sprdchg_bq2560x_init
[00010347] [c0] pmic efuse wait 4
[00010351] [c0] pmic efuse wait 2
[00010355] [c0] pmic efuse read 18,val=0x8a8a
[00010358] [c0] pmic efuse read bits 288 ++ 16 0x00008a8a
[00010363] 
[00010363] [c0] get pmic efuse block 18, deta: 0x00008a8a
[00010367] [c0] sprd_chg: adc_para from efuse is 0xd881068 0xb9c0e10 
[00010367] [c0] pmic efuse wait 4
[00010371] [c0] pmic efuse wait 2
[00010375] [c0] pmic efuse read 3,val=0x7d55
[00010378] [c0] pmic efuse read bits 48 ++ 9 0x00000155
[00010382] 
[00010382] [c0] sprd_chg: fgu_cal_get 4.2 data data: 0x155
[00010382] [c0] sprd_chg: fgu_data: 0xb88
[00010382] [c0] sprd_chg: sprdfgu: one point
[00010382] [c0] sprd_chg: 4200mv=2952, 3600mv=0
[00010382] [c0] sprd_chg: fgu_cal.vol_1000mv_adc=703, vol_offset=0
[00010736] [c0] sprd_chg: chg_bq2560x_init
[00010736] [c0] sprd_chg: eica status bat1
[00010739] [c0] sprd_chg: sprdbat_init keep_charge = 0
[00010743] [c0] i2c5, freq=100000
[00010747] [c0] sprd_chg: bq2560x_read_reg reg = 0x0, value = 4/0x4
[00010747] [c0] i2c5, freq=100000
[00010750] [c0] i2c5, freq=100000
[00010754] [c0] sprd_chg: bq2560x_read_reg reg = 0x2, value = 161/0xa1
[00010754] [c0] i2c5, freq=100000
[00010757] [c0] sprd_chg: chg_bq2560x_disable_chg
[00010757] [c0] i2c5, freq=100000
[00010761] [c0] sprd_chg: bq2560x_read_reg reg = 0x1, value = 26/0x1a
[00010761] [c0] i2c5, freq=100000
[00010764] [c0] sprd_chg: bq2560x_set_power_path val = 0
[00010764] [c0] i2c5, freq=100000
[00010768] [c0] sprd_chg: bq2560x_read_reg reg = 0x0, value = 9/0x9
[00010768] [c0] i2c5, freq=100000
[00010771] [c0] i2c5, freq=100000
[00010775] [c0] sprd_chg: bq2560x_read_reg reg = 0x5, value = 143/0x8f
[00010775] [c0] i2c5, freq=100000
[00010778] [c0] CHG init OK!
[00010778] [c0] initializing apps
[00010778] [c0] SCSI Command error, sense data=0x6, see more in SPEC 10.5.4
[00010786] [c0] abc offset: 2048, size: 32
[00010787] [c0] ANDROID: Loaded ABC control from misc, size: 32
[00010787] [c0] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00010796] [c0] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00010796] [c0] ANDROID: Booting slot_a
[00010801] [c0] power_button_pressed status 1
[00010802] [c0] get enter_download flag :
[00010805] [c0] ==== in  [get_mode_from_chipram_env] 
[00010805] [c0] get boot mode in boot func array[0]
[00010805] [c0] enter boot mode g_mode_str[3]:DOWNLOAD_MODE
[00010809] [c0] download mode!
[00010811] [c0] Watch Dog Trace: WDG_TimerStop
[00010814] [c0] do_download:enter
[00010814] [c0] abc offset: 2048, size: 32
[00010815] [c0] ANDROID: Loaded ABC control from misc, size: 32
[00010815] [c0] ANDROID: bootable slot 0 priority: 15, tries_remaining: 7, verity_corrupted: 0, successful_boot: 1
[00010824] [c0] ANDROID: unbootable slot 1 tries_remaining: 0, verity_corrupted: 0
[00010824] [c0] ANDROID: Booting slot_a
[00010954] [c0] now time sec 0
[00010955] [c0] now alarm sec 0
[00010957] [c0] download buffer base 0xc0000000, size 40000000
[00010957] alter buffer1 base 0x92000000, size 200000
[00010957] alter buffer2 base 0x92200000, size 200000
[00010957] [c0] [do_download] pre init is ok
[00010957] [c0] [do_download] register cmd process function is ok
[00010958] [c0] read timestamp magic(0) incorrect.
[00010961] [c0] dl_cmd_handler:enter
[00010963] [c0] packet->body.size:0x4c, image size:0x100000
[00010963] [c0] partition_name=l_fixnv1_a,size=0x100000
[00010963] [c0] partition l_fixnv1_a image type is 0,partitionpurpose:1
[00010963] [c0] get partition slot: l_fixnv1_b
[00010963] [c0] fixnv download status:PAC_WITH_SLOT_AB | DEVICE_WITH_SLOT_AB
[00010963] [c0] repair nv img with partition : l_fixnv1_a
[00011017] [c0] fdl_check_crc  calcout = 0xcc39,org = 0xcc39
[00011017] [c0] fdl_check_crc  calcout = 0xcc39,org = 0xcc39,len=0x0,chkflag=0x0
[00011017] [c0] read origin nv image success and crc correct
[00011017] [c0] partition_name is l_fixnv1_a
[00011031] [c0] fdl_check_crc  calcout = 0xcc39,org = 0xcc39
[00011031] [c0] fdl_check_crc  calcout = 0xcc39,org = 0xcc39,len=0x0,chkflag=0x0
[00011031] [c0] read backup nv image success and crc correct
[00011031] [c0] both org and bak nv partition are ok
[00011031] [c0] partition_name is l_fixnv1_a, ret = 1
[00011031] [c0] operate result =1,send ack
s*s