aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorCezary Jackiewicz <cezary.jackiewicz@gmail.com>2016-09-25 21:09:31 +0200
committerJohn Crispin <john@phrozen.org>2016-09-27 17:50:21 +0200
commit66aae9a27154f837607337fc099bd72fe4a9edf9 (patch)
tree3ac90d841f9bf7b5ae9c4cd742046286f2a9a3db /target/linux/ramips/base-files
parent875cddd94cea002fae1b7eeb20ef2098410c44c1 (diff)
downloadupstream-66aae9a27154f837607337fc099bd72fe4a9edf9.tar.gz
upstream-66aae9a27154f837607337fc099bd72fe4a9edf9.tar.bz2
upstream-66aae9a27154f837607337fc099bd72fe4a9edf9.zip
ramips: Add support for ZBT-CPE102
- CPU: MT7620N 580MHz - Flash: 8MB - RAM: 64MB - build-in minipcie slot for modem 3G/4G - one ethernet port 10/100Mbps Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 11 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 97c405d3fd..29bba0b26d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -318,6 +318,9 @@ zbt-ape522ii)
ucidef_set_led_netdev "sys1" "wlan1" "$board:green:sys1" "wlan1" "tx rx"
ucidef_set_led_netdev "sys2" "wlan0" "$board:green:sys2" "wlan0" "tx rx"
;;
+zbt-cpe102)
+ ucidef_set_led_default "power" "power" "$board:green:4g-0" "0"
+ ;;
zbt-wa05)
ucidef_set_led_default "power" "power" "$board:blue:power" "1"
set_wifi_led "$board:blue:air"
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 675dcc9832..e757acb6ab 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -53,6 +53,7 @@ ramips_setup_interfaces()
w150m|\
widora-neo|\
wnce2001|\
+ zbt-cpe102|\
zte-q7)
ucidef_add_switch "switch0"
ucidef_add_switch_attr "switch0" "enable" "false"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 969594d8a6..1eb4036aab 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -208,6 +208,9 @@ get_status_led() {
wrtnode)
status_led="wrtnode:blue:indicator"
;;
+ zbt-cpe102)
+ status_led="$board:green:4g-0"
+ ;;
esac
}
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 98bc68c397..3a72835dbd 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -541,6 +541,9 @@ ramips_board_detect() {
*"ZBT-APE522II")
name="zbt-ape522ii"
;;
+ *"ZBT-CPE102")
+ name="zbt-cpe102"
+ ;;
*"ZBT-WA05")
name="zbt-wa05"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index e3a74e0928..a71d806a78 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -160,6 +160,7 @@ platform_check_image() {
y1|\
y1s|\
zbt-ape522ii|\
+ zbt-cpe102|\
zbt-wa05|\
zbt-we826|\
zbt-wg2626|\