Re: [PATCH] Revert "netifd: update to the latest version"

2020-11-13 Thread Felix Fietkau
On 2020-11-13 11:19, Rui Salvaterra wrote: > This broke the switch VLAN configuration on at least Archer C6 v2 EU and > Archer > C7 (both switchdev-based one-armed routers). > > Signed-off-by: Rui Salvaterra Please git-bisect this and show me the config that doesn't work anymore, so that I can

Re: [PATCH] Revert "netifd: update to the latest version"

2020-11-13 Thread Felix Fietkau
On 2020-11-13 11:34, Rui Salvaterra wrote: > Hi, Felix, > > On Fri, 13 Nov 2020 at 10:25, Felix Fietkau wrote: >> >> Please git-bisect this and show me the config that doesn't work anymore, >> so that I can fix it properly. > > I can't bisect this n

Re: [PATCH v2] build: create $(PKG_SYMVERS_DIR) if non-existent

2020-11-17 Thread Felix Fietkau
On 2020-11-18 06:54, Oldřich Jedlička wrote: > út 17. 11. 2020 v 23:00 odesílatel Sebastian Kemper > napsal: >> >> Commit 5d76065 moved the creation of the symvers directory to >> include/kernel-build.mk. This is fine when building from scratch. But >> when unpacking an SDK the directory doesn't

Re: [PATCH] libroxml: remove

2020-11-27 Thread Felix Fietkau
On 2020-11-27 10:36, Paul Spooren wrote: > I'm happy to handle this but you're the maintainer. Please give your > blessing. I hereby bless you :) Thanks for taking care of this - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org h

Re: [PATCH] ramips/mt7621: refresh the kernel config

2020-12-02 Thread Felix Fietkau
Hi, On 2020-12-02 18:32, Adrian Schmutzler wrote: >> -Original Message- >> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] >> On Behalf Of Rui Salvaterra >> Sent: Mittwoch, 2. Dezember 2020 16:42 >> To: openwrt-devel@lists.openwrt.org >> Cc: Rui Salvaterra >> Subje

Re: [PATCH] ramips/mt7621: refresh the kernel config

2020-12-02 Thread Felix Fietkau
On 2020-12-02 19:45, Adrian Schmutzler wrote: >> -Original Message- >> From: Felix Fietkau [mailto:n...@nbd.name] >> Sent: Mittwoch, 2. Dezember 2020 19:25 >> To: Adrian Schmutzler ; 'Rui Salvaterra' >> ; openwrt-devel@lists.openwrt.org >> S

Re: [PATCH] build/prereq: requie make 4.1 or later

2020-12-13 Thread Felix Fietkau
On 2020-12-13 12:35, Hauke Mehrtens wrote: > On 12/13/20 8:17 AM, Paul Spooren wrote: >> FS#2086 "IS_TTY in the makefile is broken" reports flawed detection of >> stdout piping to a file. The issue describes how e.g. terminal color >> codes and up in log files if running make like `make > log.txt

Re: [PATCHv3] ccache: update to 4.1

2020-12-23 Thread Felix Fietkau
On 2020-12-23 09:14, Rosen Penev wrote: > On Tue, Dec 22, 2020 at 11:53 PM Hannu Nyman wrote: >> >> Rosen Penev kirjoitti 23.12.2020 klo 8.33: >> > Upstream switched to building with CMake. Adjust accordingly. >> > >> > Reapplied patch as upstream changed the file format. >> > >> > Added HOST_BU

Re: C++ libubus wrapper

2021-02-04 Thread Felix Fietkau
On 2021-02-03 20:02, Wojciech Jowsa wrote: > Hi, > > I would like to write a libubus wrapper in C++. When looking into > ubus_method and ubus_handler_t structures I don't see a place where I > could pass a this pointer. It makes the handling of ubus calls in C++ > a bit complicated. > The soluti

Re: Fwd: C++ libubus wrapper

2021-02-04 Thread Felix Fietkau
On 2021-02-04 18:25, Wojciech Jowsa wrote: > czw., 4 lut 2021 o 10:32 Felix Fietkau napisał(a): >> >> >> On 2021-02-03 20:02, Wojciech Jowsa wrote: >> > Hi, >> > >> > I would like to write a libubus wrapper in C++. When looking into >> >

Revisiting ABI_VERSION handling policy

2021-02-08 Thread Felix Fietkau
Hi, I just wasted a few hours of debugging on an issue that turned out to be wolfssl ABI breakage related. At first I thought it was the version bump. While the commit that updates wolfssl claims that the ABI didn't change, a quick look at https://abi-laboratory.pro/index.php?view=timeline&l=wo

Re: Revisiting ABI_VERSION handling policy

2021-02-09 Thread Felix Fietkau
On 2021-02-09 13:00, Jo-Philipp Wich wrote: > Hi, > >> The goal of reducing unnecessary build churn makes perfect sense to me, >> but I think we need to reconsider the trade-off we're making here, and >> the failure modes of each option. > > the motivation wasn't about build-churn at all but to

Re: Revisiting ABI_VERSION handling policy

2021-02-09 Thread Felix Fietkau
On 2021-02-09 23:56, Jo-Philipp Wich wrote: > Hi, > >> The last stable update didn't change SONAME, but it included changes to >> the same data structure that triggered the bug that I ran into. It could >> very likely have introduced very similar subtle breakage. > > this is a clear upstream bu

Re: [PATCH] fakeroot: fix to work with glibc 2.33

2021-02-11 Thread Felix Fietkau
Hi Ilya, On 2021-02-11 04:14, Ilya Lipnitskiy wrote: > The following commit removed _STAT_VER definitions from glibc: > https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=8ed005daf0ab03e142500324a34087ce179ae78e > > That subsequently broke fakeroot: > https://bugs.archlinux.org/task/69572 >

[PATCH 5/5] wolfssl: use dynamic ABI_VERSION depending on the configuration and package version

2021-02-12 Thread Felix Fietkau
Signed-off-by: Felix Fietkau --- package/libs/wolfssl/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/libs/wolfssl/Makefile b/package/libs/wolfssl/Makefile index ff01fca66310..51dc4d5a0933 100644 --- a/package/libs/wolfssl/Makefile +++ b/package/libs

[PATCH 1/5] build: fix ABI version rebuild dependency

2021-02-12 Thread Felix Fietkau
A stray comma was being appended to the last package version dependency, causing it to be missed for ABI version checks Signed-off-by: Felix Fietkau --- include/package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/package.mk b/include/package.mk index

[PATCH 3/5] libubox: use PKG_ABI_VERSION

2021-02-12 Thread Felix Fietkau
Signed-off-by: Felix Fietkau --- package/libs/libubox/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/libs/libubox/Makefile b/package/libs/libubox/Makefile index d9c239a50d15..19d91455097e 100644 --- a/package/libs/libubox/Makefile +++ b/package/libs

[PATCH 4/5] build: drop ABI version from metadata

2021-02-12 Thread Felix Fietkau
Preparation for supporting dynamic ABI versions that depend on the runtime configuration. Read the suffix from the staging dir pkginfo version files. Signed-off-by: Felix Fietkau --- include/feeds.mk| 2 +- include/package-dumpinfo.mk | 3 +-- include/package-ipkg.mk | 9

[PATCH 2/5] build: add support for fixing up library soname

2021-02-12 Thread Felix Fietkau
package are also fixed up Signed-off-by: Felix Fietkau --- include/package-ipkg.mk| 5 +++ include/package.mk | 2 ++ rules.mk | 6 scripts/set-abi-version.sh | 73 ++ 4 files changed, 86 insertions(+) create mode 100755

Re: ath10k-ct iw missing rx stats

2021-02-14 Thread Felix Fietkau
On 2021-02-14 18:28, Ansuel Smith wrote: > With recent mac80211 bump I notice that rx stats > are no longer displayed. > I ported the atk10-ct patches to the version 5.10 > and I noticed this. It's only me? > Also this is only to report that ath10k-ct patches can > be ported with minimal changes an

Re: [PATCH 4/4] mac80211: add AX support

2021-02-15 Thread Felix Fietkau
On 2021-02-15 11:19, John Crispin wrote: > Signed-off-by: John Crispin > --- > .../files/lib/netifd/wireless/mac80211.sh | 193 +- > .../mac80211/files/lib/wifi/mac80211.sh | 19 +- > 2 files changed, 195 insertions(+), 17 deletions(-) > > diff --git a/package/kernel

Re: [PATCH v3] fakeroot: fix to work with glibc 2.33

2021-02-15 Thread Felix Fietkau
On 2021-02-14 05:41, Ilya Lipnitskiy wrote: > The following commit removed _STAT_VER definitions from glibc: > https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=8ed005daf0ab03e142500324a34087ce179ae78e > > That subsequently broke fakeroot: > https://bugs.archlinux.org/task/69572 > https://b

Re: vm.min_free_kbytes seems very big

2021-02-27 Thread Felix Fietkau
Hi Adrian, On 2021-02-27 16:40, Adrian Schmutzler wrote: > Hi Felix, > > due to some OOM issues I recently became aware that OpenWrt (or rather, you > in [1]) set the vm.min_free_kbytes to quite excessive values: > > 16M for 128M RAM > 8M for 64M RAM > > The value for 32M devices has been re

Re: Please consider reverting autoconf-lean from toolchain

2021-03-01 Thread Felix Fietkau
> On 1. Mar 2021, at 23:47, Hauke Mehrtens wrote: > > On 3/1/21 3:54 PM, Hannu Nyman wrote: >> Apparently autoconf-lean, merged into the toolchain during last weekend, >> causes problems with various packages at buildbot. >> I am not sure if that is due to underlying problems in the specific f

Re: [PATCH] uclibc++: remove

2021-03-01 Thread Felix Fietkau
On 2021-02-27 05:17, Rosen Penev wrote: > No package here depends on it. Furthermore, uClibc++ is a fairly buggy > C++ library and seems to be relatively inactive upstream. > > It also lacks proper support for modern C++11 features. > > The main benefit of it is size: 66.6 KB vs 287.3 KB

Re: [PATCH] gmp: compile with -DPIC to use correct asm code

2021-03-12 Thread Felix Fietkau
On 2021-03-12 11:34, Stijn Tintel wrote: > On 11/03/2021 23:46, Eneas U de Queiroz wrote: >> The library is always compiled with $(FPIC) (-fPIC or -fpic), even for >> the static library. >> >> There are some assembly sources that decide whether or not to enable >> PIC code by checking if PIC is d

Re: [PATCH v2] ubusd: convert tx_queue to linked list

2021-03-25 Thread Felix Fietkau
On 2021-03-24 13:27, Arnout Vandecappelle (Essensium/Mind) wrote: > ubusd maintains a per-client tx_queue containing references to message > buffers that have not been sent yet (due to the socket blocking). This > is a fixed-size, 64-element queue. > > When more than 64 elements are queued, subs

Re: [PATCH v2] ubusd: convert tx_queue to linked list

2021-03-25 Thread Felix Fietkau
On 2021-03-25 21:43, Arnout Vandecappelle wrote: > > > On 25/03/2021 10:48, Felix Fietkau wrote: >> >> On 2021-03-24 13:27, Arnout Vandecappelle (Essensium/Mind) wrote: >>> ubusd maintains a per-client tx_queue containing references to message >>> buff

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

2021-03-26 Thread Felix Fietkau
On 2021-03-26 09:34, Martin Schiller wrote: > On 2020-07-24 19:13, Felix Fietkau wrote: >> On 2020-07-24 18:44, Jo-Philipp Wich wrote: >>> Hi Felix, >>> >>>> [...] >>>> >>>> For a simple default config, you could have this: >>

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

2021-03-26 Thread Felix Fietkau
On 2021-03-26 09:55, Martin Schiller wrote: > On 2021-03-26 09:42, Felix Fietkau wrote: >> On 2021-03-26 09:34, Martin Schiller wrote: >>> On 2020-07-24 19:13, Felix Fietkau wrote: >>>> On 2020-07-24 18:44, Jo-Philipp Wich wrote: >>>>> Hi Felix, &g

Re: [PATCH] openssl: don't rename a file with quilt

2021-03-26 Thread Felix Fietkau
On 2021-03-26 22:39, Eneas U de Queiroz wrote: > On Fri, Mar 26, 2021 at 4:28 PM Rosen Penev wrote: >> >> On Fri, Mar 26, 2021 at 5:55 AM Eneas U de Queiroz >> wrote: >> > >> > On Fri, Mar 26, 2021 at 6:26 AM Rosen Penev wrote: >> > > +ifeq ($(QUILT),) >> > > + mv $(PKG_BUILD_DIR)/crypto

Re: [PATCH] kernel: drop the conntrack rtcache patch

2021-04-09 Thread Felix Fietkau
Rui Salvaterra Acked-by: Felix Fietkau - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Regression in auto-mounting mtd squashfs partitions

2021-04-10 Thread Felix Fietkau
Hi Daniel, it seems to me that your commit 2809d744 ("kernel: support FIT partition parser on mtdblock devices") is causing a regression in mounting squashfs rootfs when CONFIG_FIT_PARTITION is enabled. The following workaround fixes it, but maybe you can make a better fix, since you're more f

Re: Regression in auto-mounting mtd squashfs partitions

2021-04-10 Thread Felix Fietkau
On 2021-04-10 16:33, Daniel Golle wrote: > On Sat, Apr 10, 2021 at 04:04:28PM +0200, Felix Fietkau wrote: >> Hi Daniel, >> >> it seems to me that your commit 2809d744 ("kernel: support FIT >> partition parser on mtdblock devices") is causing a regressio

Re: [PATCH] kernel: disable crypto-hw-ccp on BCM4908

2021-04-13 Thread Felix Fietkau
On 2021-04-13 11:46, Rafał Miłecki wrote: > From: Rafał Miłecki > > CONFIG_CRYPTO_DEV_SP_CCP depends on DMA_ENGINE which depends on > DMADEVICES=y which bcm4908 doesn't need and doesn't use at this point. > > Trying to build this package on bcm4908 was causing: > ERROR: module > 'build_dir/tar

Re: [PATCH] build: fix regression for kernels < 5.10

2021-04-13 Thread Felix Fietkau
On 2021-04-13 14:22, Sebastian Kemper wrote: > This fixes a regression introduced with commit > 5ed1e5140a80558ab47fd70410ae3242bed5becf ("build: build kernel image > before building modules/packages"). > > Before this commit the make target would always include "modules", > resulting in a MODPO

Re: [OpenWrt-Devel] Device tree issues with TL-WDR4900 (mpc85xx) and kernel 4.0.1

2015-05-07 Thread Felix Fietkau
On 2015-05-07 08:01, Wojciech Dubowik wrote: > Try to boot with kernel locking enabled. I have seen jffs2 deadlocks on > readdir. As far as I remember > with this patch it went through but I don't know anymore whether I have > changed sth in config. > > Have a look at (search engine...) [PATCH]

Re: [OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-05-07 Thread Felix Fietkau
On 2015-05-07 04:25, wengbj wrote: > Signed-off-by: wengbj This will make the code less efficient, I don't like that. Can't we just change the kernel code in the mips_module_reloc patch to enforce allocation within the lowmem memory space? - Felix ___ o

Re: [OpenWrt-Devel] [PATCH] build: don't call prereq for any package/symlinks rules

2015-05-08 Thread Felix Fietkau
On 2015-04-28 01:46, Mathieu Olivari wrote: > Most of the time, we want to make sure OpenWrt has been configured and > setup before start running make. However, in case of package/symlinks, > forcing prereq as a dependency creates multiple issues: > *when executed on a clean workspace, it will prom

Re: [OpenWrt-Devel] [PATCH 3/4] ralink: add mt7621 support automatic recognition memory size(32M-512M)

2015-05-08 Thread Felix Fietkau
On 2015-05-07 04:25, wengbj wrote: > From: daixj > > Signed-off-by: daixj > +Index: linux-3.18.11/arch/mips/kernel/setup.c > +=== > +--- linux-3.18.11.orig/arch/mips/kernel/setup.c 2015-04-04 > 10:46:37.0 +0800 >

Re: [OpenWrt-Devel] Patch to fix broken DHCP renewals with metric for AA

2015-05-08 Thread Felix Fietkau
On 2015-03-13 18:51, Joseph Marlin wrote: > Below is a patch to fix a bug I ran into on Attitude Adjustment. > > When a DHCP interface with a metric assigned to it attempted to renew its > lease, the default route was removed and not re-added. However, removing the > metric from the interface w

Re: [OpenWrt-Devel] [PATCH] [libubox][v4] b64: add base64 support

2015-05-08 Thread Felix Fietkau
On 2015-04-19 02:32, Luka Perkov wrote: > On Fri, Apr 17, 2015 at 02:14:14AM +0200, Felix Fietkau wrote: >> > +size_t b64decode(void *out, const void *in, size_t len) >> > +{ >> > + uint8_t *o = (uint8_t *) out; >> > + const uint8_t *data = (const uin

Re: [OpenWrt-Devel] [PATCH procd] hotplug: support for interval commands

2015-05-08 Thread Felix Fietkau
On 2015-05-07 12:54, Rafał Miłecki wrote: > This allows executing code with a given interval. As every command, it > can be triggered by any uevent. > > Intervals may be useful for counting elapsed time since some action. It > allows e.g. indicating that button has been pressed for some time and >

Re: [OpenWrt-Devel] [PATCH] kernel: fix uninitialised variable causing 1-wire to not bind to GPIO

2015-05-08 Thread Felix Fietkau
On 2015-05-01 12:15, Andrew McDonnell wrote: > This patch fixes a bug where 1-wire fails with an error instead of binding > to the requested GPIO pin: "gpio_request_one (ext_pullup_enable_pin) failed" > > --- > package/kernel/w1-gpio-custom/src/w1-gpio-custom.c | 1 + > 1 file changed, 1 insertio

Re: [OpenWrt-Devel] Remove requirement of an absolute path to the perl interpreter

2015-05-10 Thread Felix Fietkau
On 2015-05-09 16:50, Thomas Strobel wrote: > Hi, > > I'm using OpenWRT on NixOS, a Linux operating system that uses a > sophisticated hash mechanism instead of the Filesystem Hierarchy > Standard. A consequence of the hashing mechanism is that files like, > e.g., /usr/bin/perl don't exist under Ni

Re: [OpenWrt-Devel] [PATCH RFC] base-files: switch reset button support to hotplug.d

2015-05-10 Thread Felix Fietkau
On 2015-05-09 22:33, Rafał Miłecki wrote: > For years now we have procd (with its hotplug support) and action JSON > executing all scripts in /etc/hotplug.d/SUBSYSTEM/. Move reset button > support to handle it the same way we handle other subsystems. > > Signed-off-by: Rafał Miłecki That does not

Re: [OpenWrt-Devel] [PATCH] TP-LINK Archer C7 () JFFS2 only 5GHz fix

2015-05-10 Thread Felix Fietkau
On 2015-05-08 23:04, Spencer Thomason wrote: > If you select a JFFS2 only build for the TP-Link Archer C7 then the > ath10k drivers blob doesn't load and the 5GHz band doesn't work at all. > It looks like the partitions were hard-coded for sqashfs. This patch > allows both squashfs and JFFS2 to w

Re: [OpenWrt-Devel] [RFC PATCH] ar71xx: Support Antminer S1/S3

2015-05-10 Thread Felix Fietkau
On 2015-05-02 05:08, James Hilliard wrote: > I did my best to separate this device out, below is my current patch, > comments appreciated. I'm having trouble figuring out how to > differentiate the hwid which seems to be the same as the tp-link > wr743nd-v2. 0x07430002 Is the hardware ID that both

Re: [OpenWrt-Devel] [PATCH] mtd: correct/change warning text about partition split / read-only status

2015-05-10 Thread Felix Fietkau
On 2015-04-24 21:58, Hannu Nyman wrote: > Since the kernel/rootfs split handling was modified 2 years ago by r37283 ( > https://dev.openwrt.org/changeset/37283 ) and by the subsequent checkins, > users have seen rather scary mtd errors in the log at every boot. The message > ends "-- forcing rea

Re: [OpenWrt-Devel] Remove requirement of an absolute path to the perl interpreter

2015-05-10 Thread Felix Fietkau
On 2015-05-10 14:16, Thomas Strobel wrote: >>> diff --git a/include/feeds.mk b/include/feeds.mk >>> index 695b03b..27f3e8f 100644 >>> --- a/include/feeds.mk >>> +++ b/include/feeds.mk >>> @@ -7,7 +7,7 @@ >>> >>> -include $(TMP_DIR)/.packagefeeds >>> >>> -FEEDS_AVAILABLE:=$(shell $(SCRIPT_DIR)/

Re: [OpenWrt-Devel] Remove requirement of an absolute path to the perl interpreter

2015-05-10 Thread Felix Fietkau
On 2015-05-10 20:49, Thomas Strobel wrote: > On 05/10/2015 02:48 PM, Felix Fietkau wrote: >> On 2015-05-10 14:16, Thomas Strobel wrote: >>>>> diff --git a/include/feeds.mk b/include/feeds.mk >>>>> index 695b03b..27f3e8f 100644 >>>>> --- a/inclu

Re: [OpenWrt-Devel] Remove requirement of an absolute path to the perl interpreter

2015-05-10 Thread Felix Fietkau
On 2015-05-11 01:12, Thomas Strobel wrote: > Changing the scripts in OpenWRT to use /usr/bin/env sounds like a > pragmatic choice that would already make life easier under NixOS. > > In addition to changing the scripts, what do you think about referring > to $(STAGING_DIR)/host/bin only for callin

Re: [OpenWrt-Devel] [PATCH 1/3] [rpcd][v2] file: add support for base64

2015-05-11 Thread Felix Fietkau
On 2015-05-11 00:26, Luka Perkov wrote: > Signed-off-by: Luka Perkov > --- > => changes in v2: > > Use new libubox base64 provided API. > > file.c | 118 > +++-- > 1 file changed, 107 insertions(+), 11 deletions(-) > > diff --git a/f

Re: [OpenWrt-Devel] [PATCH 1/3] [rpcd][v2] file: add support for base64

2015-05-11 Thread Felix Fietkau
On 2015-05-11 23:26, Luka Perkov wrote: > Hi Felix, > > On Mon, May 11, 2015 at 11:36:46AM +0200, Felix Fietkau wrote: >> On 2015-05-11 00:26, Luka Perkov wrote: >> > Signed-off-by: Luka Perkov >> > --- >> > => changes in v2: >> > >&g

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Felix Fietkau
On 2015-05-12 10:35, Hante Meuleman wrote: > The boot script gives 1 second for wifi modules to settle. For newer > routers > > like R8000 which has three wifi devices which all need to be firmware > > downloaded, nvram downloaded and initialized this delay is getting very > > tight. On some boo

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Felix Fietkau
On 2015-05-12 11:33, Hante Meuleman wrote: > Understood, what is wifi detect using as input? Do the netdevs have to > be up? Where is the information that wifi app is reading coming from? It looks for registered cfg80211 wiphys. It does not care about netdevs. > brcmfmac uses different method for

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Felix Fietkau
On 2015-05-12 15:10, Hante Meuleman wrote: > Added two functions to the bcm47xx_nvram module to get and release copies > of the complete nvram contents. This can be used by for example brcmfmac > to get complete nvram contents which will after some parsing be sent to > device. > > Signed-off-by

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-13 Thread Felix Fietkau
On 2015-05-13 09:48, Hante Meuleman wrote: > Initially I made the free an inline from header file, but it doesn't compile > out of the box as it needs the definition for kfree and not all c files which > include this header file had this, as I don't like the inclusion of header > files from head

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-13 Thread Felix Fietkau
On 2015-05-13 20:14, Hante Meuleman wrote: > Bloated? Seriously? Putting the lines in either C or H and either have an > additional include or a prototype (both 1 line). Having the function in the .c file along with the EXPORT_SYMBOL makes the kernel size bigger. Including the header file with an

Re: [OpenWrt-Devel] Managed WiFi and IPv4/IPv6

2015-05-15 Thread Felix Fietkau
On 2015-05-15 17:28, Cristian Morales Vega wrote: > Since a "wifi-iface" can only have one "network", how are you supposed > to link it to both the wan and wan6 interfaces? It can have multiple networks. Use 'list' instead of 'option'. - Felix ___ openwr

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-15 Thread Felix Fietkau
On 2015-05-15 09:02, Arend van Spriel wrote: > On 05/12/15 12:25, Hante Meuleman wrote: >> It is a bit more than just changing request_firmware_nowait into >> request_firmware. The worker in core.c needs to be removed. The >> function brcmf_pcie_setup needs to be updated as it cannot call >> device

Re: [OpenWrt-Devel] [PATCH] musl: update to version 1.1.9

2015-05-23 Thread Felix Fietkau
On 2015-05-21 11:32, Daniel Golle wrote: > The fixes previously contained in 001-git-2015-03-28.patch are all part > of the upstream release, thus the patch can be removed. > All other patches apply cleanly. > > Signed-off-by: Daniel Golle Looks like musl 1.1.9 has an ldso related regression on P

Re: [OpenWrt-Devel] [PATCH 1/6] Changes for more readability.

2015-05-23 Thread Felix Fietkau
On 2015-05-19 14:38, Yousong Zhou wrote: > - "ifname" for Linux interface name. > - "interface" for netifd defined logical interface names as in >/etc/config/network. > - A few comments and variable renames for better readability. > > Signed-off-by: Yousong Zhou > --- > device.c |

Re: [OpenWrt-Devel] [PATCH] sunxi: remove kernel symbol

2015-05-24 Thread Felix Fietkau
On 2015-05-24 11:01, Dirk Neukirchen wrote: > > unify config across platforms > RESOURCE_COUNTERS is deactive on all platforms > > Signed-off-by: Dirk Neukirchen > --- Removing target/subtarget kernel config lines individually does not make any sense. These files are generated by make kernel_men

Re: [OpenWrt-Devel] [PATCH v2] musl: update to version 1.1.9

2015-05-25 Thread Felix Fietkau
On 2015-05-24 01:21, Daniel Golle wrote: > Plus changes up to 2015-05-22 to fix ldso related regression on PPC. > > Signed-off-by: Daniel Golle Seems like it needs to be updated again, as there were also some MIPS ldso regressions which were fixed today. - Felix _

Re: [OpenWrt-Devel] Implementation of restarting wifi(hostapd) when it stop unexpectedly

2015-05-26 Thread Felix Fietkau
On 2015-05-26 11:29, Tymon wrote: > Hi all, > I found an excited function that the hostapd will restart once it is > killed unexpectedly and feel curiously about its implementation, anyone > can give me more hints on this awesome function ? > thanks. Netifd tracks processes created by the h

Re: [OpenWrt-Devel] [RFC] [PATCH] build: honor command line CONFIG_ variables on kernel_*config targets

2015-05-27 Thread Felix Fietkau
Please don't send HTML mails to the list, further comment below. On 2015-05-13 15:11, Emmanuel Deloget wrote: > The CONFIG_* variables are correctly handled when building nearly all > targets (at least packages and full build) yet they are not honored on > kernel_menuconfig and similar targets. >

Re: [OpenWrt-Devel] [PATCH] scripts/feeds: observe -p flag for preferential feeds

2015-05-27 Thread Felix Fietkau
On 2015-05-26 17:09, Karl Palsson wrote: > From: Karl Palsson > > lookup_target was trampling the $feed variable, resulting in the -p flag > no longer preferentially installing from the named feed. > > Signed-off-by: Karl Palsson > --- > scripts/feeds | 6 +++--- > 1 file changed, 3 insertions

Re: [OpenWrt-Devel] [PATCH] sunxi: remove kernel symbol

2015-05-27 Thread Felix Fietkau
On 2015-05-27 00:02, Dirk Neukirchen wrote: > On 24.05.2015 11:15, Felix Fietkau wrote: >> On 2015-05-24 11:01, Dirk Neukirchen wrote: >>> >>> unify config across platforms >>> RESOURCE_COUNTERS is deactive on all platforms >>> >>> Sign

Re: [OpenWrt-Devel] [PATCH] perf: replace libelf1 select by a depend

2015-05-27 Thread Felix Fietkau
On 2015-05-27 02:13, Mathieu Olivari wrote: > It was not merged; it stayed pending without resolution since then, so I > figured I’d find an alternative. Replacing the select by a depend makes the whole process completely counterintuitive, so NACK from me on that. Any package we add to trunk needs

Re: [OpenWrt-Devel] [PATCH 3/6] kernel: add stmmac as a new kernel package

2015-05-29 Thread Felix Fietkau
On 2015-05-26 23:27, Mathieu Olivari wrote: > Signed-off-by: Mathieu Olivari How about simply enabling stmmac in the target kernel config? - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/l

Re: [OpenWrt-Devel] [PATCH 2/2] ar71xx: use Image/BuildLoaderPatched for TPLINK-SAFELOADER images

2015-05-30 Thread Felix Fietkau
On 2015-05-31 00:09, Matthias Schiffer wrote: > Ping? > > On 04/29/2015 11:38 PM, Matthias Schiffer wrote: >> Building the loader in Image/Build/TPLINK-SAFELOADER would break the image >> builder as no target compiler is available in that stage. >> >> Fixes #19580 >> >> Signed-off-by: Matthias S

Re: [OpenWrt-Devel] ar71xx: How to integrate UniFi AP Outdoor Plus HSR?

2015-06-01 Thread Felix Fietkau
On 2015-05-27 22:48, Stefan Rompf wrote: > Hi Kirill, > >> So I made a patch for atheros driver and it works. A signal level on >> different frequencies is more or less equal and seems adequate (about >> -30 dbm if a client within a meter from ap). > > so you reverse engineered the timer values,

Re: [OpenWrt-Devel] [PATCH 4/4] ralink: firewrt support memory detect

2015-06-04 Thread Felix Fietkau
On 2015-05-07 04:25, wengbj wrote: > Signed-off-by: wengbj FYI, I've fixed highmem support for the FireWRT board properly in r45889 + r45890. It works fine on my board and I've verified it using memtester. - Felix ___ openwrt-devel mailing list openwrt-

Re: [OpenWrt-Devel] [PATCH 4/4] ralink: firewrt support memory detect

2015-06-05 Thread Felix Fietkau
On 2015-06-05 08:16, w...@t-chip.com.cn wrote: > Dear sir: > it not working on my board . Please provide details. > The memory map is not correct. and you forget to using long jump. In my tests, I found that the window at 0x2000 is bigger than documented in the datasheet. I'm not entir

Re: [OpenWrt-Devel] [PATCH 2/5] utils: refine calloc_a a bit.

2015-06-05 Thread Felix Fietkau
On 2015-06-04 15:41, Yousong Zhou wrote: > - Return early on calloc() failure. > - Correct comment text for __calloc_a(). > > Signed-off-by: Yousong Zhou > --- > utils.c |4 > utils.h |6 +++--- > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/utils.c b/utils.c

Re: [OpenWrt-Devel] [PATCH 4/4] ralink: firewrt support memory detect

2015-06-05 Thread Felix Fietkau
On 2015-06-05 09:30, w...@t-chip.com.cn wrote: > Dear sir: > I believe that it will work well on other 256mb memory board . > > But FireWRT has 512mb memory . > I am confuse that enable HIGHMEM is not for using 512mb memory ? I'm running my code on the FireWRT board with 512M. I ran m

Re: [OpenWrt-Devel] [PATCH 4/4] ralink: firewrt support memory detect

2015-06-05 Thread Felix Fietkau
On 2015-06-05 09:54, w...@t-chip.com.cn wrote: > Dear sir: > > i got it. > please ignore the 2 patches i have send this morning . > i will try again and give you more detail. I now implemented the highmem offset change that I mentioned in my last email and added your memory map fix. It

Re: [OpenWrt-Devel] [PATCH] [ 4/5] ramips: add xmit_more support

2015-06-05 Thread Felix Fietkau
On 2015-06-02 15:06, michael lee wrote: > use pktgen to verify on rt3662. can improve transmit rate. > pkt_size 1500 > burst 1 : 807Mb/sec > burst 8 : 984Mb/sec > > pkt_size 60 > burst 1 : 57Mb/sec > burst 8 : 236Mb/sec > > Signed-off-by: michael lee > --- > .../drivers/net/ethernet/ralink/rali

Re: [OpenWrt-Devel] [PATCH 2/5] utils: refine calloc_a a bit.

2015-06-05 Thread Felix Fietkau
On 2015-06-05 17:03, Yousong Zhou wrote: > > On Jun 5, 2015 3:14 PM, "Felix Fietkau" <mailto:n...@openwrt.org>> wrote: >> >> On 2015-06-04 15:41, Yousong Zhou wrote: >> > - Return early on calloc() failure. >> > - Correct comment text

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Felix Fietkau
On 2015-06-12 21:36, Stefan Rompf wrote: > This patch adds a "channel set helper" callback to the ath9k driver and > exports the ath9k kernel API for other packages. The registered function > is called whenever ath9k changes the channel. > > Signed-off-by: Stefan Rompf NACK from me for the ath9

Re: [OpenWrt-Devel] [PATCH v3 1/2] [mac80211] Add "channel set helper" callback to ath9k

2015-06-13 Thread Felix Fietkau
On 2015-06-13 10:57, Stefan Rompf wrote: > Hi Felix, > > thanks for your feedback! > >> NACK from me for the ath9k_set_channel_helper part. This helper function >> needs to be passed in from the platform data, similar to how external >> reset is handled. >> From previous emails you pointed out th

Re: [OpenWrt-Devel] [PATCH 1/3] openvpn: fix handling comp_lzo and auth_retry as the wrong type.

2015-06-14 Thread Felix Fietkau
On 2015-06-14 06:04, Yousong Zhou wrote: > As reported in #19104. > > Signed-off-by: Yousong Zhou comp-lzo does not seem to fit well in the "bool" category, it takes "yes", "no", or "adaptive". Also, please include the details of the changes that you make in the patch description instead of just

Re: [OpenWrt-Devel] [PATCH 3/5] elfutils: import package from packages.git

2015-06-14 Thread Felix Fietkau
On 2015-05-19 03:43, Luiz Angelo Daros de Luca wrote: > I'm curious, as current elfutils packager, how I should play in this import? > > Should this package be removed from package.git (but there is no PR for it)? > > Or will it be periodically synchronized with packages.git? > > Also, as I'm no

Re: [OpenWrt-Devel] [PATCH 2/5] argp-standalone: import package from packages.git

2015-06-14 Thread Felix Fietkau
On 2015-05-19 01:40, Mathieu Olivari wrote: > argp-standalone is required by elfutils, itself required by perf. So > we'll move this package from packages.git and make it part of the core > distribution. > > Signed-off-by: Mathieu Olivari I will apply this package. Please make sure it gets remove

Re: [OpenWrt-Devel] [PATCH 5/5] perf: remove EGLIBC dependency

2015-06-14 Thread Felix Fietkau
On 2015-05-19 01:40, Mathieu Olivari wrote: > EGLIBC dependency was required as libelf was not found. But we now fixed > the root cause, so we can remove it. perf works with uClibc again. > > Signed-off-by: Mathieu Olivari Does not build with musl, please fix. - Felix ___

Re: [OpenWrt-Devel] Device tree issues with TL-WDR4900 (mpc85xx) and kernel 4.0.1

2015-06-15 Thread Felix Fietkau
On 2015-06-15 10:20, Miklos Szeredi wrote: > On Thu, Jun 11, 2015 at 2:01 PM, Miklos Szeredi wrote: >> On 7 May 2015 at 15:49, Felix Fietkau wrote: >>> On 2015-05-07 08:01, Wojciech Dubowik wrote: >>>> Try to boot with kernel locking enabled. I have seen jffs2 dea

[OpenWrt-Devel] OpenWrt switches to musl by default

2015-06-15 Thread Felix Fietkau
Hi, I just committed a change making musl the new default libc in OpenWrt trunk, replacing uclibc. We've been preparing this for quite a while. Some packages might still be broken, so please test and open up bug reports for any issues that you find. Please remember to open up trac tickets only for

Re: [OpenWrt-Devel] [PATCH] openvpn: bump to 2.3.7.

2015-06-17 Thread Felix Fietkau
On 2015-06-15 07:01, Yousong Zhou wrote: > Two patches are dropped as they were already applied upstream. > > Signed-off-by: Yousong Zhou Please fix the md5sum and refresh all patches. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.

Re: [OpenWrt-Devel] [PATCH] musl: provide wtmp compatibility stub for Linux-PAM.

2015-06-17 Thread Felix Fietkau
On 2015-06-16 15:32, Yousong Zhou wrote: > Signed-off-by: Yousong Zhou Apparently this approach was rejected upstream. I want to keep the amount of non-upstream musl patches to a minimum. This issue seems to be easy to deal with by adding a small patch to Linux-PAM like Alpine Linux has done: h

Re: [OpenWrt-Devel] [PATCH] kernel: mitigate cgroups config dependency changes

2015-06-17 Thread Felix Fietkau
On 2015-06-16 15:20, Daniel Golle wrote: > Memory Resource Controller no longer depends on Resource counters since > Kernel version 4.0. > > Signed-off-by: Daniel Golle > --- > config/Config-kernel.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/config/Config-kernel.

Re: [OpenWrt-Devel] [PATCH] Add support for PandoraBox PBR-M1 Board

2015-06-17 Thread Felix Fietkau
On 2015-06-16 09:27, Tymon wrote: > Hi all, > please find below patch that adds support for PandoraBox PBR-M1 Board > to OpenWRT trunk. > > The board is based on mt7621 platform, and this patch > adds a separate profile for pbr-m1. > > Best regards, > Tymon > > > From: tymon > > Signe

Re: [OpenWrt-Devel] [PATCH] hostapd netifd wmm configuration for speedup wifi.

2015-07-02 Thread Felix Fietkau
On 2015-06-30 11:05, N.Leiten wrote: > Speed up wifi up to 2 times in Access Point mode. On rt5350 platfrom I > got speed up from 35-40Mbit to 70-80Mbit, on ar71xx I got improvement > from 45Mbit to 100Mbit with this parameters set in hostapd.conf. It > seems that hostapd expects not only 'wmm_enab

Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-02 13:47, Günther Kelleter wrote: > The ath10k firmware version is now a choice in the config menu. > Added options for older firmware versions (10.1 and 10.2). It seems that > recent firmware versions don't always run properly and this provides the > option to select an older (more stab

Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 12:36, Martin Blumenstingl wrote: > Hi Felix, > > On Mon, Jul 6, 2015 at 12:26 PM, Felix Fietkau wrote: >> Instead of adding more options that most people don't know what to do >> with, please test the current v5 firmware in trunk and provide details &g

Re: [OpenWrt-Devel] [PATCH v2 6/8] generic: replace request_irq by request_threaded_irq to fix non working ledtrig-gpio

2015-07-06 Thread Felix Fietkau
On 2015-07-02 13:47, Günther Kelleter wrote: > Signed-off-by: Günther Kelleter What issue does this fix? - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 12:48, Martin Blumenstingl wrote: > On Mon, Jul 6, 2015 at 12:39 PM, Felix Fietkau wrote: >> What's the newest firmware that still works on your card? >> Also, please report these issues to the ath10k firmware maintainer. > I think the latest working version

Re: [OpenWrt-Devel] [PATCH v2 6/8] generic: replace request_irq by request_threaded_irq to fix non working ledtrig-gpio

2015-07-06 Thread Felix Fietkau
On 2015-07-06 14:14, Guenther Kelleter wrote: > >> -Original Message- >> From: Felix Fietkau [mailto:n...@openwrt.org] >> Sent: Monday, July 06, 2015 12:43 PM >> To: Guenther Kelleter; openwrt-devel@lists.openwrt.org >> Subject: Re: [OpenWrt-Devel

Re: [OpenWrt-Devel] [PATCH v2 5/8] mac80211: make more ath10k firmwares selectable

2015-07-06 Thread Felix Fietkau
On 2015-07-06 16:05, Guenther Kelleter wrote: > Instead of the original patch, would you accept an option to only > choose between STA mode, AP mode w/ latest API fw (default) and AP mode > with fallback API2 fw (new) for those people who experience crashes with > latest fw? At least until these is

Re: [OpenWrt-Devel] [PATCH] Deal with allocation errors in a few missing places.

2015-07-06 Thread Felix Fietkau
On 2015-06-26 00:20, Juliusz Chroboczek wrote: > Since libubox is used by procd, it should deal gracefully with allocation > failures. > --- > blobmsg_json.c | 2 ++ > json_script.c | 3 +++ > kvlist.c | 4 > ustream.c | 16 +--- > utils.c| 3 +++ > 5 files

  1   2   3   4   5   6   7   8   9   10   >