diff options
author | Vitaly Chekryzhev <13hakta@gmail.com> | 2016-10-29 17:26:58 +0500 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-11-18 08:54:57 +0100 |
commit | 348344874c8aaaeabd291eef0e45660f0c6aba95 (patch) | |
tree | a3ff58c591a8316f0e6bbfb2bdab418f05d69c86 /target/linux/ramips/base-files | |
parent | a4814c744ce4aae6fbf62621d9c62476ca5ce28d (diff) | |
download | upstream-348344874c8aaaeabd291eef0e45660f0c6aba95.tar.gz upstream-348344874c8aaaeabd291eef0e45660f0c6aba95.tar.bz2 upstream-348344874c8aaaeabd291eef0e45660f0c6aba95.zip |
ramips: add support for ZyXEL Keenetic Viva
Factory image can be installed via Zyxel WebUI.
Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
[removed linux,modalias parameter from flash node in dts]
[removed sdhci node from dts; no sd card slot here]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 16 insertions, 0 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 0f1ad57f55..ed51555d38 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -203,6 +203,10 @@ ht-tm02) ucidef_set_led_netdev "eth" "Ethernet" "$board:green:lan" "eth0" set_wifi_led "$board:blue:wlan" ;; +kng_rc) + set_usb_led "$board:green:usb" + set_wifi_led "$board:green:wifi" + ;; m2m) set_wifi_led "$board:blue:wifi" ucidef_set_led_netdev "eth" "Ethernet" "$board:green:wan" "eth0" 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 1e97c3b3c2..5ae6413fcf 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -204,6 +204,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0" ;; + kng_rc) + ucidef_add_switch "switch1" \ + "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0" + ;; mlwg2|\ wizard8800|\ wl-330n) @@ -320,6 +324,9 @@ ramips_setup_macs() [ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 1) ;; + kng_rc) + wan_mac=$(mtd_get_mac_binary factory 28) + ;; linkits7688 | \ linkits7688d) wan_mac=$(mtd_get_mac_binary factory 4) diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 52baa0b23e..1aa1a2e9fb 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -24,6 +24,7 @@ get_status_led() { dir-860l-b1|\ e1700|\ fonera20n|\ + kng_rc|\ mzk-750dhp|\ mzk-dp150n|\ mzk-w300nh2|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index c62f5f6a93..4a4204bc24 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -586,6 +586,9 @@ ramips_board_detect() { *"ZBT-WR8305RT") name="zbt-wr8305rt" ;; + *"ZyXEL Keenetic Viva") + name="kng_rc" + ;; *"YK1") name="youku-yk1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index fa108b6ce4..a7e9e19fa5 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -70,6 +70,7 @@ platform_check_image() { jhr-n805r|\ jhr-n825r|\ jhr-n926r|\ + kng_rc|\ linkits7688|\ linkits7688d|\ m2m|\ |