mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Support virtual dev-switch (keyboard-based dev-mode)
BUG=chrome-os-partner:9706
TEST=manual
Currently, Link is the only platform that enables this feature.
To enter dev-mode:
Boot into recovery mode using the magic key chord. At the Insert screen,
press Ctrl-D. You'll be asked if you want to enter developer mode. If you
then press ENTER, it will reboot with dev-mode enabled. If you press SPACE
or ESC, it will return to the Insert screen.
If you enter recovery mode through any other means, or if dev-mode is
already enabled, pressing Ctrl-D at the Insert screen will have no effect.
To return to normal mode:
Reboot. At the Dev screen, press ENTER or SPACE. It will reboot to
recovery mode and ask you if you want to return to normal mode. If you
press ESC or power off, you'll still be in dev-mode. Press ENTER or SPACE,
and it will reboot into normal mode (of course, if you've messed up your
images while in dev-mode, you'll just come right back to recovery mode
again).
You can also request a direct return to normal mode by running
crossystem disable_dev_request=1
and rebooting.
Change-Id: I435905855a6c39932ee466cc046bdc4c4c860f98
Reviewed-on: https://gerrit.chromium.org/gerrit/24160
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Ready: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
@@ -100,7 +100,7 @@ enum VbErrorPredefined_t {
|
||||
/* VbExBeep() can't make sound in the background */
|
||||
VBERROR_NO_BACKGROUND_SOUND = 0x10019,
|
||||
/* Developer has requested a BIOS shell */
|
||||
VBERROR_BIOS_SHELL_REQUESTED = 0x10020
|
||||
VBERROR_BIOS_SHELL_REQUESTED = 0x10020,
|
||||
};
|
||||
|
||||
|
||||
@@ -511,6 +511,8 @@ enum VbScreenType_t {
|
||||
VB_SCREEN_RECOVERY_REMOVE = 0x201, /* Recovery - remove inserted devices */
|
||||
VB_SCREEN_RECOVERY_INSERT = 0x202, /* Recovery - insert recovery image */
|
||||
VB_SCREEN_RECOVERY_NO_GOOD = 0x203, /* Recovery - inserted image invalid */
|
||||
VB_SCREEN_RECOVERY_TO_DEV = 0x204, /* Recovery - confirm dev mode */
|
||||
VB_SCREEN_RECOVERY_TO_NORM = 0x205, /* Recovery - confirm normal mode */
|
||||
};
|
||||
|
||||
/* Initialize and clear the display. Set width and height to the screen
|
||||
|
||||
Reference in New Issue
Block a user