Re: [LEDE-DEV] [PATCH v2] ramips: add support for GL-inet GL-MT300N-V2

2017-05-13 Thread Daniel Golle
On Fri, May 12, 2017 at 05:51:18PM -0500, L. D. Pinney wrote: > On Fri, May 12, 2017 at 5:29 PM, Mathias Kresin wrote: > > 12.05.2017 03:37, kyson lok: > >> > >> On Fri, May 12, 2017 at 6:18 AM, L. D. Pinney wrote: > > +&spi0 { > + status = "okay"; > + > + m25

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Mauro Mozzarelli
It looks like the problem extends also to other systems and might be traced back to the relocation of /usr/bin/ip to /sbin/ip Here are more errors related to this issue: May 13 12:11:40 volta uhttpd[2297]: sh: /usr/bin/ip: not found May 13 12:11:45 volta uhttpd[2297]: sh: /usr/bin/ip: not f

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Yousong Zhou
On 13 May 2017 at 19:15, Mauro Mozzarelli wrote: > It looks like the problem extends also to other systems and might be traced > back to the relocation of > > /usr/bin/ip > > to > > /sbin/ip > For your information, fix for mwan3 has just been pushed to packages feed a while ago (https://github.co

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Mauro Mozzarelli
Thanks Yousong, Merci Etienne, I updated and rebuilt with the fix r4117 and I already communicated to Etienne that this fixes MWAN Interface Systemlog (this now shows), but both my interfaces remain marked as offline and red, when they are in fact up and connected. Backing to r4041 (which i

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Yousong Zhou
On 13 May 2017 at 19:51, Mauro Mozzarelli wrote: > Thanks Yousong, Merci Etienne, > > > I updated and rebuilt with the fix r4117 and I already communicated to > Etienne that this fixes MWAN Interface Systemlog (this now shows), but both > my interfaces remain marked as offline and red, when they a

[LEDE-DEV] CPU locked at lowest frequency on BCM2078 targets

2017-05-13 Thread Bryan Mayland
Hello, I work on an open source project which uses the Raspberry Pi with LEDE as the host board. I've noticed that the kernel config does not include the BCM2835 cpufreq driver and therefore the CPU remains locked at the frequency set by the bootloader. This severely degrades the performance of the

Re: [LEDE-DEV] [PATCH] ipq806x: Add nand boot support for ipq40xx AP-DK04.1-C1

2017-05-13 Thread Christian Lamparter via Lede-dev
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Hello Ram, On Thursday, May 11, 2

Re: [LEDE-DEV] [PATCH 2/3] ramips-mt7621: add GPIO-config for Ubiquiti-EdgeRouterX(-SFP)

2017-05-13 Thread Sven Roederer
On Montag, 8. Mai 2017 08:23:50 CEST Mathias Kresin wrote: > 07.05.2017 23:24, Sven Roederer: > > On Sonntag, 7. Mai 2017 12:25:39 CEST you wrote: > >> Just an opinion: being able to disable/enable PoE for each port is really > >> useful when you want to remotely reboot a device plugged into your P

Re: [LEDE-DEV] mwan3 not working

2017-05-13 Thread Etienne Champetier
Hi Mauro, 2017-05-13 4:51 GMT-07:00 Mauro Mozzarelli : > Thanks Yousong, Merci Etienne, > > > I updated and rebuilt with the fix r4117 and I already communicated to > Etienne that this fixes MWAN Interface Systemlog (this now shows), but both > my interfaces remain marked as offline and red, when

[LEDE-DEV] [PATCH v2 03/19] procd: system: always support staged sysupgrade

2017-05-13 Thread Matthias Schiffer
In preparation for switching all targets to the staged sysupgrade mechanism, upgraded is always built, and the "nandupgrade" ubus method is renamed to "sysupgrade". To make the migration easier, support for the old name "nandupgrade" and the "upgrade" method that will become unused with the staged

[LEDE-DEV] [PATCH v2 01/19] procd: clean up trailing whitespace in nand.sh

2017-05-13 Thread Matthias Schiffer
Signed-off-by: Matthias Schiffer --- package/system/procd/files/nand.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 01dba61644..b5f86e0301 100644 --- a/package/system/procd/files/nand.sh +++

[LEDE-DEV] [PATCH v2 00/19] Universal staged sysupgrade and assorted fixes

2017-05-13 Thread Matthias Schiffer
Text from my RFC mail: --- When talking about https://bugs.lede-project.org/index.php?do=details&task_id=685 with jow and lynxis, we came to the conclusion that the best way to fix sysupgrades would be to generalize the staged sysupgrade used on NAND devices to work on all targets. That is what th

[LEDE-DEV] [PATCH v2 02/19] procd: prepare NAND sysupgrade for making upgraded dynamically linked

2017-05-13 Thread Matthias Schiffer
Use install_bin to copy upgraded with all dependencies. The old name /tmp/upgraded is temporarily retained as a symlink to avoid breaking things. Signed-off-by: Matthias Schiffer --- package/system/procd/files/nand.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packa

[LEDE-DEV] [PATCH v2 04/19] procd: upgraded: link dynamically, chroot during exec

2017-05-13 Thread Matthias Schiffer
The chroot ensures we don't reference anything on the rootfs and is reverted after the upgraded exec. While we're at it, also improve error handling and logging at bit. This change also required changes to sysupgrade, as the dynamically linked version is expected at a different location, and libra

[LEDE-DEV] [PATCH v2 13/19] base-files: add support for staged sysupgrades from failsafe mode

2017-05-13 Thread Matthias Schiffer
Signed-off-by: Matthias Schiffer --- .../base-files/files/lib/preinit/40_run_failsafe_hook | 6 +- .../base-files/files/lib/preinit/99_10_failsafe_login | 11 +++ package/base-files/files/sbin/sysupgrade | 18 +- 3 files changed, 25 insertions(+), 10 d

[LEDE-DEV] [PATCH v2 09/19] fstools: snapshot: handle jffs2 conversion using upgraded

2017-05-13 Thread Matthias Schiffer
We can reuse the kill_remaining and run_ramfs facilities of the stage2 run by upgraded. Signed-off-by: Matthias Schiffer --- package/system/fstools/Makefile | 2 +- package/system/fstools/files/snapshot | 14 -- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pa

[LEDE-DEV] [PATCH v2 08/19] fstools: clean up trailing whitespace in snapshot script

2017-05-13 Thread Matthias Schiffer
Signed-off-by: Matthias Schiffer --- package/system/fstools/files/snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/system/fstools/files/snapshot b/package/system/fstools/files/snapshot index c1a5b733f3..baf24f1e3e 100644 --- a/package/system/fstools/files/snap

[LEDE-DEV] [PATCH v2 14/19] ramips: sysupgrade: move nand_do_upgrade call to platform_do_upgrade

2017-05-13 Thread Matthias Schiffer
All targets with NAND support should gradually move their nand_do_upgrade calls from platform_pre_upgrade to platform_do_upgrade. Signed-off-by: Matthias Schiffer --- target/linux/ramips/base-files/lib/upgrade/platform.sh | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git

[LEDE-DEV] [PATCH v2 06/19] procd: remove procd-nand package

2017-05-13 Thread Matthias Schiffer
We always want to support staged upgrades now, so it's better to include upgraded into the main package. /lib/upgrade/nand.sh is moved to base-files. The procd-nand-firstboot package is removed for now, it may return later as a separate package. Signed-off-by: Matthias Schiffer --- package/base

[LEDE-DEV] [PATCH v2 10/19] procd: remove code that has become unnecessary after sysupgrade changes

2017-05-13 Thread Matthias Schiffer
Signed-off-by: Matthias Schiffer Note: obviously, this patch should go into the procd repo when it is actually applied; it is provided like this for now to allow easier testing of the whole series. --- ...-that-has-become-unnecessary-after-sysupg.patch | 120 + 1 file changed

[LEDE-DEV] [PATCH v2 05/19] procd: upgraded: add support for passing a "command" argument to stage2

2017-05-13 Thread Matthias Schiffer
This allows us to make use of upgraded in "snapshot convert" as well. Signed-off-by: Matthias Schiffer Note: obviously, this patch should go into the procd repo when it is actually applied; it is provided like this for now to allow easier testing of the whole series. --- ...d-support-for-passin

[LEDE-DEV] [PATCH v2 12/19] base-files: sysupgrade cleanup

2017-05-13 Thread Matthias Schiffer
Some functions only used by stage2 are moved there from common.sh. One piece that could still use more cleanup is platform_pre_upgrade: many targets reference files from there are aren't available in the ramfs, so we need to evaluate it before the switch; conversely, flash writes happen in that fu

[LEDE-DEV] [PATCH v2 11/19] procd: init: add support for sysupgrades triggered from preinit

2017-05-13 Thread Matthias Schiffer
This will allow to add sysupgrade support via upgraded for failsafe mode. Signed-off-by: Matthias Schiffer Note: obviously, this patch should go into the procd repo when it is actually applied; it is provided like this for now to allow easier testing of the whole series. --- ...pport-for-sysupg

[LEDE-DEV] [PATCH v2 07/19] base-files: always use staged sysupgrade

2017-05-13 Thread Matthias Schiffer
Support for the -d and -p options is dropped; it may be added again at some point by adding these flags to the ubus sysupgrade call. A downside of this is that we get a lot less information about the progress of the upgrade: as soon as the actual upgrade starts, all shell sessions are killed to al

[LEDE-DEV] [PATCH v2 18/19] sunxi: sysupgrade: don't write partitions twice

2017-05-13 Thread Matthias Schiffer
When existing partitions are retained, the dd call writing the uboot image in the space before the first partition was accidentally writing the whole image, making the code for individual partitions redundant. Limit the copy to 1016KiB (the first 8KiB are skipped, and the first partition starts at

[LEDE-DEV] [PATCH v2 17/19] x86: sysupgrade: explicitly rescan disk after writing partition table

2017-05-13 Thread Matthias Schiffer
This should ensure that the kernel partition can be mounted in platform_copy_config when its size has changed. Signed-off-by: Matthias Schiffer --- target/linux/x86/base-files/lib/upgrade/platform.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux/x86/base-files/lib/upgrad

[LEDE-DEV] [PATCH v2 19/19] sunxi: sysupgrade: sync with x86

2017-05-13 Thread Matthias Schiffer
sunxi sysupgrade was based on the x86 implementation; sync fixes and other changes from the current x86 version: x86: fix sysupgrades on disks with 4k block size x86: sysupgrade: move partition table change check to platform_check_image x86: sysupgrade: refactor platform_do_upgrade x86: sysupgrade

[LEDE-DEV] [PATCH v2 16/19] x86: sysupgrade: refactor platform_do_upgrade

2017-05-13 Thread Matthias Schiffer
By returning early when no upgrade device can be found and handling the SAVE_PARTITIONS=0 case differently, we can get rid of two levels of if. Signed-off-by: Matthias Schiffer --- .../linux/x86/base-files/lib/upgrade/platform.sh | 69 +++--- 1 file changed, 36 insertions(+), 3

[LEDE-DEV] [PATCH v2 15/19] x86: sysupgrade: move partition table change check to platform_check_image

2017-05-13 Thread Matthias Schiffer
The staged sysupgrade will prevent us from using ask_bool in platform_do_upgrade; therefore, the check is moved to platform_check_image. Signed-off-by: Matthias Schiffer --- .../linux/x86/base-files/lib/upgrade/platform.sh | 29 +++--- 1 file changed, 25 insertions(+), 4 deleti

Re: [LEDE-DEV] [PATCH] ipq806x: Add nand boot support for ipq40xx AP-DK04.1-C1

2017-05-13 Thread Chris Blake
On Sat, May 13, 2017 at 10:36 AM, Christian Lamparter wrote: > Hello Ram, > > On Thursday, May 11, 2017 8:39:46 PM CEST Christian Lamparter wrote: >> On Thursday, May 11, 2017 10:15:58 PM CEST Ram Chandra Jangir wrote: >> > I added nand pinmux in https://patchwork.ozlabs.org/patch/761243/ , >> > C

[LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Val Kulkov
Is there any convention on the use of uid and gid when creating new users or groups? Can someone point me to it, if it exists? I noticed that two packages, icecast and postfix, compete for the same uid=87: icecast's Makefile: USERID:=icecast=87:icecast=87 postfix's postfix.init: user_exists

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Eric Luehrsen
On 05/13/2017 06:23 PM, Val Kulkov wrote: > Is there any convention on the use of uid and gid when creating new > users or groups? Can someone point me to it, if it exists? > > I noticed that two packages, icecast and postfix, compete for the same uid=87: > > icecast's Makefile: > USERID:=iceca

Re: [LEDE-DEV] Sysupgrade on Mikrotik RB912

2017-05-13 Thread Sergey Ryazanov
Hello, On Fri, May 12, 2017 at 2:35 PM, Felix Fietkau wrote: > On 2017-05-12 12:47, Edwin van Drunen wrote: >> Hello Sergey, >> >> When using sysupgrade on an RB912 running a full LEDE 17.01.1 to install a >> custom image made with the image builder, the kernel is installed just fine. >> Before

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-13 Thread Daniel Golle
Hi Val, On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: > Is there any convention on the use of uid and gid when creating new > users or groups? Can someone point me to it, if it exists? > > I noticed that two packages, icecast and postfix, compete for the same uid=87: > > icecast's

Re: [LEDE-DEV] CPU locked at lowest frequency on BCM2078 targets

2017-05-13 Thread Stijn Tintel
On 13-05-17 14:48, Bryan Mayland wrote: > Hello, I work on an open source project which uses the Raspberry Pi > with LEDE as the host board. I've noticed that the kernel config does > not include the BCM2835 cpufreq driver and therefore the CPU remains > locked at the frequency set by the bootloade