From 8c52481794295a40c878277357978e309f7f32a0 Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Fri, 19 Oct 2018 14:59:13 +0800 Subject: 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 Tested-by: Joel Kitching Reviewed-by: Julius Werner --- utility/crossystem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'utility') 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)"}, -- cgit v1.2.1