summaryrefslogtreecommitdiff
path: root/tests/vboot_nvstorage_test.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-07-11 10:55:18 -0700
committerRandall Spangler <rspangler@chromium.org>2011-07-11 18:16:03 -0700
commitdaa807c51ef6d5bf6599e649d1777432bea8a3e5 (patch)
tree48d0e5b60822d906a2c88011a5ebdd74b295f316 /tests/vboot_nvstorage_test.c
parent9619112a574b975476667545e3a326052fa0c50b (diff)
downloadvboot-daa807c51ef6d5bf6599e649d1777432bea8a3e5.tar.gz
Add support for dev_boot_usb flag
BUG=chromium-os:17433 TEST=make && make runtests. Additional manual tests: 0. Insert a valid dev-signed USB key. 1. Boot with dev switch off. `crossystem dev_boot_usb` should print 0. 2. Flip dev switch on. `crossystem dev_boot_usb` should print 0. Ctrl+U at dev screen should beep, but not boot USB. 3. Type `crossystem dev_boot_usb=1`. Should succeed. `crossystem dev_boot_usb` should print 1. 4. Reboot system. At the dev mode warning, press Ctrl+U System should boot from USB key `crossystem dev_boot_usb` should print 0. 5. Flip dev switch off. `crossystem dev_boot_usb` should print 0. 6. Flip dev switch on. `crossystem dev_boot_usb` should print 0. Note that this does not apply to Cr-48, Alex, or ZGB. Change-Id: Idf85fdd642f38f531c89e5fa5b1679e84936d4da Reviewed-on: http://gerrit.chromium.org/gerrit/3875 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/vboot_nvstorage_test.c')
-rw-r--r--tests/vboot_nvstorage_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vboot_nvstorage_test.c b/tests/vboot_nvstorage_test.c
index 5306a648..ae42c0b2 100644
--- a/tests/vboot_nvstorage_test.c
+++ b/tests/vboot_nvstorage_test.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -31,6 +31,7 @@ static VbNvField nvfields[] = {
{VBNV_KERNEL_FIELD, 0, 0x12345678, 0xFEDCBA98, "kernel field"},
{VBNV_TEST_ERROR_FUNC, 0, 1, 7, "verified boot test error func"},
{VBNV_TEST_ERROR_NUM, 0, 3, 6, "verified boot test error number"},
+ {VBNV_DEV_BOOT_USB, 0, 1, 0, "dev boot usb"},
{0, 0, 0, 0, NULL}
};