Re: [OpenWrt-Devel] Lantiq xrx200: PTM issues

2020-01-22 Thread Martin Schiller
Just for reference: I've opened a pull request with a fix here: https://github.com/openwrt/openwrt/pull/2707 - Martin On 2020-01-21 06:28, Martin Schiller wrote: Ok, I think I've got it: The "sk_wmem_alloc" is decremented in sock_wfree() which is called by kfree_skb. But in ptm_hard_start_xmi

[OpenWrt-Devel] [PATCHv3] mdadm: revised mdadm config & init logic

2020-01-22 Thread Rosen Penev
From: Joseph Tingiris This is a significant revision of /etc/init.d/mdadm. It adds new features, support for new configuration options, safer error handling, (configurable) verbose output, and contains multiple bug fixes. Most notably, mdadm was being started with the --config flag and that pre

[OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-22 Thread Rosen Penev
Several users have been reporting crashing issues with the ethernet driver. One source says that this is a silicon bug in mt7621: https://github.com/openwrt/mt76/issues/211#issuecomment-569687506 A user that has been testing this has seen greater than 2-3 days uptime of the ethernet interface wit

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi everyone, I have just finished testing the new patch on my device. All tests were successful and I have already uploaded a new kernel patch to GitHub [1]. Thank you for all the comments and your help in testing the new patch. [1] https://github.com/openwrt/openwrt/pull/2709 Best regards, Brun

[OpenWrt-Devel] [PATCH v2] ath79: move lzma-loader to the end of available RAM

2020-01-22 Thread Adrian Schmutzler
In certain cases, the uncompressed initramfs image will overwrite the lzma-loader, which is currently only 10 MB away from kernel image start. To prevent this, change LZMA_TEXT_START to 24 MB, so loader and compressed image have 8 MB at the end of RAM and uncompressed image has 24 MB available. Th

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi Steve, You're fast!! I highly appreciate your help on this issue and thank you one again for testing this change. The only thing left to test is the build of a full read-only firmware, which I'll try today after work. Assuming everything works fine I'll then submit a new patch on GitHub. Best

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Steve Brown
Hi Bruno, Your suggested fix works on my TPLink A7-V5. diff --git a/target/linux/ath79/image/common-tp-link.mk b/target/linux/ath79/image/common-tp-link.mk index 9048e8340c..8aa6a5a2be 100644 --- a/target/linux/ath79/image/common-tp-link.mk +++ b/target/linux/ath79/image/common-tp-link.mk @@ -71

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi Steve, Glad to hear that and thank you for testing it! I will probably ask you to do one additional test to see if we're able to remove the padding requirement (as mentioned on the previous emails). But let me test it first so I can confirm that it actually works. Best regards, Bruno Pena On

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Steve Brown
Hi Bruno, That fixed it. [0.403826] m25p80 spi0.0: w25q128 (16384 Kbytes) [0.408770] 7 fixed-partitions partitions found on MTD device spi0.0 [0.415333] Creating 7 MTD partitions on "spi0.0": [0.420310] 0x-0x0002 : "factory-uboot" [0.426739] 0x0002-

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi Steve, Don't waste your time with the previous test request. I'll try to test either today/tomorrow the "mtd.orig_flags" approach on my device and - if successful - I'll then ask if you can try it on your TP-Link. Thank you and best regards, Bruno Pena On Wed, Jan 22, 2020, 11:34 Bruno Pena

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Just a small correction on the previous email, there's actually no padding requirement since everything will be read-only! On Wed, Jan 22, 2020, 11:25 Bruno Pena wrote: > Hi Daniel, > > I was looking at the code and I think it's possible to relax the > enforcement of the parent access mode. > We

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi Daniel, I was looking at the code and I think it's possible to relax the enforcement of the parent access mode. We can switch from a strict enforcement of the resulting mtd access mode, to only enforcing the configured access mode (from the DTS file). This can be achieved by changing from usin

Re: [OpenWrt-Devel] [PATCH procd 2/2] state: fix reboot causing shutdown inside LXC container

2020-01-22 Thread Paul Oranje
A few small remarks, see in-line, regards, Paul > Op 21 jan. 2020, om 09:35 heeft Petr Štetiar het volgende > geschreven: > > Executing `reboot` command in OpenWrt system runing inside LXC container > results in a shutdown of the container instead of rebooting the > container. > > This appears

Re: [OpenWrt-Devel] hostapd and Linux bridges

2020-01-22 Thread Daniel Golle
On Wed, Jan 22, 2020 at 06:34:06AM +0200, Daniel Golle wrote: > On Tue, Jan 21, 2020 at 11:34:22PM +0100, Mathias Kresin wrote: > > 21/01/2020 20:22, Daniel Golle: > > > On Tue, Jan 21, 2020 at 07:40:42PM +0100, Bjørn Mork wrote: > > > > Daniel Golle writes: > > > > > > > > > On proprietary APs i

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Daniel Golle
Hi Bruno, On Wed, Jan 22, 2020 at 10:22:01AM +0100, Bruno Pena wrote: > I would also like to take the opportunity to ask if it's worth pursuing > this patch if it means that all devices (using mtd) will require their > partitions to be padded to the blocksize? Please try not to introduce that pad

Re: [OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-22 Thread Bruno Pena
Hi Steve, I just noticed that I have just suggested you to change the wrong section... sorry! It's clearly stated on target/linux/ath79/image/generic-tp-link.mk that the A7-v5 uses the tplink-safeloader-uimage section but I somehow managed to copy the wrong one (doh!). define Device/tplink_arc