]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: turris_mox: add support for board rescue mode
authorMarek Behún <marek.behun@nic.cz>
Mon, 7 Jun 2021 14:34:47 +0000 (16:34 +0200)
committerStefan Roese <sr@denx.de>
Thu, 10 Jun 2021 05:18:06 +0000 (07:18 +0200)
commitb18d6b0be51ac4968148b0709f8ccd76d15d3941
tree81a74b3a2534590e6b4dc914b126c45b7e03262f
parent8ede8bba1d2788c3c590c688f031bb9d0e86ed79
arm: mvebu: turris_mox: add support for board rescue mode

Add necessary config options and board code to support board factory
reset / rescue mode on Turris MOX.

In order to also support invoking rescue mode from U-Boot console,
without having to press the factory reset button, put the rescue command
into `bootcmd_rescue` default environment variable. When factory reset
button is pressed, invoke rescue mode via distroboot by setting
`boot_targets` to `rescue`.

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_mox/turris_mox.c
configs/turris_mox_defconfig
include/configs/turris_mox.h