summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2012-10-02 16:24:45 +0800
committerShawn Nematbakhsh <shawnn@google.com>2012-10-18 19:10:37 -0700
commite6e835b4dd9d28c0b950a79288830f1b25097f4c (patch)
tree0ddbf65ad1c28221d31e37f44a32ab2078cebad3
parentf402cd71436fd39c5a4f5368d4e75d56a1bebc54 (diff)
downloadvboot-e6e835b4dd9d28c0b950a79288830f1b25097f4c.tar.gz
STOUT-FIRMWARE: Print warning in Ctrl-U when dev_boot_usb is not enabled.
Ctrl-U used to simply beep without messages for why it does not work (due to NV data dev_boot_usb). Since the system is already in Developer mode, it should be fine to provide some debug information otherwise we can spent time trying to figure out why the firmware doesn't work. BRANCH=stout BUG=chrome-os-partner:14474 TEST=manual, test basic firmware functions. Change-Id: Ic4e20fc2df7c1c2dd6fb425f066ebd55d9659ac2 Original-Change-Id: Iab20ecdb2e1c4e267b7257a7bd241006241ddf70 Reviewed-on: https://gerrit.chromium.org/gerrit/35917 Reviewed-by: Shawn Nematbakhsh <shawnn@google.com> Tested-by: Shawn Nematbakhsh <shawnn@google.com>
-rw-r--r--firmware/lib/vboot_api_kernel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 7539f21e..b451a7af 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -234,6 +234,9 @@ VbError_t VbBootDeveloper(VbCommonParams* cparams, LoadKernelParams* p) {
VBDEBUG(("VbBootDeveloper() - user pressed Ctrl+U; try USB\n"));
if (!allow_usb) {
VBDEBUG(("VbBootDeveloper() - USB booting is disabled\n"));
+ VbExDisplayDebugInfo("WARNING: Booting from external media (USB/SD) "
+ "has not been enabled. Refer to the "
+ "developer-mode documentation for details.\n");
VbExBeep(120, 400);
VbExSleepMs(120);
VbExBeep(120, 400);