2 years autoreconf: fix missing install-sh
Petr Štetiar [Tue, 4 Dec 2018 13:47:23 +0000 (14:47 +0100)] autoreconf: fix missing install-sh

I'm trying to create a package for libgpiod, which uses
AC_CONFIG_AUX_DIR macro, which is probably leading to the following
configure error:

 autoreconf: running: /openwrt.git/staging_dir/host/bin/libtoolize --force
 OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autostuff'.
 OpenWrt-libtoolize: linking file `autostuff/'
 OpenWrt-libtoolize: putting macros in `m4'.
 configure: error: cannot find install-sh,, or shtool in autostuff "."/autostuff

>From the build output it's clear, that libtoolize isn't installing
install-sh symlink, because libtoolize would install install-sh only if
it's being run with --install parameter. Corresponding part in

 if $opt_install; then
   func_config_update config.guess \
     "$pkgdatadir/config" "$auxdir" pkgconfig_header
   func_config_update config.sub \
     "$pkgdatadir/config" "$auxdir" pkgconfig_header
   func_install_update install-sh \
     "$pkgdatadir/config" "$auxdir" pkgconfig_header
 func_ltmain_update \
    "$pkgdatadir/config" "$auxdir" pkgconfig_header

Adding --install parameter to libtoolize fixes this build issue:

 autoreconf: running: /openwrt.git/staging_dir/host/bin/libtoolize --install --force
 OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autostuff'.
 OpenWrt-libtoolize: linking file `autostuff/config.guess'
 OpenWrt-libtoolize: linking file `autostuff/config.sub'
 OpenWrt-libtoolize: linking file `autostuff/install-sh'
 OpenWrt-libtoolize: linking file `autostuff/'
 OpenWrt-libtoolize: putting macros in `m4'.

Cc: Felix Fietkau <>
Signed-off-by: Petr Štetiar <>
(cherry picked from commit 5cf897779eacf63cdbcdebd1af68c109096665c6)

2 years agotools: libressl: fix compilation for non-glibc clib (FS#2400)
Hans Dedecker [Tue, 23 Jul 2019 12:47:56 +0000 (14:47 +0200)]
tools: libressl: fix compilation for non-glibc clib (FS#2400)

Fixes compilaton issue for non glibc clibs :

libtool: compile:  gcc -DPACKAGE_NAME=\"libressl\" -DPACKAGE_TARNAME=\"libressl\" -DPACKAGE_VERSION=\"2.9.2\" "-DPACKAGE_STRING=\"libressl 2.9.2\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libressl\" -DVERSION=\"2.9.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYMLINK=1 -DHAVE_ERR_H=1 -DHAVE_ASPRINTF=1 -DHAVE_MEMMEM=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRNDUP=1 -DHAVE_STRNLEN=1 -DHAVE_STRSEP=1 -DHAVE_TIMEGM=1 -DHAVE_SYSLOG=1 -DHAVE_ACCEPT4=1 -DHAVE_PIPE2=1 -DHAVE_POLL=1 -DHAVE_SOCKETPAIR=1 -DHAVE_EXPLICIT_BZERO=1 -DHAVE_GETAUXVAL=1 -DHAVE_GETAUXVAL=1 -DHAVE_DL_ITERATE_PHDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_VA_COPY=1 -DHAS_GNU_WARNING_LONG=1 -DSIZEOF_TIME_T=8 -I. -I../include -I../include/compat -DLIBRESSL_INTERNAL -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= -I../crypto/asn1 -I../crypto/bn -I../crypto/ec -I../crypto/ecdsa -I../crypto/evp -I../crypto/modes -I../crypto -I/builds/pantacor/pv-platforms/openwrt-base/openwrt/staging_dir/host/include -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE -D__STRICT_ALIGNMENT -O2 -I/builds/pantacor/pv-platforms/openwrt-base/openwrt/staging_dir/host/include -fpic -Wall -std=gnu99 -fno-strict-aliasing -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DHAVE_GNU_STACK -Wno-pointer-sign -MT compat/getprogname_linux.lo -MD -MP -MF compat/.deps/getprogname_linux.Tpo -c compat/getprogname_linux.c -o compat/getprogname_linux.o
compat/getprogname_linux.c: In function 'getprogname':
compat/getprogname_linux.c:32:2: error: #error "Cannot emulate getprogname"
 #error "Cannot emulate getprogname"

Reported-by: Anibal Portero <>
Signed-off-by: Hans Dedecker <>
(cherry picked from commit 1282a630272c59dfd105262772a2ca136084db03)

2 years agonetifd: update to latest git HEAD
Hans Dedecker [Mon, 22 Jul 2019 19:46:31 +0000 (21:46 +0200)]
netifd: update to latest git HEAD

899f168 system-linux: Coverity fixes

Signed-off-by: Hans Dedecker <>
(cherry picked from commit 11617bcb3be6778d5427723a09922aae50956a8c)

2 years agotools: libressl: fix build on MacOS
Kevin Darbyshire-Bryant [Mon, 22 Jul 2019 13:38:54 +0000 (14:38 +0100)]
tools: libressl: fix build on MacOS

Making all in tests
depbase=`echo handshake_table.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"libressl\" -DPACKAGE_TARNAME=\"libressl\" -DPACKAGE_VERSION=\"2.9.2\" -DPACKAGE_STRING=\"libressl\ 2.9.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libressl\" -DVERSION=\"2.9.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SYMLINK=1 -DHAVE_ERR_H=1 -DHAVE_READPASSPHRASE_H=1 -DHAVE_ASPRINTF=1 -DHAVE_MEMMEM=1 -DHAVE_READPASSPHRASE=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRNDUP=1 -DHAVE_STRNLEN=1 -DHAVE_STRSEP=1 -DHAVE_TIMEGM=1 -DHAVE_GETPROGNAME=1 -DHAVE_SYSLOG=1 -DHAVE_POLL=1 -DHAVE_SOCKETPAIR=1 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_BUF=1 -DHAVE_ARC4RANDOM_UNIFORM=1 -DHAVE_TIMINGSAFE_BCMP=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DSIZEOF_TIME_T=8 -I.  -I../include -I../include/compat -DLIBRESSL_INTERNAL -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= -I ../crypto/modes -I ../crypto/asn1 -I ../ssl -I ../tls -I ../apps/openssl -I ../apps/openssl/compat -D_PATH_SSL_CA_FILE=\"../apps/openssl/cert.pem\" -I/Users/kevin/wrt/staging_dir/host/include  -D__STRICT_ALIGNMENT  -O2 -I/Users/kevin/wrt/staging_dir/host/include  -fpic -Wall -std=gnu99 -fno-strict-aliasing  -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-strong  -Qunused-arguments -Wno-pointer-sign -MT handshake_table.o -MD -MP -MF $depbase.Tpo -c -o handshake_table.o handshake_table.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: *** No rule to make target `/Users/kevin/wrt/build_dir/host/libressl-2.9.2/crypto/.libs/libcrypto_la-cpuid-macosx-x86_64.o', needed by `handshake_table'.  Stop.
make[3]: *** [all-recursive] Error 1

A similar error & clues from

LibreSSL 2.9.1 now has a test that requires libtls.a, however, when building a
shared library only build, the --disable-static flag is passed to libressl,
which prevents the building of libtls.a.

With libtls.a not being built, the following error occurs:
libressl-2.9.1/tls/.libs/libtls.a', needed by 'handshake_table'.  Stop.

There are three options to fix this:
1) Stick with autotools, and provide a patch that removes building anything in
   the tests folder.
2) Pass --enable-static to LIBRESSL_CONF_OPTS
3) Change the package type to cmake, as a cmake build does not have this issue."

It appears we cannot change to cmake because cmake has a dependency on
an ssl library.

Take option 1 and do not build the tests.

Also take the opportunity to remove man page building as well.

Signed-off-by: Kevin Darbyshire-Bryant <>
(cherry picked from commit 8d6d227bb653b7cce7092a5a9d55180c3e022848)

2 years agocurl: update to 7.65.3
Hans Dedecker [Sun, 21 Jul 2019 21:25:15 +0000 (23:25 +0200)]
curl: update to 7.65.3

For changes in 7.65.3; see

Signed-off-by: Hans Dedecker <>
(cherry picked from commit fc2df4f7050adae3ca6284a499fa914e07cba70b)

2 years agotools: libressl: update to 2.9.2 version
Roman Yeryomin [Thu, 18 Jul 2019 16:35:50 +0000 (19:35 +0300)]
tools: libressl: update to 2.9.2 version

To keep in sync with OpenSSL 1.1.x branch version options.

Signed-off-by: Roman Yeryomin <>
(cherry picked from commit 3f1e8c01316a5ea0162197cd8eb6dbbabe396176)

2 years agoopenvpn: add new list option tls_ciphersuites
Martin Schiller [Tue, 28 May 2019 10:50:15 +0000 (12:50 +0200)]
openvpn: add new list option tls_ciphersuites

To configure the list of allowable TLS 1.3 ciphersuites, the option
tls_ciphersuites is used instead of tls_ciphers.

Signed-off-by: Martin Schiller <>
(cherry picked from commit 261df949faad6dda43454868628f79265e9cc5e7)

2 years agobase-files: don't set ARGV and ARGC
Rafał Miłecki [Sun, 14 Jul 2019 17:00:00 +0000 (19:00 +0200)]
base-files: don't set ARGV and ARGC

Those are not used by any image check function anymore.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit 3f4c785a6bbde87296e362c315f10b55c98843e3)

2 years agomvebu: sysupgrade: drop platform_copy_config_sdcard() argument
Rafał Miłecki [Sun, 14 Jul 2019 20:08:58 +0000 (22:08 +0200)]
mvebu: sysupgrade: drop platform_copy_config_sdcard() argument

That function doesn't take any arguments so don't pass anything when
calling it.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit 670ce65a44db4263ee21a3fce962c47378ef042b)

2 years agotarget/toolchain/files/ simplify 'case'
Eneas U de Queiroz [Mon, 15 Jul 2019 17:08:00 +0000 (14:08 -0300)]
target/toolchain/files/ simplify 'case'

Removed an eglibc remnant, and while at it, grouped all of the
TOOLCHAIN_PLATFORMs using the same FLAGS together.

Signed-off-by: Eneas U de Queiroz <>
(cherry picked from commit 7d97bc19f08fc3f9a644b70323daa58e58291227)

2 years agolibs/toolchain: remove eglibc remnant file
Eneas U de Queiroz [Mon, 15 Jul 2019 17:07:59 +0000 (14:07 -0300)]
libs/toolchain: remove eglibc remnant file

This removes package/libs/toolchain/eglibc-files/etc/nsswitch.conf.

Signed-off-by: Eneas U de Queiroz <>
(cherry picked from commit c47eff0df3270199a69552587355834e57d6b782)

2 years agoubox: implement service_running() in log init.d script
Rafał Miłecki [Wed, 3 Jul 2019 09:16:22 +0000 (11:16 +0200)]
ubox: implement service_running() in log init.d script

It allows checking if service is running.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit 1b937cb14184b5ff9a7a75fbc5d226032f931c35)

2 years agorpcd: implement service_running() in init.d script
Rafał Miłecki [Wed, 3 Jul 2019 09:16:21 +0000 (11:16 +0200)]
rpcd: implement service_running() in init.d script

It allows checking if service is running.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit 285c83a004ea57d484e6f27df9ac04d0d7b0f00f)

2 years agoprocd: update to latest git HEAD
Hans Dedecker [Sat, 13 Jul 2019 11:24:56 +0000 (13:24 +0200)]
procd: update to latest git HEAD

31f0765 procd: check strchr() result before using it

Signed-off-by: Hans Dedecker <>
(cherry picked from commit 9a72e7f60171d73e4eb83b5ec71df20e48ee5f18)

2 years agobase-files: move stage2 upgrade to separated file
Rafał Miłecki [Wed, 3 Jul 2019 07:51:49 +0000 (09:51 +0200)]
base-files: move stage2 upgrade to separated file

do_upgrade_stage2() isn't really any common code. It isn't used anywhere
except for /sbin/sysupgrade that passes it to the stage2.

Moving its code to separated file also simplifies COMMAND variable.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit f7edd94a6588aa6a3e2e7a72410a34392a9fbe78)

2 years agoinclude/ Add support for src-checkout/ folder
John Crispin [Wed, 10 Jul 2019 11:32:24 +0000 (13:32 +0200)]
include/ Add support for src-checkout/ folder

This feature is similar to the SRC_TREE_OVERRIDE. However instead of having
to manually create a symlink inside the package folder, the buildsystem
will check if $(TOP_DIR)/src-checkout/$(PKG_NAME)/.git is present and use
this instead.

Signed-off-by: John Crispin <>
(cherry picked from commit 9e57b627834166f0b0e365a165975fafd72ab951)

2 years agousbreset: Add missing header
Rosen Penev [Sun, 7 Jul 2019 21:30:17 +0000 (14:30 -0700)]
usbreset: Add missing header

Fixes undefined reference to strtoul

Signed-off-by: Rosen Penev <>
(cherry picked from commit 653e05d27f13fee2ab925031c5162ddb34b755f0)

2 years agoutil-linux: Update to 2.34
Daniel Engberg [Sat, 15 Jun 2019 10:20:44 +0000 (10:20 +0000)]
util-linux: Update to 2.34

Update util-linux to 2.34
Refresh patch

Signed-off-by: Daniel Engberg <>
(cherry picked from commit d51f53b5badd684af702b946dea47cf5501ead6d)

2 years agotools/gengetopt: Update to 2.23
Daniel Engberg [Sat, 15 Jun 2019 09:07:53 +0000 (09:07 +0000)]
tools/gengetopt: Update to 2.23

Update gengetopt to 2.23
Remove 100-dependency_fix.patch, fixed upstream
Rework no tests and docs patch
Fix typo in copyright section

Signed-off-by: Daniel Engberg <>
(cherry picked from commit 6fac9077c674e151e86cb02319c76f6d526579c7)

2 years agoiperf3: update to 3.7
DENG Qingfang [Fri, 5 Jul 2019 18:42:23 +0000 (02:42 +0800)]
iperf3: update to 3.7

Signed-off-by: DENG Qingfang <>
(cherry picked from commit 42b3a3a89b6d60e10c6c266d29ebc779b7fee718)

2 years agobase-files: drop support for NAND upgrade in platform_pre_upgrade()
Rafał Miłecki [Tue, 2 Jul 2019 14:10:57 +0000 (16:10 +0200)]
base-files: drop support for NAND upgrade in platform_pre_upgrade()

With bcm53xx switched to the new procedure there is no more need for
keeping that backward compatibility code.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit ea4e1dac71dfa015c0da10e68149478fa25878f9)

2 years agobcm53xx: sysupgrade: call nand_do_upgrade() from platform_do_upgrade()
Rafał Miłecki [Tue, 2 Jul 2019 14:10:56 +0000 (16:10 +0200)]
bcm53xx: sysupgrade: call nand_do_upgrade() from platform_do_upgrade()

Calling nand_do_upgrade() from platform_pre_upgrade() was obsoleted in
the commit 30f61a34b4cf ("base-files: always use staged sysupgrade").

This change brings bcm53xx in sync with other targets and allows
dropping backward compatibility code. It shouldn't change any user
visible behavior.

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit ccf8a8e8633ccfd94fda233b06055ac42e4c9fd5)

2 years agobase-files: drop unused jffs2_copy_config()
Rafał Miłecki [Tue, 2 Jul 2019 11:16:08 +0000 (13:16 +0200)]
base-files: drop unused jffs2_copy_config()

Its last usage was dropped back in 2013 in the commit b95bdc8ab56e
("kernel/base-files: clean up old code related to refreshing mtd
partitions, it is no longer used anywhere").

Signed-off-by: Rafał Miłecki <>
(cherry picked from commit f58ca6ee57b77350c69639defdceacb2e77e2249)

2 years agozram-swap: Add extra commands for status/compaction
Emil Muratov [Sun, 24 Feb 2019 07:00:03 +0000 (10:00 +0300)]
zram-swap: Add extra commands for status/compaction

This patch adds two new commands:
  zram status - shows memory stats for all zram swaps
  zram compaction - trigger compaction for all zram swaps

Signed-off-by: Emil Muratov <>
Signed-off-by: Christian Lamparter <>
(cherry picked from commit a9deed62af569608af3e4e076138d788e24b1652)

2 years agobusybox: enable swapon/off by default to make it consistent with mkswap
Emil Muratov [Thu, 1 Nov 2018 18:53:43 +0000 (21:53 +0300)]
busybox: enable swapon/off by default to make it consistent with mkswap

  No size increase on busybox binary.
  Since busybox mkswap is already enabled by default it seems reasonable
  to enable swapon/off too. For ex. this obsoletes installing block-mount
  dependency for zram-swap.

Signed-off-by: Emil Muratov <>
(cherry picked from commit afa5ce2493505dc0a0de4cefa9ccbf3a6389bdbc)

2 years agozram-swap: Add zram compaction and statistics info output
Emil Muratov [Wed, 31 Oct 2018 21:16:58 +0000 (00:16 +0300)]
zram-swap: Add zram compaction and statistics info output

Executing '/etc/init.d/zram start' during runtime (with a swap being already
mounted) triggers zram device compaction and prints out nice stats info about
zram memory usage

Signed-off-by: Emil Muratov <>
Signed-off-by: Christian Lamparter <> [use IEC's MiB unit]
(cherry picked from commit b062c90f47dd0745562a8f2618c2a43136a4c7e1)

2 years agozram-swap: Fix busybox dependency check
Emil Muratov [Wed, 31 Oct 2018 08:43:49 +0000 (11:43 +0300)]
zram-swap: Fix busybox dependency check

   - fix dependency on BUSYBOX_CONFIG_SWAPONOFF (removed in 84da2a6)
   - add busybox defaults checking (fix zram-swap always installs swap-utils
     and libblkid as dependency, even if busybox includes mkswap by default)

Signed-off-by: Emil Muratov <>
(cherry picked from commit c0d93432f2446fbf193ec15e4880cbafa9980779)

2 years agolibnftnl: bump to version 1.1.3
Konstantin Demin [Mon, 1 Jul 2019 14:15:50 +0000 (17:15 +0300)]
libnftnl: bump to version 1.1.3

bump ABI version accordingly (thanks to Jo-Philipp Wich).

Signed-off-by: Konstantin Demin <>
(cherry picked from commit ce8027ed296f812099be813182f8b2f65ce16abf)

2 years agobuild: skip kernel stack validation when building on macOS
Felix Fietkau [Wed, 3 Jul 2019 11:29:13 +0000 (13:29 +0200)]
build: skip kernel stack validation when building on macOS

Since we switched to 4.19, the kernel build checks for libelf to decide if
it should build tools for stack validation.

On macOS, this check fails during target/compile, but succeeds during package
build (because of the pkg-config path picking up target libraries).

Signed-off-by: Felix Fietkau <>
(cherry picked from commit c3e31b6a9b040912be0b532f9bf29d91c6c74382)

2 years agocomgt: add delay option for 3g proto
Florian Eckert [Wed, 26 Jun 2019 10:36:01 +0000 (12:36 +0200)]
comgt: add delay option for 3g proto

All protos for wwan (ncm,qmi,mbim) do have a delay option.
To standardize that add also the missing delay option to the 3g proto.

Signed-off-by: Florian Eckert <>
(cherry picked from commit 313444a79e9d1ced42223a9c92cb677b6e6e286e)

2 years agobase-files: supress service restart of umount
Karel Kočí [Sat, 29 Jun 2019 09:10:19 +0000 (11:10 +0200)]
base-files: supress service restart of umount

Restart is in default implemented so it calls stop and start. This is
pretty unsafe to call on umount service. This service should not do
anything on restart the same way as on start. Only use of this service
is on stop.

Signed-off-by: Karel Kočí <>
(cherry picked from commit 537b801c5490a85a3ef36456b12f064fc6c665a2)

2 years agouqmi: fix indentation style and boundary
Florian Eckert [Mon, 1 Jul 2019 07:30:26 +0000 (09:30 +0200)]
uqmi: fix indentation style and boundary

Fix indentation style and boundary.

Signed-off-by: Florian Eckert <>
(cherry picked from commit c06f2a2dcb2350d00cc6bd8300ec3861353d96ae)

2 years agouqmi: add mtu config option possibility
Florian Eckert [Thu, 27 Jun 2019 12:42:48 +0000 (14:42 +0200)]
uqmi: add mtu config option possibility

There are mobile carrier who have different MTU size in their network.
With this change it is now possible to configure this with the qmi
proto handler.

Signed-off-by: Florian Eckert <>
(cherry picked from commit 8eb63cb7df4db3c92a9a010accc9b8444d06d4a2)

2 years agoscripts: Don't print the time on stderr
Alban Bedel [Sat, 15 Jun 2019 10:18:01 +0000 (12:18 +0200)]
scripts: Don't print the time on stderr

Having the build time written on stderr make it appear with V=w
although it is not an error or warning. Just write the time on stdout
to have it part of the build log like all the rest, but not clutter
the output when only warnings and errors should be shown.

Signed-off-by: Alban Bedel <>
(cherry picked from commit 340df72e0745236379554dc9ff487e260a424465)

2 years agowireguard: bump to 0.0.20190702
Jason A. Donenfeld [Tue, 2 Jul 2019 12:42:50 +0000 (14:42 +0200)]
wireguard: bump to 0.0.20190702

* curve25519: not all linkers support bmi2 and adx

This should allow WireGuard to build on older toolchains.

* global: switch to coarse ktime

Our prior use of fast ktime before meant that sometimes, depending on how
broken the motherboard was, we'd wind up calling into the HPET slow path. Here
we move to coarse ktime which is always super speedy. In the process we had to
fix the resolution of the clock, as well as introduce a new interface for it,
landing in 5.3. Older kernels fall back to a fast-enough mechanism based on

* netlink: cast struct over cb->args for type safety

This follow recent upstream changes such as:

* peer: use LIST_HEAD macro

Style nit.

* receive: queue dead packets to napi queue instead of empty rx_queue

This mitigates a WARN_ON being triggered by the workqueue code. It was quite
hard to trigger, except sporadically, or reliably with a PC Engines ALIX, an
extremely slow board with an AMD LX800 that Ryan Whelan of Axatrax was kind
enough to mail me.

Signed-off-by: Jason A. Donenfeld <>
(cherry picked from commit 7c23f741e97f6645bb5cd662a4943796a344b26a)

2 years agoMake linux kernel builds reproducible when BUILDBOT selected
Alexander Couzens [Wed, 12 Jun 2019 00:59:05 +0000 (02:59 +0200)]
Make linux kernel builds reproducible when BUILDBOT selected

The linux kernel is not reproducible because the build user
and domain is included into the kernel. Set the build user
to `builder` and build domain to buildhost.

It's also possible to build reproducible builds by setting

Signed-off-by: Alexander Couzens <>
(cherry picked from commit fdd0a8d49118134070c13231b6d10ec88b9105da)

2 years agoscripts/feeds: add src-include method
Bjørn Mork [Wed, 5 Jun 2019 12:19:11 +0000 (14:19 +0200)]
scripts/feeds: add src-include method

The src-include method allows recursive inclusion of feeds.conf snippets.

This can for example be used for adding static local feeds to
feeds.conf.default without ever having to update the local feeds.conf:

 src-include defaults feeds.conf.default
 src-link custom /usr/local/src/lede/custom

Signed-off-by: Bjørn Mork <>
(cherry picked from commit 7a1b575ac4ede2778bb21cfafa7a1152d9d2555f)

2 years agobase-files: add network_get_uptime() to /lib/functions/
Florian Eckert [Fri, 28 Jun 2019 10:59:19 +0000 (12:59 +0200)]
base-files: add network_get_uptime() to /lib/functions/

Add missing ubus api call for uptime value.

Signed-off-by: Florian Eckert <>
(cherry picked from commit 9e780ed5f7b834e06ec5c82323731917aef4ee53)

2 years agoupgs: update to latest git HEAD
Petr Štetiar [Tue, 25 Jun 2019 16:45:02 +0000 (18:45 +0200)]
upgs: update to latest git HEAD

cd7eabcd8c9d ugps: Fix compilation under 64-bit
198c06051dd0 Fix build error caused by enabled extra compiler warnings
fc2ab8756b3b Enable extra compiler warnings

Signed-off-by: Petr Štetiar <>
(cherry picked from commit f924fab3dccb348479bede006d9cf6792193e9ce)

2 years agobuild: warn when packages have no associated install section
Jonas Gorski [Sat, 22 Jun 2019 12:02:27 +0000 (14:02 +0200)]
build: warn when packages have no associated install section

Declaring a package without the appropriate install section is an easy
mistake to make, especially when renaming packages. Since this is also
easy to detect, warn about it when it happens.

Signed-off-by: Jonas Gorski <>
No-objections-at-all-by: Jo-Philipp Wich <>
(cherry picked from commit 5ede3fcdf74dcc1b1b4c9415152b2e8b26a45ead)

2 years agoustream-ssl: update to 2019-06-24
Eneas U de Queiroz [Mon, 24 Jun 2019 19:24:00 +0000 (16:24 -0300)]
ustream-ssl: update to 2019-06-24

This adds chacha20-poly1305 support to the mbedtls variant.

Signed-off-by: Eneas U de Queiroz <>
(cherry picked from commit 82a8ddd603707a130acf5ec1f54d9093d46acad4)

2 years agorssileds: change rssileds.init STOP index
Joseph Tingiris [Sun, 13 Jan 2019 21:43:50 +0000 (16:43 -0500)]
rssileds: change rssileds.init STOP index

This patch is in a series to allow additional STOP indexes after
umount, so that other block devices may stop cleanly.

rssileds.init is now STOP=89

Signed-off-by: Joseph Tingiris <>
(cherry picked from commit 8a5a01a67769f3822e365342d706b3cb57ef97f3)

2 years agokexec-tools: change kdump.init STOP index
Joseph Tingiris [Sun, 13 Jan 2019 21:43:49 +0000 (16:43 -0500)]
kexec-tools: change kdump.init STOP index

This patch is in a series to allow additional STOP indexes after umount,
so that other block devices may stop cleanly.

kdumpinit is now STOP=90

Signed-off-by: Joseph Tingiris <>
(cherry picked from commit 5883b5a1f888c7f18da75eb4a1df9003a8bcc9f2)

2 years agobase-files: change boot & umount STOP indexes
Joseph Tingiris [Sun, 13 Jan 2019 21:43:48 +0000 (16:43 -0500)]
base-files: change boot & umount STOP indexes

This patch is in a series to allow additional STOP indexes after umount,
so that other block devices may stop cleanly.

boot is now STOP=90
umount is now STOP=90

After this patch series, the resulting STOP indexes in the 80s & 90s
will be:

STOP=85 odhcpd.init
STOP=89 conntrackd.init
STOP=89 log.init
STOP=89 rssileds.init
STOP=90 boot
STOP=90 kdump.init
STOP=90 network
STOP=90 sysfixtime
STOP=90 umount
STOP=98 mdadm.init (note: will be addressed in a separate patch)

Signed-off-by: Joseph Tingiris <>
Signed-off-by: Christian Lamparter <>
[PKG_RELEASE is now 200]

(cherry picked from commit 04811007e53c5a5bdddbd0a00b330e12a5dbd045)

2 years agombedtls: Update to version 2.16.2
Josef Schlehofer [Tue, 18 Jun 2019 22:31:03 +0000 (00:31 +0200)]
mbedtls: Update to version 2.16.2

Signed-off-by: Josef Schlehofer <>
(cherry picked from commit a2f54f6d5d98211e9c58420eed8c67f4fca83665)

2 years agopackage/network: add PKGARCH:=all to non-binary packages
Deng Qingfang [Fri, 21 Jun 2019 03:10:36 +0000 (11:10 +0800)]
package/network: add PKGARCH:=all to non-binary packages

Packages such as xfrm contain only script files, add PKGARCH:=all

Signed-off-by: Deng Qingfang <>
(cherry picked from commit 6762e72524075c37928ad4ae9a979257759b2703)

2 years agonghttp2: deduplicate files in staging_dir
Eneas U de Queiroz [Sat, 22 Jun 2019 08:17:21 +0000 (10:17 +0200)]
nghttp2: deduplicate files in staging_dir

'38b22b1e: deduplicate files in libnghttp2' missed duplicates in
staging_dir by Build/InstallDev.

Signed-off-by: Eneas U de Queiroz <>
(cherry picked from commit ee1a78331462d0c2394c0e6805e4d12fbfa4882d)

2 years agotools/bison: Update to 3.4.1
Daniel Engberg [Sat, 15 Jun 2019 02:26:56 +0000 (02:26 +0000)]
tools/bison: Update to 3.4.1

Update bison to 3.4.1
Remove 010-intl-stub-compat.patch

Signed-off-by: Daniel Engberg <>
(cherry picked from commit 9fc03832bc46b13b377cbe2f6d1acca45f1ad002)

2 years agorpcd: add direct dependency on libjson-c
Jo-Philipp Wich [Fri, 21 Jun 2019 15:41:28 +0000 (17:41 +0200)]
rpcd: add direct dependency on libjson-c

The OpenWrt buildroot ABI version rebuild tracker does not handle
transient dependencies, therefor add all libraries linked by rpcd
as direct dependencies to the corresponding binary package definition.

This ensures that rpcd is automatically rebuilt and relinked if any
of these libraries has its ABI_VERSION updated in the future.

Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit eaad2211dbfb9fdf0815c8d19423069ec099bad2)

2 years agometadata: handle ABI version rebuild tracking for transient dependencies
Jo-Philipp Wich [Thu, 20 Jun 2019 19:02:06 +0000 (21:02 +0200)]
metadata: handle ABI version rebuild tracking for transient dependencies

Extend the packageauxvars database to keep a list of possible package
dependencies for each provider, then utilize this information in buildroot
to resolve the ABI version dependencies of dependent packages up to five
levels deep.

This should properly trigger rebuilds for packages indirectly depending
on other packages whose ABI_VERSION changed.

Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 27a4a71c240875e3fff868f26f723178bf94eb86)

2 years agobase-files: apply new sysctl.conf at postinst
Yousong Zhou [Thu, 20 Jun 2019 10:29:53 +0000 (10:29 +0000)]
base-files: apply new sysctl.conf at postinst

This is mainly for kmod-br-netfilter.  To turn off
bridge-netfilter-call-xxx immediately after installation

While at it

 - Define filelist="/usr/lib/opkg/info/${pkgname}.list"
 - Reuse "[ -z "$root" ]"
 - Grep with "-m1"

Fixes FS#2300

Reported-by: Marco Sartorius <>
Signed-off-by: Yousong Zhou <>
(cherry picked from commit 3dc4f59eabaed5135cd4eed8d1846248d5f1b37c)

2 years agogemini: Fix up DNS-313 compatible string
Linus Walleij [Thu, 20 Jun 2019 11:19:06 +0000 (13:19 +0200)]
gemini: Fix up DNS-313 compatible string

It's a simple typo in the DNS file, which was pretty serious.
No scripts were working properly. Fix it up.

Signed-off-by: Linus Walleij <>
Signed-off-by: Christian Lamparter <>
[integrate upstream patch into openwrt target]

(cherry picked from commit 5470e928d08fd4cca99cf77ccee72e4fee444d27)

2 years agohostapd: remove stale WPA_SUPPLICANT_NO_TIMESTAMP_CHECK option
Christian Lamparter [Tue, 11 Dec 2018 17:40:04 +0000 (18:40 +0100)]
hostapd: remove stale WPA_SUPPLICANT_NO_TIMESTAMP_CHECK option

Support to disable the timestamp check for certificates in
wpa_supplicant (Useful for devices without RTC that cannot
reliably get the real date/time) has been accepted in the
upstream hostapd. It's implemented in wpa_supplicant as a
per-AP flag tls_disable_time_checks=[0|1].

Signed-off-by: Christian Lamparter <>
(cherry picked from commit 99bf9a1ac2b754e708ec845059689b293d1abab0)

2 years agoapm821xx: fix bogus key-presses on boot
Christian Lamparter [Sat, 15 Jun 2019 17:13:30 +0000 (19:13 +0200)]
apm821xx: fix bogus key-presses on boot

"There are often transient line events when
the system is powered up and initialized and it
is often necessary for the gpio_chip driver to
clear any interrupt flags in hardware before
setting up the gpio chip, especially the
irqchip portions of it."

This patch adds a fix for the APM821XX's interrupt
controller to clear any bogus pending toggled
interrupts that happens on various APM821XX boards
on boot.

The patch also changes the debouce-interval from the
default 5ms debounce interval to 60ms all around.
The default setting caused on occasions that the button
state became stuck in a pressed state, even though the
button was released.

Signed-off-by: Christian Lamparter <>
(backported from commit 971f31bedcad0a954a4a4e79140346cc896d352e)

2 years agoscripts/config: fix *c_shipped build depency tracking
Jonas Gorski [Thu, 20 Jun 2019 15:02:30 +0000 (17:02 +0200)]
scripts/config: fix *c_shipped build depency tracking

The Makefile was missing dependencies on *c_shipped, so changes never
triggered a rebuild. Add these as optional dependencies so their absence
isn't treated as an error.

In addition, fix a typo preventing the zconf.lex.o from being removed on

Fixes: 9d5510a500a1 ("build: add new menuconfig code based on linux 3.9")
Signed-off-by: Jonas Gorski <>
Acked-by: Jo-Philipp Wich <>
(cherry picked from commit 0096a1cf0015e483b99e51c74f2f0bbae7247342)

2 years agometadata: ensure one dependency provider to be y if a package is y
Jonas Gorski [Sat, 15 Jun 2019 13:04:53 +0000 (15:04 +0200)]
metadata: ensure one dependency provider to be y if a package is y

When there are multiple packages providing a meta-package, it is
possible to to create a config where a package is selected as =y, but
all of its dependency providers are just selected as =m. This is due to
the selection statement being just

  config PACKAGE_foo
    select PACKAGE_bar if !PACKAGE_baz

which is already fulfilled by PACKAGE_bar=m. Fix this by properly
comparing the selection states:

  config PACKAGE_foo
    select PACKAGE_bar if PACKAGE_baz<PACKAGE_foo

Also invert the select conditions to improve readability.

Signed-off-by: Jonas Gorski <>
[slightly reword commit message]
Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 1fd50531cac9c41334d8f57e2dbc1f50c3572445)

2 years agotreewide: fix syntax errors exposed after kconfig update
Jo-Philipp Wich [Sat, 15 Jun 2019 12:57:14 +0000 (14:57 +0200)]
treewide: fix syntax errors exposed after kconfig update

After commit e82a4d9cfb ("config: regenerate *_shipped sources") the mconf
parser became more strict as a side effect and started to spew a series of
warnings when evaluating our generated kconfig sources:

  tmp/ ignoring unsupported character '@'

The root cause of these warnings is a wrong use of the @SYMBOL dependency
syntax in various Makefile. Fix the corresponding Makefiles by turning
`@SYM||@SYM2` expressions into the proper `@(SYM||SYM2)` form.

Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 74739c4228f3bd0aa757165c67c53016c3deb544)

2 years agoconfig: fix relational operators for bool and tristate symbols
Nicolas Pitre [Sat, 15 Jun 2019 15:07:08 +0000 (17:07 +0200)]
config: fix relational operators for bool and tristate symbols

Since commit 31847b67bec0 ("kconfig: allow use of relations other than
(in)equality") it is possible to use relational operators in Kconfig
statements. However, those operators give unexpected results when
applied to bool/tristate values:

(n < y) = y (correct)
(m < y) = y (correct)
(n < m) = n (wrong)

This happens because relational operators process bool and tristate
symbols as strings and m sorts before n. It makes little sense to do a
lexicographical compare on bool and tristate values though.

Documentation/kbuild/kconfig-language.txt states that expression can have
a value of 'n', 'm' or 'y' (or 0, 1, 2 respectively for calculations).
Let's make it so for relational comparisons with bool/tristate
expressions as well and document them. If at least one symbol is an
actual string then the lexicographical compare works just as before.

Signed-off-by: Nicolas Pitre <>
Acked-by: Randy Dunlap <>
Tested-by: Randy Dunlap <>
Signed-off-by: Masahiro Yamada <>
[rebased against OpenWrt kconfig, slightly reword commit message]
(backported from upstream 9059a3493efea6492451430c7e2fa0af799a2abb)
Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 75dcaf3d23301da35eb4a6d0efc5ba5a0ed09850)

2 years agoconfig: regenerate *_shipped sources
Jonas Gorski [Sat, 15 Jun 2019 12:54:07 +0000 (14:54 +0200)]
config: regenerate *_shipped sources

The pregenerated `zconf.hash.c` and `zconf.lex.c` files have not been
kept in sync with their respective `*.y` and `*.l` sources in the past
causing our kconfig implementation to not recognize important kconfig
grammer elements such as relational `<`, `<=`, `>` and `>=` operators.

Fixes: 2d7e602381f3 ("scripts/config: sync with latest linux upstream")
Signed-off-by: Jonas Gorski <>
[reword commit message]
Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 972123f1e056e6d443be1e4a11db09b5d2ef53da)

2 years agoprocd: add direct dependencies on libblobmsg-json and libjson-c
Jo-Philipp Wich [Thu, 20 Jun 2019 10:54:02 +0000 (12:54 +0200)]
procd: add direct dependencies on libblobmsg-json and libjson-c

The OpenWrt buildroot ABI version rebuild tracker does not handle
transient dependencies, therefor add all libraries linked by procd
as direct dependencies to the corresponding binary package definition.

This ensures that procd is automatically rebuilt and relinked
if any of these libraries has its ABI_VERSION updated in the

Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 66838cd8513e50d82996425434efcb260d893180)

2 years agourngd: move project to
Petr Štetiar [Mon, 17 Jun 2019 13:25:40 +0000 (15:25 +0200)]
urngd: move project to

Let's move project to a proper place.

Signed-off-by: Petr Štetiar <>
(cherry picked from commit bec8fb1ee7188bfe7eff0f39e060039623e2575e)

2 years agonghttp2: bump to 1.39.1
Hans Dedecker [Sun, 16 Jun 2019 19:27:04 +0000 (21:27 +0200)]
nghttp2: bump to 1.39.1

7ffc239b Bump up version number to 1.39.1
bc886a0e Fix FPE with default backend
a3a14a9c Fix log-level is not set with cmd-line or configuration file
acfb3607 Update manual pages
bdfd14c2 Bump up version number to 1.39.0, LT revision to 31:4:17
cddc09fe Update AUTHORS
3c3b6ae8 Add missing colon
2f83aa9e Fix multi-line text travis issue
fc591d0c Run nghttpx integration test with cmake build
9a17c3ef travis: use multi-line text
b7220f07 cmake: Remove SPDY related files
a1556fd1 Merge pull request #1356 from nghttp2/fix-log-level-on-reload
77f1c872 nghttpx: Fix unchanged log level on configuration reload
49ce44e1 Merge pull request #1352 from nghttp2/travis-osx
f54b3ffc Fix libxml2 CFLAGS output
b0f5e5cc Implement daemon() using fork() for OSX
8d6ecd66 Enable osx build on travis
f82fb521 Update doc
2e1975dd clang-format-8
97ce392b Merge pull request #1347 from nghttp2/nghttpx-ignore-cl-te-on-upgrade
afefbda5 Ignore content-length in 200 response to CONNECT request
4fca2502 nghttpx: Ignore Content-Length and Transfer-Encoding in 1xx or 200 to CONNECT
6975c336 Update llhttp to 1.1.3
0288093c Fix llhttp_get_error_pos usage
a3a03481 Merge pull request #1340 from nghttp2/nghttpx-llhttp
c64d2573 Replace http-parser with llhttp
f028cc43 clang-format
302e3746 Merge pull request #1337 from nghttp2/upgrade-mruby
3cdbc5f5 Merge pull request #1335 from adamgolebiowski/boost-1.70
a6925186 Fix mruby build error
45d63d20 Upgrade mruby to 2.0.1
cbba1ebf asio: support boost-1.70
e86d1378 Bump up version number to 1.39.0-DEV
4a9d2005 Update manual pages

Signed-off-by: Hans Dedecker <>
(cherry picked from commit 865e25e049f6d5a6488c5e83a7d89d0dc896c876)

2 years agourngd: Fix more wrong type in format string
Hauke Mehrtens [Sun, 16 Jun 2019 16:59:04 +0000 (18:59 +0200)]
urngd: Fix more wrong type in format string

Also the other type is worng and causes compile problems on ARM64

Fixes: 9b53201d9c53 ("urngd: Fix wrong type in format string")
Signed-off-by: Hauke Mehrtens <>
(cherry picked from commit 1ae1276eab1903d194c1a0f8037e7f44304568b1)

2 years agolibubox: update to latest git HEAD
Hauke Mehrtens [Sun, 16 Jun 2019 14:36:13 +0000 (16:36 +0200)]
libubox: update to latest git HEAD

9dd2dcf libubox: add format string checking to ulog()
ecf5617 ustream: Add format string checks to ustream_(v)printf()

Signed-off-by: Hauke Mehrtens <>
(cherry picked from commit fc454ca15305e332a35c9bc1e60dde18f69ac210)

2 years agourngd: Fix wrong type in format string
Hauke Mehrtens [Sun, 16 Jun 2019 14:38:56 +0000 (16:38 +0200)]
urngd: Fix wrong type in format string

GCC 9.1 complains about this wrong type used in the format string, fix
this to make the compiler happy.

Signed-off-by: Hauke Mehrtens <>
(cherry picked from commit 9b53201d9c53cd7021455ac9748b3dba744b468b)

2 years agoubox: bump to git HEAD
Hauke Mehrtens [Sun, 16 Jun 2019 13:48:44 +0000 (15:48 +0200)]
ubox: bump to git HEAD

4df34a4 kmodloader: Increase path array size to make it always fit

Signed-off-by: Hauke Mehrtens <>
(cherry picked from commit 22d3d91c774f085fbbe607b96c39398c73f7151c)

2 years agonetifd: xfrm fixes
Hans Dedecker [Sat, 15 Jun 2019 19:25:03 +0000 (21:25 +0200)]
netifd: xfrm fixes

9932ed0 netifd: fix xfrm interface deletion and standardize netlink call

Signed-off-by: Hans Dedecker <>
(cherry picked from commit 1fd900ddc2d10cde8e86d8059bfd112f3d0aae65)

2 years agoath79: Merge cases in 11-ath10k-caldata
Adrian Schmutzler [Tue, 11 Jun 2019 11:28:02 +0000 (13:28 +0200)]
ath79: Merge cases in 11-ath10k-caldata

Cosmetical patch that just merges two cases.

Signed-off-by: Adrian Schmutzler <>
(cherry picked from commit 28baaaae82155e7fc695789dd0a807cc2f298be8)

2 years agogemini: Fix MAC address assignment for DIR-685
Linus Walleij [Tue, 11 Jun 2019 21:06:55 +0000 (23:06 +0200)]
gemini: Fix MAC address assignment for DIR-685

The DIR-685 has the MAC addresses in the RedBoot code just like
DNS-313. Check some magic numbers to determine that the MAC
address is where we want it and extract it from RedBoot.

Signed-off-by: Linus Walleij <>
Signed-off-by: Christian Lamparter <>
[replaced ifconfig with ip, ! -z = -n, added string quotes]

(cherry picked from commit 86098ea87e8ef4051da5f3a1d7f75737e36df512)

2 years agogemini: Make a per-board case for ethernet MAC
Linus Walleij [Tue, 11 Jun 2019 21:06:54 +0000 (23:06 +0200)]
gemini: Make a per-board case for ethernet MAC

The DNS-313 isn't the only special board so let's bite the
bullet and create a case ladder in preparation for DIR-685.

Signed-off-by: Linus Walleij <>
Signed-off-by: Christian Lamparter <> [refreshed]
(cherry picked from commit 38d85d2c9fd9a3fd061fb56823821834dd720516)

2 years agogemini: Use library functions to assign MAC address
Linus Walleij [Tue, 11 Jun 2019 21:06:53 +0000 (23:06 +0200)]
gemini: Use library functions to assign MAC address

This simplifies the ethernet address extraction script
by using standard library functions to locate the MTD
partitions and extract ethernet address from a binary
offset location in the flash. Furthermore, the aging
ifconfig is replaced by the ip tool, which will now
assign the MAC addresses.

Suggested-by: Christian Lamparter <>
Signed-off-by: Linus Walleij <>
Signed-off-by: Christian Lamparter <>
[ifconfig replacement, use -n instead of ! -z,
-n requires string to be quoted within the test brackets,
drop prepended "x" in check, add quotes, make local
variables local, kill whitespaces]

(cherry picked from commit cd6c3535cd2c7779a8d65f792c36082ee3822c11)

2 years agogemini: enable CONFIG_PACKET
Christian Lamparter [Fri, 14 Jun 2019 16:44:51 +0000 (18:44 +0200)]
gemini: enable CONFIG_PACKET

CONFIG_PACKET is a important feature to have.
The Packet protocol is used by applications which
communicate directly with network devices without
an intermediate network protocol implemented in
the kernel, e.g. tcpdump and ip.

Signed-off-by: Christian Lamparter <>
(cherry picked from commit bdbb679adb976f0d2f06e4acbd5a34f63fc949d5)

2 years agonetwork/config/xfrm: add host-dependency for xfrm interface parent
André Valentin [Fri, 14 Jun 2019 11:09:47 +0000 (13:09 +0200)]
network/config/xfrm: add host-dependency for xfrm interface parent

Add proto_add_host_dependency to add a dependency to the tunlink interface

Signed-off-by: André Valentin <>
Signed-off-by: Hans Dedecker <> [PKG_RELEASE increase]
(cherry picked from commit f6dab9804413139c3bd2647a81652d04baa1e59d)

2 years agonetifd: update to latest git HEAD
Hans Dedecker [Thu, 13 Jun 2019 20:16:06 +0000 (22:16 +0200)]
netifd: update to latest git HEAD

42a3878 interface-ip: fix possible null pointer dereference
c1964d8 system-linux: remove superfluous dev check

Signed-off-by: Hans Dedecker <>
(cherry picked from commit 55fcc77072c9ca0baee8e79c00d2342be26fce47)

2 years agof2fs-tools: fixup SPDX license
Paul Spooren [Wed, 12 Jun 2019 21:38:20 +0000 (23:38 +0200)]
f2fs-tools: fixup SPDX license

The f2fs-tools have a wrong PKG_LICENSE with is not SPDX compatible.

Signed-off-by: Paul Spooren <>
(cherry picked from commit 35a70d626239424fb47e4cc50b565da7622eb2a6)

2 years agonghttp2: deduplicate files in libnghttp2
Konstantin Demin [Wed, 12 Jun 2019 09:10:09 +0000 (12:10 +0300)]
nghttp2: deduplicate files in libnghttp2

libnghttp2 accidentally ships library twice:

$ tar -Oxzf libnghttp2-14_1.38.0-1_mips_24kc.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x root/root         0 2019-06-07 23:14 ./
drwxr-xr-x root/root         0 2019-06-07 23:14 ./usr/
drwxr-xr-x root/root         0 2019-06-07 23:14 ./usr/lib/
-rw-r--r-- root/root    144412 2019-06-07 23:14 ./usr/lib/
-rw-r--r-- root/root    144412 2019-06-07 23:14 ./usr/lib/

after fix, there's library and symlink (as designed):

$ tar -Oxzf libnghttp2-14_1.38.0-2_mips_24kc.ipk ./data.tar.gz | tar -tzvf -
drwxr-xr-x root/root         0 2019-06-07 23:14 ./
drwxr-xr-x root/root         0 2019-06-07 23:14 ./usr/
drwxr-xr-x root/root         0 2019-06-07 23:14 ./usr/lib/
lrwxrwxrwx root/root         0 2019-06-07 23:14 ./usr/lib/ ->
-rw-r--r-- root/root    144412 2019-06-07 23:14 ./usr/lib/

Binary package size reduced accordingly: 134621 -> 66593.

Compile/run-tested: ar71xx/generic.

Signed-off-by: Konstantin Demin <>
(cherry picked from commit 38b22b1e7022d6b386ce25f39d05cc33fc659240)

2 years agoodhcpd: various fixes
Hans Dedecker [Tue, 3 Sep 2019 19:51:50 +0000 (21:51 +0200)]
odhcpd: various fixes

8f1347b odhcpd: router: Fix out of scope memory access
d37736e dhcpv6-ia: free assignment when validity timer expires

Signed-off-by: Hans Dedecker <>
2 years agoar71xx: WNR2200: remove redundant GPIO for WLAN LED
Michal Cieslakiewicz [Fri, 2 Aug 2019 15:12:34 +0000 (17:12 +0200)]
ar71xx: WNR2200: remove redundant GPIO for WLAN LED

Without this patch, an extra entry appears for AR9287 GPIO
that duplicates WLAN LED but in fact drives nothing:

gpiochip1: GPIOs 502-511, ath9k-phy0:
 gpio-502 (                    |netgear:blue:wlan   ) out hi
 gpio-503 (                    |netgear:amber:test  ) out hi
 gpio-504 (                    |netgear:green:power ) out lo
 gpio-505 (                    |rfkill              ) in  hi
 gpio-507 (                    |wps                 ) in  hi
 gpio-508 (                    |reset               ) in  hi
 gpio-510 (                    |ath9k-phy0          ) out hi <===!

The pin pointed above is default LED GPIO (8) for AR9287.
For WNR2200 it is not connected anywhere - pin 0 drives blue WLAN
LED instead - but initialization code is missing that information.

This fix calls ap9x_pci_setup_wmac_led_pin() function at device
setup, forcing WLAN LED pin to be 0 and removing redundant entry.

Signed-off-by: Michal Cieslakiewicz <>
2 years agoath79: etactica-eg200: fix restore button
Karl Pálsson [Mon, 12 Aug 2019 16:37:34 +0000 (16:37 +0000)]
ath79: etactica-eg200: fix restore button

The button is labelled reboot/restore in documentation, and has always
been used for that.  Naming it WPS has always been wrong.

Signed-off-by: Karl Pálsson <>
[matched author with SoB]
Signed-off-by: Christian Lamparter <>
2 years agogemini: Stop enforcing command line
Linus Walleij [Wed, 10 Jul 2019 17:46:12 +0000 (19:46 +0200)]
gemini: Stop enforcing command line

The command line enforced by the kernel is harmful, we want to
use the command line passed from the device tree. This is
especially important for the SQ201, Teltonika RUT and WBD111
which has a console set to 115200n8 and not 19200n8 like all
the others, so their consoles will be confusingly changing
baudrate between boot loader and kernel. The setting in the
device tree corresponds to what the boot loader is using.

Signed-off-by: Linus Walleij <>
(cherry picked from commit ea44ed5f388aecb6f745f7dd9b7df00748f7785f)

2 years agokernel: bump 4.14 to 4.14.141
Koen Vandeputte [Thu, 29 Aug 2019 09:09:29 +0000 (11:09 +0200)]
kernel: bump 4.14 to 4.14.141

Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <>
2 years agoiproute2: add libcap support, enabled in ip-full
Alin Nastac [Mon, 1 Jul 2019 08:57:26 +0000 (10:57 +0200)]
iproute2: add libcap support, enabled in ip-full

Preserve optionality of libcap by having configuration script follow the
HAVE_CAP environment variable, used similarly to the HAVE_ELF variable.

Signed-off-by: Alin Nastac <>
Signed-off-by: Hans Dedecker <> [PKG_RELEASE increase/refresh patches]
(backported from commit a6da3f9ef746101b84a6f530f5a40de28341b69a)
Signed-off-by: Jo-Philipp Wich <>
2 years agomac80211: add config tweak for tx bursting when using VHT
Felix Fietkau [Wed, 19 Jun 2019 10:32:20 +0000 (12:32 +0200)]
mac80211: add config tweak for tx bursting when using VHT

By default, set BE tx queue TXOP limit to 2.0 in the hostapd config
Many vendor drivers are doing similar things to boost throughput.
On MT7612 under ideal conditions, it improves tx throughput from 470 Mbit/s
to about 570 Mbit/s.

Signed-off-by: Felix Fietkau <>
(cherry-picked from commit 8650201f10afe83387fd6cde00b08172172eeba3)

2 years agoath9k: backport dynack improvements
Koen Vandeputte [Wed, 28 Aug 2019 10:12:41 +0000 (12:12 +0200)]
ath9k: backport dynack improvements

Close cooperation with Lorenzo Bianconi resulted
in these patches which fix all remaining seen issues
when using dynack.

Fix link losses when:
- Late Ack's are not seen or not present
- switching from too low static coverage class to dynack on a live link

These are fixed by setting the Ack Timeout/Slottime to
the max possible value for the currently used channel width when
a new station has been discovered.

When traffic flows, dynack is able to adjust to optimal values
within a few packets received (typically < 1 second)

These changes have been thoroughly tested on ~60 offshore devices
all interconnected using mesh over IBSS and dynack enabled on all.

Distances between devices varied from <100m up to ~35km

Signed-off-by: Koen Vandeputte <>
Signed-off-by: Lorenzo Bianconi <>
(cherry picked from commit f6e8ba0238fe349b7529357793e2fb18635819ed)

2 years agokernel: bump 4.14 to 4.14.140
Koen Vandeputte [Tue, 27 Aug 2019 10:30:37 +0000 (12:30 +0200)]
kernel: bump 4.14 to 4.14.140

Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <>
2 years agofstools: update to latest Git HEAD
Jo-Philipp Wich [Wed, 28 Aug 2019 10:26:53 +0000 (12:26 +0200)]
fstools: update to latest Git HEAD

6a61b9a probe: fallback to when does not exist

Also remove deprecation notices from init script while we're at it.

Fixes: FS#2274
Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit 517cb0b70bebdc283965c7873521f7bf9b4fe736)

2 years agofstools: update to HEAD of 2019-07-01 - 1539b5
Christian Lamparter [Sun, 18 Aug 2019 00:31:36 +0000 (02:31 +0200)]
fstools: update to HEAD of 2019-07-01 - 1539b5

Update fstools to commit 1539b535ac327a3bc599d1ca871e14fd0dc3bba1

git log --pretty=oneline --abbrev-commit ff1ded63..1539b535

1539b53 libblkid-tiny: increment label size to 256
d563f3c libblkid-tiny: fix wrong btrfs label length
3957dd3 block: prevent mount point confusion
9b36dc2 libfstools: avoid false positives when matching devices and volumes

Created with the help of the script.

Signed-off-by: Christian Lamparter <>
(cherry picked from commit 8036345225ced243782dcea055889fd821897393)

2 years agoiwinfo: update to latest Git HEAD
Jo-Philipp Wich [Wed, 28 Aug 2019 10:08:39 +0000 (12:08 +0200)]
iwinfo: update to latest Git HEAD

a9f9557 nl80211: support reading hardware id from phy directly
c586cd3 iwinfo: add device id for MediaTek MT7612E
d4382dd iwinfo: add device id for Atheros AR9390

Signed-off-by: Jo-Philipp Wich <>
(cherry picked from commit b13f3300d5a370305d6ecbd71620a4c1c40a166e)

2 years agoar71xx/ath79: ag71xx: dont fetch the same var again
Koen Vandeputte [Mon, 12 Aug 2019 10:18:15 +0000 (12:18 +0200)]
ar71xx/ath79: ag71xx: dont fetch the same var again

tx_size was just declared above and set to BIT(tx->order)
Use the declaration instead, which could avoid a pointer deref

Signed-off-by: Koen Vandeputte <>
(cherry picked from commit 6852eab58236e3991f5d73f211018dfef01f2a64)

2 years agoar71xx: ag71xx: use base address value directly from the source
Koen Vandeputte [Wed, 7 Aug 2019 15:06:09 +0000 (17:06 +0200)]
ar71xx: ag71xx: use base address value directly from the source

This brings the code more inline with the ath79 flavour

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: ag71xx: make use of managed dev API simplifying code
Koen Vandeputte [Wed, 7 Aug 2019 13:12:54 +0000 (15:12 +0200)]
ar71xx: ag71xx: make use of managed dev API simplifying code

Backport of a4eef43a120d ("ath79: ag71xx: replace alloc_etherdev with devm_alloc_etherdev")
combined with the initial changes from John Crispin.

Simplifies the code a lot by using the Managed dev API.

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: ag71xx: replace ag71xx_get_phy_if_mode_name with phy_modes()
Koen Vandeputte [Wed, 7 Aug 2019 12:23:00 +0000 (14:23 +0200)]
ar71xx: ag71xx: replace ag71xx_get_phy_if_mode_name with phy_modes()

Backport of f73b2d64ed56 ("ath79: ag71xx: replace ag71xx_get_phy_if_mode_name() with phy_modes()")

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: ag71xx: pass correct device pointer to dma functions
Koen Vandeputte [Wed, 7 Aug 2019 14:50:51 +0000 (16:50 +0200)]
ar71xx: ag71xx: pass correct device pointer to dma functions

Backport of 4eaa3626a821 ("ath79: ag71xx: pass correct device pointer to dma functions")

While 4.14 does not contain the warnings,
it still makes sense to use the proper pointers here.

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx/ath79: ag71xx: get ring_mask consistent
Koen Vandeputte [Thu, 8 Aug 2019 09:05:11 +0000 (11:05 +0200)]
ar71xx/ath79: ag71xx: get ring_mask consistent

All other instances of this identical declaration fetch the
value directly from the ring_order.

Also do it here.

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: ag71xx: add missing register writes
Koen Vandeputte [Wed, 7 Aug 2019 15:08:05 +0000 (17:08 +0200)]
ar71xx: ag71xx: add missing register writes

These are added in ath79, but were not backported here

Signed-off-by: Koen Vandeputte <>
2 years agotools/mtd-utils: update to 2.1.1
DENG Qingfang [Sat, 17 Aug 2019 16:29:49 +0000 (00:29 +0800)]
tools/mtd-utils: update to 2.1.1

Signed-off-by: DENG Qingfang <>
(cherry picked from commit 1664d6698169bed1373db70acdf8ad46fa786b2e)

2 years agomtd-utils: update to 2.1.1
DENG Qingfang [Tue, 6 Aug 2019 19:59:13 +0000 (03:59 +0800)]
mtd-utils: update to 2.1.1

Removed upstream patch
Compile and run tested on mvebu

Signed-off-by: DENG Qingfang <>
(cherry picked from commit fb57c617ba5269a6c2050e42b9d68813e262bf0d)

2 years agokernel: bump 4.14 to 4.14.139
Koen Vandeputte [Fri, 16 Aug 2019 10:23:06 +0000 (12:23 +0200)]
kernel: bump 4.14 to 4.14.139

Refreshed all patches.

Also add a missing symbol for x86 which got used now in this bump.

Compile-tested on: cns3xxx, x86_64
Runtime-tested on: cns3xxx, x86_64

Signed-off-by: Koen Vandeputte <>
2 years agoath10k-ct: update to version 2019-08-14
Koen Vandeputte [Fri, 16 Aug 2019 10:03:43 +0000 (12:03 +0200)]
ath10k-ct: update to version 2019-08-14


9e5ab25027e0 ath10k-ct:  Update to latest 5.2 upstream, support bigger mtu, 160Mhz

Removed upstreamed patches:
- 204-ath10k-fix-max-antenna-gain-unit.patch
- 205-ath10k-adjust-tx-power-reduction-for-US-regulatory-d.patch

Signed-off-by: Koen Vandeputte <>
2 years agoath10k-firmware: update Candela Tech firmware images
Koen Vandeputte [Fri, 16 Aug 2019 08:06:51 +0000 (10:06 +0200)]
ath10k-firmware: update Candela Tech firmware images

This should fix a problem with 1560 MTU, 160Mhz on DFS channels,
some other small issues on < 5.2 kernels, and for 5.2 driver,
it pulls in some upstream stable fixes.

wave-1 firmware changes since last update:

  *  June 24, 2019: Try allocating low-priority WMI msgs if high-prio are not available.

  *  June 24, 2019: Init rate-ctrl to start at lowest rate instead of in the middle.  Hoping
                    this helps DHCP when station connects from a long distance.


  *  June 24, 2019  Start rate-ctrl at minimal values to help DHCP work better for far-away peers.

  *  July 24, 2019  Fix old regression that made /a (and probably /b/g) perform poorly, at least on
                    diet-compiled images.

  *  Aug 8, 2019  Improve a/b/g rate-ctrl by damping the PER swings caused by the all-or-nothing logic
                  of transmitting non-block-ack frames one at a time.

Signed-off-by: Koen Vandeputte <>
(cherry picked from commit de5f0764883ad6a0767da58d7359f3e01aa91139)