openwrt/target/linux/mvebu
Klaus Kudielka f10332c292 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)
(cherry picked from commit dfa357a3de)
2020-12-04 17:57:25 +01:00
..
base-files mvebu: base-files: Update Turris Omnia U-Boot environment 2020-12-04 17:57:25 +01:00
cortexa9 mvebu: cortexa9: correct cpu subtype 2020-04-18 00:18:13 +02:00
cortexa53 kernel: Remove CONFIG_COMPAT 2019-05-11 17:15:41 +02:00
cortexa72 kernel: Remove CONFIG_COMPAT 2019-05-11 17:15:41 +02:00
files-4.14/arch mvebu: add images for additional ESPRESSObin boards 2019-05-11 23:11:04 +02:00
image mvebu: Add turris-omnia.bootscript 2020-12-04 17:57:25 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
config-4.14 mvebu: enable xHCI USB controller connected to PCIe 2019-08-17 00:17:46 +02:00
Makefile mvebu: make bootfs size for sdcard image configurable 2019-04-06 16:31:10 +02:00