diff options
| author | Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> | 2018-08-06 10:52:28 -0700 |
|---|---|---|
| committer | Mathias Kresin <dev@kresin.me> | 2018-08-13 08:37:19 +0200 |
| commit | 1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b (patch) | |
| tree | 5c3e276dc3dcb7872ace31c5fc8405f991c87c52 /target/linux/ramips/base-files | |
| parent | 5543d63fc84e64be83afaa4241369a07797f041b (diff) | |
| download | mtk-20170518-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.zip mtk-20170518-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.tar.gz mtk-20170518-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.tar.bz2 | |
ramips: fix BR-6478ACv2 support
The wholesale changes introduced in commit f9b8328 missed this DTS file
because it hadn't been merged yet. This patch brings it in line to match
the other mt7620a devices' DTS files.
Additionally, the Internet LED is now labeled correctly and set to unused
by default, since the WAN interface is not known in every configuration.
Using sysupgrade between images before and after this commit will require
the -F flag.
Tested-by: Rohan Murch <rohan.murch@gmail.com>
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[drop internet led default setting]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
4 files changed, 14 insertions, 19 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 5d833e4..b64e9d1 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -86,12 +86,6 @@ asl26555-16M) bc2) set_usb_led "$boardname:blue:usb" ;; -br-6478ac-v2) - ucidef_set_led_default "power" "POWER" "$boardname:white:power" "1" - ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2" - set_wifi_led "$boardname:blue:wlan" - set_usb_led "$boardname:blue:usb" - ;; broadway) set_usb_led "$boardname:red:diskmounted" set_wifi_led "$boardname:red:wps_active" @@ -185,6 +179,10 @@ vr500) dir-860l-b1) ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2" ;; +edimax,br-6478ac-v2) + set_wifi_led "$boardname:blue:wlan" + set_usb_led "$boardname:blue:usb" + ;; ex2700|\ wn3000rpv3) set_wifi_led "$boardname:green:router" 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 28bf815..3ae0144 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -283,6 +283,11 @@ ramips_setup_interfaces() ucidef_add_switch "switch1" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; + edimax,br-6478ac-v2|\ + tplink,c2-v1) + ucidef_add_switch "switch1" \ + "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" + ;; hc5*61|\ y1s) ucidef_add_switch "switch0" \ @@ -342,11 +347,6 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0" ;; - br-6478ac-v2|\ - tplink,c2-v1) - ucidef_add_switch "switch1" \ - "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" - ;; tplink,tl-wr902ac-v3) ucidef_add_switch "switch0" \ "4:lan" "6@eth0" @@ -448,10 +448,6 @@ ramips_setup_macs() lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(mtd_get_mac_binary devdata 7) ;; - br-6478ac-v2) - lan_mac=$(cat /sys/class/net/eth0/address) - wan_mac=$(macaddr_add "$lan_mac" 2) - ;; cy-swr1100|\ dch-m225) lan_mac=$(mtd_get_mac_ascii factory lanmac) @@ -472,6 +468,10 @@ ramips_setup_macs() e1700) wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR) ;; + edimax,br-6478ac-v2) + lan_mac=$(cat /sys/class/net/eth0/address) + wan_mac=$(macaddr_add "$lan_mac" 2) + ;; elecom,wrc-1167ghbk2-s|\ elecom,wrc-2533gst|\ sk-wb8) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 986fbdc..5741cbd 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -82,9 +82,6 @@ ramips_board_detect() { *"BR-6475nD") name="br-6475nd" ;; - *"BR-6478AC v2") - name="br-6478ac-v2" - ;; *"Broadway") name="broadway" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 51691e3..a46925a 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -241,7 +241,7 @@ platform_check_image() { 3g-6200n|\ 3g-6200nl|\ br-6475nd|\ - br-6478ac-v2) + edimax,br-6478ac-v2) [ "$magic" != "43535953" ] && { echo "Invalid image type." return 1 |
