summaryrefslogtreecommitdiffstats
path: root/boot_control.cpp
Commit message (Collapse)AuthorAgeFilesLines
* bootcontrol: return error if set active for partitions failsFernando Lugo2018-04-121-1/+4
| | | | | | | | | | | | | Do not continue in case of an error setting active slot for all partitions. Otherwise, boot LUN will be changed causing XBL to be read from the new slot but other parts of the bootloader will be read from old slot. This may cause the bootloader to crash and device will be bricked Bug: 77969086 Test: bootctl set-active-boot-slot 0 Change-Id: Ief029f314d3b1197e43b6e85ac78aba9761cf736 Signed-off-by: Fernando Lugo <flugo@google.com>
* bootcontrol: count slots correctly am: 8d5e2b3379Connor O'Brien2017-11-011-1/+3
|\ | | | | | | | | | | am: 23ab93d117 Change-Id: I14e798f7aa75f7fcdd987d454049abbdb5629ce5
| * bootcontrol: count slots correctlyConnor O'Brien2017-10-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Currently slots are miscounted on marlin because the count includes both the bootlocker and boot partitions for each slot. Modify the name used to find boot partitions to avoid this double counting. Add a check to catch changes to slot suffixes that would break slot counting. Bug: 68012387 Test: bootctl get-number-slots returns 2 on marlin Change-Id: I5480273cf6de07fac2f47e4f8e249e2d547b686e Signed-off-by: Connor O'Brien <connoro@google.com>
* | Build bootctrl.* with BOARD_VNDK_VERSIONJiyong Park2017-06-291-1/+1
|/ | | | | | | | | Replace the global include path with header libs. Change cutils/log.h to log/log.h. Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j bootctrl.msm8998 Change-Id: I55e48ad5856310d60b5093a3f47f479b865082c9
* bootcontrol: Reduce the number of writes in the set active slot functionNaveen Ramaraj2016-07-191-0/+670
We now write the 'gpt_disk' structure back to storage only once per each physical disk. Also did a minor cleanup of the code. Bug: 28352938 Bug: 29436641 Change-Id: Id4fd887fe2978f9cd17447e9a1b715f0a8df5073