Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image won't boot when flashed using PCAT #114

Closed
koenkooi opened this issue Dec 16, 2024 · 13 comments
Closed

Image won't boot when flashed using PCAT #114

koenkooi opened this issue Dec 16, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@koenkooi
Copy link
Contributor

koenkooi commented Dec 16, 2024

When using PCAT to flash the image on windows, it doesn't boot, if won't exit EFI. Flashing the same image with QDL does result in a booting image.

@koenkooi
Copy link
Contributor Author

Adding -ERASE FALSE to the PCAT command line doesn't help.

@koenkooi
Copy link
Contributor Author

Sample PCAT session:

PS C:\Users\kkooi> PCAT -PLUGIN SD -DEVICE 351653E9 -BUILD "C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit" -MEMORYTYPE UFS -FLAVOR asic
2024-12-13 14:16:42.710 INFO      ] Getting QUTS services for PCAT operation
2024-12-13 14:16:42.931 INFO      ] QUTS services initialized successfully for PCAT operation
2024-12-13 14:16:42.937 INFO      ] Creating QUTS client for PCAT operation...
2024-12-13 14:16:42.938 INFO      ] QUTS client creation completed, Status = TRUE
2024-12-13 14:16:42.968 INFO      ] Searching device "351653E9" in device manager
2024-12-13 14:16:42.969 INFO      ] Searching for the device "351653E9" in QUTS device manager list
2024-12-13 14:16:43.985 INFO      ] Device "351653E9" found in QUTS device manager list
2024-12-13 14:16:43.986 INFO      ] Downloading build on the device - Qualcomm USB Composite Device 9135 (0023)
2024-12-13 14:16:44.023 INFO      ] ---------------------------------------------------------
2024-12-13 14:16:44.023 INFO      ] BUILD INFORMATION PARAMETERS
2024-12-13 14:16:44.023 INFO      ] ---------------------------------------------------------
2024-12-13 14:16:44.023 INFO      ] BuildDownload Type               - FIREHOSE
2024-12-13 14:16:44.023 INFO      ] Build Type                       - FLATBUILD
2024-12-13 14:16:44.024 INFO      ] BuildDownload Path/File          - C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit
2024-12-13 14:16:44.024 INFO      ] BuildDownload Path/File exists   - True
2024-12-13 14:16:44.024 INFO      ] FlatBuild Path - C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit
2024-12-13 14:16:44.025 INFO      ] Getting device programmer file from flatbuild location
2024-12-13 14:16:44.026 INFO      ] Device Programmer file - C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\prog_firehose_ddr.elf
2024-12-13 14:16:44.032 INFO      ] Device - Qualcomm USB Composite Device 9135 (0023) not connected to other PCAT instance
2024-12-13 14:16:44.033 INFO      ] ---------------------------------------------------------
2024-12-13 14:16:44.033 INFO      ] SOFTWARE DOWNLOAD BUILD PARAMETERS
2024-12-13 14:16:44.033 INFO      ] ---------------------------------------------------------
2024-12-13 14:16:44.034 INFO      ] Device Description                               - Qualcomm USB Composite Device 9135 (0023)
2024-12-13 14:16:44.034 INFO      ] Memory Type                                      - MEMORY_TYPE_UFS
2024-12-13 14:16:44.034 INFO      ] Memory Slot                                      - 0
2024-12-13 14:16:44.035 INFO      ] Device Programmer                                - C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\prog_firehose_ddr.elf
2024-12-13 14:16:44.035 INFO      ] Erase the entire flash memory before programming - TRUE
2024-12-13 14:16:44.035 INFO      ] Reset                                            - TRUE
2024-12-13 14:16:44.035 INFO      ] Validate Image Size     - FALSE
2024-12-13 14:16:44.035 INFO      ] Skip device programming using sahara             - FALSE
2024-12-13 14:16:44.035 INFO      ] Validation mode                                  - 0 [VALIDATION_MODE_NONE]
2024-12-13 14:16:44.036 INFO      ] Firehose Intialize Time                          - 0 ms
2024-12-13 14:16:44.045 INFO      ] Erase device partition index                      - 0, 1, 2, 4, 5
2024-12-13 14:16:44.046 INFO      ] Rawprogram files -
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram0.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram1.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram2.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram3.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram4.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\rawprogram5.xml
 
2024-12-13 14:16:44.046 INFO      ] Patch files -
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch0.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch1.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch2.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch3.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch4.xml
        C:\Users\kkooi\Downloads\core-image-base-qcs6490-rb3gen2-core-kit.rootfs-20241212124738.qcomflash\core-image-base-qcs6490-rb3gen2-core-kit\patch5.xml            Flash Download is in progress: 9902% ... 2024-12-13 14:16:59.374 INFO      ] [ FIRMWARE DOWNLOAD LOG ] Process Finished
 
2024-12-13 14:17:03.393 INFO      ] Status    - TRUE
2024-12-13 14:17:03.393 INFO      ] Response  - Downloading software images completed on the device Qualcomm USB Composite Device 9135 (0023)
PS C:\Users\kkooi>

@ndechesne
Copy link
Contributor

Can you define 'does not boot' any better? Do you see anything on the UART traces?

@koenkooi
Copy link
Contributor Author

Serial log for both PCAT flashing and failed boot afterward:

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.MXF.1.0.c1-00224-KODIAKLA-1
S - IMAGE_VARIANT_STRING=SocKodiakLAA
S - OEM_IMAGE_VERSION_STRING=ip-10-195-200-90
S - Boot Interface: USB
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x000000c1
S - JTAG ID @ 0x00786130 = 0x001980e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00786134 = 0x351653e9
S - OEM Config Row 0 @ 0x007841c0 = 0x0000000000000000
S - OEM Config Row 1 @ 0x007841c8 = 0x0000000000000000
S - Feature Config Row 0 @ 0x00784148 = 0x0000000000000000
S - Feature Config Row 1 @ 0x00784150 = 0x0000000000000000
S - Core 0 Frequency, 1516 MHz
S - PBL Patch Ver: 1
D -      6617 - pbl_apps_init_timestamp
D -    741010 - bootable_media_detect_timestamp
D -  23643687 - bl_elf_metadata_loading_timestamp
D -       702 - bl_hash_seg_auth_timestamp
D -    252974 - bl_elf_loadable_segment_loading_timestamp
D -      5959 - bl_elf_segs_hash_verify_timestamp
D -     17624 - bl_sec_hash_seg_auth_timestamp
D -       812 - bl_sec_segs_hash_verify_timestamp
D -        28 - pbl_populate_shared_data_and_exit_timestamp
S -  24669413 - PBL, End
B -  25203095 - SBL1, Start
B -  25334825 - SBL1 BUILD @ 01:51:39 on Oct 17 2024
D -  25338607 - sbl1_hw_init
B -  25343609 - DTB  Found: [pre-ddr][7601f201000000][0]
B -  25345164 - Entering DeviceProg DDR
B -  25350441 - CDT not found in any storage media
B -  25361238 - pm_device_programmer_init, Start
D -      6405 - pm_device_programmer_init, Delta
B -  25367673 - Pre_DDR_clock_init, Start
D -        30 - Pre_DDR_clock_init, Delta
B -  25376183 - sbl1_ddr_init, Start
B -  25380117 - LP4 DDR detected
B -  25394025 - eCDT MRR - Data Starting Address: 0x09066D00

D -     14518 - sbl1_ddr_init, Delta
B -  25399820 - DSF version = 262.0.46
B -  25403267 - Manufacturer ID = 1, Device Type = 7
B -  25406927 - Rank 0 size = 2048 MB, Rank 1 size = 4096 MB
B -  25411868 - Row Hamming DDR
B -  25417510 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS0
B -  25426386 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS1
B -  25437335 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS0
B -  25448285 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS1
B -  25459570 - usb: init start
B -  25464358 - usb: qusb_dci_platform , 0x20
B -  25467378 - usb: enum_carried_from_pbl
B -  25471678 - usb: SUPER , 0x900e
B -  25475796 - usb: timer_start , 0x4c4b40
B -  25479059 - usb: ENUM success
B -  25483268 - usb: VBUS High!
B -  25572328 - usb: host sends ZLP
B -  25582485 - UFS Device Tree Settings
B -  25582515 - UFS Init Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -  25592184 - UFS Perf Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -  25598406 - UFS Timeouts(us): fDeviceInit 2500000, UTRD Poll 30000000
B -  25703600 - UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
B -  25705186 - UFS Boot LUN: 1
B -  26438894 - usb: host sends ZLP
B -  26446946 - UFS GEAR: 3
B -  39395508 - usb: bulk_shutdown
B -  39426282 - usb: endxfer EP0 OUT
�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.MXF.1.0.c1-00224-KODIAKLA-1
S - IMAGE_VARIANT_STRING=SocKodiakLAA
S - OEM_IMAGE_VERSION_STRING=ip-10-195-200-90
S - Boot Interface: UFS
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x000000c1
S - JTAG ID @ 0x00786130 = 0x001980e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00786134 = 0x351653e9
S - OEM Config Row 0 @ 0x007841c0 = 0x0000000000000000
S - OEM Config Row 1 @ 0x007841c8 = 0x0000000000000000
S - Feature Config Row 0 @ 0x00784148 = 0x0000000000000000
S - Feature Config Row 1 @ 0x00784150 = 0x0000000000000000
S - Core 0 Frequency, 1516 MHz
S - PBL Patch Ver: 1
D -      6618 - pbl_apps_init_timestamp
D -     31546 - bootable_media_detect_timestamp
D -       853 - bl_elf_metadata_loading_timestamp
D -       711 - bl_hash_seg_auth_timestamp
D -      6894 - bl_elf_loadable_segment_loading_timestamp
D -      4820 - bl_elf_segs_hash_verify_timestamp
D -     17638 - bl_sec_hash_seg_auth_timestamp
D -       810 - bl_sec_segs_hash_verify_timestamp
D -        30 - pbl_populate_shared_data_and_exit_timestamp
S -     69920 - PBL, End
B -     80581 - SBL1, Start
B -    211395 - SBL1 BUILD @ 01:48:55 on Oct 17 2024
B -    215543 - usb: HS: device tree Not available , 0x3
B -    218990 - usb: eud_serial_upd , 0x351653e9
D -    224297 - sbl1_hw_init
D -       549 - media_init:1
D -         0 - smss_load_cancel
D -         0 - boot_sail_pbl_edl_check
D -         0 - sail_execute_bist_sequence
B -    241224 - SMSS -  Image Load, Start
D -      4026 - SMSS -  Image Loaded, Delta - (0 Bytes)
D -      1007 - Auth Metadata
D -      5856 - sbl1_xblconfig_init
B -    257206 - XBL Config -  Image Load, Start
B -    261385 - DTB  Found: [pre-ddr][7601f201000000][0]
D -      4483 - boot_pre_ddr_dtb_load
B -    271816 - UFS Device Tree Settings
B -    273920 - UFS Init Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -    283619 - UFS Perf Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -    289841 - UFS Timeouts(us): fDeviceInit 2500000, UTRD Poll 30000000
D -     45353 - media_init:2
B -    362462 - UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
B -    363895 - UFS Boot LUN: 1
B -    375577 - UFS GEAR: 3
D -     65697 - media_init:3
D -        31 - shrm_load_cancel
B -    384147 - SHRM -  Image Load, Start
D -       701 - Auth Metadata
D -      1372 - Segments hash check
D -     12200 - SHRM -  Image Loaded, Delta - (35752 Bytes)
D -       183 - boot_cdt_init
B -    405314 - CDT -  Image Load, Start
B -    408151 - CDT Version:3,Platform ID:32,Major ID:1,Minor ID:0,Subtype:5
D -     16927 - sbl1_hw_platform_pre_ddr
D -         0 - devcfg init
B -    434747 - PMIC A:2.0 B:1.0 C:2.2 I:1.0
B -    436302 - PM: PM_DT_PARSING_ERR: charger
B -    440237 - PM: Reset by PSHOLD
B -    443348 - PM: Reset Type: Hard Reset
B -    446764 - PM: PON by SYSOK
B -    699060 - PM: SET_VAL:Skip
B -    699090 - PM: Verifying PON-Trigger specific configurations & current PON-Trigger
B -    707844 - PM: All PON-Trigger specific configs verified. Proceeding to BOOT
B -    717634 - PM: PSI: b0x06_v0x3f
B -    720135 - PM: OEM_PSI Start
B -    721203 - PM: OEM_PSI Done
B -    724192 - PM: Device Init # SPMI Transn: 15314
D -    302102 - pm_device_init, Delta
B -    732030 - pm_driver_init, Start
B -    743468 - PM: Driver Init # SPMI Transn: 518
D -      7960 - pm_driver_init, Delta
B -    748165 - PM: CHG Type in CHG init : 2
B -    751794 - usb: HS: device tree Not available , 0x3
B -    955809 - usb: HS: device tree Not available , 0x3
B -    955839 - PM: usb_dp_toggled_for_cdp : 200ms
B -    961939 - PM: Battery ID: 7504Ohm
B -    965660 - PM: debug board connected
B -    969320 - vsense_init, Start
D -         0 - vsense_init, Delta
D -    560712 - sbl1_hw_pre_ddr_init
D -         0 - boot_dload_handle_forced_dload_timeout
D -      3019 - sbl1_load_ddr_training_data
B -    994239 - Pre_DDR_clock_init, Start
D -        92 - Pre_DDR_clock_init, Delta
D -     12901 - sbl1_ddr_set_params
B -   1005920 - sbl1_ddr_init, Start
B -   1009336 - LP4 DDR detected
B -   1023946 - eCDT MRR - Data Starting Address: 0x09066D00

D -     15250 - sbl1_ddr_init, Delta
B -   1029619 - DSF version = 262.0.46
B -   1033004 - Manufacturer ID = 1, Device Type = 7
B -   1036573 - Rank 0 size = 2048 MB, Rank 1 size = 4096 MB
B -   1041422 - Row Hamming DDR
B -   1046943 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS0
B -   1055605 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS1
B -   1066310 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS0
B -   1077046 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS1
D -     81923 - sbl1_ddr_init
D -        31 - boot_pre_ddi_entry
B -   1095529 - do_ddr_training, Start
B -   1136704 - DDR: Start of DDR Training Restore
B -   1140242 - Current DDR Freq = 1709 MHz
B -   1141371 - Max enabled DDR Freq = 2092 MHz
B -   1145366 - DDR: End of DDR Training Restore
D -     51057 - do_ddr_training, Delta
D -     58835 - sbl1_do_ddr_training
D -       488 - boot_ddi_entry
B -   1161196 - Pimem init cmd, entry
D -      9211 - Pimem init cmd, exit
B -   1173823 - External heap init, Start
B -   1176720 - External heap init, End
D -     22295 - sbl1_post_ddr_init
D -       213 - sbl1_hw_init_secondary
B -   1187426 - DDR -  Image Load, Start
B -   1193678 - DTB  Found: [post-ddr][7601f201000000][2005010000000000]
D -      9486 - boot_post_ddr_dtb_load
D -      1555 - boot_fedl_check
B -   1204963 - APDP -  Image Load, Start
D -      3050 - APDP -  Image Loaded, Delta - (64 Bytes)
D -         0 - boot_dload_dump_security_regions
D -         0 - ramdump_load_cancel
B -   1221403 - RamDump -  Image Load, Start
D -      3324 - RamDump -  Image Loaded, Delta - (0 Bytes)
D -         0 - boot_update_abnormal_reset_status
D -         0 - boot_cache_set_memory_barrier
D -         0 - boot_smem_debug_init
D -       518 - boot_smem_init
D -         0 - boot_smem_alloc_for_minidump
D -        61 - boot_smem_store_pon_status
D -        31 - sbl1_hw_platform_smem
D -        61 - boot_ddr_share_data_to_aop
D -       488 - boot_clock_init_rpm
D -         0 - boot_vsense_copy_to_smem
D -         0 - boot_populate_ram_partition_table
D -        31 - boot_populate_ddr_details_shared_table
D -       244 - sbl1_tlmm_init
D -         0 - sbl1_efs_handle_cookies
B -   1284172 - OEM_MISC -  Image Load, Start
D -       641 - Auth Metadata
D -       396 - Segments hash check
D -     10675 - OEM_MISC -  Image Loaded, Delta - (5048 Bytes)
B -   1298171 - QTI_MISC -  Image Load, Start
D -      5703 - QTI_MISC -  Image Loaded, Delta - (0 Bytes)
D -         0 - boot_sail_wait_for_bist
B -   1320650 - PM: PM Total Mem Allocated: 8876
D -      7168 - sbl1_pm_aop_pre_init_wrapper
B -   1325225 - AOP -  Image Load, Start
D -       793 - Auth Metadata
D -      1738 - Segments hash check
D -     13755 - AOP -  Image Loaded, Delta - (197074 Bytes)
B -   1342274 - QSEE Dev Config -  Image Load, Start
D -       793 - Auth Metadata
D -       671 - Segments hash check
D -     13054 - QSEE Dev Config -  Image Loaded, Delta - (45056 Bytes)
B -   1364326 - QSEE -  Image Load, Start
D -     17964 - Auth Metadata
D -     23180 - Segments hash check
D -     58804 - QSEE -  Image Loaded, Delta - (4175488 Bytes)
B -   1427888 - DTB: Vibration Enabled
D -      7167 - sbl1_hw_play_vibr
B -   1435635 - SEC -  Image Load, Start
D -      3294 - SEC -  Image Loaded, Delta - (64 Bytes)
B -   1442497 - CPUCPFW -  Image Load, Start
D -     17812 - Auth Metadata
D -     17415 - Segments hash check
D -     49685 - CPUCPFW -  Image Loaded, Delta - (171260 Bytes)
B -   1501210 - QHEE -  Image Load, Start
D -     17690 - Auth Metadata
D -      7076 - Segments hash check
D -     29371 - QHEE -  Image Loaded, Delta - (1511504 Bytes)
B -   1533906 - APPSBL -  Image Load, Start
D -       824 - Auth Metadata
D -     17446 - Segments hash check
D -     37118 - APPSBL -  Image Loaded, Delta - (4132816 Bytes)
D -         0 - sbl1_save_appsbl_index
B -   1580266 - SBL1, End
D -   1503131 - SBL1, Delta
S - Flash Throughput, 229067 KB/s  (10537084 Bytes,  46911 us)
S - DDR Frequency, 1555 MHz
0       1.659204 Hypervisor cold boot, version: gunyah-bdded74bb prod (2024-09-17 17:01:45 UTC)
0       1.700496 Failed to register KP

[RM]Resource Manager version: 037df6cc (Tue Aug 20 05:21:39 2024 UTC)
[RM]HLOS is RAS handler
[RM]Init completed, disabling UART
0       1.735571 Hypervisor UART is disabled!



UEFI Start     [ 1741]
 - 0x09FC01000 [ 1744] Sec.efi
ASLR        : ON
DEP         : ON (RTB)
Timer Delta : +11 mS
RAM Entry 0 : Base 0x0080000000  Size 0x003A800000
RAM Entry 1 : Base 0x00C0000000  Size 0x0001800000
RAM Entry 2 : Base 0x00C3400000  Size 0x003CC00000
RAM Entry 3 : Base 0x0100000000  Size 0x0100000000
Total Available RAM : 6028 MB (0x0178C00000)
Total Installed RAM : 6144 MB (0x0180000000)
Init CPU core 1
  > Scheduler up on Core 1
UEFI Ver    : 6.0.241017.BOOT.MXF.1.0.c1-00224-KODIAKLA-1
Build Info  : 64b Oct 17 2024 01:50:04
Boot Device : UFS
PROD Mode   : TRUE
Retail      : TRUE
After Create Event Status (0x0)
ShmBridgeInitialize: enable status 0
PM0: 47, PM1: 63, PM2: 49, PM8: 46,
Module cannot re-initialize DAL module environment
UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
UFS Boot LUN: 1
tz_armv8_smc_call failed, TzStatus = 0xFFFFFFFF,  SmcId = 0x32000105
Status = 0x3
APP_REGION_NOTIFICATION_CMD: Syscall Not Supported, status 3
HW Wdog Setting from PCD : Disabled
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
LoadImageFromPartitionUsingGuid Failed: 14
Failed to start featenabler_a TA, status = 14
DisplayDxe: Resolution 1920x1080 (1 intf)
smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=3, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=12, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=17, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=18, size=32, flags=0x40000000.fast_core_num val: 0
UsbConfigLibOpenProtocols: PMI version (0x0)
UsbConfigLibOpenProtocols: gPmicNpaClientHS2 cannot be created
UsbConfigInit: after setting role
UsbConfigInit: UsbConfigInit, not start on port: 0, mode 0
UsbConfigInit: after setting role
UsbConfigInit: UsbConfigInit, not start on port: 1, mode 0
UsbConfigPortsQueryConnectionChange: usbport->connectstate: ATT
ButtonsDxeTest: Keypress SDAM data payload 0
HypDtFixupEntryPoint : Reading of OsConfigTableSelection failed,checking DT setting
Selected FW GUID =: 6F25BFD2-A165-468B-980F-AC51A0A45C52
  Platform = 20
SoftSKUDxeInitialize: SoftSKU not supported for this chip
MinidumpTADxe: Minidump TA loading not enabled.
Disp init wait [ 2127]
-----------------------------
Platform Init  [ 2192] BDS
UEFI Ver   : 6.0.241017.BOOT.MXF.1.0.c1-00224-KODIAKLA-1
Platform           : IOT
Subtype            : 5
Boot Device        : UFS
Chip Name          : QCS6490
Chip Ver           : 1.0
Chip Serial Number : 0x351653E9
-----------------------------
No pending capsules found in EFI Raw file
GetMassStorageCapsuleCount returned - Not Found!
GetPersistedCapsuleCount returned - Not Found
InitCapsulePtrFromPersistedMedia returned - Not Found!
InitCapsulePtr returned - Not Found.
LocateProtocol(DPP) returned Status:Not Found
Locate pMorPpiProtocol failed 0xE 00000010
Platform Init End : 2907
-----------------------------
[QcomBds] Removable boot path
Press any key to shutdown

@koenkooi
Copy link
Contributor Author

Can you define 'does not boot' any better? Do you see anything on the UART traces?

I've edited the first post to say that I mean "doesn't exit EFI" with "does not boot". Serial log is in #114 (comment)

@mwasilew
Copy link
Contributor

For some reason DTB is not found. Here is log from "good" boot attempt:
https://lava.infra.foundries.io/scheduler/job/57933#L933

@koenkooi
Copy link
Contributor Author

Serial log when flashing with QDL:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.12.17 14:11:10 =~=~=~=~=~=~=~=~=~=~=~=
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.MXF.1.0.c1-00224-KODIAKLA-1
S - IMAGE_VARIANT_STRING=SocKodiakLAA
S - OEM_IMAGE_VERSION_STRING=ip-10-195-200-90
S - Boot Interface: USB
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x000000c1
S - JTAG ID @ 0x00786130 = 0x001980e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00786134 = 0x351653e9
S - OEM Config Row 0 @ 0x007841c0 = 0x0000000000000000
S - OEM Config Row 1 @ 0x007841c8 = 0x0000000000000000
S - Feature Config Row 0 @ 0x00784148 = 0x0000000000000000
S - Feature Config Row 1 @ 0x00784150 = 0x0000000000000000
S - Core 0 Frequency, 1516 MHz
S - PBL Patch Ver: 1
D -      6617 - pbl_apps_init_timestamp
D -    129425 - bootable_media_detect_timestamp
D -  92734687 - bl_elf_metadata_loading_timestamp
D -       706 - bl_hash_seg_auth_timestamp
D -    132813 - bl_elf_loadable_segment_loading_timestamp
D -      5962 - bl_elf_segs_hash_verify_timestamp
D -     17623 - bl_sec_hash_seg_auth_timestamp
D -       811 - bl_sec_segs_hash_verify_timestamp
D -        29 - pbl_populate_shared_data_and_exit_timestamp
S -  93028673 - PBL, End
B -  95001735 - SBL1, Start
B -  95133465 - SBL1 BUILD @ 01:51:39 on Oct 17 2024
D -  95137247 - sbl1_hw_init
B -  95142249 - DTB  Found: [pre-ddr][7601f201000000][0]
B -  95143804 - Entering DeviceProg DDR
B -  95149081 - CDT not found in any storage media
B -  95159878 - pm_device_programmer_init, Start
D -      6375 - pm_device_programmer_init, Delta
B -  95166313 - Pre_DDR_clock_init, Start
D -        30 - Pre_DDR_clock_init, Delta
B -  95174823 - sbl1_ddr_init, Start
B -  95178757 - LP4 DDR detected
B -  95192665 - eCDT MRR - Data Starting Address: 0x09066D00

D -     14518 - sbl1_ddr_init, Delta
B -  95198460 - DSF version = 262.0.46
B -  95201907 - Manufacturer ID = 1, Device Type = 7
B -  95205567 - Rank 0 size = 2048 MB, Rank 1 size = 4096 MB
B -  95210508 - Row Hamming DDR
B -  95216150 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS0
B -  95225026 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS1
B -  95235975 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS0
B -  95246925 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS1
B -  95258210 - usb: init start
B -  95262968 - usb: qusb_dci_platform , 0x20
B -  95265987 - usb: enum_carried_from_pbl
B -  95270288 - usb: SUPER , 0x900e
B -  95274405 - usb: timer_start , 0x4c4b40
B -  95277669 - usb: ENUM success
B -  95281908 - usb: VBUS High!
B - 100110119 - usb: host sends ZLP
B - 100113017 - UFS Device Tree Settings
B - 100113505 - UFS Init Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B - 100123173 - UFS Perf Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B - 100129395 - UFS Timeouts(us): fDeviceInit 2500000, UTRD Poll 30000000
B - 100234468 - UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
B - 100236054 - UFS Boot LUN: 1
B - 100246302 - UFS GEAR: 3
B - 110560273 - usb: bulk_shutdown
B - 110591048 - usb: endxfer EP0 OUT
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.MXF.1.0.c1-00224-KODIAKLA-1
S - IMAGE_VARIANT_STRING=SocKodiakLAA
S - OEM_IMAGE_VERSION_STRING=ip-10-195-200-90
S - Boot Interface: UFS
S - Secure Boot: Off
S - Boot Config @ 0x00786070 = 0x000000c1
S - JTAG ID @ 0x00786130 = 0x001980e1
S - OEM ID @ 0x00786138 = 0x00000000
S - Serial Number @ 0x00786134 = 0x351653e9
S - OEM Config Row 0 @ 0x007841c0 = 0x0000000000000000
S - OEM Config Row 1 @ 0x007841c8 = 0x0000000000000000
S - Feature Config Row 0 @ 0x00784148 = 0x0000000000000000
S - Feature Config Row 1 @ 0x00784150 = 0x0000000000000000
S - Core 0 Frequency, 1516 MHz
S - PBL Patch Ver: 1
D -      6618 - pbl_apps_init_timestamp
D -     31547 - bootable_media_detect_timestamp
D -       853 - bl_elf_metadata_loading_timestamp
D -       711 - bl_hash_seg_auth_timestamp
D -      6894 - bl_elf_loadable_segment_loading_timestamp
D -      4821 - bl_elf_segs_hash_verify_timestamp
D -     17638 - bl_sec_hash_seg_auth_timestamp
D -       811 - bl_sec_segs_hash_verify_timestamp
D -        31 - pbl_populate_shared_data_and_exit_timestamp
S -     69924 - PBL, End
B -     80611 - SBL1, Start
B -    211456 - SBL1 BUILD @ 01:48:55 on Oct 17 2024
B -    215574 - usb: HS: device tree Not available , 0x3
B -    219051 - usb: eud_serial_upd , 0x351653e9
D -    224327 - sbl1_hw_init
D -       519 - media_init:1
D -         0 - smss_load_cancel
D -         0 - boot_sail_pbl_edl_check
D -         0 - sail_execute_bist_sequence
B -    241255 - SMSS -  Image Load, Start
D -      4026 - SMSS -  Image Loaded, Delta - (0 Bytes)
D -      1037 - Auth Metadata
D -      5826 - sbl1_xblconfig_init
B -    257237 - XBL Config -  Image Load, Start
B -    261415 - DTB  Found: [pre-ddr][7601f201000000][0]
D -      4484 - boot_pre_ddr_dtb_load
B -    271846 - UFS Device Tree Settings
B -    273951 - UFS Init Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -    283650 - UFS Perf Speed: HS Enabled 1, Gear 4 2 Lane Rate 2
B -    289872 - UFS Timeouts(us): fDeviceInit 2500000, UTRD Poll 30000000
D -     45323 - media_init:2
B -    366976 - UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
B -    368592 - UFS Boot LUN: 1
B -    379938 - UFS GEAR: 3
D -     70028 - media_init:3
D -        30 - shrm_load_cancel
B -    388509 - SHRM -  Image Load, Start
D -       610 - Auth Metadata
D -      1434 - Segments hash check
D -     12261 - SHRM -  Image Loaded, Delta - (35752 Bytes)
D -       214 - boot_cdt_init
B -    409706 - CDT -  Image Load, Start
B -    412573 - CDT Version:3,Platform ID:32,Major ID:1,Minor ID:0,Subtype:5
D -     16897 - sbl1_hw_platform_pre_ddr
D -         0 - devcfg init
B -    439139 - PMIC A:2.0 B:1.0 C:2.2 I:1.0
B -    440694 - PM: PM_DT_PARSING_ERR: charger
B -    444598 - PM: Reset by PSHOLD
B -    447740 - PM: Reset Type: Hard Reset
B -    451125 - PM: PON by SYSOK
B -    703421 - PM: SET_VAL:Skip
B -    703452 - PM: Verifying PON-Trigger specific configurations & current PON-Trigger
B -    712205 - PM: All PON-Trigger specific configs verified. Proceeding to BOOT
B -    721965 - PM: PSI: b0x06_v0x3f
B -    724466 - PM: OEM_PSI Start
B -    725564 - PM: OEM_PSI Done
B -    728523 - PM: Device Init # SPMI Transn: 15314
D -    302041 - pm_device_init, Delta
B -    736361 - pm_driver_init, Start
B -    747799 - PM: Driver Init # SPMI Transn: 518
D -      7960 - pm_driver_init, Delta
B -    752526 - PM: CHG Type in CHG init : 0
B -    757376 - PM: Battery ID: 7511Ohm
B -    760090 - PM: debug board connected
B -    763750 - vsense_init, Start
D -         0 - vsense_init, Delta
D -    350719 - sbl1_hw_pre_ddr_init
D -         0 - boot_dload_handle_forced_dload_timeout
D -      3019 - sbl1_load_ddr_training_data
B -    788638 - Pre_DDR_clock_init, Start
D -        92 - Pre_DDR_clock_init, Delta
D -     12902 - sbl1_ddr_set_params
B -    800350 - sbl1_ddr_init, Start
B -    803766 - LP4 DDR detected
B -    818345 - eCDT MRR - Data Starting Address: 0x09066D00

D -     15219 - sbl1_ddr_init, Delta
B -    824018 - DSF version = 262.0.46
B -    827404 - Manufacturer ID = 1, Device Type = 7
B -    830972 - Rank 0 size = 2048 MB, Rank 1 size = 4096 MB
B -    835822 - Row Hamming DDR
B -    841342 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS0
B -    850004 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH0 & CS1
B -    860710 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS0
B -    871446 - Row Hammer Check : DRAM supports unlimited MAC Value : MR_RH[OP2:0 = 0] & MR_RH[OP3 = 1] for CH1 & CS1
D -     81893 - sbl1_ddr_init
D -        30 - boot_pre_ddi_entry
B -    889929 - do_ddr_training, Start
B -    931104 - DDR: Start of DDR Training Restore
B -    934642 - Current DDR Freq = 1709 MHz
B -    935740 - Max enabled DDR Freq = 2092 MHz
B -    939766 - DDR: End of DDR Training Restore
D -     51057 - do_ddr_training, Delta
D -     58865 - sbl1_do_ddr_training
D -       519 - boot_ddi_entry
B -    955595 - Pimem init cmd, entry
D -      9211 - Pimem init cmd, exit
B -    968222 - External heap init, Start
B -    971120 - External heap init, End
D -     22296 - sbl1_post_ddr_init
D -       214 - sbl1_hw_init_secondary
B -    981825 - DDR -  Image Load, Start
B -    988108 - DTB  Found: [post-ddr][7601f201000000][2005010000000000]
D -      9485 - boot_post_ddr_dtb_load
D -      1556 - boot_fedl_check
B -    999363 - APDP -  Image Load, Start
D -      3050 - APDP -  Image Loaded, Delta - (64 Bytes)
D -         0 - boot_dload_dump_security_regions
D -         0 - ramdump_load_cancel
B -   1015802 - RamDump -  Image Load, Start
D -      3325 - RamDump -  Image Loaded, Delta - (0 Bytes)
D -         0 - boot_update_abnormal_reset_status
D -         0 - boot_cache_set_memory_barrier
D -         0 - boot_smem_debug_init
D -       488 - boot_smem_init
D -         0 - boot_smem_alloc_for_minidump
D -        61 - boot_smem_store_pon_status
D -        30 - sbl1_hw_platform_smem
D -        61 - boot_ddr_share_data_to_aop
D -       488 - boot_clock_init_rpm
D -         0 - boot_vsense_copy_to_smem
D -         0 - boot_populate_ram_partition_table
D -        30 - boot_populate_ddr_details_shared_table
D -       244 - sbl1_tlmm_init
D -         0 - sbl1_efs_handle_cookies
B -   1078571 - OEM_MISC -  Image Load, Start
D -       610 - Auth Metadata
D -       366 - Segments hash check
D -     10675 - OEM_MISC -  Image Loaded, Delta - (5048 Bytes)
B -   1092571 - QTI_MISC -  Image Load, Start
D -      5673 - QTI_MISC -  Image Loaded, Delta - (0 Bytes)
D -         0 - boot_sail_wait_for_bist
B -   1115049 - PM: PM Total Mem Allocated: 8876
D -      7198 - sbl1_pm_aop_pre_init_wrapper
B -   1119624 - AOP -  Image Load, Start
D -       824 - Auth Metadata
D -      1769 - Segments hash check
D -     13786 - AOP -  Image Loaded, Delta - (197074 Bytes)
B -   1136735 - QSEE Dev Config -  Image Load, Start
D -       793 - Auth Metadata
D -       640 - Segments hash check
D -     13054 - QSEE Dev Config -  Image Loaded, Delta - (45056 Bytes)
B -   1158786 - QSEE -  Image Load, Start
D -     17873 - Auth Metadata
D -     23088 - Segments hash check
D -     61854 - QSEE -  Image Loaded, Delta - (4175488 Bytes)
B -   1225429 - DTB: Vibration Enabled
D -      7198 - sbl1_hw_play_vibr
B -   1233145 - SEC -  Image Load, Start
D -      3294 - SEC -  Image Loaded, Delta - (64 Bytes)
B -   1240008 - CPUCPFW -  Image Load, Start
D -     17842 - Auth Metadata
D -     17446 - Segments hash check
D -     49959 - CPUCPFW -  Image Loaded, Delta - (171260 Bytes)
B -   1298964 - QHEE -  Image Load, Start
D -     17629 - Auth Metadata
D -      7045 - Segments hash check
D -     28060 - QHEE -  Image Loaded, Delta - (1511504 Bytes)
B -   1330349 - APPSBL -  Image Load, Start
D -       702 - Auth Metadata
D -     17507 - Segments hash check
D -     35715 - APPSBL -  Image Loaded, Delta - (4132816 Bytes)
D -         0 - sbl1_save_appsbl_index
B -   1375306 - SBL1, End
D -   1298141 - SBL1, Delta
S - Flash Throughput, 224193 KB/s  (10537084 Bytes,  47577 us)
S - DDR Frequency, 1555 MHz
0       1.453929 Hypervisor cold boot, version: gunyah-bdded74bb prod (2024-09-17 17:01:45 UTC)
0       1.495234 Failed to register KP

[RM]Resource Manager version: 037df6cc (Tue Aug 20 05:21:39 2024 UTC)
[RM]HLOS is RAS handler
[RM]Init completed, disabling UART
0       1.530287 Hypervisor UART is disabled!



UEFI Start     [ 1535]
 - 0x09FC01000 [ 1538] Sec.efi
ASLR        : ON
DEP         : ON (RTB)
Timer Delta : +11 mS
RAM Entry 0 : Base 0x0080000000  Size 0x003A800000
RAM Entry 1 : Base 0x00C0000000  Size 0x0001800000
RAM Entry 2 : Base 0x00C3400000  Size 0x003CC00000
RAM Entry 3 : Base 0x0100000000  Size 0x0100000000
Total Available RAM : 6028 MB (0x0178C00000)
Total Installed RAM : 6144 MB (0x0180000000)
Init CPU core 1
  > Scheduler up on Core 1
UEFI Ver    : 6.0.241017.BOOT.MXF.1.0.c1-00224-KODIAKLA-1
Build Info  : 64b Oct 17 2024 01:50:04
Boot Device : UFS
PROD Mode   : TRUE
Retail      : TRUE
After Create Event Status (0x0)
ShmBridgeInitialize: enable status 0
PM0: 47, PM1: 63, PM2: 49, PM8: 46,
Module cannot re-initialize DAL module environment
UFS INQUIRY ID: SAMSUNG KM2L9001CM-B518 0700
UFS Boot LUN: 1
tz_armv8_smc_call failed, TzStatus = 0xFFFFFFFF,  SmcId = 0x32000105
Status = 0x3
APP_REGION_NOTIFICATION_CMD: Syscall Not Supported, status 3
HW Wdog Setting from PCD : Disabled
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
QseeResponse->result = 0xE
Status = 0x7
LoadImageFromPartitionUsingGuid Failed: 14
Failed to start featenabler_a TA, status = 14
DisplayDxe: Resolution 1920x1080 (1 intf)
smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=3, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=12, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=17, size=32, flags=0x40000000.smem_alloc_ex: SMEM alloc_ex failed with err=-3! smem_type=478, remote=18, size=32, flags=0x40000000.fast_core_num val: 0
UsbConfigLibOpenProtocols: PMI version (0x0)
UsbConfigLibOpenProtocols: gPmicNpaClientHS2 cannot be created
UsbConfigInit: after setting role
UsbConfigInit: UsbConfigInit, not start on port: 0, mode 0
UsbConfigInit: after setting role
UsbConfigInit: UsbConfigInit, not start on port: 1, mode 0
UsbConfigPortsQueryConnectionChange: usbport->connectstate: ATT
ButtonsDxeTest: Keypress SDAM data payload 0
HypDtFixupEntryPoint : Reading of OsConfigTableSelection failed,checking DT setting
Selected FW GUID =: 6F25BFD2-A165-468B-980F-AC51A0A45C52
  Platform = 20
SoftSKUDxeInitialize: SoftSKU not supported for this chip
MinidumpTADxe: Minidump TA loading not enabled.
Disp init wait [ 1919]
-----------------------------
Platform Init  [ 1983] BDS
UEFI Ver   : 6.0.241017.BOOT.MXF.1.0.c1-00224-KODIAKLA-1
Platform           : IOT
Subtype            : 5
Boot Device        : UFS
Chip Name          : QCS6490
Chip Ver           : 1.0
Chip Serial Number : 0x351653E9
-----------------------------
No pending capsules found in EFI Raw file
GetMassStorageCapsuleCount returned - Not Found!
GetPersistedCapsuleCount returned - Not Found
InitCapsulePtrFromPersistedMedia returned - Not Found!
InitCapsulePtr returned - Not Found.
LocateProtocol(DPP) returned Status:Not Found
Locate pMorPpiProtocol failed 0xE 00000010
Platform Init End : 2404
-----------------------------
OS DTB found. Model = Qualcomm Technologies, Inc. Robotics RB3gen2
Reading of OsConfigTableSelection failed,checking DT settings
 Bad main_symbols in ufdt_overlay_do_fixups
Failed to apply devie tree
HypDtFixupEventNotifyFunc: Dtb apply overlay skipped
ERROR: DisableDisplay disabling,Status=0
SdccDxeFixupEventNotifyFunc: non-removable node not found
Added qcom,platform-parts-info successfully in BoardInfoDxe
Failed to get SKU information. Unsupported
UEFI Total : 1022 ms
POST Time      [ 2557] OS Loader
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
Start EBS        [ 2793]
BDS: LogFs sync skipped, Unsupported
App Log Flush : 0 ms
ScmArmV8ExitBootServicesHandler, Status = 0x0.
Gunyah based bootup
Exit EBS        [ 2815] UEFI End
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 6.12.0-rc7-yoctodev-standard-00093-g8f088ccaede9 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 14.2.0, GNU ld (GNU Binutils) 2.43.1.20241111) qualcomm-linux/meta-qcom-hwe#1 SMP PREEMPT Tue Nov 12 03:13:14 UTC 2024

@EmbeddedAndroid EmbeddedAndroid added the bug Something isn't working label Dec 18, 2024
@koenkooi
Copy link
Contributor Author

Flashing a KAS based build from yesterday using PCAT on windows does work. @mwasilew and I strongly suspect it's related to CDT being present to make it work.

@lumag
Copy link
Contributor

lumag commented Jan 17, 2025

@koenkooi it looks like you are right:

First log:

B -  95149081 - CDT not found in any storage media

Second log:

D -       183 - boot_cdt_init
B -    405314 - CDT -  Image Load, Start
B -    408151 - CDT Version:3,Platform ID:32,Major ID:1,Minor ID:0,Subtype:5

@ricardosalveti
Copy link
Contributor

I guess you tried to erase UFS and that ended up erasing cdt? Before #112 the only way for you to restore back the CDT was to manually flash it.

@koenkooi
Copy link
Contributor Author

@ricardosalveti PCAT does a full erase by default, it can optionally be turned off by passing -ERASE False. So the full erase combined with a missing CDT seems to be causing the boot failures.

I haven't had issues with the RBD after #112 was merged. But machines lacking a CDT will most likely still fail to boot.

@ricardosalveti
Copy link
Contributor

We should probably close this issue then and open a follow up for adding CDTs to the remaining targets.

@ndechesne
Copy link
Contributor

Done, with qualcomm-linux/meta-qcom#706

@github-project-automation github-project-automation bot moved this from Triage to Done in Mainline Qualcomm Linux Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

6 participants