[LEDE-DEV] MT7621 support Jumbo frames

2017-04-23 Thread Alberto Bursi
(resent to the list because my client decided to use HTML for some reason) That patch is a raw kernel patch, you need to integrate it in LEDE's buildsystem and hope that he is working with LEDE patches already applied. Copy the patch's text in a text file and place this file in the /patches-* f

Re: [LEDE-DEV] MT7621 support Jumbo frames

2017-04-23 Thread Jaap Buurman
Thank you all for the suggestions. I've tried the following steps: 1) Add the patch in a file with a name so that it will be added last: 999-mtu.patch. This failed during the build. 2) Next, I wanted to write these changes manually to a patch with quilt. However, the file /drivers/net/ethernet/med

Re: [LEDE-DEV] MT7621 support Jumbo frames

2017-04-23 Thread Alberto Bursi
Weird, I'm not seeing the whole "mediatek" folder if I try to follow your steps from a fresh source download with LEDE master (trunk/HEAD, whatever). I've checked the LEDE 17.01 branch and yes, there the "mediatek" folder is there and also that file. Kernel version is the same for both, 4.4.61

Re: [LEDE-DEV] MT7621 support Jumbo frames

2017-04-23 Thread Jaap Buurman
The mediatek folder is not there by default. It gets generated in the during the "make" command when compiling the image by the patches. It can be found at the following full path: source/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-4.4.61/drivers/net/ethernet/mediatek I will try i

[LEDE-DEV] Proper way to deal with "dual firmware" ar71xx devices

2017-04-23 Thread Bjørn Mork
Hello, Many devices make use of "dual firmware" configurations, splitting the available flash and allowing two complete and independent installations. This works fine for devices like the Linksys WRT1900AC etc, where the boot loader make sure the kernel command line "root=" parameter matches the b

[LEDE-DEV] early printk breaks kernel on the clearfog board

2017-04-23 Thread Josua Mayer
Hi everybody, I noticed a serious problem with a Clearfog build that enables CONFIG_KERNEL_EARLY_PRINTK=y. In short: after Loading Kernel, the serial console stays completely silent, and apparently the board does *not* boot. This came as a serious surprise to me. Turns out the reason for this is

Re: [LEDE-DEV] Proper way to deal with "dual firmware" ar71xx devices

2017-04-23 Thread Alberto Bursi
On 04/23/2017 08:40 PM, Bjørn Mork wrote: > Hello, > > Many devices make use of "dual firmware" configurations, splitting the > available flash and allowing two complete and independent installations. > This works fine for devices like the Linksys WRT1900AC etc, where the > boot loader make sure

Re: [LEDE-DEV] Proper way to deal with "dual firmware" ar71xx devices

2017-04-23 Thread Bjørn Mork
Alberto Bursi writes: > Can this "bs" partition be manipulated on installation or later? Yes. The only thing preventing that is the default "(ro)" in the LEDE images. But by using mtd-rw it can be manipulated. That's how I fixed my installation. I believe there are tools to manipulate it in

[LEDE-DEV] dnsmasq-full should deselect dnsmasq

2017-04-23 Thread Andrew McConachie
Hi LEDE Devs, If this is not the right place to report this please let me know. When selecting package dnsmasq-full from make menuconfig I believe it should deselect package dnsmasq. Otherwise this happens when selecting dnsmasq-full from an otherwise default config. Configuring ppp-mod-p

[LEDE-DEV] [RFC 04/13] procd: upgraded: add support for passing a "command" argument to stage2

2017-04-23 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] [RFC 00/13] Universal staged sysupgrade

2017-04-23 Thread Matthias Schiffer
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 this patchset does, with some

[LEDE-DEV] [RFC 02/13] procd: system: always support staged sysupgrade

2017-04-23 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] [RFC 01/13] procd: prepare NAND sysupgrade for making upgraded dynamically linked

2017-04-23 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 | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/p

[LEDE-DEV] [RFC 03/13] procd: upgraded: link dynamically, chroot during exec

2017-04-23 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] [RFC 12/13] ramips: sysupgrade: move nand_do_upgrade call to platform_do_upgrade

2017-04-23 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] [RFC 07/13] fstools: snapshot: handle jffs2 conversion using upgraded

2017-04-23 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 | 16 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a

[LEDE-DEV] [RFC 11/13] base-files: add support for staged sysupgrades from failsafe mode

2017-04-23 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] [RFC 08/13] procd: remove code that has become unnecessary after sysupgrade changes

2017-04-23 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] [RFC 09/13] procd: init: add support for sysupgrades triggered from preinit

2017-04-23 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] [RFC 05/13] procd: remove procd-nand package

2017-04-23 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] [RFC 13/13] x86: sysupgrade: explicitly rescan disk after writing partition table

2017-04-23 Thread Matthias Schiffer
This should ensure that the kernel partition can be mounted in platform_copy_config when its size has changed. The following "sleep" becomes unnecessary and is removed (it was skipped anyways when a change of the partition table was detected). While we're at it, also remove the ask_bool that can't

[LEDE-DEV] [RFC 06/13] base-files: always use staged sysupgrade

2017-04-23 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] [RFC 10/13] base-files: sysupgrade cleanup

2017-04-23 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

Re: [LEDE-DEV] early printk breaks kernel on the clearfog board

2017-04-23 Thread Syrone Wong
You may want to enable CONFIG_DEBUG_MVEBU_UART0_ALTERNATE or CONFIG_DEBUG_MVEBU_UART1_ALTERNATE if early printk is being enabled. Best Regards, Syrone Wong On Mon, Apr 24, 2017 at 3:39 AM, Josua Mayer wrote: > Hi everybody, > > I noticed a serious problem with a Clearfog build that enables > C

[LEDE-DEV] [PATCH netifd] Revert: set prefix indicator flag when IPv6 prefix lifetime, changes

2017-04-23 Thread Eric Luehrsen
This reverts commit a03216660797173fbe67866f75564e3fec9c1e8d. The previous change causes IFUP events to occur from 30 seconds to 30 minutes depending on various conditions at the WAN6 (typ.) interface. If a DHCPv6 lease is 24 hours and the connection is stable, then in other linux distro we would e

Re: [LEDE-DEV] [PATCH netifd] Revert: set prefix indicator flag when IPv6 prefix lifetime, changes

2017-04-23 Thread Eric Luehrsen
On 04/23/2017 10:23 PM, Eric Luehrsen wrote: > This reverts commit a03216660797173fbe67866f75564e3fec9c1e8d. The previous > change causes IFUP events to occur from 30 seconds to 30 minutes depending > on various conditions at the WAN6 (typ.) interface. If a DHCPv6 lease is > 24 hours and the connec

[LEDE-DEV] FW: UDP throughput caused kernel panic if configured bridge mode in /etc/config/network

2017-04-23 Thread Y.B. Lu
Hi John and Jo-Philipp, Have you ever got similar problem, or known any possible reason about this, or known anyone who probably know this? I just found much memory would be consumed if I configured board as bridge mode in /etc/config/network and did UDP throughput test. But using brctl to config

Re: [LEDE-DEV] FW: UDP throughput caused kernel panic if configured bridge mode in /etc/config/network

2017-04-23 Thread John Crispin
Hi, this is most certainly a bug in the kernel. either the ethernet driver blows up under load or some other memory allocation related bug. it is very common for ethernet to kill boards under load by triggering bugs. John On 24/04/17 05:49, Y.B. Lu wrote: Hi John and Jo-Philipp, Have y

Re: [LEDE-DEV] [PATCH netifd] Revert: set prefix indicator flag when IPv6 prefix lifetime, changes

2017-04-23 Thread Hans Dedecker
On Mon, Apr 24, 2017 at 4:24 AM, Eric Luehrsen wrote: > This reverts commit a03216660797173fbe67866f75564e3fec9c1e8d. The previous > change causes IFUP events to occur from 30 seconds to 30 minutes depending > on various conditions at the WAN6 (typ.) interface. If a DHCPv6 lease is > 24 hours and