diff options
author | YuheiOKAWA <tochiro.srchack@gmail.com> | 2016-10-10 10:24:42 +0900 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-10-15 11:36:51 +0200 |
commit | 4050cfebdaa001d498c396f24dd67771541b710e (patch) | |
tree | e7f4f574a91e63f5f4079aecbf0781fb20eb0839 /target/linux/ramips/base-files | |
parent | 8a2a20e71e2909f84dab47e51dfda9e292a6c1ae (diff) | |
download | upstream-4050cfebdaa001d498c396f24dd67771541b710e.tar.gz upstream-4050cfebdaa001d498c396f24dd67771541b710e.tar.bz2 upstream-4050cfebdaa001d498c396f24dd67771541b710e.zip |
ramips: add support for Planex VR500.
SOC: MT7621A
RAM: 256MiB
NOR: MX25L51245G
Non Wireless Router.
Issue: soft reboot problem. SPI Flash do not exit 4byte address mode.
Signed-off-by: Yuhei Okawa <tochiro.srchack@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 12 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 e14448e3f2..4b66694ed9 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -146,7 +146,8 @@ mzk-ex300np) ;; dir-810l|\ mzk-750dhp|\ -mzk-dp150n) +mzk-dp150n|\ +vr500) ucidef_set_led_default "power" "power" "$board:green:power" "1" ;; dir-860l-b1) 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 0400e58cda..99c90e4590 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -85,6 +85,7 @@ ramips_setup_interfaces() psg1218|\ sap-g3200u3|\ sk-wb8|\ + vr500|\ wf-2881|\ whr-300hp2|\ whr-600d|\ @@ -354,6 +355,10 @@ ramips_setup_macs() lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR) wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR) ;; + vr500) + lan_mac=$(mtd_get_mac_binary factory 57344) + wan_mac=$(mtd_get_mac_binary factory 57350) + ;; w306r-v20) lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 5) diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 67dcf99a00..84459a5c01 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -29,6 +29,7 @@ get_status_led() { nbg-419n|\ nbg-419n2|\ pwh2004|\ + vr500|\ wnce2001|\ wndr3700v5|\ x5|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d57c1cf922..526a5ae669 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -442,6 +442,9 @@ ramips_board_detect() { *"VoCore") name="vocore" ;; + *"VR500") + name="vr500" + ;; *"W150M") name="w150m" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 806c1a0e8c..9c49c8070d 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -128,6 +128,7 @@ platform_check_image() { ur-336un|\ v22rw-2x2|\ vocore|\ + vr500|\ w150m|\ w306r-v20|\ w502u|\ |