Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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
|
|
Set the number of CPUs present in the target.
Change-Id: I4640dddee68d90f298c836b86f9d6f2cfca15b71
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
|
|
Add new nodes device tree nodes to the table.
Change-Id: I2d7ce33957a2220388cdc0e16b3b7f9732a8aa68
|
|
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
|
|
|
|
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
|
|
Removing an extra space in the string which adds DtboIdx to the CmdLine
Change-Id: I9e38aa8b6cfbe1ba118a4e8e095bda00040b7ec9
|
|
In getddrinfo function ddr type is getting updated even after call has failed.
This is unnecessary remove it.
Change-Id: I06ef8d1d1aec247b57b6a9cefcb9c4cccb9672cf
|
|
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
|
|
|
|
To support dynamic partition, disable firmware entries in fstab nodes.
Partitions will be mounted as part of super partition.
Change-Id: Iffc22005c2b7d8b64bf10687049a720bd891b59c
|
|
Change to remove multiple definition for macro DTB_PAB_SIZE,
used for padding for future expansion.
Change-Id: Ib28ee5f24752415768847e88b1892175c382a082
|
|
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
|
|
|
|
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
|
|
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
|
|
Memory map for 32-bit target is less than 64-bit target.
Change introduces, ramdiskendaddr accordingly.
Change-Id: I5bcf75dcee51ce45c443de6b211abffb4900bfd2
|
|
Fix kernel relocation size for 32 bit mode.
Change-Id: Ife57740d0ef77eb15e3063acdaeab250b3beaa5d
|
|
|
|
|
|
To validate the slot GUIDS, use abl as reference partition.
Change-Id: If9cce4a3063f3825244060cf675570dcc37dae08
|
|
- 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
|
|
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
|
|
|
|
Change to enable check for dyanamic partition updates.
Change-Id: Ie9807fe20e370ecbcae3c045564fd4c9828a6545
|
|
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
|
|
Update the DT and Ramdisk Load Address based on the decompressed
kernel image size.
Change-Id: Ia0c49cc51021dafff589f1507f86a201520792dd
|
|
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
|
|
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>
|
|
|
|
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
|
|
Change to convert fdt property len to cpu format before using
for string functions.
Change-Id: I3b03da0ae2f2514a5ce5acfc6f52e957e6c2783d
|
|
Update kernel device tree node with DDR type for configuring hardware
related settings by multiple multimedia subsystems.
Change-Id: Idc4bd1d8d201758a7deccc1c4f93dd56c8d1e2f4
|
|
|
|
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
|
|
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>
|
|
|
|
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
|
|
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
|
|
|
|
|
|
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
|
|
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
|
|
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
|
|
|
|
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>
|
|
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
|
|
Load and boot vm-linux image when AVB is disabled and add MultiSlot
support for vm-linux images.
Change-Id: I1c20f31a33f6e7093a2916f5e509ceca94d277e5
|