[OpenWrt-Devel] [PATCH] bcm47xx: Fix GPIO API return codes

2009-02-14 Thread Michael Buesch
The GPIO API is supposed to return 0 or a negative error code,
but the SSB GPIO functions return the bitmask of the GPIO register.
Fix this by ignoring the bitmask and always returning 0. The SSB GPIO functions 
can't fail.

Signed-off-by: Michael Buesch 

---

Index: linux-2.6/arch/mips/include/asm/mach-bcm47xx/gpio.h
===
--- linux-2.6.orig/arch/mips/include/asm/mach-bcm47xx/gpio.h2009-01-01 
19:27:06.0 +0100
+++ linux-2.6/arch/mips/include/asm/mach-bcm47xx/gpio.h 2009-02-14 
21:26:14.0 +0100
@@ -31,24 +31,28 @@ static inline void gpio_set_value(unsign
 
 static inline int gpio_direction_input(unsigned gpio)
 {
-   return ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 0);
+   ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 0);
+   return 0;
 }
 
 static inline int gpio_direction_output(unsigned gpio, int value)
 {
-   return ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 1 << gpio);
+   ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 1 << gpio);
+   return 0;
 }
 
-static int gpio_intmask(unsigned gpio, int value)
+static inline int gpio_intmask(unsigned gpio, int value)
 {
-   return ssb_gpio_intmask(&ssb_bcm47xx, 1 << gpio,
-   value ? 1 << gpio : 0);
+   ssb_gpio_intmask(&ssb_bcm47xx, 1 << gpio,
+value ? 1 << gpio : 0);
+   return 0;
 }
 
-static int gpio_polarity(unsigned gpio, int value)
+static inline int gpio_polarity(unsigned gpio, int value)
 {
-   return ssb_gpio_polarity(&ssb_bcm47xx, 1 << gpio,
-value ? 1 << gpio : 0);
+   ssb_gpio_polarity(&ssb_bcm47xx, 1 << gpio,
+ value ? 1 << gpio : 0);
+   return 0;
 }
 
 


-- 
Greetings, Michael.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Use proper configure options

2009-02-14 Thread Roberto Riggio

Do not pass the "--with-webdav-props" option to configure if
the mod-webdav has not been selected.

Signed-off-by: Roberto Riggio http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Jabber/XMPP Lua Server

2009-02-14 Thread Tim Yardley
djabberd might be another option, although I am not familiar with the
particular stated extension.

http://www.danga.com/djabberd/

/tmy

On Sat, Feb 14, 2009 at 8:51 AM, Florian Fainelli  wrote:
> Hi Lorenzo,
>
> Le Saturday 14 February 2009 15:01:51 OrazioPirataDelloSpazio (Lorenzo), vous
> avez écrit :
>> Hi all,
>> I want to test a Jabber/XMPP lightweight server.
>> I find this one, that is written in LUA, and that is the only one that
>> can be ported to embedded device(to the best of my knowledge) and that
>> support XMPP-OVER-BOSH [1].
>> http://prosody.im/
>>
>> Searching on web, I find that this is already ported to openWRT here:
>> https://svn.openwrt.org/openwrt/packages/net/prosody/
>>
>> but even if it compiles well, it doesn't run because it needs
>> dependencies whose package does not even exist yet.
>>
>> So I create these packages (luasec, luaexpat) and I update the prosody
>> package to the new 0.3.0 version (that support BOSH).
>>
>> Packages can be found here:
>> https://svn.ninux.org/ninuxdeveloping/browser/packages
>>
>> and can be downloaded throught svn checkout from
>>
>> svn.ninux.org/svn/ninuxdeveloping/packages/PACKAGE_NAME
>>
>> If you think, you can include these packages in your repository.
>
> Sure I will integrate the remaining packages to get prosody fully working.
> Thanks a lot !
> --
> Best regards, Florian Fainelli
> Email : flor...@openwrt.org
> http://openwrt.org
> ---
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Jabber/XMPP Lua Server

2009-02-14 Thread Florian Fainelli
Hi Lorenzo,

Le Saturday 14 February 2009 15:01:51 OrazioPirataDelloSpazio (Lorenzo), vous 
avez écrit :
> Hi all,
> I want to test a Jabber/XMPP lightweight server.
> I find this one, that is written in LUA, and that is the only one that
> can be ported to embedded device(to the best of my knowledge) and that
> support XMPP-OVER-BOSH [1].
> http://prosody.im/
>
> Searching on web, I find that this is already ported to openWRT here:
> https://svn.openwrt.org/openwrt/packages/net/prosody/
>
> but even if it compiles well, it doesn't run because it needs
> dependencies whose package does not even exist yet.
>
> So I create these packages (luasec, luaexpat) and I update the prosody
> package to the new 0.3.0 version (that support BOSH).
>
> Packages can be found here:
> https://svn.ninux.org/ninuxdeveloping/browser/packages
>
> and can be downloaded throught svn checkout from
>
> svn.ninux.org/svn/ninuxdeveloping/packages/PACKAGE_NAME
>
> If you think, you can include these packages in your repository.

Sure I will integrate the remaining packages to get prosody fully working. 
Thanks a lot !
-- 
Best regards, Florian Fainelli
Email : flor...@openwrt.org
http://openwrt.org
---


signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Jabber/XMPP Lua Server

2009-02-14 Thread OrazioPirataDelloSpazio (Lorenzo)
Hi all,
I want to test a Jabber/XMPP lightweight server.
I find this one, that is written in LUA, and that is the only one that 
can be ported to embedded device(to the best of my knowledge) and that 
support XMPP-OVER-BOSH [1].
http://prosody.im/

Searching on web, I find that this is already ported to openWRT here:
https://svn.openwrt.org/openwrt/packages/net/prosody/

but even if it compiles well, it doesn't run because it needs 
dependencies whose package does not even exist yet.

So I create these packages (luasec, luaexpat) and I update the prosody 
package to the new 0.3.0 version (that support BOSH).

Packages can be found here:
https://svn.ninux.org/ninuxdeveloping/browser/packages

and can be downloaded throught svn checkout from

svn.ninux.org/svn/ninuxdeveloping/packages/PACKAGE_NAME

If you think, you can include these packages in your repository.

Bye!

Lorenzo

[1] http://xmpp.org/extensions/xep-0124.html



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] update p54 firmware and fix mac80211 dependancy

2009-02-14 Thread Jan Willies

Signed-off-by: Jan Willies 
---
 package/mac80211/Makefile |   31 ++-
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index c5a4bfd..723fb2a 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -53,14 +53,22 @@ Linux 802.11 Wireless Networking Stack
 endef
 
 # Prism54 drivers
-P54FW:=2.7.0.0.arm
+P54PCIFW:=2.13.12.0.arm
+P54USBFW:=2.13.24.0.lm86.arm
 
-define Download/p54
-  FILE:=$(P54FW)
-  URL:=http://prism54.org/firmware
-  MD5SUM:=09f9da7ea757173c9de1a0322a1f9782
+define Download/p54usb
+  FILE:=$(P54USBFW)
+  URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
+  MD5SUM:=2e847782bb36d5b0863db8b2f12c2228
 endef
-$(eval $(call Download,p54))
+$(eval $(call Download,p54usb))
+
+define Download/p54pci
+  FILE:=$(P54PCIFW)
+  URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
+  MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
+endef
+$(eval $(call Download,p54pci))
 
 define KernelPackage/p54/Default
   $(call KernelPackage/mac80211/Default)
@@ -73,7 +81,7 @@ endef
 
 define KernelPackage/p54-common
   $(call KernelPackage/p54/Default)
-  DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT
+  DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT +kmod-mac80211
   TITLE+= (COMMON)
   
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.$(LINUX_KMOD_SUFFIX)
   AUTOLOAD:=$(call AutoLoad,30,p54common)
@@ -395,9 +403,14 @@ define KernelPackage/mac80211/install
$(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
 endef
 
-define KernelPackage/p54-common/install
+define KernelPackage/p54-pci/install
+   $(INSTALL_DIR) $(1)/lib/firmware
+   $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
+endef
+
+define KernelPackage/p54-usb/install
$(INSTALL_DIR) $(1)/lib/firmware
-   $(INSTALL_DATA) $(DL_DIR)/$(P54FW) $(1)/lib/firmware/isl3886
+   $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3886usb
 endef
 
 define KernelPackage/rt61-pci/install
-- 
1.6.1.3

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel