DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
DEVICE_VARS += SERCOMM_HWNAME SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER
-DEVICE_VARS += JCG_MAXSIZE
+DEVICE_VARS += SERCOMM_PAD JCG_MAXSIZE
loadaddr-y := 0x80000000
loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size
endef
+define Device/netgear_sercomm_nor
+ BLOCKSIZE := 64k
+ DEVICE_VENDOR := NETGEAR
+ IMAGES += factory.img
+ IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
+ pad-rootfs
+ IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size
+ IMAGE/factory.img := pad-extra $$$$(SERCOMM_PAD) | $$(IMAGE/default) | \
+ pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
+ zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
+endef
+
define Device/seama
SEAMA_MTDBLOCK := 2
IMAGES += factory.bin
TARGET_DEVICES += netgear_wac124
define Device/netgear_wndr3700-v5
+ $(Device/netgear_sercomm_nor)
$(Device/uimage-lzma-loader)
- BLOCKSIZE := 64k
IMAGE_SIZE := 15232k
+ DEVICE_MODEL := WNDR3700
+ DEVICE_VARIANT := v5
+ SERCOMM_HWNAME := WNDR3700v5
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/factory.img := pad-extra 320k | $$(IMAGE/default) | \
- pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip WNDR3700v5.bin | \
- sercom-seal
- DEVICE_VENDOR := NETGEAR
- DEVICE_MODEL := WNDR3700
- DEVICE_VARIANT := v5
+ SERCOMM_PAD := 320k
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
kmod-usb-ledtrig-usbport wpad-basic
SUPPORTED_DEVICES += wndr3700v5
endef
TARGET_DEVICES += mercury_mac1200r-v2
-define Device/netgear_r6xxx
- BLOCKSIZE := 64k
- DEVICE_VENDOR := NETGEAR
- IMAGES += factory.img
- IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
- pad-rootfs
- IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size
- IMAGE/factory.img := pad-extra 576k | $$(IMAGE/default) | \
- pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | \
- zip $$$$(SERCOMM_HWNAME).bin | sercom-seal
-endef
-
define Device/netgear_r6020
- $(Device/netgear_r6xxx)
+ $(Device/netgear_sercomm_nor)
IMAGE_SIZE := 7104k
DEVICE_MODEL := R6020
DEVICE_PACKAGES := kmod-mt76x2
SERCOMM_HWID := CFR
SERCOMM_HWVER := A001
SERCOMM_SWVER := 0x0040
+ SERCOMM_PAD := 576k
endef
TARGET_DEVICES += netgear_r6020
define Device/netgear_r6080
- $(Device/netgear_r6xxx)
+ $(Device/netgear_sercomm_nor)
IMAGE_SIZE := 7552k
DEVICE_MODEL := R6080
DEVICE_PACKAGES := kmod-mt76x2
SERCOMM_HWID := CFR
SERCOMM_HWVER := A001
SERCOMM_SWVER := 0x0040
+ SERCOMM_PAD := 576k
endef
TARGET_DEVICES += netgear_r6080
define Device/netgear_r6120
- $(Device/netgear_r6xxx)
+ $(Device/netgear_sercomm_nor)
IMAGE_SIZE := 15744k
DEVICE_MODEL := R6120
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
SERCOMM_HWID := CGQ
SERCOMM_HWVER := A001
SERCOMM_SWVER := 0x0040
+ SERCOMM_PAD := 576k
endef
TARGET_DEVICES += netgear_r6120