[OpenWrt-Devel] netifd + wpa_supplicant: Multiple wifi networks not supported? (Multiple wireless 'client')

2015-06-09 Thread Felipe Lavratti
Hello,

I'd like to ask if I am right to conclude that the netifd does not
support multiple network {} entries in the wpa_supplicant conf file.

Using multiple network entries in the wpa_supplicant conf file would
be useful to configure the OpenWrt to auto associate to any visible
'network' on the wifi.

It sounds strange that multiple non-simultaneous 'client' is not
supported in OpenWrt. Is this conclusion right?

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


Re: [OpenWrt-Devel] [PATCH,v2] dnsmasq: bump to dnsmasq2.73rc9

2015-06-09 Thread Steven Barth
Indeed, you can have a look at
http://patchwork.ozlabs.org/project/openwrt/list/ to see and download
the patches extracted from the mails (also the old ones).
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: fix 100/10mbps ethernet link issues on mynet range extender

2015-06-09 Thread Christian Lamparter
On Tuesday, June 09, 2015 09:05:46 AM Florian Fainelli wrote:
> On Jun 9, 2015 7:36 AM, "Christian Lamparter" 
> wrote:
> >
> > On Wednesday, June 03, 2015 05:20:22 PM Christian Lamparter wrote:
> > > The mynet range extender hardware is suffering from ethernet
> > > link loss when booting with a recent openwrt image. This only
> > > happens on 100mbps links, with 1Gbps speed the link was fine.
> > >
> > > The cause of the problem is that the AR8035 PHY (aka F1E)
> > > requires turning on and off the special TX delay setting
> > > depending on the speed of the link.
> > >
> > > The 10mbps mode only needed the proper pll value, which was
> > > extracted from the vendor code.
> > >
> > > Reported-by: Pascal Paradis
> > > Signed-off-by: Christian Lamparter 
> >
> > No comments so far (but also, no merge). Ping?
> 
> Actually, I have one question, most PHY s should disable these kinds of
> delays when linking at 10/100Mbits/sec. Is not that working here because
> the registers used have a special behavior (force or override), or is it
> broken at the hardware level?

Oh boy, how can I check (without introducing any "doubt") if this is broken
at the hardware level (I think it is) without specialized hardware? From my
POV I would need something like an ethernet analyzer with 20k price tag.
 
If it helps: I can run experiments and maybe tell you something about the
device/situation and you can tell me if this code is acceptable (and can
be merged) or if this needs to be done differently.

Something to keep in mind about the device:
Both, the original vendor driver (Atheros' SDK) and the uboot's ethernet 
driver, always enable/set the rx delay for every "link up". Both drivers
also modify the tx delay setting for 1000mbps (off) and 100/10mbps(on).
[I can point you to the relevant code in WD's source code if you want]. 

And now for the funny "bit" about why this problem wasn't discovered
sooner:

The issue was first spotted in commit: r45439 [0].

Before this change: the PHY wasn't recognized and the generic phy driver
was used. The generic phy driver obviously doesn't mess with the tx/rx
delay registers. 

=> uboot initialized the ethernet and linux simply kept the setting and
   it would continue to work. Unless of course the user decided to
   replugged the device while linux was running and a different speed 
   setting was negotiated.

After this change: The PHY is recognized as AT8035. The code in at803x.c
(vanilla source: [1] and patch [2]) now overwrites the uboot setting and 
forces the tx and rx delay settings to what is supplied by a 
at803x_platform_data struct. 

=> The problem with the mynet device is that the tx delay needs to be
enabled for 100mbps/10mbps speed and disabled for 1000mbps. Not doing
so results in an unusable ethernet link (verified by Pascal and me).
This is why I think this is a hardware problem. (Furthermore, Sven 
Eckelmann (CC'd, he wrote the support for the OM5P-AN - which also uses
the AT8035) doesn't mention any workaround in his commits.

What do you think?

Regards,
  Christian

[0] 
[1] 
[2] 

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


Re: [OpenWrt-Devel] [PATCH] ar71xx: fix 100/10mbps ethernet link issues on mynet range extender

2015-06-09 Thread Florian Fainelli
On Jun 9, 2015 7:36 AM, "Christian Lamparter" 
wrote:
>
> On Wednesday, June 03, 2015 05:20:22 PM Christian Lamparter wrote:
> > The mynet range extender hardware is suffering from ethernet
> > link loss when booting with a recent openwrt image. This only
> > happens on 100mbps links, with 1Gbps speed the link was fine.
> >
> > The cause of the problem is that the AR8035 PHY (aka F1E)
> > requires turning on and off the special TX delay setting
> > depending on the speed of the link.
> >
> > The 10mbps mode only needed the proper pll value, which was
> > extracted from the vendor code.
> >
> > Reported-by: Pascal Paradis
> > Signed-off-by: Christian Lamparter 
>
> No comments so far (but also, no merge). Ping?

Actually, I have one question, most PHY s should disable these kinds of
delays when linking at 10/100Mbits/sec. Is not that working here because
the registers used have a special behavior (force or override), or is it
broken at the hardware level?

>
> Regards,
>   Christian
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: fix 100/10mbps ethernet link issues on mynet range extender

2015-06-09 Thread Christian Lamparter
On Wednesday, June 03, 2015 05:20:22 PM Christian Lamparter wrote:
> The mynet range extender hardware is suffering from ethernet
> link loss when booting with a recent openwrt image. This only
> happens on 100mbps links, with 1Gbps speed the link was fine.
> 
> The cause of the problem is that the AR8035 PHY (aka F1E)
> requires turning on and off the special TX delay setting
> depending on the speed of the link.
> 
> The 10mbps mode only needed the proper pll value, which was
> extracted from the vendor code.
> 
> Reported-by: Pascal Paradis
> Signed-off-by: Christian Lamparter 

No comments so far (but also, no merge). Ping?

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


Re: [OpenWrt-Devel] [PATCHv2] scripts/feeds: observe -p flag for preferential feeds

2015-06-09 Thread Karl Palsson

Karl Palsson  wrote:
> 
> John Crispin  wrote:
> > On 27/05/2015 18:03, Karl Palsson wrote:
> > > + my $this_feed_target = lookup_target($feed, $name);
> > > + $this_feed_target and do {
> > 
> > how about just calling it $target ?
> 
> Because even though the method is "lookup_target" it actually returns a
> feed for the target $name.
> 
> I could change the method to lookup_feed_for_target too, if that would
> help.

Hi,

Is anything else needed here?  Would be nice to get this fixed before
it's branched.

Sincerely,
Karl Palsson___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] samba36: remove host build paths

2015-06-09 Thread Dirk Neukirchen
- fix iconv detection because it adds host paths
- disable python detection (host python-config is found)

iconv issue is reported by buildbot config.log + replicated locally
see config.log in logs.tar.gz
python issue observed locally on Arch Linux

Signed-off-by: Dirk Neukirchen 
---
 package/network/services/samba36/Makefile | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/package/network/services/samba36/Makefile 
b/package/network/services/samba36/Makefile
index b39f484..d8b930c 100644
--- a/package/network/services/samba36/Makefile
+++ b/package/network/services/samba36/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=samba
 PKG_VERSION:=3.6.25
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
http://ftp.samba.org/pub/samba/stable
@@ -35,7 +35,7 @@ define Package/samba36-server
   CATEGORY:=Network
   TITLE:=Samba 3.6 SMB/CIFS server
   URL:=http://www.samba.org/
-  DEPENDS:=+USE_GLIBC:librt
+  DEPENDS:=+USE_GLIBC:librt $(ICONV_DEPENDS)
 endef
 
 define Package/samba36-client
@@ -83,7 +83,9 @@ CONFIGURE_VARS += \
samba_cv_have_setreuid=yes \
samba_cv_have_setresuid=yes \
ac_cv_header_zlib_h=no \
-   samba_cv_zlib_1_2_3=no
+   samba_cv_zlib_1_2_3=no \
+   ac_cv_path_PYTHON="" \
+   ac_cv_path_PYTHON_CONFIG=""
 
 CONFIGURE_ARGS += \
--exec-prefix=/usr \
@@ -95,6 +97,7 @@ CONFIGURE_ARGS += \
--disable-static \
--disable-swat \
--disable-shared-libs \
+   --with-libiconv="$(ICONV_PREFIX)" \
--with-codepagedir=/etc/samba \
--with-configdir=/etc/samba \
--with-included-iniparser \
-- 
2.4.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] grub2: disable stack-protector

2015-06-09 Thread Dirk Neukirchen
- enabling "-fstack-protector" results in build errors
- Upstream explicitly tests & disables it

reference: upstream commit baa2a121e004a95a12e2bb7f2419de6625a30c2d

Signed-off-by: Dirk Neukirchen 
---
 package/boot/grub2/Makefile | 4 
 1 file changed, 4 insertions(+)

diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index 64a3058..ca59a87 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -43,6 +43,10 @@ define Package/grub2-editenv/description
Edit grub2 environment files.
 endef
 
+ifeq ($(strip $(PKG_CC_STACKPROTECTOR_REGULAR)),1)
+  TARGET_CFLAGS := $(filter-out -fstack-protector,$(TARGET_CFLAGS))
+endif
+
 CONFIGURE_ARGS += \
--target=$(REAL_GNU_TARGET_NAME) \
--disable-werror \
-- 
2.4.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: add Realtek USB to Ethernet modules

2015-06-09 Thread Dirk Neukirchen
https://forum.openwrt.org/viewtopic.php?pid=279394

Signed-off-by: Dirk Neukirchen 
---
 package/kernel/linux/modules/usb.mk | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index 68f22cc..dcc6287 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1259,6 +1259,36 @@ endef
 $(eval $(call KernelPackage,usb-net-qmi-wwan))
 
 
+define KernelPackage/usb-net-rtl8150
+  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
+  KCONFIG:=CONFIG_USB_RTL8150
+  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
+  AUTOLOAD:=$(call AutoProbe,rtl8150)
+  $(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-net-rtl8150/description
+ Kernel module for USB-to-Ethernet Realtek 8150 convertors
+endef
+
+$(eval $(call KernelPackage,usb-net-rtl8150))
+
+
+define KernelPackage/usb-net-rtl8152
+  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
+  KCONFIG:=CONFIG_USB_RTL8152
+  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
+  AUTOLOAD:=$(call AutoProbe,r8152)
+  $(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-net-rtl8152/description
+ Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
+endef
+
+$(eval $(call KernelPackage,usb-net-rtl8152))
+
+
 define KernelPackage/usb-net-rndis
   TITLE:=Support for RNDIS connections
   KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
-- 
2.4.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] b53 kernel memory corruption fix

2015-06-09 Thread blmink

Hi,

this patch fixes kernel memory corruption in b53 driver during device 
global reset, which causes kernel panic especially on 64bit platforms.


Signed-off-by: Fedor Konstantinov 
---
Index: target/linux/generic/files/drivers/net/phy/b53/b53_common.c
===
--- target/linux/generic/files/drivers/net/phy/b53/b53_common.c 
(revision 45932)
+++ target/linux/generic/files/drivers/net/phy/b53/b53_common.c	(working 
copy)

@@ -803,8 +803,8 @@
priv->enable_jumbo = 0;
priv->allow_vid_4095 = 0;

-   memset(priv->vlans, 0, sizeof(priv->vlans) * dev->vlans);
-   memset(priv->ports, 0, sizeof(priv->ports) * dev->ports);
+   memset(priv->vlans, 0, sizeof(struct b53_vlan) * dev->vlans);
+   memset(priv->ports, 0, sizeof(struct b53_port) * dev->ports);

return b53_switch_reset(priv);
 }
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to use wm8960-audio driver

2015-06-09 Thread John Crispin
Hi,

i tried to make it work before but failed. the dma and pcm drivers seem
to be functional. i am able to talk to the codec via i2c, however i
failed to get it setup properly and make it play music. while doing some
debugging i attached a logic analyzer to the pcm bus and i can actually
see traffic on the bus but there is not output on the speakers.

ideas and help are welcome to make it work.

John

On 09/06/2015 08:53, Tochiro SrcHack wrote:
> Hi,
> 
> How to use wm8960-audio driver
> 
> there is a need to create a dts.
> I can't found "use wm8960-audio dts file" in OpenWRT repository.
> what is codec-dai parameter. "wlf,wm8960" or other ?
> 
> Will people do not use the wm8960-audio on MT7620?
> 
> 
> --
> sound {
> compatible = "ralink,wm8960-audio";
> model = "wm8960-audio";
> cpu-dai = <&i2s>; 
> codec-dai = <&codec>;
> };
> --
> 
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel