summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-16QcomModulePkg: Remove multiple macro defines for DTB_PAD_SIZE.Mayank Grover
Change to remove multiple definition for macro DTB_PAB_SIZE, used for padding for future expansion. Change-Id: Ib28ee5f24752415768847e88b1892175c382a082
2019-04-10QcomModulePkg: Update CmdLine to handle Squash FSSourabh Banerjee
To handle squashFS boot on NAND, the command line has to set: * root parameter to the gluebi emulated MTD device. * rootfstype parameter to squashfs Change-Id: Ief07c5c8d8e66e9c7714baff1d3c8f807c284d0c
2019-04-09QcomModulePkg: Disable fastboot boot for locked deviceMonika Singh
If the device is in locked state do not allow fastboot boot command. Fastboot boot needs to work for unlocked state only. Change-Id: I5b3e8ac9128907384d9b66f569aa22f0e82956eb
2019-04-01Merge "QcomModulePkg: Update GPT only when attributes or GUID is changed"qctecmdr
2019-03-26QcomModulePkg: Update GPT only when attributes or GUID is changedlijuang
In a scenario, when a missing Blkio handle occured and the partition info in the storage is right, doing attributes and GUID compare will update the GPT header which will cause the device boot up failed. So don't update the GPT header if nothing attribute or GUID needed to be changed. Change-Id: I093c1b56da0c4315cd312cd031697d7eb10bdd53
2019-03-24QcomModulePkg: Calculate ramdisk load address based on actual ramdisk sizeMayank Grover
Calculate ramdisk load address and dt load address, based on actual ramdisk size and max dt size. This will ensure, we can change ramdisk area in buffer with dynamic change in ramdisk size. Change-Id: I136c41e334ba9837453bda436af5e25b52ce6761
2019-03-21avb: Add verified boot hash supportBarani Muthukumaran
Compute the digest over all vbmeta's present on device and provide the digest to keymaster. This digest is provided as part of the keymaster attestation certificate Change-Id: If95d252df1eed10792b6a8fb8c808bd5c50b9933
2019-03-19Merge "avb: Support loading of recovery image"qctecmdr Service
2019-03-19Merge "libavb: Support vbmeta blobs in beginning of partition."qctecmdr Service
2019-03-19libavb: Support vbmeta blobs in beginning of partition.Monika Singh
If we don't find a AvbFooter when resolving a chain descriptor, also check if there's a vbmeta struct in the beginning. If there is, use it. This is to support the use-case where a single vbmeta_<orgname> partition can hold metadata for several other partitions which may not be easily readable by the bootloader (e.g. they are "logical" partitions using a proprietary partitioning format). For example, this supports the following setup vbmeta # chain desc for vbmeta_google vbmeta_google # hash desc for boot, dtbo and hashtree desc for system, vendor boot dtbo super # container for system and vendor logical partitions system # logical partition (not readable by bootloader) vendor # logical partition (not readable by bootloader) where vbmeta_google has the vbmeta struct in the beginning just as if it were the main vbmeta partition. Additional change: Previously it was optional to support the get_size_of_partition() operation. Starting with this commit, this operation is mandatory and must be implemented such that AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION is returned for partitions that don't exist. Also introduce a new 'extract_vbmeta_image' sub-command to avbtool that can be used to extract the vbmeta blob from a footer. Change-Id: If78538672d101127ecbae02739648446746d4b40
2019-03-19avb: Support loading of recovery imageMonika Singh
In fastbootd mode the device needs to boot in recovery mode. To support the same VB2.0 need to load and validate recovery in case if super partition is supported and device is booting in recovery mode. Change-Id: I7abffa9fc8f8fd36a31b1619b7d9149ba68b01f8
2019-03-19libavb: Only query partition GUIDs when the cmdline needs them.Monika Singh
On devices using BOARD_AVB_VBMETA_MAINLINE, the kernel command line should not contain the $(ANDROID_SYSTEM_PARTUUID) pattern, since the device will be using an initial ramdisk for both normal boot and recovery. Such a device will also not have system partition entries in the GPT, and thus querying the GUID will fail. In this case we want avb_sub_cmdline() to only query the partition GUID if the search string is actually present. Change-Id: Ic3bf795d3bdec7611a95d1e1ab87e12ecf2bdbdb
2019-03-12QcomModulePkg: Add support for ramdisk end addr for 32-bit targets.Mayank Grover
Memory map for 32-bit target is less than 64-bit target. Change introduces, ramdiskendaddr accordingly. Change-Id: I5bcf75dcee51ce45c443de6b211abffb4900bfd2
2019-03-09Merge "QcomModulePkg: Update fastboot command function for display"qctecmdr Service
2019-03-08QcomModulePkg: Update fastboot command function for displayYahui Wang
The display get and set variable protocol will be supported, so update fastboot command function for display. Change-Id: I328f72788ad908d98f2b6ea07429e4fb1a2480dd
2019-03-05QcomModulePkg: Fix kernel image size for 32bit targets.Mayank Grover
Fix kernel relocation size for 32 bit mode. Change-Id: Ife57740d0ef77eb15e3063acdaeab250b3beaa5d
2019-03-05Merge "QcomModulePkg: Add build flag for Dynamic Partition support"qctecmdr Service
2019-03-04Merge "QcomModulePkg: Change to override platform dtb, with user dtbo."qctecmdr Service
2019-03-04QcomModulePkg: Add build flag for Dynamic Partition supportSaranya Chidura
Add build flag for Dynamic Partition support Change-Id: Ib1718b6fd150f790a82c319271062cf22486db8a
2019-03-04QcomModulePkg: Validation of slot GUIDS with abl partitionMayank Grover
To validate the slot GUIDS, use abl as reference partition. Change-Id: If9cce4a3063f3825244060cf675570dcc37dae08
2019-03-04QcomModulePkg: Add support for new fastboot commands.Mayank Grover
- Add support for fastboot reboot recovery. - Add support for fastboot reboot fastboot. - Add support to write recovery commands. - Add support to select recovery partition if boot to recovery. - Add support to publish is-userspace variable. Change-Id: Iedb2484a31856e48119d1e46aeaa27f3744d4fe7
2019-03-04QcomModulePkg: Update commandline to support dynamic partitions.Mayank Grover
Change to dynamically update commandline, to support dynamic partitions support. Changes include - Skip appending skipinitramfs to commandline. - add boot_devices for super partition. - refactor dynamic partition check. Change-Id: I09cd9f9c97b00a32fde22c6b2b9ff61ef362baa6
2019-02-27Merge "QcomModulePkg: Change to enable check for dyanamic partition flag."qctecmdr Service
2019-02-27QcomModulePkg: Change to enable check for dyanamic partition flag.Mayank Grover
Change to enable check for dyanamic partition updates. Change-Id: Ie9807fe20e370ecbcae3c045564fd4c9828a6545
2019-02-27QcomModulePkg: Change to override platform dtb, with user dtbo.Mayank Grover
This is a debug feature, which enables override of final platform dtb with user dtbo read from user_dtbo partition. Override dtbo image have single dtb, which is overlayed on final dtbo to override parameters in dtb. Change-Id: I11aca2ee22e5ab653464d28f7f5267a8472698bd
2019-02-25QcomModulePkg: Update DT and Ramdisk Load Address based on kernel sizeSaranya Chidura
Update the DT and Ramdisk Load Address based on the decompressed kernel image size. Change-Id: Ia0c49cc51021dafff589f1507f86a201520792dd
2019-02-18Merge "QcomModulePkg: avb: Remove improper memory access"qctecmdr Service
2019-02-13QcomModulePkg: Correct the image header sizelijuang
Block size is not equal to page size. Image header check will be failed when the block size is less than the struct size of boot image header. So use the max boot image page size for image header size. As it's hard to get the page size before loading boot image. Change-Id: I492e3bc60a1fd295a4503a67dbf1f7fb2f0b828a
2019-02-13QcomModulePkg: avb: Remove improper memory accessMonika Singh
Move the variable declaration form block level to function level. The implementation of function-local variable points to block level variable which goes out of scope. The pointer thus points to a region of stack memory which could get re-used for other variables. Change-Id: I965135bfd01f876257b834d69285bb1c170b0bb2
2019-02-08QcomModulePkg: Read recovery message from page 1 of misc partitionBhanuprakash Modem
To get the recovery message for NAND type devices, read the message from page 1 of the misc partition instead of page 0. Change-Id: I2103dd50df2841aaef1d53a9aa375f1854d7d6e0 Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2019-02-07Merge "edk2: Protocol: update DDR protocol for Clock plan index"qctecmdr Service
2019-02-07Merge "QcomModulePkg: Initialize Flashinfo before send to charger protocol"qctecmdr Service
2019-02-06QcomModulePkg: Initialize Flashinfo before send to charger protocolMaria Yu
There is random error that happened with flash error because of battery voltage is low. That is root caused the structure Flashinfo is in stack and not initialed before use. Also add needed debug log when error happened. Change-Id: Ibb20fc5f99bf853d43316b3bd6e10eb9e80de2bb
2019-02-05QcomModulePkg: Convert fdt property len to cpu format, before use.Mayank Grover
Change to convert fdt property len to cpu format before using for string functions. Change-Id: I3b03da0ae2f2514a5ce5acfc6f52e957e6c2783d
2019-02-04edk2: Protocol: update DDR protocol for Clock plan indexJeevan Shriram
Update DDR protocol header clock plan index. Change-Id: I5fbea107cc4c4f2b79c4775121e5cebd4e693f4a
2019-01-29Merge "QcomModulePkg: Update the device tree node with DDR type"qctecmdr Service
2019-01-24QcomModulePkg: Security state for NAND based devicesAnmolpreet Kaur
Change to not read the rpmb fuse value to check security state of NAND based devices as RPMB is not supported on those. Skip the LEVB verification only if the device is non secure. Change-Id: Ia02482b13c4c4495a1c0d556614bf1d8dd310fd6
2019-01-23QcomModulePkg: Update the device tree node with DDR typeJeevan Shriram
Update kernel device tree node with DDR type for configuring hardware related settings by multiple multimedia subsystems. Change-Id: Idc4bd1d8d201758a7deccc1c4f93dd56c8d1e2f4
2019-01-23QcomModulePkg: Update DDR get info protocollijuang
Update DDR get info protocol for querying the ddr type being used and subsequently updating kernel device tree with the information. Change-Id: I62b6a8fef6210284b88c745fddc0ec79ae9f30ed
2019-01-18Merge "QcomModulePkg: Replaced avb_assert with explicit return"qctecmdr Service
2019-01-14QcomModulePkg: Replaced avb_assert with explicit returnZhen Kong
Returning from the function AvbSlotVerifyResult if slot_data is null. Change-Id: I581e518169e914f9fc17c8474ae08be85de486fc
2019-01-13Merge "QcomModulePkg: Update MemMapSize before calling to get memory map"qctecmdr Service
2019-01-12Merge "QcomModulePkg: Disable Retrycount decrement based on Android flag"qctecmdr Service
2019-01-11QcomModulePkg: Update MemMapSize before calling to get memory mapBhanuprakash Modem
Update the MemMapSize before allocating the memory for memory map, to prevent the API failure due to the old MemMapSize being used to call the API Change-Id: Ifdece99bfc88d6e95784dadacbfe9c85468dbdc5
2019-01-08QcomModulePkg: Disable Retrycount decrement based on Android flagJeevan Shriram
Disable retry count decrement with A/B feature during early phases of chip for debugging in multiple reboots without Boot Success. Retry count decrement will depend on Android flag. Change-Id: Ie5f02dbd44af181efab94f27d4d68b7c731c5e7c
2019-01-07QcomModulePkg: Add FEC supportSachin Grover
Get fec buildtime parameter passed in boot image header command line, construct complete verity commandline based on whether FEC supported or not and add it to final command line. Change-Id: Ic39e8125752028c5dfc0b1ff0b2873e0c326e033 Signed-off-by: Sachin Grover <sgrover@codeaurora.org>
2019-01-02QcomModulePkg: Change block size to support system imageMonika Singh
After enabling system as chain changes,increasing system partition size, will result in overflow. Hence change the block data-type. Change-Id: I54c0ece5bd835ea728fc72733928d69589ae3803
2018-12-26QcomModulePkg: Remove goto uses in rollback index updationMonika Singh
Do not update the rollback index in unlocked device and remove the use of goto. Change-Id: I0a191c4e4163d990ee1cf576b667c98013756025
2018-12-20Merge "QcomModulePkg: Correct the image size when avb is disabled"qctecmdr Service
2018-12-18QcomModulePkg: Change in rollback index updationMonika Singh
Do not update the rollback index in unlocked device. Change-Id: I9b437af2fd681f2307772f2ca7f28c1c5bf63680