openwrt/target/linux
Stefan Agner 16aecc12c2 mediatek: filogic: wax220: support factory image
Enable building a factory image which can be flashed through the OEM
firmware's web interface. It seems that the web interface requires a
minimum file size of 10MiB, otherwise it will not accept the image.

The update image is a regular sysupgrade tarball packed in a Netgear
encrypted image. The Netgear encrypted image is the same as used in
WAX202 or WAX206, including the encryption keys and IV.

This adds a script which creates the rootfs_data volume on first
startup. This is required since the OEM firmware's sysupgrade scripts
do not create such a paritition. Note that any script ordered after
70_initramfs_test will not get executed on initramfs. Hence this new
script 75_rootfs_prepare won't create the rootfs_data volume when
using the recovery initramfs.

Also, this deletes the kernel_backup and rootfs_backup volumes in case
we have to create the rootfs_data volumes. This makes sure that
OpenWrt is the actual backup firmware instead of the stock firmware.

References in WAX220 GPL source:
https://www.downloads.netgear.com/files/GPL/WAX220-V1.0.2.8-gpl-src.tar.gz

* package/base-files/files/lib/upgrade/nand.sh:186
  Creation of rootfs_data is disabled

* Uboot-upstream/board/mediatek/common/ubi_helper.c
  Automatic creation of UBI backup volumes

Signed-off-by: Stefan Agner <stefan@agner.ch>
(cherry picked from commit fa9d977f97)
2023-08-22 13:39:57 +02:00
..
airoha kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
apm821xx apm821xx: switch over from DTB_SIZE to DEVICE_DTC_FLAGS 2023-06-10 19:06:15 +02:00
archs38 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
armsr armsr: add kmod-sfp to default device profile 2023-08-19 15:11:55 +02:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
ath79 ath79: move ubnt-xm 64M RAM boards back to generic 2023-08-11 12:53:34 +02:00
bcm27xx kernel: bump 5.15 to 5.15.124 2023-08-10 21:06:55 +02:00
bcm47xx kernel: bump 5.15 to 5.15.123 2023-07-31 01:39:50 +02:00
bcm53xx kernel: bump 5.15 to 5.15.123 2023-07-31 01:39:50 +02:00
bcm63xx kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
bcm4908 kernel: bump 5.15 to 5.15.126 2023-08-15 17:11:39 +02:00
bmips kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
gemini treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
generic kernel: modules: add xdp-sockets-diag support 2023-08-19 15:06:52 +02:00
imx kernel: backport NVMEM patches queued for the v6.5 2023-07-10 12:54:53 +02:00
ipq40xx ipq4019: add support for ZTE MF287 Pro aka DreiNeo Pro 2023-08-21 21:41:12 +02:00
ipq806x kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
ipq807x kernel: bump 5.15 to 5.15.123 2023-07-31 01:39:50 +02:00
kirkwood kirkwood: add support for Iomega Storcenter ix4-200d 2023-05-20 15:35:37 +02:00
lantiq kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
layerscape kernel: bump 5.15 to 5.15.124 2023-08-10 21:06:55 +02:00
malta treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
mediatek mediatek: filogic: wax220: support factory image 2023-08-22 13:39:57 +02:00
mpc85xx mpc85xx: add support for Aerohive BR200-WP 2023-05-14 00:08:35 +02:00
mvebu mvebu: mcbin-singleshot: enable hearbeat LED by default 2023-08-11 12:53:34 +02:00
mxs mxs: rework image generation 2023-07-06 17:04:13 +02:00
octeon kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
octeontx kernel: bump 5.15 to 5.15.123 2023-07-31 01:39:50 +02:00
omap treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
oxnas kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
pistachio treewide: cleanup kernel symbol references 2023-05-12 13:02:44 +02:00
qoriq kernel: fix handling of CONFIG_DYNAMIC_DEBUG 2023-05-03 10:26:17 -07:00
ramips ramips: improve Xiaomi mi-mini indications 2023-08-15 17:19:05 +02:00
realtek kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
rockchip rockchip: fix setup network config for nanopi r2c 2023-06-17 12:21:13 +02:00
sifiveu kernel: bump 5.15 to 5.15.117 2023-06-17 12:09:03 +02:00
sunxi kernel: Set CONFIG_FRAME_WARN depending on target 2023-06-02 21:18:41 +02:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml kernel: bump 5.15 to 5.15.125 2023-08-10 21:07:50 +02:00
x86 x86: Add virtualization time sync support 2023-08-15 17:19:05 +02:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00