Re: [OpenWrt-Devel] [PATCH v2 1/1] lm-sensors: split out sensors-detect from rest of package

2011-05-07 Thread Luka Perkov
On Fri, May 06, 2011 at 04:00:19PM -0600, Philip Prindeville wrote:
 On 5/6/11 12:06 PM, Luka Perkov wrote:
 On Thu, May 05, 2011 at 05:28:43PM -0600, Philip Prindeville wrote:
 Since sensors-detect isn't always needed where sensors is used, and
 has unexpressed dependency on perl, it might make more sense to have
 this be separated out...

 Redux with better perl dependencies.
 
 Applied in 26838 with minor changes. Tips for next time:
 
 * you forgot to bump PKG_RELEASE because PKG_VERSION stayed the same
 * reply to your own mails when resubmitting the patch
 * for small patches like this one you did not have to make
 'announcement'
 * send patch inline
 
 More info here:
 
 https://dev.openwrt.org/wiki/SubmittingPatches
 
 Thank you,
 Luka
 
 Unfortunately, I'm using Thunderbird which is known to mangle leading
 whitespace on patches... so attachments are required.
 
 Which announcement were you referring to?

I was referring to this mail:

https://lists.openwrt.org/pipermail/openwrt-devel/2011-May/010760.html

But I but did not read it carefully... It's not 'announcement' :)

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


Re: [OpenWrt-Devel] Problem: Cannot satisfy the dependencies for ... during installation into image

2011-05-07 Thread Daniel Dickinson
On Fri, 06 May 2011 10:09:49 +0200
Ithamar R. Adema ithamar.ad...@team-embedded.nl wrote:

 On Thu, 2011-05-05 at 16:49 -0600, Philip Prindeville wrote:
  I agree that user files should take precedence over canned release
  files (actually, I thought this was the case?).
 
 This used to be the cause, but broken a while ago.
 
 See this[1] disucssion for previous discussion on basically the same
 problem.
 
 Ithamar.
 
 [1]:
 https://lists.openwrt.org/pipermail/openwrt-devel/2011-March/010191.html
 

Which reminds me, which target is the offending one with a per-target
fstab (which I believe is wrong, unless the target can only ever
possibly have a single known USB device (i.e. internal USB device only,
rather than USB host port))?

Also, I want to take a look at the fstab and see how it differs from
the default to see if it truly a platform-specific config or just that
the platform dev happens to prefer a different config.

If it's a true target-specific one then the thing to do is modify the
block-mount makefile to use a different config depending on the
target.  If not then I need to discuss the issue with the platform
maintainer.


-- 
erno hm. I've lost a machine.. literally _lost_. it responds to ping, 
it works completely, I just can't figure out where in my apartment it
is. GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org



signature.asc
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] github's clone

2011-05-07 Thread Cyryl Płotnicki-Chudyk
Hello there
I assume the main repo is the svn one ? If so then is the
https://github.com/mirrors/openwrt somewhat oficially synced with the
svn one ?

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


Re: [OpenWrt-Devel] github's clone

2011-05-07 Thread Maxim Osipov
AFAIK it is synced with nbd git - by github team. It would be nice to
have there packages also.
Maxim

2011/5/7 Cyryl Płotnicki-Chudyk cy...@cyplo.net:
 Hello there
 I assume the main repo is the svn one ? If so then is the
 https://github.com/mirrors/openwrt somewhat oficially synced with the
 svn one ?

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

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


Re: [OpenWrt-Devel] github's clone

2011-05-07 Thread Cyryl Płotnicki-Chudyk
On Sat, May 7, 2011 at 4:27 PM, Maxim Osipov maxim.osi...@gmail.com wrote:
 AFAIK it is synced with nbd git - by github team. It would be nice to
 have there packages also.
 Maxim


If I fork there and create some changes - is there a possibility of
just issuing a pull request, or the only possibility is posting a
patch is via the email list?

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


Re: [OpenWrt-Devel] Problem: Cannot satisfy the dependencies for ... during installation into image

2011-05-07 Thread Ithamar R. Adema
On Sat, 2011-05-07 at 09:54 -0400, Daniel Dickinson wrote:
 Which reminds me, which target is the offending one with a per-target
 fstab (which I believe is wrong, unless the target can only ever
 possibly have a single known USB device (i.e. internal USB device
 only, rather than USB host port))?

In my case it is a target that is not (yet) in the OpenWRT repository,
but looking at current trunk, I see 3 fstab's in target/linux:

target/linux/xburst/base-files/etc/config/fstab
target/linux/omap24xx/base-files/etc/config/fstab
target/linux/s3c24xx/openmoko-gta02/base-files/etc/config/fstab

 Also, I want to take a look at the fstab and see how it differs from
 the default to see if it truly a platform-specific config or just that
 the platform dev happens to prefer a different config.

The list above there are at least 2 different fstabs, as openmoko and
xburst onces seem to be the same.

 If it's a true target-specific one then the thing to do is modify the
 block-mount makefile to use a different config depending on the
 target.  If not then I need to discuss the issue with the platform
 maintainer.

I have a couple of use cases on different targets where fstab is used
for mount points which aren't internal. They are not only target
specific, but *product* specific.

In the end, I think this is not just a block-mount problem but a generic
problem with device profiles having custom configuration. I know in
most cases this gets solved by using uci-defaults to reconfigure, but
in my case it is a target running from ramdisk, so every boot is a
first boot ;-)

The alternative of the files/ directory in the WRT buildroot is IMHO a
very bad solution for this, as it will be used regardless of which
target or profile you build for, and at least I tend to have one build
tree for multiple targets/profiles.

I would like a hook in the profiles to do post-package-install
configuration on the rootfs, if it isn't there already. I have to admit
I haven't found time yet to look more closely at this.

Regards,

Ithamar.


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


Re: [OpenWrt-Devel] [PATCH v2 1/1] tcp_wrappers: upstream patch for supporting n.n.n.n/len notation

2011-05-07 Thread Philip Prindeville
Actually, it needs to return the prefix in network byte order... htonl() and 
ntohl() tend to be identical.

Signed-off-by: Philip Prindeville phil...@redfish-solutions.com
Index: feeds/packages/libs/tcp_wrappers/patches/004-ipv4_prefix.patch
===
--- feeds/packages/libs/tcp_wrappers/patches/004-ipv4_prefix.patch  
(revision 0)
+++ feeds/packages/libs/tcp_wrappers/patches/004-ipv4_prefix.patch  
(revision 0)
@@ -0,0 +1,72 @@
+--- tcp_wrappers_7.6/hosts_access.5.orig   2011-05-05 22:34:39.0 
-0600
 tcp_wrappers_7.6/hosts_access.52011-05-05 22:39:43.0 -0600
+@@ -90,6 +90,9 @@ bitwise AND of the address and the `mask
+ pattern `131.155.72.0/255.255.254.0' matches every address in the
+ range `131.155.72.0' through `131.155.73.255'.
+ .IP \(bu
++An expression of the form `n.n.n.n/m\' is interpreted as a
++`net/prefixlen\' pair, as below, for IPv4 addresses.
++.IP \(bu
+ A string that begins with a `/' character is treated as a file
+ name. A host name or address is matched if it matches any host name
+ or address pattern listed in the named file. The file format is
+--- tcp_wrappers_7.6/tcpd.h.orig   2011-05-05 22:34:39.0 -0600
 tcp_wrappers_7.6/tcpd.h2011-05-05 22:40:14.0 -0600
+@@ -93,6 +93,7 @@ extern void refuse __P((struct request_i
+ extern char *xgets __P((char *, int, FILE *));/* fgets() on steroids 
*/
+ extern char *split_at __P((char *, int)); /* strchr() and split */
+ extern unsigned long dot_quad_addr __P((char *)); /* restricted inet_addr() */
++extern unsigned long prefix_to_netmask __P((char *)); /* 0-32 prefix length */
+ 
+ /* Global variables. */
+ 
+--- tcp_wrappers_7.6/misc.c.orig   1996-02-11 09:01:30.0 -0700
 tcp_wrappers_7.6/misc.c2011-05-05 22:41:49.0 -0600
+@@ -14,6 +14,8 @@ static char sccsic[] = @(#) misc.c 1.2 
+ #include arpa/inet.h
+ #include stdio.h
+ #include string.h
++#include ctype.h
++#include stdlib.h
+ 
+ #include tcpd.h
+ 
+@@ -85,3 +87,22 @@ char   *str;
+ }
+ return (runs == 4 ? inet_addr(str) : INADDR_NONE);
+ }
++
++/* prefix_to_netmask - convert prefix (0-32) to netmask */
++
++unsigned long prefix_to_netmask(str)
++char  *str;
++{
++unsigned long prefix;
++char *endptr;
++
++if (!isdigit(str[0]))
++  return INADDR_NONE;
++
++prefix = strtoul(str, endptr, 10);
++if ((endptr == str) || (*endptr != '\0') || (prefix  32))
++  return INADDR_NONE;
++
++return htonl(~0UL  (32 - prefix));
++}
++
+--- tcp_wrappers_7.6/hosts_access.c.orig   2011-05-05 22:34:39.0 
-0600
 tcp_wrappers_7.6/hosts_access.c2011-05-05 22:45:09.0 -0600
+@@ -345,7 +345,12 @@ char   *string;
+ if ((addr = dot_quad_addr(string)) == INADDR_NONE)
+   return (NO);
+ if ((net = dot_quad_addr(net_tok)) == INADDR_NONE
+-  || (mask = dot_quad_addr(mask_tok)) == INADDR_NONE) {
++  || ((mask = dot_quad_addr(mask_tok)) == INADDR_NONE
++   strcmp(mask_tok, 255.255.255.255)
++   (mask = prefix_to_netmask(mask_tok)) == INADDR_NONE
++   strcmp(mask_tok, 32))) {
++  /* 255.255.255.255 == INADDR_NONE, separate check needed. TJ. */
++  /* 32 == INADDR_NONE, separate check needed. philipp */
+   tcpd_warn(bad net/mask expression: %s/%s, net_tok, mask_tok);
+   return (NO);/* not tcpd_jump() */
+ }
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [RFC] generic: Include IPv6 support into the kernel for 2.6.38+

2011-05-07 Thread Gert Doering
Hi,

On Tue, May 03, 2011 at 03:04:04PM -0600, so...@guug.org wrote:
 Do not enforce IPv6!
 
 Last time I enforce it on end users was a mess, really, I was an IPv6
 enthusiast until I had to step back and turn it off.  DJ Bernstein and
 others were plain right:
 
 http://weblog.kernelcode.com/2010/02/25/ipv6-is-a-failure-stop-wasting-everyones-time/

Unless someone finds a magic lantern that has a few more billion IPv4
addresses in it, IPv6 is all we have.  Looking at the global IPv6 routing 
table, ISPs seem to have finally noticed as well...

(And DJB is part of the problem, not helping with any solution at all)

gert

-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


pgpx5yqY6yr56.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add libFTDI

2011-05-07 Thread Michael Markstaller
Adds libfti - a C-library to interface FTDI USB-serial-chips.
Package may need improvement, source libftdi also provides a C++ binding
which is not getting installed with this package yet.

- it's my first, please let me know things done wrong, I might have
some more patches the next days/weeks ;)


Signed-off-by: Michael Markstaller m...@elabnet.de


Index: feeds/packages/libs/libftdi/Makefile
===
--- feeds/packages/libs/libftdi/Makefile(Revision 0)
+++ feeds/packages/libs/libftdi/Makefile(Revision 0)
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2011 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:=libftdi
+PKG_VERSION:=0.18
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
+PKG_MD5SUM:=916f65fa68d154621fc0cf1f405f2726
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libftdi
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=library to talk to FTDI chips
+  URL:=http://www.intra2net.com/en/developer/libftdi/
+endef
+
+define Package/libftdi/description
+  libFTDI - FTDI USB driver with bitbang mode
+  libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, 
FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang 
mode. 
+  The library is linked with your program in userspace, no kernel driver 
required.
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include/
+   $(CP) $(PKG_INSTALL_DIR)/usr/include/ftdi.h $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
+endef
+
+define Package/libftdi/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libftdi))


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


[OpenWrt-Devel] Gigaset SX763

2011-05-07 Thread Andrej Vlašić
Hello!

I'm trying to set up openwrt on this router, it is based on Lantiq Xway
Danube Soc ( PSB50702 E), and manufactured by Sagem(previously by Siemens).
Wiki page is here http://wiki.openwrt.org/toh/gigaset/sx76x

I already managed to boot openwrt on it, but I cannot get USB working,
because there is no power on the port (DISCONNECTED PORT).
It was possible to get power on old ifxmips target by modifying GPIO
addresses in usb_vbus_enable function, but since that is now changed I dunno
how to make it work on a new one. ( I asked that on forums
https://forum.openwrt.org/viewtopic.php?pid=134415#p134415 )

I also looked up at those arcadyan board configs, and some of them have
_EBU addess and _USB pin defined.
I know that on this router usb power is on gpio 29( gpl source says that ),
and that irq at dwc_otg driver in original fw is 54, but I dunno which
address should go to EBU ( if any).

Also this board doesn't have wlan eeprom, instead it is read by a wlan
driver from a file inside fw. If someone has some answers on how to modify
current ath5k driver, would like to know.

Thanx

Openwrt log: http://pastebin.com/btkGDSXu
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Gigaset SX763

2011-05-07 Thread Luca Olivetti
Al 07/05/11 23:23, En/na Andrej Vlašić ha escrit:

 I also looked up at those arcadyan board configs, and some of them have 
 _EBU addess and _USB pin defined.
 I know that on this router usb power is on gpio 29( gpl source says that )

So you'll have to define it for your board in the call to xway_register_dwc 
(mach-arv45xx.c).
 
 Also this board doesn't have wlan eeprom, instead it is read by a wlan driver 
 from a file inside fw. If someone has some answers on how to modify current 
 ath5k driver, would like to know.

The code in mach-arv45xx.c (arv45xx_register_ath5k) should already take care of 
that.

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