Re: [OpenWrt-Devel] [PATCH] update iptables to 1.4.12.1

2011-10-22 Thread Stefan Tomanek

Any news about updating iptables to a recent version?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] chan_dongle and asterisk

2011-10-22 Thread Cristian Astorino
Hello, I'm trying to use the chan_dongle module (see
http://code.google.com/p/asterisk-chan-dongle/) with asterisk 1.8 on a
routerstation pro with openwrt trunk. I compiled chan_dongle with the
following makefile:
http://code.google.com/p/asterisk-chan-dongle/source/browse/trunk/contrib/openwrt/asterisk18-chan-dongle/Makefile.
It compile OK, but when I try to load the module from the asterisk
console, I got:
PBX*CLI module load chan_dongle
Unable to load module chan_dongle
Command 'module load chan_dongle' failed.
[Oct 22 09:06:55] WARNING[1829]: loader.c:768 inspect_module: Module
'chan_dongle.so' was not compiled with the same compile-time options as this
version of Asterisk.
[Oct 22 09:06:55] WARNING[1829]: loader.c:769 inspect_module: Module
'chan_dongle.so' will not be initialized as it may cause instability.
[Oct 22 09:06:55] WARNING[1829]: loader.c:852 load_resource: Module
'chan_dongle' could not be loaded.

Can you help me?

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


Re: [OpenWrt-Devel] wget 1.13.4 update patch

2011-10-22 Thread Nico
Applied in [28519]

Thanks !
--
-{Nico}


On Wed, Oct 19, 2011 at 11:47 AM, Peter Wagner tripo...@gmx.at wrote:
 Hi,

 this patch updates wget to 1.13.4 as

 1.12.2 is affected by this CVE

 http://nvd.nist.gov/nvd.cfm?cvename=CVE-2010-2252
 Wget: User-assisted file creation or overwrite

 /Peter Wagner

 ___
 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] [PATCH] openl2tp - finally enable config file option

2011-10-22 Thread Liu Yu Fei, Eric
On Fri, Oct 21, 2011 at 1:03 AM, Philip Prindeville 
philipp_s...@redfish-solutions.com wrote:

 You need to turn off flowed=true when posting patches.


 On 10/17/11 10:34 AM, Bogdan Roman wrote:
  Until now the openl2tpg package only allowed configuration through RPC
  by using the l2tpconfig command, making many some tasks difficult.
  Discussion exists at https://dev.openwrt.org/ticket/10164 . Enabling the
  config file option requires working around the flex library ( (libfl)
  and a few compile fixes. The following 2 patches enable the config file
  option in addition to the RPC option. Tested against trunk r28428. Note
  that the openwrt openl2tp package is still not fully finished,

 Hi devs.

I am the reporter of ticket #10164. Could you help me turn openl2tp into two
packages, openl2tp and openl2tp-mini? And in openl2tp-mini, it only accept
configuration file and get rid of dependencies such as libreadline and
libncurses? Many thanks.


Liu Yu Fei, Eric

Computer Science,
The Chinese University of Hong Kong
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/1] linux-atm: update solos-pci with latest upstream patches

2011-10-22 Thread Philip Prindeville
Fixes for the solos-pci driver.

- Corrects calculation of headroom for padding.
- Removes pointless debug messages.
- Expose Bis A and Bis M annex capabilities.
- Expose hardware revision.

Accepted upstream into netdev.

Signed-off-by: Nathan Williams nat...@traverse.com.au
Acked-By: David Woodhouse david.woodho...@intel.com
Cc: David Miller da...@davemloft.net
---
Index: target/linux/generic/patches-3.0/050-linux-atm_nathan.patch
===
--- target/linux/generic/patches-3.0/050-linux-atm_nathan.patch (revision 0)
+++ target/linux/generic/patches-3.0/050-linux-atm_nathan.patch (revision 0)
@@ -0,0 +1,348 @@
+From: Nathan Williams nat...@traverse.com.au
+To: net...@vger.kernel.org
+Date: Wed, 05 Oct 2011 15:43:30 +1100
+Cc: linux-atm-gene...@lists.sourceforge.net,
+David Woodhouse dw...@infradead.org, linux-ker...@vger.kernel.org
+Subject: [Linux-ATM-General] [PATCH 1/4] atm: solos-pci: Add AnnexA/M
+   capability attributes
+
+BisACapability and BisMCapability allow users to
+force either Annex A or Annex M.
+
+Signed-off-by: Nathan Williams nat...@traverse.com.au
+---
+ drivers/atm/solos-attrlist.c |2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/atm/solos-attrlist.c b/drivers/atm/solos-attrlist.c
+index 9a676ee..8092533 100644
+--- a/drivers/atm/solos-attrlist.c
 b/drivers/atm/solos-attrlist.c
+@@ -71,6 +71,8 @@ SOLOS_ATTR_RW(BisAForceSNRMarginDn)
+ SOLOS_ATTR_RW(BisMForceSNRMarginDn)
+ SOLOS_ATTR_RW(BisAMaxMargin)
+ SOLOS_ATTR_RW(BisMMaxMargin)
++SOLOS_ATTR_RW(BisACapability)
++SOLOS_ATTR_RW(BisMCapability)
+ SOLOS_ATTR_RW(AnnexAForceSNRMarginDn)
+ SOLOS_ATTR_RW(AnnexAMaxMargin)
+ SOLOS_ATTR_RW(AnnexMMaxMargin)
+
+From: Nathan Williams nat...@traverse.com.au
+To: net...@vger.kernel.org
+Date: Wed, 05 Oct 2011 15:44:17 +1100
+Cc: linux-atm-gene...@lists.sourceforge.net,
+David Woodhouse dw...@infradead.org, linux-ker...@vger.kernel.org
+Subject: [Linux-ATM-General] [PATCH 2/4] atm: solos-pci: Remove annoying
+   line of debugging
+
+len: %d isn't particularly useful for anyone and confuses users.
+
+Signed-off-by: Nathan Williams nat...@traverse.com.au
+---
+ drivers/atm/solos-pci.c |1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
+index 5d1d076..bd01aa3 100644
+--- a/drivers/atm/solos-pci.c
 b/drivers/atm/solos-pci.c
+@@ -452,7 +452,6 @@ static ssize_t console_show(struct device *dev, struct 
device_attribute *attr,
+ 
+   len = skb-len;
+   memcpy(buf, skb-data, len);
+-  dev_dbg(card-dev-dev, len: %d\n, len);
+ 
+   kfree_skb(skb);
+   return len;
+From: Nathan Williams nat...@traverse.com.au
+To: net...@vger.kernel.org
+Date: Wed, 05 Oct 2011 15:45:15 +1100
+Cc: linux-atm-gene...@lists.sourceforge.net,
+David Woodhouse dw...@infradead.org, linux-ker...@vger.kernel.org
+Subject: [Linux-ATM-General] [PATCH 3/4] atm: solos-pci: Add support for
+   Geos GPIO pins
+
+Geos ADSL2+ routers have on-board Solos chipsets with some
+extra I/O pins and a push button connected to the FPGA.
+
+PCB version and variant numbers are also made available
+through the HardwareVersion and HardwareVariant attributes.
+
+Signed-off-by: Nathan Williams nat...@traverse.com.au
+---
+ drivers/atm/solos-pci.c |   98 +++
+ 1 files changed, 98 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
+index bd01aa3..33c0c2b 100644
+--- a/drivers/atm/solos-pci.c
 b/drivers/atm/solos-pci.c
+@@ -56,6 +56,7 @@
+ #define FLASH_BUSY0x60
+ #define FPGA_MODE 0x5C
+ #define FLASH_MODE0x58
++#define GPIO_STATUS   0x54
+ #define TX_DMA_ADDR(port) (0x40 + (4 * (port)))
+ #define RX_DMA_ADDR(port) (0x30 + (4 * (port)))
+ 
+@@ -498,6 +499,87 @@ static ssize_t console_store(struct device *dev, struct 
device_attribute *attr,
+   return err?:count;
+ }
+ 
++struct geos_gpio {
++  char *name;
++  int offset;
++};
++
++static struct geos_gpio geos_gpio_pins[] = {
++  {GPIO1, 9},
++  {GPIO2, 10},
++  {GPIO3, 11},
++  {GPIO4, 12},
++  {GPIO5, 13},
++  {PushButton, 14},
++  {NULL, 0}
++};
++
++static ssize_t geos_gpio_store(struct device *dev, struct device_attribute 
*attr,
++ const char *buf, size_t count)
++{
++  struct atm_dev *atmdev = container_of(dev, struct atm_dev, class_dev);
++  struct solos_card *card = atmdev-dev_data;
++  uint32_t data32;
++
++  struct geos_gpio *p = geos_gpio_pins;
++  while(p-name){
++  if(!strcmp(attr-attr.name, p-name)){
++  break;
++  }
++  p++;
++  }
++
++  data32 = ioread32(card-config_regs + GPIO_STATUS);
++  if(buf[0] == '1'){
++  data32 |= 1  p-offset;
++  iowrite32(data32, card-config_regs + 

Re: [OpenWrt-Devel] alix2 target in trunk

2011-10-22 Thread Philip Prindeville
On 10/21/11 3:01 PM, Adam Gensler wrote:
 Hi all,
 
 I have a question on the updated alix2 target in trunk. It's great to see the 
 alix platform getting some updates in trunk. However, I noticed the default 
 inclusion of the ath5k and ath9k drivers. Alix boards don't come with 
 wireless built in. While it is true that you can add wireless to it, some 
 people do not, myself included. Most of the rest of the included drivers seem 
 to be foundational alix2 platform pieces. Technically the ath5k and ath9k 
 drivers aren't part of the base platform.
 
 The packages (kernel modules I guess), in question are:
 
 kmod-cfg80211
 kmod-mac80211
 kmod-ath
 kmod-ath5k
 kmod-ath9k
 hostapd
 
 I think it would be better to not include these by default. Presumably if 
 someone is selecting the alix2 target form menuconfig they are already 
 building them own image and can easily select them manually? If someone 
 downloads a prebuilt image from openwrt.com they could always manually 
 include the ath5k or ath9k drivers as necessary afterwards.
 
 Thoughts?
 
 Adam

We're talking about a platform with 256MB or 512MB of DRAM and a minimum of 1GB 
of CF.

If anything, I think I'd argue for including all of the Wifi drivers that come 
with miniPCI and miniPCI-e (USB 2.0) versions, since this is the OpenWRT (as in 
Wireless Router) distro...

Worst case, someone can uninstall the drivers if they don't want them.

-Philip

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


Re: [OpenWrt-Devel] [PATCH] openl2tp - finally enable config file option

2011-10-22 Thread Bogdan Roman

On 20-Oct-11 6:03 pm, Philip Prindeville wrote:

You need to turn off flowed=true when posting patches.


I'm not sure what you mean. It's the first time posting patches on 
openwrt ...

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


Re: [OpenWrt-Devel] [PATCH] update iptables to 1.4.12.1

2011-10-22 Thread Nico
Humm, there is now a single xtables-multi providing
ip{,6}tables{,-save,-restore} and depending on libip4tc, lib6tc 
libxtables. Not sure how we should deal with that, possible solutions
would be :

1) merge iptables, ip6tables, libip4tc, lib6tc  libxtables in a single package

2) add another xtables package, providing xtables-multi, make it
depend on lib4tc, libip6tc  libxtables, and add dependency on it to
iptables  ip6tables

What do you think ?

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