[U-Boot] [PATCH u-boot-marvell v3 14/17] arm: mvebu: turris_omnia: add RESET button handling
Stefan Roese
sr at denx.de
Fri May 3 05:22:29 UTC 2019
On 02.05.19 16:53, Marek BehĂșn wrote:
> There is a Factory RESET button on the back side of the Turris Omnia
> router. When user presses this button before powering the device up and
> keeps it pressed, the microcontroller prevents the main CPU from booting
> and counts how long the RESET button is being pressed (and indicates
> this by lighting up front LEDs).
>
> The idea behind this is that the user can boot the device into several
> Factory RESET modes.
>
> This patch adds support for U-Boot to read into which Factory RESET mode
> the user booted the device. The value is an integer stored into the
> omnia_reset environment variable. It is 0 if the button was not pressed
> at all during power up, otherwise it is the number identifying the
> Factory RESET mode.
>
> This patch also changes bootcmd to a special hardcoded value if Factory
> RESET button was pressed during device powerup. This special bootcmd
> value sets the colors of all the LEDs on the front panel to green and
> then tries to load the rescue image from the SPI flash memory and boot
> it.
>
> Signed-off-by: Marek BehĂșn <marek.behun at nic.cz>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
More information about the U-Boot
mailing list