欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【XBL 无法开机问题】sdm660 XBL的BDS阶段,绕过charger检测,强制启动

程序员文章站 2022-07-01 17:42:20
...

背景:在板子还没回来之前,使用工位机调试时,遇到无法开机问题,死在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 Load, Start
D -      2867 - Auth Metadata
D -      1373 - Segments hash check
D -     11376 - ABL Image Loaded, Delta - (146000 Bytes)
B -   2351245 - Image Load, Start
D -      3477 - Auth Metadata
D -     13878 - Segments hash check
D -     37789 - APPSBL Image Loaded, Delta - (1792000 Bytes)
B -   2391444 - SBL1, End
D -   2119537 - SBL1, Delta
S - Flash Throughput, 83000 KB/s  (4465452 Bytes,  53394 us)
S - DDR Frequency, 1296 MHz


UEFI Start     [ 2568] SEC
PROD Mode   : On
DEBUG Mode : On
ASLR        : On
Timer Delta : +7 mS
RAM Entry 0 : Base 0x0000000040000000  Size 0x0000000060000000
RAM Entry 1 : Base 0x00000000A0000000  Size 0x000000005E9C0000
UEFI Ver    : 4.2.191220.BOOT.XF.1.4-00277-S660LZB-1
Build Info  : 64b Dec 20 2019 17:35:06
Boot Device : eMMC
DALLOG Device [0x2000145]: Cannot turn on source[ACPL
CheckPanelOverride
MDP_Display_GetVariable
Render Splash  [ 4572]
EnvDxe Render Callback
LoadSecureApps: Load app from partition(keymaster): Status = 0x0, AppId = 65537
APC1 IDDQ WC 0 , L2:0, CPU[0]:175, CPU[1]:175, CPU[2]:175, CPU[3]:175
 APC1 Total 700
Load CPU 0 Slp: 0x9A, Int: 0xFFFFFFCB
Load CPU 1 Slp: 0x1, Int: 0x0
Load CPU 2 Slp: 0xC2, Int: 0x1E
Load CPU 3 Slp: 0x1, Int: 0x0
GLD IDDQ WC 0
CPU PART GOOD [0x0] SUB_BIN[0x0]
-----------------------------
Platform Init  [ 4710] BDS
UEFI Ver   : 4.2.191220.BOOT.XF.1.4-00277-S660LZB-1
Platform   : MTP
Chip Name  : SDM660
Chip Ver   : 1.0
Core 0 Freq: 1382400 MHz
-----------------------------
[ethan] LaunchDefaultBDSApps start
[ethan] GetConfigString start
[ethan] LaunchAppFromGuidedFv start
[ethan] LoadImage start
[ethan] StartImage start
BDS: LogFs sync skipped, Unsupported
App Log Flush : 0 ms

[END]

 

1. 编译debug版本 XBL,发现是电池检测异常

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

报错提示:PM: BOOTUP, NO Battery

B -         0 - PBL, Start
B -      7027 - bootable_media_detect_entry, Start
B -     69760 - bootable_media_detect_success, Start
B -     69765 - elf_loader_entry, Start
B -     71329 - auth_hash_seg_entry, Start
B -     71660 - auth_hash_seg_exit, Start
B -    122045 - elf_segs_hash_verify_entry, Start
B -    171770 - elf_segs_hash_verify_exit, Start
B -    171783 - auth_xbl_sec_hash_seg_entry, Start
B -    200947 - auth_xbl_sec_hash_seg_exit, Start
B -    200949 - xbl_sec_segs_hash_verify_entry, Start
B -    207757 - xbl_sec_segs_hash_verify_exit, Start
B -    207806 - PBL, End
B -    233874 - SBL1, Start
B -    358070 - usb: hs_phy_nondrive_start
B -    358405 - usb: hs_phy_nondrive_finish
B -    361272 - boot_flash_init, Start
D -        30 - boot_flash_init, Delta
B -    368653 - sbl1_ddr_set_default_params, Start
D -       152 - sbl1_ddr_set_default_params, Delta
B -    376614 - boot_config_data_table_init, Start
B -    395493 - Using default CDT
D -     14365 - boot_config_data_table_init, Delta - (0 Bytes)
B -    397415 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    402874 - Image Load, Start
D -       702 - Auth Metadata
D -       458 - Segments hash check
D -     12566 - PMIC Image Loaded, Delta - (34416 Bytes)
B -    418765 - pm_device_init, Start
B -    425963 - PM: PON REASON: PM0=0x8000028000000080:0x0 PM1=0x8000088000000020:0x0 
B -    469029 - PM: SET_VAL:Skip
D -     46512 - pm_device_init, Delta
B -    470950 - pm_driver_init, Start
B -    478026 - PM: OCP Clearing for L4A is Skipped :PM660 is not supported the LDO4
D -      4117 - pm_driver_init, Delta
B -    485194 - pm_sbl_chg_init, Start
B -    489799 - PM: ERROR: Invalid adcResult.eStatus
B -    491965 - PM: BOOTUP, NO Battery

 

2. 修改XBL代码,绕过电池检测。

//BOOT.XF.1.4/boot_images/QcomPkg/Drivers/QcomChargerDxe/QcomChargerPlatform.c


EFI_STATUS ChargerPlatform_TakeAction(QCOM_CHARGER_PLATFORM_ACTION_TYPE ChargingAction, CONST QCOM_CHARGER_PLATFORM_ACTION_INFO *pChargerActionInfo)
{
  QCOM_CHARGER_BATT_STATUS_INFO CurrentBatteryStatus = {0};
  STATIC BOOLEAN bToggleLed = TRUE;

  if(!pChargerActionInfo)
  {
    CHARGER_DEBUG(( EFI_D_WARN, "QcomChargerDxe:: %a Invalid parameter \r\n", __FUNCTION__));
    return EFI_INVALID_PARAMETER;
  }

  CurrentBatteryStatus = (QCOM_CHARGER_BATT_STATUS_INFO)pChargerActionInfo->BattStsInfo;

+  ChargingAction = QCOM_CHARGER_PLATFORM_ACTION_GOOD_TO_BOOT;
  switch (ChargingAction)
  {
    case QCOM_CHARGER_PLATFORM_ACTION_CRITICAL:
         //print out and flush critical error messages 
         //Perform AFP
         CHARGER_FILE_UART_DEBUG((EFI_D_WARN, "QcomChargerDxe::%a Critical Error occurred. Shutting down \r\n", __FUNCTION__));
         ChargerLib_ForceSysShutdown(CHGAPP_RESET_AFP);
         break;

    case QCOM_CHARGER_PLATFORM_ACTION_SHUTDOWN:
         //print error message and trigger system shutdown
         //These errors will only be checked and handled when battery voltage is not high enough to boot and uefi charging is needed.
         CHARGER_FILE_UART_DEBUG((EFI_D_WARN, "QcomChargerDxe::%a Waiting for %d s \r\n", __FUNCTION__, QCOM_CHARGER_IDLE_WAIT_DURATION/QCOM_CHARGER_MS_TO_S));
         WaitForTimeout (QCOM_CHARGER_IDLE_WAIT_DURATION, TIMEOUT_WAIT_FOR_KEY, NULL);
         ChargerLib_ForceSysShutdown(CHGAPP_RESET_SHUTDOWN);
         break;

...
...

    case QCOM_CHARGER_PLATFORM_ACTION_GOOD_TO_BOOT:
        /* Assign Exit voltage and soc */
        gChargerSharedInfo.uefi_exit_mV    = CurrentBatteryStatus.BatteryVoltage;
        if (gChargerPlatformCfgData.FgCfgData.LoadBatteryProfile == TRUE)
        {
          gChargerSharedInfo.uefi_exit_soc = CurrentBatteryStatus.StateOfCharge;
        }
        else
        {
          gChargerSharedInfo.uefi_exit_soc   = QCOM_CHARGER_INVALID_VALUE_MARKER;
        }
        CHARGER_DEBUG(( EFI_D_WARN, "QcomChargerDxe:: %a Saving Exit VBat = %d Soc = %d \r\n", __FUNCTION__,
                         CurrentBatteryStatus.BatteryVoltage, CurrentBatteryStatus.StateOfCharge));
        /* Save Smem Info ignoring return status as XBL loader changes are not ready yet*/
        ChargerPlatform_SaveChargeInfoToSmem(&gChargerSharedInfo);
        if (gChargerPlatformCfgData.WiPowerCfgData.WipowerEnabled)
        {
          if (gChargerPlatformCfgData.WiPowerCfgData.DCINDisableOnExit)
        {
          //suspend DCIn when wipower flags are set.
          (void)ChargerLib_DcinSuspend(TRUE);
        }
          if (QCOM_CHARGER_PLATFORM_CHARGER_ATTACHED_DCIN == pChargerActionInfo->ChargerAttached)
          {
            (void)ChargerLib_ToggleWipowerShutDownLatch();
          }
        }

        /* Turn Off Charging */
        bToggleLed = FALSE;
        ChargerLib_LedOn(bToggleLed);
        break;

 

3. 强制启动成功,PBL-->XBL-->ABL(LinuxLoader)->Linux

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 = 0x2c659881
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 -     69760 - bootable_media_detect_success, Start
B -     69765 - elf_loader_entry, Start
B -     71329 - auth_hash_seg_entry, Start
B -     71660 - auth_hash_seg_exit, Start
B -    122045 - elf_segs_hash_verify_entry, Start
B -    171770 - elf_segs_hash_verify_exit, Start
B -    171783 - auth_xbl_sec_hash_seg_entry, Start
B -    200947 - auth_xbl_sec_hash_seg_exit, Start
B -    200949 - xbl_sec_segs_hash_verify_entry, Start
B -    207757 - xbl_sec_segs_hash_verify_exit, Start
B -    207806 - PBL, End
B -    233874 - SBL1, Start
B -    358070 - usb: hs_phy_nondrive_start
B -    358405 - usb: hs_phy_nondrive_finish
B -    361272 - boot_flash_init, Start
D -        30 - boot_flash_init, Delta
B -    368653 - sbl1_ddr_set_default_params, Start
D -       152 - sbl1_ddr_set_default_params, Delta
B -    376614 - boot_config_data_table_init, Start
B -    395493 - Using default CDT
D -     14365 - boot_config_data_table_init, Delta - (0 Bytes)
B -    397415 - CDT Version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    402874 - Image Load, Start
D -       702 - Auth Metadata
D -       458 - Segments hash check
D -     12566 - PMIC Image Loaded, Delta - (34416 Bytes)
B -    418765 - pm_device_init, Start
B -    425963 - PM: PON REASON: PM0=0x8000028000000080:0x0 PM1=0x8000088000000020:0x0 
B -    469029 - PM: SET_VAL:Skip
D -     46512 - pm_device_init, Delta
B -    470950 - pm_driver_init, Start
B -    478026 - PM: OCP Clearing for L4A is Skipped :PM660 is not supported the LDO4
D -      4117 - pm_driver_init, Delta
B -    485194 - pm_sbl_chg_init, Start
B -    489799 - PM: ERROR: Invalid adcResult.eStatus
B -    491965 - PM: BOOTUP, NO Battery
D -      8235 - pm_sbl_chg_init, Delta
B -    500017 - vsense_init, Start
D -         0 - vsense_init, Delta
B -    576572 - Pre_DDR_clock_init, Start
D -       396 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    588314 - DSF version = 37.0, DSF RPM version = 22.0
B -    588345 - Max Frequency = 1804 MHz
B -    592523 - do_ddr_training, Start
B -    604784 - Bootup frequency set to 1296000
D -      8784 - do_ddr_training, Delta
B -    624701 - clock_init, Start
D -       305 - clock_init, Delta
B -    627141 - Image Load, Start
D -      2531 - APDP Image Loaded, Delta - (0 Bytes)
B -    632722 - usb: EMMC Serial - c153d41d
B -    637511 - usb: fedl, vbus_low
B -    644739 - PM: 0: PON=0x80:KPDPWR_N: ON=0x80:PON_SEQ: POFF=0x2:PS_HOLD: OFF=0x80:POFF_SEQ
B -    644800 - PM: 1: PON=0x20:PON1: ON=0x80:PON_SEQ: POFF=0x8:GP1: OFF=0x80:POFF_SEQ
B -    652761 - PM: SMEM Chgr Info Write Success
B -    660447 - sbl1_efs_handle_cookies, Start
D -       701 - sbl1_efs_handle_cookies, Delta
B -    668956 - Image Load, Start
D -      2806 - Auth Metadata
D -       823 - Segments hash check
D -     10401 - QSEE Dev Config Image Loaded, Delta - (42076 Bytes)
B -    682224 - Image Load, Start
D -       610 - SEC Image Loaded, Delta - (4096 Bytes)
B -    691099 - Image Load, Start
D -     23485 - Auth Metadata
D -     18452 - Segments hash check
D -     64446 - QSEE Image Loaded, Delta - (1949080 Bytes)
B -    757315 - Image Load, Start
D -      2837 - Auth Metadata
D -      3813 - Segments hash check
D -     16928 - QHEE Image Loaded, Delta - (273136 Bytes)
B -    776194 - Image Load, Start
D -      2958 - Auth Metadata
D -      2043 - Segments hash check
D -     16257 - RPM Image Loaded, Delta - (219436 Bytes)
B -    795165 - Image Load, Start
D -      4392 - STI Image Loaded, Delta - (0 Bytes)
B -    803034 - Image Load, Start
D -      2867 - Auth Metadata
D -      1372 - Segments hash check
D -     11255 - ABL Image Loaded, Delta - (146000 Bytes)
B -    816607 - Image Load, Start
D -      3446 - Auth Metadata
D -     13878 - Segments hash check
D -     44012 - APPSBL Image Loaded, Delta - (1792000 Bytes)
B -    862997 - SBL1, End
D -    634034 - SBL1, Delta
S - Flash Throughput, 78000 KB/s  (4465452 Bytes,  56781 us)
S - DDR Frequency, 1296 MHz


UEFI Start     [ 1038] SEC
PROD Mode   : Off
DEBUG Mode : On
ASLR        : On
Timer Delta : +7 mS
RAM Entry 0 : Base 0x0000000040000000  Size 0x0000000060000000
RAM Entry 1 : Base 0x00000000A0000000  Size 0x000000005E9C0000
CONF File   : uefiplatLA.cfg
UEFI Ver    : 4.2.191224.BOOT.XF.1.4-00277-S660LZB-1
Build Info  : 64b Dec 24 2019 09:12:10
Boot Device : eMMC
 - 0x09C3D7000 [ 1109] DxeCore.efi
Loading DxeCore at 0x009C3D7000 EntryPoint=0x009C3D8840
HOBLIST address in DXE = 0x9C1C8018
FV Hob            0x9FC00000 - 0x9FDB57FF
FV Hob            0x9C886000 - 0x9CCECFFF
FV2 Hob           0x9C886000 - 0x9CCECFFF
 - 0x09C374000 [ 1118] EnvDxe.efi
 - 0x09C36C000 [ 1118] ReportStatusCodeRouterRuntimeDxe.efi
 - 0x09C363000 [ 1119] StatusCodeHandlerRuntimeDxe.efi
 - 0x09BC78000 [ 1119] RuntimeDxe.efi
 - 0x09C353000 [ 1120] ArmCpuDxe.efi
 - 0x09C34B000 [ 1121] ArmGicDxe.efi
 - 0x09C344000 [ 1127] ArmTimerDxe.efi
 - 0x09C33D000 [ 1128] WatchdogTimer.efi
 - 0x09C323000 [ 1128] SecurityDxe.efi
 - 0x09C31A000 [ 1129] ASN1X509Dxe.efi
 - 0x09C311000 [ 1129] SecRSADxe.efi
 - 0x09C303000 [ 1129] VerifiedBootDxe.efi
 - 0x09C2FB000 [ 1130] SmemDxe.efi
 - 0x09C2D3000 [ 1130] DALSys.efi
 - 0x09C2CB000 [ 1131] HWIODxeDriver.efi
 - 0x09C2C2000 [ 1131] ChipInfo.efi
 - 0x09C2BB000 [ 1132] PlatformInfoDxeDriver.efi
 - 0x09C2B4000 [ 1132] MetronomeDxe.efi
 - 0x09C2A8000 [ 1133] GlinkDxe.efi
 - 0x09C295000 [ 1133] ULogDxe.efi
 - 0x09C27C000 [ 1134] NpaDxe.efi
 - 0x09C25E000 [ 1134] ClockDxe.efi
DALLOG Device [0x2000145]: Cannot turn on source[ACPL
 - 0x09C256000 [ 1146] DiskIoDxe.efi
 - 0x09C24B000 [ 1147] PartitionDxe.efi
 - 0x09BC08000 [ 1147] SdccDxe.efi
 - 0x09C235000 [ 1168] UFSDxe.efi
 - 0x09C226000 [ 1169] Fat.efi
 - 0x09C21F000 [ 1169] EnglishDxe.efi
 - 0x09C215000 [ 1170] FvSimpleFileSystem.efi
 - 0x09C208000 [ 1170] QdssDxe.efi
 - 0x09BB83000 [ 1171] EmuVariableRuntimeDxe.efi
 - 0x09BB7C000 [ 1171] EmbeddedMonotonicCounter.efi
 - 0x09BB8D000 [ 1172] ResetRuntimeDxe.efi
 - 0x09BB6B000 [ 1172] RealTimeClock.efi
 - 0x09C1FF000 [ 1173] PrintDxe.efi
 - 0x09C1ED000 [ 1173] DevicePathDxe.efi
 - 0x09BB55000 [ 1174] CapsuleRuntimeDxe.efi
 - 0x09BB14000 [ 1174] HiiDatabase.efi
 - 0x09C1E4000 [ 1175] FontDxe.efi
 - 0x09BA81000 [ 1181] QcomBds.efi
 - 0x09C1DB000 [ 1182] DALTLMM.efi
 - 0x09C1D0000 [ 1183] I2C.efi
 - 0x09BB0C000 [ 1183] SPMI.efi
 - 0x09BAF1000 [ 1184] SPI.efi
 - 0x09B9F3000 [ 1185] PmicDxe.efi
 - 0x09BAC7000 [ 1190] AdcDxe.efi
 - 0x09BA2B000 [ 1191] QcomChargerDxeLA.efi
 Locate SCM Protocol failed, Status =  (0xE)
Mounting FAT Volume: logfs
 Locate SCM Protocol failed, Status =  (0xE)
PmicDxe:: PmicFgSram_SramHealthy SRAM contents are good 
 - 0x09B959000 [ 2753] UsbfnDwc3Dxe.efi
 - 0x09B94B000 [ 2754] UsbConfigDxe.efi
 - 0x09B981000 [ 2755] SimpleTextInOutSerial.efi
 - 0x09B970000 [ 2755] ConPlatformDxe.efi
 - 0x09B932000 [ 2756] ConSplitterDxe.efi
 - 0x09B927000 [ 2757] GraphicsConsoleDxe.efi
 - 0x09B978000 [ 2758] ButtonsDxe.efi
 - 0x09B920000 [ 2758] TsensDxe.efi
 - 0x09B8AD000 [ 2759] DisplayDxe.efi
Mounting FAT Volume: logfs
 Locate SCM Protocol failed, Status =  (0xE)
DisplayUtils: mount logfs system failed with status 14!
Mounting FAT Volume: logfs
 Locate SCM Protocol failed, Status =  (0xE)
DisplayUtils: mount logfs system failed with status 14!
CheckPanelOverride
MDP_Display_GetVariable
Mounting FAT Volume: logfs
 Locate SCM Protocol failed, Status =  (0xE)
DisplayUtils: mount logfs system failed with status 14!
MDPLib : SetClockFreqHz: Clock "mmss_mdss_axi_clk" to 240000000Hz returned an error!
DisplayDxe: Panel ID:0x00000000 (detection time: 0ms) [LCD] 
uDynamicBitClkFreq[0]=798240576
uDynamicBitClkFreq[1]=801594528
uDynamicBitClkFreq[2]=804948480
uDynamicBitClkFreq[3]=808302432
uDynamicBitClkFreq[4]=811656384
Dynamic refresh calibration: DeviceId=0, cost_time=6243 us
uDynamicBitClkFreq[0]=798240576
uDynamicBitClkFreq[1]=801594528
uDynamicBitClkFreq[2]=804948480
uDynamicBitClkFreq[3]=808302432
uDynamicBitClkFreq[4]=811656384
Dynamic refresh calibration: DeviceId=1, cost_time=5490 us
Render Splash  [ 3155]
EnvDxe Render Callback
 - 0x09B6C1000 [ 3156] TzDxe.efi
Mounting FAT Volume: tzapps
AppReg Init:7 mS
LoadSecureApps: Load app from partition(keymaster): Status = 0x0, AppId = 65537
 - 0x09B534000 [ 3267] LimitsDxe.efi
APC1 IDDQ WC 0 , L2:0, CPU[0]:175, CPU[1]:175, CPU[2]:175, CPU[3]:175
 APC1 Total 700
Load CPU 0 Slp: 0x90, Int: 0x8
Load CPU 1 Slp: 0x1, Int: 0x0
Load CPU 2 Slp: 0xCA, Int: 0xFFFFFFCB
Load CPU 3 Slp: 0x1, Int: 0x0
GLD IDDQ WC 0
CPU PART GOOD [0x0] SUB_BIN[0x0]
 - 0x09B8E6000 [ 3270] MdtpDxe.efi
 - 0x09B510000 [ 3271] HashDxe.efi
 - 0x09B523000 [ 3272] RngDxe.efi
 - 0x09B509000 [ 3272] MpPowerDxe.efi
 - 0x09B4FA000 [ 3273] ChargerExDxe.efi
 - 0x09B4DF000 [ 3273] UsbMsdDxe.efi
 - 0x09B4D3000 [ 3274] UsbDeviceDxe.efi
-----------------------------
Platform Init  [ 3294] BDS
UEFI Ver   : 4.2.191224.BOOT.XF.1.4-00277-S660LZB-1
Platform   : MTP
Chip Name  : SDM660
Chip Ver   : 1.0
Core 0 Freq: 1382400 MHz
Mounting FAT Volume: logfs
-----------------------------
[ethan] LaunchDefaultBDSApps start
[ethan] GetConfigString start
[ethan] LaunchAppFromGuidedFv start
[ethan] LoadImage start
 - 0x09B3E2000 [ 3302] QcomChargerApp.efi
[ethan] StartImage start
[ethan] StartImage end
[ethan] LaunchAppFromGuidedFv end
[ethan] GetConfigString start
[ethan] DisplayPOSTTime start
UEFI Total : 4292 ms
POST Time      [ 5330] OS Loader
[ethan] LaunchAppFromGuidedFv start
[ethan] LoadImage start
 - 0x09B269000 [ 5331] LinuxLoader.efi
[ethan] StartImage start
Loader Build Info: Dec  2 2019 19:20:48
VB: RWDeviceState: Succeed using devinfo!
yxw reading key status: 3
Booting from slot (_a)
Loading Image Start : 5338 ms
Loading Image Done : 5338 ms
Total Image Read size : 4096 Bytes
Loading Image Start : 5338 ms
Loading Image Done : 5661 ms
Total Image Read size : 55328768 Bytes
Loading Image Start : 5662 ms
Loading Image Done : 5711 ms
Total Image Read size : 8388608 Bytes
VB: DeviceInit: Device is unlocked! Skipping verification!
VB: VerifyImage: Image verification done! boot state is: ORANGE
VB:VerifyImage time spent: 0 mS
Device will boot into normal mode
No Ffbm cookie found, ignore: Not Found
Memory Base Address: 0x40000000
Decompressing kernel image start: 5727 ms
Decompressing kernel image done: 6184 ms
Dtbo hdr magic mismatch 0, with D7B7AB1E
Best match DTB tags 317/00000008/0x00000000/0/1001B/102001A/0/0/(offset)0x9AA7E7F3/(size)0x0004FC8B
Using pmic info 0x1001B/0x102001A/0x0/0x0 for device 0x2001B/0x102001A/0x0/0x0
Memory Base Address: 0x40000000
 PON Reason is 128 cold_boot:1 charger path: 0
Cmdline: console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_l
RAM Partitions
Add Base: 0x0000000040000000 Available Length: 0x0000000060000000 
Add Base: 0x00000000A0000000 Available Length: 0x000000005E9C0000 
WARNING: Could not find mem-offline node.
kaslr-Seed is added to chosen node

Shutting Down UEFI Boot Services: 6264 ms
BDS: LogFs sync skipped, Unsupported
App Log Flush : 11 ms
Exit BS        [ 6278] UEFI End
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Initializing cgroup subsys schedtune
[    0.000000] Linux version 4.4.153 ([email protected]) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Dec 17 18:15:39 CST 2019
[    0.000000] Boot CPU: AArch64 Processor [51af8014]
[    0.000000] Machine: Qualcomm Technologies, Inc. SDM 660 PM660 + PM660L MTP
[    0.000000] earlycon: Early serial console at MMIO 0xc170000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.

 

相关标签: qcom bootloader