]> git.baikalelectronics.ru Git - uboot.git/commit
board: dragonboard410c: Fix fastboot
authorStephan Gerhold <stephan@gerhold.net>
Wed, 14 Jul 2021 08:56:25 +0000 (10:56 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 22:53:46 +0000 (18:53 -0400)
commit6bb3ae08ad8c13ddbfed810d9407abe2357c0657
tree991ef8f68fccdd241c78990290988786d60108b4
parent5c17906b8ce49d33404b67bd93a187f50d81226a
board: dragonboard410c: Fix fastboot

At the moment pressing the volume down key does not actually launch
fastboot. This is because setting "bootdelay" to "-1" actually
disables autoboot and drops to the U-Boot console. It does not execute
the "bootcmd".

The correct value for "bootdelay" here would be "-2", which disables
the delay and key checking and would immediately execute the "bootcmd".

However, even better in this case is using "preboot" to trigger Fastboot.
The advantage is that running "fastboot continue" will actually continue
the autoboot process instead of ending up in the U-Boot shell.

Also make sure to unset "preboot" again immediately in case the user
saves the environment after triggering fastboot.

Cc: Ramon Fried <rfried.dev@gmail.com>
Fixes: b31659d3db50 ("db410c: automatically launch fastboot")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
board/qualcomm/dragonboard410c/dragonboard410c.c
configs/dragonboard410c_defconfig