aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorChristoph Krapp <achterin@googlemail.com>2019-08-29 10:08:38 +0200
committerDavid Bauer <mail@david-bauer.net>2019-08-31 10:31:00 +0200
commit6cea9688af4a05f407266ed1de5a739e5c984b8c (patch)
tree8d51ac01326a7bec0ce2c775834c9a40eb8d12bd /target/linux/ramips/base-files
parent3c8df280a96bbd81357d6eb52845e6b5fa7162fe (diff)
downloadupstream-6cea9688af4a05f407266ed1de5a739e5c984b8c.tar.gz
upstream-6cea9688af4a05f407266ed1de5a739e5c984b8c.tar.bz2
upstream-6cea9688af4a05f407266ed1de5a739e5c984b8c.zip
ramips: add support for Netgear R6260 and R6850
As Netgear uses the same image for R6260, R6350 & R6850 we can merge device tree files and generate separate images for each device. Signed-off-by: Christoph Krapp <achterin@googlemail.com> [add missing WiFi compatible string, fix network configuration] Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds2
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network6
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh2
3 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 6735876651..fa36aee9e3 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -293,7 +293,9 @@ netgear,r6120)
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
;;
netgear,r6220|\
+netgear,r6260|\
netgear,r6350|\
+netgear,r6850|\
netgear,wndr3700-v5)
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
;;
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 2fd7b07bd7..e19a618389 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -395,7 +395,9 @@ ramips_setup_interfaces()
;;
netgear,r6120|\
netgear,r6220|\
+ netgear,r6260|\
netgear,r6350|\
+ netgear,r6850|\
netgear,wndr3700-v5)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
@@ -593,7 +595,9 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary devdata 0x7)
;;
edimax,br-6478ac-v2|\
- netgear,r6350)
+ netgear,r6260|\
+ netgear,r6350|\
+ netgear,r6850)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
;;
elecom,wrc-1167ghbk2-s|\
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a65492a309..9889079db9 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -23,7 +23,9 @@ platform_do_upgrade() {
case "$board" in
hiwifi,hc5962|\
netgear,r6220|\
+ netgear,r6260|\
netgear,r6350|\
+ netgear,r6850|\
xiaomi,mir3g|\
xiaomi,mir3p)
nand_do_upgrade "$1"