2 years agoar71xx: Fix build for dap-1330-a1 board
Hauke Mehrtens [Mon, 21 May 2018 13:22:00 +0000 (15:22 +0200)]
ar71xx: Fix build for dap-1330-a1 board

Using a version number of 16 character causes a buffer overflow in the
version number overwriting the first bit of the signature in the
mkdapimg2 tool.
I am not sure if the version number should be null terminated or not.
This patch reduces the size of the version number by removing the number
of private commits from it.

This was the original version number which caused problems:
Now it uses this version number:

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

2 years agoath25: drop 4.9 kernel support
Sergey Ryazanov [Mon, 21 May 2018 09:19:31 +0000 (12:19 +0300)]
ath25: drop 4.9 kernel support

Signed-off-by: Sergey Ryazanov <>
(cherry picked from commit 06116473cca4ee765978aa3035eab321cd57bd71)

2 years agoath25: switch to 4.14 kernel
Sergey Ryazanov [Mon, 21 May 2018 09:19:30 +0000 (12:19 +0300)]
ath25: switch to 4.14 kernel

Signed-off-by: Sergey Ryazanov <>
(cherry picked from commit 5191ea56218b5c7f17dbe5cdb6fb6895ee386156)

2 years agoath25: add kernel 4.14 support
Sergey Ryazanov [Mon, 21 May 2018 09:19:29 +0000 (12:19 +0300)]
ath25: add kernel 4.14 support

Copy and refresh patches and config from 4.9, no more work is need.

Signed-off-by: Sergey Ryazanov <>
(cherry picked from commit 3d69857ac1647e5bc924a9af1e8d00182316cb0d)

2 years agokernel: whitespace fixes
John Crispin [Fri, 18 May 2018 09:09:06 +0000 (11:09 +0200)]
kernel: whitespace fixes

Signed-off-by: John Crispin <>
(cherry picked from commit 22c16c5d823fa8de1c05837faf7b404405b8c74f)

2 years agox86: disable CONFIG_EFI_VARS
Alif M. Ahmad [Tue, 27 Feb 2018 02:01:04 +0000 (02:01 +0000)]
x86: disable CONFIG_EFI_VARS

Disable CONFIG_EFI_VARS, since it suffers from sysfs limitation (no
support for variable longer than 1024 bytes).

kmod-fs-efivarfs is the replacement of this, which enables mounting
efivarfs file system and doesn't suffer from 1024 bytes limitation.

Signed-off-by: Alif M. Ahmad <>
(cherry picked from commit b0a51dab8c5b8d40828a00b0c6d66450bf90f217)

2 years agohostapd: fix IEEE 802.11r (fast roaming) defaults
Gospod Nassa [Fri, 18 May 2018 08:39:33 +0000 (09:39 +0100)]
hostapd: fix IEEE 802.11r (fast roaming) defaults

Use ft_psk_generate_local=1 by default, as it makes everything else fairly
trivial. All of the r0kh/r1kh and key management stuff goes away and hostapd
fairly much does it all for us.

We do need to provide nas_identifier, which can be derived from the BSSID,
and we need to generate a mobility_domain, for which we default to the first
four chars of the md5sum of the SSID.

The complex manual setup should also still work, but the defaults also
now work easily out of the box. Verified by manually running hostapd
(with the autogenerated config) and watching the debug output:

wlan2: STA ac:37:43:a0:a6:ae WPA: FT authentication already completed - do not start 4-way handshake

 This was previous submitted to LEDE in

[dwmw2: Rewrote commit message]
Signed-off-by: Gospod Nassa <>
Signed-off-by: David Woodhouse <>
(cherry picked from commit 3cc56a5534b8b49a7e9ba57edf9878ec32bdd27a)

2 years agowireguard: no longer need portability patch
Kevin Darbyshire-Bryant [Thu, 17 May 2018 22:08:21 +0000 (23:08 +0100)]
wireguard: no longer need portability patch

Drop package/network/services/wireguard/patches/100-portability.patch

Instead pass 'PLATFORM=linux' to make since we are always building FOR

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

2 years agoramips: add support for YUKAI Engineering Inc. BOCCO
YuheiOKAWA [Thu, 22 Feb 2018 16:58:23 +0000 (01:58 +0900)]
ramips: add support for YUKAI Engineering Inc. BOCCO

BOCCO is a communication robot provided by YUKAI Engineering Inc.

SoC: MT7620A
MEM: 256MB
Flash: 8MB
NAND: 512MB (non support)
Include Sound DAC and AMP.
No Wired Ethernet.

Signed-off-by: YuheiOKAWA <>
(cherry picked from commit d91953cb5351f1ab3e75ae9e2d9622f754d518ed)

2 years agoar71xx: WNDR3700: enable RFKILL function for Wifi button
Michal Cieslakiewicz [Thu, 22 Feb 2018 22:11:08 +0000 (23:11 +0100)]
ar71xx: WNDR3700: enable RFKILL function for Wifi button

Wifi button for WNDR3700 dual band routers has been renamed to "rfkill"
and its emitted keycode changed to KEY_RFKILL. This allows OpenWrt/LEDE
to support it 'out of the box' without additional tweaking.

Until this patch, button had been sending BTN_2 keycode which was
ignored by default (no action script present). To get expected behaviour
of switching radios on and off, user had to manually rename/link
'rfkill' script to name 'BTN_2' in /etc/rc.button directory.

This patch follows similar changes for other Netgear ar71xx routers,
for example WNR2000v3. It applies cleanly to both latest trunk and 17.01
branch. Tested on WNDR3700v1.

Signed-off-by: Michal Cieslakiewicz <>
(cherry picked from commit 45dc530334d8694a962d0833432effd14fa5cc4a)

2 years agobrcm2708: add squashfs rootfs image
Christian Lamparter [Tue, 27 Mar 2018 17:42:18 +0000 (19:42 +0200)]
brcm2708: add squashfs rootfs image

This patch adds a image with squashfs as the root filesystem.
A rootfs_data partition will be generated on the first boot
and placed inside the rootfs partition (just after the squashfs

 - it is possible to migrate from an existing -ext4
   installation and back via sysupgrade.
 - existing partition layout will not be lost.
 - slightly smaller image size.
 - support for attendedsysupgrade

 - needs f2fs + tools as well. This is because fs-tools decides on the
   blocksize of the sdcard. So either f2fs or ext4 can get choosen as
   the rootfs_data filesystem (depends on the size of the root partition).
 - rootfs_data is placed into the rootfs partition. This makes
   it difficult for tools that expect a /dev/mmc0pX device.
   It also makes it difficult for data recovery tools since they
   might not expect to find a embedded partition or will be

For people with existing build configurations: make sure to include mkf2fs
and f2fsck package into the image... Otherwise the new -squashfs image will
boot of a ram-overlay and won't keep the configurations after a reboot.

Cc: Álvaro Fernández Rojas <>
Cc: Paul Spooren <>
Cc: Daniel Golle <>
Signed-off-by: Christian Lamparter <>
Acked-by: Daniel Golle <>
(cherry picked from commit 707b6c815bba34e9783d2695020bb17385fdcf1d)

2 years agox86: Add APU3 reference to x86 board.d
Kristian Evensen [Thu, 15 Mar 2018 12:30:27 +0000 (13:30 +0100)]
x86: Add APU3 reference to x86 board.d

There is a new APU-model available, APU3. The device is configured in
the same way as the APU1 and APU2, so the same LED/network setup can be

I considered changing the case to pc-engines-apu*, but I chose to follow
the existing pattern and add the full board name.

Signed-off-by: Kristian Evensen <>
(cherry picked from commit 8f9baf5e1a9300fe66ff90486182a1fd2e645d9e)

2 years agoapm821xx: backport and reassign crypto4xx patches
Christian Lamparter [Sat, 28 Apr 2018 20:08:09 +0000 (22:08 +0200)]
apm821xx: backport and reassign crypto4xx patches

This patch backports several patches that went upstream into
Herbert Xu's cryptodev-2.6 tree:

crypto: Use zeroing memory allocator instead of allocator/memset
crypto: crypto4xx - performance optimizations
crypto: crypto4xx - convert to skcipher
crypto: crypto4xx - avoid VLA use
crypto: crypto4xx - add aes-ctr support
crypto: crypto4xx - properly set IV after de- and encrypt
crypto: crypto4xx - extend aead fallback checks
crypto: crypto4xx - put temporary dst sg into request ctx

The older, outstanding patches from 120-wxyz series have been
upstreamed as well and therefore they have been reassigned to
fit into the series.

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

2 years agoapm821xx: don't select swconfig for the MR24
Christian Lamparter [Sat, 28 Apr 2018 20:08:08 +0000 (22:08 +0200)]
apm821xx: don't select swconfig for the MR24

The swconfig package is part of the DEFAULT_PACKAGES list in
the apm821xx's nand subtarget. It's enabled by default because
the MX60(W) and WNDR4700 need it for their initramfs. However
the package is not necessary for the MR24's sysupgrade image, as
the MR24 does not have a switch.

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

2 years agoipq40xx: fix ethernet on ap-dk01.1
Roman Yeryomin [Fri, 4 May 2018 14:43:46 +0000 (17:43 +0300)]
ipq40xx: fix ethernet on ap-dk01.1

Not sure how it worked before but ethernet is disabled
by default in ipq4019 dtsi.

Signed-off-by: Roman Yeryomin <>
(cherry picked from commit 1f42deec8edac3e99f83f7343cbd4fec29333345)

2 years agobrcm63xx: Tune the network configuration for several routers
Daniel Gonzalez Cabanelas [Wed, 21 Feb 2018 17:24:58 +0000 (18:24 +0100)]
brcm63xx: Tune the network configuration for several routers

- DGND3700v1: fix port numbers, they're in reverse order
- FaST2704n: there is no WAN port identified as such, only 4 LAN
- AD1018: configure the "FIBRE" port as WAN

Signed-off-by: Daniel Gonzalez Cabanelas <>
(cherry picked from commit fbbb97777297bf8a168b840c88d18d6e2079ce8f)

2 years agoltq-xdsl-app: start after led script
Mathias Kresin [Wed, 7 Mar 2018 20:38:03 +0000 (21:38 +0100)]
ltq-xdsl-app: start after led script

During handshake we are highjack and reset a LED to the configured trigger
afterwards. ltq-xdsl-app need to start after the LED init script, to
ensure that the LED init script doesn't re-highjack the LED we are
currently using for handshake indication.

Drop the comment about the atm dependency. The dependency was fixed quite
some time ago by using hotplug scripts for br2684ctl.

Signed-off-by: Mathias Kresin <>
(cherry picked from commit 0678cc850ccc068ba33eb87f5f1bf8294a87e611)

2 years agotools: zlib: do not hardcode the install prefix in zlib.pc
Jo-Philipp Wich [Thu, 24 May 2018 15:01:54 +0000 (17:01 +0200)]
tools: zlib: do not hardcode the install prefix in zlib.pc

Our pkg-config wrapper relies on the ability to redefine the $prefix and
$exec_prefix variables in order to construct proper search paths relative
to the build environment.

Patch the .pc file template to construct libdir, sharedlibdir and includedir
relative to the ${prefix} variable so that it can be overridden as needed.

This also fixes the libxml2/host build issue raised at - it was caused by libxml2's
configure picking up a wrong host search path through zlib.pc, letting it
include the wrong endian.h, causing spurious member redeclaration errors in
system headers.

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

2 years agokernel: bump 4.14 to 4.14.43 for 18.06
Koen Vandeputte [Thu, 24 May 2018 08:08:20 +0000 (10:08 +0200)]
kernel: bump 4.14 to 4.14.43 for 18.06

Refreshed all patches

Dropped upstreamed patches:

updated patches:

Added new ARM64 symbol: CONFIG_ARM64_ERRATUM_1024718

Compile-tested on: cns3xxx, imx6, mvebu (arm64), x86_64
Runtime-tested on: cns3xxx, imx6, x86_64

Signed-off-by: Koen Vandeputte <>
2 years agokernel: bump 4.9 to 4.9.102 for 18.06
Koen Vandeputte [Thu, 24 May 2018 08:08:19 +0000 (10:08 +0200)]
kernel: bump 4.9 to 4.9.102 for 18.06

Refreshed all patches

Added new ARM64 symbol: ARM64_ERRATUM_1024718

Compile-tested on: ar71xx
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte <>
2 years agoRevert "dnsmasq: use "hostsdir" instead of "addn-hosts""
Hans Dedecker [Thu, 24 May 2018 08:27:07 +0000 (10:27 +0200)]
Revert "dnsmasq: use "hostsdir" instead of "addn-hosts""

This reverts commit c97189e26dfb9b0eaf5b9cd7e33a99e2f780cb58
as it has different issues:
-Host file is not written in a directory unique per dnsmasq instance
-odhcpd writes host info into the same directory but still sends a SIGHUP to dnsmasq

Signed-off-by: Hans Dedecker <>
2 years agodnsmasq: use "hostsdir" instead of "addn-hosts"
Christian Schoenebeck [Tue, 22 May 2018 18:36:18 +0000 (20:36 +0200)]
dnsmasq: use "hostsdir" instead of "addn-hosts"

1.) "addn-hosts" per default point to a file (but it supports directory)
2.) "hostsdir" only support directory with the additional benefit: New or changed files are read automatically.

Signed-off-by: Christian Schoenebeck <>
2 years agotoolchain/glibc: update to latest 2.26 commit
Hans Dedecker [Wed, 23 May 2018 13:14:43 +0000 (15:14 +0200)]
toolchain/glibc: update to latest 2.26 commit

af7519f7b3 Fix path length overflow in realpath [BZ #22786]
365722ace6 Fix stack overflow with huge PT_NOTE segment [BZ #20419]
be056fae3b Fix blocking pthread_join. [BZ #23137]
02f0dd83a4 Fix signed integer overflow in random_r (bug 17343).
3241353ab2 i386: Fix i386 sigaction sa_restorer initialization (BZ#21269)
677e6d13e0 [BZ #22342] Fix netgroup cache keys.
71d339cb86 Fix i386 memmove issue (bug 22644).
31e2d15b80 Fix crash in resolver on memory allocation failure (bug 23005)
1f7c4748d6 getlogin_r: return early when linux sentinel value is set
7e7a5f0bcd resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037]

Signed-off-by: Hans Dedecker <>
2 years agouboot-zynq: fix build on hosts lacking pkg-config
Jo-Philipp Wich [Wed, 23 May 2018 07:32:25 +0000 (09:32 +0200)]
uboot-zynq: fix build on hosts lacking pkg-config

The uboot-mvebu package incorrectly used the host pkg-config for the tool
build parts, which broke the build on systems lacking pkg-config and only
worked by accident on those that have it installed.

Export the host-build specific environment variables for the uboot build
to redirect pkg-config invocations to our staged host build pkg-config in

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

2 years agouboot-mxs: fix build on hosts lacking pkg-config
Jo-Philipp Wich [Wed, 23 May 2018 07:15:52 +0000 (09:15 +0200)]
uboot-mxs: fix build on hosts lacking pkg-config

The uboot-mvebu package incorrectly used the host pkg-config for the tool
build parts, which broke the build on systems lacking pkg-config and only
worked by accident on those that have it installed.

Export the host-build specific environment variables for the uboot build
to redirect pkg-config invocations to our staged host build pkg-config in

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

2 years agouboot-mvebu: fix build on hosts lacking pkg-config
Jo-Philipp Wich [Wed, 23 May 2018 07:02:59 +0000 (09:02 +0200)]
uboot-mvebu: fix build on hosts lacking pkg-config

The uboot-mvebu package incorrectly used the host pkg-config for the tool
build parts, which broke the build on systems lacking pkg-config and only
worked by accident on those that have it installed.

Export the host-build specific environment variables for the uboot build
to redirect pkg-config invocations to our staged host build pkg-config in

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

2 years agowireguard: bump to 20180519
Jason A. Donenfeld [Sat, 19 May 2018 03:55:58 +0000 (05:55 +0200)]
wireguard: bump to 20180519

* chacha20poly1305: add mips32 implementation

"The OpenWRT Commit" - this significantly speeds up performance on cheap
plastic MIPS routers, and presumably the remaining MIPS32r2 super computers
out there.

* timers: reinitialize state on init
* timers: round up instead of down in slack_time
* timers: remove slack_time
* timers: clear send_keepalive timer on sending handshake response
* timers: no need to clear keepalive in persistent keepalive

Andrew He and I have helped simplify the timers and remove some old warts,
making the whole system a bit easier to analyze.

* tools: fix errno propagation and messages

Error messages are now more coherent.

* device: remove allowedips before individual peers

This avoids an O(n^2) traversal in favor of an O(n) one. Before systems with
many peers would grind when deleting the interface.

Signed-off-by: Jason A. Donenfeld <>
2 years agobuild: prevent spurious package rebuilds under CONFIG_AUTOREMOVE
Jo-Philipp Wich [Tue, 22 May 2018 07:18:33 +0000 (09:18 +0200)]
build: prevent spurious package rebuilds under CONFIG_AUTOREMOVE

When CONFIG_AUTOREMOVE is enabled, the build system touches an additional
".autoremove" stamp file in the cleaned build directory.

Since the autoremove stamp file is touched after the compile process
completed, it ends up being the most recent file of the package build
directory, causing the check of to erroneously
declare the ".built" and ".prepared" stamp files as stale, triggering
a forced clean-build submake process.

Fix the problem by using the ".built" stamp file as modification time
reference when touching the ".autoremove" stamp file.

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

2 years agoopenwrt-keyring: bundle latest usign certificates
Jo-Philipp Wich [Sun, 20 May 2018 17:37:58 +0000 (19:37 +0200)]
openwrt-keyring: bundle latest usign certificates

Includes the public usign certificates used by the 18.06.* release builds.

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

2 years agobase-files: depend on openwrt-keyring
Jo-Philipp Wich [Sun, 20 May 2018 17:34:36 +0000 (19:34 +0200)]
base-files: depend on openwrt-keyring

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

2 years agoopenwrt-keyring: rename from lede-keyring
Jo-Philipp Wich [Sun, 20 May 2018 17:32:29 +0000 (19:32 +0200)]
openwrt-keyring: rename from lede-keyring

Also let the new openwrt-keyring package provide lede-keyring for backwards

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

2 years agocurl: bump to 7.60.0
Hans Dedecker [Wed, 16 May 2018 12:09:48 +0000 (14:09 +0200)]
curl: bump to 7.60.0

Refresh patches; remove 320-mbedtls_dont_use_deprecated_sha256_function
patch as upstream fixed

For changes in version 2.60 see

Signed-off-by: Hans Dedecker <>
2 years agowireguard: bump to 20180514
Kevin Darbyshire-Bryant [Wed, 16 May 2018 15:14:15 +0000 (16:14 +0100)]
wireguard: bump to 20180514

52be69b version: bump snapshot
4884b45 ncat-client-server: add wg-quick variant
a333551 wg-quick: add darwin implementation
f5bf84d compat: backport for OpenSUSE 15
fe1ae1b wg-quick: add wg symlink
ecc1c5f wg-quick: add android implementation
3e6bb79 tools: reorganize for multiplatform wg-quick
b289d12 allowedips: Fix graphviz output after endianness patch

Refresh cross compile compatibility patch

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agonetfilter: fix hardware offload regression (FS#1551)
Felix Fietkau [Thu, 17 May 2018 05:53:57 +0000 (07:53 +0200)]
netfilter: fix hardware offload regression (FS#1551)

The relevant code needs to be enabled even if flow table support is only
compiled as module

Signed-off-by: Felix Fietkau <>
2 years agoocteontx: make board.d files executable
Mathias Kresin [Mon, 7 May 2018 18:20:19 +0000 (20:20 +0200)]
octeontx: make board.d files executable

Add the executable permission to the files to ensure they run on

Signed-off-by: Mathias Kresin <>
2 years agokmod-sched-cake: bump to latest 20180515
Kevin Darbyshire-Bryant [Tue, 15 May 2018 21:00:40 +0000 (22:00 +0100)]
kmod-sched-cake: bump to latest 20180515

Following changes as part of the kernel
upstreaming attempts.  And fix a slight fsck up
when calculating overheads for GSO packets.

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agomt76: update to the latest version
Felix Fietkau [Tue, 15 May 2018 11:18:22 +0000 (13:18 +0200)]
mt76: update to the latest version

b2ecc52 mt76x2: fix avg_rssi estimation
fd58b28 mt76x2: add a polling delay in mt76x2_mac_stop routine
a78673d mt76: fix sending encrypted broadcast packets for secondary interfaces
e87f925 mt76x2: apply coverage class on slot time too

Signed-off-by: Felix Fietkau <>
2 years agoOpenWrt v18.06: set branch defaults
John Crispin [Tue, 15 May 2018 13:14:27 +0000 (15:14 +0200)]
OpenWrt v18.06: set branch defaults

Signed-off-by: John Crispin <>
2 years agoRevert "ramips: mmc: Sync with staging drivers"
John Crispin [Tue, 15 May 2018 10:42:40 +0000 (12:42 +0200)]
Revert "ramips: mmc: Sync with staging drivers"

This reverts commit 2d401925b9bdf34de800fff57f593a3665de2a6a.

Signed-off-by: John Crispin <>
2 years agostaging: mt7621-eth: fix return value check in mt7621_gsw_probe()
Wei Yongjun [Mon, 14 May 2018 18:14:25 +0000 (11:14 -0700)]
staging: mt7621-eth: fix return value check in mt7621_gsw_probe()

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: f079b6406348 ("staging: mt7621-eth: add gigabit switch driver (GSW)")
Signed-off-by: Wei Yongjun <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agostaging: mt7621-eth: fix return value check in mtk_connect_phy_node()
Wei Yongjun [Mon, 14 May 2018 18:14:24 +0000 (11:14 -0700)]
staging: mt7621-eth: fix return value check in mtk_connect_phy_node()

In case of error, the function of_phy_connect() returns NULL pointer not
ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: e3cbf478f846 ("staging: mt7621-eth: add the drivers core files")
Signed-off-by: Wei Yongjun <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agostaging: mt7621-eth: fix return value check in mtk_probe()
Wei Yongjun [Mon, 14 May 2018 18:14:23 +0000 (11:14 -0700)]
staging: mt7621-eth: fix return value check in mtk_probe()

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: e3cbf478f846 ("staging: mt7621-eth: add the drivers core files")
Signed-off-by: Wei Yongjun <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agoramips: pci: sync with staging driver
Rosen Penev [Mon, 14 May 2018 18:14:22 +0000 (11:14 -0700)]
ramips: pci: sync with staging driver

This is an amagalmation of two upstream commits dealing with whitespace
and dead code removal. I'm synching instead of having two separate commits
as they go out of order compared to previous commits here.

Tested on GnuBee PC1.

Signed-off-by: Rosen Penev <>
2 years agoramips: mmc: Sync with staging drivers
Rosen Penev [Mon, 14 May 2018 18:14:21 +0000 (11:14 -0700)]
ramips: mmc: Sync with staging drivers

Mostly whitespace cleanups. Some unneeded code was removed.

MMC init was also moved to the probe function as in

The cleanup commits are over 100, making it hard to do them individually.

Tested on GnuBee PC1 with an SD card being used as swap.

Signed-off-by: Rosen Penev <>
2 years agowireguard: Add support for ip6prefix config option
Toke Høiland-Jørgensen [Sun, 13 May 2018 18:15:50 +0000 (20:15 +0200)]
wireguard: Add support for ip6prefix config option

This makes it easier to distribute prefixes over a wireguard tunnel
interface, by simply setting the ip6prefix option in uci (just like with
other protocols).

Obviously, routing etc needs to be setup properly for things to work; this
just adds the config option so the prefix can be assigned to other

Signed-off-by: Toke Høiland-Jørgensen <>
2 years agolinux-firmware: Add firmware for usb-serial-ti-usb
David Woodhouse [Thu, 16 Feb 2017 00:23:27 +0000 (00:23 +0000)]
linux-firmware: Add firmware for usb-serial-ti-usb

Signed-off-by: David Woodhouse <>
2 years agoramips: Add i2c support for mt7620n
Matthias Badaire [Tue, 8 May 2018 13:42:05 +0000 (15:42 +0200)]
ramips: Add i2c support for mt7620n

I2c is supported on mt7620n like on mt7620a when checking the datasheet

Signed-off-by: Matthias Badaire <>
2 years agokirkwood: support for buttons in Audi and Viper
Alberto Bursi [Wed, 9 May 2018 20:38:20 +0000 (22:38 +0200)]
kirkwood: support for buttons in Audi and Viper

Both these devices have a wps and a reset button on
GPIO pins, which need kmod-gpio-button-hotplug
package to work.

Add this package to their default package config.

Troubleshooted and tested on a Viper.

Signed-off-by: Alberto Bursi <>
2 years agoath79: fix gmac compatible in ar9330.dtsi and ag71xx_setup_gmac_933x
Johann Neuhauser [Sat, 12 May 2018 20:25:35 +0000 (22:25 +0200)]
ath79: fix gmac compatible in ar9330.dtsi and ag71xx_setup_gmac_933x

1. compatible property in node gmac was wrong

2. ag71xx_setup_gmac_933x should use np of gmac-config and
   not the pointer to gmac. gmac is only used for the reg address.

Signed-off-by: Johann Neuhauser <>
2 years agomac80211: refactor non-{sae,dfs} mesh initialization
Daniel Golle [Mon, 14 May 2018 21:55:24 +0000 (23:55 +0200)]
mac80211: refactor non-{sae,dfs} mesh initialization

Refactor mesh initialization into a separate function, do some cleaning
on the way to make the code more readable.
 * Move iw mesh setup to new mac80211_setup_mesh()
 * fallback on 'ssid' parameter in case 'mesh_id' isn't set
 * move setting of freq variable to shared code as it is needed for
   both, the wpa_supplicant and the iw based setup.

Signed-off-by: Daniel Golle <>
2 years agohostapd: fix VHT80 for encrypted mesh channel settings
Sven Eckelmann [Mon, 14 May 2018 12:45:25 +0000 (14:45 +0200)]
hostapd: fix VHT80 for encrypted mesh channel settings

The max_oper_chwidth settings was parsed incorrectly for big endian system.
This prevented the system to switch to VHT80 (or VHT160). Instead they were
mapped to:

* HT20:   20MHz
* VHT20:  20MHz
* HT40:   40MHz
* VHT40:  40MHz
* VHT80:  40MHz
* VHT160: 40MHz

This happened because each max_oper_chwidth setting in the config file was
parsed as "0" instead of the actual value.

Fixes: a4322eba2b12 ("hostapd: fix encrypted mesh channel settings")
Signed-off-by: Sven Eckelmann <>
2 years agomac80211: Re-enable encrypted 11s meshpoint
Sven Eckelmann [Mon, 14 May 2018 13:11:45 +0000 (15:11 +0200)]
mac80211: Re-enable encrypted 11s meshpoint

The commit 574e4377fad5 ("mac80211: properly setup mesh interface") uses
the variable $wpa to decide whether encrypted meshpoint is requested by the
user or not. But the variable $wpa will only be set correctly after the
function wireless_vif_parse_encryption is called.

Fixes: 574e4377fad5 ("mac80211: properly setup mesh interface")
Signed-off-by: Sven Eckelmann <>
2 years agomvebu: add support for WRT32X (venom)
Michael Gray [Sun, 13 May 2018 13:29:30 +0000 (23:29 +1000)]
mvebu: add support for WRT32X (venom)

Linksys WRT32X (Venom) is identical in hardware to the WRT3200ACM
with a different flash layout and boots zImage rather than uImage.

- Marvell Armada 385 88F6820 (2x 1.8GHz)
- 256MB of Flash
- 512MB of RAM
- 2.4GHz (bgn) and 5GHz (an+ac wave 2)
- 4x 1Gbps LAN + 1x 1Gbps WAN
- 1x USB 3.0 and 1x USB 2.0/eSATA (combo port)

Flash instruction:
Apply factory image via web-gui.

Signed-off-by: Michael Gray <>
2 years agofirewall3: update to latest git HEAD
John Crispin [Mon, 14 May 2018 14:22:57 +0000 (16:22 +0200)]
firewall3: update to latest git HEAD

b45e162 helpers: fix the set_helper in the rule structure
f742ba7 helpers.conf: support also tcp in the CT sip helper
08b2c61 helpers: make the proto field as a list rather than one option

Signed-off-by: John Crispin <>
2 years agogemini: Augment DIR-685 device tree for RTL8366RB
Linus Walleij [Fri, 11 May 2018 17:16:48 +0000 (19:16 +0200)]
gemini: Augment DIR-685 device tree for RTL8366RB

This makes the ethernet and RTL8366RB come up on the
D-Link DIR-685.

Signed-off-by: Linus Walleij <>
2 years agogemini: create zImage for DIR-685
Linus Walleij [Fri, 11 May 2018 17:10:16 +0000 (19:10 +0200)]
gemini: create zImage for DIR-685

Signed-off-by: Linus Walleij <>
2 years agoramips: remove unnecessary resource details.
NeilBrown [Sat, 12 May 2018 19:57:48 +0000 (12:57 -0700)]
ramips: remove unnecessary resource details.

These resources are extracted from devicetree, so they aren't
needed here.

Signed-off-by: NeilBrown <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agoramips: remove conditional compilation.
NeilBrown [Sat, 12 May 2018 19:57:47 +0000 (12:57 -0700)]
ramips: remove conditional compilation.

Code currently defines:

and then compiles code only if they are defined.
We might want to disable some of these via devicetree one
day, but for now just remove the #defines and the
conditions - all the code for different ports is
easy to identify.

Signed-off-by: NeilBrown <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agoramips: improve interrupt mapping
NeilBrown [Sat, 12 May 2018 19:57:46 +0000 (12:57 -0700)]
ramips: improve interrupt mapping

As the Interrupts for the PCI adapters are listed in
devicetree we shouldn't need to have them explicit in the code.

The simplest way to do this is to use of_irq_parse_and_map_pci()
and specify an interrupt-map which identifies the different
PCI hosts by bus/slot numbers.
This has the advantage that the hwirq number are mapped to virq
numbers for us, so the ugly hack can go.

Signed-off-by: NeilBrown <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agoramips: Remove redundant owner assignment
Christian Lütke-Stetzkamp [Sat, 12 May 2018 19:57:45 +0000 (12:57 -0700)]
ramips: Remove redundant owner assignment

Remove the owner assignment form the platform driver as
platform_driver_register() already initializes the owner.
Found using coccinelle.

Signed-off-by: Christian Lütke-Stetzkamp <>
Signed-off-by: Greg Kroah-Hartman <>
2 years agoramips: Move PCI driver to files directory
Rosen Penev [Sat, 12 May 2018 19:57:44 +0000 (12:57 -0700)]
ramips: Move PCI driver to files directory

This will make it easier to port upstream code.

Signed-off-by: Rosen Penev <>
2 years agomac80211: properly setup mesh interface
Daniel Golle [Sun, 13 May 2018 03:20:39 +0000 (05:20 +0200)]
mac80211: properly setup mesh interface

Setup wpa_supplicant for encrypted mesh or when using DFS channels and
adjust interface setup to pass fixed frequency for mesh mode.

Signed-off-by: Daniel Golle <>
2 years agohostapd: fix mesh+AP
Daniel Golle [Sat, 12 May 2018 19:08:18 +0000 (21:08 +0200)]
hostapd: fix mesh+AP

Fix encrypted (or DFS) AP+MESH interface combination in a way similar
to how it's done for AP+STA and fix netifd shell script.
Refresh patches while at it.

Signed-off-by: Daniel Golle <>
2 years agorpcd: update to lastest HEAD
Jo-Philipp Wich [Mon, 14 May 2018 05:16:13 +0000 (07:16 +0200)]
rpcd: update to lastest HEAD

8206219 uci: fix memory leak in rpc_uci_replace_savedir()
10f7878 exec: close stdout and stderr streams on child signal
92d0d75 uci: use correct sort index when reordering sections

Signed-off-by: Jo-Philipp Wich <>
2 years agowireguard: bump to 0.0.20180513
Kevin Darbyshire-Bryant [Sun, 13 May 2018 19:05:15 +0000 (20:05 +0100)]
wireguard: bump to 0.0.20180513

6b4a340 version: bump snapshot
faa2103 compat: don't clear header bits on RHEL
4014532 compat: handle RHEL 7.5's recent backports
66589bc queueing: preserve pfmemalloc header bit
37f114a chacha20poly1305: make gcc 8.1 happy
926caae socket: use skb_put_data
724d979 wg-quick: preliminary support for go implementation
c454c26 allowedips: simplify arithmetic
71d44be allowedips: produce better assembly with unsigned arithmetic
5e3532e allowedips: use native endian on lookup
856f105 allowedips: add selftest for allowedips_walk_by_peer
41df6d2 embeddable-wg-library: zero attribute padding
9a1bea6 keygen-html: add zip file example
f182b1a qemu: retry on 404 in wget for race

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agoat91: sama5d4: fix bad mkubifs options
Jo-Philipp Wich [Sun, 13 May 2018 16:33:47 +0000 (18:33 +0200)]
at91: sama5d4: fix bad mkubifs options

Drop the "-x lzo" compression type override from MKUBIFS_OPTS since we
do not support it in mkfs.ubifs. Attempting to use LZO compression results
in "Error: bad compressor name".

The build system also appends an explicit "--compr=zlib" to the mkfs command
line, turning the "-x" flag into a no-op anyway.

Signed-off-by: Jo-Philipp Wich <>
2 years agokernel: let kmod-rtl8366-smi conditionally depend on kmod-of-mdio
Jo-Philipp Wich [Sun, 13 May 2018 16:21:59 +0000 (18:21 +0200)]
kernel: let kmod-rtl8366-smi conditionally depend on kmod-of-mdio

We cannot depend on CONFIG_OF in the module definition context as this symbol
is not defined for OpenWrt menuconfig. Depend on the targets that appear to
need the kmod-of-mdio module instead.

The target dependency list may not be complete, it is based on the build
failures encountered by the build bots.

Fixes: dc629d9cf5 ("kernel: fix kmod-switch-rtl8366-smi dependency")
Signed-off-by: Jo-Philipp Wich <>
2 years agokernel: use accepted version of bcm47xxpart fix commit
Rafał Miłecki [Sat, 12 May 2018 21:34:43 +0000 (23:34 +0200)]
kernel: use accepted version of bcm47xxpart fix commit

Signed-off-by: Rafał Miłecki <>
2 years agokernel: backport mtd patch for minor partitioning cleanup
Rafał Miłecki [Sat, 12 May 2018 21:12:32 +0000 (23:12 +0200)]
kernel: backport mtd patch for minor partitioning cleanup

Signed-off-by: Rafał Miłecki <>
2 years agokernel: fix build error in flow offload code with CONFIG_NETFILTER=n
Felix Fietkau [Tue, 8 May 2018 21:17:36 +0000 (23:17 +0200)]
kernel: fix build error in flow offload code with CONFIG_NETFILTER=n

Signed-off-by: Felix Fietkau <>
2 years agodnsmasq: bump to 2.80test2
Kevin Darbyshire-Bryant [Sat, 12 May 2018 14:37:33 +0000 (15:37 +0100)]
dnsmasq: bump to 2.80test2

Refresh patches and backport upstream to current HEAD:

1f1873a Log warning on very large cachesize config, instead of truncating it.
0a496f0 Do unsolicited RAs for interfaces which appear after dnsmasq startup.
e27825b Fix logging in previous.
1f60a18 Retry SERVFAIL DNSSEC queries to a different server, if possible.
a0088e8 Handle query retry on REFUSED or SERVFAIL for DNSSEC-generated queries.
34e26e1 Retry query to other servers on receipt of SERVFAIL rcode.
6b17335 Add packet-dump debugging facility.
07ed585 Add logging for DNS error returns from upstream and local configuration.
0669ee7 Fix DHCP broken-ness when --no-ping AND --dhcp-sequential-ip are set.
f84e674 Be persistent with broken-upstream-DNSSEC warnings.

Compile & run tested: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agobcm53xx: backport the first bunch of 4.18 BCM5301X patches
Rafał Miłecki [Sat, 12 May 2018 13:38:53 +0000 (15:38 +0200)]
bcm53xx: backport the first bunch of 4.18 BCM5301X patches

Signed-off-by: Rafał Miłecki <>
2 years agoat91: cleanup kernel configurations
Jo-Philipp Wich [Fri, 11 May 2018 16:24:00 +0000 (18:24 +0200)]
at91: cleanup kernel configurations

The subtarget configurations contained a lot of reduntant symbols, arbitrary
overrides and symbols set to =m.

Remove most of these redundant settings to shrink the subtarget configurations
to a manageable size.

Signed-off-by: Jo-Philipp Wich <>
2 years agoat91: sama5d2: remove CONFIG_XZ_DEC override
Jo-Philipp Wich [Fri, 11 May 2018 14:40:34 +0000 (16:40 +0200)]
at91: sama5d2: remove CONFIG_XZ_DEC override

Fixes the following error spotted by the buildbot:

    Package kmod-fs-squashfs is missing dependencies for the following libraries:

Signed-off-by: Jo-Philipp Wich <>
2 years agoat91: add missing config symbols
Jo-Philipp Wich [Fri, 11 May 2018 14:01:26 +0000 (16:01 +0200)]
at91: add missing config symbols

Signed-off-by: Jo-Philipp Wich <>
2 years agokernel: rtl8366_smi: guard of_mdiobus_register() call
Jo-Philipp Wich [Fri, 11 May 2018 13:07:56 +0000 (15:07 +0200)]
kernel: rtl8366_smi: guard of_mdiobus_register() call

Make the call to of_mdiobus_register() dependant on CONFIG_OF to avoid
pulling in an unwanted dependency on of_mdio.ko.

Fixes: 3dc523f232 kernel: add OF support to rtl8355 driver
Signed-off-by: Jo-Philipp Wich <>
2 years agodnsmasq: add specific interface procd triggers
hux [Mon, 7 May 2018 22:37:48 +0000 (00:37 +0200)]
dnsmasq: add specific interface procd triggers

Right now interface.update events are sent out by netifd upon interface state,
route, address (lifetime), prefix lifetime changes.
Dnsmasq is only interested in interface state changes and currently adds an
interface trigger for all the "interface.*" events.
In combination with commit 23bba9cb330, which triggers a SIGHUP signal to dnsmasq,
IPv6 address/prefix lifetime changes on the wan will trigger dnsmasq reloads which
can become frequent in case of shorter lifetimes.

To avoid frequent dnsmasq reload, this patch adds specific interface triggers.
During dnsmasq init it loops dhcp uci section; if the value of the ignore option
is set to 0, then the corresponding interface trigger is not installed.
Otherwise, if the ignore option value is 1, then procd_add_interface_trigger is
called which adds the interface trigger.

Signed-off-by: hux <>
2 years agokernel: fix kmod-switch-rtl8366-smi dependency
John Crispin [Thu, 10 May 2018 08:22:19 +0000 (10:22 +0200)]
kernel: fix kmod-switch-rtl8366-smi dependency

Signed-off-by: John Crispin <>
2 years agoar71xx: fix and improve ALFA Network Tube2H support
Piotr Dymacz [Wed, 9 May 2018 18:04:01 +0000 (20:04 +0200)]
ar71xx: fix and improve ALFA Network Tube2H support

Fix ART offset (make it universal for 8/16 MB versions of the board) and
while at it, include also GPIO setup for h/w watchdog (EM6324QYSP5B).

Fixes: FS#1532

Signed-off-by: Piotr Dymacz <>
2 years agokernel: fix chipidea2 dependencies
John Crispin [Wed, 9 May 2018 17:55:10 +0000 (19:55 +0200)]
kernel: fix chipidea2 dependencies

Signed-off-by: John Crispin <>
2 years agonghttp2: bump to 1.32.0
Hans Dedecker [Wed, 9 May 2018 09:24:50 +0000 (11:24 +0200)]
nghttp2: bump to 1.32.0

572735e4 Update manual pages
e8d693c3 Bump up version number to 1.32.0, LT revision to 30:2:16
f44dfcd9 Update AUTHORS
1f1b0d93 Update manual pages
ce8c749b Merge pull request #1173 from nghttp2/asio-client-sni
3e4f257b asio: Support client side SNI
86fab997 Upgrade neverbleed to the latest master
c3ecd445 Merge pull request #1171 from nghttp2/h2load-rate-and-duration
c65ca20a h2load: -r and --duration are mutually exclusive
a5c408c5 Ignore all input after calling session_terminate_session
06379b28 Fix treatment of padding
e04de48e Merge pull request #1162 from nghttp2/libressl
00964642 Use LIBRESSL_IN_USE instead of defined(LIBRESSL_VERSION_NUMBER)
8d0b4544 libressl 2.7 has X509_VERIFY_PARAM_*
d8a34131 libressl 2.7 has SSL_CTX_get0_certificate
5db17d0a Compile with libressl 2.7.2
3febaef1 Bump up LT revision to 30:1:16 due to v1.31.1 release
b1bd6035 Fix frame handling
b48bcb21 examples: Use C style comment in .c files
6f3ce2c7 examples: Remove unused lambda capture
2f9121cf Merge branch 'Sp1l-Sp1l/allow-no-npn'
e65e7711 Add comment on #endif
636ef51b Fix compile error with -Wunused-function
400934e5 [PATCH] Allow building without NPN
4c3a3acf Merge pull request #1146 from vszakats/cmakestaticlib
9aa6002c Merge pull request #1144 from hellojaewon/master
f342260b cmake: add ENABLE_STATIC_LIB option to build static lib
a6dd4970 Fix typo
842509da Don't allow 101 HTTP status code because HTTP/2 removes HTTP Upgrade
4add618a Bump up version number to 1.32.0-DEV

Signed-off-by: Hans Dedecker <>
2 years agoath79: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Matthias Schiffer [Thu, 26 Apr 2018 18:04:48 +0000 (20:04 +0200)]
ath79: Ubiquiti Airmax M: add relocate-kernel to invalidate cache

Apply ar71xx fix for broken Ubiquiti bootloader to ath79 as well.

Signed-off-by: Matthias Schiffer <>
2 years agoramips: move mtk-mmc init to probe function to avoid breaking NAND flash
Felix Fietkau [Tue, 8 May 2018 15:45:00 +0000 (17:45 +0200)]
ramips: move mtk-mmc init to probe function to avoid breaking NAND flash

The driver messes with the pin control settings - MMC and NAND are
mutually exclusive

Signed-off-by: Felix Fietkau <>
2 years agoramips: clean up the mt7621 nand flash driver hacks, add support for the xiaomi mir3g...
Felix Fietkau [Tue, 8 May 2018 15:44:23 +0000 (17:44 +0200)]
ramips: clean up the mt7621 nand flash driver hacks, add support for the xiaomi mir3g flash chip

Signed-off-by: Felix Fietkau <>
2 years agokmod-sched-cake: bump to latest cake 2018-05-07
Kevin Darbyshire-Bryant [Tue, 8 May 2018 08:39:22 +0000 (08:39 +0000)]
kmod-sched-cake: bump to latest cake 2018-05-07

No functional change.  Code tidy ups.

735eaf2 Make sure we don't reallocate q->tins (we didn't anyway but his
really makes sure)
6c5ad6e Get rid of __GFP_NOWARN flag for memory allocation
2a37333 Don't need the wrapper for kvfree, and no need to check before calling it
2b1c631 Whitespace fix
7fe6e28 compat tidyup (for older kernel versions <4.4)
93b805c pedant tidy up superfluous semicolons on switch statements

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agobrcm47xx: switch to the kernel 4.14
Rafał Miłecki [Sat, 5 May 2018 22:06:14 +0000 (00:06 +0200)]
brcm47xx: switch to the kernel 4.14

The biggest (and the only?) disadventage of this is obviously an
increased image size.

For mips74k the size of vmlinux goes up from 4186684 B to 4701436 B.
Most devices use LZMA compressed kernel so probably more important is
vmlinux.lzma size which goes up from 1342945 B to the 1508498 B.

Still this isn't something that should stop target kernel bump. There
are various adventages of kernel 4.14. If kernel / image size is a
serious concern for anyone, it's perfectly possible to use previous
release which is pretty solid for the brcm47xx.

Signed-off-by: Rafał Miłecki <>
Cc: Paul Wassi <>
Cc: Hauke Mehrtens <>
2 years agokernel: mark source kernel for netfilter backports
Rafał Miłecki [Tue, 8 May 2018 07:40:43 +0000 (09:40 +0200)]
kernel: mark source kernel for netfilter backports

This helps keeping track on patches & adding new kernels in the future.

Signed-off-by: Rafał Miłecki <>
2 years agoramips: add support for mqmaker witi 512mb version
Davide Ammirata [Thu, 3 May 2018 15:59:27 +0000 (15:59 +0000)]
ramips: add support for mqmaker witi 512mb version

Splitted out the dts file and create the new dts for the 256 MByte RAM and
the 512 MB RAM version.

Migrate both versions to the common board detection.

The install the 512 MByte Version on a board running the 256 MByte image,
a forceful sysupgrade with the -F flag is required.

Signed-off-by: Davide Ammirata <>
2 years agoramips: add support for Ravpower WD03
Matthias Badaire [Sun, 15 Apr 2018 20:34:05 +0000 (22:34 +0200)]
ramips: add support for Ravpower WD03

The RavPower WD03 is a battery powered SD card reader and a USB port.

SOC:     MediaTek MT7620N
BATTERY: 6000mah
WLAN:    802.11bgn
LAN:     1x 10/100 Mbps Ethernet
USB:     1x USB 2.0 (Type-A)
RAM:     PM Tech PMD708416CTR-5CN 32 MB
FLASH:   Holtek HT66F40 - 8 MB Flash
LED:     Power button and 4 leds to indicate power level of the
         battery (could not get control of that)
INPUT:   Power, reset button
OTHER:   USB SD-Card reader with card detect on GPIO#42

Tested and working:
 - Ethernet
 - 2.4 GHz WiFi (Correct MAC-address)
 - installation from tftp
 - OpenWRT sysupgrade (Preserving and non-preserving)
 - LEDs
 - Buttons

 - Download the sysupgrade image
 - Place it in the root of a clean TFTP server running on your computer.
 - Rename the image to "kernel" — be sure there is no file extension.
 - Plug the WD03 into your computer via ethernet.
 - Set your computer to use as its IP address.
 - With your WD03 shut down, hold down the power button until the first
   white LED lights up.
 - Push and hold the reset button and release the power button. Continue
   holding the reset button for 30 seconds or until it begins searching
   for files on your TFTP server, whichever comes first.
 - The WD03 ( will look for your computer at
   and install the kernel file. Once it has finished installation of the
   kernel file, it will search for a (nonexistent) rootfs file — when it
   begins searching for this file, shut down the WD03 by holding the
   power button normally.
 - Start up your WD03 normally.

Signed-off-by: Matthias Badaire <>
2 years agolantiq: kernel 4.14: Remove reboot/remove reset asserts
Mathias Kresin [Tue, 27 Mar 2018 21:48:05 +0000 (23:48 +0200)]
lantiq: kernel 4.14: Remove reboot/remove reset asserts

Backport patch accepted upstream which removes the reset asserts of the
xrx200 gphy driver on reboot/remove.

While doing a global software reset, these bits are not cleared and let
some bootloader fail to initialise the GPHYs. The bootloader don't expect
these bits to be set, as they aren't during power on.

The asserts were a workaround for a wrong syscon-reboot mask. With a mask
set which includes the GPHY resets of the first reset register, the
resets of the second reset register arn't required any more.

Signed-off-by: Mathias Kresin <>
2 years agoath79: drop dts/Makefile
John Crispin [Mon, 7 May 2018 13:01:12 +0000 (15:01 +0200)]
ath79: drop dts/Makefile

Signed-off-by: John Crispin <>
2 years agoath79: u-boot partitions should be read-only in dts
Russell Senior [Mon, 7 May 2018 11:06:31 +0000 (13:06 +0200)]
ath79: u-boot partitions should be read-only in dts

Some of the new ath79 device trees were missing read-only tags on the
u-boot partitions.  This adds the tags where previously missing.

Signed-off-by: Russell Senior <>
2 years agoath79: use the new DT fixed partitions syntax
Rafał Miłecki [Mon, 7 May 2018 08:35:51 +0000 (10:35 +0200)]
ath79: use the new DT fixed partitions syntax

This new syntax is slightly better designed & uses "compatible" string.
For details see Documentation/devicetree/bindings/mtd/partition.txt .

Signed-off-by: Rafał Miłecki <>
2 years agoath79: revert license change on upstream DTS files
John Crispin [Mon, 7 May 2018 10:52:03 +0000 (12:52 +0200)]
ath79: revert license change on upstream DTS files

Signed-off-by: John Crispin <>
2 years agoigmpproxy: bump to 0.2.1
Kevin Darbyshire-Bryant [Fri, 20 Apr 2018 19:59:22 +0000 (19:59 +0000)]
igmpproxy: bump to 0.2.1

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Point at github which is new, maintained location for igmpproxy.
Remove all patches as all have been upstreamed.

Closes FS#1456

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agoigmpproxy: fix creation of firewall rules
Jaap Buurman [Tue, 1 May 2018 09:53:53 +0000 (11:53 +0200)]
igmpproxy: fix creation of firewall rules

The init sccript for igmpproxy uses the option 'network' both as an interface name for fetching the l3_device name and for creating the firewall rules. This only works if the name of the network and firewall zone are identical.

This commit introduces a new option 'zone' for configuring the upstream and downstream firewall zones in order for the init script to create the required firewall rules automatically. When no such options are given, the init script falls back to not creating the firewall rules and the user can opt to create these manually.

Signed-off-by: Jaap Buurman <>
2 years agohostapd: add channel utilization as config option
Nick Hainke [Wed, 25 Apr 2018 21:27:00 +0000 (23:27 +0200)]
hostapd: add channel utilization as config option

Add the channel utilization as hostapd configuration option.

Signed-off-by: Nick Hainke <>
2 years agoar71xx: add support for Fritz!Box 4020
David Bauer [Tue, 24 Apr 2018 17:52:13 +0000 (19:52 +0200)]
ar71xx: add support for Fritz!Box 4020

This commit adds support for the AVM Fritz!Box 4020 WiFi-router.

SoC:   Qualcomm Atheros QCA9561 (Dragonfly) 750MHz
RAM:   Winbond W971GG6KB-25
FLASH: Macronix MX25L12835F
WiFi:  QCA9561 b/g/n 3x3 450Mbit/s
USB:   1x USB 2.0
IN:    WPS button, WiFi button
OUT:   Power LED green, Internet LED green, WLAN LED green,
       LAN LED green, INFO LED green, INFO LED red
UART:  Header Next to Black metal shield
       Pinout is 3.3V - RX - TX - GND (Square Pad is 3.3V)
       The Serial setting is 115200-8-N-1.

Tested and working:
 - Ethernet (LAN + WAN)
 - WiFi (correct MAC)
 - Installation via EVA bootloader
 - OpenWRT sysupgrade
 - Buttons
 - LEDs

Not working:
 - USB port

Installation via EVA:
In the first seconds after Power is connected, the bootloader will
listen for FTP connections on (Might also be Firmware can be uploaded
like following:

  ftp> quote USER adam2
  ftp> quote PASS adam2
  ftp> binary
  ftp> debug
  ftp> passive
  ftp> quote MEDIA FLSH
  ftp> put openwrt-sysupgrade.bin mtd1

Note that this procedure might take up to two minutes. After transfer is
complete you need to powercycle the device to boot OpenWRT.

Signed-off-by: David Bauer <>
2 years agoath79: relicense DTS files to the GPL 2.0+ / MIT
Rafał Miłecki [Mon, 7 May 2018 08:10:49 +0000 (10:10 +0200)]
ath79: relicense DTS files to the GPL 2.0+ / MIT

Some maintainers prefer DTS files licensed under permissive license like
MIT / BSD. As all DT bindings should be OS independent and DTS files are
pretty separated from Linux code it probably makes sense to share them
across projects.

The safest solution is to use dual licensing: that way it stays clear
these files can be used in GPL projects without depending on current
belief of licenses compatibility.

Signed-off-by: Rafał Miłecki <>
Acked-by: John Crispin <>
2 years agokernel: fix build error for external kernel.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:46 +0000 (10:27 -0700)]
kernel: fix build error for external kernel.

fixed build error when external kernel is selected from menuconfig.
The patches present in target/linux/generic does not gets applied
to external kernel and build fails while compiling mac82011 &
regmap-core kernel modules. as a fix added check in Makefile for

Signed-off-by: Sandeep Sheriker Mallikarjun <>