Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
|
|
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
|
|
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
|
|
|
|
|
|
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
|
|
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
|
|
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
|
|
Memory map for 32-bit target is less than 64-bit target.
Change introduces, ramdiskendaddr accordingly.
Change-Id: I5bcf75dcee51ce45c443de6b211abffb4900bfd2
|
|
|
|
The display get and set variable protocol will be supported,
so update fastboot command function for display.
Change-Id: I328f72788ad908d98f2b6ea07429e4fb1a2480dd
|
|
Fix kernel relocation size for 32 bit mode.
Change-Id: Ife57740d0ef77eb15e3063acdaeab250b3beaa5d
|
|
|
|
|
|
Add build flag for Dynamic Partition support
Change-Id: Ib1718b6fd150f790a82c319271062cf22486db8a
|
|
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
|
|
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
|
|
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 DDR protocol header clock plan index.
Change-Id: I5fbea107cc4c4f2b79c4775121e5cebd4e693f4a
|
|
|
|
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
|
|
Update kernel device tree node with DDR type for configuring hardware
related settings by multiple multimedia subsystems.
Change-Id: Idc4bd1d8d201758a7deccc1c4f93dd56c8d1e2f4
|
|
Update DDR get info protocol for querying the ddr type being used
and subsequently updating kernel device tree with the information.
Change-Id: I62b6a8fef6210284b88c745fddc0ec79ae9f30ed
|
|
|
|
Returning from the function AvbSlotVerifyResult if slot_data is null.
Change-Id: I581e518169e914f9fc17c8474ae08be85de486fc
|
|
|
|
|
|
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
|
|
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>
|
|
After enabling system as chain changes,increasing system
partition size, will result in overflow. Hence change the
block data-type.
Change-Id: I54c0ece5bd835ea728fc72733928d69589ae3803
|
|
Do not update the rollback index in unlocked device and remove
the use of goto.
Change-Id: I0a191c4e4163d990ee1cf576b667c98013756025
|
|
|
|
Do not update the rollback index in unlocked device.
Change-Id: I9b437af2fd681f2307772f2ca7f28c1c5bf63680
|