add ALL5002 userspace support
authorJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 20:38:14 +0000 (20:38 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 20:38:14 +0000 (20:38 +0000)
detect EEPROM, MAC addresses and support sysupgrade for the ALL5002

Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 32816

target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/ramips/base-files/etc/uci-defaults/network
target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh

index d7542cab4d3f36671b29bc9582596c97115d7252..841aac4f3e5995f2268574e14eee0cdd583e0d74 100644 (file)
@@ -50,6 +50,7 @@ case "$FIRMWARE" in
 
        3g-6200n | \
        all0256n | \
+       all5002 | \
        argus-atp52b | \
        bc2 | \
        esr-9753 | \
index 1c65b65a7249b0227c982e0989f91439ca74e63e..d1493da5347be49eba28a7780bf33531e6257cd5 100755 (executable)
@@ -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 | \
index db6e5c82f8a1dd799b4cd8b76568ede25f315bae..126c475a4ba4c6e69235abc47a2ec94045914dcd 100644 (file)
@@ -30,6 +30,7 @@ preinit_set_mac_address() {
                 ifconfig eth0 hw ether $mac 2>/dev/null
                 ;;
        all0256n |\
+       all5002 | \
        fonera20n |\
        hw550-3g |\
        nbg-419n |\
index 277d9da997c86af45a0225818736aa8814ffe5a5..2667267ac15f7240e1c5a0c43d0384b248689257 100755 (executable)
@@ -53,6 +53,9 @@ ramips_board_name() {
        *"Allnet ALL0256N")
                name="all0256n"
                ;;
+       *"Allnet ALL5002")
+               name="all5002"
+               ;;
        *"ARC FreeStation5")
                name="freestation5"
                ;;
index dba5e793b1c3b50a2a197e89ce716cd508f9dbb6..2791c8d742dfb684146a354ae123614d16575af0 100755 (executable)
@@ -16,6 +16,7 @@ platform_check_image() {
        case "$board" in
        3g-6200n | \
        all0256n | \
+       all5002 | \
        bc2 | \
        dir-300-b1 | \
        dir-600-b1 | \