firmware: raspberrypi: Add support for tryonce reboot flag
authorTim Gover <tim.gover@raspberrypi.com>
Tue, 20 Oct 2020 10:55:37 +0000 (11:55 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:08 +0000 (16:04 +0000)
commit58b0e17847c865cc5cafd9642e0cc7b1e1d5e1be
tree5cb116e7f0e759373c394288e236b73b81218827
parent5233d874b7537659a38f136c9ca5b662058d3112
firmware: raspberrypi: Add support for tryonce reboot flag

Define a new mailbox (SET_REBOOT_FLAGS) which may be used to
pass optional flags to the Raspberry Pi firmware that changes
the behaviour of the bootloader and firmware during a reboot.

Currently this just defines the 'tryboot' flag which causes
the firmware to load tryboot.txt instead config.txt. This
alternate configuration file can be used to specify the
path of an alternate firmware and kernels allowing a fallback
mechanism to be implemented for OS upgrades.
drivers/firmware/raspberrypi.c
include/soc/bcm2835/raspberrypi-firmware.h