summaryrefslogtreecommitdiff
path: root/firmware/2lib/2tpm_bootmode.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-04-06 18:04:44 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-07 20:31:02 +0000
commitfa32d9924249886668d61b73d6b56cc00c9ca6e3 (patch)
treeaa4256593f953b319f3cc5aec557a370aa3a1052 /firmware/2lib/2tpm_bootmode.c
parent942bcdb5ca9c2ebbe2608a1d31c41f33703929dc (diff)
downloadvboot-fa32d9924249886668d61b73d6b56cc00c9ca6e3.tar.gz
enable USB boot on transition to dev on some devices
Some Chrome OS devices do not allow to login even in developer mode, as they do not have display/keyboard and sshd is not part of the Chrome OS image. Even enabling developer mode on those devices is very involved (requires taking the device apart and is guaranteed to take long time). We still want to allow the end user to control those devices in dev mode. The solution is enabling the ability to boot from the USB stick when the device transitions from normal to developer mode. A simple way to do it is to set the NVRAM flag, which allows USB boot. The flag is set on normal=>dev transition only, and only on those devices where it is configured (as discovered by invoking VbExGetSwitches with the appropriate parameters). BRANCH=storm BUG=chrome-os-partner:38303 TEST=tested with the corresponding depthcharge patches Change-Id: I5fa58963256598cde3b534f5250101fba6042f8c Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264187 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264426
Diffstat (limited to 'firmware/2lib/2tpm_bootmode.c')
0 files changed, 0 insertions, 0 deletions