summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-02Merge "QcomModulePkg: Add support for slot-c in partition table"qctecmdr
2022-06-02QcomModulePkg: Add support for slot-c in partition tableAmrit Anand
Adding support for slot c in partition table. Based on the value of flag IsMultiSlot_ABC, the number of maximum slots is decided. If slot c is available, then IsMultiSlot_ABC is set TRUE. ABL handles the case dynamically depending on the number of slots available. Change-Id: I31f6b6950587419ddf44e40cc6fcdf34d840b515
2022-06-02Merge "QcomModulePkg: Add 4GB DDR size to choose DTB & DTBO"qctecmdr
2022-05-31Merge "QcomModulePkg: Correct the condition when need to update node info in ↵qctecmdr
the list"
2022-05-31Merge "Revert "QcomModulePkg: Get boot and vendor_boot actual size for image ↵qctecmdr
verification""
2022-05-31QcomModulePkg: Correct the condition when need to update node info in the listLijuan Gao
Only needs to update node's offset when it is more than the currently changed node's offset. Otherwise incorrect update will cause device boot failure. Change-Id: I9c69d028b8a06e6a92e579c01731ef519f475257
2022-05-30Revert "QcomModulePkg: Get boot and vendor_boot actual size for image ↵jianzhou
verification" This reverts commit 786d179779b1599fde765b12e6910fcaef866382 We should not introduce this code for unlock device performance at this moment, revert it. Change-Id: I36ec8e559361bf994370693cfb70c38f339bc3c9
2022-05-26QcomModulePkg: VB: Added API to check Keymaster EnablementAnvisha
This change adds the API to check whether Keymaster is enabled or not. If the API returns true then only KeymasterClient APIs will be called from Verified Boot. Test: AVB Orange_State Test Case. Change-Id: I5f52bf1e190e9e2c128cb7451c32618b01f2b4ef
2022-05-16QcomModulePkg: Append "mem_offline.nopasr=1" if bootarg contains "mem="Mukesh Ojha
To support booting on device with passed boot cmdline parameter like "mem=5G" where mem_offline support is there, it is mandatory to disable mem_offline driver probe by appending mem_offline.nopasr=1 to the cmdline, Otherwise, device will fail to boot up. Nothing need to be append if mem_offline driver support is not there in kernel. Change-Id: If026f50e9dd6e77a0b958411905b21f504d90a77
2022-05-10QcomModulePkg: Convert Unicode string to Ascii stringAmrit Anand
Re-order Code string to Ascii String conversion to avoid unknown values in SLOT_SUFFIX on LE variant command line update. Change-Id: I3329786efee5f98283872016e69492a6c8377719
2022-05-10QcomModulePkg: Add 4GB DDR size to choose DTB & DTBONaina Mehta
Add 4GB DDR size support while selecting DT based on DDR size. Change-Id: I5b0d9ef47e0af9f3866317f0a05c97b732d30670
2022-05-09QcomModulePkg: Add A/B support for Nand Based TargetsAmrit Anand
Nand flash does not have GPT header and it has only A/B slots for boot partition. Add support to store a/b partition attributes in misc cookie and update command line with systemd environment. Change-Id: Ie07122c9a818a81c9d40077994124de8b106ce5e
2022-04-27QcomModulePkg: Align PlatformInfoTypes protocol to uefiLijuan Gao
Platform info type field is not aligned between abl and uefi. Align them to ensure correct values are passed. Change-Id: Ie55756b36adec829a22f5ddb0f9dfa1a0da8a5ae
2022-03-15QcomModulePkg: Fix static analyzer reported issueMukesh Ojha
Fix NULL pointer dereference issue reported by static analyzer. Change-Id: Ib21aa430e6edfdeacff1aa5e6002826c837e5fab
2022-03-03QcomModulePkg: Perform revision check before using GetDDRMappedRegionsAbhishek Shah
Perform revision check in GetDDrRegionsInfo() before making use of pDDrGetInfoProtocol->GetDDRMappedRegions() since this callback is not implemented for older revision of the protocol and using it results in crash. Removed the protocol revision check against DDR_DETAILS_STRUCT_VERSION done after GetDDRMappedRegions() to avoid repetition. Change-Id: Ic3d7287181b64f0826f59978dff0808c8ddf57dd
2021-11-24Merge "QcomModulePkg: Delete the BuildEnv.sh after abl.fv was generated"qctecmdr
2021-11-03QcomModulePkg: Get boot and vendor_boot actual size for image verificationjianzhou
For optimising boot up time, using image actual size instead of the whole partition size for boot and vendor_boot image verification. Change-Id: I89edd58ade815f10d5b28c39bd8da084a41f1294
2021-10-26QcomModulePkg: Delete the BuildEnv.sh after abl.fv was generatedLijuan Gao
Clean the temporarily generated files in the BaseTools. Change-Id: I0f62a06bad561cc75bbc7edbbb45ae5dcec17b87
2021-09-29Merge "QcomModulePkg: Using an array for updating DDr region property value"qctecmdr
2021-09-24QcomModulePkg: Using an array for updating DDr region property valueLijuan Gao
Calling the fdt function to update the ddr region property repeatedly takes more time, so using an array to update the property once for improving boot time. Change-Id: I719848b9763a1a436d97b2404a67f900a3382031
2021-09-15Merge "dm-verity: Change global variable to compiler flag"qctecmdr
2021-09-14dm-verity: Change global variable to compiler flagDennis Cagle
Change LENandIgnore to a compiler flag to avoid a case where GetSystemPath is called before LE verity command line parameters are constructed. Change-Id: Iae7bc1ae496b0ecf4a5bc6931f0764fb8b002623
2021-09-13QcomModulePkg: Add DDR Rank switchjianzhou
Add DDR Rank switch and set it as FALSE by default. Change-Id: Ic5c59d68251fce21d13af5492bc5726a29a316a6
2021-09-10QcomModulePkg: Dynamiclly get the DDR rank numberjianzhou
FdtPropUpdateFunc will cost more boot time if use DDR_MAX_RANKS. Dynamiclly get the DDR rank number instead of using static DDR_MAX_RANKS. Change-Id: I4f1198123daaf01c32b5e6d70e6baf6bb3b25351
2021-09-09QcomModulePkg: Move revision check into functionjianzhou
Move revision check into GetDDRInfo() and GetDDrRegionsInfo() to make logic more clearer. Change-Id: Ib9783e80f445bc2268f32bb9daf910062c369a0b
2021-09-03Merge "edk2: gluebi/dm-verity support for nand targets"qctecmdr
2021-09-02Merge "QcomModulePkg: Fix android slotsuffix"qctecmdr
2021-08-27Revert "QcomModulePkg: Add BaseMemoryLib to QcomModulePkg"jianzhou
This reverts commit 5ae4034f48a0d302b0460bf0df3089e82a9368f4. Have used BaseMemoryLibOptDxe to be instead of BaseMemoryLib to save boot time, and use BaseMemoryLibOptDxe instead for some libraries in MdeModulePkg to fix compilation errors. Change-Id: Ib22a9b3138b00bc4c4fc402ff77282e2ea39f3b5
2021-08-27MdeModulePkg: Fixed compile error after using optimized memoryLijuan Gao
Fixed the below compile error after using optimized memcpy: "Instance of library class [BaseMemoryLib] is not found" Change-Id: Ia99de8e7046f03926a50fa7726e4a7aff847f002
2021-08-27QcomModulePkg: Fix android slotsuffixMukesh Ojha
Android slotsuffix is not being added to bootconfig if vb command line is NULL. Fix this by adding a boot config check for slotsuffix before adding android slot suffix to bootconfig. Change-Id: I3cf335fb945346b55183426b16f88d62d2c6351b
2021-08-23edk2: gluebi/dm-verity support for nand targetsDennis Cagle
Add support for dm-verity with gluebi block device emulation on nand targets Change-Id: Idb41e37736a5c2dd354e7804a3ae5b27c1e9adfe
2021-08-11QcomModulePkg: Use predefined offset for compressed kernelsMelody Olvera
When booting with an uncompressed kernel, we get the text offset from the kernel header. However, we can't do this with compressed kernels at this point since the kernel header is compressed, so use the predefined offset when booting from a compressed kernel. Change-Id: Iaecdfee1318d43ab572ffd46b7762d4cc4bb9b70 Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2021-08-05Merge "dm-verity: Add flag to ignore on nand"qctecmdr
2021-08-05Merge "Update dm= to dm-mod.create="qctecmdr
2021-08-05dm-verity: Add flag to ignore on nandDennis Cagle
Allow a use case where same boot image can be used to support a verity enabled emmc image and a non-verity enabled ubifs image. Change-Id: I4e34e76b1b5efbf1989f236dcaee1e8e4363dc5a
2021-08-02Update dm= to dm-mod.create=Dennis Cagle
After the introduction of CONFIG_DM_INIT, the dm= command line parameter is no longer recognized. Change-Id: I9dd46833f35e4f931e4ae06c85d2823f14bc761c
2021-07-21QcomModulePkg: Remove inappropriate DebugLibLijuan Gao
UefiDebugLibConOut will try to connect to all the available output consoles. It should not be used. Change-Id: If449cf93105ce7868756a4aa1f0d4e0dabdd4bbd
2021-07-21QcomModulePkg: Add BaseMemoryLib to QcomModulePkgMelody Olvera
BaseMemoryLib is needed for a few libraries, so include it in QcomModulePkg to avoid compilation errors should we remove a library. Change-Id: I6fac85a720a66efae28465fc799795240e7b5dde Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2021-07-19QcomModulePkg: Remove MIN check from GetPartitionIndexMelody Olvera
Taking the minimum length of the partition name strings is causing attempts to find partition names to match when they should not. Remove this check to make sure that the whole name is checked. Change-Id: Ib356cad72d7ebd9cb138f055ba63ddd448be4cc6 Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2021-07-16Merge "QcomModulePkg: Change memory limit to bytes in cmdline"qctecmdr
2021-07-16edk2: Fix tools dependency in AndroidBoot.mkElliot Berman
Previous "shell find" command only found files. Makefile's $(wildcard) function will find symlinks and directories as well. EmulatorPkg/Unix/Host/X11IncludeHack is a symlink to /opt/X11/include, which may not be present on host and is not needed for compilation. AOSP provides "find-subdir-files" which behaves like "find" under the hood. Use this instead to get close to original behavior. Change-Id: I28ca7678e9ab33cca0c05cad9ad0cf05de2651e5 Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2021-07-13edk2: Add tools dependency in Androidboot.mkMaria Yu
For ninja build graph need to add build tool files as dependent input into the apps bootloader target. Otherwise, automated dependency generator tool could not detect the dependency of build tools, and therefore removed some project which causes build compilation issues. Change-Id: Iaf1003cd901e727cad093e3e744a2f91c34b8266
2021-07-12QcomModulePkg: Clean up potential NULL pointer dereferencesMelody Olvera
Clean up potential NULL pointer dereferences in the bootloader. Change-Id: I18531ffc5ffdaed5065ce2fefcdf86fbc9135ced Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2021-07-08QcomModulePkg: Change memory limit to bytes in cmdlineMelody Olvera
Rounding errors in calculating the memory limit for PASR were causing issues when onlining certain memory blocks, so change the memory limit command line value to bytes rather than MB. Change-Id: I35d2777b05dd443dcd6cd6003ec9e0e5fabc0f04 Signed-off-by: Melody Olvera <molvera@codeaurora.org>
2021-06-29Merge "QcomModulePkg: Moving androidboot.slot_suffix param"qctecmdr
2021-06-25QcomModulePkg: Moving androidboot.slot_suffix paramGokul krishna Krishnakumar
As part of the changes for V4 boot header in Androis S, all the androidboot.* parameters from the kernel command line has been moved to bootconfig. 3633913 made all the changes for this but the slot_suffix parameter was missed out. Signed-off-by: Gokul krishna Krishnakumar <gokukris@codeaurora.org> Change-Id: Ic92f72331c47e12b2ffd8c535864d593899c0730
2021-06-09Merge "QcomModulePkg: Return offset if ddr-regions already exist"qctecmdr
2021-06-09Merge "QcomModulePkg: Pass DisplayCmdLine as command line parameter"qctecmdr
2021-06-09QcomModulePkg: Return offset if ddr-regions already existLijuan Gao
Optimise for boot up time since it will search for special node ddr-regions in apps boot loader. If put the node in the beginning of the device tree can make it search faster, so return the offset if ddr-regions already exist. Change-Id: I8cc5c29147a0f0acb42ad4a6222dcff5a6c76f9d
2021-06-08QcomModulePkg: Pass DisplayCmdLine as command line parameterGokul krishna Krishnakumar
The paramter was passed as a bootconfig paramter for V4 boot headers. Now its passed as command line paramter. Change-Id: Ib9211ac8546c7dbc56bd84bab2b44ae4effb8546