Hardware initialization during a secure Boot process

-2

I was trying to understand the things that happen during a booting during a secure boot. I could understand that a Primary Bootloader code from the ROM is first loaded and executed, which calls the Secondary Bootloader , which in turn calls the (APPSBL) application bootloader, is it LK (Little Kernel) of Android loaded as part of application bootloader ?. I am trying to understand the hardware components that are initialised during the process.

    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.3.0-00435-SM8150LZB-2
    S - IMAGE_VARIANT_STRING=SDM855LA
    S - OEM_IMAGE_VERSION_STRING=c4-miui-ota-bd64.bj
    S - Boot Interface: UFS
    S - Secure Boot: On 
    S - Boot Config @ 0x00786070 = 0x00000001
    S - JTAG ID @ 0x00786130 = 0x300a50e1
    S - OEM ID @ 0x00786138 = 0x00720000
    S - Serial Number @ 0x00786134 = 0x0a0fa2b6
    S - Feature Config Row 0 @ 0x007841a0 = 0x0040200000000400
    S - Feature Config Row 1 @ 0x007841a8 = 0xc00280ba000a0000
    S - Core 0 Frequency, 1478 MHz
    S - PBL Patch Ver: 3
    S - PBL freq: 600 MHZ
    D -      5217 - pbl_apps_init_timestamp
    D -     49160 - bootable_media_detect_timestamp
    D -      1004 - bl_elf_metadata_loading_timestamp
    D -     11123 - bl_hash_seg_auth_timestamp
    D -     11863 - bl_elf_loadable_segment_loading_timestamp
    D -      5038 - bl_elf_segs_hash_verify_timestamp
    D -      8260 - bl_sec_hash_seg_auth_timestamp
    D -       744 - bl_sec_segs_hash_verify_timestamp
    D -        29 - pbl_populate_shared_data_and_exit_timestamp
    S -     92438 - PBL, End
    B -    111965 - SBL1, Start
    B -    217343 - SBL1 BUILD @ 00:09:30 on Jul  9 2019
    B -    220972 - boot_flash_init, Start
    D -         0 - boot_flash_init, Delta
    B -    228323 - xblconfig_init, Start
    B -    344741 - UFS INQUIRY ID: WDC     SDINDDH4-64G    1254
    D -      6923 - Auth Metadata
    D -    145485 - xblconfig_init, Delta
    B -    378535 - boot_config_data_table_init, Start
    B -    382134 - CDT not programmed, using default
    D -      4636 - boot_config_data_table_init, Delta - (54 Bytes)
    B -    396927 - CDT Version:3,Platform ID:37,Major ID:1,Minor ID:0,Subtype:0
    B -    407663 - pm_device_init, Start
    B -    413092 - PM: PM 0=0x80000280000000c1:0x0 
    B -    413153 - PM: PM 1=0x8000018000000040:0x0 
    B -    417606 - PM: PM 2=0x8000018000000020:0x0 
    B -    422059 - PM: HARD_RESET by PS_HOLD
    B -    512095 - PM: SET_VAL:Skip
    B -    516731 - PM: Device Init # SPMI Transn: 4708
    D -    109068 - pm_device_init, Delta
    B -    521489 - pm_driver_init, Start
    B -    536647 - gpio6 ADC = 376232,gpio6_data = 498

    B -    536647 - gpio6 npercent = 13159

    B -    541466 - min = 11427,max=14703,pf_r1=249,ratio=25
    B -    545126 - Product name is cepheus
    B -    551531 - PM: Driver Init # SPMI Transn: 456
    D -     29005 - pm_driver_init, Delta
    B -    562999 - PM: battery Id: 67966
    B -    563213 - PM: APSD result: 255
    B -    566537 - PM: APSD in progress
    B -    570075 - PM: Vbatt: 4325; Ibatt: 0
    B -    573491 - PM: CHG Init # SPMI Transn: 52
    B -    577151 - vsense_init, Start
    D -         0 - vsense_init, Delta
    B -    613172 - sbl1_ddr_set_params, Start
    B -    613812 - Pre_DDR_clock_init, Start
    D -        91 - Pre_DDR_clock_init, Delta
    D -      8265 - sbl1_ddr_set_params, Delta
    B -    624792 - sbl1_ddr_init, Start
    D -     20923 - sbl1_ddr_init, Delta
    B -    649680 - DSF version = 104.0.0, DSF SHRM version = 59.0
    B -    653066 - Manufacturer ID = 6, Device Type = 7
    B -    658769 - LPDDR4Y  Enabled = 3
    B -    663588 - Rank 0 size = 3072 MB, Rank 1 size = 3072 MB
    B -    667279 - do_ddr_training, Start
    B -    674843 - Frequency = 1355 MHz
    D -      3690 - do_ddr_training, Delta
    B -    679479 - sbl1_dre_init, Start
    D -         0 - sbl1_dre_init, Delta
    B -    686463 - 
    B -    691008 - magic str match
    B -    691465 - gsort_version:offset:8.val:0x1
    B -    694424 - trigger bit map is null
    B -    702201 - pImem Init Start
    D -     10370 - pImem Init End, Delta
    B -    712754 - Relocate Pagetable to DDR, Start
    B -    717085 - Relocate Pagetable to DDR, End
    B -    720684 - External heap init, Start
    B -    724985 - External heap init, End
    B -    728828 - clock_init, Start
    D -        30 - clock_init, Delta
    B -    736392 - ADC done - mv: 376297, percent: 13152
    B -    738740 - min = 11427,max=14703,pf_r1=249,ratio=25
    B -    743651 - Product name is cepheus
    B -    749598 - ADC done - mv: 1413970, percent: 49421
    B -    752496 - HW version is MP
    B -    761493 - Loading APDP Image
    D -        31 - Image Loaded, Delta - (0 Bytes)
    B -    765428 - usb: UFS Serial - cb0b0d29
    B -   1066036 - usb: chgr -  SDP_CHARGER
    B -   1066463 - usb: hsusb_phy_init_rcal_fuse , 0xe
    B -   1070367 - PM: SMEM Chgr Info Write Success
    B -   1075582 - Loading OEM_MISC Image
    D -      3416 - Image Loaded, Delta - (0 Bytes)
    B -   1082689 - Loading QTI_MISC Image
    D -      4239 - Image Loaded, Delta - (0 Bytes)
    B -   1097512 - PM: PM Total Mem Allocated: 2074 
    B -   1097542 - Loading AOP Image
    D -      6588 - Auth Metadata
    D -      1830 - Segments hash check
    D -     20893 - Image Loaded, Delta - (197832 Bytes)
    B -   1121759 - Loading QSEE Dev Config Image
    D -      6558 - Auth Metadata
    D -       610 - Segments hash check
    D -     20405 - Image Loaded, Delta - (42732 Bytes)
    B -   1145488 - Loading QSEE Image
    D -     11590 - Auth Metadata
    D -     20709 - Segments hash check
    D -     92171 - Image Loaded, Delta - (3081487 Bytes)
    B -   1241258 - Loading SEC Image
    D -      4636 - Image Loaded, Delta - (0 Bytes)
    B -   1249036 - Loading QHEE Image
    D -      6527 - Auth Metadata
    D -      3111 - Segments hash check
    D -     25376 - Image Loaded, Delta - (470328 Bytes)
    B -   1277980 - Loading STI Image
    D -      4545 - Image Loaded, Delta - (0 Bytes)
    B -   1286429 - Loading APPSBL Image
    D -      7076 - Auth Metadata
    D -     15677 - Segments hash check
    D -     42181 - Image Loaded, Delta - (3145728 Bytes)
    B -   1336967 - SBL1, End
    D -   1225033 - SBL1, Delta
    S - Flash Throughput, 89000 KB/s  (7047093 Bytes,  78826 us)
    S - DDR Frequency, 1353 MHz


    UEFI Start     [ 1529]
     - 0x09FC01000 [ 1531] Sec.efi
    ASLR        : ON
    DEP         : ON (RTB)
    Timer Delta : +1 mS
    RAM Entry 0 : Base 0x0000000080000000  Size 0x000000003CC00000
    RAM Entry 1 : Base 0x0000000140000000  Size 0x00000000C0000000
    RAM Entry 2 : Base 0x00000000C0000000  Size 0x0000000080000000
    Continue booting UEFI on Core 0
    UEFI Ver    : 5.0.190709.BOOT.XF.3.0-00435-SM8150LZB-2
    Build Info  : 64b Jul  9 2019 00:10:12
    Boot Device : UFS
    PROD Mode   : TRUE
    Retail      : TRUE
    UFS INQUIRY ID: WDC     SDINDDH4-64G    1254
    enter ffu,vendor:WDC     ,product:SDINDDH4-64G    ,fw_rev:1254
    HW Wdog Setting from PCD : Disabled
    PM0: 30, PM1: 32, PM2: 39, 
    Setvariable Logo Image returned Success
    F1: SetupPlatformPanelConfig: MDPPLATFORM_PANEL_SAMSUNG_EA8076_F1MP_FHD_AMOLED_CMD
    F1: DisplayDxe: hw version:0x190000
    get_Panel_Id: lcd id = 0
    readback id0:7
    Dynamic-Detected panel Failed
    readback id0:7
    readback id1:0
    readback id2:0
    Detected panel id:00070000
    F1: DisplayDxe: MDPPLATFORM_PANEL_SAMSUNG_EA8076_F1MP_FHD_AMOLED_CMD
    MDPDetectPanel 24
    DisplayDxe: Resolution 1080x2340 (1 intf)
    UsbConfigLibOpenProtocols: PMI version (0x20)
    UsbConfigPortsQueryConnectionChange: usbport->connectstate: ATT
    ISENSE TOTAL TIME 2ms
    Disp init wait [ 2105] 
    -----------------------------
    Platform Init  [ 2160] BDS
    TZApp Log Buffer: (Size = 4096)
    -- START -- 
    VERSION:VU_CORE_SME_UEFISECAPP_REL.01.00.03
    DATE:Dec 18 2018
    TIME:09:56:09

    0:FindVariable:665: ERR:0x8000000e
     1:FindVariable:665: ERR:0x8000000e
     2:VariableInitializeNonVolatile:2245: ERR:0x80000007
     3:VariableInitializeNonVolatile:2246: ERR:0x-4
linux
linux-kernel
bootloader
uefi
asked on Stack Overflow Aug 26, 2019 by Angus • edited Aug 26, 2019 by Angus

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0