openwrt/staging/ansuel.git
7 years agoar71xx: mach-rbspi: fix 74x164 support
Thibaut VARENE [Wed, 1 Nov 2017 11:06:20 +0000 (12:06 +0100)]
ar71xx: mach-rbspi: fix 74x164 support

The platform data was missing the num_registers element which is now
mandatory in linux 4.9

Without this patch, the gpio probing would fail with:
gpio gpiochip1: (74x164): tried to insert a GPIO chip with zero lines

Fixes: #1106
Tested-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoipq806x: nbg6817: sync MAC addresses to the upstream values
Stefan Lippers-Hollmann [Mon, 30 Oct 2017 03:28:34 +0000 (04:28 +0100)]
ipq806x: nbg6817: sync MAC addresses to the upstream values

The ZyXEL NBG6817 calculates all MAC addresses based on the ethaddr
value stored in the U-Boot environment (0:APPSBLENV). No MAC addresses
are stored in the ART partition and the generated MAC addresses for the
wlan interfaces alternate randomly between 12:34:56:78:90:12 and
00:03:7f:12:34:56.

interface   new/ OEM MAC old MAC

wlan-2.4g (phy1): ethaddr undefined
wlan-5g   (phy0): ethaddr + 1 undefined
lan             : ethaddr + 2 ethaddr
wan             : ethaddr + 3 ethaddr + 1

This patch defines stable MAC addresses for the wlan interfaces for
the first time instead of generating them at random. The previously
defined values for lan/ wan are changed to follow the settings of the
OEM firmware.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
7 years agoipq806x: nbg6817: add kmod-fs-ext4 to device packages
Stefan Lippers-Hollmann [Thu, 19 Oct 2017 19:40:26 +0000 (21:40 +0200)]
ipq806x: nbg6817: add kmod-fs-ext4 to device packages

The ZyXEL NBG6817 uses an eMMC flash for the rootfs, which is split
into the readonly squashfs and ext4 for the overlay. This adds the
required package to the device packages to allow mounting the overlay
by default.

/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/loop0 on /overlay type ext4 (rw,noatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
mountd(pid1040) on /tmp/run/blockd type autofs (rw,relatime,fd=7,pgrp=1,timeout=30,minproto=5,maxproto=5,indirect)

Before this commit, the ext4 based overlayfs could not be mounted,
which left only the tmpfs based/ volatile  emergency overlay in place.

Fixes: https://forum.lede-project.org/t/zyxel-nbg6817-flashing-from-oem/768
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
7 years agoltq-atm: add missing dependency to kmod-ltq-adsl-*-mei
Mathias Kresin [Thu, 2 Nov 2017 07:54:37 +0000 (08:54 +0100)]
ltq-atm: add missing dependency to kmod-ltq-adsl-*-mei

Commit 2e496876c60 fixed the generation of the depends line for external
kernel modules which makes it possible for the build system to
automatically detect this missing dependency.

This fixes the packaging of kmod-ltq-atm for the ar9, xway and
xway-legacy subtarget.

Fixes: FS#1124
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobuild: fix another regression in append-dtb fix
Felix Fietkau [Fri, 3 Nov 2017 15:08:12 +0000 (16:08 +0100)]
build: fix another regression in append-dtb fix

Filter out duplicate generated code for the same dts files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix regression in append-dtb fix
Felix Fietkau [Fri, 3 Nov 2017 09:46:24 +0000 (10:46 +0100)]
build: fix regression in append-dtb fix

Strip whitespace from DTS directory
Put the dependency earlier in the chain to avoid make errors

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouclient: update to the latest version, fixes fetch of multiple files
Felix Fietkau [Thu, 2 Nov 2017 21:53:12 +0000 (22:53 +0100)]
uclient: update to the latest version, fixes fetch of multiple files

4b87d83 uclient-fetch: fix overloading of output_file variable

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agonetifd: fix dns and domain variables pollution in dhcp.script
Tero Jänkä [Thu, 27 Apr 2017 17:34:43 +0000 (20:34 +0300)]
netifd: fix dns and domain variables pollution in dhcp.script

Unmodified dns and domain variables could be needed in user script (/etc/udhcpc.user).

Signed-off-by: Tero Jänkä <tero.janka@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> (cleanup)
7 years agobuild: allow calling append-dtb from image build commands
Felix Fietkau [Thu, 2 Nov 2017 12:28:26 +0000 (13:28 +0100)]
build: allow calling append-dtb from image build commands

mpc85xx uses this for firmware image files, since the dtb data is not
directly part of the kernel image. This causes build failures in the
image builder.

Fix this by adding a separate build step that runs this call earlier,
reusing the generated file for any calls from kernel or image build
commands.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogcc: remove support for libgcj/java
Felix Fietkau [Thu, 2 Nov 2017 13:16:20 +0000 (14:16 +0100)]
gcc: remove support for libgcj/java

It has been removed in gcc 7

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoinclude/toplevel.mk: Add xconfig target
Alif M. Ahmad [Sun, 23 Jul 2017 03:08:56 +0000 (03:08 +0000)]
include/toplevel.mk: Add xconfig target

Add xconfig target to include/toplevel.mk, so that ``make xconfig`` can
be invoked from $TOPDIR to use Qt based configuration tool to prepare
.config file.

The qconf related sources are taken from linux 4.9.13 archive.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoscripts/config: add qconf files to .gitignore
Alif M. Ahmad [Sun, 23 Jul 2017 03:08:47 +0000 (03:08 +0000)]
scripts/config: add qconf files to .gitignore

This commit adds qconf related files to .gitignore.
The files to be tracked are qconf.cc, qconf.h, and images.c.
The files to be ignored are qconf*.o, qconf*, qconf.moc, and
.tmp_qtcheck.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoscripts/config: Add qconf target to Makefile
Alif M. Ahmad [Sun, 23 Jul 2017 03:08:17 +0000 (03:08 +0000)]
scripts/config: Add qconf target to Makefile

qconf is kconfig UI utilizing QT toolkit. This makes it possible to use
graphical interface interaction to configure LEDE build target.

This commit adds qconf target to ./script/config/Makefile to be used by
toplevel ``make xconfig`` later.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoscripts/config: add -DKBUILD_NO_NLS to CXXFLAGS
Felix Fietkau [Sun, 29 Oct 2017 16:15:49 +0000 (17:15 +0100)]
scripts/config: add -DKBUILD_NO_NLS to CXXFLAGS

Preparation for adding C++ code which needs the same flag

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoscripts/config: import qconf
Alif M. Ahmad [Sun, 23 Jul 2017 03:08:04 +0000 (03:08 +0000)]
scripts/config: import qconf

Import qconf.cc, qconf.h, and images.c from linux kernel 4.9.13 archive.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoramips: add support for switching between 3-byte and 4-byte addressing on w25q256...
Felix Fietkau [Thu, 20 Jul 2017 10:57:44 +0000 (12:57 +0200)]
ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash

On some devices the flash chip needs to be in 3-byte addressing mode during
reboot, otherwise the boot loader will fail to start.
This mode however does not allow regular reads/writes onto the upper 16M
half. W25Q256 has separate read commands for reading from >16M, however
it does not have any separate write commands.
This patch changes the code to leave the chip in 3-byte mode most of the
time and only switch during erase/write cycles that go to >16M
addresses.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agonghttp2: switch to release tarball
Hans Dedecker [Tue, 31 Oct 2017 17:25:14 +0000 (18:25 +0100)]
nghttp2: switch to release tarball

Switch from git to xz release tarball as there's no good reason to keep
using git when release tarballs are provided.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoopenssl: Enable assembler optimizations for aarch64
Baptiste Jonglez [Fri, 27 Oct 2017 18:45:53 +0000 (20:45 +0200)]
openssl: Enable assembler optimizations for aarch64

OpenSSL is built with the generic linux settings for most targets,
including aarch64.  These generic settings are designed for 32-bit CPU and
provide no assembler optmization: this is widely suboptimal for aarch64.

This patch simply switches to the aarch64 settings that are already
available in OpenSSL.

Here is the output of "openssl speed" before the optimization, with
"(...)" representing build flags that didn't change:

    OpenSSL 1.0.2l  25 May 2017
    options:bn(64,32) rc4(ptr,char) des(idx,cisc,2,int) aes(partial) blowfish(ptr)
    compiler: aarch64-openwrt-linux-musl-gcc  (...)

And after this patch, OpenSSL uses 64 bit mode and assembler optimizations:

    OpenSSL 1.0.2l  25 May 2017
    options:bn(64,64) rc4(ptr,char) des(idx,cisc,2,int) aes(partial) blowfish(ptr)
    compiler: aarch64-openwrt-linux-musl-gcc  (...)  -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM

Here are some benchmarks on a pine64+ running latest LEDE master r5142-20d363aed3:

    before# openssl speed sha aes blowfish
    The 'numbers' are in 1000s of bytes per second processed.
    type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
    sha1              3918.89k     9982.43k    19148.03k    24933.03k    27325.78k
    sha256            4604.51k    10240.64k    17472.51k    21355.18k    22801.07k
    sha512            3662.19k    14539.41k    21443.16k    29544.11k    33177.60k
    blowfish cbc     16266.63k    16940.86k    17176.92k    17237.33k    17252.35k
    aes-128 cbc      19712.95k    21447.40k    22091.09k    22258.35k    22304.09k
    aes-192 cbc      17680.12k    19064.47k    19572.14k    19703.13k    19737.26k
    aes-256 cbc      15986.67k    17132.48k    17537.28k    17657.17k    17689.26k

    after# openssl speed sha aes blowfish
    type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
    sha1              6770.87k    26172.80k    86878.38k   205649.58k   345978.20k
    sha256           20913.93k    74663.85k   184658.18k   290891.09k   351032.66k
    sha512            7633.10k    30110.14k    50083.24k    71883.43k    82485.25k
    blowfish cbc     16224.93k    16933.55k    17173.76k    17234.94k    17252.35k
    aes-128 cbc      19425.74k    21193.31k    22065.74k    22304.77k    22380.54k
    aes-192 cbc      17452.29k    18883.84k    19536.90k    19741.70k    19800.06k
    aes-256 cbc      15815.89k    17003.01k    17530.03k    17695.40k    17746.60k

For some reason AES and blowfish do not benefit, but SHA performance
improves between 1.7x and 15x.  SHA256 clearly benefits the most from the
optimization (4.5x on small blocks, 15x on large blocks!).

When using EVP (with "openssl speed -evp <algo>"):

    # Before, EVP mode
    type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
    sha1              3824.46k    10049.66k    19170.56k    24947.03k    27325.78k
    sha256            3368.33k     8511.15k    16061.44k    20772.52k    22721.88k
    sha512            2845.23k    11381.57k    19467.69k    28512.26k    33008.30k
    bf-cbc           15146.74k    16623.83k    17092.01k    17211.39k    17249.62k
    aes-128-cbc      17873.03k    20870.61k    21933.65k    22216.36k    22301.35k
    aes-192-cbc      16184.18k    18607.15k    19447.13k    19670.02k    19737.26k
    aes-256-cbc      14774.06k    16757.25k    17457.58k    17639.42k    17686.53k

    # After, EVP mode
    type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
    sha1              7056.97k    27142.10k    89515.86k   209155.41k   347419.99k
    sha256            7745.70k    29750.06k    95341.48k   211001.69k   332376.75k
    sha512            4550.47k    18086.06k    39997.10k    65880.75k    81431.21k
    bf-cbc           15129.20k    16619.03k    17090.56k    17212.76k    17246.89k
    aes-128-cbc      99619.74k   269032.34k   450214.23k   567353.00k   613933.06k
    aes-192-cbc      93180.74k   231017.79k   361766.66k   433671.51k   461731.16k
    aes-256-cbc      89343.23k   209858.58k   310160.04k   362234.88k   380878.85k

Blowfish does not seem to have assembler optimization at all, and SHA
still benefits (between 1.6x and 14.5x) but is generally slower than in
non-EVP mode.

However, AES performance is improved between 5.5x and 27.5x, which is
really impressive!  For aes-128-cbc on large blocks, a core i7-6600U
@2.60GHz is only twice as fast...

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
7 years agoacx-mac80211: allow compilation on 4.9
Jonas Gorski [Sun, 29 Oct 2017 22:27:33 +0000 (23:27 +0100)]
acx-mac80211: allow compilation on 4.9

acx-mac80211 compiles fine with 4.9, so no reason to not allow it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7: add kernel 4.9 support
Jonas Gorski [Thu, 12 Oct 2017 08:50:08 +0000 (10:50 +0200)]
ar7: add kernel 4.9 support

Compile and run tested on WAG354Gv1.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7: drop unused 4.1 support
Jonas Gorski [Sun, 29 Oct 2017 22:28:39 +0000 (23:28 +0100)]
ar7: drop unused 4.1 support

Kernel 4.1 isn't support anymore anyway.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7: unbreak serial console
Jonas Gorski [Sun, 29 Oct 2017 22:12:20 +0000 (23:12 +0100)]
ar7: unbreak serial console

Serial output was broken since 3.16 for shared uarts between
kernel and login. Fix this by adding a fix sent upstream.

While at it, drop a useless patch that adds duplicate code.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7: remove gpio character device
Jonas Gorski [Thu, 12 Oct 2017 08:51:53 +0000 (10:51 +0200)]
ar7: remove gpio character device

There are no obvious users, and any out of tree users should convert to
one of the generic APIs.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7-atm: fix function signatures with expected ones
Jonas Gorski [Thu, 19 Oct 2017 13:47:41 +0000 (15:47 +0200)]
ar7-atm: fix function signatures with expected ones

Newer kernels treat differing signatures an error, not just a warning,
so fix the signatures to match.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7-atm: fixup proc fixes
Jonas Gorski [Fri, 13 Oct 2017 11:17:51 +0000 (13:17 +0200)]
ar7-atm: fixup proc fixes

They were incomplete, so fix them to properly update the function signatures
to what is expected.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar7-atm: drop LINUX_VERSION tests
Jonas Gorski [Fri, 13 Oct 2017 09:32:31 +0000 (11:32 +0200)]
ar7-atm: drop LINUX_VERSION tests

Minimum supported kernel is 3.18, so we don't need to test for anything
older. In addition, the API hasn't changed since then, so we don't need
to check for any kernel version at all.  This helps to keeps the amount
of changes more managable.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agocurl: bump to 7.56.1
Hans Dedecker [Sun, 29 Oct 2017 09:32:42 +0000 (10:32 +0100)]
curl: bump to 7.56.1

Refresh patches
Remove 320-curl-confopts.m4-fix-disable-threaded-resolver.patch as
integrated upstream

See https://curl.haxx.se/changes.html for the bugfixes in 7.56.0 and
7.56.1

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonghttp2: bump to 1.27.0
Hans Dedecker [Sun, 29 Oct 2017 21:59:31 +0000 (22:59 +0100)]
nghttp2: bump to 1.27.0

Changes in v1.27.0 :

build: Fixed accidental compiler flags concatenation for MSVC (Patch from LazyHamster) (GH-1029)
build: Reduce libxml2 version requirement to 2.6.26 (Patch from Mike Lothian) (GH-1020)
asio: Support for Windows / MinGW (Patch from Daniel Evers) (GH-1027)
h2load: Print out h2 header fields with --verbose option (GH-1015)
nghttpx: Send non-final response to HTTP/1.1 or HTTP/2 client only (GH-1016)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoltq-atm: Add missing dependency to kmod-ltq-adsl-ase-mei
Hauke Mehrtens [Sun, 29 Oct 2017 15:58:44 +0000 (16:58 +0100)]
ltq-atm: Add missing dependency to kmod-ltq-adsl-ase-mei

Commit 2e496876c60 fixed the generation of the depends line for external
kernel modules which makes it possible for the build system to
automatically detect this missing dependency. This fixes the build bot
build of the lantiq/aes target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobuild: use KERNEL_MAKE_FLAGS for kernel file compilations
Karl Vogel [Fri, 13 Oct 2017 09:10:03 +0000 (11:10 +0200)]
build: use KERNEL_MAKE_FLAGS for kernel file compilations

The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS.
Make use of this variable for kernel makefiles.

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
7 years agoadb: fix package description
Matt Mets [Fri, 27 Oct 2017 19:27:53 +0000 (03:27 +0800)]
adb: fix package description

Signed-off-by: Matt Mets <matt@blinkinlabs.com>
7 years agolayerscape: reverse changes to ndo_get_stats64
Mathew McBride [Tue, 24 Oct 2017 00:49:00 +0000 (11:49 +1100)]
layerscape: reverse changes to ndo_get_stats64

The NXP LSDK kernel backported changes for interface ndo_get_stats64
functions from mainline, this causes a compile error with
backports/mac80211, which expects the original 4.9 defintion.

As reversing the ndo_get_stats64 change signifcantly reduces the size of
patch 601, the patches that were aggregated into it have been
disaggregated.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
7 years agolayerscape: Remove netfilter and LZ4 config symbols
Mathew McBride [Fri, 13 Oct 2017 04:23:07 +0000 (15:23 +1100)]
layerscape: Remove netfilter and LZ4 config symbols

These conflict with the kmod packages (such as nf-netlink)

Signed-off-by: Mathew McBride <matt@traverse.com.au>
[Add same changes for arm8_32b subtarget and refresh config]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoarc770: mark as source-only
Hans Dedecker [Sat, 28 Oct 2017 11:42:28 +0000 (13:42 +0200)]
arc770: mark as source-only

Mark target arc770 as source-only as it has package compile issues
(e.g. iproute2) due to the usage of uClibc.
As a prerequisite to be included in future releases the arc770 target
needs to switch either to glibc or musl.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobuild: actually fix the creation of PKG_INFO_DIR
Jonas Gorski [Sat, 28 Oct 2017 09:57:39 +0000 (11:57 +0200)]
build: actually fix the creation of PKG_INFO_DIR

The creation was accidentally moved to the wrong hook, fix it by moving
it to the pre hook.

Fixes: e5e5c3f5fd38 ("build: ensure PKG_INFO_DIR exists before trying to use it")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agobuild: ensure PKG_INFO_DIR exists before trying to use it
Jonas Gorski [Sat, 28 Oct 2017 09:19:25 +0000 (11:19 +0200)]
build: ensure PKG_INFO_DIR exists before trying to use it

PKG_INFO_DIR is only created at the finish step of the first package
build, but kernel modules now use it at the start. Doing a parallel build
could cause a kernel module to be the first package, breaking the build.

Fix this by ensuring the directory exists.

Fixes: 2e496876c60c ("kernel: collect module symvers for external modules")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agomwlwifi: switch to AutoProbe
Jonas Gorski [Sun, 27 Aug 2017 18:03:58 +0000 (20:03 +0200)]
mwlwifi: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agomt76: switch to AutoProbe
Jonas Gorski [Mon, 24 Jul 2017 09:16:21 +0000 (11:16 +0200)]
mt76: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agomac80211: ath10k: switch to AutoProbe
Jonas Gorski [Mon, 24 Jul 2017 11:14:20 +0000 (13:14 +0200)]
mac80211: ath10k: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agobroadcom-wl: switch to AutoProbe
Jonas Gorski [Sun, 27 Aug 2017 18:01:51 +0000 (20:01 +0200)]
broadcom-wl: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agobroadcom-wl: reorder kmod build and pass EXTRA_VERSIONS
Jonas Gorski [Fri, 21 Jul 2017 14:23:06 +0000 (16:23 +0200)]
broadcom-wl: reorder kmod build and pass EXTRA_VERSIONS

Reoder the build to build the glue module first and pass the glue module's
Module.symvers to the wl driver builds.

This allows modpost to properly store a wl_glue dependency in the driver.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agobroadcom-wl: define module directories
Jonas Gorski [Fri, 21 Jul 2017 13:46:35 +0000 (15:46 +0200)]
broadcom-wl: define module directories

Define the module subdirs so our build system properly picks up the
Module.symvers.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoath10k-ct: switch to AutoProbe
Jonas Gorski [Mon, 24 Jul 2017 11:11:33 +0000 (13:11 +0200)]
ath10k-ct: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoath10k-ct: define module directories
Jonas Gorski [Fri, 21 Jul 2017 13:20:12 +0000 (15:20 +0200)]
ath10k-ct: define module directories

Define the module subdir so our buildsystem properly picks up the
Module.symvers.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoacx-mac80211: drop PKG_BUILD_DEPENDS
Jonas Gorski [Mon, 24 Jul 2017 11:12:54 +0000 (13:12 +0200)]
acx-mac80211: drop PKG_BUILD_DEPENDS

We already have a DEPENDS on mac80211, which should be enough to ensure
headers are available before build.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoacx-mac80211: switch to AutoProbe
Jonas Gorski [Mon, 24 Jul 2017 11:12:28 +0000 (13:12 +0200)]
acx-mac80211: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agokernel: collect module symvers for external modules
Jonas Gorski [Thu, 20 Jul 2017 20:34:54 +0000 (22:34 +0200)]
kernel: collect module symvers for external modules

Collect module symvers for all external modules to make them available
for modpost. This fixes dependencies for most external modules.

Example:

Before:

root@LEDE:/# modinfo mt76
module:         /lib/modules/4.4.74/mt76.ko
license:        Dual BSD/GPL
depends:

After:

root@LEDE:/# modinfo mt76
module:         /lib/modules/4.4.74/mt76.ko
license:        Dual BSD/GPL
depends:        mac80211,cfg80211

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoRevert "wpa_supplicant: log to syslog instead of stdout"
Jo-Philipp Wich [Fri, 27 Oct 2017 09:37:11 +0000 (11:37 +0200)]
Revert "wpa_supplicant: log to syslog instead of stdout"

This reverts commit e7373e489d8a215402d6b0c408a26188342c7c17.

Support of "-s" depends on the CONFIG_DEBUG_SYSLOG compile time flag which
is not enabled for all build variants.

Revert the change for now until we can properly examine the size impact of
CONFIG_DEBUG_SYSLOG.

Fixes FS#1117.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoramips: fix Youku-YK1 support
Edmunt Pienkowsky [Sat, 21 Oct 2017 09:07:43 +0000 (11:07 +0200)]
ramips: fix Youku-YK1 support

Remove the ephy-pins from the ethernet device tree node. The ephy-pins
are useed to controll the ePHY LEDs and this board doesn't have these.
Instead one of the ePHY pins is used in GPIO mode to control the WAN
LED.

Use the switch LED trigger to control the WAN LED. Move the power LED
handling to diag.sh to show the boot status via this LED.

Add the missing kernel packages for USB and microSD card reader to the
default package selection.

Fix the maximum image size value. The board has a 32MByte flash chip.

Fixes: FS#1055
Signed-off-by: Edmunt Pienkowsky <roed@onet.eu>
[make the commit message more verbose, remove GPIO pinmux for pins not
used as GPIOs]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agotools/squashfs4: include sysmacros.h explicitly
Alex Maclean [Mon, 23 Oct 2017 12:48:19 +0000 (13:48 +0100)]
tools/squashfs4: include sysmacros.h explicitly

glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1017
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
[refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agotools/squashfs: include sysmacros.h explicitly
Alex Maclean [Mon, 23 Oct 2017 12:47:55 +0000 (13:47 +0100)]
tools/squashfs: include sysmacros.h explicitly

glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1018
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
7 years agotools/mtd-utils: include sysmacros.h explicitly
Alex Maclean [Mon, 23 Oct 2017 12:47:33 +0000 (13:47 +0100)]
tools/mtd-utils: include sysmacros.h explicitly

glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1015
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
[refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agotools/findutils: include sysmacros.h explicitly
Alex Maclean [Mon, 23 Oct 2017 12:43:43 +0000 (13:43 +0100)]
tools/findutils: include sysmacros.h explicitly

glibc is moving to remove the include of sys/sysmacros.h from
sys/types.h, and some distros have done this early. Other libcs may
already lack this include. Include sysmacros.h explicitly.

Fixes: FS#1016
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
7 years agomdadm: fix parameter quoting
Jo-Philipp Wich [Fri, 27 Oct 2017 01:25:29 +0000 (03:25 +0200)]
mdadm: fix parameter quoting

Ensure that path defines are passed quoted to the compiler in order
to avoid cpp syntax errors.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomdadm: Fix config generation
Rosen Penev [Tue, 17 Oct 2017 16:28:39 +0000 (09:28 -0700)]
mdadm: Fix config generation

The init script generated something like "DEVICE=/dev/sda" when it should
have been generating "DEVICE /dev/sda". mdadm errors on this. Patch by jow.

Also changed the default sendmail path to /usr/sbin/sendmail. No package
in LEDE provides /sbin/sendmail. msmtp provides /usr/sbin/sendmail so use
that.

Also add a patch to fix file paths for mdadm runtime files. mdadm currently
errors on them since /run is missing. Once /run is added to stock LEDE, this
patch can be removed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoiptables: Fix target TRACE issue
Martin Wetterwald [Thu, 12 Jan 2017 14:06:00 +0000 (15:06 +0100)]
iptables: Fix target TRACE issue

The package kmod-ipt-debug builds the module xt_TRACE, which allows
users to use '-j TRACE' as target in the chain PREROUTING of the table
raw in iptables.

The kernel compilation flag NETFILTER_XT_TARGET_TRACE is also enabled so
that this feature which is implemented deep inside the linux IP stack
(for example in sk_buff) is compiled.

But a strace of iptables -t raw -I PREROUTING -p icmp -j TRACE reveals
that an attempt is made to read /usr/lib/iptables/libxt_TRACE.so, which
fails as this dynamic library is not present on the system.

I created the package iptables-mod-trace which takes care of that, and
target TRACE now works!

https://dev.openwrt.org/ticket/16694
https://dev.openwrt.org/ticket/19661

Signed-off-by: Martin Wetterwald <martin.wetterwald@corp.ovh.com>
[Jo-Philipp Wich: also remove trace extension from builtin extension list
                  and depend on kmod-ipt-raw since its required for rules]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
7 years agokernel: enable CONFIG_ADVISE_SYSCALLS
Rosen Penev [Sun, 15 Oct 2017 00:07:19 +0000 (17:07 -0700)]
kernel: enable CONFIG_ADVISE_SYSCALLS

Without this, posix_[fm]advise does not work. This causes issues with
btrfs-progs, which uses fadvise to drop caches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agoath10k-firmware: qca9888 firmware: remove board.bin
Henryk Heisig [Mon, 3 Jul 2017 21:59:54 +0000 (23:59 +0200)]
ath10k-firmware: qca9888 firmware: remove board.bin

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agoar71xx: fix board.bin used by QCA9886 in Archer C58/C59/C60
Henryk Heisig [Thu, 29 Jun 2017 13:38:22 +0000 (15:38 +0200)]
ar71xx: fix board.bin used by QCA9886 in Archer C58/C59/C60

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agomac80211: backport fixes for fix for CVE-2017-13080
Jonas Gorski [Thu, 26 Oct 2017 13:31:15 +0000 (15:31 +0200)]
mac80211: backport fixes for fix for CVE-2017-13080

Backport two fixes for the fix of CVE-2017-13080, preventing side channel
attacks and making it work for TKIP.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoar71xx: Archer C58/C59/C60 fix qca9886 wireless interface
Henryk Heisig [Thu, 29 Jun 2017 13:20:31 +0000 (15:20 +0200)]
ar71xx: Archer C58/C59/C60 fix qca9886 wireless interface

This commit fix 5GHz wireless interface used in Archer C58/C59/C60v1
and set correctly MAC address on this interface.

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agotreewide: do not use IMG_PREFIX in Image/Prepare
Jonas Gorski [Fri, 13 Oct 2017 12:21:53 +0000 (14:21 +0200)]
treewide: do not use IMG_PREFIX in Image/Prepare

IMG_PREFIX can be modified in ImageBuilder by passing EXTRA_IMAGE_NAME
on command line, but Image/Prepare is not run in ImageBuilder. This
causes missing files when IMG_PREFIX is used for target file names in
Image/Prepare, then as source file names in Image/BuildKernel or
Image/Build.

Fix this by using a fixed output file name in Image/Prepare, and copy to
the expected file name in Image/BuildKernel instead, which is run by
ImageBuilder.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agohostapd: fix up ubus support
John Crispin [Sat, 21 Oct 2017 20:02:31 +0000 (22:02 +0200)]
hostapd: fix up ubus support

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoramips: remove erroneous "wdt rst" DTS entries
Kevin Darbyshire-Bryant [Wed, 25 Oct 2017 08:21:35 +0000 (09:21 +0100)]
ramips: remove erroneous "wdt rst" DTS entries

Remove reference to pinmux group "wdt rst" on EW1200, ZBT-WG2626 and
ZBT-WG3526 devices. "wdt rst" is a pinmux function and not a pinmux
group.

Fixes the following error message during boot:

  rt2880-pinmux pinctrl: invalid group "wdt rst" for function "gpio"

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agoltq-xdsl-app: script style nit
Kevin Darbyshire-Bryant [Wed, 25 Oct 2017 09:39:23 +0000 (10:39 +0100)]
ltq-xdsl-app: script style nit

Fix missing space style nit.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agoipq806x: fix Zyxel NBG6817 WiFi button
Tolga Cakir [Tue, 24 Oct 2017 20:03:33 +0000 (22:03 +0200)]
ipq806x: fix Zyxel NBG6817 WiFi button

Zyxel NBG6817 features a WiFi button, which becomes functional by setting
correct GPIO. It is a switch-type button, so it emits KEY_RFKILL on each ON
and OFF state. This is achieved by setting input-type to EV_SW.

Signed-off-by: Tolga Cakir <tolga@cevel.net>
7 years agoar71xx: fix LED names for GL-AR150
Paul Wassi [Tue, 24 Oct 2017 12:23:58 +0000 (14:23 +0200)]
ar71xx: fix LED names for GL-AR150

Add the respective colour to the LED's names for the GL-AR150 to be conform
to the kernel. Also add netdev triggers for the LAN and WAN LED.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
7 years agoar71xx: base-files: alphabetical reordering
Paul Wassi [Tue, 24 Oct 2017 08:58:39 +0000 (10:58 +0200)]
ar71xx: base-files: alphabetical reordering

Re-order the cases of base-files/* alphabetically.
Also merge some cases in diag.sh

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
7 years agompc85xx: use image metadata
Mathias Kresin [Tue, 24 Oct 2017 04:57:29 +0000 (06:57 +0200)]
mpc85xx: use image metadata

Append and enforce image metadata. Remove the device specific image
checks, they are replaced by image metadata.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: use the generic board detect
Mathias Kresin [Mon, 15 May 2017 21:59:25 +0000 (23:59 +0200)]
mpc85xx: use the generic board detect

Use the values populated by the generic board detect function. The
first compatible from the device tree source file will be the board
name in userspace. The model property from the device tree source file
will be the model name.

Change the board name where used in the userspace and drop the target
specific board detect, to use the generic one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: fix TL-WDR4900 v1 compatible string
Mathias Kresin [Mon, 15 May 2017 21:52:02 +0000 (23:52 +0200)]
mpc85xx: fix TL-WDR4900 v1 compatible string

Use the vendor as it is listed in vendor.txt. Use a standard lower case
compatible string.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: update HiveAP-330 dts
Chris Blake [Fri, 20 Oct 2017 15:32:37 +0000 (10:32 -0500)]
mpc85xx: update HiveAP-330 dts

initramfs is not the proper name for this, as it stores a boot ramdisk
and not a filesystem. Update the name to reflect it's usage correctly.

If CMDLINE_OVERRIDE is enabled, the chosen bootargs aren't used at all.
Drop them from the device tree source file to not cause confusion.

Remove the noinitrd bootarg. Due to the empty ramdisk this parameter
isn't required any longer:

  [    0.000000] Initrd not found or empty - disabling initrd

Use the LEDE mtd-mac-address* device tree properties to set the interfaces
MAC-Addresses.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: cleanup kernel config
Mathias Kresin [Sat, 21 Oct 2017 13:44:30 +0000 (15:44 +0200)]
mpc85xx: cleanup kernel config

Move the kernel config changes added with the HiveAP 330 to the
subtarget the board belongs to instead of changing the target kernel
config.

While at it, move the TL_WDR4900_V1 config symbol to the containing
subtarget and disable boards we don't support.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: use new build code style
Chris Blake [Fri, 20 Oct 2017 17:36:25 +0000 (12:36 -0500)]
mpc85xx: use new build code style

The following moves the mpc85xx target (generic & P1020) to the new
build code style.

Compile & Flash tested on an Aerohive HiveAP-330.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: don't enable usb for the WT3020-4M
Mathias Kresin [Mon, 23 Oct 2017 06:17:44 +0000 (08:17 +0200)]
ramips: don't enable usb for the WT3020-4M

That device does not have a USB port. It as the same board as the
WT3020-8M, but without soldered USB port port. Also the case lacks the
opening for the port.

Reported-by: Alberto Bursi <alberto.bursi@outlook.it>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix default usb support for nexx wt3020-8M
Alberto Bursi [Sat, 21 Oct 2017 21:53:49 +0000 (23:53 +0200)]
ramips: fix default usb support for nexx wt3020-8M

the nexx wt3020-8M has a usb 2.0 port,
add usb 2.0 support packages to its default package list.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agoltq-adsl-app: add more script notifications
Mathias Kresin [Mon, 16 Oct 2017 19:08:26 +0000 (21:08 +0200)]
ltq-adsl-app: add more script notifications

Backport HANDSHAKE and TRAINING notification from ltq-vdsl-app. It
unifies the dsl led blinking pattern accross all subtargets and allows
to get the current line status from the dsl led.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoltq-atm: remove xrx200 special handling
Mathias Kresin [Sun, 15 Oct 2017 10:34:33 +0000 (12:34 +0200)]
ltq-atm: remove xrx200 special handling

The lantiq ATM driver is load for all subtargets on demand now. There
is not need to handle the xrx200 ATM driver in a special way any
longer.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: xway: rename nas0/ptm0 to dsl0
Mathias Kresin [Sat, 14 Oct 2017 18:52:22 +0000 (20:52 +0200)]
lantiq: xway: rename nas0/ptm0 to dsl0

This change makes it possible to configure the wan/dsl ppp interface
settings independantly from the used TC-Layer (ATM/PTM).

By using dsl0 as interface name as for the xrx200 we can get rid of a
few conditionals which were introduced because of the different default
TC-Layer in xway and xrx200.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoltq-adsl-app: use notification based ATM/PTM driver load
Mathias Kresin [Sun, 15 Oct 2017 10:29:22 +0000 (12:29 +0200)]
ltq-adsl-app: use notification based ATM/PTM driver load

This patch removes the fixed atm/ptm driver loading and
switches to notification based driver loading.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoltq-adsl-app: convert init script to procd
Mathias Kresin [Sun, 15 Oct 2017 08:33:29 +0000 (10:33 +0200)]
ltq-adsl-app: convert init script to procd

Use the procd features for the init script.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: match default adsl annex and firmware
Mathias Kresin [Mon, 16 Oct 2017 21:25:04 +0000 (23:25 +0200)]
lantiq: match default adsl annex and firmware

Set a default Annex matching the the annex of the selected adsl
firmware.

Set Annex B for xrx200 board which are known to have an ADSL hybrid for
Annex B.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: add missing default lan interface
Mathias Kresin [Wed, 25 Oct 2017 06:32:00 +0000 (08:32 +0200)]
lantiq: add missing default lan interface

With removing the boards from the the default case to fix the xDSL WAN
MAC-Address, the setting for the default LAN interface wasn't added.

Fixes: 92a12c434ca3 ("lantiq: fix avm fritz box mac addresses")
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobcm53xx: Fix Generic profile description
Florian Fainelli [Wed, 25 Oct 2017 01:08:25 +0000 (18:08 -0700)]
bcm53xx: Fix Generic profile description

Fix the sentence describing the bcm53xx generic profile.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoorion: Switch to 4.9 kernel
Florian Fainelli [Wed, 25 Oct 2017 00:46:15 +0000 (17:46 -0700)]
orion: Switch to 4.9 kernel

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoorion: Add support for 4.9 kernel
Florian Fainelli [Wed, 25 Oct 2017 00:46:02 +0000 (17:46 -0700)]
orion: Add support for 4.9 kernel

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoinclude: Silence external kernel version checks
Florian Fainelli [Tue, 24 Oct 2017 23:59:15 +0000 (16:59 -0700)]
include: Silence external kernel version checks

During the initial configuration phases, we have not set-up the kernel
source directory, which would lead to such messages:

cat:
/local/users/fainelli/openwrt/trunk/build_dir/target-x86_64_musl/linux-uml/linux-4.9.58/include/config/kernel.release:
No such file or directory

Just silence it, since it does not create a functional problem.

Fixes: 8e0e0e7d8bfb ("include: Determine MODULES_DIR correctly for external/git kernels")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agouml: Switch to 4.9 kernel
Florian Fainelli [Tue, 24 Oct 2017 22:10:05 +0000 (15:10 -0700)]
uml: Switch to 4.9 kernel

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agouml: Add 4.9 kernel patches
Florian Fainelli [Sun, 22 Oct 2017 21:56:12 +0000 (14:56 -0700)]
uml: Add 4.9 kernel patches

102-pseudo-random-mac.patch required an update to the new style asynchronous
crypto

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agopending-4.9: 610-netfilter_match_bypass_default_check: fix 32bit compat layer
Hans Dedecker [Tue, 24 Oct 2017 20:08:54 +0000 (22:08 +0200)]
pending-4.9: 610-netfilter_match_bypass_default_check: fix 32bit compat layer

Patch 610-netfilter_match_bypass_default_check added an extra flag IPT_F_NO_DEF_MATCH
which is copied to user space in function copy_entries_to_user. The 32bit compat
layer function was missing the same logic to copy the flag IPT_F_NO_DEF_MATCH to
user space for a 64bit kernel and 32 bit user space.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Thierry Dutre <thierry.dutre@dtsystems.be>
7 years agopending-4.4: 610-netfilter_match_bypass_default_check: fix 32bit compat layer
Hans Dedecker [Mon, 16 Oct 2017 09:29:55 +0000 (11:29 +0200)]
pending-4.4: 610-netfilter_match_bypass_default_check: fix 32bit compat layer

Patch 610-netfilter_match_bypass_default_check added an extra flag IPT_F_NO_DEF_MATCH
which is copied to user space in function copy_entries_to_user. The 32bit compat
layer function was missing the same logic to copy the flag IPT_F_NO_DEF_MATCH to
user space for a 64bit kernel and 32 bit user space.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Thierry Dutre <thierry.dutre@dtsystems.be>
7 years agopending-3.18: 610-netfilter_match_bypass_default_check: fix 32bit compat layer
Hans Dedecker [Tue, 24 Oct 2017 14:46:53 +0000 (16:46 +0200)]
pending-3.18: 610-netfilter_match_bypass_default_check: fix 32bit compat layer

Patch 610-netfilter_match_bypass_default_check added an extra flag IPT_F_NO_DEF_MATCH
which is copied to user space in function copy_entries_to_user. The 32bit compat
layer function was missing the same logic to copy the flag IPT_F_NO_DEF_MATCH to
user space for a 64bit kernel and 32 bit user space.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Thierry Dutre <thierry.dutre@dtsystems.be>
7 years agotools/squashfs: use host cflags
Felix Fietkau [Tue, 24 Oct 2017 11:22:09 +0000 (13:22 +0200)]
tools/squashfs: use host cflags

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: re-enable 4k sectors for the mikrotik subtargets
Felix Fietkau [Tue, 24 Oct 2017 10:33:46 +0000 (12:33 +0200)]
ar71xx: re-enable 4k sectors for the mikrotik subtargets

On RB91x (and possibly others), there is a small SPI flash to store boot
loader and configuration. It needs 4K sectors to be able to write the
configuration using rbcfg

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix mikrotik routerboard nand driver issues with linux 4.9
Felix Fietkau [Tue, 24 Oct 2017 10:30:48 +0000 (12:30 +0200)]
ar71xx: fix mikrotik routerboard nand driver issues with linux 4.9

The mtd device is now embedded inside the nand chip data structure

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix secondary gpio controller base values
Felix Fietkau [Tue, 24 Oct 2017 08:32:21 +0000 (10:32 +0200)]
ar71xx: fix secondary gpio controller base values

In 4.9, gpio count is rounded up to 32 due to the use of bgpio in the
ath79 gpio controller driver.
Fix base values in mach files to account for that

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: lzma loader use LTO
Julien Dusser [Wed, 19 Jul 2017 13:45:08 +0000 (15:45 +0200)]
ar71xx: lzma loader use LTO

Change the Makefile to use LTO for better code optimisations. Gains are
very low, only 270 bytes saved, but it's only Makefile changes.

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
7 years agoar71xx: fix lzma loader performance issues
Julien Dusser [Wed, 19 Jul 2017 12:52:35 +0000 (14:52 +0200)]
ar71xx: fix lzma loader performance issues

Some bootloaders set a cache cohenrency to a very slow mode. Use code from
Linux kernel to set it to "Cacheable, noncoherent, write-back, write
allocate".

Perfomance impact is significant on TP-Link EAP245 board, kernel
decompression time fall from 33 seconds to less than 1.

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
7 years agolibs/lzo: Reenable unaligned access on ARM, PPC, ...
Stefan Oberhumer [Wed, 31 May 2017 05:37:03 +0000 (07:37 +0200)]
libs/lzo: Reenable unaligned access on ARM, PPC, ...

Due a compiler bug on ARM targets
 ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64516 )
unaligned access was disabled on all targets other than i386 and
x86_64 with commit 061319ec3dfe9b6d14af1286a1d9979db56048d7 .

A fix has been added to lzo-2.09 so it is not necessary to disable
unaligned access within the Makefile anymore.

Signed-off-by: Stefan Oberhumer <stefan@obssys.com>
7 years agokernel: fixup KARCH for powerpc64 builds
Florian Larysch [Thu, 3 Nov 2016 12:58:24 +0000 (13:58 +0100)]
kernel: fixup KARCH for powerpc64 builds

The kernel calls both ppc64 and ppc32 "powerpc", so we need to fixup
LINUX_KARCH when building with ARCH=powerpc64.

Signed-off-by: Florian Larysch <fl@n621.de>