diff options
author | George Hopkins <george-hopkins@null.net> | 2017-10-28 14:24:21 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-02-13 11:18:07 +0100 |
commit | 13f9e40602707479aaffac0d68a952070f305b7d (patch) | |
tree | 3bbc790ad9f611e2febe89059b29c3704bf8796d /target/linux/ramips/base-files | |
parent | 520335506273ed248074f7b3d2ba8bec148dddaa (diff) | |
download | upstream-13f9e40602707479aaffac0d68a952070f305b7d.tar.gz upstream-13f9e40602707479aaffac0d68a952070f305b7d.tar.bz2 upstream-13f9e40602707479aaffac0d68a952070f305b7d.zip |
ramips: add support for D-Link DAP-1522 A1
D-Link DAP-1522 is a wireless bridge/access point with 4 LAN
ports and a dual-band wireless chipset.
Specifications:
- Ralink RT2880
- 32 MB of RAM
- 4 MB of Flash
- 4x 10/100/1000 Mbps Ethernet (RTL8366SR)
- 802.11abgn (RT2850)
Flash Instructions:
1. Download lede-ramips-rt288x-dap-1522-a1-squashfs-factory.bin
2. Open the web interface and upload the image
Signed-off-by: George Hopkins <george-hopkins@null.net>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 1 | ||||
-rw-r--r-- | target/linux/ramips/base-files/etc/diag.sh | 13 | ||||
-rw-r--r-- | target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum (renamed from target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header) | 9 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 |
4 files changed, 17 insertions, 9 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 1ccff892b1..8f0a2b0725 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -242,6 +242,7 @@ ramips_setup_interfaces() ;; cs-qr10|\ d105|\ + dap-1522-a1|\ dch-m225|\ ex2700|\ ex3700|\ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index e38311d5e5..342a648687 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -147,6 +147,13 @@ get_status_led() { youku-yk1) status_led="$boardname:blue:power" ;; + dap-1522-a1|\ + k2p|\ + m3|\ + mir3g|\ + miwifi-nano) + status_led="$boardname:blue:status" + ;; db-wrt01|\ esr-9753|\ pbr-d1) @@ -174,12 +181,6 @@ get_status_led() { hc5962) status_led="$boardname:white:status" ;; - k2p|\ - m3|\ - mir3g|\ - miwifi-nano) - status_led="$boardname:blue:status" - ;; linkits7688) status_led="linkit-smart-7688:orange:wifi" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum index 9533aed475..7e579316b5 100644 --- a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header +++ b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum @@ -5,10 +5,10 @@ . /lib/functions.sh -fix_seama_header() { +fix_checksum() { local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd) - [ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware + [ "$kernel_size" ] && mtd -c 0x$kernel_size fix$1 firmware } board=$(board_name) @@ -18,6 +18,9 @@ cy-swr1100 | \ dch-m225 | \ dir-645 | \ dir-860l-b1) - fix_seama_header + fix_checksum seama + ;; +dap-1522-a1) + fix_checksum wrg ;; esac diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 74ed5913b8..9738f01dfe 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -112,6 +112,9 @@ ramips_board_detect() { *"DAP-1350") name="dap-1350" ;; + *"DAP-1522 A1") + name="dap-1522-a1" + ;; *"DB-WRT01") name="db-wrt01" ;; |