aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-04-22 08:08:51 +0000
committerJohn Crispin <blogic@openwrt.org>2014-04-22 08:08:51 +0000
commit522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9 (patch)
treedaa65e41f5a91ff32df353aa2b208329351a882d /target/linux/ramips/base-files
parentd5e2e74b3e8437d9f15e13c2fc5c8fd3a1bf98dd (diff)
downloadupstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.tar.gz
upstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.tar.bz2
upstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.zip
ramips: Add support for the 7Links PX-4885 wireless router.
The 7Links PX-4885 is a small battery-powered wireless router. It is based on a RT5350F WiSoC and features one ethernet port and one USB port. It is a Hame MPR-A1 clone, except it has different GPIOs, a different battery and more RAM (32 MB). This patch adds a profile for this board, the corresponding device tree file and the adequate base-files changes (incl. sysupgrade). Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds4
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
6 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 122587232f..075562af02 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -92,6 +92,9 @@ get_status_led() {
pwh2004)
status_led="pwh2004:green:power"
;;
+ px4885)
+ status_led="7links:orange:wifi"
+ ;;
rt-n15)
status_led="rt-n15:blue:power"
;;
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 5906e686a2..906c7ba174 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -93,6 +93,7 @@ case "$FIRMWARE" in
omni-emb | \
omni-emb-hpm | \
psr-680w | \
+ px4885 | \
rt-n15 | \
rt-n56u | \
sl-r7205 | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 17d8c97719..74ba0ba63e 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -129,6 +129,10 @@ case $board in
ucidef_set_led_netdev "eth" "ETH" "emb:green:eth" "eth0"
set_wifi_led "emb:green:wifi"
;;
+ px4885)
+ set_wifi_led "7links:orange:wifi"
+ set_usb_led "7links:blue:storage"
+ ;;
sl-r7205)
set_wifi_led "rt2800pci-phy0::radio"
;;
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 d2dc00f8bc..7ff6e3d5e6 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
@@ -74,6 +74,7 @@ preinit_set_mac_address() {
nbg-419n |\
omni-emb |\
omni-emb-hpm |\
+ px4885 |\
tew-691gr |\
tew-692gr |\
w306r-v20 |\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 913e65cb90..7f221f807d 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -13,6 +13,9 @@ ramips_board_detect() {
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in
+ *"7Links PX-4885")
+ name="px4885"
+ ;;
*"8devices Carambola")
name="carambola"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 616516bf5f..d8098b2a66 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -62,6 +62,7 @@ platform_check_image() {
omni-emb | \
omni-emb-hpm | \
psr-680w | \
+ px4885 | \
rp-n53 | \
rt-g32-b1 | \
rt-n10-plus | \