ar71xx: add support for EasyLink M150 and M-mini
authorJohn Crispin <john@openwrt.org>
Thu, 26 Jun 2014 11:49:47 +0000 (11:49 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 26 Jun 2014 11:49:47 +0000 (11:49 +0000)
v3 refreshes the patch on trunk@41337

This patch adds support for the EasyLink EL-M150 and M-mini

http://wiki.openwrt.org/toh/easylink/el-m150
http://wiki.openwrt.org/toh/easylink/el-m-mini

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 41348

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ar71xx/config-3.10
target/linux/ar71xx/image/Makefile

index d5063dead50235bf52d0f4dd151c514d7e0f1d15..687cddf419b2419286737ab5d689341708c94ad3 100755 (executable)
@@ -65,6 +65,10 @@ get_status_led() {
        eap7660d)
                status_led="eap7660d:green:ds4"
                ;;
+       el-mini | \
+       el-m150)
+               status_led="EasyLink:green:system"
+               ;;
        hiwifi-hc6361)
                status_led="hiwifi:blue:system"
                ;;
index a2b27625d1abee5d0ffd852c9199213062dbab99..99c0268581b14c780a8b0658f6127eeb69b5f3d3 100755 (executable)
@@ -152,6 +152,16 @@ ap113)
        ucidef_add_switch_vlan "switch0" "2" "0t 2"
        ;;
 
+el-m150)
+       ucidef_set_interfaces_lan_wan "eth1" "eth0"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0 1 3"
+       ;;
+
+el-mini)
+       ucidef_set_interface_lan "eth0"
+       ;;
+
 tl-wdr4300|\
 tl-wr1041n-v2)
        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
index 093fbc16abf207d2e2f783bcff38cb07dc509f2f..31ce548cdf9ecb210a1623ae8b080e423fed76df 100755 (executable)
@@ -81,6 +81,7 @@ ew-dorin-router)
        migrate_switch_name "eth0" "switch0"
        ;;
 
+el-m150|\
 rb-450)
        migrate_switch_name "eth1" "switch0"
        ;;
index 6dd5e621757a20dfca3f32ae8f362fe09ad90ae5..4656ac279e4d23d1ccb072af2d062cc625254f82 100755 (executable)
@@ -91,6 +91,12 @@ tplink_board_detect() {
        hwver="v${hwver#0}"
 
        case "$hwid" in
+       "015000"*)
+               model="EasyLink EL-M150"
+               ;;
+       "015300"*)
+               model="EasyLink EL-MINI"
+               ;;
        "3C0001"*)
                model="OOLITE"
                ;;
@@ -307,6 +313,12 @@ ar71xx_board_detect() {
        *EAP7660D)
                name="eap7660d"
                ;;
+       *EL-M150)
+               name="el-m150"
+               ;;
+       *EL-MINI)
+               name="el-mini"
+               ;;
        *JA76PF)
                name="ja76pf"
                ;;
index c98737436ba153765e06be892f643e736a44857c..8af9580a2123274427496081c40d1508233b392e 100755 (executable)
@@ -224,6 +224,8 @@ platform_check_image() {
                ;;
 
        archer-c7 | \
+       el-m150 | \
+       el-mini | \
        oolite | \
        tl-mr10u | \
        tl-mr11u | \
index c294cd8920776ff0760424c23cb196f3ad0edcab..1346c3fe39531190e4cf4c73e6af9453b58322cc 100644 (file)
@@ -47,6 +47,8 @@ CONFIG_ATH79_MACH_DIR_825_B1=y
 CONFIG_ATH79_MACH_DIR_825_C1=y
 CONFIG_ATH79_MACH_DRAGINO2=y
 CONFIG_ATH79_MACH_EAP7660D=y
+CONFIG_ATH79_MACH_EL_M150=y
+CONFIG_ATH79_MACH_EL_MINI=y
 CONFIG_ATH79_MACH_EW_DORIN=y
 CONFIG_ATH79_MACH_GS_OOLITE=y
 CONFIG_ATH79_MACH_HORNET_UB=y
index abc8b667e0b0b621d5a3612583c50a2ab2700a66..6bc1105b1b4b05b9467ec9699ec13914684c705e 100644 (file)
@@ -1130,6 +1130,8 @@ $(eval $(call SingleProfile,TPLINK,64kraw,TLWR1043V1,tl-wr1043nd-v1,TL-WR1043ND,
 
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,ARCHERC7V1,archer-c7-v1,ARCHER-C7,ttyS0,115200,0x75000001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,ARCHERC7V2,archer-c7-v2,ARCHER-C7,ttyS0,115200,0xc7000002,1,16Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,ELM150,el-m150,EL-M150,ttyATH0,115200,0x01500101,1,8Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,ELMINI,el-mini,EL-MINI,ttyATH0,115200,0x01530001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR10U,tl-mr10u-v1,TL-MR10U,ttyATH0,115200,0x00100101,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))