aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-01-15 18:29:44 +0000
committerJohn Crispin <john@openwrt.org>2014-01-15 18:29:44 +0000
commitbeb29461ff05ce04eaafcbc24c65b2b95fc91f56 (patch)
treeb9a19dd4c2bfc9805cbd4cc8badcca9646a6a960 /target/linux/ramips/base-files/lib
parent62dd252b86b10d055b55558d9944573a282dd50c (diff)
downloadupstream-beb29461ff05ce04eaafcbc24c65b2b95fc91f56.tar.gz
upstream-beb29461ff05ce04eaafcbc24c65b2b95fc91f56.tar.bz2
upstream-beb29461ff05ce04eaafcbc24c65b2b95fc91f56.zip
ramips: Add userspace support for the Edimax BR-6475nD
The rt2x00 wifi driver may still need updating to function with this device. Signed-off-by: Christopher Lais <chris+openwrt@zenthought.org> SVN-Revision: 39298
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh7
3 files changed, 14 insertions, 0 deletions
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 96665bdf7f..d2dc00f8bc 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
@@ -39,6 +39,10 @@ preinit_set_mac_address() {
mac=$(macaddr_setbit_la "$mac")
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ br-6475nd)
+ mac=$(mtd_get_mac_binary devdata 13)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
asl26555 |\
dir-300-b1 |\
dir-300-b2 |\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 24aad1f174..7aa331334e 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -109,6 +109,9 @@ ramips_board_detect() {
*"ESR-9753")
name="esr-9753"
;;
+ *"Edimax BR-6475nD")
+ name="br-6475nd"
+ ;;
*"F7C027")
name="f7c027"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0230a1829b..8bc2abd156 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -100,6 +100,13 @@ platform_check_image() {
}
return 0
;;
+ br-6475nd)
+ [ "$magic" != "43535953" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."