openwrt/target/linux
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
..
apm821xx kernel: Update kernel 4.14 to version 4.14.195 2020-08-27 00:27:56 +02:00
ar71xx ar71xx,ath79: refresh 910-unaligned_access_hacks.patch 2020-11-24 09:27:50 +01:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt armvirt,x86: fix build breakage of crypto ccp module 2020-07-05 13:33:31 +02:00
at91 at91: disable legacy PTYs and virtual terminals 2019-12-17 11:27:20 +02:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ath79 ar71xx,ath79: refresh 910-unaligned_access_hacks.patch 2020-11-24 09:27:50 +01:00
bcm53xx kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
brcm47xx kernel: bump 4.14 to 4.14.209 2020-12-01 21:57:55 +01:00
brcm63xx kernel: Update to version 4.14.199 2020-09-28 01:04:35 +02:00
brcm2708 kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
cns3xxx kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
gemini kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
generic kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
imx6 treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
ipq40xx kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
ipq806x kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
kirkwood kirkwood: support for button in Pogoplug V4 2020-07-10 13:55:54 +02:00
lantiq kernel: Update to version 4.14.199 2020-09-28 01:04:35 +02:00
layerscape kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
malta malta: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:30 +02:00
mediatek kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
mpc85xx kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
mvebu mvebu: base-files: Update Turris Omnia U-Boot environment 2020-12-04 17:57:25 +01:00
mxs kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
octeon kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
octeontx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
omap treewide: use new procd sysupgrade $UPGRADE_BACKUP variable 2019-09-12 13:27:29 +02:00
oxnas kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
pistachio kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
ramips kernel: backport GD25Q256 support from 4.15 2020-12-01 21:59:30 +01:00
rb532 kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
samsung kernel: fix nand_release() usage. 2020-07-04 21:04:11 +02:00
sunxi kernel: bump 4.14 to 4.14.169 2020-02-04 18:11:26 +01:00
tegra tegra: correct cpu subtype 2020-04-18 00:18:13 +02:00
uml kernel: bump 4.14 to 4.14.201 2020-10-14 17:18:54 +02:00
x86 x86: Add CONFIG_EFI_CUSTOM_SSDT_OVERLAYS 2020-08-11 20:44:31 +02:00
zynq zynq: make title consistent for all devices 2019-05-17 21:41:43 +02:00
Makefile