[LEDE-DEV] Clarification on recursive dependencies

2016-07-05 Thread Daniel Curran-Dickinson
Hi Felix, I'd like clarification on https://git.lede-project.org/?p=source.git;a=commitdiff;h=71753a8286dcb 4dedbb6d4792b0fd5dd305c3338 for two reasons: with a patch picking a default SSL provider, the two packages in commit emitted a recursive dependency error. It made sense to me that it

Re: [LEDE-DEV] [PATCH] Mountd: Add sysupgrade functionality.

2016-07-05 Thread John Crispin
Hi Philipp the thing that i am worried about is this process 1) plug a stick 2) mountd detects the upgrade file 3) mountd triggers sysupgrade 4) system reboots 5) goto 1) there is no way to know at what point between 3 and 4 we need to unplug the usb stick John On 04/07/2016 18:56, Phi

Re: [LEDE-DEV] [PATCH procd] system: add reboot method to system ubus object

2016-07-05 Thread John Crispin
On 05/07/2016 17:12, Rafał Miłecki wrote: > Sometimes, for various reasons, user may want to reboot a device. This > is a common task and it makes sense to support it with something common > like a procd. > > Right now both: LuCI and LuCI2 implement this feature on their own with > luci-rpc-luci

[LEDE-DEV] Bikeshedding vs patch assessment

2016-07-05 Thread Daniel Curran-Dickinson
Hi all, I just thought I would observe that sometimes it's kind of fuzzy between when as a dev one is making appropriate suggestions for improvement and when one is unconsciously engaging in bikeshedding on work someone has done.  I won't claim it's easy, just pointing out that there is a differen

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Tobias Welz
Bridging in client mode is not supported by most devices. That's why you need a "pseudo bridge" with relayd here: https://wiki.openwrt.org/doc/recipes/relayclient On 05.07.2016 23:14, Baptiste Clenet wrote: Ok. I've got a router with one ethernet port and wifi in STA mode. The user which is goin

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Baptiste Clenet
Ok. I've got a router with one ethernet port and wifi in STA mode. The user which is going to use the router will be able to connect this router to internet router either by ethernet or wifi. So if he plugs ethernet and decide to connect his router by wifi also, ethernet and wifi will be on same ne

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Tobias Welz
I think we need to know more about your setup, and what you want to achieve. Let's say we have LAN and WAN interfaces as ethernet ports, and also WIFI. Should the WIFI be in AP or in STA mode? Shall wifi be bridged to LAN or to the WAN interface? Original Message Subject: Re:

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Aaron Z
On Tue, Jul 5, 2016 at 1:33 PM, Baptiste Clenet wrote: > Wifi and ethernet are in client mode. > pseudo bridge with relayd? Can you describe a bit? Here is how I do it on a Nanostation M2Loco: #/etc/config/network config interface 'lan' option type 'bridge' option stp '1' o

[LEDE-DEV] [PATCH] lantiq: mac address setting on BTHOMEHUBV3A

2016-07-05 Thread Ben Mulvihill
Rename uboot environment partition on BT Home Hub 3A so that mac address setting works correctly. Also, the mac address field in the ath9k calibration data is not used, and should not be referenced in the dts. Signed-off-by: Ben Mulvihill --- diff -uprN a/target/linux/lantiq/dts/BTHOMEHUBV3A.d

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Baptiste Clenet
Wifi and ethernet are in client mode. pseudo bridge with relayd? Can you describe a bit? 2016-07-05 19:24 GMT+02:00 Tobias Welz : > Hi, > it's just a little problem if you are in in client mode, then you need a > pseudo bridge with relayd. > If you use AP mode then you can just bridge LAN and WIFI

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Tobias Welz
Hi, it's just a little problem if you are in in client mode, then you need a pseudo bridge with relayd. If you use AP mode then you can just bridge LAN and WIFI together, which is the default anyway. A factory default will bring you to this setting, turn on wifi and you are done. Regards Tobia

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Baptiste Clenet
Hi Tobias, I see, I tried to bridge them, but I got a problem, I'll try again. Isn't it a problem if both interfaces are connected to same network in a bridge? 2016-07-05 19:04 GMT+02:00 Tobias Welz : > Hello, > for me it looks a bit strange, why not put both interfaces together on Layer > 2 - so

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Tobias Welz
Hello, for me it looks a bit strange, why not put both interfaces together on Layer 2 - so bridge them together - which is the default anyway? It looks very strange to me, to split that stuff on layer 3 with the same subnet, which now need a lot of hacking to bring it to work again, which i pe

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Baptiste Clenet
Hi Baptiste, I didn't see your mail, it was on SPAM, don't know why. My use case: I won't be able to control the router and people who will use it should be able to connect either by ethernet or by wifi to another product. So one solution could be to allow only one interface at a time. How can I d

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Ben Greear
On 07/05/2016 08:13 AM, Baptiste Clenet wrote: Thanks Ben for your answer. How to use arp-flter? Could you suggest a configuration which solve the problem? I don't have time to dig into your specific issue, but google for arp_filter and you should find some useful information. Thanks, Ben --

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-05 Thread Baptiste Clenet
Thanks Ben for your answer. How to use arp-flter? Could you suggest a configuration which solve the problem? Cheers, 2016-07-05 0:57 GMT+02:00 Ben Greear : > On 07/04/2016 02:53 PM, Baptiste Jonglez wrote: >> >> On Mon, Jul 04, 2016 at 10:54:27PM +0200, Baptiste Clenet wrote: >>> >>> Hi Wang, >>>

[LEDE-DEV] [PATCH procd] system: add reboot method to system ubus object

2016-07-05 Thread Rafał Miłecki
Sometimes, for various reasons, user may want to reboot a device. This is a common task and it makes sense to support it with something common like a procd. Right now both: LuCI and LuCI2 implement this feature on their own with luci-rpc-luci2-system reboot and luci-rpc-sys reboot. This leads to c

Re: [LEDE-DEV] Mirror Hosting Offer

2016-07-05 Thread Chris Blake
Hello Jo, >Hi Chris, > >first off, thank you for the offer - we're always interested in hosting >donations :) > >In anticipation of the upcoming release we will need to increase the >number of build slaves to be able to process multiple branches in >parallel, for that a few instances with lots of

Re: [LEDE-DEV] Mirror Hosting Offer

2016-07-05 Thread Jo-Philipp Wich
Hi Chris, first off, thank you for the offer - we're always interested in hosting donations :) In anticipation of the upcoming release we will need to increase the number of build slaves to be able to process multiple branches in parallel, for that a few instances with lots of disk space (1-2TB)

[LEDE-DEV] [PATCH V2 procd] system: fix localtime value in ubus info method output

2016-07-05 Thread Rafał Miłecki
Function mktime respects current time zone and calling it results in converting time back to the UTC. It means we were never returning a time for local zone but GMT one. The easiest solution is to use tm_gmtoff from struct tm. Unfortunately this isn't part of POSIX but it seems to be the best idea

Re: [LEDE-DEV] [PATCH procd] system: fix localtime value in ubus info method output

2016-07-05 Thread Rafał Miłecki
On 5 July 2016 at 10:23, John Crispin wrote: > seems you used an older tree. this patch does not apply due to commit > f355e233714e ("add ifdefs to make system.c compile on non-linux systems") Ouch, I was using git://nbd.name/luci2/procd.git, sorry for mistake. V2 soon. -- Rafał __

[LEDE-DEV] [PATCH] usb: Remove annoying warning about bogus URB

2016-07-05 Thread Alexey Brodkin
When USB Wi-Fi dongle based on Atheros AR9271 is connected to OHCI (USB 1.1) controller following warnings flood debug console: >8--- usb 1-1: new full-speed USB device number 2 using ohci-platform usb 1-1: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0

[LEDE-DEV] [PATCH] linux/archs38: Disable USB 2.0

2016-07-05 Thread Alexey Brodkin
As of today USB 2.0 (AKA EHCI) doesn't work on axs103 board and so there's no reason to build corresponding software for it. Once USB 2.0 gets fixed on axs103 thi patch might be reverted. Signed-off-by: Alexey Brodkin --- target/linux/archs38/generic/profiles/00-default.mk | 2 +- target/linux/

Re: [LEDE-DEV] fstools testing help

2016-07-05 Thread Álvaro Fernández Rojas
Hi Josua Not mounted rw. Unfortunately I didn't have time to check it thoroughly and I didn't see any remarkable messages. – Álvaro. El 5/7/16 a las 14:31, Josua Mayer escribió: > Hi Álvaro, > > Am 05.07.2016 um 14:17 schrieb Álvaro Fernández Rojas: >> It fails when trying to boot a Raspberry

Re: [LEDE-DEV] fstools testing help

2016-07-05 Thread Josua Mayer
Hi Álvaro, Am 05.07.2016 um 14:17 schrieb Álvaro Fernández Rojas: > It fails when trying to boot a Raspberry Pi, and then it segfaults when > calling mount_root without any parameters.\ How do you see it fail when it boots? Messages? / not mounted rw? > > – Álvaro > > El 5/7/16 a las 14:14, Josua

Re: [LEDE-DEV] fstools testing help

2016-07-05 Thread Álvaro Fernández Rojas
It fails when trying to boot a Raspberry Pi, and then it segfaults when calling mount_root without any parameters. – Álvaro El 5/7/16 a las 14:14, Josua Mayer escribió: > Hi John, > > Am 05.07.2016 um 09:44 schrieb John Crispin: >> >> On 30/06/2016 09:23, Álvaro Fernández Rojas wrote: >>> I wil

Re: [LEDE-DEV] fstools testing help

2016-07-05 Thread Josua Mayer
Hi John, Am 05.07.2016 um 09:44 schrieb John Crispin: > > On 30/06/2016 09:23, Álvaro Fernández Rojas wrote: >> I will try to test it on RPi tonight. >> >> Regards, >> Álvaro. >> >> El 30/6/16 a las 9:21, John Crispin escribió: >>> Hi, >>> >>> i have just merged to fstools patches into my staging

Re: [LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-05 Thread Bastian Bittorf
* ad...@yapic.net [05.07.2016 10:55]: > +wget_if_URL(){ > + local url="$1" > + local url_repl_file="/tmp/sysupgrade-URL.bin" > + > + case "$url" in > + http://*|https://*|ftp://*) break ;; > + *) return 1 ;; please use 'return 0' here, otherwise... > + esa

Re: [LEDE-DEV] [BUG] package/devel/valgrind: cannot build for sunxi

2016-07-05 Thread Felix Fietkau
On 2016-07-05 00:27, Heinrich Schuchardt wrote: > Sunxi Lamobo R1 is a subarchitecture of arm_v7. So valgrind should build > out of the box. > > Unfortunately it is disabled, because host_cpu = arm and not arm_v7. > > A messy workaround is to patch configure.ac adding > > arm*) > AC

Re: [LEDE-DEV] [PATCH procd] system: fix localtime value in ubus info method output

2016-07-05 Thread John Crispin
On 04/07/2016 11:15, Rafał Miłecki wrote: > Function mktime respects current time zone and calling it results in > converting time back to the UTC. It means we were never returning a > time for local zone but GMT one. > > The easiest solution is to use tm_gmtoff from struct tm. Unfortunately > t

[LEDE-DEV] [PATCH] procd: remove pidfile after unexpected termination without respawn

2016-07-05 Thread Jurgen Van Ham
When procd detects a daemon halts and it is not configured to be respawned, the pidfile has to be removed. Signed-off-by: Jurgen Van Ham --- service/instance.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/instance.c b/service/instance.c index dccf4b4..d7d1f82 1

Re: [LEDE-DEV] fstools testing help

2016-07-05 Thread John Crispin
On 30/06/2016 09:23, Álvaro Fernández Rojas wrote: > I will try to test it on RPi tonight. > > Regards, > Álvaro. > > El 30/6/16 a las 9:21, John Crispin escribió: >> Hi, >> >> i have just merged to fstools patches into my staging tree that address >> a double mount issue and add back ext4 supp