Openwrt/target/linux
Klaus Kudielka dfa357a3de mvebu: base-files: Update Turris Omnia U-Boot environment
Move the update procedure from sysupgrade to first boot, which is much
more convenient in the sysupgrade case (otherwise the environment is
always one generation behind).

Check whether we have an old U-Boot release installed, and update the
environment only if necessary.

Some notes on the U-Boot environment:

The first 9 lines are a copy of the default environment of the old U-Boot
release - only modified, to run "distro_bootcmd", in case "mmcboot" fails
to boot the factory OS.

The remaining 16 lines are a backport of the default environment of the
new U-Boot release (shipped with CZ11NIC23). The main entry point is
"distro_bootcmd", which eventually sources boot.scr. This way, we have
a unified boot protocol for all Turris Omnia revisions so far.

This commit also fixes a shortcoming of previous Turris Omnia support:

Users may install OpenWrt with the Turris Omnia in factory state
(i.e. invalid environment store). In that case, neither fw_setenv, nor
U-Boot itself, would import the default environment from the image -
screwing up the rescue system, at least!

Signed-off-by: Klaus Kudielka <klaus.kudielka@gmail.com>
Reviewed-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Tested-by: W. Michael Petullo <mike@flyn.org> (Turris Omnia "2020")
Tested-by: Klaus Kudielka <klaus.kudielka@gmail.com> (Turris Omnia)
2020-11-26 21:55:59 -10:00
..
apm821xx
arc770
archs38
armvirt
at91
ath25
ath79 kernel: clean up patch fuzz 2020-11-26 17:32:43 +00:00
bcm27xx kernel: clean up patch fuzz 2020-11-26 17:32:43 +00:00
bcm47xx kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
bcm53xx
bcm63xx
gemini
generic initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
imx6
ipq40xx
ipq806x
ipq807x
kirkwood
lantiq
layerscape kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
malta
mediatek kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
mpc85xx
mvebu mvebu: base-files: Update Turris Omnia U-Boot environment 2020-11-26 21:55:59 -10:00
mxs
octeon
octeontx
omap
oxnas
pistachio
ramips ramips: mt7621: replace missing custom-initramfs-uimage 2020-11-26 09:12:57 +01:00
realtek kernel: clean up patch fuzz 2020-11-26 17:32:43 +00:00
rockchip
sunxi
tegra tegra: sysupgrade: use get_image_dd wrapper 2020-11-25 18:42:59 +01:00
uml
x86
zynq
Makefile