summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-08-01 14:31:04 +0000
committerJohn Crispin <john@openwrt.org>2013-08-01 14:31:04 +0000
commit54968110f119a4aa7e9e536f6c2a4a3a973607ea (patch)
treed6eb266d47c0063019f10e86351148122ec8efe6 /target/linux/ramips/base-files
parent0dc3b44b0de4aee29a9de9b8f24f302e4d08d7a3 (diff)
downloadmtk-20170518-54968110f119a4aa7e9e536f6c2a4a3a973607ea.zip
mtk-20170518-54968110f119a4aa7e9e536f6c2a4a3a973607ea.tar.gz
mtk-20170518-54968110f119a4aa7e9e536f6c2a4a3a973607ea.tar.bz2
ramips: add Poray X5/X6 Support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> SVN-Revision: 37638
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network3
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh3
5 files changed, 12 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 57c8beb..d04d990 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -138,6 +138,9 @@ get_status_led() {
ur-336un)
status_led="ur336:green:wps"
;;
+ x5)
+ status_led="x5:green:power"
+ ;;
xdxrn502j)
status_led="xdxrn502j:green:power"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 133c2de..fa5b28e 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -227,7 +227,8 @@ ramips_setup_macs()
;;
m3 |\
- m4)
+ m4 |\
+ x5)
lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$lan_mac" -1)
;;
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index f9aabd5..3073233 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -76,7 +76,8 @@ preinit_set_mac_address() {
ifconfig eth0 hw ether $mac 2>/dev/null
;;
m3 |\
- m4)
+ m4 |\
+ x5)
mac=$(mtd_get_mac_binary factory 4)
mac=$(macaddr_add "$mac" -1)
ifconfig eth0 hw ether $mac 2>/dev/null
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index e3776f1..1bf93e3 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -154,6 +154,9 @@ ramips_board_detect() {
*"Poray M4")
name="m4"
;;
+ *"Poray X5")
+ name="x5"
+ ;;
*"PWH2004")
name="pwh2004"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 5e1a7a5..4b80afa 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -75,7 +75,8 @@ platform_check_image() {
whr-g300n |\
ur-326n4g |\
ur-336un |\
- wr512-3gn)
+ wr512-3gn |\
+ x5)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1