aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/base-files
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-04-09 09:59:21 +0000
committerRafał Miłecki <zajec5@gmail.com>2016-04-09 09:59:21 +0000
commit997a3cb41c254f7b22a61ac7fac8fddf490d46a7 (patch)
tree44f88c4cc63be236fb2294bf6b61968beca28e3c /target/linux/bcm53xx/base-files
parentc658bd634c06e7d8faa0dbd9793e3e089bf1a395 (diff)
downloadupstream-997a3cb41c254f7b22a61ac7fac8fddf490d46a7.tar.gz
upstream-997a3cb41c254f7b22a61ac7fac8fddf490d46a7.tar.bz2
upstream-997a3cb41c254f7b22a61ac7fac8fddf490d46a7.zip
bcm53xx: add basic support for Netgear R7900
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 49122
Diffstat (limited to 'target/linux/bcm53xx/base-files')
-rwxr-xr-xtarget/linux/bcm53xx/base-files/etc/board.d/02_network12
-rw-r--r--target/linux/bcm53xx/base-files/lib/upgrade/platform.sh1
2 files changed, 4 insertions, 9 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network
index f879e01bf2..ea49f827b2 100755
--- a/target/linux/bcm53xx/base-files/etc/board.d/02_network
+++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network
@@ -12,9 +12,8 @@ case "$board" in
asus,rt-ac87u)
ifname=eth1
;;
+netgear,r7900)
netgear,r8000)
- ifname=eth2
- ;;
netgear,r8500)
ifname=eth2
;;
@@ -23,16 +22,11 @@ netgear,r8500)
;;
esac
-# Workaround for devices using eth2
+# Workaround for devices using eth2 connected to (CPU) switch port 8
case "$board" in
+netgear,r7900)
netgear,r8000)
ifname=eth0
- ;;
-esac
-
-# Workaround for devices using CPU port 8 (connected to eth2)
-case "$board" in
-netgear,r8000)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@$ifname"
board_config_flush
diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index 20d9e29e07..51ad041730 100644
--- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
@@ -28,6 +28,7 @@ platform_expected_image() {
"netgear,r6250v1") echo "chk U12H245T00_NETGEAR"; return;;
"netgear,r6300v2") echo "chk U12H240T00_NETGEAR"; return;;
"netgear,r7000") echo "chk U12H270T00_NETGEAR"; return;;
+ "netgear,r7900") echo "chk U12H315T30_NETGEAR"; return;;
"netgear,r8000") echo "chk U12H315T00_NETGEAR"; return;;
"netgear,r8500") echo "chk U12H334T00_NETGEAR"; return;;
esac