Re: [OpenWrt-Devel] OpenWrt: read label MAC address for FRITZ!WLAN Repeater 300E

2019-11-12 Thread Mathias Kresin
12/11/2019 13:26, Adrian Schmutzler: Hi, I'm currently trying to remove the dependency of label_mac in 02_network from phy setup, i.e. replacing stuff like $(cat /sys/class/ieee80211/phyX/macaddress) with extraction from the proper flash location. One obstacle is the AVM FRITZ!WLAN Repeater

[OpenWrt-Devel] Download link not working for 18.06.5 and 19.07.0rc1

2019-11-12 Thread Luiz Angelo Daros de Luca
Hello, The OpenWrt front page has a "Download a firmware image for your device" for each released version. However, the last two links are currently useless. Both show no devices. For 18.06.5, it seems that something somewhere must be updated from 18.06.4 to 18.06.5. For 19.07, it could be only

Re: [OpenWrt-Devel] [PATCH] base-files: config_generate: split macaddr with multiple ifaces

2019-11-12 Thread mail
> -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Adrian Schmutzler > Sent: Mittwoch, 13. November 2019 00:57 > To: openwrt-devel@lists.openwrt.org > Cc: Sungbo Eo > Subject: [OpenWrt-Devel] [PATCH] base-files: config_generate:

[OpenWrt-Devel] [PATCH] base-files: config_generate: split macaddr with multiple ifaces

2019-11-12 Thread Adrian Schmutzler
From: Sungbo Eo netifd does not handle network.@device[x].name properly if it contains multiple ifaces separated by spaces. Due to this, board.d lan_mac setup does not work if multiple ifaces are set to LAN by ucidef_set_interface_lan. To fix this, create a device node for each member iface

[OpenWrt-Devel] [PATCH] base-files: add /usr/share/libubox/jshn.sh to sysupgrade stage2

2019-11-12 Thread Russell Senior
Discovered recent changes had broken sysupgrade for ar71xx mikrotik rb-493g, traced the problem to missing /usr/share/libubox/jshn.sh after switching to tmpfs. Signed-off-by: Russell Senior --- package/base-files/files/lib/upgrade/stage2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[OpenWrt-Devel] [PATCH v2] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Petr Štetiar
Currently minimal GNU supported GCC version is 7 (from May 2, 2017), buildbots are using default GCC version 6 on Debian 9 (old stable), current Debian stable has GCC version 8.3.0. Cc: Etienne Champetier Signed-off-by: Petr Štetiar --- v2: fix regexps (champtar) README | 2

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Etienne Champetier
Hi Petr, Le mar. 12 nov. 2019 à 00:16, Petr Štetiar a écrit : > > Currently minimal GNU supported GCC version is 7 (from May 2, 2017), buildbots > are using default GCC version 6 on Debian 9 (old stable), current Debian > stable 10 has GCC version 8. > > Signed-off-by: Petr Štetiar > --- > >

[OpenWrt-Devel] [RFC] fstools: Question: Approach to make jffs2reset NAND-aware

2019-11-12 Thread Jeff Kletsky
One of the next things on my list is getting `firstboot` to work with NAND (UBI) flash. As reported[1], `jff2reset.c` does not seem to consider that there is a UBI volume being used for the overlay. It appears to fail in "marking" the file system as needing erasure. root@(none):/# firstboot [  

Re: [OpenWrt-Devel] [PATCH] kernel-build: fix kernel_menuconfig breakage by forcing YACC

2019-11-12 Thread Thomas Albers via openwrt-devel
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 --- On Mon, 11 Nov 2019 at 14:56,

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread Michal Cieslakiewicz
On Tue, 12 Nov 2019 17:15:17 +0100 David Bauer wrote: > Hello Michal, > > Have you tried if this breaks sysupgrade from an older OpenWrt > firmware? I'm not sure if an UBI resize works without additional > steps. > > Best wishes > David > Hello David, Thanks! Good point, I was usually

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Petr Štetiar
Yousong Zhou [2019-11-12 18:37:21]: > I tried for a few times with packages provided by SoftwareCollections.org, > but it's definitely not "straightforward" enough in my opinion. I tried to install developer toolset version 8 in CentOS 7 Docker container in order to triage the same compile

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread David Bauer
Hello Michal, On 11/12/19 2:02 PM, Michal Cieslakiewicz wrote: > Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash > memory but only first 32 MiB are used now - both by vendor's firmware and > OpenWrt. This patch concatenates two regions of flash memory: ubi part > of

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread Michal Cieslakiewicz
> > Is revert to vendor firmware still possible with this change, e.g. > using Netgear TFTP recovery mode? > Hello Piotr, Yes, it is possible. I've performed such operation using fw_recovery command from u-boot prompt. However, looking at factory logs, reserved space is used somehow by

Re: [OpenWrt-Devel] v5.4 as next kernel

2019-11-12 Thread Petr Štetiar
Hi, so my oppinion is, that I'm fine with v5.4 as next kernel and it seems sensible to have 20.01 still on v4.19 and 20.07 based on v5.4. -- ynezz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] [PATCH fwtool] cmake: use extra compiler warnings only on gcc6+

2019-11-12 Thread Petr Štetiar
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) and -Wextra produces following: fwtool.c:288:9: error: missing initializer for field 'cur' of 'struct data_buf' [-Werror=missing-field-initializers] struct data_buf dbuf = {}; ^ fwtool.c:37:8: note: 'cur' declared here char *cur;

[OpenWrt-Devel] dts-v1 in DTSI files

2019-11-12 Thread Adrian Schmutzler
Hi, is it correct to put /dts-v1/ into DTSI files? In the documentation, it only says "DTS" files, and technically all DTSI are included somewhere, so it should be enough to have the /dts-v1/ in the DTSes? Best Adrian openpgp-digital-signature.asc Description: PGP signature

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread Piotr Dymacz
Hi Michal, On 12.11.2019 14:02, Michal Cieslakiewicz wrote: Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash memory but only first 32 MiB are used now - both by vendor's firmware and OpenWrt. This patch concatenates two regions of flash memory: ubi part of firmware

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread Enrico Mioso
Wow!! This is applicable also to Netgear R6220! On Tue, 12 Nov 2019, Michal Cieslakiewicz wrote: Date: Tue, 12 Nov 2019 14:02:14 From: Michal Cieslakiewicz To: "openwrt-devel@lists.openwrt.org" Cc: Adrian Schmutzler Subject: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear

[OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread Michal Cieslakiewicz
Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash memory but only first 32 MiB are used now - both by vendor's firmware and OpenWrt. This patch concatenates two regions of flash memory: ubi part of firmware partition and reserved (unused) space beyond 'caldata_backup' while

[OpenWrt-Devel] [PATCH] ath79: split dts file for Netgear WNDR4300

2019-11-12 Thread Michal Cieslakiewicz
Move board configuration to dtsi file in preparation for WNDR3700v4 router support. Signed-off-by: Michal Cieslakiewicz --- .../linux/ath79/dts/ar9344_netgear_wndr.dtsi | 290 ++ .../ath79/dts/ar9344_netgear_wndr4300.dts | 286 + 2 files changed, 291

[OpenWrt-Devel] OpenWrt: read label MAC address for FRITZ!WLAN Repeater 300E

2019-11-12 Thread Adrian Schmutzler
Hi, I'm currently trying to remove the dependency of label_mac in 02_network from phy setup, i.e. replacing stuff like $(cat /sys/class/ieee80211/phyX/macaddress) with extraction from the proper flash location. One obstacle is the AVM FRITZ!WLAN Repeater 300E, where the calibration data is

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Yousong Zhou
On Tue, 12 Nov 2019 at 17:12, Petr Štetiar wrote: > > Yousong Zhou [2019-11-12 16:26:14]: > > Hi, > > > Not quite sure how much benefit enforcing -Wextra can bring to the > > whole code base. > > I'm adding -Wextra for some time already to any C project I touch, nobody has > objected against it

[OpenWrt-Devel] [PATCH v3] build: separate signing logic

2019-11-12 Thread Paul Spooren
This separates the options for signature creation and verification * SIGNED_PACKAGES create Packages.sig * SIGNED_IMAGES add ucert signature to created images * CHECK_SIGNATURE add verification capabilities to images * INSTALL_LOCAL_KEY add local key-build to /etc/opkg/keys Right now the

Re: [OpenWrt-Devel] [PATCH v2] build: separate signing logic

2019-11-12 Thread Felix Fietkau
On 2019-11-12 10:31, Paul Spooren wrote: > This separates the options for signature creation and verification > > * SIGNED_PACKAGES create Packages.sig > * SIGNED_IMAGES add ucert signature to created images > * CHECK_SIGNATURE add verification capabilities to images > * INSTALL_LOCAL_KEY add

[OpenWrt-Devel] [PATCH v2] build: separate signing logic

2019-11-12 Thread Paul Spooren
This separates the options for signature creation and verification * SIGNED_PACKAGES create Packages.sig * SIGNED_IMAGES add ucert signature to created images * CHECK_SIGNATURE add verification capabilities to images * INSTALL_LOCAL_KEY add local key-build to /etc/opkg/keys Right now the

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Petr Štetiar
Yousong Zhou [2019-11-12 16:26:14]: Hi, > Not quite sure how much benefit enforcing -Wextra can bring to the > whole code base. I'm adding -Wextra for some time already to any C project I touch, nobody has objected against it so far. I'm adding it because I think, that the latest compilers are

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Yousong Zhou
On Tue, 12 Nov 2019 at 16:16, Petr Štetiar wrote: > > Currently minimal GNU supported GCC version is 7 (from May 2, 2017), buildbots > are using default GCC version 6 on Debian 9 (old stable), current Debian > stable 10 has GCC version 8. > > Signed-off-by: Petr Štetiar > --- > > While adding CI

Re: [OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Paul Spooren
Looks good to me, I ran into this issue before and would appreciate moving forward to 6. On 11/11/19 10:16 PM, Petr Štetiar wrote: Currently minimal GNU supported GCC version is 7 (from May 2, 2017), buildbots are using default GCC version 6 on Debian 9 (old stable), current Debian stable 10

[OpenWrt-Devel] [PATCH] build: make GCC version 6+ minimal host build requirement

2019-11-12 Thread Petr Štetiar
Currently minimal GNU supported GCC version is 7 (from May 2, 2017), buildbots are using default GCC version 6 on Debian 9 (old stable), current Debian stable 10 has GCC version 8. Signed-off-by: Petr Štetiar --- While adding CI support in C based projects, I've started adding -Wextra as well,