【XBL 无法开机问题】【工位机调试】sdm660 XBL阶段,绕过电池在位检测,强制启动

在使用工位机调试SDM660芯片的设备时,遇到XBL阶段无法开机的问题,死在BDS阶段。通过编译debug版本XBL,发现是由于电池检测异常导致。为解决此问题,修改了XBL代码以绕过电池在位检测,并成功实现强制启动,从PBL到ABL再到LinuxLoader,设备顺利启动。
摘要由CSDN通过智能技术生成

背景:在板子还没回来之前,使用工位机调试时,遇到无法开机问题,死在XBL的BDS阶段了。

 

0.编译release版本 XBL,无法开机,死在XBL的BDS阶段。

python -u boot_images/QcomPkg/buildit.py --variant LA -r RELEASE -t Sdm660Pkg, QcomToolsPkg

python -u boot_images/QcomPkg/buildit.py --variant LA -r RELEASE -t Sdm660Pkg, QcomToolsPkg --build_flags=cleanall

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.XF.1.4-00277-S660LZB-1
S - IMAGE_VARIANT_STRING=Sdm660LA
S - OEM_IMAGE_VERSION_STRING=ubuntu-dell
S - Boot Interface: eMMC
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x000001c1
S - JTAG ID @ 0x00786130 = 0x0008c0e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00784138 = 0xc672d1ab
S - OEM Config Row 0 @ 0x00784188 = 0x0000000000000000
S - OEM Config Row 1 @ 0x00784190 = 0x0000000000000000
S - Feature Config Row 0 @ 0x007841a0 = 0x0050200010f80000
S - Feature Config Row 1 @ 0x007841a8 = 0x00000000000000c0
S - Core 0 Frequency, 3715 MHz
S - PBL Patch Ver: 5
S - I-cache: On
S - D-cache: On
B -         0 - PBL, Start
B -      7027 - bootable_media_detect_entry, Start
B -    112452 - bootable_media_detect_success, Start
B -    112458 - elf_loader_entry, Start
B -    114098 - auth_hash_seg_entry, Start
B -    114429 - auth_hash_seg_exit, Start
B -    164996 - elf_segs_hash_verify_entry, Start
B -    214707 - elf_segs_hash_verify_exit, Start
B -    214720 - auth_xbl_sec_hash_seg_entry, Start
B -    243887 - auth_xbl_sec_hash_seg_exit, Start
B -    243889 - xbl_sec_segs_hash_verify_entry, Start
B -    250699 - xbl_sec_segs_hash_verify_exit, Start
B -    250747 - PBL, End
B -    276787 - SBL1, Start
B -    400922 - usb: hs_phy_nondrive_start
B -    401258 - usb: hs_phy_nondrive_finish
B -    404125 - boot_flash_init, Start
D -         0 - boot_flash_init, Delta
B -    411475 - sbl1_ddr_set_default_params, Start
D -       122 - sbl1_ddr_set_default_params, Delta
B -    419466 - boot_config_data_table_init, Start
B -    438651 - Using default CDT
D -     14670 - boot_config_data_table_init, Delta - (0 Bytes)
B -    440572 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    446032 - Image Load, Start
D -       701 - Auth Metadata
D -       458 - Segments hash check
D -     12566 - PMIC Image Loaded, Delta - (34416 Bytes)
B -    461922 - pm_device_init, Start
B -    469120 - PM: PON REASON: PM0=0x400008000000080:0x0 PM1=0x400008000000020:0x0 
B -    511576 - PM: SET_VAL:Skip
D -     45902 - pm_device_init, Delta
B -    513498 - pm_driver_init, Start
B -    520635 - PM: OCP Clearing for L4A is Skipped :PM660 is not supported the LDO4
D -      4209 - pm_driver_init, Delta
B -    527711 - pm_sbl_chg_init, Start
B -    533262 - PM: Trigger FG IMA Reset
B -    534604 - PM: Trigger FG IMA Reset.Completed
B -    539453 - PM: EntryVbat: 3671; EntrySOC: -1
B -   1541988 - PM: BATT TEMP: -10 DegC
B -   2041792 - PM: Vbatt: 3671;  JETTA Temp limit exceeded...
D -   1510878 - pm_sbl_chg_init, Delta
B -   2046153 - vsense_init, Start
D -         0 - vsense_init, Delta
B -   2111454 - Pre_DDR_clock_init, Start
D -       396 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -   2123196 - DSF version = 37.0, DSF RPM version = 22.0
B -   2123227 - Max Frequency = 1804 MHz
B -   2127405 - do_ddr_training, Start
B -   2139727 - Bootup frequency set to 1296000
D -      8814 - do_ddr_training, Delta
B -   2159583 - clock_init, Start
D -       274 - clock_init, Delta
B -   2162145 - Image Load, Start
D -      2440 - APDP Image Loaded, Delta - (0 Bytes)
B -   2167635 - usb: EMMC Serial - c153d41a
B -   2172393 - usb: fedl, vbus_low
B -   2179621 - PM: 0: PON=0x80:KPDPWR_N: ON=0x80:PON_SEQ: OFF=0x4:RAW_XVDD_SHD
B -   2179713 - PM: 1: PON=0x20:PON1: ON=0x80:PON_SEQ: OFF=0x4:RAW_XVDD_SHD
B -   2186606 - PM: SMEM Chgr Info Write Success
B -   2193346 - sbl1_efs_handle_cookies, Start
D -       823 - sbl1_efs_handle_cookies, Delta
B -   2201612 - Image Load, Start
D -      2806 - Auth Metadata
D -       824 - Segments hash check
D -     10583 - QSEE Dev Config Image Loaded, Delta - (42076 Bytes)
B -   2214879 - Image Load, Start
D -       732 - SEC Image Loaded, Delta - (4096 Bytes)
B -   2223724 - Image Load, Start
D -     23485 - Auth Metadata
D -     18453 - Segments hash check
D -     65880 - QSEE Image Loaded, Delta - (1949080 Bytes)
B -   2291373 - Image Load, Start
D -      2836 - Auth Metadata
D -      3812 - Segments hash check
D -     17141 - QHEE Image Loaded, Delta - (273136 Bytes)
B -   2310497 - Image Load, Start
D -      2928 - Auth Metadata
D -      2043 - Segments hash check
D -     16409 - RPM Image Loaded, Delta - (219436 Bytes)
B -   2329712 - Image Load, Start
D -      4270 - STI Image Loaded, Delta - (0 Bytes)
B -   2337611 - Image Lo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值