openwrt/staging/neocturne.git
6 years agogemini: remove 4.4 support
Roman Yeryomin [Sun, 29 Apr 2018 16:13:31 +0000 (19:13 +0300)]
gemini: remove 4.4 support

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: switch to 4.14
Roman Yeryomin [Sun, 29 Apr 2018 16:07:05 +0000 (19:07 +0300)]
gemini: switch to 4.14

This introduces Device/ infrastructure and images
for all boards available upstream.

Changes from Linus submitted version:
- fix Raidsonic image generation
- remove redundant (old) image generation
- remove redundant header tool for dns313 board

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agofirmware-utils: add DNS-313 image header tool
Linus Walleij [Wed, 4 Apr 2018 20:15:29 +0000 (22:15 +0200)]
firmware-utils: add DNS-313 image header tool

This tool is used to create headers on images for the
D-Link DNS-313 in gemini target.
Will be used after switching gemini to 4.14 kernel.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
6 years agogemini: add 4.14 support
Roman Yeryomin [Sun, 29 Apr 2018 14:38:07 +0000 (17:38 +0300)]
gemini: add 4.14 support

This adds the patches to get fairly complete Gemini support
using kernel v4.14. It is mainly a backport of patches from
kernel v4.16 with omissions of things like graphics that require
substantial changes and will be better handled once we move
to the v4.16 kernel proper.
On top of this are some WIP patches for USB support.

Tested on Raidsonic NAS4220B and D-link DNS-313.

ChangeLog v4->v5:
- Fix ethernet single gmac usecase
- Fix USB reset (patch from Hans)
- Fix Raidsonic ethernet skew delay
- Fix kernel config (bridge, squashfs, jffs2, usb)
- Disable second usb port on Raidsonic board until fotg210_hcd is fixed

ChangeLog v3->v4:
- Make sure to use tabs rather than spaces in base-files.
- Use the dns313 image tool from the firmware-utils.
- Break out the addition of the v4.14 patches and the removal
  of the v4.4 patches to separate (big) patches.

ChangeLog v2->v3:
- Update the kernel config as indicated by Hauke Martens:
- Regenerate again after rebasing using kernel_oldconfig
  dropping a few optimization settings that are now generic
- Drop CFG80211 stuff (module)
- Drop CIFS stuff (module)
- Drop MAC80211 (module)
- Drop wireless drivers (module)
- Enabled OverlayFS
- Added proper DNS-313 boot image generation with the special
  file header tool.
- Disable CMA in the kernel
- Enable LZMA compression of the kernel
- Consequently name the nas4220b images nas4220b
- Update preinit MAC detection script to handle also DNS-313
- Add board.d/03_hdparm to set the disk to spin down after
  1 minute by default, if we have the hdparm tool installed

ChangeLog v1->v2:
- Processed config through kernel_oldconfig
- Processed patches through make target/linux/{clean,refresh} V=99

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: rename files directory (preparation for 4.14)
Roman Yeryomin [Sun, 29 Apr 2018 14:31:42 +0000 (17:31 +0300)]
gemini: rename files directory (preparation for 4.14)

Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agoat91: refreshing kernel configurations.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:52 +0000 (10:27 -0700)]
at91: refreshing kernel configurations.

refreshing kernel configurations for sama5 and legacy subtarget.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: Add SAMA5D2 PTC EK board
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:51 +0000 (10:27 -0700)]
at91: Add SAMA5D2 PTC EK board

Add target device as at91-sama5d2_ptc_ek in SAMA5D2 subtarget and
build images for SAMA5D2 PTC Ek board.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: reorganize at91 subtargets
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:50 +0000 (10:27 -0700)]
at91: reorganize at91 subtargets

reorganizing at91 subtargets based on sama5 soc features and this fix
below problems.
  1. able to set neon flags to sama5d2 & sama5d4 subtargets.
  2. fix the make clean which removes all the subtargets in bin folder.
  3. able to configure kernel specific to subtarget.
  4. able to set vfpu4 flags to samad3 subtargets.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agouboot-at91: fix DTC command not found.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:49 +0000 (10:27 -0700)]
uboot-at91: fix DTC command not found.

fixed DTC command not found error while compling uboot-at91. The fix
is to set DTC PATH in uboot-at91 MAKE command.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: sdcard image with ext4 rootfs
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:48 +0000 (10:27 -0700)]
at91: sdcard image with ext4 rootfs

creating sdcard image with ext4 rootfs only and ignoring creating
other filesystem in sdcard image.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: Add SAMA5D27 SOM1 EK board
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:47 +0000 (10:27 -0700)]
at91: Add SAMA5D27 SOM1 EK board

Add support for SAMA5D27 SOM1 with target device as at91-sama5d27_som1_ek
in SAMA5 subtarget and build images for SAMA5D27 SOM1 Ek board.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agouboot-at91: fetch uboot src from u-boot-at91 github
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:45 +0000 (10:27 -0700)]
uboot-at91: fetch uboot src from u-boot-at91 github

fetching uboot src from linux4sam/u-boot-at91 github for all at91
target.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: fix sdcard create image
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:44 +0000 (10:27 -0700)]
at91: fix sdcard create image

copying at91bootstrap and uboot binaries to sdcard image is done
based on device name instead of dts name and this avoids creating
multiple u-boot and at91bootstrap binaries.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91bootstrap:update to v3.8.10
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:43 +0000 (10:27 -0700)]
at91bootstrap:update to v3.8.10

updating to new version v3.8.10 and copying at91bootstrap.bin to bin folder.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agohostapd: fix a mesh mode crash with CONFIG_TAXONOMY enabled
Felix Fietkau [Thu, 3 May 2018 10:38:20 +0000 (12:38 +0200)]
hostapd: fix a mesh mode crash with CONFIG_TAXONOMY enabled

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: add missing in6_dev_put_clear call to an ipv6 network patch
Felix Fietkau [Mon, 30 Apr 2018 12:03:28 +0000 (14:03 +0200)]
kernel: add missing in6_dev_put_clear call to an ipv6 network patch

Fixes "unregister_netdevice: waiting for lo to become free. Usage count = 1" messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agosamba36: add hotplug support
Rosy Song [Wed, 2 May 2018 02:48:36 +0000 (10:48 +0800)]
samba36: add hotplug support

Add hotplug handle script for storage devices,
  this will add corresponding option in the
  /etc/config/samba file automatically.

Signed-off-by: Rosy Song <rosysong@rosinson.com>
6 years agolibusb: Add SourceForge mirror.
Rosen Penev [Tue, 1 May 2018 21:13:56 +0000 (14:13 -0700)]
libusb: Add SourceForge mirror.

SourceForge is still getting updated so might as well have it here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoiproute2: update to 4.16
Hans Dedecker [Tue, 1 May 2018 20:00:25 +0000 (22:00 +0200)]
iproute2: update to 4.16

Update to latest version of iproute2, refresh patches.
See https://lkml.org/lkml/2018/4/2/349 for a full overview of the
changes in 4.16.
Build and tested on AR7xxx against musl

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agouboot-envtools: Change download to git.
Rosen Penev [Tue, 1 May 2018 19:59:05 +0000 (12:59 -0700)]
uboot-envtools: Change download to git.

Currently, the build system uses an openwrt mirror which does not currently
work and FTP can be unreliable under several circumstances. This change
implicitly allows using all the mirrors to download.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agowolfssl: fix options and add support for wpa_supplicant features
Daniel Golle [Sat, 28 Apr 2018 18:55:51 +0000 (20:55 +0200)]
wolfssl: fix options and add support for wpa_supplicant features

Some options' default values have been changed upstream, others were
accidentally inverted (CONFIG_WOLFSSL_HAS_DES3). Also add options
needed to build hostapd/wpa_supplicant against wolfssl.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agosysctl: Protect hard/symlinks by default.
Rosen Penev [Mon, 30 Apr 2018 20:15:54 +0000 (13:15 -0700)]
sysctl: Protect hard/symlinks by default.

There is no usecase for not protecting symlinks that I know of in OpenWrt.
Not even on desktop systems where you have multiple users with a shell.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoustream-ssl: update to latest git HEAD
John Crispin [Tue, 1 May 2018 09:11:16 +0000 (11:11 +0200)]
ustream-ssl: update to latest git HEAD

527e700 ustream-ssl: Remove RC4 from ciphersuite in server mode.
39a6ce2 ustream-ssl: Enable ECDHE with OpenSSL.
45ac930 remove polarssl support

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoiptables: fix per object LDFLAGS for aggragate object builds
John Crispin [Mon, 30 Apr 2018 13:18:57 +0000 (15:18 +0200)]
iptables: fix per object LDFLAGS for aggragate object builds

Without this patch the extra LDFLAGS of objects were selected based on the
name of the extension being built, which breaks for aggregate so builds.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agodownload.pl: Change OpenWrt mirrors to HTTPS.
Rosen Penev [Tue, 20 Feb 2018 20:43:01 +0000 (12:43 -0800)]
download.pl: Change OpenWrt mirrors to HTTPS.

These have supported HTTPS for quite a while. I have not seen any obvious breakage.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agodownload.pl: Change SourceForge address to HTTPS.
Rosen Penev [Tue, 20 Feb 2018 20:43:00 +0000 (12:43 -0800)]
download.pl: Change SourceForge address to HTTPS.

SourceForge has supported HTTPS for its downloads for a long time now.

I have not been able to see any failures resulting from this change.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agomtd-utils: add back macOS compatibility code that was dropped during the update
Felix Fietkau [Mon, 30 Apr 2018 08:09:48 +0000 (10:09 +0200)]
mtd-utils: add back macOS compatibility code that was dropped during the update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: Restrict dmesg output to root.
Rosen Penev [Fri, 30 Mar 2018 22:18:02 +0000 (15:18 -0700)]
kernel: Restrict dmesg output to root.

In typical OpenWrt setups, there are no other users that have a shell spawned for them by default.

This can be overriden by the kernel.dmesg_output syssctl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agolibnl: Disable debug support
Hauke Mehrtens [Fri, 30 Mar 2018 14:57:52 +0000 (16:57 +0200)]
libnl: Disable debug support

This dereses the size of the libnl pakcage a little bit
old:
   857 bin/packages/mips_24kc/base/libnl_3.4.0-1_mips_24kc.ipk
 41195 bin/packages/mips_24kc/base/libnl-core_3.4.0-1_mips_24kc.ipk
  7818 bin/packages/mips_24kc/base/libnl-genl_3.4.0-1_mips_24kc.ipk
 24322 bin/packages/mips_24kc/base/libnl-nf_3.4.0-1_mips_24kc.ipk
136075 bin/packages/mips_24kc/base/libnl-route_3.4.0-1_mips_24kc.ipk\ 2

new:
   852 bin/packages/mips_24kc/base/libnl_3.4.0-1_mips_24kc.ipk
 35020 bin/packages/mips_24kc/base/libnl-core_3.4.0-1_mips_24kc.ipk
  7615 bin/packages/mips_24kc/base/libnl-genl_3.4.0-1_mips_24kc.ipk
 24114 bin/packages/mips_24kc/base/libnl-nf_3.4.0-1_mips_24kc.ipk
131134 bin/packages/mips_24kc/base/libnl-route_3.4.0-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoat91: sama5: remove neon and VFPv4 support
Sandeep Sheriker Mallikarjun [Mon, 2 Apr 2018 16:34:10 +0000 (09:34 -0700)]
at91: sama5: remove neon and VFPv4 support

sama5d2 & samad4 have neon feature and sama5d3 does not have neon
feature due to which sama5d3 boot fails with error message Kernel
panic - not syncing: Attempted to kill init! exitcode=0x00000004.
removing neon & VFPv4 support to fix this

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: fix build error for wb50n.
Sandeep Sheriker Mallikarjun [Mon, 2 Apr 2018 16:34:07 +0000 (09:34 -0700)]
at91: fix build error for wb50n.

when external kernel is selected from menuconfig, device wb50n is not
avaliable and build fails. As a fix adding checks for external kernel.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agolibusb: Update to 1.0.22
Rosen Penev [Sat, 28 Apr 2018 05:13:46 +0000 (22:13 -0700)]
libusb: Update to 1.0.22

Switched download from SourceForge to GitHub. It seems the author migrated to that.

Also fixed the website URL as the SourceForge link is dead.

Compile tested on ar71xx and mvebu. Small size decrease on ar71xx: 30444 vs. 30099 bytes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoar71xx: Add userspace support for Mikrotik rb-2011iLS
Simon Paterson [Sun, 29 Apr 2018 23:05:42 +0000 (11:05 +1200)]
ar71xx: Add userspace support for Mikrotik rb-2011iLS

Kernel support already present.
Patch adds userspace for the 'iLS' suffix model of the RB2011 family.
Enables correct initial switch settings, sysupgrade, etc.

https://mikrotik.com/product/RB2011iLS-IN

Signed-off-by: Simon Paterson <simon.paterson.nz@gmail.com>
6 years agokernel: bump 4.14 to 4.14.37
Koen Vandeputte [Thu, 26 Apr 2018 16:20:36 +0000 (18:20 +0200)]
kernel: bump 4.14 to 4.14.37

Refreshed all patches

Compile-tested on: cns3xxx, imx6, octeon, ramips/mt7621, x86/64
Runtime-tested on: cns3xxx, imx6, octeon, ramips/mt7621, x86/64

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
[add extra tested targets to commit msg]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agoodhcp6c: update to latest git HEAD
Hans Dedecker [Sun, 29 Apr 2018 21:07:39 +0000 (23:07 +0200)]
odhcp6c: update to latest git HEAD

5316d7f ra: always trigger update in case of RA parameter change
327f73d dhcpv6: fix strncpy bounds

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agotoolchain/binutils: Use xz tarballs where possible
Daniel Engberg [Mon, 16 Apr 2018 23:15:30 +0000 (01:15 +0200)]
toolchain/binutils: Use xz tarballs where possible

Switch to xz for 2.29.1 and 2.30
These tarballs are about 10Mbyte smaller than bz2.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agoglibc: switch from git to https
Johann Neuhauser [Fri, 27 Apr 2018 07:08:07 +0000 (09:08 +0200)]
glibc: switch from git to https

This is needed for working behind a http proxy.

Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.de>
6 years agouboot-mvebu: Fix build with libressl 2.7.2
Hauke Mehrtens [Sun, 29 Apr 2018 08:12:14 +0000 (10:12 +0200)]
uboot-mvebu: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-mxs: Fix build with libressl 2.7.2
Hauke Mehrtens [Sat, 28 Apr 2018 22:40:40 +0000 (00:40 +0200)]
uboot-mxs: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.
Also make the mxsimage tool to use the OpenSSL 1.1 API for the recent
libressl version.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-zynq: Fix build with libressl 2.7.2
Hauke Mehrtens [Sat, 28 Apr 2018 22:39:38 +0000 (00:39 +0200)]
uboot-zynq: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agotools/make-ext4fs: Fix build on MacOSX
Hauke Mehrtens [Sat, 28 Apr 2018 16:20:20 +0000 (18:20 +0200)]
tools/make-ext4fs: Fix build on MacOSX

MacOSX does not support "-Wl,-Bstatic" so do not force the static
linking.
We only copy the static libz library into the staging libraries
directories, the linker will anyway only find the static version and
link against that on all systems.

Fixes: 8dcd941d8b9 ("tools/zlib: move zlib build to tools")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agotools/libressl: update to version 2.7.2
Hauke Mehrtens [Sat, 14 Apr 2018 21:33:41 +0000 (23:33 +0200)]
tools/libressl: update to version 2.7.2

Libressl version 2.7.0 and later implement more of the OpenSSL 1.1 API
and this needs some modifications of the code using it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomtd-utils: activate --gc-sections
Hauke Mehrtens [Fri, 30 Mar 2018 13:32:07 +0000 (15:32 +0200)]
mtd-utils: activate --gc-sections

This reduces the size of the binary a bit:

old:
 37556 bin/targets/lantiq/xrx200/packages/nand-utils_2.0.1-1_mips_24kc.ipk
 81697 bin/targets/lantiq/xrx200/packages/ubi-utils_2.0.1-1_mips_24kc.ipk

new:
 27450 bin/targets/lantiq/xrx200/packages/nand-utils_2.0.1-1_mips_24kc.ipk
 71796 bin/targets/lantiq/xrx200/packages/ubi-utils_2.0.1-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agomtd-utils: update to 2.0.2
Syrone Wong [Sat, 24 Mar 2018 00:25:43 +0000 (08:25 +0800)]
mtd-utils: update to 2.0.2

010-fix-rpmatch.patch is upstream, removed from our patchset
The file structure is changed, modify patch accordingly
use CONFIGURE_ARGS to disable tests, xattr and lzo

Compile and run tested on mvebu and x86_64

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/mtd-utils: update to version 2.0.2
Hauke Mehrtens [Sun, 15 Apr 2018 17:25:17 +0000 (19:25 +0200)]
tools/mtd-utils: update to version 2.0.2

This version now uses autotools to configure the build system. They are
also using the newly added zlib package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/mtd-utils: Mark some lzma functions as static
Hauke Mehrtens [Sun, 15 Apr 2018 11:01:16 +0000 (13:01 +0200)]
tools/mtd-utils: Mark some lzma functions as static

These functions are not declared in any header file and only used in
same compile unit, mark them as static to remove one gcc warning and
make it easier for the compiler to optimize them out.

This also fixes some style problems to make this patch match the version
in the packages folder.

This is copied from this commit to the mtd-utils we pack into the image:
56d0dd56e9c6efa79 ("mtd-utils: Mark some lzma functions as static")

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/zlib: move zlib build to tools
Hauke Mehrtens [Sun, 15 Apr 2018 17:24:02 +0000 (19:24 +0200)]
tools/zlib: move zlib build to tools

This allows us to link the other tools against our libz and we do not
need the system zlib any more.

Only the static linked library is copied to the staging directory so we
have a statically linked library on all systems and not only on Linux.
This also adds the new dependencies of the packages which are depending
on zlib.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agonetifd: update to latest git HEAD (Coverity fixes)
Hans Dedecker [Fri, 27 Apr 2018 19:34:34 +0000 (21:34 +0200)]
netifd: update to latest git HEAD (Coverity fixes)

56ceced interface-ip: remove superfluous iface check in interface_ip_set_enabled()
4f4a8c0 system-linux: fix strncpy bounds

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoarm64: enable harden branch predictor
Mathias Kresin [Thu, 26 Apr 2018 20:25:11 +0000 (22:25 +0200)]
arm64: enable harden branch predictor

Enable the harden branch predictor for arm64 as it is recommend.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokernel: add missing config symbols
Mathias Kresin [Thu, 26 Apr 2018 19:16:12 +0000 (21:16 +0200)]
kernel: add missing config symbols

The harden branch predictor was backported for arm64 with 4.9.92-96.

Fixes: 9aa196e0f260 ("kernel: bump 4.9 to bump 4.9.96")
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agobuild: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE
Felix Fietkau [Wed, 25 Apr 2018 09:52:20 +0000 (11:52 +0200)]
build: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE

Also work around an issue where git would store the modified workdir in
the submodule git config files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoscripts/feeds: add support for git feeds with submodules
Felix Fietkau [Wed, 25 Apr 2018 09:31:48 +0000 (11:31 +0200)]
scripts/feeds: add support for git feeds with submodules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm47xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:04 +0000 (09:56 +0200)]
brcm47xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm63xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:55:48 +0000 (09:55 +0200)]
brcm63xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobcm53xx: drop linux 4.4 and 4.9 support
Felix Fietkau [Mon, 9 Apr 2018 07:50:23 +0000 (09:50 +0200)]
bcm53xx: drop linux 4.4 and 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm2708: Add support for raspberry pi 3 b+.
Christo Nedev [Thu, 26 Apr 2018 16:10:15 +0000 (16:10 +0000)]
brcm2708: Add support for raspberry pi 3 b+.

Signed-off-by: Christo Nedev <christo.nedev@me.com>
6 years agokernel: Fix data corruption on some mips devices.
Rosen Penev [Fri, 27 Apr 2018 00:11:42 +0000 (17:11 -0700)]
kernel: Fix data corruption on some mips devices.

This is mainly a bug fix for multi-core MIPS systems where L1 caches besides the primary do not get flushed.

The most obvious problem is data corruption on SATA and USB devices where read requests are typically larger than the cacheline size.

This may also fix ar71xx systems that suffer from similar data corruption but I have not tested if it does.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoiftop: bump to latest
Kevin Darbyshire-Bryant [Sun, 22 Apr 2018 09:19:40 +0000 (09:19 +0000)]
iftop: bump to latest

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.
Choose first running interface, rather than first "up" interface (Redhat #1403025)

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Matthias Schiffer [Thu, 26 Apr 2018 18:04:48 +0000 (20:04 +0200)]
ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache

Some Ubiquiti U-boot versions, in particular the "U-Boot 1.1.4.2-s956
(Jun 10 2015 - 10:54:50)" found with AirOS 5.6, do not correctly flush the
caches for the whole kernel address range after decompressing the kernel
image, leading to hard to debug boot failures, depending on kernel version
and configuration.

As a workaround, prepend the relocate-kernels loader, which will invalidate
the caches after moving the kernel to the correct load address.

Reported-by: Andreas Ziegler <dev@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoscripts: bundle-libraries: fix build on OS X (FS#1493)
Jo-Philipp Wich [Thu, 26 Apr 2018 14:04:37 +0000 (16:04 +0200)]
scripts: bundle-libraries: fix build on OS X (FS#1493)

This allegedly fixes compilation of the library bundler preload library on
Apple OS X. The resulting executables have not been runtime tested due to a
lack of suitable test hardware.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agotoolchain/binutils: Remove old patches
Daniel Engberg [Tue, 17 Apr 2018 20:23:11 +0000 (22:23 +0200)]
toolchain/binutils: Remove old patches

Remove patches for arc-2016.09
Commit https://github.com/openwrt/openwrt/commit/8647f4f018e4dee663b65948d75105fae7bb3cdc
made these patches obsolete

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotoolchain/binutils: completely remove 2.28 support
Hans Dedecker [Thu, 26 Apr 2018 08:33:31 +0000 (10:33 +0200)]
toolchain/binutils: completely remove 2.28 support

Commit 15e963915963cda515311531b182b9e0c52f35a0 removed support for
binutils version 2.28 but did not remove it as selectable item
from Binutils Version; let's remove this leftover as well.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agokernel: bump 4.14 to 4.14.36
Koen Vandeputte [Tue, 24 Apr 2018 14:59:36 +0000 (16:59 +0200)]
kernel: bump 4.14 to 4.14.36

Refreshed all patches.

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

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092
CVE-2018-1094
CVE-2018-1095

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
6 years agokernel: bump 4.9 to 4.9.96
Kevin Darbyshire-Bryant [Tue, 24 Apr 2018 12:19:43 +0000 (12:19 +0000)]
kernel: bump 4.9 to 4.9.96

Refresh patches, following required reworking:

ar71xx/patches-4.9/930-chipidea-pullup.patch
layerscape/patches-4.9/302-dts-support-layercape.patch
sunxi/patches-4.9/0052-stmmac-form-4-12.patch

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092

Tested on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Arjen de Korte <build+openwrt@de-korte.org>
6 years agouboot-envtools: add support for ESPRESSObin and MACCHIATObin
Damir Samardzic [Tue, 24 Apr 2018 06:25:21 +0000 (08:25 +0200)]
uboot-envtools: add support for ESPRESSObin and MACCHIATObin

Added for convenience. These boards can be used as dev boards running
various operating systems from different media, and this simplifies work
with U-Boot environment.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
6 years agomvebu: cortexa72: enable Marvell 10G PHY by default
Damir Samardzic [Mon, 23 Apr 2018 08:11:04 +0000 (10:11 +0200)]
mvebu: cortexa72: enable Marvell 10G PHY by default

This one enables 10 GbE ports on MACCHIATObin.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
6 years agoramips: fix mt7628 eval board pinmux
Mathias Kresin [Tue, 24 Apr 2018 18:18:48 +0000 (20:18 +0200)]
ramips: fix mt7628 eval board pinmux

There is no pinmux group "jtag" for mt7628 and the pinmux driver fails
to load due to the use of the not existing group.

Fixes: FS#1515
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: create image for mt7628 evb board
Mathias Kresin [Mon, 23 Apr 2018 17:36:02 +0000 (19:36 +0200)]
ramips: create image for mt7628 evb board

The image for the EVB board got lost with the merge of the mt7628 and
mt7688 subtargets.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agofirmware-utils: tplink-safeloader: increase RE350 kernel size
Alex Maclean [Mon, 23 Apr 2018 17:36:54 +0000 (18:36 +0100)]
firmware-utils: tplink-safeloader: increase RE350 kernel size

4.14 increased kernel size, so grow the kernel partition by 128K to compensate.

Fixes FS#1479.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
6 years agoramips: use patch-dtb for F5D8235 V1
Tobias Wolf [Sun, 22 Apr 2018 17:34:57 +0000 (19:34 +0200)]
ramips: use patch-dtb for F5D8235 V1

The old DTB method (OWRTDTB) is not recognized by the boot process
anymore with 4.9/4.14.

This patch reuses KERNEL_DTB to get a valid DTB applied to the kernel
image.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
6 years agokernel: fix usb interface on 3G dwm-158 modem
Giuseppe Lippolis [Fri, 20 Apr 2018 17:00:33 +0000 (19:00 +0200)]
kernel: fix usb interface on 3G dwm-158 modem

The current option driver binds to the usb interface 2,3,4,5.
But the interface 4 and 5 doesn't answer to the AT commands.
On the new openwrt configuration the wwan script select the 5th
interface as control interface, failing to establish the
3G connection.

Backport the fix for the problem.

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
6 years agoipq40xx: add support for OpenMesh A62
Sven Eckelmann [Wed, 9 Aug 2017 11:52:07 +0000 (13:52 +0200)]
ipq40xx: add support for OpenMesh A62

* QCA IPQ4019
* 256 MB of RAM
* 32 MB of SPI NOR flash (s25fl256s1)
  - 2x 15 MB available; but one of the 15 MB regions is the recovery image
* 2T2R 2.4 GHz
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=20,variant=OM-A62
* 2T2R 5 GHz (channel 36-64)
  - QCA9888 hw2.0 (PCI)
  - requires special BDF in QCA9888/hw2.0/board-2.bin
    bus=pci,bmi-chip-id=0,bmi-board-id=16,variant=OM-A62
* 2T2R 5 GHz (channel 100-165)
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=21,variant=OM-A62
* multi-color LED (controlled via red/green/blue GPIOs)
* 1x button (reset; kmod-input-gpio-keys compatible)
* external watchdog
  - triggered GPIO
* 1x USB (xHCI)
* TTL pins are on board (arrow points to VCC, then follows: GND, TX, RX)
* 2x gigabit ethernet
  - phy@mdio3:
    + Label: Ethernet 1
    + gmac0 (ethaddr) in original firmware
    + 802.3at POE+
  - phy@mdio4:
    + Label: Ethernet 2
    + gmac1 (eth1addr) in original firmware
    + 18-24V passive POE (mode B)
* powered only via POE

The tool ap51-flash (https://github.com/ap51-flash/ap51-flash) should be
used to transfer the factory image to the u-boot when the device boots up.

The initramfs image can be started using

  setenv bootargs 'loglevel=8 earlycon=msm_serial_dm,0x78af000 console=ttyMSM0,115200 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(0:custom),64k(0:KEYS),15552k(inactive),15552k(inactive2)'
  tftpboot 0x84000000 openwrt-ipq40xx-openmesh_a62-initramfs-fit-uImage.itb
  set fdt_high 0x85000000
  bootm 0x84000000

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agoipq40xx: fix gpio-hog related boot issues
Sven Eckelmann [Mon, 16 Apr 2018 11:51:15 +0000 (13:51 +0200)]
ipq40xx: fix gpio-hog related boot issues

The pinctrl initialization fails with the MSM pinctrl code and gpio-hogs
because either the gpio ranges are not yet initialized (missing gpio-range
in DT) or that the msm driver unconditionally tries to re-initializes the
ranges (gpio-range in DT).

To allow gpio-hogs and similar early-boot gpio code, the gpio-ranges must
be in the device tree and the pinctrl-msm code must check whether the range
was already initialized by the DT.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
[drop changes to unrelated dtsi files, refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoipq-wifi: drop custom board-2.bins
Sven Eckelmann [Thu, 19 Apr 2018 07:12:22 +0000 (09:12 +0200)]
ipq-wifi: drop custom board-2.bins

The BDFs for all boards were upstreamed to the ath10k-firmware
repository and are now part of ath10k-firmware 2018-04-19.

We switched to the upstream board-2.bin, hence the files can be removed
here.

Keep the ipq-wifi package in case new boards are added. It might take
some time till board-2.bins send upstream are merged.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agoipq40xx: use upstream board-2.bin
Sven Eckelmann [Thu, 19 Apr 2018 07:12:22 +0000 (09:12 +0200)]
ipq40xx: use upstream board-2.bin

The BDFs for all boards were upstreamed to the ath10k-firmware
repository and are now part of ath10k-firmware 2018-04-19.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agofirmware: ath10k-firmware: update to 2018-04-19
Sven Eckelmann [Thu, 19 Apr 2018 06:59:48 +0000 (08:59 +0200)]
firmware: ath10k-firmware: update to 2018-04-19

* introduces the BDFs in /lib/firmware/ath10k/QCA4019/hw1.0/board-2.bin
  for:
  - 8devices Jalapeno
  - Asus RT-AC58U
  - AVM FRITZ!Box 4040
  - GL.iNet GL-B1300
  - Meraki MR33
  - Netgear EX6100v2
  - Netgear EX6150v2
  - OpenMesh A62
* introduces the BDFs in /lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
  - OpenMesh A62
* adds new firmware for QCA6174 hw3.0
  - firmware-6.bin_RM.4.4.1.c1-00038-QCARMSWP-1
  - firmware-6.bin_RM.4.4.1.c1-00041-QCARMSWP-1
* various undocumented BDF updates to:
  - QCA4019 hw1.0:
    + bus=ahb,bmi-chip-id=0,bmi-board-id=16
    + bus=ahb,bmi-chip-id=0,bmi-board-id=17
    + bus=ahb,bmi-chip-id=0,bmi-board-id=19
    + bus=ahb,bmi-chip-id=0,bmi-board-id=20
    + bus=ahb,bmi-chip-id=0,bmi-board-id=21
    + bus=ahb,bmi-chip-id=0,bmi-board-id=29
    + bus=ahb,bmi-chip-id=0,bmi-board-id=30
  - QCA9888 hw2.0:
    + bus=pci,bmi-chip-id=0,bmi-board-id=16
    + bus=pci,bmi-chip-id=0,bmi-board-id=17
    + bus=pci,bmi-chip-id=0,bmi-board-id=18
    + bus=pci,bmi-chip-id=0,bmi-board-id=23
    + bus=pci,bmi-chip-id=0,bmi-board-id=24
    + bus=pci,bmi-chip-id=0,bmi-board-id=25
  - QCA9984 hw1.0:
    + bus=pci,bmi-chip-id=0,bmi-board-id=1
    + bus=pci,bmi-chip-id=0,bmi-board-id=3
    + bus=pci,bmi-chip-id=0,bmi-board-id=5
    + bus=pci,bmi-chip-id=0,bmi-board-id=6
    + bus=pci,bmi-chip-id=0,bmi-board-id=7
    + bus=pci,bmi-chip-id=0,bmi-board-id=8

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agoodhcpd: update to latest git HEAD
Hans Dedecker [Mon, 23 Apr 2018 19:39:16 +0000 (21:39 +0200)]
odhcpd: update to latest git HEAD

4136529 dhcpv6-ia: keep tentative assignments alive for a short time
200cc8f dhcpv6-ia: make assignment lookup more strict

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agobrcm47xx: backport upstream patches for Netgear WNR1000 V3
Rafał Miłecki [Mon, 23 Apr 2018 11:33:09 +0000 (13:33 +0200)]
brcm47xx: backport upstream patches for Netgear WNR1000 V3

This includes fix for reading NVRAM content.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agomac80211: update patch to read ath10k variant from DT
Thomas Hebb [Fri, 12 Jan 2018 20:59:25 +0000 (15:59 -0500)]
mac80211: update patch to read ath10k variant from DT

This patch was revised upstream before being merged, and OpenWrt's copy
was never updated to reflect the revision.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
[refreshed patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoipq40xx: ex61x0v2: Disable unused GMACs
Thomas Hebb [Thu, 19 Apr 2018 18:34:56 +0000 (14:34 -0400)]
ipq40xx: ex61x0v2: Disable unused GMACs

These devices have only one ethernet port. It doesn't make sense to
expose the unused GMACs as separate network devices.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
6 years agoipq40xx: Move reserved-memory DT to qcom-ipq4019.dtsi
Sven Eckelmann [Wed, 18 Apr 2018 07:48:51 +0000 (09:48 +0200)]
ipq40xx: Move reserved-memory DT to qcom-ipq4019.dtsi

The tz and smem reserved-memory information handled in the upstream Linux
sources by the SoC specific dtsi and not by the the boards dts. Using the
same approach in OpenWrt avoids unneccessary duplication.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agoipq40xx: Remove unused reserved-memory nodes
Sven Eckelmann [Tue, 17 Apr 2018 12:31:53 +0000 (14:31 +0200)]
ipq40xx: Remove unused reserved-memory nodes

The reserved-memory regions are mostly undocumented by QCA and are named
very unspecific in the QSDK device trees. It was tried to clean them up by
commit 71ed9f10a33e ("ipq40xx: Use detailed reserved memory for A42") and
similar changes.

The features which require these regions were mostly unknown but
Senthilkumar N L <snlakshm@qti.qualcomm.com> and Sricharan Ramabadhran
<srichara@qti.qualcomm.com> provided some more insight in some of them:

* crash dump feature
  - a couple of regions used when 'qca,scm_restart_reason' dt node has the
    value 'dload_status' not set to 1
    + apps_bl <0x87000000 0x400000>
    + sbl <0x87400000 0x100000>
    + cnss_debug <0x87400000 0x100000>
    + cpu_context_dump <0x87b00000 0x080000>
  - required driver not available in Linux
  - safe to remove
* QSEE app execution
  - region tz_apps <0x87b80000 0x280000>
  - required driver not available in Linux
  - safe to remove
* communication with TZ/QSEE
  - region smem <0x87b80000 0x280000>
  - driver changes not yet upstreamed
  - must not be removed because any access can crash kernel/program
* trustzone (QSEE) private memory
  - region tz <0x87e80000 0x180000>
  - must not be removed because any access can crash kernel/program

Removing the unnecessary regions saves some kilobyte of reserved-memory and
cleans up the device tree:

* 2560 KiB
  - 8devices Jalapeno
  - AVM FRITZ!Box 4040
  - Compex WPJ428
  - Meraki MR33 Access Point
  - OpenMesh A42
* 14336 KiB
  - GL.iNet GL-B1300
  - Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agobuild: consolidate fake uImage header build commands
Mathias Kresin [Fri, 20 Apr 2018 04:30:46 +0000 (06:30 +0200)]
build: consolidate fake uImage header build commands

Merge the two existing functions and use a parameter for the type
header field.

It updates the syntax of the former mpc85xx fake ramdisk header
command to be compatible with mkimage from u-boot 2018.03 and fixes the
build error spotted by the build bot.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agowireguard: bump to 20180420
Kevin Darbyshire-Bryant [Fri, 20 Apr 2018 10:14:29 +0000 (10:14 +0000)]
wireguard: bump to 20180420

7cc2668 version: bump snapshot
860c7c7 poly1305: do not place constants in different sections
5f1e4ca compat: remove unused dev_recursion_level backport
7e4b991 blake2s: remove unused helper
13225fc send: simplify skb_padding with nice macro
a1525bf send: account for route-based MTU
bbb2fde wg-quick: account for specified fwmark in auto routing mode
c452105 qemu: bump default version
dbe5223 version: bump snapshot
1d3ef31 chacha20poly1305: put magic constant behind macro
cdc164c chacha20poly1305: add self tests from wycheproof
1060e54 curve25519: add self tests from wycheproof
0e1e127 wg-quick.8: fix typo
2b06b8e curve25519: precomp const correctness
8102664 curve25519: memzero in batches
1f54c43 curve25519: use cmov instead of xor for cswap
fa5326f curve25519: use precomp implementation instead of sandy2x
9b19328 compat: support OpenSUSE 15
3102d28 compat: silence warning on frankenkernels
8f64c61 compat: stable kernels are now receiving b87b619
62127f9 wg-quick: hide errors on save

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agohostapd: fix encrypted mesh channel settings
Daniel Golle [Fri, 20 Apr 2018 05:41:03 +0000 (07:41 +0200)]
hostapd: fix encrypted mesh channel settings

Import two patches from Peter Oh to allow setting channel
bandwidth in the way it already works for managed interfaces.
This fixes mesh interfaces on 802.11ac devices always coming up in
VHT80 mode.

Add a patch to allow HT40 also on 2.4GHz if noscan option is set, which
also skips secondary channel scan just like noscan works in AP mode.

This time also make sure to add all files to the patch before
committing it...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agorpcd: update to latest HEAD
Jo-Philipp Wich [Fri, 20 Apr 2018 12:01:32 +0000 (14:01 +0200)]
rpcd: update to latest HEAD

6994c87 uci: fix session delta isolation
f0f6f81 session: remove redundant key attribute to rpc_session_set()
3d400c7 session: support reclaiming pending apply session
eb09f3a session: ignore non-string username attribute upon restore
edd37f8 uci: add rpc_uci_replace_savedir() helper
2423162 uci: switch to proper save directory on apply/rollback
66a9bad uci: fix memory leak in rpc_uci_apply_timeout()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agobuild: pass HOSTCXX to host builds as CXX
Felix Fietkau [Fri, 20 Apr 2018 11:04:41 +0000 (13:04 +0200)]
build: pass HOSTCXX to host builds as CXX

Fixes cmake build on some systems that also have an older clang++

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoRevert "hostapd: fix encrypted mesh channel settings"
Felix Fietkau [Fri, 20 Apr 2018 08:35:51 +0000 (10:35 +0200)]
Revert "hostapd: fix encrypted mesh channel settings"

This reverts commit 7f52919a2f2894125b4dca611eb2d30181af7e0b, which is
currently breaking the builds and needs to be reworked

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomtd: fix erase handling with partition offset on write
Felix Fietkau [Fri, 20 Apr 2018 08:02:28 +0000 (10:02 +0200)]
mtd: fix erase handling with partition offset on write

When a partition offset is given, it is used in an lseek call, which
affects write, but not erase. Add it to the offset for erase calls as
well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agouboot-envtools: remove makefile duplication for supported targets
Felix Fietkau [Thu, 19 Apr 2018 14:26:39 +0000 (16:26 +0200)]
uboot-envtools: remove makefile duplication for supported targets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomediatek: disable ubifs
Felix Fietkau [Thu, 19 Apr 2018 13:37:59 +0000 (15:37 +0200)]
mediatek: disable ubifs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomediatek: remove 4.9 kernel config
Felix Fietkau [Thu, 19 Apr 2018 13:37:22 +0000 (15:37 +0200)]
mediatek: remove 4.9 kernel config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agohostapd: fix encrypted mesh channel settings
Daniel Golle [Fri, 20 Apr 2018 05:41:03 +0000 (07:41 +0200)]
hostapd: fix encrypted mesh channel settings

Import two patches from Peter Oh to allow setting channel
bandwidth in the way it already works for managed interfaces.
This fixes mesh interfaces on 802.11ac devices always coming up in
VHT80 mode.

Add a patch to allow HT40 also on 2.4GHz if noscan option is set, which
also skips secondary channel scan just like noscan works in AP mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agomac80211: pass down noscan to wpa_supplicant
Daniel Golle [Fri, 20 Apr 2018 05:39:10 +0000 (07:39 +0200)]
mac80211: pass down noscan to wpa_supplicant

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agonetifd: update to latest git HEAD
Daniel Golle [Fri, 20 Apr 2018 05:36:36 +0000 (07:36 +0200)]
netifd: update to latest git HEAD

b3dca7b wireless: include noscan option in common wdev vars

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agobuild: fix uImage fake header command
Mathias Kresin [Thu, 19 Apr 2018 17:09:11 +0000 (19:09 +0200)]
build: fix uImage fake header command

Use a syntax compatible with mkimage from u-boot 2018.03 to fix the
build errors spotted by the build bot.

The images are binary identical to the ones generated with mkimage from
u-boot 2014.10.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoodhcpd: update to latest git HEAD (FS#1457)
Hans Dedecker [Thu, 19 Apr 2018 13:30:37 +0000 (15:30 +0200)]
odhcpd: update to latest git HEAD (FS#1457)

dcfc06a router: fix managed address configuration setting

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomac80211: join 5GHz checks
Leon M. George [Wed, 10 Jan 2018 16:20:22 +0000 (17:20 +0100)]
mac80211: join 5GHz checks

Before this commit, devices supporting both 2.4GHz and 5GHz would be
configured for 2.4GHz by default - unless they have VHT capabilities.

With this commit, channel 36 is only set when the frequency is supported.
VHT isn't checked unless that is the case.

Signed-off-by: Leon M. George <leon@georgemail.eu>
6 years agotoolchain/glibc: unset LD_LIBRARY_PATH
Hyeonsik Song [Mon, 5 Mar 2018 07:57:45 +0000 (16:57 +0900)]
toolchain/glibc: unset LD_LIBRARY_PATH

Fix build error when use glibc

Signed-off-by: Hyeonsik Song <blogcin@naver.com>
6 years agonetwork/uqmi: pipe the output off qmi_wds_stop to /dev/null
Florian Eckert [Fri, 8 Sep 2017 11:11:07 +0000 (13:11 +0200)]
network/uqmi: pipe the output off qmi_wds_stop to /dev/null

Pipe uqmi output from qmi_wds_stop function into /dev/null.
This will supress the following output in proto teardown.

netifd: wwan (x): "No effect"
netifd: wwan (x): Command failed: Permission denied

Signed-off-by: Florian Eckert <fe@dev.tdt.de>