[OpenWrt-Devel] Initial Support for Ubiquiti UniFi, Outdoor Plus

andrew@PolkaSpots.com andrew at polkaspots.com
Wed Jun 18 09:40:19 EDT 2014


This setup works for me.
The only thing that I'm not sure, if if I did the magic number in the 
correct way.

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 80f9090..fa22c14 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -199,6 +199,9 @@ get_status_led() {
         uap-pro)
                 status_led="ubnt:white:dome"
                 ;;
+       unifi-outdoor-plus)
+               status_led="ubnt:blue:front"
+                ;;
         whr-g301n | \
         whr-hp-g300n | \
         whr-hp-gn | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index 156433b..f2739b8 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -276,6 +276,7 @@ pb44 |\
  routerstation|\
  ubnt-unifi-outdoor|\
  unifi-outdoor|\
+unifi-outdoor-plus|\
  nanostation-m|\
  unifi|\
  tl-wr710n |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 23f2ecf..091fd38 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -600,6 +600,9 @@ ar71xx_board_detect() {
                 ;;
         *"UniFiAP Outdoor")
                 name="unifi-outdoor"
+               ;;
+       *"UniFiAP Outdoor Plus")
+                name="unifi-outdoor-plus"
                 ;;
         *WP543)
                 name="wp543"
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 4e698c6..1c3ac6a 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -286,6 +286,7 @@ platform_check_image() {

                 return 0
                 ;;
+       unifi-outdoor-plus | \
         uap-pro)
                 [ "$magic_long" != "19852003" ] && {
                         echo "Invalid image type."
@@ -389,6 +390,7 @@ platform_do_upgrade() {
         om2p-lc)
                 platform_do_upgrade_openmesh "$ARGV"
                 ;;
+       unifi-outdoor-plus | \
         uap-pro)
                 MTD_CONFIG_ARGS="-s 0x180000"
                 default_do_upgrade "$ARGV"
diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index d0ee363..1fadb96 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1171,6 +1171,7 @@ $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,MW4530RV1,mw4530r-v1,TL-WDR4300,t
  $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,OOLITE,oolite,GS-OOLITE,ttyATH0,115200,0x3C000101,1,16Mlzma))

  $(eval $(call 
SingleProfile,UAPPRO,64k,UAPPRO,ubnt-uap-pro,UAP-PRO,ttyS0,115200,BZ,BZ,ar934x))
+$(eval $(call 
SingleProfile,UAPPRO,64k,UBNTUNIFIOUTDOORPLUS,ubnt-unifi-outdoor-plus,UBNT-U20,ttyS0,115200,BZ,BZ,ar7240))

  $(eval $(call 
SingleProfile,UBDEV,64kraw,UBDEV01,ubdev01,UBNT-UF,ttyS0,115200,XM,XM,ar7240))

@@ -1228,7 +1229,7 @@ $(eval $(call MultiProfile,TLWR842,TLWR842V1 
TLWR842V2))
  $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4 
TLWR941NV6))
  $(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2))
  $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 
TLWDR4300V1 TLWDR4300V1IL TLWDR4310V1 MW4530RV1))
-$(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO 
UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR 
UAPPRO))
+$(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO 
UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR 
UBNTUNIFIOUTDOORPLUS UAPPRO))
  $(eval $(call MultiProfile,WNDR3700,WNDR3700V1 WNDR3700V2 WNDR3800 
WNDRMAC WNDRMACV2))
  $(eval $(call MultiProfile,WNR612V2,REALWNR612V2 N150R))
  $(eval $(call MultiProfile,WP543,WP543_2M WP543_4M WP543_8M WP543_16M))




I think this has been already submitted but Im adding it here as well 
just in case.

http://patchwork.openwrt.org/patch/5643/


Adding support for en25qh128

--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -762,6 +762,7 @@ static const struct spi_device_id m25p_i
         { "en25q32b", INFO(0x1c3016, 0, 64 * 1024,  64, 0) },
         { "en25p64", INFO(0x1c2017, 0, 64 * 1024, 128, 0) },
         { "en25q64", INFO(0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
+       { "en25qh128", INFO(0x1c7018, 0, 64 * 1024, 256, 0) },
         { "en25qh256", INFO(0x1c7019, 0, 64 * 1024, 512, 0) },

         /* ESMT */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140618/8b2063db/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list