aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-01-12 20:20:43 +0100
committerJohn Crispin <john@phrozen.org>2020-01-15 20:38:46 +0100
commitc9ac7b17296ff29d9df39db8a68c449ef1514bbd (patch)
tree7c5262a7f05c0ee5990010dc2ef1fb7e110de782 /target/linux/ath79/generic
parent475a504dbc05e7a7e7d38db426c657b8c0c834fd (diff)
downloadupstream-c9ac7b17296ff29d9df39db8a68c449ef1514bbd.tar.gz
upstream-c9ac7b17296ff29d9df39db8a68c449ef1514bbd.tar.bz2
upstream-c9ac7b17296ff29d9df39db8a68c449ef1514bbd.zip
ath79: add support for D-Link DIR-505
This commit adds support for the D-Link DIR-505, previously supported in ar71xx. Hardware -------- SoC: Atheros AR9330 FLASH: 8M SPI-NOR RAM: 64M WIFI: 1T1R 1SS Atheros AR9330 LED: Power green, Status red BTN: WPS, Reset Installation ------------ Currently, installation is only possible by sysupgrading from an earlier OpenWrt version, U-Boot TFTP or a modded U-Boot. I do not have the original bootloader from D-Link on my device anymore, so i cannot test the factory image. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/generic')
-rwxr-xr-xtarget/linux/ath79/generic/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom1
2 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 2bf5751a5c..a96b504d5a 100755
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -18,6 +18,7 @@ ath79_setup_interfaces()
devolo,dvl1750c|\
devolo,dvl1750i|\
devolo,dvl1750x|\
+ dlink,dir-505|\
engenius,ecb1750|\
glinet,gl-ar300m-lite|\
netgear,ex6400|\
@@ -315,6 +316,9 @@ ath79_setup_macs()
lan_mac=$(mtd_get_mac_text "caldata" 0xffa0)
wan_mac=$(mtd_get_mac_text "caldata" 0xffb4)
;;
+ dlink,dir-505)
+ lan_mac=$(mtd_get_mac_text "mac" 0x4)
+ ;;
dlink,dir-825-c1|\
dlink,dir-835-a1)
lan_mac=$(mtd_get_mac_text "mac" 0x4)
diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index 84d840569b..4158116256 100644
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -12,6 +12,7 @@ case "$FIRMWARE" in
avm,fritz4020)
caldata_extract_reverse "urlader" 0x1541 0x440
;;
+ dlink,dir-505|\
dlink,dir-825-c1|\
dlink,dir-835-a1)
caldata_extract "art" 0x1000 0x440