Discussion:
[OpenWrt-Devel] Initial Support for Ubiquiti UniFi Outdoor Plus
David Hutchison
2014-04-05 00:33:50 UTC
Permalink
I was able to get the Ubiquiti UniFi Outdoor Plus to boot into OpenWRT
today, however I need some assistance writing a patch for it. There
are two things that need to happen:

First of all, this is how I got it to work:

Modify target/linux/ar71xx/image/Makefile:

--- Makefile.bak 2014-04-04 17:01:40.929134535 -0700
+++ Makefile 2014-04-04 17:03:40.763628013 -0700
@@ -1055,6 +1055,7 @@
$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,MW4530RV1,mw4530r-v1,TL-WDR4300,ttyS0,115200,0x45300001,1,8Mlzma))

$(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))

@@ -1110,7 +1111,7 @@
$(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4
TLWR941NV6))
$(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2))
$(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1
TLWDR4300V1 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))

There was a flash driver modification I had to make to get it working,
however I'm not sure how to incorporate it in the patch. Here is the
2nd change I had to make to get the 16M flash chip to work:

Modify m25p80.c:
( I have an older kernel, so I modified it in the build directory
directly for testing purposes, it's in
linux-3.7.4/drivers/mtd/devices/m25p80.c in my particular dev
environment )

+++ m25p80.c 2014-04-05 00:27:58.000000000 +0000
@@ -677,6 +677,8 @@
{ "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) },

/* Everspin */
{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2) },

I would like some help testing and creating a valid patch. 1.) I don't
know if you need to modify the flash driver in the newer kernel, can
someone confirm trunk has support for the en25qh128 flash chip? 2.)
Should we use "UAPPRO" since the flash layout seems to be the same on
both the PRO and UBNT Outdoor Unifi Plus? Is that a valid approach as
far as the Makefile is concerned? 3.) If the flash chip change is not
needed in the latest trunk, is the first patch I provided sufficient
for Initial UniFi Outdoor Plus support?

-- Davey
v***@gmail.com
2014-05-22 09:20:05 UTC
Permalink
Post by David Hutchison
I was able to get the Ubiquiti UniFi Outdoor Plus to boot into OpenWRT
today, however I need some assistance writing a patch for it. There
--- Makefile.bak 2014-04-04 17:01:40.929134535 -0700
Post by David Hutchison
<snip>
I would like some help testing and creating a valid patch. 1.) I don't
know if you need to modify the flash driver in the newer kernel, can
someone confirm trunk has support for the en25qh128 flash chip? 2.)
Should we use "UAPPRO" since the flash layout seems to be the same on
both the PRO and UBNT Outdoor Unifi Plus? Is that a valid approach as
far as the Makefile is concerned? 3.) If the flash chip change is not
needed in the latest trunk, is the first patch I provided sufficient
for Initial UniFi Outdoor Plus support?
-- Davey
Has there been any progress? I'm considering getting one UAP-Outdoor+ but
it is not cheap, so it is not an impulse decision. I would like to help and
test and get this hardware supported under OpenWrt, if anybody has means to
send at least two devices for testing I'll work on getting them supported
under OpenWrt.
David Hutchison
2014-05-22 14:33:54 UTC
Permalink
It's running well in OpenWRT, I just need some guidance on how to go about
patching the "m25p80.c" file. Nobody responded about the Makefile change,
if it was proper to use the "UAPPRO" profile, since it matches the UniFi+.

If you manually apply those changes to your tree, it will work.

-- Davey
Post by David Hutchison
Post by David Hutchison
I was able to get the Ubiquiti UniFi Outdoor Plus to boot into OpenWRT
today, however I need some assistance writing a patch for it. There
--- Makefile.bak 2014-04-04 17:01:40.929134535 -0700
Post by David Hutchison
<snip>
I would like some help testing and creating a valid patch. 1.) I don't
know if you need to modify the flash driver in the newer kernel, can
someone confirm trunk has support for the en25qh128 flash chip? 2.)
Should we use "UAPPRO" since the flash layout seems to be the same on
both the PRO and UBNT Outdoor Unifi Plus? Is that a valid approach as
far as the Makefile is concerned? 3.) If the flash chip change is not
needed in the latest trunk, is the first patch I provided sufficient
for Initial UniFi Outdoor Plus support?
-- Davey
Has there been any progress? I'm considering getting one UAP-Outdoor+ but
it is not cheap, so it is not an impulse decision. I would like to help and
test and get this hardware supported under OpenWrt, if anybody has means to
send at least two devices for testing I'll work on getting them supported
under OpenWrt.
Outback Dingo
2014-06-13 07:53:39 UTC
Permalink
Hey David, Ive just picked up an AP Outdoor Plus model today, I can help
you get it sorted and committed to the tree
Once ive gone through the testing and needed validation steps..... Ill keep
you all posted.
Post by David Hutchison
It's running well in OpenWRT, I just need some guidance on how to go about
patching the "m25p80.c" file. Nobody responded about the Makefile change,
if it was proper to use the "UAPPRO" profile, since it matches the UniFi+.
If you manually apply those changes to your tree, it will work.
-- Davey
Post by David Hutchison
Post by David Hutchison
I was able to get the Ubiquiti UniFi Outdoor Plus to boot into OpenWRT
today, however I need some assistance writing a patch for it. There
--- Makefile.bak 2014-04-04 17:01:40.929134535 -0700
Post by David Hutchison
<snip>
I would like some help testing and creating a valid patch. 1.) I don't
know if you need to modify the flash driver in the newer kernel, can
someone confirm trunk has support for the en25qh128 flash chip? 2.)
Should we use "UAPPRO" since the flash layout seems to be the same on
both the PRO and UBNT Outdoor Unifi Plus? Is that a valid approach as
far as the Makefile is concerned? 3.) If the flash chip change is not
needed in the latest trunk, is the first patch I provided sufficient
for Initial UniFi Outdoor Plus support?
-- Davey
Has there been any progress? I'm considering getting one UAP-Outdoor+ but
it is not cheap, so it is not an impulse decision. I would like to help and
test and get this hardware supported under OpenWrt, if anybody has means to
send at least two devices for testing I'll work on getting them supported
under OpenWrt.
_______________________________________________
openwrt-devel mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Sergey Ryazanov
2014-06-13 16:27:52 UTC
Permalink
Hi David,
Post by David Hutchison
It's running well in OpenWRT, I just need some guidance on how to go about
patching the "m25p80.c" file. Nobody responded about the Makefile change, if
it was proper to use the "UAPPRO" profile, since it matches the UniFi+.
Few days ago I already send patch which add support for EN25QH128
flash to each supported kernel in OpenWRT trunk [1] (this flash also
soldered in my UniFi AP Pro). Could test it against your UAP Outdoor+
, if it do the trick then one task is solved.

1. http://patchwork.openwrt.org/patch/5643/
--
BR,
Sergey
Loading...