arm: mvebu: turris_{omnia, mox}: ensure running bootcmd_rescue always works
authorPali Rohár <pali@kernel.org>
Mon, 14 Jun 2021 14:45:58 +0000 (16:45 +0200)
committerStefan Roese <sr@denx.de>
Tue, 15 Jun 2021 05:21:54 +0000 (07:21 +0200)
commit029bb91e806ed36dd48f0f967429bd5107464979
treee35208da5620087f8a273aef106f5e90291b4ac9
parentc4737cd594b5c4c47aff789fc53f7dd36ed03c94
arm: mvebu: turris_{omnia, mox}: ensure running bootcmd_rescue always works

One of the points of putting the rescue boot command into default
environment is that user can invoke it without physical access to the
board (without having to press the factory reset button), by running
  run bootcmd_rescue
in U-Boot's console.

Therefore we have to ensure that bootcmd_rescue is always set to default
value, regardless of whether the factory reset button was pressed.
Otherwise the variable will be empty for example after upgrade from
previous U-Boot.

Fixes: ec3784d62646 ("arm: mvebu: turris_mox: add support for board rescue mode")
Fixes: 176c3e7760a2 ("arm: mvebu: turris_omnia: support invoking rescue boot from console")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/turris_mox.c
board/CZ.NIC/turris_omnia/turris_omnia.c