immortalwrt/target/linux/mediatek
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
..
base-files mediatek: add support for the GL.iNet GL-MT3000 2023-05-18 02:41:49 +01:00
dts mediatek: enable NWA50AX Pro eth LEDs 2023-08-22 13:39:29 +02:00
files/drivers/net/phy/rtk mediatek: remove mt753x driver 2023-04-29 10:25:43 +02:00
files-5.15 mediatek: filogic: mt7988: mark RTC clock as critical 2023-08-13 16:30:13 +01:00
filogic mediatek: filogic: wax220: support factory image 2023-08-22 13:39:57 +02:00
image mediatek: filogic: wax220: support factory image 2023-08-22 13:39:57 +02:00
mt7622 mediatek: set new compat version if booted on R64 and R3 2023-06-09 19:23:03 +01:00
mt7623 mediatek: filogic: add driver for Richtek RT5190A regulator 2023-05-24 19:26:52 +01:00
mt7629 mediatek: add support for Netgear EX6250v2 series 2023-07-13 12:05:28 +01:00
patches-5.15 kernel: bump 5.15 to 5.15.126 2023-08-15 17:11:39 +02:00
Makefile mediatek: add filogic subtarget 2022-08-28 20:33:15 +01:00
modules.mk mediatek: mt7623: build mt6577_auxadc driver into kernel 2022-12-05 23:14:36 +00:00