mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-10 04:41:49 +00:00
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>
This commit is contained in:
parent
0fda3b14c7
commit
6e2a842d62
27
target/linux/ixp4xx/base-files/lib/upgrade/platform.sh
Normal file
27
target/linux/ixp4xx/base-files/lib/upgrade/platform.sh
Normal file
@ -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
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user