[PATCH] options: fix parsing of boolean attributes

2020-08-14 Thread remi . nguyenvan
From: Remi NGUYEN VAN Boolean attributes were parsed the same way as string attributes, so a value of { "bool_attr": "true" } would be parsed correctly, but { "bool_attr": true } (without quotes) was parsed as false. Fixes FS#3284 Signed-off-by: Remi NGUYEN VAN --- options.c | 6 ++ 1

[PATCH 2/3] uClibc-ng: refresh config and remove several legacy options

2020-08-14 Thread Rosen Penev
SUSV3_LEGACY_MACROS are completely unused since SUSV3_LEGACY is enabled HAS_OBSOLETE_BSD_SIGNAL is completely deprecated functionality. HAS_BSD_RES_CLOSE is completely deprecated functionality. HAS_FTW is deprecated SUSV4 functionality. Saves ~4.5kb. Signed-off-by: Rosen Penev ---

[PATCH 1/3] uClibc-ng: update package from 1.0.31 to 1.0.34

2020-08-14 Thread Rosen Penev
From: Donald Hoskins Update package from 1.0.31 to 1.0.34 Tested mips64/octeonplus/octeon3 Build against: OpenWrt SNAPSHOT r13871-546e140382 / LuCI Master git-20.186.79919-0c47989 Build Kernel: 5.4.51 Signed-off-by: Donald Hoskins --- toolchain/uClibc/common.mk | 4 ++-- 1 file changed, 2

[PATCH 3/3] toolchain: remove BROKEN from uClibc-ng

2020-08-14 Thread Rosen Penev
uClibc-ng works fine. Additionally, most packages have been fixed to compile with uClibc-ng. Signed-off-by: Rosen Penev --- toolchain/Config.in | 1 - 1 file changed, 1 deletion(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index cb557d4ad3..b1f7b1e5d6 100644 ---

[RFC PATCH] openvpn: update to 2.5 beta1

2020-08-14 Thread Magnus Kroken
New features: * Per client tls-crypt keys * ChaCha20-Poly1305 can be used to encrypt the data channel * Routes are added/removed via Netlink instead of ifconfig/route (unless iproute2 support is enabled). * VLAN support when using a TAP device Significant changes: * Server support can no longer

[PATCH v2 1/4] build: Fix Shellcheck for get_source_date_epoch.sh

2020-08-14 Thread Paul Spooren
If a `cd` to `TOPDIR` fails the script should quit. Also unify `try_mtime` function by storing it in a variable. Signed-off-by: Paul Spooren --- scripts/get_source_date_epoch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get_source_date_epoch.sh

[PATCH v2 4/4] build: store SourceDateEpoch in manifest

2020-08-14 Thread Paul Spooren
The usage of granular `SOURCE_DATE_EPOCH` for packages is an incrementing integer which could be useful for downstream tooling, therefore add it to the packages manifest. Signed-off-by: Paul Spooren --- include/package-ipkg.mk | 1 + package/Makefile| 2 +- 2 files changed, 2

[PATCH v2 3/4] build: store granular timestamps in packages

2020-08-14 Thread Paul Spooren
With the new `SOURCE` argument of `get_source_date_epoch` it is possible to set package timestamps based on actual package changes rather thane $TOPDIR changes. This commit adds a new variable PKG_SOURCE_DATE_EPOCH which is used by the `ipkg` build script. As a fallback the existing

[PATCH v2 2/4] build: get_source_date_epoch allow external repos

2020-08-14 Thread Paul Spooren
The SOURCE_DATE_EPOCH variable is used to make builds reproducible even if rebuild at different times. Instead of using the current timestamp, the time of the last source change is used. Created packages are `touch`ed with a specific timestamp so resulting packages have the same checksums. The

[PATCH v2 0/4] Granular timestamps in packages

2020-08-14 Thread Paul Spooren
v2: Fix Shellcheck patch which would exit if TOPDIR isn't definied. Instead it should just exit if TOPDIR is defined but the `cd` fails. Based on Jo's IRC statement below[1] I reworked the get_source_date_epoch script to create reproducible builds even if the SDK is updated.

RE: [RFC PATCH v2 0/1] Introduce UCI support for configuring DSA VLAN filter rules

2020-08-14 Thread Adrian Schmutzler
> config dsa_vlan > option vlan 1 > option ports 'lan1 lan2 lan3 lan4' Just got aware that this will make the names/labels of the ports part of the config (not just their internal numbers, as before), i.e. we cannot change them afterwards. Maybe we should think again about whether those

RE: [PATCH] ipset: update to version 7.6

2020-08-14 Thread Adrian Schmutzler
> -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Josef Schlehofer > Sent: Freitag, 14. August 2020 21:19 > To: openwrt-devel@lists.openwrt.org > Subject: [PATCH] ipset: update to version 7.6 > > Changelog: >

[PATCH] ipset: update to version 7.6

2020-08-14 Thread Josef Schlehofer
Changelog: https://ipset.netfilter.org/changelog.html Signed-off-by: Josef Schlehofer --- package/network/utils/ipset/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/ipset/Makefile b/package/network/utils/ipset/Makefile index

RE: [PATCH] ath79: add support for ALLNET ALL-WAP02860AC

2020-08-14 Thread Adrian Schmutzler
> -Original Message- > From: Tomasz Maciej Nowak [mailto:tome...@o2.pl] > Sent: Freitag, 14. August 2020 18:55 > To: Adrian Schmutzler ; openwrt- > de...@lists.openwrt.org > Subject: Re: [PATCH] ath79: add support for ALLNET ALL-WAP02860AC > > Hi, > W dniu 14.08.2020 o 18:30, Adrian

Re: [PATCH] ath79: add support for ALLNET ALL-WAP02860AC

2020-08-14 Thread Tomasz Maciej Nowak
Hi, W dniu 14.08.2020 o 18:30, Adrian Schmutzler pisze: > Hi, > >> + { >> +status = "okay"; >> + >> +mtd-cal-data = < 0x1000>; >> +mtd-mac-address = < 0x0>; >> +mtd-mac-address-increment = <1>; > > Caldata does not contain valid addresses? (same for 0x5000) Nope. > > Are the

Re: Upcoming 19.07.4 and 18.07.9 stable releases

2020-08-14 Thread Baptiste Jonglez
Hi, On 07-08-20, Adrian Schmutzler wrote: > > Hi, > > There is also a new mbedtls version which fixes some security bugs, we > > should also update this: > > https://github.com/ARMmbed/mbedtls/releases/tag/mbedtls-2.16.7 I have added it to

Re: Changing Inittab

2020-08-14 Thread Shalla Thakur
On 14/08/20 6:20 pm, Alberto Bursi wrote: On 14/08/20 14:46, Shalla Thakur wrote: On 14/08/20 6:08 pm, Alberto Bursi wrote: On 14/08/20 05:54, Shalla Thakur wrote: Hi, I am trying to change inittab to launch a different binary than /usr/libexec/login.sh. I changed

RE: [PATCH] ath79: add support for ALLNET ALL-WAP02860AC

2020-08-14 Thread Adrian Schmutzler
Hi, > + { > + status = "okay"; > + > + mtd-cal-data = < 0x1000>; > + mtd-mac-address = < 0x0>; > + mtd-mac-address-increment = <1>; Caldata does not contain valid addresses? (same for 0x5000) Are the calculated addresses chosen in accordance with OEM firmware? Rest seems fine

[PATCH] ath79: add support for ALLNET ALL-WAP02860AC

2020-08-14 Thread Tomasz Maciej Nowak
ALLNET ALL-WAP02860AC is a dual-band wireless access point. Specification SoC: Qualcomm Atheros QCA9558 RAM: 128 MB DDR2 Flash: 16 MB SPI NOR WIFI: 2.4 GHz 3T3R integrated 5 GHz 3T3R QCA9880 Mini PCIe card Ethernet: 1x 10/100/1000 Mbps AR8035-A, PoE capable (802.3at) LEDS: 5x, which four

Re: [bcm53xx] Pin Controller in Northstar

2020-08-14 Thread Vivek Unune
Hi Rafał, Has there been any update on this? Thanks in advance! Vivek On Mon, May 4, 2020 at 8:44 AM Vivek Unune wrote: > > On Mon, May 4, 2020 at 8:11 AM Rafał Miłecki wrote: > > > > Hi Vivek & sorry for late reply. > > > > It took me few hours to evaluate current DMU / CRU / pinctrl

RE: ath25 and rb532 fail after mac80211 changes

2020-08-14 Thread Adrian Schmutzler
> -Original Message- > From: Felix Fietkau [mailto:n...@nbd.name] > Sent: Freitag, 14. August 2020 16:34 > To: Adrian Schmutzler ; openwrt- > de...@lists.openwrt.org > Subject: Re: ath25 and rb532 fail after mac80211 changes > > On 2020-08-14 11:16, Adrian Schmutzler wrote: > > Hi, > > >

Re: ath25 and rb532 fail after mac80211 changes

2020-08-14 Thread Felix Fietkau
On 2020-08-14 11:16, Adrian Schmutzler wrote: > Hi, > > after "mac80211: merge performance improvement patches" [1], build fails on a > few 4.14 targets, namely ath25, rb532 (and ar71xx): > > > > So, we have to decide whether > 1. we fix this > 2. we leave the buildbots broken > 3. we remove

[PATCH] ath79: ar724x: make sure builtin-switch is enabled in DT

2020-08-14 Thread Adrian Schmutzler
On ar7240/ar7241 the mdioX node with the builtin-switch is enabled in the DTSI files, but the parent ethX node is left disabled. It only gets enabled per device or device family, and has not been enabled at all yet for the TP-Link WA devices with ar7240, making the switch unavailable there. This

Re: Changing Inittab

2020-08-14 Thread Alberto Bursi
On 14/08/20 14:46, Shalla Thakur wrote: On 14/08/20 6:08 pm, Alberto Bursi wrote: On 14/08/20 05:54, Shalla Thakur wrote: Hi, I am trying to change inittab to launch a different binary than /usr/libexec/login.sh. I changed package/base-files/files/etc/inittab for that. But it seems

Re: Changing Inittab

2020-08-14 Thread Shalla Thakur
On 14/08/20 6:08 pm, Alberto Bursi wrote: On 14/08/20 05:54, Shalla Thakur wrote: Hi, I am trying to change inittab to launch a different binary than /usr/libexec/login.sh. I changed package/base-files/files/etc/inittab for that. But it seems during build these changes get overridden. What

Re: Changing Inittab

2020-08-14 Thread Alberto Bursi
On 14/08/20 05:54, Shalla Thakur wrote: Hi, I am trying to change inittab to launch a different binary than /usr/libexec/login.sh. I changed package/base-files/files/etc/inittab for that. But it seems during build these changes get overridden. What is the correct way to achieve this?

kmod-usb-bcma is not available

2020-08-14 Thread Nerijus Baliūnas
Hello, I am using openwrt-19.07 branch, CONFIG_TARGET_brcm47xx, device is Option Globesurfer III. I have an older openwrt image from 2015 with kernel 3.3.8, where 3g modem is seen by lsusb: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux

[PATCH] zram-swap: explicitly use mkswap/swapon/swapoff from /sbin

2020-08-14 Thread Rui Salvaterra
The required BusyBox applets are enabled by default, so we can rely on them being present in the system. This way, we make sure there are no conflicts with less featured variants of these same applets which might also be present in the system. Fixes: 0bd7dfa3ed60 ("zram-swap: enable swap

Re: [PATCH] kernel: fix mtd partition erase

2020-08-14 Thread Tomasz Maciej Nowak
Hi John. W dniu 05.08.2020 o 23:13, John Thomson pisze: > This bug applied where mtd partition end address, > or erase start address, was not cleanly divisible by parent mtd erasesize. > > This error would cause the bits following the end of the partition > to the next erasesize block boundary to

[PATCH] ramips: remove legacy ethernet driver components for mt7621

2020-08-14 Thread Adrian Schmutzler
The mt7621 subtarget has been switched to DSA quite a while ago and seems to run sufficiently fine. Build with older kernels than 5.4 has been disabled directly during the kernel bump. Therefore, since they are not used anymore, let's remove the mt7621-specific parts of "our" ethernet driver, so

RE: MT7621 Flow Control

2020-08-14 Thread Adrian Schmutzler
> -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Jaap Buurman > Sent: Freitag, 7. August 2020 09:55 > To: John Crispin > Cc: OpenWrt Development List ; Andre > Valentin > Subject: Re: MT7621 Flow Control > > On Thu, Aug 6, 2020

Re: MT7621 Flow Control

2020-08-14 Thread Stijn Segers
Hi, Op donderdag 13 augustus 2020 om 1u46 schreef Andre Valentin : Hello, it seems that I had another problem when upgrading from 4.14 to 5.4. 5.4 uses DSA on MT7621. In 4.14 network config I had no switch definition and it worked out of the box. But with 5.4 I need a switch config in

ath25 and rb532 fail after mac80211 changes

2020-08-14 Thread Adrian Schmutzler
Hi, after "mac80211: merge performance improvement patches" [1], build fails on a few 4.14 targets, namely ath25, rb532 (and ar71xx): /builder/shared-workdir/build/build_dir/target-mips_mips32_musl/linux-ath25/backports-5.8-1/net/mac80211/rx.c:4803:3: error: implicit declaration of function

Re: buildbots/config.guess: error message written into command

2020-08-14 Thread Petr Štetiar
Adrian Schmutzler [2020-08-12 13:28:21]: Hi, > However, I don't see what's the problem with it, it should put the error > message into stderr ... that sed command comes from https://git.openwrt.org/?p=buildbot.git;a=blob;f=phase1/master.cfg#l1028 and that config.guess issue is from