diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2016-06-24 20:17:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-24 20:17:26 +0200 |
commit | 6eb05f9f38210bfd7cb667fab1b00e5ebd737556 (patch) | |
tree | 8adb7f0946f1c0f2fba4cc28999d915b167af464 /target/linux/ramips/base-files | |
parent | 282b917e47d9ae5017e1e426face9b75cb7aabd0 (diff) | |
parent | 64de7165e5bce0d6f811795bc5a0a81165eb58ca (diff) | |
download | master-187ad058-6eb05f9f38210bfd7cb667fab1b00e5ebd737556.tar.gz master-187ad058-6eb05f9f38210bfd7cb667fab1b00e5ebd737556.tar.bz2 master-187ad058-6eb05f9f38210bfd7cb667fab1b00e5ebd737556.zip |
Merge pull request #12 from wigyori/master
update oxnas target, update ipq806x target, create trunk tag and update revisioning accordingly
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 16 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 13 | ||||
-rw-r--r-- | target/linux/ramips/base-files/etc/diag.sh | 12 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/init.d/bootcount | 11 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 15 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 7 |
6 files changed, 68 insertions, 6 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 47e1e6a6a3..460253c9ff 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -46,6 +46,7 @@ all0239-3g|\ hw550-3g|\ mofi3500-3gn|\ sap-g3200u3|\ +sk-wb8|\ wf-2881) set_usb_led "$board:green:usb" ;; @@ -77,6 +78,13 @@ broadway) set_usb_led "$board:red:diskmounted" set_wifi_led "$board:red:wps_active" ;; +c50) + ucidef_set_led_default "power" "power" "tp-link:blue:power" "0" + ucidef_set_led_netdev "lan" "lan" "tp-link:blue:lan" "eth0.2" + set_usb_led "tp-link:blue:usb" + ucidef_set_led_wlan "wlan2g" "wlan2g" "tp-link:blue:wlan2g" "phy1radio" + ucidef_set_led_wlan "wlan5g" "wlan5g" "tp-link:blue:wlan5g" "phy0radio" + ;; cf-wr800n) ucidef_set_led_netdev "lan" "lan" "$board:white:ethernet" eth0.1 set_wifi_led "$board:white:wifi" @@ -185,7 +193,8 @@ miniembplug) set_wifi_led "$board:red:wlan" set_usb_led "$board:green:mobile" ;; -miwifi-mini) +miwifi-mini|\ +miwifi-nano) ucidef_set_led_default "power" "power" "$board:red:status" "1" ;; miwifi-nano) @@ -287,6 +296,11 @@ y1s) set_usb_led "$board:blue:usb" set_wifi_led "$board:blue:wifi" ;; +zbt-ape522ii) + ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$board:green:wlan2g4" "wlan1" + 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-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 e7826d48b0..dbb5fb43e0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -47,8 +47,10 @@ ramips_setup_interfaces() linkits7688d | \ m2m|\ microwrt|\ + mpr-a2|\ ncs601w|\ w150m|\ + widora-neo|\ wnce2001|\ zte-q7) ucidef_add_switch "switch0" @@ -79,6 +81,7 @@ ramips_setup_interfaces() pbr-m1|\ psg1208|\ sap-g3200u3|\ + sk-wb8|\ wf-2881|\ whr-300hp2|\ whr-600d|\ @@ -110,6 +113,7 @@ ramips_setup_interfaces() atp-52b|\ awm002-evb|\ awm003-evb|\ + c50|\ dir-645|\ dir-860l-b1|\ f5d8235-v1|\ @@ -169,6 +173,10 @@ ramips_setup_interfaces() wrh-300cr) ucidef_set_interface_lan "eth0" ;; + duzun-dm06) + ucidef_add_switch "switch0" \ + "1:lan" "0:wan" "6@eth0" + ;; e1700|\ mt7620a_mt7530) ucidef_add_switch "switch1" \ @@ -216,6 +224,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "0:wan" "6@eth0" ;; + zbt-ape522ii|\ zbt-we826|\ zbt-wr8305rt) ucidef_add_switch "switch0" \ @@ -260,7 +269,6 @@ ramips_setup_macs() freestation5|\ hlk-rm04|\ mpr-a1|\ - mpr-a2|\ psr-680w|\ sl-r7205|\ y1|\ @@ -307,6 +315,9 @@ ramips_setup_macs() lan_mac=$(macaddr_setbit_la "$lan_mac") wan_mac=$(mtd_get_mac_binary factory 32772) ;; + sk-wb8) + wan_mac=$(mtd_get_mac_binary factory 57350) + ;; tew-691gr) lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 3) diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index c638d16a81..0c5abb2861 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -79,9 +79,13 @@ get_status_led() { ;; awapn2403|\ dir-645|\ + sk-wb8|\ wrh-300cr) status_led="$board:green:wps" ;; + c50) + status_led="tp-link:blue:power" + ;; cf-wr800n|\ psg1208) status_led="$board:white:wps" @@ -144,7 +148,8 @@ get_status_led() { status_led="$board:amber:cpu" ;; oy-0001|\ - sl-r7205) + sl-r7205|\ + zbt-we826) status_led="$board:green:wifi" ;; psr-680w) @@ -154,7 +159,8 @@ get_status_led() { re6500|\ whr-1166d|\ whr-300hp2|\ - whr-600d) + whr-600d|\ + widora-neo) status_led="$board:orange:wifi" ;; mzk-ex300np|\ @@ -191,7 +197,7 @@ get_status_led() { ;; wsr-1166|\ wsr-600) - status_led="$board:orange:diag" + status_led="$board:green:power" ;; wrtnode2r | \ wrtnode2p | \ diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..b93e3c96f1 --- /dev/null +++ b/target/linux/ramips/base-files/etc/init.d/bootcount @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common +. /lib/ramips.sh + +START=99 + +start() { + local board=$(ramips_board_name) + if [ $board = "sk-wb8" ]; then + fw_setenv bootcount 0 + fi +} diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 0ac0f68bb5..10139d7fc6 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -82,6 +82,9 @@ ramips_board_detect() { *"C20i") name="c20i" ;; + *"C50") + name="c50" + ;; *"Carambola") name="carambola" ;; @@ -151,6 +154,9 @@ ramips_board_detect() { *"Dovado Tiny AC") name="tiny-ac" ;; + *"DuZun DM06") + name="duzun-dm06" + ;; *"E1700") name="e1700" ;; @@ -376,6 +382,9 @@ ramips_board_detect() { *"RUT5XX") name="rut5xx" ;; + *"SamKnows Whitebox 8") + name="sk-wb8" + ;; *"SAP-G3200U3") name="sap-g3200u3" ;; @@ -433,6 +442,9 @@ ramips_board_detect() { *"WHR-G300N") name="whr-g300n" ;; + *"Widora-NEO") + name="widora-neo" + ;; *"WiTi") name="witi" ;; @@ -511,6 +523,9 @@ ramips_board_detect() { *"Y1S") name="y1s" ;; + *"ZBT-APE522II") + name="zbt-ape522ii" + ;; *"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 86ea4a33bd..e3bea004fa 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -50,6 +50,7 @@ platform_check_image() { dir-620-a1|\ dir-620-d1|\ dir-810l|\ + duzun-dm06|\ e1700|\ esr-9753|\ ex2700|\ @@ -112,6 +113,7 @@ platform_check_image() { rt-n56u|\ rut5xx|\ sap-g3200u3|\ + sk-wb8|\ sl-r7205|\ tew-691gr|\ tew-692gr|\ @@ -128,6 +130,7 @@ platform_check_image() { whr-300hp2|\ whr-600d|\ whr-g300n|\ + widora-neo|\ witi|\ wizfi630a|\ wl-330n|\ @@ -152,6 +155,7 @@ platform_check_image() { x8|\ y1|\ y1s|\ + zbt-ape522ii|\ zbt-wa05|\ zbt-we826|\ zbt-wg2626|\ @@ -179,7 +183,8 @@ platform_check_image() { } return 0 ;; - c20i) + c20i|\ + c50) [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 |