diff options
author | Joel Kitching <kitching@google.com> | 2018-10-19 14:59:13 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-19 16:28:25 -0800 |
commit | 8c52481794295a40c878277357978e309f7f32a0 (patch) | |
tree | 0f150f79e3b093d60cde011020dbef7a56657702 /utility | |
parent | 0f7779862ca4b4973f52c7b851c65ccb8d9cd147 (diff) | |
download | vboot-8c52481794295a40c878277357978e309f7f32a0.tar.gz |
crossystem: add alt_os_enabled to show Alt OS state
Some user-space applications need to know whether Alt OS is
currently enabled or disabled. Add alt_os_enabled to
crossystem as a read-only flag for this purpose.
It is currently based off of reading VBSD_ALT_OS_SHOW_PICKER
from VbSharedDataHeader. We may want to change that to a
field dedicated to showing Alt OS state in the future
(see b/117195332).
BUG=b:117195332,b:117142023
TEST=emerge-eve vboot_reference && \
cros deploy --force --board=eve dut vboot_reference
Change-Id: Ic9a120e7d24021eb984d501f09ce4d7b6f85d730
Reviewed-on: https://chromium-review.googlesource.com/1328390
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/crossystem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/crossystem.c b/utility/crossystem.c index d7443487..bef0108f 100644 --- a/utility/crossystem.c +++ b/utility/crossystem.c @@ -57,6 +57,7 @@ const Param sys_param_list[] = { {"enable_alt_os_request", CAN_WRITE, "Enable AltOS mode on next boot"}, {"post_ec_sync_delay", CAN_WRITE, "Short delay after EC software sync (persistent, writable, eve only)"}, + {"alt_os_enabled", 0, "Alt OS state (1 if enabled, 0 if disabled)"}, {"fmap_base", 0, "Main firmware flashmap physical address", "0x%08x"}, {"fw_prev_result", IS_STRING, "Firmware result of previous boot (vboot2)"}, {"fw_prev_tried", IS_STRING, "Firmware tried on previous boot (vboot2)"}, |