Skip to content

Commit

Permalink
edk2: Load vendor_boot in ramload scenario
Browse files Browse the repository at this point in the history
Load vendor_boot image in ramloading case if boot header
version is 0 as boot image is not loaded in the authentication
flow.

Change-Id: Ia20c13dbdebc551d991a214abc93a57000e94a1a
Signed-off-by: Venkata Rao Kakani <[email protected]>
  • Loading branch information
Venkata Rao Kakani committed Jun 14, 2021
1 parent 011b2a0 commit 4412bdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion QcomModulePkg/Library/avb/VerifiedBoot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,15 @@ LoadImageAndAuthVB2 (BootInfo *Info)
CurrentSlot = GetCurrentSlotSuffix ();
}

/* Load vendor boot in following conditions
* 1. In Ram load case where Header version is 0 because
* boot image is not loaded in the flow& Valid partition.
* 2. In Case of header version 3 & valid partititon.
*/

if (IsValidPartition (&CurrentSlot, L"vendor_boot") &&
(HeaderVersion >= BOOT_HEADER_VERSION_THREE)) {
(HeaderVersion == BOOT_HEADER_VERSION_ZERO ||
HeaderVersion >= BOOT_HEADER_VERSION_THREE)) {
AddRequestedPartition (RequestedPartitionAll, IMG_VENDOR_BOOT);
NumRequestedPartition += 1;
if (SlotData != NULL) {
Expand Down

0 comments on commit 4412bdf

Please sign in to comment.