summaryrefslogtreecommitdiff
authorTellen Yu <tellen.yu@amlogic.com>2019-06-27 02:30:16 (GMT)
committer Tellen Yu <tellen.yu@amlogic.com>2019-06-27 02:38:35 (GMT)
commit1061f1f47c61b2783764bcb64f80c49d647cff54 (patch)
treec59539a251dc99fcf8dd5779918bfcdcd765c75c
parent54f78f113a32df9c1fba89fdb49c7d48ab8d1743 (diff)
downloaduboot-1061f1f47c61b2783764bcb64f80c49d647cff54.zip
uboot-1061f1f47c61b2783764bcb64f80c49d647cff54.tar.gz
uboot-1061f1f47c61b2783764bcb64f80c49d647cff54.tar.bz2
fastboot: restore bootdelay value to 0 [1/1]
PD#SWPL-10357 BUG:132773884 Problem: 1. adb reboot bootloader -> will set bootdelay=-1 2. fastboot reboot -> bootdelay will be clean, no problem 3. if do fastboot flashing unlock first, there is a saveenv operation, so the bootdelay=-1 will be saved. then fastboot reboot. the bootdelay is -1, so the probelm is produced. Solution: Every reboot mode need restore bootdelay value to 0 except reboot bootloader. Verify: verify it on franklin Change-Id: I0cfabaabb8fba8cf9e6e4364bae6db733b3f6ef1 Signed-off-by: Tellen Yu <tellen.yu@amlogic.com>
Diffstat
-rw-r--r--common/cmd_reboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_reboot.c b/common/cmd_reboot.c
index df9f0ca..fc35439 100644
--- a/common/cmd_reboot.c
+++ b/common/cmd_reboot.c
@@ -123,6 +123,7 @@ int do_get_rebootmode (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
}
#ifdef CONFIG_CMD_FASTBOOT
+ setenv("bootdelay", "0");
switch (reboot_mode_val) {
case AMLOGIC_FASTBOOT_REBOOT: {
setenv("reboot_mode","fastboot");