summaryrefslogtreecommitdiff
path: root/QcomModulePkg/Library/BootLib
AgeCommit message (Collapse)Author
2019-11-27QcomModulePkg: Fastboot: Add extend Fastboot menu to UART interfaceJohn Stultz
We can already somewhat control the fastboot menu over the serial UART, as up and down changes action mode. However, there's no way to select the mode over the UART. So add some feedback over the UART as to the current mode and use SCAN_RIGHT as the selection option (equivalent to the power button). Signed-off-by: John Stultz <john.stultz@linaro.org> [AmitP: It is equivalent of using VOL+ (up), VOL- (down) and POWER keys on db845c to scroll thru or select fastboot options displayed over HDMI display.] Tested-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2019-11-27QcomModulePkg: BootLib: skip ValidateSlotGuids()Nicolas Dechesne
When using community builds, we want to depend as less as possible on Qualcomm internal builds quirks. This function does a few checks which are relevant when booting a Qualcomm Android image, but not well suited for community builds. For example users might choose to remove system_x partition, in which case the bootloader wouldn't boot anymore. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2019-06-26QcomModulePkg: Add max row check when chosening font scale factorlijuang
Add max row check when chosening the font scale factor. Base on the max support row and the character number per line to chosen the best font scale factor. Change-Id: I261782574826cf487c0bdbeb66bd6364f8793c3b
2019-06-03QcomModulePkg : Update the CPU's information to support partial binsSaranya Chidura
Set the number of CPUs present in the target. Change-Id: I4640dddee68d90f298c836b86f9d6f2cfca15b71 Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2019-05-29QcomModulePkg : Update Partial bins nodesParth Dixit
Add new nodes device tree nodes to the table. Change-Id: I2d7ce33957a2220388cdc0e16b3b7f9732a8aa68
2019-05-29QcomModulePkg : Update Partial bins supportParth Dixit
Move updating of partial nodes inside update device tree. Search for nodes only if it is defective. Add support for adding a property to disable defective node. Change-Id: Ic9a7d5c6bb43395a2739aebb2259bcdff5db4acf
2019-05-10Merge "QcomModulePkg : Fix getddrinfo function"qctecmdr
2019-05-10edk2: QcomModulePkg: Support new Header Version 2 of the bootimagePrakruthi Deepak Heragu
Bootimage header version v2 changes the way dtb's are appended. Boot image with header version v2 will not have kernel Image appended dtb but it is added to boot.img at an offset. It requires a new version to maintain backward compatibility of images. Change-Id: I8be2f4fe881180eaf7e60f998ed389a72f3a3b1c
2019-05-10QcomModulePkg: Removing extra space character while appending DtboIdxPrakruthi Deepak Heragu
Removing an extra space in the string which adds DtboIdx to the CmdLine Change-Id: I9e38aa8b6cfbe1ba118a4e8e095bda00040b7ec9
2019-05-09QcomModulePkg : Fix getddrinfo functionParth Dixit
In getddrinfo function ddr type is getting updated even after call has failed. This is unnecessary remove it. Change-Id: I06ef8d1d1aec247b57b6a9cefcb9c4cccb9672cf
2019-05-09QcomModulePkg : Move querying for granule size before querying dtParth Dixit
Right now memory node for granule is queried before querying the hardware. This is not required if hardware doesn't supports it and is expensive operation. Move it so that it is queried only if hardware support is present. Change-Id: I02cf31f2894f1609a6a23f4b652d76859bc339ad
2019-04-25Merge "QcomModulePkg: Update CmdLine to handle Squash FS"qctecmdr
2019-04-16QcomModulePkg: Disable fstab node for dynamic partition support.Mayank Grover
To support dynamic partition, disable firmware entries in fstab nodes. Partitions will be mounted as part of super partition. Change-Id: Iffc22005c2b7d8b64bf10687049a720bd891b59c
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-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-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-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: 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-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-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 "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-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-12Merge "QcomModulePkg: Disable Retrycount decrement based on Android flag"qctecmdr Service
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>
2018-12-20Merge "QcomModulePkg: Correct the image size when avb is disabled"qctecmdr Service
2018-12-11QcomModulePkg: Correct the image size when avb is disabledlijuang
The image size should contain the recovery dtbo size if the boot header version is 1, otherwise it will cause the device boot up to recovery failed. Change-Id: I82e118e25328abf56ecbf22f6a0de655433b1e37
2018-12-07QcomModulePkg: Query kernel load address and size at runtimeVenkata Narendra Kumar Gutta
UEFI provides get variables support to query kernel address and reserved kernel size. Update ABL to support this functionality and also maintain the backward compatibility. Change-Id: I8aef581db86ed9fc26375470e3510a99b2aa828a
2018-12-05Merge "QcomModulePkg: Update the structure typecast to align with architecture"qctecmdr Service
2018-11-26Merge "QcomModulePkg: Don't goto fastboot after exiting uefi"qctecmdr Service
2018-11-26QcomModulePkg: Update the structure typecast to align with architectureJeevan Shriram
Remove hard references to UINT32 and use UINTN and UINTN* to align with the architecture as the pointer addresses could go beyond 32 bit addresses. Also, ensure that the return value from Hypervisor is successful before entering into infinite loop to avoid race condition in third party hypervisor. Change-Id: I34fca545b29d4b698b52573079db38916cc3abda
2018-11-20QcomModulePkg: Update AllocatePool api with AllocateZeroPoolBhanuprakash Modem
As an uninitialized buffer may cause an unexpected behavior, we need to update "AllocatePool" api with "AllocateZeroPool" to initialize the buffer to zero before using it. Change-Id: I917c97c8861592fedabaaf8379c5229293a1b255
2018-11-20QcomModulePkg: Don't goto fastboot after exiting uefiParth Dixit
After calling exit boot services of uefi abl should not make any calls to uefi. In case of any error abl should go to dead loop. Change-Id: If4b25862a091de080dfb5c0400e37ce4e563f955
2018-11-19Merge "QcomModulePkg: Fix memory abort in DrawUI"qctecmdr Service
2018-11-18QcomModulePkg: Fix memory abort in DrawUIRaghavendra Rao Ananta
A previous change (<8704a70ed> QcomModulePkg: Fix stack error when pressing volume key in fastboot menu) had allocated memory of size 'diff'. But later, during AsciiStrnCatS(), it attempts to expose buffer of size MAX_MSG_SIZE. This leads to a memory abort. Hence, fix the abort by allocating MAX_MSG_SIZE sized buffer. Change-Id: Iefd6a7c4cd1739a17e85d85e9e56da964152d736 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2018-11-16QcomModulePkg: Update to use multi device tree overlay featureBhanuprakash Modem
Update the logic to use multi device tree overlay to avoid the unnecessary ufdt_to_fdt and fdt_to_ufdt conversion which is causing delay in overlay. Change-Id: I9f5db85fa268ea0c096dbb1fcf9478bf93ce1d79
2018-11-16QcomModulePkg: Load vm-linux image when AVB is disabled.Jeevan Shriram
Load and boot vm-linux image when AVB is disabled and add MultiSlot support for vm-linux images. Change-Id: I1c20f31a33f6e7093a2916f5e509ceca94d277e5