Re: [OpenWrt-Devel] Question about conflict between ubus_invoke and uloop_run

2015-04-02 Thread XiaoFengMeng
HI Alexandru Thanks so much for your reply! In my case, the ubus_invoke will be called in a callback function which is in a separate thread, and uloop_run will be running in main thread. If I have to use ubus_invoke_async, then I feel that I have to use a lock to sync the call. And I think you

Re: [OpenWrt-Devel] UCI config bug or intent?

2015-04-02 Thread Dominik Taborsky
Any thoughts on this? If anything, could anyone point me the right direction so I can fix it myself? On 03/25/2015 11:28 AM, Dominik Taborsky wrote: Hello, a colleague of mine discovered a problem when using UCI: when there's a clash of identifiers, they mix together regardless of their type

Re: [OpenWrt-Devel] Question about conflict between ubus_invoke and uloop_run

2015-04-02 Thread Alexandru Ardelean
Hello Kevin, As far as my understanding goes regarding ubus and uloop, they were not designed with threading in mind. Also, as a general rule when using uloop, you wouldn't use threads, because races could occur (especially when doing ubus calls inside a thread) and the main uloop loop would termi

[OpenWrt-Devel] [PATCH 6/6] ipq806x: enable usb3 packages in default profile

2015-04-02 Thread Mathieu Olivari
Default profile already enables usb2 so we'll do the same for usb3 now that we have support for it. Signed-off-by: Mathieu Olivari --- target/linux/ipq806x/profiles/default.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ipq806x/profiles/default.mk b/target

[OpenWrt-Devel] [PATCH 5/6] ipq806x: add platform usb support

2015-04-02 Thread Mathieu Olivari
This change adds DWC3 QCOM USB phys and TCSR drivers. These are cherry-picked from the following LKML threads: *dwc3 qcom: https://lkml.org/lkml/2014/9/12/599 *tcsr: https://lkml.org/lkml/2015/2/9/579 We're also adding an additional patch to add the corresponding dev nodes in the IPQ806x and AP148

[OpenWrt-Devel] [PATCH 1/6] ipq806x: clean-up kernel config file

2015-04-02 Thread Mathieu Olivari
Options that used to be in target config have been added to the generic config file, so remove them. Signed-off-by: Mathieu Olivari --- target/linux/ipq806x/config-3.18 | 1 - target/linux/ipq806x/config-4.0 | 4 2 files changed, 5 deletions(-) diff --git a/target/linux/ipq806x/config-3.1

[OpenWrt-Devel] [PATCH 0/6] Add USB support to ipq806x target

2015-04-02 Thread Mathieu Olivari
This patch set adds USB support to ipq806x. There are 3 main code areas which we modify: *target/linux/generic/config-*: add missing option which show-up when enabling USB on this target *target/linux/ipq806x: add patches & update configs accordingly *package/kernel/linux/modules/usb.mk: add 3 pac

[OpenWrt-Devel] [PATCH 4/6] kernel: add package for dwc3 usb driver used on ipq806x

2015-04-02 Thread Mathieu Olivari
Signed-off-by: Mathieu Olivari --- package/kernel/linux/modules/usb.mk | 53 + 1 file changed, 53 insertions(+) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index 4950ab8..09251fa 100644 --- a/package/kernel/linux/mod

[OpenWrt-Devel] [PATCH 2/6] linux: Add missing config options to generic configs

2015-04-02 Thread Mathieu Olivari
These missing options have been noticed while enabling the following configuration options on ipq806x, but they're available in the standard kernel: *ARCH_QCOM *CONFIG_USB_SUPPORT *CONFIG_USB_DWC3 *CONFIG_MFD_SYSCON Signed-off-by: Mathieu Olivari --- target/linux/generic/config-3.14 | 5 +

[OpenWrt-Devel] [PATCH 3/6] ipq806x: enable usb support

2015-04-02 Thread Mathieu Olivari
This change doesn't make USB functional but it does make it selectable from a configuration perspective. Signed-off-by: Mathieu Olivari --- target/linux/ipq806x/config-3.18 | 1 + target/linux/ipq806x/config-4.0 | 1 + 2 files changed, 2 insertions(+) diff --git a/target/linux/ipq806x/config-3

[OpenWrt-Devel] Question about conflict between ubus_invoke and uloop_run

2015-04-02 Thread XiaoFengMeng
HI ! I am Kevin and learning the ubus code and got something that is confusing me very much in the code. My question is regarding code in ubus_invoke -> ubus_complete_request, I can see that there are lots of uloop related code in "ubus_complete_request" if (!registered) {

Re: [OpenWrt-Devel] swconfig: set pvid to the same value as vid for untagged ports?

2015-04-02 Thread Roman Yeryomin
On 31 March 2015 at 00:10, Roman Yeryomin wrote: > I was little bit surprised it's not so currently. > Although I understand that, potentially, there are use cases when you > want port pvid to be different from it's untagged vlan id, but usually > one wants port ingress traffic to fall into the sa

Re: [OpenWrt-Devel] e2fsprogs broken on ARM...

2015-04-02 Thread Roman Yeryomin
On 30 March 2015 at 23:55, Roman Yeryomin wrote: > On 30 March 2015 at 22:21, John Crispin wrote: >> >> >> On 30/03/2015 21:02, John Szakmeister wrote: >>> Commit 988e3615e52b2cd9b9e07f4bbbd76494f7e0cb24 broke building >>> e2fsprogs on an ARM platform. It looks like that in version 1.42.10 >>> t

[OpenWrt-Devel] [PATCH] transmission: fallocate64 was bacported to uClibc

2015-04-02 Thread Roman Yeryomin
Signed-off-by: Roman Yeryomin --- .../patches/010-remove-fallocate64-definition.patch| 14 ++ .../patches/010_libtransmission_fallocate64_eglibc.patch | 12 2 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 net/transmission/patches/010-remo

[OpenWrt-Devel] [PATCH] samba36: add smb.conf.template to conffiles

2015-04-02 Thread Christian Schoenebeck
User might have modified/extended template direct or by LuCI application. So do not overwrite on update/upgrade. Signed-off-by: Christian Schoenebeck --- package/network/services/samba36/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/network/services/samba

Re: [OpenWrt-Devel] Translating LuCI? (https://luci.subsignal.org/pootle/ down)

2015-04-02 Thread Janne Cederberg
Hey Christian! Thank you for the info, helps a lot! I'm familiar with Poedit and po/mo files so will be a breeze :) Thanks again! -Janne On Apr 2, 2015 8:03 PM, "Christian Schoenebeck" < christian.schoeneb...@gmail.com> wrote: > Hi Janne, > > from my knowledge pottle is down since LuCI moved to

Re: [OpenWrt-Devel] Translating LuCI? (https://luci.subsignal.org/pootle/ down)

2015-04-02 Thread Christian Schoenebeck
Hi Janne, from my knowledge pottle is down since LuCI moved to GitHub. inside luci/modules/[package] and luci/applications/[application] on source tree you should find a "po" directory where translations are stored. Inside there is a templates/[file].pot This is the catalog (master) the transl

Re: [OpenWrt-Devel] question about target/linux/mxs/patches-3.xx/120-dt-add-i2c.patch

2015-04-02 Thread Dirk Neukirchen
On 02.04.2015 16:21, Harald Geyer wrote: > Hi! > > It seems 120-dt-add-i2c.patch was first added to the git repository > with commit bf323c768d5393a43a3fc74c5059c114f8fac4c0 > "mxs: initial 3.13 support" > > As of today the mainline kernel still lacks the äquivalent functionality. > I'd like to g

[OpenWrt-Devel] question about target/linux/mxs/patches-3.xx/120-dt-add-i2c.patch

2015-04-02 Thread Harald Geyer
Hi! It seems 120-dt-add-i2c.patch was first added to the git repository with commit bf323c768d5393a43a3fc74c5059c114f8fac4c0 "mxs: initial 3.13 support" As of today the mainline kernel still lacks the äquivalent functionality. I'd like to get this little devicetree snippet upstream, but I couldn'

[OpenWrt-Devel] [PATCH] kernel: watchdog modules should be loaded on boot

2015-04-02 Thread Helmut Schaa
Otherwise procd cannot initialize the watchdog since the module will be loaded later. Tested with booke_wdt. Signed-off-by: Helmut Schaa --- package/kernel/linux/modules/other.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/linux/modules/other.mk b/p

[OpenWrt-Devel] [PATCH 2/2] mvebu: refresh patch

2015-04-02 Thread Claudio Leite
Signed-off-by: Claudio Leite --- .../206-mvebu_wrt1900ac_use_pwm-fan_rather_than_gpio-fan.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mvebu/patches-3.18/206-mvebu_wrt1900ac_use_pwm-fan_rather_than_gpio-fan.patch b/target/linux/mvebu/patches-3

[OpenWrt-Devel] [PATCH 1/2] mvebu: backport cpuidle improvements

2015-04-02 Thread Claudio Leite
Upstream commits 43b68879de27b1993518687fbc6013da80cdcbfe and ce6031c89a35cffd5a5992b08377b77f49a004b9 improve the cpuidle driver on Armada XP. The latter commit improves performance at the slight expense of power consumption. Signed-off-by: Claudio Leite --- ...uidle-mvebu-Fix-the-CPU-PM-notifi

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
On 10 March 2015 at 04:30, Ian Kent wrote: > +@@ -93,6 +113,9 @@ struct ssb_sprom { > + u16 boardflags2_lo; /* Board flags (bits 32-47) */ > + u16 boardflags2_hi; /* Board flags (bits 48-63) */ > + /* TODO store board flags in a single u64 */ > ++ /* spromrev 11 */ >

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
On 2 April 2015 at 11:03, Ian Kent wrote: > On Thu, 2015-04-02 at 10:22 +0200, Rafał Miłecki wrote: >> Other than that, current way of handling revisions is quite messy, I >> guess you noticed it by yourself. I started reworking, see: >> http://patchwork.linux-mips.org/patch/9659/ >> Again, my cha

[OpenWrt-Devel] kernel: add usb-serial-simple module

2015-04-02 Thread Dirk Neukirchen
replaces kmod-usb-serial-motorola-phone it's found only in Kernel <3.12 This module handles many simple USB serial devices like Motorola Phones, GPS reveivers in Kernels above 3.14 Signed-off-by: Dirk Neukirchen --- package/kernel/linux/modules/usb.mk | 28 1 file

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Rafał Miłecki
On 2 April 2015 at 11:57, Ian Kent wrote: > On Thu, 2015-04-02 at 17:47 +0800, Ian Kent wrote: >> On Thu, 2015-04-02 at 09:45 +0200, Rafał Miłecki wrote: >> > On 10 March 2015 at 04:30, Ian Kent wrote: >> > > The R8000 nvram is larger than 32k, increase nvram allocation to >> > > 64k to accomadat

[OpenWrt-Devel] kernel: add garmin_gps module

2015-04-02 Thread Dirk Neukirchen
OpenWrt on sailboats requested: https://forum.openwrt.org/viewtopic.php?id=56586 Signed-off-by: Dirk Neukirchen --- package/kernel/linux/modules/usb.mk | 15 +++ 1 file changed, 15 insertions(+) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Ian Kent
On Thu, 2015-04-02 at 17:47 +0800, Ian Kent wrote: > On Thu, 2015-04-02 at 09:45 +0200, Rafał Miłecki wrote: > > On 10 March 2015 at 04:30, Ian Kent wrote: > > > The R8000 nvram is larger than 32k, increase nvram allocation to > > > 64k to accomadate. > > > > I handled this by sending nvram.c pat

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Ian Kent
On Thu, 2015-04-02 at 09:45 +0200, Rafał Miłecki wrote: > On 10 March 2015 at 04:30, Ian Kent wrote: > > The R8000 nvram is larger than 32k, increase nvram allocation to > > 64k to accomadate. > > I handled this by sending nvram.c patch for mainline: > http://patchwork.linux-mips.org/patch/9651/

[OpenWrt-Devel] kernel: add uinput module

2015-04-02 Thread Dirk Neukirchen
This module is needed for bluetooth audio playback with pulseaudio 6 and bluez5. a working guide can be found in the wiki: http://wiki.openwrt.org/wiki/bluetooth.audio (additional packages/modifications are required and submitted to github feeds) tested with: Android mobile (Sony Xperia M) as aud

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Ian Kent
On Thu, 2015-04-02 at 10:22 +0200, Rafał Miłecki wrote: > Hi Ian, > > On 10 March 2015 at 04:30, Ian Kent wrote: > > Add new sprom revision 11 variables to the nvram -> sprom reader. > > > > Signed-off-by: Ian Kent > > There are few problems with bcm53xx's SPROM and I've few comments to your >

[OpenWrt-Devel] Translating LuCI? (https://luci.subsignal.org/pootle/ down)

2015-04-02 Thread Janne Cederberg
Greetings! TL;DR: Anyone able to write a short description on LuCI translation process and tools needed? LONGER EXPLANATION: I'm hoping to create a Finnish translation for the LuCI interface. However I can't find the instructions for the translation process as https://luci.subsignal.org/pootle/ ha

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
Hi Ian, On 10 March 2015 at 04:30, Ian Kent wrote: > Add new sprom revision 11 variables to the nvram -> sprom reader. > > Signed-off-by: Ian Kent There are few problems with bcm53xx's SPROM and I've few comments to your patch. bcm53xx's SPROM driver is modified version of mainline arch/mips/b

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Rafał Miłecki
On 10 March 2015 at 04:30, Ian Kent wrote: > The R8000 nvram is larger than 32k, increase nvram allocation to > 64k to accomadate. I handled this by sending nvram.c patch for mainline: http://patchwork.linux-mips.org/patch/9651/ And backporting all changes to bcm53xx: https://dev.openwrt.org/chan