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 apm821xx: clean up target/subtarget features 2020-11-25 13:23:06 +01:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2020-08-27 16:36:18 +02:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-10 18:52:15 +02:00
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 kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
bcm63xx bcm63xx: reorganize board patches into fewer files 2020-10-26 23:48:08 +01:00
gemini kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
generic initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
imx6 kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
ipq40xx ipq40xx: DTS style updates for OpenMesh devices 2020-11-23 13:44:47 +01:00
ipq806x kernel: bump 5.4 to 5.4.79 2020-11-24 15:36:59 +01:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
kirkwood target: update SPDX license names 2020-09-22 20:58:26 +02:00
lantiq lantiq: clean up target/subtarget features 2020-11-25 13:23:06 +01:00
layerscape kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
malta kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
mediatek kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
mpc85xx kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
mvebu mvebu: base-files: Update Turris Omnia U-Boot environment 2020-11-26 21:55:59 -10:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2020-10-09 23:20:19 +01:00
omap kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
oxnas kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
pistachio kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
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 rockchip: remove unused config symbols 2020-11-04 23:58:27 +01:00
sunxi sunxi: add support for Libre Computer ALL-H3-CC H5 2020-11-12 18:21:17 +01:00
tegra tegra: sysupgrade: use get_image_dd wrapper 2020-11-25 18:42:59 +01:00
uml kernel: bump 5.4 to 5.4.71 2020-10-15 17:46:54 +02:00
x86 x86: generic: disable CONFIG_EFI_VARS 2020-11-12 18:21:55 +01:00
zynq kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00