diff options
| author | Linus Walleij | 2024-12-20 18:50:26 +0000 |
|---|---|---|
| committer | Linus Walleij | 2025-01-02 01:29:44 +0000 |
| commit | 6e2a842d624ae5a6852232dc860a012c22db2bb9 (patch) | |
| tree | 9bbec2909d74b15c98bb9e7db72de68329471a9d | |
| parent | 0fda3b14c771c697f98daed39cbba08d69b06b96 (diff) | |
| download | openwrt-6e2a842d624ae5a6852232dc860a012c22db2bb9.tar.gz | |
ixp4xx: Support sysupgrade on WG302 v1
The WG302 v1 have a separate rootfs partition that we
simply just upgrade with a new rootfs image. The kernel
need to be updated on the TFTP server.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
| -rw-r--r-- | target/linux/ixp4xx/base-files/lib/upgrade/platform.sh | 27 | ||||
| -rw-r--r-- | target/linux/ixp4xx/image/Makefile | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/base-files/lib/upgrade/platform.sh b/target/linux/ixp4xx/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..869eab3214 --- /dev/null +++ b/target/linux/ixp4xx/base-files/lib/upgrade/platform.sh @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + local board=$(board_name) + + case "$board" in + netgear,wg302v1) + return 0 + ;; + esac + + echo "Sysupgrade is not yet supported on $board." + return 1 +} + +platform_do_upgrade() { + local board=$(board_name) + + case "$board" in + netgear,wg302v1) + PART_NAME=rootfs + default_do_upgrade "$1" + ;; + esac +} diff --git a/target/linux/ixp4xx/image/Makefile b/target/linux/ixp4xx/image/Makefile index f1172ee123..d4b2e5b962 100644 --- a/target/linux/ixp4xx/image/Makefile +++ b/target/linux/ixp4xx/image/Makefile @@ -136,6 +136,7 @@ define Device/netgear_wg302v1 IMAGES := kernel.bin rootfs.bin IMAGE/kernel.bin := append-kernel IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to 128k + IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to 128k | append-metadata endef TARGET_DEVICES += netgear_wg302v1 |