aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/mt7621.mk
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2019-05-15 19:11:01 +0000
committerChristian Lamparter <chunkeey@gmail.com>2019-05-18 16:44:41 +0200
commit2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8 (patch)
treef2888a10b7fcf13e16805b437f5f67b4d8ac4262 /target/linux/ramips/image/mt7621.mk
parentd4b89b7170ab82530cfaf21e5f00bee7088432e2 (diff)
downloadupstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.tar.gz
upstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.tar.bz2
upstream-2fdd02cc7c3516c2cce2ace2c7b539e0821ecbe8.zip
ramips: add factory image for WNDR3700v5
This uses the existing rules for Sercomm factory images and moves them to the ramips image Makefile, so they can be used in all subtargets. The new factory image for WNDR3700v5 can be flashed using nmrpflash. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'target/linux/ramips/image/mt7621.mk')
-rw-r--r--target/linux/ramips/image/mt7621.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 9e42404f64..671e7f378a 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -531,7 +531,16 @@ TARGET_DEVICES += mqmaker_witi-512m
define Device/wndr3700v5
DTS := WNDR3700V5
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ BLOCKSIZE := 64k
+ IMAGE_SIZE := 15232k
+ SERCOMM_HWID := AYB
+ SERCOMM_HWVER := A001
+ SERCOMM_SWVER := 0x1054
+ IMAGES += factory.img
+ IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs
+ IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
+ IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \
+ sercom-footer | pad-to 128 | zip WNDR3700v5.bin | sercom-seal
DEVICE_TITLE := Netgear WNDR3700v5
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic
endef