[OpenWrt-Devel] OpenWrt conference survey

2015-02-02 Thread Eric Schultz
tl;dr: We're gauging interest in an OpenWrt conference via a short
survey at http://bit.ly/1BWKWFP
--
All,

My name's Eric Schultz and  I'm the Community Manager at prpl
Foundation. I've created a survey to gauge the community's interest in
prpl Foundation organizing an OpenWrt conference. prpl participates in
the OpenWrt community through our members directly as well as our
working group, prplwrt. Organizing an OpenWrt conference is one more
way in which we can support and strengthen the OpenWrt community.

We'd like to know if there's support in the community for a conference
dedicated to OpenWrt. Topics at a conference could include:

* How to develop your own flavor of OpenWrt
* How to create and develop your own OpenWrt package
* Question and answer with the core OpenWrt team

We're excited at the prospect of organizing a conference for the
community.  If you have any interest in an OpenWrt conference, please
complete the survey at your earliest convenience.

The survey is at http://bit.ly/1BWKWFP

Thanks for your time and your commitment to OpenWrt. If you have any
questions, don't hesitate to contact me.

Eric

-- 
Eric Schultz, Community Manager, prpl Foundation
http://www.prplfoundation.org
eschu...@prplfoundation.org
cell: 920-539-0404
skype: ericschultzwi
@EricPrpl
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken sometime since r43960

2015-02-02 Thread Russell Senior

I just wanted to give a heads up that I built trunk r44245 last night
and discovered two problems: reboot no longer works, and USB fails to
enumerate a usb-serial device that worked previously (specifically a
pl2303).  To successfully reset, a power cycle is required.  These
problems were not evident the last time I built, about 3 weeks ago,
r43960.  The lsmod output is nearly identical between
working/not-working (with some minor fuzz in a few module sizes).

I'm planning to try bisecting this, but if someone knows the problem and
beats me to it, I'd be grateful.  Bisecting is powerful but somewhat
tedious. ;-)


-- 
Russell Senior, President
russ...@personaltelco.net
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ralink: remove VHT capabilities when not using 802.11ac

2015-02-02 Thread wengbj
The mt76 driver might have some problem working with MT7602.
MT7602 should not have VHT capabilities . But the driver not identity properly.

Signed-off-by: wengbj fl.serv...@t-firefly.com
---
 .../0001-mt7602-remove-vht-capabilities.patch  |   46 
 1 file changed, 46 insertions(+)
 create mode 100644 
package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch

diff --git 
a/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch 
b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch
new file mode 100644
index 000..397fbbf
--- /dev/null
+++ b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch
@@ -0,0 +1,46 @@
+--- a/init.c
 b/init.c
+@@ -682,24 +682,27 @@ mt76_init_sband(struct mt76_dev *dev, st
+   ht_cap-ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
+   ht_cap-ampdu_density = IEEE80211_HT_MPDU_DENSITY_4;
+ 
+-  vht_cap = sband-vht_cap;
+-  vht_cap-vht_supported = true;
++if (dev-cap.has_5ghz)
++{
++  vht_cap = sband-vht_cap;
++  vht_cap-vht_supported = true;
+ 
+-  mcs_map = (IEEE80211_VHT_MCS_SUPPORT_0_9  (0 * 2)) |
+-(IEEE80211_VHT_MCS_SUPPORT_0_9  (1 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (2 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (3 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (4 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (5 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (6 * 2)) |
+-(IEEE80211_VHT_MCS_NOT_SUPPORTED  (7 * 2));
++  mcs_map = (IEEE80211_VHT_MCS_SUPPORT_0_9  (0 * 2)) |
++(IEEE80211_VHT_MCS_SUPPORT_0_9  (1 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (2 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (3 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (4 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (5 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (6 * 2)) |
++(IEEE80211_VHT_MCS_NOT_SUPPORTED  (7 * 2));
+ 
+-  vht_cap-vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map);
+-  vht_cap-vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map);
+-  vht_cap-cap = IEEE80211_VHT_CAP_RXLDPC |
+- IEEE80211_VHT_CAP_TXSTBC |
+- IEEE80211_VHT_CAP_RXSTBC_1 |
+- IEEE80211_VHT_CAP_SHORT_GI_80;
++  vht_cap-vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map);
++  vht_cap-vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map);
++  vht_cap-cap = IEEE80211_VHT_CAP_RXLDPC |
++ IEEE80211_VHT_CAP_TXSTBC |
++ IEEE80211_VHT_CAP_RXSTBC_1 |
++ IEEE80211_VHT_CAP_SHORT_GI_80;
++}
+ 
+   dev-chandef.chan = sband-channels[0];
+ 
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] generic/3.18: update to 3.18.5

2015-02-02 Thread Daniel Golle
Signed-off-by: Daniel Golle dan...@makrotopia.org
---
 include/kernel-version.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 4c894c6..3cfcc8c 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -6,14 +6,14 @@ LINUX_VERSION-3.8  = .13
 LINUX_VERSION-3.10 = .58
 LINUX_VERSION-3.13 = .7
 LINUX_VERSION-3.14 = .30
-LINUX_VERSION-3.18 = .3
+LINUX_VERSION-3.18 = .5
 LINUX_VERSION-3.19 = -rc5
 
 LINUX_KERNEL_MD5SUM-3.8.13  = 2af19d06cd47ec459519159cdd10542d
 LINUX_KERNEL_MD5SUM-3.10.58 = 3ff3478b6351143cef22d4b81cf48b01
 LINUX_KERNEL_MD5SUM-3.13.7  = 370adced5e5c1cb1d0d621c2dae2723f
 LINUX_KERNEL_MD5SUM-3.14.30 = 5926982f20bbef0988fca03b92fe43a5
-LINUX_KERNEL_MD5SUM-3.18.3  = 7f37f59b9f01945c9503bc9deed88820
+LINUX_KERNEL_MD5SUM-3.18.5  = b655fcbc4597aa4b0cbabcfc72983259
 
 ifdef KERNEL_PATCHVER
   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
-- 
2.2.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] redis server

2015-02-02 Thread Ryan Jacobs
Hey, I just happened across this post with a google search. I know it's a
year old, but I am also looking to install Redis on an OpenWrt system.

I believe that uClibc is the main culprit to make's failure. I don't know
how far you got, but here's what I've done so far:
https://github.com/antirez/redis/issues/2347.

Any input, hints, tips, or whatever would be very much appreciated. Thanks.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] zabbix-agentd package not creating rc.d symlink

2015-02-02 Thread Etienne Champetier
Hi,

i've just spent 3 hours trying to figure out why when i compile
zabbix-agentd in my image,
the symlink from rc.d/zabbix_agentd to init.d/zabbix_agentd isn't created.

if i execute /etc/init.d/zabbix_agentd enable
the symlink is created.

With BB the symlink was created.

a quick extract of the build log that i suspect is related
(there is no zabbix.list, but zabbix-agentd.list,
zabbix-extra-mac80211.list, zabbix-extra-network.list,
zabbix-extra-wifi.list)

Setting flags for package libc to hold.
Setting flags for package libgcc to hold.
Setting flags for package libpthread to hold.
make[3]: Entering directory `/tmp/openwrt-cc'
make[3]: Nothing to be done for `package/preconfig'.
make[3]: Leaving directory `/tmp/openwrt-cc'
cat:
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list:
No such file or directory
cat:
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list:
No such file or directory
cat:
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list:
No such file or directory
cat:
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list:
No such file or directory
rm -f
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/*.postinst*
rm -f
/tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/*.prerm*
make[2]: Leaving directory `/tmp/openwrt-cc'
make[2]: Entering directory `/tmp/openwrt-cc'


For tonight i'm stuck
Thanks in advance
Etienne
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
Compilation of packages written in C++, like smartmontools, unrar, etc.
fail with message:

Package smartmontools is missing dependencies for the following libraries:
libuClibc++.so.0

This is due unescaped ++ in argument for grep command.
---
 include/package-ipkg.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 815aef0..b7dc0ad 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -66,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain)
XARGS=$(XARGS); \
$(SCRIPT_DIR)/gen-dependencies.sh $$(IDIR_$(1)); \
) | while read FILE; do \
-   grep -qE ^FILE $(PKG_INFO_DIR)/$(1).provides 
|| \
+   grep -qxF FILE $(PKG_INFO_DIR)/$(1).provides || \
echo FILE  
$(PKG_INFO_DIR)/$(1).missing; \
done; \
if [ -f $(PKG_INFO_DIR)/$(1).missing ]; then \
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread John Szakmeister
On Mon, Feb 2, 2015 at 6:24 AM, Sławomir Demeszko
s.demes...@wireless-instruments.com wrote:
 Compilation of packages written in C++, like smartmontools, unrar, etc.
 fail with message:

 Package smartmontools is missing dependencies for the following libraries:
 libuClibc++.so.0

 This is due unescaped ++ in argument for grep command.

This may have been fixed by:
   
http://git.openwrt.org/?p=openwrt.git;a=commit;h=ff9be1ce29f457e018bbb64c7427ddcadcb93d5e

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


Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko

On 02.02.2015 at 14:00, John Szakmeister wrote:

On Mon, Feb 2, 2015 at 6:24 AM, Sławomir Demeszko
s.demes...@wireless-instruments.com wrote:

Compilation of packages written in C++, like smartmontools, unrar, etc.
fail with message:

Package smartmontools is missing dependencies for the following libraries:
libuClibc++.so.0

This is due unescaped ++ in argument for grep command.

This may have been fixed by:

http://git.openwrt.org/?p=openwrt.git;a=commit;h=ff9be1ce29f457e018bbb64c7427ddcadcb93d5e


Yes, that fix works too, I didn't notice it. As side note -qxF is a bit better, it does 
not count \+ and few other characters preceded with backslash as special characters, but 
of course these combinations are rarely used in filenames.

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


Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko

W dniu 02.02.2015 o 14:47, Sławomir Demeszko pisze:

On 02.02.2015 at 14:00, John Szakmeister wrote:

On Mon, Feb 2, 2015 at 6:24 AM, Sławomir Demeszko
s.demes...@wireless-instruments.com wrote:

Compilation of packages written in C++, like smartmontools, unrar, etc.
fail with message:

Package smartmontools is missing dependencies for the following libraries:
libuClibc++.so.0

This is due unescaped ++ in argument for grep command.

This may have been fixed by:
http://git.openwrt.org/?p=openwrt.git;a=commit;h=ff9be1ce29f457e018bbb64c7427ddcadcb93d5e


Yes, that fix works too, I didn't notice it. As side note -qxF is a bit better, it does 
not count \+ and few other characters preceded with backslash as special characters, 
but of course these combinations are rarely used in filenames.
I just tested and found that also a dot in filenames can be a problem. For example if we 
would have some.file.so then it matches also some2file.so and it could not detect 
missing dependency. So -qxF is a more than bit better.

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


Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread John Szakmeister
On Mon, Feb 2, 2015 at 9:07 AM, Sławomir Demeszko
s.demes...@wireless-instruments.com wrote:
[snip]
 I just tested and found that also a dot in filenames can be a problem. For
 example if we would have some.file.so then it matches also some2file.so
 and it could not detect missing dependency. So -qxF is a more than bit
 better.

Perhaps you can update your patch then so that it applies cleanly to
master?  I cannot apply it, but you'll have a better chance of getting
it accepted if it applies cleanly. :-)

You'll also need to sign off on it.  The Submitted Patches details
what they look for:
   https://dev.openwrt.org/wiki/SubmittingPatches

Section 10 talks about the sign off.

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


[OpenWrt-Devel] elfutils with external toolchain uClibc

2015-02-02 Thread Helmut Schaa
Hi,

elfutils fails to build with an external toolchain using
uClibc due to the following dependency:

PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone

I tried to select USE_UCLIBC as part of the external
toolchain settings but that is used at quite some points
within the toolchain config.

Any ideas how to enable UCLIBC specific package
dependencies for external toolchains?

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


Re: [OpenWrt-Devel] [PATCH 1/2] added board support for compex wpj558

2015-02-02 Thread Christian Mehlis

Am 30.01.2015 um 18:48 schrieb Christian Mehlis:


diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index f7b8381..ecaa126 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -687,10 +687,13 @@ Image/Build/MyLoader/initramfs=$(call 
PatchKernel/initramfs,$(2),$(3))
  define Image/Build/MyLoader
$(eval fwsize=$(shell echo $$(($(4)-0x3-4*64*1024
$(eval fwimage=$(KDIR_TMP)/$(2)-$(5)-firmware.bin)
-   $(call 
CatFiles,$(KDIR_TMP)/vmlinux-$(2).bin.lzma,65536,$(KDIR)/root.$(1),$(fwsize),$(fwimage))
+   $(call 
CatFiles,$(KDIR_TMP)/vmlinux-$(2).uImage,65536,$(KDIR)/root.$(1),$(fwsize),$(fwimage))
if [ -e $(fwimage) ]; then \
$(STAGING_DIR_HOST)/bin/mkmylofw -B $(2) -s $(4) -v \
-   -p0x0003:0:al:0x8006:firmware:$(fwimage) \
+   
-p0x68:0x16:al:0x8006:firmware:$(KDIR_TMP)/vmlinux-$(2).uImage \
+   -p0x05:0x63:::rootfs:$(KDIR)/root.$(1) \
+   -p0x7e:0x01 \
+   -p0x7f:0x01 \
$(call imgname,$(1),$(2))-$(5)-factory.img; \
echo -n   $(KDIR_TMP)/empty.bin; \
sh $(TOPDIR)/scripts/combined-image.sh \


I think this breaks the other compex boards. This code is more a proof 
of concept for the wpj558.


I don't recommend to merge that now, until I found a way to make 
sysupgrade work and not interfere with other boards.


How does linux detect the partitions in the old code where linux and the 
rootfs are combined in one partition?


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


[OpenWrt-Devel] [Patch v3 1/4] build: allow openwrt.git packages to be replaced by feeds

2015-02-02 Thread Mathieu Olivari
Currently, replacing a package available in openwrt.git requires
modifications in openwrt.git, or requires duplicating the package in a
feed but with a different name, which causes all kind of problems
related to dependencies (all packages selecting it would have to be
modified accordingly to select the new package).

With this change, if a package with the same name is present both in
feeds/ and package/ folders, the one in feeds/ can override the one
in package/, both in the menuconfig and during the build, by passing the
-f option to ./scripts/feeds install

This mechanism is particularly useful for vendor tree, or in general for
application which needs to replace one particular package which exists
within openwrt.git by a custom/newer version.

Signed-off-by: Mathieu Olivari math...@qca.qualcomm.com
---

Notes:
v2:
*fix an issue when trying to override packages which include a dependency 
in the
 core packages. (ex: lua depends on liblua, which exists in the core, which
 ended-up in the package not being overridden properly).
*address John's concerns about core OpenWrt packages being overriden without
 notice and control. Override is now disable by default, and -f needs to 
be
 passed to ./scripts/feeds install to allow it.

v3:
*fix the errors reported by ./scripts/feeds while installing regular 
packages:
 Use of uninitialized value $override in numeric eq (==) at ./scripts/feeds 
line 400.

 include/scan.awk | 17 +
 include/scan.mk  |  2 +-
 scripts/feeds| 30 ++
 3 files changed, 40 insertions(+), 9 deletions(-)
 create mode 100644 include/scan.awk

diff --git a/include/scan.awk b/include/scan.awk
new file mode 100644
index 000..39b2977
--- /dev/null
+++ b/include/scan.awk
@@ -0,0 +1,17 @@
+BEGIN { FS=/ }
+$1 ~ /^feeds/ { FEEDS[$NF]=$0 }
+$1 !~ /^feeds/ { PKGS[$NF]=$0 }
+END {
+   # Filter-out OpenWrt packages which have a feeds equivalent
+   for (pkg in PKGS)
+   if (pkg in FEEDS)
+   delete PKGS[pkg]
+   n = asort(PKGS)
+   for (i=1; i = n; i++) {
+   print PKGS[i]
+   }
+   n = asort(FEEDS)
+   for (i=1; i = n; i++){
+   print FEEDS[i]
+   }
+}
diff --git a/include/scan.mk b/include/scan.mk
index 0998333..138707d 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -43,7 +43,7 @@ endef
 
 $(FILELIST):
rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
-   $(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if 
$(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call 
(Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 
's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq  $@
+   $(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if 
$(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call 
(Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 
's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -f include/scan.awk  $@
 
 $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
( \
diff --git a/scripts/feeds b/scripts/feeds
index 31ad544..4b98d3e 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -358,6 +358,7 @@ sub is_core_package($) {
 sub install_package {
my $feed = shift;
my $name = shift;
+   my $force = shift;
my $ret = 0;
 
$feed = lookup_package($feed, $name);
@@ -382,14 +383,26 @@ sub install_package {
my $type = $feed-[0];
$src or $src = $name;
 
+   # If it's a core package and we don't want to override, just return
+   !$force and is_core_package($src) and return 0;
+
# previously installed packages set the runtime package
-   # newly installed packages set the source package
-   $installed{$src} and return 0;
+   # newly installed packages set the source package to 1
+   $installed{$src} and $installed{$src} == 1 and return 0;
+
+   # we'll trigger the override only with the 3 conditions below:
+   # - override is allowed by command line (-f)
+   # - a package with the same src exists in the core packages list
+   # - the package previously installed is not from a feed
+   my $override = 1 if ($force and is_core_package($src) and 
!$installed{$name}-{feed});
 
# check previously installed packages
-   $installed{$name} and return 0;
+   $installed{$name} and !$override and return 0;
$installed{$src} = 1;
-   warn Installing package '$src'\n;
+
+   defined($override) and $override == 1
+   and warn Overriding package '$src'\n
+   or warn Installing package '$src'\n;
 
$install_method{$type} or do {
warn Unknown installation method: '$type'\n;
@@ -409,7 +422,7 @@ sub install_package {
$dep =~ s/^.+://;
$dep =~ s/\/.+$//;
next unless $dep;
-   

[OpenWrt-Devel] [Patch v3 4/4] base-files: taint the build if the override mechanism is used

2015-02-02 Thread Mathieu Olivari
If some packages are overridden (using ./scripts/feeds -f), add a new
taint flag in /etc/openwrt_release. We'll use the CONFIG_OVERRIDE_PKGS
variable reported through the .config to detect it.

Signed-off-by: Mathieu Olivari math...@qca.qualcomm.com
---
 include/version.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/version.mk b/include/version.mk
index c3cc170..99af96e 100644
--- a/include/version.mk
+++ b/include/version.mk
@@ -58,6 +58,7 @@ VERSION_TAINT_SPECS := \
+USE_EGLIBC:eglibc \
+USE_MKLIBS:mklibs \
+BUSYBOX_CUSTOM:busybox \
+   +OVERRIDE_PKGS:override \
 
 VERSION_TAINTS := $(strip $(foreach taint,$(VERSION_TAINT_SPECS), \
$(if $(findstring +,$(taint)), \
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch v3 2/4] build: propagate override information to .packageinfo

2015-02-02 Thread Mathieu Olivari
Packages overridden with ./scripts/feeds -f will show up with an
Override: original-package-name in .packageinfo.

This will be useful to create a corresponding option in .config and
use this information during the build process.

Signed-off-by: Mathieu Olivari math...@qca.qualcomm.com
---
 include/scan.awk |  4 +++-
 include/scan.mk  | 26 +-
 2 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/include/scan.awk b/include/scan.awk
index 39b2977..0f02782 100644
--- a/include/scan.awk
+++ b/include/scan.awk
@@ -4,8 +4,10 @@ $1 !~ /^feeds/ { PKGS[$NF]=$0 }
 END {
# Filter-out OpenWrt packages which have a feeds equivalent
for (pkg in PKGS)
-   if (pkg in FEEDS)
+   if (pkg in FEEDS) {
+   print PKGS[pkg]  of
delete PKGS[pkg]
+   }
n = asort(PKGS)
for (i=1; i = n; i++) {
print PKGS[i]
diff --git a/include/scan.mk b/include/scan.mk
index 138707d..c301579 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -10,6 +10,7 @@ SCAN_NAME ?= package
 SCAN_DIR ?= package
 TARGET_STAMP:=$(TMP_DIR)/info/.files-$(SCAN_TARGET).stamp
 FILELIST:=$(TMP_DIR)/info/.files-$(SCAN_TARGET)-$(SCAN_COOKIE)
+OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE)
 
 ifeq ($(IS_TTY),1)
   define progress
@@ -31,6 +32,7 @@ define PackageDir
{ \
$$(call progress,Collecting $(SCAN_NAME) info: 
$(SCAN_DIR)/$(2)) \
echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \
+   $(if $(3),echo Override: $(3),true); \
$(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 FEED=$(call 
feedname,$(2)) -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2/dev/null || { \
mkdir -p $(TOPDIR)/logs/$(SCAN_DIR)/$(2); \
$(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 FEED=$(call 
feedname,$(2)) -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS)  
$(TOPDIR)/logs/$(SCAN_DIR)/$(2)/dump.txt 21; \
@@ -41,17 +43,31 @@ define PackageDir
}  $$@ || true
 endef
 
-$(FILELIST):
+$(OVERRIDELIST):
+   rm -f $(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-*
+   touch $@
+
+$(FILELIST): $(OVERRIDELIST)
rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
-   $(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if 
$(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call 
(Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 
's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -f include/scan.awk  $@
+   $(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if 
$(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call 
(Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 
's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f 
include/scan.awk  $@
 
 $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
( \
cat $ | awk '{print $(SCAN_DIR)/ $$0 /Makefile }' | xargs 
grep -HE '^ *SCAN_DEPS *= *' | awk -F: '{ gsub(/^.*DEPS *= */, , $$2); print 
DEPS_ $$1 = $$2 }'; \
-   awk -v deps=$$DEPS '{ \
+   awk -F/ -v deps=$$DEPS -v of=$(OVERRIDELIST) ' \
+   BEGIN { \
+   while (getline  (of)) \
+   override[$$NF]=$$0; \
+   close(of) \
+   } \
+   { \
info=$$0; \
gsub(/\//, _, info); \
-   print $$(eval $$(call PackageDir, info , $$0 )); \
+   dir=$$0; \
+   pkg=; \
+   if($$NF in override) \
+   pkg=override[$$NF]; \
+   print $$(eval $$(call PackageDir, info , dir , 
pkg )); \
} '  $; \
true; \
)  $@
@@ -61,7 +77,7 @@ $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
 $(TARGET_STAMP)::
+( \
$(NO_TRACE_MAKE) $(FILELIST); \
-   MD5SUM=$$(cat $(FILELIST) | (md5sum || md5) 2/dev/null | awk 
'{print $$1}'); \
+   MD5SUM=$$(cat $(FILELIST) $(OVERRIDELIST) | (md5sum || md5) 
2/dev/null | awk '{print $$1}'); \
[ -f $@.$$MD5SUM ] || { \
rm -f $@.*; \
touch $@.$$MD5SUM; \
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch v3 3/4] build: propagate override information to .config file

2015-02-02 Thread Mathieu Olivari
With this change, override information is now parsed from the metadata
and put in the %packages hash. A new hash - %overrides - is created and
exported, to be used during the .config-package.in generation.

If an override is detected, a new option CONFIG_OVERRIDE_PKGS will be
created in the .config, and will contain a space-separated list of all
the overridden packages.

Signed-off-by: Mathieu Olivari math...@qca.qualcomm.com
---
 scripts/metadata.pl |  8 
 scripts/metadata.pm | 11 ++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index ea437f5..abf8248 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -679,6 +679,13 @@ EOF
print endmenu\n\n;
 }
 
+sub print_package_overrides() {
+   keys %overrides  0 or return;
+   print \tconfig OVERRIDE_PKGS\n;
+   print \t\tstring\n;
+   print \t\tdefault \.join( , keys %overrides).\\n\n;
+}
+
 sub gen_package_config() {
parse_package_metadata($ARGV[0]) or exit 1;
print menuconfig IMAGEOPT\n\tbool \Image configuration\\n\tdefault 
n\n;
@@ -704,6 +711,7 @@ EOF
foreach my $cat (sort {uc($a) cmp uc($b)} keys %category) {
print_package_config_category $cat;
}
+   print_package_overrides();
 }
 
 sub get_conditional_dep($$) {
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index fc86573..4bf70bb 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -2,7 +2,7 @@ package metadata;
 use base 'Exporter';
 use strict;
 use warnings;
-our @EXPORT = qw(%package %srcpackage %category %subdir %preconfig %features 
clear_packages parse_package_metadata get_multiline);
+our @EXPORT = qw(%package %srcpackage %category %subdir %preconfig %features 
%overrides clear_packages parse_package_metadata get_multiline);
 
 our %package;
 our %preconfig;
@@ -10,6 +10,7 @@ our %srcpackage;
 our %category;
 our %subdir;
 our %features;
+our %overrides;
 
 sub get_multiline {
my $fh = shift;
@@ -30,6 +31,7 @@ sub clear_packages() {
%srcpackage = ();
%category = ();
%features = ();
+   %overrides = ();
 }
 
 sub parse_package_metadata($) {
@@ -40,6 +42,7 @@ sub parse_package_metadata($) {
my $preconfig;
my $subdir;
my $src;
+   my $override;
 
open FILE, $file or do {
warn Cannot open '$file': $!\n;
@@ -54,8 +57,13 @@ sub parse_package_metadata($) {
$subdir =~ s/^package\///;
$subdir{$src} = $subdir;
$srcpackage{$src} = [];
+   $override = ;
undef $pkg;
};
+   /^Override: \s*(.+?)\s*$/ and do {
+   $override = $1;
+   $overrides{$src} = 1;
+   };
next unless $src;
/^Package:\s*(.+?)\s*$/ and do {
undef $feature;
@@ -70,6 +78,7 @@ sub parse_package_metadata($) {
$pkg-{buildtypes} = [];
$pkg-{subdir} = $subdir;
$pkg-{tristate} = 1;
+   $pkg-{override} = $override;
$package{$1} = $pkg;
push @{$srcpackage{$src}}, $pkg;
};
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044

2015-02-02 Thread Mingyu Li
Dear Sir.

the fe_reset only used to reset ethernet and switch driver.
i think your problem is the old code is wrong.
at ethernet driver(soc_rt305x.c) it just clean all reset bit (enable all
functions. usb?).
but the new code only reset and enable ethernet and switch block.
you can see the diff as below.

 static void rt5350_fe_reset(void)
 {
-   rt_sysc_w32(RT305X_RESET_FE | RT305X_RESET_ESW,
SYSC_REG_RESET_CTRL);
-   rt_sysc_w32(0, SYSC_REG_RESET_CTRL);
+   fe_reset(RT305X_RESET_FE | RT305X_RESET_ESW);
 }

+void fe_reset(u32 reset_bits)
+{
+   u32 t;
+
+   t = rt_sysc_r32(SYSC_REG_RSTCTRL);
+   t |= reset_bits;
+   rt_sysc_w32(t , SYSC_REG_RSTCTRL);
+   udelay(10);
+
+   t = ~reset_bits;
+   rt_sysc_w32(t, SYSC_REG_RSTCTRL);
+   udelay(10);
+}

Best Regards.

2015-02-03 13:44 GMT+08:00 Russell Senior russ...@personaltelco.net:

  Russell == Russell Senior russ...@personaltelco.net writes:

 Russell I just wanted to give a heads up that I built trunk r44245 last
 Russell night and discovered two problems: reboot no longer works, and
 Russell USB fails to enumerate a usb-serial device that worked
 Russell previously (specifically a pl2303).  To successfully reset, a
 Russell power cycle is required.  These problems were not evident the
 Russell last time I built, about 3 weeks ago, r43960.  The lsmod output
 Russell is nearly identical between working/not-working (with some
 Russell minor fuzz in a few module sizes).

 Russell I'm planning to try bisecting this, but if someone knows the
 Russell problem and beats me to it, I'd be grateful.  Bisecting is
 Russell powerful but somewhat tedious. ;-)

 I bisected the problem.  It appears the bad commit is r44044 (r44043 is
 good).  The reset and usb problems appear at the same commit.

 commit fb038c46afa40edbd37eb9a93468312b287c5aa7
 Author: nbd nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73
 Date:   Sun Jan 18 20:17:07 2015 +

 ralink: use fe_reset to control all reset

 Signed-off-by: michael lee igv...@gmail.com

 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44044
 3c298f89-4303-0410-b956-a3cf2f4a3e73



 --
 Russell Senior, President
 russ...@personaltelco.net

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


[OpenWrt-Devel] [PATCH] Fix possible fail to check for dependencies

2015-02-02 Thread Sławomir Demeszko
Few characters in filenames (a plus sign, a dot) can be interpreted
specially by grep. This can lead to the omission of missing package
dependency. For example if we would have some.file.so then it
matches also some2file.so. -F switch off special meaning
of any character and -x match against whole line.

Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com
---
 include/package-ipkg.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 11edb9a..b7dc0ad 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -66,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain)
XARGS=$(XARGS); \
$(SCRIPT_DIR)/gen-dependencies.sh $$(IDIR_$(1)); \
) | while read FILE; do \
-   grep -q ^FILE $(PKG_INFO_DIR)/$(1).provides 
|| \
+   grep -qxF FILE $(PKG_INFO_DIR)/$(1).provides || \
echo FILE  
$(PKG_INFO_DIR)/$(1).missing; \
done; \
if [ -f $(PKG_INFO_DIR)/$(1).missing ]; then \
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/3] netifd: set current_config for simple devices when parsing device config

2015-02-02 Thread Hans Dedecker
If currrent_config is not set when the simple device config is applied the
device will be deleted in device_reset_old

Signed-off-by: Hans Dedecker dedec...@gmail.com
---
 config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config.c b/config.c
index 4e91e18..22dd835 100644
--- a/config.c
+++ b/config.c
@@ -218,6 +218,7 @@ config_init_devices(void)
if (!dev)
continue;
 
+   dev-current_config = true;
device_apply_config(dev, dev-type, b.head);
}
dev-default_config = false;
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] map: Fix white space errors

2015-02-02 Thread Hans Dedecker
Signed-off-by: Hans Dedecker dedec...@gmail.com
---
 package/network/ipv6/map/files/map.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/network/ipv6/map/files/map.sh 
b/package/network/ipv6/map/files/map.sh
index 945accd..10789f0 100755
--- a/package/network/ipv6/map/files/map.sh
+++ b/package/network/ipv6/map/files/map.sh
@@ -62,7 +62,7 @@ proto_map_setup() {
 
echo $RULE_DATA  /tmp/map-$cfg.rules
eval $RULE_DATA
-   
+
if [ -z $RULE_BMR ]; then
proto_notify_error $cfg NO_MATCHING_PD
proto_block_restart $cfg
@@ -73,7 +73,7 @@ proto_map_setup() {
if [ $type = lw4o6 -o $type = map-e ]; then
proto_init_update $link 1
proto_add_ipv4_address $(eval echo \$RULE_${k}_IPV4ADDR)  
 
-   
+
proto_add_tunnel
json_add_string mode ipip6
json_add_int mtu ${mtu:-1280}
@@ -194,7 +194,7 @@ proto_map_teardown() {
 }
 
 proto_map_init_config() {
-   no_device=1 
+   no_device=1
available=1
 
proto_config_add_string rule
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Fix missing dependencies for libuClibc++.so.0

2015-02-02 Thread Sławomir Demeszko
I just updated working tree and created new patch Fix possible fail to check for 
dependencies:

https://patchwork.ozlabs.org/patch/435525/ This one can be cancelled.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/3] netifd: Add option to configure base_reachable_time_ms for each device

2015-02-02 Thread Hans Dedecker
The UCI parameter neighreachabletime allows to control the hardware address
to IP mapping lifetime in the neighbour table for both IPv4 and IPv6

Signed-off-by: Hans Dedecker dedec...@gmail.com
Signed-off-by: Jean-Francois Remy j...@melix.org
---
 device.c   | 14 ++
 device.h   | 22 +-
 system-linux.c | 40 
 3 files changed, 67 insertions(+), 9 deletions(-)

diff --git a/device.c b/device.c
index 54638e7..556d9fc 100644
--- a/device.c
+++ b/device.c
@@ -43,6 +43,7 @@ static const struct blobmsg_policy dev_attrs[__DEV_ATTR_MAX] 
= {
[DEV_ATTR_ACCEPTLOCAL] = { .name = acceptlocal, .type = 
BLOBMSG_TYPE_BOOL },
[DEV_ATTR_IGMPVERSION] = { .name = igmpversion, .type = 
BLOBMSG_TYPE_INT32 },
[DEV_ATTR_MLDVERSION] = { .name = mldversion, .type = 
BLOBMSG_TYPE_INT32 },
+   [DEV_ATTR_NEIGHREACHABLETIME] = { .name = neighreachabletime, .type = 
BLOBMSG_TYPE_INT32 },
 };
 
 const struct uci_blob_param_list device_attr_list = {
@@ -162,6 +163,10 @@ device_merge_settings(struct device *dev, struct 
device_settings *n)
n-acceptlocal = s-flags  DEV_OPT_ACCEPTLOCAL ? s-acceptlocal : 
os-acceptlocal;
n-igmpversion = s-flags  DEV_OPT_IGMPVERSION ? s-igmpversion : 
os-igmpversion;
n-mldversion = s-flags  DEV_OPT_MLDVERSION ? s-mldversion : 
os-mldversion;
+   n-neigh4reachabletime = s-flags  DEV_OPT_NEIGHREACHABLETIME ?
+   s-neigh4reachabletime : os-neigh4reachabletime;
+   n-neigh6reachabletime = s-flags  DEV_OPT_NEIGHREACHABLETIME ?
+   s-neigh6reachabletime : os-neigh6reachabletime;
n-flags = s-flags | os-flags;
 }
 
@@ -233,6 +238,11 @@ device_init_settings(struct device *dev, struct blob_attr 
**tb)
DPRINTF(Failed to resolve mldversion: %d\n, 
blobmsg_get_u32(cur));
}
 
+   if ((cur = tb[DEV_ATTR_NEIGHREACHABLETIME])) {
+   s-neigh6reachabletime = s-neigh4reachabletime = 
blobmsg_get_u32(cur);
+   s-flags |= DEV_OPT_NEIGHREACHABLETIME;
+   }
+
device_set_disabled(dev, disabled);
 }
 
@@ -794,6 +804,10 @@ device_dump_status(struct blob_buf *b, struct device *dev)
blobmsg_add_u32(b, igmpversion, st.igmpversion);
if (st.flags  DEV_OPT_MLDVERSION)
blobmsg_add_u32(b, mldversion, st.mldversion);
+   if (st.flags  DEV_OPT_NEIGHREACHABLETIME) {
+   blobmsg_add_u32(b, neigh4reachabletime, 
st.neigh4reachabletime);
+   blobmsg_add_u32(b, neigh6reachabletime, 
st.neigh6reachabletime);
+   }
}
 
s = blobmsg_open_table(b, statistics);
diff --git a/device.h b/device.h
index ca4cc11..6418f16 100644
--- a/device.h
+++ b/device.h
@@ -37,6 +37,7 @@ enum {
DEV_ATTR_ACCEPTLOCAL,
DEV_ATTR_IGMPVERSION,
DEV_ATTR_MLDVERSION,
+   DEV_ATTR_NEIGHREACHABLETIME,
__DEV_ATTR_MAX,
 };
 
@@ -65,15 +66,16 @@ struct device_type {
 };
 
 enum {
-   DEV_OPT_MTU = (1  0),
-   DEV_OPT_MACADDR = (1  1),
-   DEV_OPT_TXQUEUELEN  = (1  2),
-   DEV_OPT_IPV6= (1  3),
-   DEV_OPT_PROMISC = (1  4),
-   DEV_OPT_RPFILTER= (1  5),
-   DEV_OPT_ACCEPTLOCAL = (1  6),
-   DEV_OPT_IGMPVERSION = (1  7),
-   DEV_OPT_MLDVERSION  = (1  8),
+   DEV_OPT_MTU = (1  0),
+   DEV_OPT_MACADDR = (1  1),
+   DEV_OPT_TXQUEUELEN  = (1  2),
+   DEV_OPT_IPV6= (1  3),
+   DEV_OPT_PROMISC = (1  4),
+   DEV_OPT_RPFILTER= (1  5),
+   DEV_OPT_ACCEPTLOCAL = (1  6),
+   DEV_OPT_IGMPVERSION = (1  7),
+   DEV_OPT_MLDVERSION  = (1  8),
+   DEV_OPT_NEIGHREACHABLETIME  = (1  9),
 };
 
 /* events broadcasted to all users of a device */
@@ -125,6 +127,8 @@ struct device_settings {
bool acceptlocal;
unsigned int igmpversion;
unsigned int mldversion;
+   unsigned int neigh4reachabletime;
+   unsigned int neigh6reachabletime;
 };
 
 /*
diff --git a/system-linux.c b/system-linux.c
index 4737fa6..fb2ee29 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -285,6 +285,16 @@ static void system_set_mldversion(struct device *dev, 
const char *val)
system_set_dev_sysctl(/proc/sys/net/ipv6/conf/%s/force_mld_version, 
dev-ifname, val);
 }
 
+static void system_set_neigh4reachabletime(struct device *dev, const char *val)
+{
+   
system_set_dev_sysctl(/proc/sys/net/ipv4/neigh/%s/base_reachable_time_ms, 
dev-ifname, val);
+}
+
+static void system_set_neigh6reachabletime(struct device *dev, const char *val)
+{
+   
system_set_dev_sysctl(/proc/sys/net/ipv6/neigh/%s/base_reachable_time_ms, 
dev-ifname, val);
+}
+
 static int system_get_sysctl(const char *path, char *buf, 

[OpenWrt-Devel] [PATCH 2/3] netifd: Remove unnecessary default_config check in config_parse_interface

2015-02-02 Thread Hans Dedecker
No need to check default_config twice as it's already checked in 
config_parse_interface

Signed-off-by: Hans Dedecker dedec...@gmail.com
---
 config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.c b/config.c
index 22dd835..34d2f2b 100644
--- a/config.c
+++ b/config.c
@@ -136,7 +136,7 @@ config_parse_interface(struct uci_section *s, bool alias)
if (blob_len(b.head) == 0)
return;
 
-   if (iface-device_config  dev-default_config)
+   if (iface-device_config)
device_set_config(dev, dev-type, b.head);
return;
 error_free_config:
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044

2015-02-02 Thread Christian Lamparter
Hello,

On Tue, Feb 3, 2015 at 7:48 AM, Mingyu Li igv...@gmail.com wrote:
 Russell I just wanted to give a heads up that I built trunk r44245 last
 Russell night and discovered two problems: reboot no longer works, and
 Russell USB fails to enumerate a usb-serial device that worked
 Russell previously (specifically a pl2303).  To successfully reset, a
 Russell power cycle is required.  These problems were not evident the
 Russell last time I built, about 3 weeks ago, r43960.  The lsmod output
 Russell is nearly identical between working/not-working (with some
 Russell minor fuzz in a few module sizes).

 Russell I'm planning to try bisecting this, but if someone knows the
 Russell problem and beats me to it, I'd be grateful.  Bisecting is
 Russell powerful but somewhat tedious. ;-)

 I bisected the problem.  It appears the bad commit is r44044 (r44043 is
 good).  The reset and usb problems appear at the same commit.

I ran into a similar issue (usb enumeration) with a RT5350 device
around that time, but as Mingyu Li said, I traced it down to the USB
code and made a patch (It should be pending in blogic queue?):
https://patchwork.ozlabs.org/patch/432628/ [PATCH] ralink: fix USB
host function for Intenso M2M

Thing is: ralink-phy.c can use some more work!

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


Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044

2015-02-02 Thread Russell Senior
 Russell == Russell Senior russ...@personaltelco.net writes:

Russell I just wanted to give a heads up that I built trunk r44245 last
Russell night and discovered two problems: reboot no longer works, and
Russell USB fails to enumerate a usb-serial device that worked
Russell previously (specifically a pl2303).  To successfully reset, a
Russell power cycle is required.  These problems were not evident the
Russell last time I built, about 3 weeks ago, r43960.  The lsmod output
Russell is nearly identical between working/not-working (with some
Russell minor fuzz in a few module sizes).

Russell I'm planning to try bisecting this, but if someone knows the
Russell problem and beats me to it, I'd be grateful.  Bisecting is
Russell powerful but somewhat tedious. ;-)

I bisected the problem.  It appears the bad commit is r44044 (r44043 is
good).  The reset and usb problems appear at the same commit.

commit fb038c46afa40edbd37eb9a93468312b287c5aa7
Author: nbd nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73
Date:   Sun Jan 18 20:17:07 2015 +

ralink: use fe_reset to control all reset

Signed-off-by: michael lee igv...@gmail.com

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44044
3c298f89-4303-0410-b956-a3cf2f4a3e73



-- 
Russell Senior, President
russ...@personaltelco.net
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] The MT76 Wifi chips are not working properly

2015-02-02 Thread fl.serv...@t-firefly.com
Dear sir :
We found a commit about mac80211 might have some problem .

commit 593f7268b0108055957f084f526724c452a04123 
Author: blogic blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73 
Date: Wed Jan 28 12:07:21 2015 + 

mac80211: Add some missing 802.11n capabilities to hostapd 
configuration 

Add some missing 802.11n capabilities to the hostapd ht_capab string 
when 
supported by the hardware: Spatial Multiplexing Power-Save and 
7935-byte AMSDUs. 

Signed-off-by: Robert Hancock hancock...@gmail.com 

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44173 
3c298f89-4303-0410-b956-a3cf2f4a3e73 
   
Our board is using MT7602 + MT7612 Wi-Fi chip.   
When i try to turn up the wifi :
root@OpenWrt:/# /etc/init.d/network restart 
[ 74.68] br-lan: port 1(eth0.1) entered disabled state 
[ 74.69] device eth0.1 left promiscuous mode 
[ 74.70] br-lan: port 1(eth0.1) entered disabled state 
[ 74.71] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready 
[ 74.90] device eth0 left promiscuous mode 
root@OpenWrt:/# [ 76.78] device eth0.1 entered promiscuous mode 
[ 76.79] device eth0 entered promiscuous mode 
[ 76.80] br-lan: port 1(eth0.1) entered forwarding state 
[ 76.81] br-lan: port 1(eth0.1) entered forwarding state 
[ 78.41] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready 
[ 78.42] device wlan1 entered promiscuous mode 
[ 78.43] br-lan: port 2(wlan1) entered forwarding state 
[ 78.44] br-lan: port 2(wlan1) entered forwarding state 
[ 78.81] br-lan: port 1(eth0.1) entered forwarding state 
[ 78.87] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready 
[ 78.88] device wlan0 entered promiscuous mode 
[ 78.89] br-lan: port 3(wlan0) entered forwarding state 
[ 78.90] br-lan: port 3(wlan0) entered forwarding state 
[ 78.91] br-lan: port 2(wlan1) entered disabled state 
[ 78.92] br-lan: port 3(wlan0) entered disabled state 
[ 79.01] device wlan1 left promiscuous mode 
[ 79.01] br-lan: port 2(wlan1) entered disabled state 
[ 79.03] device wlan0 left promiscuous mode 
[ 79.03] br-lan: port 3(wlan0) entered disabled state

Both Wi-Fi chips are not working .



Best Regards.
Jay Weng

Website:  www.t-firefly.com
E-mail:  fl.serv...@t-firefly.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Status of new standard ETSI EN 300 328 (ralink)

2015-02-02 Thread Zefir Kurtisi
On 01/31/2015 12:41 PM, Michael Heimpold wrote:
 Hi wifi gurus :-)
 
 I recently learned that devices for the european market must fulfill the
 new ETSI standard EN 300 328 V1.8.1 since 2015-01-01. I also understand
 that most wifi chips require a firmware, often this is a binary vendor blob,
 which is just uploaded into the chip. Then a hardware dependend wifi linux
 driver adopts  to cfg80211 and mac80211 and so on...
 
 So my question is: which parts must be changed to comply with this new
 standard. I guess the firmware blob must provide several functions which
 are used by drivers?
 Next question is: what is the current state of this support in the ralink
 driver, I have a rt5380 based device.
 
 I googled a little bit around, but I only found this thread which is for 
 atheros:
 http://comments.gmane.org/gmane.linux.drivers.ath9k.devel/13280
 
 So any further information would be welcome.
 
 Thanks, Michael
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 

You might want to read a related thread from the ath9k corner in [1].

The tl;dr version roughly is:
* relevant change between v1.5 and later versions of EN-300.328 is the 
requirement
to detect shorter radar pulses of 0.5us (before: 0.8us)
* if the HW is able to handle them as is, from FW side everything should be fine
to pass a certification run



[1] http://thread.gmane.org/gmane.linux.kernel.wireless.general/129535
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/2] wpj558: use own partition for rootfs

2015-02-02 Thread Christian Mehlis

Am 02.02.2015 um 09:52 schrieb John Crispin:



On 30/01/2015 18:48, Christian Mehlis wrote:

this change breaks rootfs detection



so we should not merge it if it breaks stuff ?


Hi John,

this patch was the second way I tried to make the compex wpj558 work.
Perhaps you can answer my mail:

[OpenWrt-Devel] Compex WPJ558 board support

This port is my first one, so I got some problems with the compex style 
uboot loader. I think jow did the port for at least two other compex 
boards, so I hope someone knows how to accomplish either way 1 or 2.


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