aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image/generic.mk
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2017-12-18 14:51:28 +0100
committerPiotr Dymacz <pepe2k@gmail.com>2018-01-14 20:33:18 +0100
commit7f9f42d42eff837d2eca5b4862cbb3b1ccebbefd (patch)
treec5c476f181ce2d564c3baa30bf8aab11817f7d7d /target/linux/ar71xx/image/generic.mk
parentce6c7691ec8c33409587ebbce6d6e0a8b2c4431b (diff)
downloadupstream-7f9f42d42eff837d2eca5b4862cbb3b1ccebbefd.tar.gz
upstream-7f9f42d42eff837d2eca5b4862cbb3b1ccebbefd.tar.bz2
upstream-7f9f42d42eff837d2eca5b4862cbb3b1ccebbefd.zip
ar71xx: add support for ALFA Network AP91-5G
ALFA Network AP91-5G is a 5 GHz outdoor AP/CPE board, based on Atheros AR7240 + AR9280. Specification: - 400/400/200 MHz (CPU/DDR/AHB) - 32 MB of RAM (DDR1) - 8 MB of FLASH (SPI NOR) - 1x 10/100 Mbps Ethernet, with passive PoE support (24 V) - 1T1R 5 GHz (AR9280), with ext. PA (SE5004L) and LNA, up to 27 dBm - 6x LED (5 are driven by GPIO) - 1x button (reset) - external h/w watchdog (EM6324QYSP5B, disabled and not used) - header for optional 802.3at/af PoE module - DC jack for main power input (optional, not installed by default) - UART and LEDs headers on PCB Flash instruction: Use "factory" image in vendor GUI (in case of problems, make sure your board has up to date firmware). Alternatively, TFTP in U-Boot can be used: select option "2. Load system code then write to Flash via TFTP" during early boot and use "sysupgrade" image. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/image/generic.mk')
-rw-r--r--target/linux/ar71xx/image/generic.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk
index 89ab1f0291..d6515ac529 100644
--- a/target/linux/ar71xx/image/generic.mk
+++ b/target/linux/ar71xx/image/generic.mk
@@ -1,5 +1,12 @@
DEVICE_VARS += DAP_SIGNATURE NETGEAR_BOARD_ID NETGEAR_HW_ID NETGEAR_KERNEL_MAGIC ROOTFS_SIZE SEAMA_SIGNATURE
+define Build/alfa-network-rootfs-header
+ mkimage \
+ -A mips -O linux -T filesystem -C lzma -a 0 -e 0 \
+ -n 'RootfsImage' -d $@ $@.new
+ @mv $@.new $@
+endef
+
define Build/mkbuffaloimg
$(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \
-R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \
@@ -105,6 +112,22 @@ define Device/ap90q
endef
TARGET_DEVICES += ap90q
+define Device/ap91-5g
+ DEVICE_TITLE := ALFA Network AP91-5G
+ DEVICE_PACKAGES := rssileds -swconfig
+ BOARDNAME := AP91-5G
+ IMAGE_SIZE := 7744k
+ KERNEL_SIZE := 1600k
+ ROOTFS_SIZE := 6144k
+ MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),6144k(rootfs),1600k(kernel),64k(config)ro,64k(art)ro,7744k@0x50000(firmware)
+ IMAGES := sysupgrade.bin factory.bin
+ IMAGE/factory.bin := append-rootfs | pad-rootfs |\
+ alfa-network-rootfs-header | append-kernel | check-size $$$$(IMAGE_SIZE)
+ IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs |\
+ pad-to $$$$(ROOTFS_SIZE) | append-kernel | check-size $$$$(IMAGE_SIZE)
+endef
+TARGET_DEVICES += ap91-5g
+
define Device/arduino-yun
DEVICE_TITLE := Arduino Yun
DEVICE_PACKAGES := kmod-usb-core kmod-usb2