aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2016-06-16 18:08:03 +0200
committerJo-Philipp Wich <jo@mein.io>2016-07-13 20:03:10 +0200
commite767980eb897fbefc320f97b65944ce690ed1726 (patch)
treece2c26804d1b36d2b878d242b56b04666e5a2e69 /target/linux/ar71xx/base-files
parent3c6b091b65da47286ba4fc81d409023bdcf42629 (diff)
downloadupstream-e767980eb897fbefc320f97b65944ce690ed1726.tar.gz
upstream-e767980eb897fbefc320f97b65944ce690ed1726.tar.bz2
upstream-e767980eb897fbefc320f97b65944ce690ed1726.zip
ar71xx: add support for Wallys DR531
Wallys DR531 is based on Qualcomm Atheros QCA9531 v2. Short specification: - 550/400/200 MHz (CPU/DDR/AHB) - 2x 10/100 Mbps Ethernet - 64 MB of RAM (DDR2) - 8 MB of FLASH - 2T2R 2.4 GHz with external PA (SE2576L), up to 30 dBm - 2x MMCX connectors - mini-PCIe connector with PCIe/USB buses and SIM slot - 7x LED, 1x button, 1x optional buzzer - UART, (E)JTAG and LED headers Default configuration: - WAN on eth1 (RJ45 near DC jack) - LAN on eth0 (RJ45 near button) - S4 LED set to be status LED - all LEDs configurable form user space - button configured for reset Flash instruction (do it under U-Boot, using UART): 1. tftp 0x80060000 lede-ar71xx-generic-dr531-squashfs-sysupgrade.bin 2. erase 0x9f050000 +$filesize 3. cp.b $fileaddr 0x9f050000 $filesize 4. setenv bootcmd "bootm 0x9f050000" 5. saveenv && reset Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 6936b8c873..77bed5b73e 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -156,6 +156,11 @@ db120)
ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1"
;;
+dr531)
+ ucidef_set_led_netdev "lan" "LAN" "dr531:green:lan" "eth0"
+ ucidef_set_led_netdev "wan" "WAN" "dr531:green:wan" "eth1"
+ ;;
+
dragino2)
ucidef_set_led_wlan "wlan" "WLAN" "dragino2:red:wlan" "phy0tpt"
ucidef_set_led_netdev "lan" "LAN" "dragino2:red:lan" "eth0"
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 1ed593cc55..0922550017 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -426,6 +426,7 @@ unifiac-pro)
"0@eth0" "2:lan" "3:wan"
;;
+dr531 |\
wpj531)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 520fef8097..08e5fd0fc1 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -113,6 +113,9 @@ get_status_led() {
dr344)
status_led="dr344:green:status"
;;
+ dr531)
+ status_led="dr531:green:sig4"
+ ;;
dragino2)
status_led="dragino2:red:system"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 5b81f739f4..936725fa58 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -505,6 +505,9 @@ ar71xx_board_detect() {
*DR344)
name="dr344"
;;
+ *DR531)
+ name="dr531"
+ ;;
*"Dragino v2")
name="dragino2"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 313e2e639b..f5a8d0d0a7 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -224,6 +224,7 @@ platform_check_image() {
dlan-hotspot | \
dlan-pro-500-wp | \
dlan-pro-1200-ac | \
+ dr531 | \
dragino2 | \
epg5000 | \
esr1750 | \