aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-07-24 20:38:14 +0000
committerJohn Crispin <blogic@openwrt.org>2012-07-24 20:38:14 +0000
commit71e078cc54067e2a2154a35ce0c21498140ff0cc (patch)
treee41a572a68eb933d0cc08ade5187bf8b7b28033d /target
parentc5ec28deae83b3049f89945d58ebccc715c4201a (diff)
downloadupstream-71e078cc54067e2a2154a35ce0c21498140ff0cc.tar.gz
upstream-71e078cc54067e2a2154a35ce0c21498140ff0cc.tar.bz2
upstream-71e078cc54067e2a2154a35ce0c21498140ff0cc.zip
[ramips] add ALL5002 userspace support
detect EEPROM, MAC addresses and support sysupgrade for the ALL5002 Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-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/network4
-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
5 files changed, 9 insertions, 1 deletions
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 d7542cab4d..841aac4f3e 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
@@ -50,6 +50,7 @@ case "$FIRMWARE" in
3g-6200n | \
all0256n | \
+ all5002 | \
argus-atp52b | \
bc2 | \
esr-9753 | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 1c65b65a72..d1493da534 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -17,6 +17,7 @@ ramips_setup_interfaces()
case $board in
all0256n | \
+ all5002 | \
wl-330n)
ucidef_set_interface_lan "eth0.1"
;;
@@ -87,7 +88,8 @@ ramips_setup_macs()
local wan_mac=""
case $board in
- all0256n)
+ all0256n | \
+ all5002)
lan_mac=$(ramips_get_mac_binary factory 40)
;;
3g-6200n | \
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 db6e5c82f8..126c475a4b 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
@@ -30,6 +30,7 @@ preinit_set_mac_address() {
ifconfig eth0 hw ether $mac 2>/dev/null
;;
all0256n |\
+ all5002 | \
fonera20n |\
hw550-3g |\
nbg-419n |\
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 277d9da997..2667267ac1 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -53,6 +53,9 @@ ramips_board_name() {
*"Allnet ALL0256N")
name="all0256n"
;;
+ *"Allnet ALL5002")
+ name="all5002"
+ ;;
*"ARC FreeStation5")
name="freestation5"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index dba5e793b1..2791c8d742 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -16,6 +16,7 @@ platform_check_image() {
case "$board" in
3g-6200n | \
all0256n | \
+ all5002 | \
bc2 | \
dir-300-b1 | \
dir-600-b1 | \