From c9ac7b17296ff29d9df39db8a68c449ef1514bbd Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 12 Jan 2020 20:20:43 +0100 Subject: 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 --- target/linux/ath79/generic/base-files/etc/board.d/02_network | 4 ++++ .../ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 1 + 2 files changed, 5 insertions(+) (limited to 'target/linux/ath79/generic/base-files/etc') 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 -- cgit v1.2.3