[OpenWrt-Devel] D-Link DIR-835 LED/GPIO

2013-02-22 Thread Michael Andrawes
Attempting to contact "Halo2" regarding fixing LEDs on the D-Link DIR-835 as 
discussed in existing ticket.
Mike  ___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [packages] add PageKite C, and libev

2013-02-22 Thread Karl P


Bump...

On 01/04/2013 03:07 PM, Karl Palsson wrote:

From: Karl Palsson 

Adds the PageKite C implementation and it's dependency, libev.


From the package description:

PageKite is a system for running publicly visible servers (generally
  web servers) on machines without a direct connection to the Internet,
  such as mobile devices or computers behind restrictive firewalls.
  PageKite works around NAT, firewalls and IP-address limitations by
  using a combination of tunnels and reverse proxies.

  This package provides an implementation of the PageKite Protocol in C,
  optimized for high-performance or embedded applications.

  Basic UCI support for HTTP and SSH servers is also included in this
package.

  https://pagekite.net/wiki/Floss/LibPageKite/

Signed-off-by: Karl Palsson 
---
  libs/libev/Makefile| 59 +
  net/pagekitec/Makefile | 60 ++
  net/pagekitec/files/pagekitec.config   |  1 +
  net/pagekitec/files/pagekitec.init | 36 ++
  net/pagekitec/files/pagekitec.uci-defaults | 25 +
  5 files changed, 181 insertions(+)
  create mode 100644 libs/libev/Makefile
  create mode 100644 net/pagekitec/Makefile
  create mode 100644 net/pagekitec/files/pagekitec.config
  create mode 100755 net/pagekitec/files/pagekitec.init
  create mode 100755 net/pagekitec/files/pagekitec.uci-defaults

diff --git a/libs/libev/Makefile b/libs/libev/Makefile
new file mode 100644
index 000..4607d9b
--- /dev/null
+++ b/libs/libev/Makefile
@@ -0,0 +1,59 @@
+#
+# Copyright (C) 2006-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libev
+PKG_VERSION:=4.11
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://dist.schmorp.de/libev/Attic/
+PKG_MD5SUM:=cda69b858a1849dfe6ce17c930cf10cd
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libev
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Another event notification library
+  URL:=http://software.schmorp.de/pkg/libev.html
+  MAINTAINER:=Thomas Heil 
+endef
+
+define Package/libev/description
+A full-featured and high-performance (see benchmark) event loop that is loosely
+modelled after libevent, but without its limitations and bugs.
+It is used, among others, in the GNU Virtual Private Ethernet and rxvt-unicode
+packages, and in the Deliantra MORPG Server and Client.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+CONFIGURE_ARGS += \
+   --enable-shared \
+   --enable-static \
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{la,a,so} $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so.4* $(1)/usr/lib
+endef
+
+define Package/libev/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so.4* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libev))
+
diff --git a/net/pagekitec/Makefile b/net/pagekitec/Makefile
new file mode 100644
index 000..471d1f4
--- /dev/null
+++ b/net/pagekitec/Makefile
@@ -0,0 +1,60 @@
+#
+# Copyright (C) 2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=pagekitec
+PKG_REV:=e79bf00c4efd4e37e4941a054e1e6d8fbce5d00a
+PKG_VERSION:=121207C-$(PKG_REV)
+PKG_RELEASE:=1
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=g...@github.com:pagekite/libpagekite.git
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_VERSION:=$(PKG_REV)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/$(PKG_NAME)
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=Make localhost servers publicly visible.
+  URL:=https://pagekite.net/wiki/Floss/LibPageKite/
+  DEPENDS:=+libopenssl +libpthread +libev
+endef
+
+define Package/$(PKG_NAME)/description
+PageKite is a system for running publicly visible servers (generally
+ web servers) on machines without a direct connection to the Internet,
+ such as mobile devices or computers behind restrictive firewalls.
+ PageKite works around NAT, firewalls and IP-address limitations by
+ using a combination of tunnels and reverse proxies.
+
+ This package provides an implementation of the PageKite Protocol in C,
+ optimized for high-performance or embedded applications.
+
+ Basic UCI support for HTTP and SSH servers is also included in this package.
+
+ https://pagekite.net/wiki/Floss/LibPageKite/
+endef
+
+define Package/$(PKG_NAME)/conffiles
+/etc/config/$(PKG_NAME)
+endef
+
+define Package/$(PKG_NAME)/install
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1

[OpenWrt-Devel] [PATCH] Libdlna version bump

2013-02-22 Thread Ian Leonard
Update libdlna to 0.2.4.

Drop 100-configure_fix.patch. This was a mix of configure fixes and changes to 
build with newer ffmpeg versions. The ffmpeg changes are integrated. The 
configure changes are rolled into a new patch, 
010-configure-crosscompile.patch, so it will hopefully stay single purpose 
changes.

Rebase 300-ffmpeg_compat.patch.

Note: This is compile tested only.

Signed-off-by: Ian Leonard 
---
Index: packages/libs/libdlna/Makefile
===
--- packages/libs/libdlna/Makefile  (revision 35725)
+++ packages/libs/libdlna/Makefile  (working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,13 +8,16 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libdlna
-PKG_VERSION:=0.2.3
+PKG_VERSION:=0.2.4
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://libdlna.geexbox.org/releases/
-PKG_MD5SUM:=2c974f95b711e5fd07f78fc4ebfcca66
+PKG_MD5SUM:=64d7de57aff5a729f2434fc5e69b4ffc
 
+PKG_LICENSE:=LGPLv2.1+
+PKG_LICENSE_FILES:=COPYING
+
 PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
 
Index: packages/libs/libdlna/patches/010-configure-crosscompile.patch
===
--- packages/libs/libdlna/patches/010-configure-crosscompile.patch  
(revision 0)
+++ packages/libs/libdlna/patches/010-configure-crosscompile.patch  
(working copy)
@@ -0,0 +1,59 @@
+--- a/configure
 b/configure
+@@ -184,6 +184,19 @@ check_ld(){
+ check_cmd $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
+ }
+ 
++check_host_cc(){
++log check_host_cc "$@"
++cat >$TMPC
++log_file $TMPC
++check_cmd $host_cc $host_cflags "$@" -c -o $TMPO $TMPC
++}
++
++check_host_ld(){
++log check_host_ld "$@"
++check_host_cc || return
++check_cmd $host_cc $host_cflags $host_ldflags "$@" -o $TMPE $TMPO
++}
++
+ check_exec(){
+ check_ld "$@" && { enabled cross_compile || $TMPE >>$logfile 2>&1; }
+ }
+@@ -318,6 +331,7 @@ includedir='$(PREFIX)/include'
+ static="yes"
+ shared="yes"
+ cc="gcc"
++host_cc="gcc"
+ ar="ar"
+ ranlib="ranlib"
+ make="make"
+@@ -465,6 +479,10 @@ else
+   [ -n "$STRIP" ] && strip="$STRIP"
+ fi
+ [ -n "$MAKE" ] && make="$MAKE"
++[ -n "$HOST_CC" ] && host_cc="$HOST_CC"
++[ -n "$HOST_CFLAGS" ] && host_cflags="$HOST_CFLAGS"
++[ -n "$HOST_LDFLAGS" ] && host_ldflags="$HOST_LDFLAGS"
++host_cflags="-Isrc $host_cflags"
+ 
+ #
+ #   create logging file
+@@ -649,8 +667,7 @@ check_lib libavcodec/avcodec.h avcodec_r
+ #
+ #   version
+ #
+-temp_cflags "-Isrc"
+-check_ld <
+ #include 
+ int main(){
+@@ -660,7 +677,6 @@ int main(){
+ }
+ EOF
+ VERSION=`$TMPE`
+-restore_flags
+ 
+ 
+ #
Index: packages/libs/libdlna/patches/100-configure_fix.patch
===
--- packages/libs/libdlna/patches/100-configure_fix.patch   (revision 35725)
+++ packages/libs/libdlna/patches/100-configure_fix.patch   (working copy)
@@ -1,120 +0,0 @@
-diff -ruN libdlna-0.2.3.orig/configure libdlna-0.2.3/configure
 libdlna-0.2.3.orig/configure   2007-11-26 21:47:43.0 +0100
-+++ libdlna-0.2.3/configure2008-04-19 21:59:15.0 +0200
-@@ -177,6 +177,19 @@
- check_cmd $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
- }
- 
-+check_host_cc(){
-+log check_host_cc "$@"
-+cat >$TMPC
-+log_file $TMPC
-+check_cmd $host_cc $host_cflags "$@" -c -o $TMPO $TMPC
-+}
-+
-+check_host_ld(){
-+log check_host_ld "$@"
-+check_host_cc || return
-+check_cmd $host_cc $host_cflags $host_ldflags "$@" -o $TMPE $TMPO
-+}
-+
- check_exec(){
- check_ld "$@" && { enabled cross_compile || $TMPE >>$logfile 2>&1; }
- }
-@@ -311,6 +324,7 @@
- static="yes"
- shared="yes"
- cc="gcc"
-+host_cc="gcc"
- ar="ar"
- ranlib="ranlib"
- make="make"
-@@ -454,6 +468,11 @@
- fi
- [ -n "$MAKE" ] && make="$MAKE"
- 
-+[ -n "$HOST_CC" ] && host_cc="$HOST_CC"
-+[ -n "$HOST_CFLAGS" ] && host_cflags="$HOST_CFLAGS"
-+[ -n "$HOST_LDFLAGS" ] && host_ldflags="$HOST_LDFLAGS"
-+host_cflags="-Isrc $host_cflags"
-+
- #
- #   create logging file
- #
-@@ -610,15 +629,14 @@
- fi
- 
- echolog "Checking for libavformat ..."
--check_lib ffmpeg/avformat.h av_register_all -lavformat || die "Error, can't 
find libavformat !"
-+check_lib libavformat/avformat.h av_register_all -lavformat -lavcodec 
-lavutil || die "Error, can't find libavformat !"
- echolog "Checking for libavcodec ..."
--check_lib ffmpeg/avcodec.h avcodec_register_all -lavcodec || die "Error, 
can't find libavcodec !"
-+check_lib libavc

[OpenWrt-Devel] [PATCH] FFmpeg version bump

2013-02-22 Thread Ian Leonard
Update FFmpeg to version 0.11.2. The API changed from 0.8. Minidlna in the 
feeds works with this, and a patch is forthcoming for libdlna. I'm not aware of 
what other packages might break with this update.

Two new ffmpeg tools, aviocat and ffeval, are not included in the package. 
ffeval is used for their development tests. Aviocat is used for dumping media 
streams.

Signed-off-by: Ian Leonard 
---
Index: packages/multimedia/ffmpeg/Makefile
===
--- packages/multimedia/ffmpeg/Makefile (revision 35725)
+++ packages/multimedia/ffmpeg/Makefile (working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2012 OpenWrt.org
+# Copyright (C) 2006-2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ffmpeg
-PKG_VERSION:=0.8.12
+PKG_VERSION:=0.11.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://ffmpeg.org/releases/
-PKG_MD5SUM:=c2e5a219e0c845fe11f9dae9c169640f
+PKG_MD5SUM:=93c1908022567b321df74db7214da6ac
 
 PKG_LICENSE:=LGPLv2.1+ GPLv2+ LGPLv3
 PKG_LICENSE_FILES:=COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 COPYING.LGPLv3
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Samba version bump

2013-02-22 Thread Ian Leonard
Version bump Samba to 3.6.12. Changes from 3.6.11 are security fixes in the 
Samba Wed Admin Tool.

Signed-off-by: Ian Leonard 
---
Index: package/network/services/samba36/Makefile
===
--- package/network/services/samba36/Makefile   (revision 35642)
+++ package/network/services/samba36/Makefile   (working copy)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=samba
-PKG_VERSION:=3.6.11
-PKG_RELEASE:=2
+PKG_VERSION:=3.6.12
+PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
http://ftp.samba.org/pub/samba/old-versions
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_MD5SUM:=9039e0ab3e4fc632ff0a1a8f2433edb4
+PKG_MD5SUM:=430fd21a1acd26964d3ccf366df8709a
 
 PKG_LICENSE:=GPLv3
 PKG_LICENSE_FILES:=COPYING
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Libpng version bump

2013-02-22 Thread Ian Leonard
Version bump libpng to 1.2.50 and switch to the .tar.xz packaging. Drop patch 
200-CVE-2011-3026.patch as it's integrated.

Signed-off-by: Ian Leonard 
---
Index: packages/libs/libpng/Makefile
===
--- packages/libs/libpng/Makefile   (revision 35725)
+++ packages/libs/libpng/Makefile   (working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2012 OpenWrt.org
+# Copyright (C) 2006-2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpng
-PKG_VERSION:=1.2.46
-PKG_RELEASE:=2
+PKG_VERSION:=1.2.50
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/libpng
-PKG_MD5SUM:=e8b43dc78ef95b3949af7f961d76874b
+PKG_MD5SUM:=a3e00fccbfe356174ab515b5c00641c7
 
 PKG_LICENSE:=LIBPNG GPLv2
 PKC_LICENSE_FILES:=LICENSE contrib/gregbook/COPYING contrib/gregbook/LICENSE
Index: packages/libs/libpng/patches/200-CVE-2011-3026.patch
===
--- packages/libs/libpng/patches/200-CVE-2011-3026.patch(revision 35725)
+++ packages/libs/libpng/patches/200-CVE-2011-3026.patch(working copy)
@@ -1,40 +0,0 @@
 a/pngrutil.c
-+++ b/pngrutil.c
-@@ -339,15 +339,18 @@ png_decompress_chunk(png_structp png_ptr
-   /* Now check the limits on this chunk - if the limit fails the
-* compressed data will be removed, the prefix will remain.
-*/
-+  if (prefix_size >= (~(png_size_t)0) - 1 ||
-+ expanded_size >= (~(png_size_t)0) - 1 - prefix_size
- #ifdef PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED
--  if (png_ptr->user_chunk_malloc_max &&
-+ || (png_ptr->user_chunk_malloc_max &&
-   (prefix_size + expanded_size >= png_ptr->user_chunk_malloc_max - 1))
- #else
- #  ifdef PNG_USER_CHUNK_MALLOC_MAX
--  if ((PNG_USER_CHUNK_MALLOC_MAX > 0) &&
-+ || ((PNG_USER_CHUNK_MALLOC_MAX > 0) &&
-   prefix_size + expanded_size >= PNG_USER_CHUNK_MALLOC_MAX - 1)
- #  endif
- #endif
-+  )
-  png_warning(png_ptr, "Exceeded size limit while expanding chunk");
- 
-   /* If the size is zero either there was an error and a message
-@@ -355,14 +358,11 @@ png_decompress_chunk(png_structp png_ptr
-* and we have nothing to do - the code will exit through the
-* error case below.
-*/
--#if defined(PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED) || \
--defined(PNG_USER_CHUNK_MALLOC_MAX)
--  else
--#endif
--  if (expanded_size > 0)
-+  else if (expanded_size > 0)
-   {
-  /* Success (maybe) - really uncompress the chunk. */
-  png_size_t new_size = 0;
-+
-  png_charp text = png_malloc_warn(png_ptr,
- prefix_size + expanded_size + 1);
- 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Libogg version bump

2013-02-22 Thread Ian Leonard
Update to libogg-1.3.0 and switch to the .tar.xz packaging.

Signed-off-by: Ian Leonard 
---
Index: packages/libs/libogg/Makefile
===
--- packages/libs/libogg/Makefile   (revision 35725)
+++ packages/libs/libogg/Makefile   (working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2008 OpenWrt.org
+# Copyright (C) 2008-2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libogg
-PKG_VERSION:=1.1.4
-PKG_RELEASE:=2
+PKG_VERSION:=1.3.0
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ogg/
-PKG_MD5SUM:=10200ec22543841d9d1c23e0aed4e5e9
+PKG_MD5SUM:=84a35715170f2cd4c77a4448772b95d5
 
 PKG_LICENSE:=BSD-3c
 PKG_LICENSE_FILES:=COPYING
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Libvorbis version bump

2013-02-22 Thread Ian Leonard
Update libvorbis to 1.3.3 and switch to the .tar.xz packaging. Drop 
001-automake-compat.patch as it's no longer necessary.

Signed-off-by: Ian Leonard 
---
Index: packages/libs/libvorbis/Makefile
===
--- packages/libs/libvorbis/Makefile(revision 35725)
+++ packages/libs/libvorbis/Makefile(working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2008-2009 OpenWrt.org
+# Copyright (C) 2008-2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libvorbis
-PKG_VERSION:=1.2.3
+PKG_VERSION:=1.3.3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
-PKG_MD5SUM:=5aa77f55c0e0aab8eb8ed982335daac8
+PKG_MD5SUM:=71b649d3e08e63ece16649df906ce8b9
 
 PKG_LICENSE:=BSD-3c
 PKG_LICENSE_FILES:=COPYING
Index: packages/libs/libvorbis/patches/001-automake-compat.patch
===
--- packages/libs/libvorbis/patches/001-automake-compat.patch   (revision 35725)
+++ packages/libs/libvorbis/patches/001-automake-compat.patch   (working copy)
@@ -1,10 +0,0 @@
 a/Makefile.am
-+++ b/Makefile.am
-@@ -1,6 +1,7 @@
- ## Process this file with automake to produce Makefile.in
- 
- AUTOMAKE_OPTIONS = 1.6 foreign dist-zip dist-bzip2
-+ACLOCAL_AMFLAGS = -I m4
- 
- SUBDIRS = m4 include vq lib examples test doc
- 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] dir-835-a1 testimage

2013-02-22 Thread Alexander Stadler
Who wanted the "led testimage" for DIR 835 Rev. A?

Alex
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linksys E4200v1 Support

2013-02-22 Thread Tijs Van Buggenhout
On Thursday 21 February 2013 18:40:20 Tijs Van Buggenhout wrote:
> On Thursday 21 February 2013 16:13:07 Hauke Mehrtens wrote:
> > On 02/20/2013 02:46 PM, Cezary Jackiewicz wrote:
> > > Dnia 2013-02-20, o godz. 14:11:53
> > > 
> > > Hauke Mehrtens  napisa?(a):
> > >> On my e3200 Ethernet works with the default config. Are there more
> > >> problems discussed in this tread?
> > > 
> > > On my e3200 also ethernet seems to work, but often hangs up with:
> > > 
> > > [  121.98] bgmac bcma0:1: Hardware reported transmission for empty 
TX
> > > ring slot 120! End of ring: 0 [  121.988000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 121! End of ring: 0 [ 
> > > 121.996000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 122! End of ring: 0 [  122.008000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 123! End of ring: 0 [ 
> > > 122.016000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 124! End of ring: 0 [  122.024000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 125! End of ring: 0 [ 
> > > 122.036000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 126! End of ring: 0 [  122.044000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 127! End of ring: 0 [ 
> > > 122.052000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 0! End of ring: 0 [  122.064000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 1! End of ring: 0 [ 
> > > 122.072000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 2! End of ring: 0 [  122.08] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 3! End of ring: 0 [ 
> > > 122.088000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 4! End of ring: 0 [  122.10] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 5! End of ring: 0 [ 
> > > 122.108000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 6! End of ring: 0 [  122.116000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 7! End of ring: 0 [ 
> > > 122.128000] bgmac bcma0:1: Hardware reported transmission for empty TX
> > > ring slot 8! End of ring: 0 [  122.136000] bgmac bcma0:1: Hardware
> > > reported transmission for empty TX ring slot 9! End of ring: 0
> > > 
> > > etc.
> > 
> > I have seen the same problem with my e3200. When this happens I see
> > ~17MByte/s of garbage traffic on the NIC of my desktop connected to this
> > devices. It looks like it sends out old packages or parts of it in an
> > endless loop. Most of them did not contained a valid Ethernet header but
> > some contained the OpenWrt logo, where I expected an Ethernet or IP
> > header. ;-)
> > 
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 
> I notice the same behaviour here. I see this happen regularly, when booting 
the device, without network cables plugged in, or no network traffic being 
received. By default, an udhcp client is run on internet interface, which 
sends out packets, but no answer is (ever) returned.
> 
> After about 300 seconds, the driver will start reporting these messages, 
after a while the system reboots.
> 
> I made a tcpdump on the wan port, which shows only udp dhcp requests being 
sent. At the moment the driver starts reporting, I can see two packets being 
echoed from the past (dhcp requests hold the 'seconds elapsed' field, which 
normally only augments).
> 
> Packets sent out, with increasing seconds elapsed: 
> 
> 17:53:54.097432 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, 
Request from 20:aa:4b:21:19:73 (oui Unknown), length 351
> E..{@.ys.D.C.gl.1.Us.q.. 
.K!.s..c.Sc5..9..@7...*<.udhcp
 
1.19.4.
> 17:53:57.098021 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, 
Request from 20:aa:4b:21:19:73 (oui Unknown), length 351
> E..{@.ys.D.C.gl.1.Us.t.. 
.K!.s..c.Sc5..9..@7...*<.udhcp
 
1.19.4.
> 17:54:00.101515 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, 
Request from 20:aa:4b:21:19:73 (oui Unknown), length 351
> E..{@.ys.D.C.gl.1.Us.w

[OpenWrt-Devel] ramips: add D-Link DIR-320/NRU support [v2]

2013-02-22 Thread Vladimir Stolyarov
This patch adds D-Link DIR-320/NRU (H/W rev B1) router support to 
OpenWRT. This router is RT5350 SoC based. It has 8MB flash and 32MB ram. 
I used this patch for wi-fi driver http://patchwork.openwrt.org/patch/3122/

Signal strength increased.

Signed-off-by: Vladimir Stolyarov 
Signed-off-by: Serge Vasilugin 
---
I forgot to include patch for wifi in previous patch
You can get working firmware images here 
https://code.google.com/p/openwrt-on-dir-320-b1/downloads/list



Index: target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c 
(revision 35708)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c	(working 
copy)

@@ -116,12 +116,23 @@

 static void rt305x_fe_reset(void)
 {
-   u32 reset_bits = RT305X_RESET_FE;
+   u32 val;

-   if (soc_is_rt5350())
-   reset_bits |= RT305X_RESET_ESW;
-   rt305x_sysc_wr(reset_bits, SYSC_REG_RESET_CTRL);
-   rt305x_sysc_wr(0, SYSC_REG_RESET_CTRL);
+   val = rt305x_sysc_rr(SYSC_REG_RESET_CTRL);
+
+   if (soc_is_rt5350()) {
+   val = val | RT305X_RESET_FE | RT305X_RESET_ESW;
+   } else {
+   val = val | RT305X_RESET_FE;
+   }
+   rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
+
+   if (soc_is_rt5350()) {
+   val = val & ~(RT305X_RESET_FE | RT305X_RESET_ESW);
+   } else {
+   val = val & ~(RT305X_RESET_FE);
+   }
+   rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
 }

 static struct resource rt305x_eth_resources[] = {
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile	(revision 
35708)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile	(working 
copy)

@@ -22,6 +22,8 @@
 obj-$(CONFIG_RT305X_MACH_BROADWAY) += mach-broadway.o
 obj-$(CONFIG_RT305X_MACH_CARAMBOLA)+= mach-carambola.o
 obj-$(CONFIG_RT305X_MACH_DIR_300_REVB) += mach-dir-300-revb.o
+obj-$(CONFIG_RT305X_MACH_DIR_320_B1)   += mach-dir-320-b1.o
+obj-$(CONFIG_RT305X_MACH_DIR_620_D1)   += mach-dir-620-d1.o
 obj-$(CONFIG_RT305X_MACH_DIR_615_H1)   += mach-dir-615-h1.o
 obj-$(CONFIG_RT305X_MACH_DAP_1350) += mach-dap-1350.o
 obj-$(CONFIG_RT305X_MACH_ESR_9753) += mach-esr-9753.o
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig	(revision 
35708)

+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (working copy)
@@ -91,6 +91,16 @@
select RALINK_DEV_GPIO_BUTTONS
select RALINK_DEV_GPIO_LEDS

+config RT305X_MACH_DIR_320_B1
+   bool "D-Link DIR-320 revB1 board support"
+   select RALINK_DEV_GPIO_BUTTONS
+   select RALINK_DEV_GPIO_LEDS
+
+config RT305X_MACH_DIR_620_D1
+   bool "D-Link DIR-620 revD1 board support"
+   select RALINK_DEV_GPIO_BUTTONS
+   select RALINK_DEV_GPIO_LEDS
+
 config RT305X_MACH_DIR_615_H1
bool "D-Link DIR-615 H1 board support"
select RALINK_DEV_GPIO_BUTTONS
Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
===
--- 
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 
(revision 35708)
+++ 
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 
(working copy)

@@ -72,6 +72,7 @@
/* RT3352 based machines */
RAMIPS_MACH_ALL5002,/* Allnet ALL5002 */
RAMIPS_MACH_DIR_615_H1,
+   RAMIPS_MACH_DIR_620_D1,

/* RT3662 based machines */
RAMIPS_MACH_DIR_645,/* D-Link DIR-645 */
@@ -84,4 +85,5 @@

/* RT5350 based machines */
RAMIPS_MACH_AIR3GII,/* AirLive Air3GII */
+   RAMIPS_MACH_DIR_320_B1  /* D-Link DIR-320/NRU */
 };
Index: target/linux/ramips/image/Makefile
===
--- target/linux/ramips/image/Makefile  (revision 35708)
+++ target/linux/ramips/image/Makefile  (working copy)
@@ -249,6 +249,30 @@
 	$(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call 
mkcmdline,$(3),ttyS1,57600) $(call 
mkmtd/phys,$(mtdlayout_dir620a1)),$(kernel_size_dir620a1),$(rootfs_size_dir620a1))

 endef

+#
+mtdlayout_dir320b1=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x5(firmware)
+kernel_size_dir320b1=917504
+rootfs_size_dir320b1=7143424
+define BuildFirmware/DIR320B1
+	$(call BuildFirmware/Generic,$(1),$(2),$(call 
mkcmdline,$(3),ttyS1,57600) $(call 
mkmtd/spi,$(mtdlayout_dir320b1)),$(kernel_size_dir320b1),$(rootfs_size_dir320b1),DIR320B1)

+endef
+
+define BuildFirmware/DIR320

[OpenWrt-Devel] Update on rygel packaging

2013-02-22 Thread Andy Leiserson
For anyone looking for a working rygel package, I would suggest one of:

* Attitude adjustment with the packages from
  https://github.com/aandyl/openwrt-packages/tree/rygel-attitude-adjustment

* Trunk at revisions >= r34528 and < r35523, with the patch at
  http://patchwork.openwrt.org/patch/3178/, or newer revisions with
  the same patch and with r35523 reverted.

The audio issues I mentioned previously should be resolved in kernel
3.7.7 and 3.8.

More detail on my most recent experience building rygel for openwrt
follows. I'll pause here to ask whether there's interest in maintaining
the package in openwrt archive. If not, I would probably invest less
effort in updating dependency packages in a way that's generally useful,
and I'd also suggest removing rygel, gupnp*, vala, and libgee from the
archive rather than let them go stale. (FWIW, there was an inquiry about
building rygel in the forum, so there's at least some interest.)

As for the current state of the build: r35523 updated gupnp to the
latest version, 0.19.4 (and also updated gssdp).  The packaged version
of rygel (0.14.1) doesn't work with gupnp 0.19.4.

I've worked on updating to the latest rygel. It involves quite a few
updates to various dependencies, including updating to GStreamer 1.0.

More troubling is the issue of generating vapi (Vala API) files for the
newer gupnp releases. Previously the generated vapi were shipped in the
gupnp-vala dist tarball, which avoided the issue. (I didn't realize the
distribution included these generated files when I packaged it.)

The recent gupnp releases no longer ship vapi files, so they must be
generated. The flow for generating the vapi files involves generating a
.gir with the gobject introspection tools, and then generating the .vapi
from the .gir with vapigen. The gobject introspection tools compile
*and run* a test program linked against the library being "introspected".

Because of this, gobject introspection does not in general support cross
compiling (see https://bugzilla.gnome.org/show_bug.cgi?id=592311).
However, the .gir and the .vapi are portable across architectures.
I have considered either doing host builds of gupnp (and all its
dependencies) so that the .gir and .vapi can be generated on the host
and then copied from the host build area to the target build area, or
shipping generated .vapi with the openwrt packages. In the latter case,
I would still need to maintain the host builds for gupnp+deps to
generate the vapi when updating the packages, but the host builds
wouldn't be needed to build the packages, and wouldn't need to be added
to the packages repo.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] ramips: add D-Link DIR-320/NRU support

2013-02-22 Thread Vladimir Stolyarov
This patch adds D-Link DIR-320/NRU (H/W rev B1) router support to 
OpenWRT. This router is RT5350 SoC based. It has 8MB flash and 32MB ram. 
I used this patch for wi-fi driver http://patchwork.openwrt.org/patch/3122/

Signal strength increased.

Signed-off-by: Vladimir Stolyarov 
Signed-off-by: Serge Vasilugin 
---
You can get working firmware images here 
https://code.google.com/p/openwrt-on-dir-320-b1/downloads/list


Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
===
--- 
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 
(revision 35708)
+++ 
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h 
(working copy)

@@ -72,6 +72,7 @@
 /* RT3352 based machines */
 RAMIPS_MACH_ALL5002,/* Allnet ALL5002 */
 RAMIPS_MACH_DIR_615_H1,
+RAMIPS_MACH_DIR_620_D1,

 /* RT3662 based machines */
 RAMIPS_MACH_DIR_645,/* D-Link DIR-645 */
@@ -84,4 +85,5 @@

 /* RT5350 based machines */
 RAMIPS_MACH_AIR3GII,/* AirLive Air3GII */
+RAMIPS_MACH_DIR_320_B1/* D-Link DIR-320/NRU */
 };
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c 
(revision 35708)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c (working 
copy)

@@ -116,12 +116,23 @@

 static void rt305x_fe_reset(void)
 {
-u32 reset_bits = RT305X_RESET_FE;
+u32 val;

-if (soc_is_rt5350())
-reset_bits |= RT305X_RESET_ESW;
-rt305x_sysc_wr(reset_bits, SYSC_REG_RESET_CTRL);
-rt305x_sysc_wr(0, SYSC_REG_RESET_CTRL);
+val = rt305x_sysc_rr(SYSC_REG_RESET_CTRL);
+
+if (soc_is_rt5350()) {
+val = val | RT305X_RESET_FE | RT305X_RESET_ESW;
+} else {
+val = val | RT305X_RESET_FE;
+}
+rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
+
+if (soc_is_rt5350()) {
+val = val & ~(RT305X_RESET_FE | RT305X_RESET_ESW);
+} else {
+val = val & ~(RT305X_RESET_FE);
+}
+rt305x_sysc_wr(SYSC_REG_RESET_CTRL, val);
 }

 static struct resource rt305x_eth_resources[] = {
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (revision 
35708)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (working 
copy)

@@ -22,6 +22,8 @@
 obj-$(CONFIG_RT305X_MACH_BROADWAY)+= mach-broadway.o
 obj-$(CONFIG_RT305X_MACH_CARAMBOLA)+= mach-carambola.o
 obj-$(CONFIG_RT305X_MACH_DIR_300_REVB)+= mach-dir-300-revb.o
+obj-$(CONFIG_RT305X_MACH_DIR_320_B1)+= mach-dir-320-b1.o
+obj-$(CONFIG_RT305X_MACH_DIR_620_D1)+= mach-dir-620-d1.o
 obj-$(CONFIG_RT305X_MACH_DIR_615_H1)+= mach-dir-615-h1.o
 obj-$(CONFIG_RT305X_MACH_DAP_1350)+= mach-dap-1350.o
 obj-$(CONFIG_RT305X_MACH_ESR_9753)+= mach-esr-9753.o
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (revision 
35708)

+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (working copy)
@@ -91,6 +91,16 @@
 select RALINK_DEV_GPIO_BUTTONS
 select RALINK_DEV_GPIO_LEDS

+config RT305X_MACH_DIR_320_B1
+bool "D-Link DIR-320 revB1 board support"
+select RALINK_DEV_GPIO_BUTTONS
+select RALINK_DEV_GPIO_LEDS
+
+config RT305X_MACH_DIR_620_D1
+bool "D-Link DIR-620 revD1 board support"
+select RALINK_DEV_GPIO_BUTTONS
+select RALINK_DEV_GPIO_LEDS
+
 config RT305X_MACH_DIR_615_H1
 bool "D-Link DIR-615 H1 board support"
 select RALINK_DEV_GPIO_BUTTONS
Index: target/linux/ramips/image/Makefile
===
--- target/linux/ramips/image/Makefile(revision 35708)
+++ target/linux/ramips/image/Makefile(working copy)
@@ -249,6 +249,30 @@
 $(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call 
mkcmdline,$(3),ttyS1,57600) $(call 
mkmtd/phys,$(mtdlayout_dir620a1)),$(kernel_size_dir620a1),$(rootfs_size_dir620a1))

 endef

+#
+mtdlayout_dir320b1=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x5(firmware)
+kernel_size_dir320b1=917504
+rootfs_size_dir320b1=7143424
+define BuildFirmware/DIR320B1
+$(call BuildFirmware/Generic,$(1),$(2),$(call 
mkcmdline,$(3),ttyS1,57600) $(call 
mkmtd/spi,$(mtdlayout_dir320b1)),$(kernel_size_dir320b1),$(rootfs_size_dir320b1),DIR320B1)

+endef
+
+define BuildFirmware/DIR320B1/initramfs
+$(call BuildFirmware/Generic/initramfs,$(1),$(2),$(call 
mkcmdline,$(3),ttyS1,57600) $(call 
mkmtd/spi,$(mtdlayout_dir320b1)),$(kernel_size_dir320b1),$(rootfs_size_dir320b1))

+ende

[OpenWrt-Devel] [PATCH][packages] sipp - version bump

2013-02-22 Thread Jiri Slachta
This patch bumps Sipp - the SIP generator - from version 3.1 to version 3.3. It 
tested with basic scenarios.
Signed-off-by: Jiri Slachta 
Index: feeds/packages/net/sipp/Makefile
===
--- feeds/packages/net/sipp/Makefile(revision 35706)
+++ feeds/packages/net/sipp/Makefile(working copy)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2013 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sipp
-PKG_VERSION:=3.1
-PKG_RELEASE:=2
+PKG_VERSION:=3.3
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).src.tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/sipp
-PKG_MD5SUM:=452a6f88f2d314dbb2f44e318a60982b
+PKG_MD5SUM:=8c1d513423f9dabee799e738b737e311
 
 include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][packages] pulseaudio: fix missing staging library directory /usr/lib/pulseaudio/

2013-02-22 Thread lynxis lazus
This library directory is required to link
against pulseaudio. e.g. mpd with pulseaudio support.

Signed-off-by: Alexander Couzens 
---
 sound/pulseaudio/Makefile | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sound/pulseaudio/Makefile b/sound/pulseaudio/Makefile
index 2f52415..59532df 100644
--- a/sound/pulseaudio/Makefile
+++ b/sound/pulseaudio/Makefile
@@ -139,7 +139,8 @@ define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/lib/pkgconfig \
$(1)/usr/include/pulse \
-   $(1)/usr/lib
+   $(1)/usr/lib \
+   $(1)/usr/lib/pulseaudio
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/pulse/* \
$(1)/usr/include/pulse
@@ -149,6 +150,9 @@ define Build/InstallDev
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
+   $(1)/usr/lib/pulseaudio/
 endef
 
 define Package/pulseaudio-daemon/install

-- 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel