diff options
Diffstat (limited to 'target/linux/ath79')
4 files changed, 55 insertions, 4 deletions
diff --git a/target/linux/ath79/dts/ar7161_netgear_wndrmac-v2.dts b/target/linux/ath79/dts/ar7161_netgear_wndrmac-v2.dts new file mode 100644 index 0000000000..872eecca3a --- /dev/null +++ b/target/linux/ath79/dts/ar7161_netgear_wndrmac-v2.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar7161_netgear_wndr.dtsi" + +/ { + compatible = "netgear,wndrmac-v2", "qca,ar7161"; + model = "Netgear WNDRMAC v2"; +}; + +&partitions { + partition@0 { + label = "u-boot"; + reg = <0x000000 0x050000>; + read-only; + }; + + partition@50000 { + label = "u-boot-env"; + reg = <0x050000 0x020000>; + read-only; + }; + + partition@70000 { + label = "firmware"; + reg = <0x070000 0xf80000>; + compatible = "netgear,uimage"; + }; + + art: partition@ff0000 { + label = "art"; + reg = <0xff0000 0x010000>; + read-only; + }; +}; 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 1672f093a7..d7adf7e184 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 @@ -204,7 +204,8 @@ ath79_setup_interfaces() netgear,wndr3700|\ netgear,wndr3700-v2|\ netgear,wndr3800|\ - netgear,wndr3800ch) + netgear,wndr3800ch|\ + netgear,wndrmac-v2) ucidef_set_interface_wan "eth1" ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0" @@ -430,7 +431,8 @@ ath79_setup_macs() ;; netgear,wndr3700|\ netgear,wndr3700-v2|\ - netgear,wndr3800) + netgear,wndr3800|\ + netgear,wndrmac-v2) lan_mac=$(macaddr_setbit_la "$(mtd_get_mac_binary art 0x0)") ;; phicomm,k2t) 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 e0fa5ff354..c5fc02519e 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 @@ -127,7 +127,8 @@ case "$FIRMWARE" in netgear,wndr3700|\ netgear,wndr3700-v2|\ netgear,wndr3800|\ - netgear,wndr3800ch) + netgear,wndr3800ch|\ + netgear,wndrmac-v2) caldata_extract "art" 0x1000 0xeb8 ;; dlink,dir-825-b1) @@ -145,7 +146,8 @@ case "$FIRMWARE" in netgear,wndr3700|\ netgear,wndr3700-v2|\ netgear,wndr3800|\ - netgear,wndr3800ch) + netgear,wndr3800ch|\ + netgear,wndrmac-v2) caldata_extract "art" 0x5000 0xeb8 ;; dlink,dir-825-b1) diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 45dfc6bdad..c66f0beae1 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -932,6 +932,18 @@ define Device/netgear_wndr3800ch endef TARGET_DEVICES += netgear_wndr3800ch +define Device/netgear_wndrmac-v2 + $(Device/netgear_wndr3x00) + DEVICE_MODEL := WNDRMAC + DEVICE_VARIANT := v2 + NETGEAR_KERNEL_MAGIC := 0x33373031 + NETGEAR_BOARD_ID := WNDRMACv2 + NETGEAR_HW_ID := 29763654+16+128 + IMAGE_SIZE := 15872k + SUPPORTED_DEVICES += wndr3700 +endef +TARGET_DEVICES += netgear_wndrmac-v2 + define Device/netgear_wnr2200_common SOC := ar7241 DEVICE_MODEL := WNR2200 |