aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2016-07-18 19:39:57 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2016-10-27 01:50:42 +0300
commite3875350f3e4185020b64e0588bba521cd1d6e64 (patch)
tree55110b8007ef6e10d14fc858b3f4c32bf08b1ca7 /target/linux/ar71xx/image
parent6b0d279ca58bf6173b57c7e9b759be4552eab74a (diff)
downloadupstream-e3875350f3e4185020b64e0588bba521cd1d6e64.tar.gz
upstream-e3875350f3e4185020b64e0588bba521cd1d6e64.tar.bz2
upstream-e3875350f3e4185020b64e0588bba521cd1d6e64.zip
ar71xx: add support for D-Link DAP-2695 rev. A1
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r--target/linux/ar71xx/image/generic.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk
index 070bfbb1d6..ae0c7fcae1 100644
--- a/target/linux/ar71xx/image/generic.mk
+++ b/target/linux/ar71xx/image/generic.mk
@@ -597,3 +597,32 @@ $(Device/seama)
endef
TARGET_DEVICES += dir-869-a1 mynet-n600 mynet-n750 qihoo-c301
+
+define Build/mkwrggimg
+ $(STAGING_DIR_HOST)/bin/mkwrggimg -b \
+ -i $@ -o $@.imghdr -d /dev/mtdblock/1 \
+ -m $(BOARDNAME) -s $(DAP_SIGNATURE) \
+ -v LEDE -B $(REVISION)
+ mv $@.imghdr $@
+endef
+
+define Build/wrgg-pad-rootfs
+ $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
+endef
+
+define Device/dap-2695-a1
+ DEVICE_TITLE := D-Link DAP-2695 rev. A1
+ DEVICE_PACKAGES := ath10k-firmware-qca988x kmod-ath10k uboot-envtools
+ BOARDNAME = DAP-2695-A1
+ IMAGES := factory.img sysupgrade.bin
+ IMAGE_SIZE = 15360k
+ IMAGE/factory.img = append-kernel | pad-offset 65536 160 | append-rootfs | wrgg-pad-rootfs | mkwrggimg | check-size $$$$(IMAGE_SIZE)
+ IMAGE/sysupgrade.bin = append-kernel | pad-offset 65536 160 | mkwrggimg | append-rootfs | wrgg-pad-rootfs | check-size $$$$(IMAGE_SIZE)
+ KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma
+ KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
+ MTDPARTS = spi0.0:256k(bootloader)ro,64k(bdcfg)ro,64k(rgdb)ro,64k(langpack)ro,15360k(firmware),448k(captival)ro,64k(certificate)ro,64k(radiocfg)ro
+ DAP_SIGNATURE := wapac02_dkbs_dap2695
+ DEVICE_VARS += DAP_SIGNATURE
+endef
+
+TARGET_DEVICES += dap-2695-a1