]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: turris_omnia: support invoking rescue boot from console
authorMarek Behún <marek.behun@nic.cz>
Fri, 28 May 2021 08:00:49 +0000 (10:00 +0200)
committerStefan Roese <sr@denx.de>
Fri, 4 Jun 2021 09:32:41 +0000 (11:32 +0200)
commit176c3e7760a2e302620b8b12b29f4aa385b86087
treef280cf847549aec7adabaffb645a64a7a014c552
parent0b5bb36d13fe416fda29d593ce9ac1152e62186b
arm: mvebu: turris_omnia: support invoking rescue boot from console

Make it possible to invoke rescue boot from U-Boot console, without
having to press the factory reset button. This is needed when accessing
the device remotely, for example.

Achieve this by putting rescue command into `bootcmd_rescue` default
environment variable and setting some distroboot environment variables
to their default values when the factory button is pressed.

Rescue boot from console can be invoked by running
  run bootcmd_rescue

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c
include/configs/turris_omnia.h