oweals/openwrt.git
8 years agomac80211: add fixes for dealing with unexpected BlockAck frames
Felix Fietkau [Tue, 30 Aug 2016 11:12:45 +0000 (13:12 +0200)]
mac80211: add fixes for dealing with unexpected BlockAck frames

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath9k: add a bunch of powersave handling fixes
Felix Fietkau [Sun, 28 Aug 2016 11:50:09 +0000 (13:50 +0200)]
ath9k: add a bunch of powersave handling fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: add a powersave handling fix
Felix Fietkau [Sun, 28 Aug 2016 11:49:48 +0000 (13:49 +0200)]
mac80211: add a powersave handling fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoAdd Issue submission template (redirect to bugs.lede-project.org)
Ted Hess [Tue, 30 Aug 2016 19:27:46 +0000 (15:27 -0400)]
Add Issue submission template (redirect to bugs.lede-project.org)

Signed-off-by: Ted Hess <thess@kitschensync.net>
8 years agoopenssl: re-enable ARM assembly
Felix Fietkau [Wed, 31 Aug 2016 11:31:38 +0000 (13:31 +0200)]
openssl: re-enable ARM assembly

The original reason for disabling it seems to have been fixed
Related discussion: https://github.com/lede-project/source/pull/307

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: disable EOF markers on UBI
Felix Fietkau [Wed, 31 Aug 2016 11:06:54 +0000 (13:06 +0200)]
imx6: disable EOF markers on UBI

The boot loader does not recognize them and might mess up the volume

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoscripts/ubinize-image.sh: add support for adding custom partitions
Felix Fietkau [Sun, 31 Jul 2016 16:34:02 +0000 (18:34 +0200)]
scripts/ubinize-image.sh: add support for adding custom partitions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoglibc: re-enable parallel builds
Felix Fietkau [Tue, 30 Aug 2016 09:12:39 +0000 (11:12 +0200)]
glibc: re-enable parallel builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoglibc: switch to 2.24 by default and remove old versions, fixes security issues
Felix Fietkau [Tue, 30 Aug 2016 09:02:54 +0000 (11:02 +0200)]
glibc: switch to 2.24 by default and remove old versions, fixes security issues

2.24 fixes the following CVEs compared to 2.23:
- CVE-2016-3075
- CVE-2016-3706
- CVE-2016-1234
- CVE-2016-4429
- CVE-2016-5417

CVEs fixed in 2.23:
- CVE-2015-8776
- CVE-2015-8777
- CVE-2015-8778
- CVE-2015-8779
- CVE-2014-9761
- CVE-2015-7547

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoebtables: fix build with glibc
Felix Fietkau [Tue, 30 Aug 2016 10:04:01 +0000 (12:04 +0200)]
ebtables: fix build with glibc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodante: remove -D_GNU_SOURCE to fix build errors with current glibc
Felix Fietkau [Tue, 30 Aug 2016 09:49:46 +0000 (11:49 +0200)]
dante: remove -D_GNU_SOURCE to fix build errors with current glibc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoglibc: add 2.24
Dirk Neukirchen [Mon, 29 Aug 2016 12:16:14 +0000 (14:16 +0200)]
glibc: add 2.24

since eglibc is deprecated just use glibc as name

- fix build errors w. stack-protector (observed for x86_64):
libresolv_pic.a(gethnamaddr.os): In function `addrsort':
gethnamaddr.c:(.text+0x425): undefined reference to `__stack_chk_guard'

by additionally setting libc_cv_ssp_strong=no
like previously libc_cv_ssp=no was set

- fix compile errors on 2.24 x86 introduced by
upstream changesets "Optimize i386 syscall inlining"

errors are like:
- https://sourceware.org/ml/libc-alpha/2015-10/msg00745.html
and trying to fix with the whats suggested at:
https://patchwork.openembedded.org/patch/118909/
leads to other error:
gcc6: elf/librtld.os: In function `__mmap':
(.text+0x131a9): undefined reference to `__libc_do_syscall'
or:
gcc5: elf/dl-load.os
{standard input}: Assembler messages:
{standard input}:5129: Error: symbol `__x86.get_pc_thunk.cx' is already defined

instead of testing other flags/effects (-fno-omit-frame-pointer)
just use -O2 (like buildroot does) instead of -Os

boot+pings tested on:
qemu malta (le+be) (gcc5+bin2.25.1)
qemu aarch64 (gcc5+bin2.25.1)
qemu x86_64 (gcc6+bin2.26)
qemu x86 generic (gcc6+bin2.26)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agoiperf: add -lm to fix build with newer glibc
Felix Fietkau [Mon, 29 Aug 2016 13:09:50 +0000 (15:09 +0200)]
iperf: add -lm to fix build with newer glibc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoiperf: drop PKG_BUILD_DIR override
Felix Fietkau [Mon, 29 Aug 2016 13:09:03 +0000 (15:09 +0200)]
iperf: drop PKG_BUILD_DIR override

No longer necessary since the removal of build variants

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: enable fpu for all subtargets
Felix Fietkau [Mon, 29 Aug 2016 12:39:20 +0000 (14:39 +0200)]
x86: enable fpu for all subtargets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: add fpu to features
Josua Mayer [Tue, 16 Aug 2016 14:02:43 +0000 (16:02 +0200)]
mvebu: add fpu to features

This triggers HAS_FPU=y, and unsets CONFIG_SOFT_FLOAT.
Considering all mvebu boards have an fpu, this is the desirable behaviour.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: enable ARM crypto acceleration
Felix Fietkau [Mon, 29 Aug 2016 11:51:58 +0000 (13:51 +0200)]
mvebu: enable ARM crypto acceleration

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: enable NEON support
Felix Fietkau [Mon, 29 Aug 2016 11:51:27 +0000 (13:51 +0200)]
mvebu: enable NEON support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: make MMC driver for Clearfog builtin
Josua Mayer [Mon, 15 Aug 2016 14:20:45 +0000 (16:20 +0200)]
mvebu: make MMC driver for Clearfog builtin

microSD is the primary boot media for the Clearfog Pro board, and should
work unconditionally.

Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
8 years agomvebu: refresh kernel config
Felix Fietkau [Mon, 29 Aug 2016 11:41:16 +0000 (13:41 +0200)]
mvebu: refresh kernel config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa
Felix Fietkau [Sun, 28 Aug 2016 13:31:55 +0000 (15:31 +0200)]
kernel: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

Add Support for the ESMT_F25L32QA and ESMT_F25L64QA.
These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: make serial port sysrq-disable patch more generic (FS#112)
Felix Fietkau [Sun, 28 Aug 2016 12:43:12 +0000 (14:43 +0200)]
kernel: make serial port sysrq-disable patch more generic (FS#112)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoRevert "opkg: use vfork on gz_open by default (FS#120)"
Jo-Philipp Wich [Sun, 28 Aug 2016 21:01:02 +0000 (23:01 +0200)]
Revert "opkg: use vfork on gz_open by default (FS#120)"

This reverts commit 763f5d787316ec1b041450a644ecd9416f11e94f.

Currently the vfork() code path in opkg is broken and relies on unsupported
ftello() / fseeko() operations on pipes - we need to restructure the code
before we can reconsider this approach.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoRevert "opkg: disable the use of vfork for the host build"
Jo-Philipp Wich [Sun, 28 Aug 2016 20:56:16 +0000 (22:56 +0200)]
Revert "opkg: disable the use of vfork for the host build"

This reverts commit 02e3c718e9ad0c14aa3cf359ba2a4763e81df805.

Currently the vfork() code path in opkg is broken and relies on unsupported
ftello() / fseeko() operations on pipes - we need to restructure the code
before we can reconsider this approach.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoath10k-firmware: Update to latest ath10k-ct 9984 firmware.
Ben Greear [Thu, 25 Aug 2016 22:10:29 +0000 (15:10 -0700)]
ath10k-firmware: Update to latest ath10k-ct 9984 firmware.

Tested briefly on Netgear r7800.  Firmware failed to load on first
boot, but then it worked after that and I could not reproduce the
failure.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agotools: make mtools/dosfstools unconditional
Felix Fietkau [Sun, 28 Aug 2016 18:58:12 +0000 (20:58 +0200)]
tools: make mtools/dosfstools unconditional

The list of targets that need them are getting longer

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: generate US- and EU-specific images for the Archer C7 v2
Matthias Schiffer [Sun, 28 Aug 2016 17:49:48 +0000 (19:49 +0200)]
ar71xx: generate US- and EU-specific images for the Archer C7 v2

TP-Link has started providing US- and EU-specific stock firmwares that only
allow upgrading to firmwares with the same region code. Provide factory
images for both these regions.

To avoid confusing users outside these regions, we still provide a
"universal" factory.bin without a region code, although flashing either of
the US and EU images would work as well.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agofirmware-utils: mktplinkfw: add support for TP-Link's new region codes
Matthias Schiffer [Sun, 28 Aug 2016 17:43:25 +0000 (19:43 +0200)]
firmware-utils: mktplinkfw: add support for TP-Link's new region codes

TP-Link has changed the way the region is stored in the firmware header,
and now provides US- and EU-specific images for the Archer C7. Adding the
new region codes is necessary to make LEDE/OpenWrt flashable on devices
with the new stock firmwares again.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoopkg: disable the use of vfork for the host build
Felix Fietkau [Sun, 28 Aug 2016 12:33:48 +0000 (14:33 +0200)]
opkg: disable the use of vfork for the host build

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoopkg: use vfork on gz_open by default (FS#120)
Felix Fietkau [Sun, 28 Aug 2016 12:18:14 +0000 (14:18 +0200)]
opkg: use vfork on gz_open by default (FS#120)

Reduces memory consumption and binary size

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath9k: revert temperature compensation support patch (FS#111)
Felix Fietkau [Sun, 28 Aug 2016 12:08:40 +0000 (14:08 +0200)]
ath9k: revert temperature compensation support patch (FS#111)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: remove obsolete legacy ide kernel module packages
Felix Fietkau [Fri, 26 Aug 2016 09:27:44 +0000 (11:27 +0200)]
kernel: remove obsolete legacy ide kernel module packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoarc770: Introduce images for SD-cards
Alexey Brodkin [Wed, 24 Aug 2016 14:48:12 +0000 (17:48 +0300)]
arc770: Introduce images for SD-cards

Historically on ARC we started from initramfs-based images because:
 a) It was much easier to debug especially when toolchain and other
    components were changing quite dynamically
 b) It was our usual approach for embedded Linux

But now with ARC port of Lede/OpenWRT getting more stable and mature
we're ready for more real-life scenarios with FS permanently stored
on SD-card. This essentially benefits from ability to setup devices
that survive reboots with all settings and extra packages kept in place.

Still we keep an ability to build images with initramfs.
This allows us to use storage-less simulators for testing still.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: John Crispin <john@phrozen.org>
Cc: Jo-Philipp Wich <jo@mein.io>
8 years agoarc770: Remove MMC kernel modules, they are built-in now
Alexey Brodkin [Wed, 24 Aug 2016 14:48:11 +0000 (17:48 +0300)]
arc770: Remove MMC kernel modules, they are built-in now

If we want to boot from SD-card we need to have corresponding
drivers already built-in so there's no point in having these
modules.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarc770: Update kernel configuration
Alexey Brodkin [Wed, 24 Aug 2016 14:48:10 +0000 (17:48 +0300)]
arc770: Update kernel configuration

Now when we're switching to FS on SD-card it's necessary to have
full stack of MMC block & FC drivers built-in otherwise kernel won't
be able to mount FS with needed modules.

Also we enable parsing of input parameters passed to the kernel by
U-Boot. Otherwise kernel won't know where to look for command line and
what's worse device tree blob (we had to disable this by default for
cases when kernel is loaded by JTAG and core registers may have
undefined state lading to kernel going bonkers).

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarc770: Reduce generalization
Alexey Brodkin [Wed, 24 Aug 2016 14:48:09 +0000 (17:48 +0300)]
arc770: Reduce generalization

As support of ARC 770 in OpenWRT/Lede matures we don't need
debug-only output binaries any longer, so purging vmlinux for
AXS10x boards.

As for uImage for nSIM it makes completely no sense because there's no
way to run U-Boot on nSIM.

So we remove add_arcYYY_XXX scripts making code more compact and
cleaner.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoct-bugcheck: Add tools to poll for and report ath10k firmware crashes.
Ben Greear [Wed, 24 Aug 2016 21:20:58 +0000 (14:20 -0700)]
ct-bugcheck: Add tools to poll for and report ath10k firmware crashes.

This tool can periodically check for ath10k firmware crashes.
If it finds a crash, it will package up the binary crash dump,
some OS level things like dmesg, lspci, etc into a tar file.

It then notifies the user about the crash and asks them to report
the bug to the appropriate email address.

This is most useful when used with ath10k-ct driver and
CT ath10k firmware, but it should also report issues with stock
ath10k driver and firmware in case one has appropriate contacts
to debug them.

This tool could be extended later for other modules/bugs/etc.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agoath10k-ct: Remove useless WARNING for 10.4 firmware.
Ben Greear [Thu, 25 Aug 2016 00:19:37 +0000 (17:19 -0700)]
ath10k-ct: Remove useless WARNING for 10.4 firmware.

Removes a useless splat in ath10k, and adds some safety code
around setting keys in the firmware.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agoath10k-fw: Update to latest 9980 CT firmware.
Ben Greear [Thu, 25 Aug 2016 00:19:36 +0000 (17:19 -0700)]
ath10k-fw: Update to latest 9980 CT firmware.

This fixes a nasty memory corruption bug, among other things.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agobcm53xx: use the latest 6th version of ILP clock driver patch
Rafał Miłecki [Fri, 26 Aug 2016 15:02:30 +0000 (17:02 +0200)]
bcm53xx: use the latest 6th version of ILP clock driver patch

It still wasn't accepted, so don't switch to 0xx prefix yet.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: backport clk *_hw_* API for registering struct clk_hw
Rafał Miłecki [Fri, 26 Aug 2016 14:36:12 +0000 (16:36 +0200)]
kernel: backport clk *_hw_* API for registering struct clk_hw

Drivers have been modified to use it and new ones have to be written
this way, so we need it for backporting code.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoiwinfo: mark as nonshared
Jo-Philipp Wich [Thu, 25 Aug 2016 14:46:04 +0000 (16:46 +0200)]
iwinfo: mark as nonshared

The iwinfo library might get compiled with different backends, depending on
the driver selection of the current target, so mark it as nonshared to avoid
broken libiwinfo support on other targets with same cpu architecture but
different wireless driver types.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agomt76: update to the latest version
Felix Fietkau [Thu, 25 Aug 2016 10:59:44 +0000 (12:59 +0200)]
mt76: update to the latest version

Adds client + ad-hoc mode fixes and some initial TPC preparation work

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: disable flow control to the built-in switch on AR934x
Felix Fietkau [Thu, 25 Aug 2016 09:53:50 +0000 (11:53 +0200)]
ar71xx: disable flow control to the built-in switch on AR934x

It apparently causes a regression on some devices if the ethernet cable
is plugged in while booting.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: fix ath5k EEPROM loading
Mathias Kresin [Tue, 23 Aug 2016 19:14:36 +0000 (21:14 +0200)]
lantiq: fix ath5k EEPROM loading

With 12fe4b579801ea812b64fc7e689716cd39c895ec I switched the ath5k
eeprom extraction to an alternate code path. Unfortunately this code
seams to be broken since ages and broke the ath5k EEPROM extraction.

Reported-by: Mohammed Berdai <mohammed.berdai@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Acked-by: John Crispin <john@phrozen.org>
8 years agolinux/arc*: disable MAC frame filter in DW GMAC
Alexey Brodkin [Wed, 24 Aug 2016 12:44:04 +0000 (15:44 +0300)]
linux/arc*: disable MAC frame filter in DW GMAC

DW GMAC on ARC SDP boards doesn't enter promiscuous mode if
Ethernet PHY haven't got established link. Good examples are
auto-negotiation in progress or disconnected cable.

We do see Linux kernel sets GMAC's MAC filter register
properly but GMAC's hardware doesn't accept new settings.

We believe it is a hardware issue, most probably problem of
integration of DW GMAC and PHY on the board.

As a work-around we completely disable frame filtering
in GMAC hardware (once and for good) which forces GMAC to enter
promiscuous mode with the first write to MAC filter register.
That gives us working bridge that consists of eth0 and wlan0
(USB Wi-Fi dongle). I.e. we finally have working "Dumb AP" setup made
of ARC AXS10x boards.

Given that hack is quite dirty (in loaded wired networks this will
effectively load CPU with junk packets even if user doesn't need promisc
mode) and there's no indication any other boards with DW GMAC suffer
from the same issue we're patching only kernel for ARC boards.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: John Crispin <john@phrozen.org>,
Cc: Felix Fietkau <nbd@nbd.name>
8 years agouqmi: update to the latest version, adds QMI-in-MBIM support
Felix Fietkau [Tue, 23 Aug 2016 11:39:29 +0000 (13:39 +0200)]
uqmi: update to the latest version, adds QMI-in-MBIM support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoipq806x: fix ipq8065 s2a/s2b regulator frequency (fixes ethernet performance)
Roman Yeryomin [Fri, 19 Aug 2016 10:56:26 +0000 (13:56 +0300)]
ipq806x: fix ipq8065 s2a/s2b regulator frequency (fixes ethernet performance)

Signed-off-by: Roman Yeryomin <roman@advem.lv>
8 years agoipq806x: Archer C2600: Renaming LED accordance with the standard
Cezary Jackiewicz [Tue, 23 Aug 2016 17:26:16 +0000 (19:26 +0200)]
ipq806x: Archer C2600: Renaming LED accordance with the standard

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
8 years agoipq806x: enable ondemand governor
John Crispin [Tue, 23 Aug 2016 22:18:54 +0000 (00:18 +0200)]
ipq806x: enable ondemand governor

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel: backport patch for specifying USB ports/devices in DT
Rafał Miłecki [Wed, 24 Aug 2016 06:42:10 +0000 (08:42 +0200)]
kernel: backport patch for specifying USB ports/devices in DT

This allows referencing USB ports/devices that are always present in a
device. This applies to some internal devices, root hub ports and
internal USB hubs.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoipq806x: rename R7800 device tree file, merge R7500v2 dts addition
Jo-Philipp Wich [Tue, 23 Aug 2016 23:35:22 +0000 (01:35 +0200)]
ipq806x: rename R7800 device tree file, merge R7500v2 dts addition

The R7800 is an IPQ8065, so rename its dts file to reflect that fact.
Also fold the R7500v2 dts addition into the existing 800-devicetree.patch.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agorealview: rename config-default to config-4.4
Stijn Tintel [Tue, 23 Aug 2016 22:43:43 +0000 (01:43 +0300)]
realview: rename config-default to config-4.4

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agorb532: rename config-default to config 4.1
Stijn Tintel [Tue, 23 Aug 2016 22:43:19 +0000 (01:43 +0300)]
rb532: rename config-default to config 4.1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoorion: rename config-default to config-3.18
Stijn Tintel [Tue, 23 Aug 2016 22:42:54 +0000 (01:42 +0300)]
orion: rename config-default to config-3.18

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agogemini: rename config-default to config-4.4
Stijn Tintel [Tue, 23 Aug 2016 22:42:12 +0000 (01:42 +0300)]
gemini: rename config-default to config-4.4

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoarm64: rename config-default to config-4.4
Stijn Tintel [Tue, 23 Aug 2016 22:41:38 +0000 (01:41 +0300)]
arm64: rename config-default to config-4.4

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoopenvpn: update to 2.3.12
Magnus Kroken [Tue, 23 Aug 2016 22:14:46 +0000 (00:14 +0200)]
openvpn: update to 2.3.12

300-upstream-fix-polarssl-mbedtls-builds.patch has been applied upstream.
Replaced 101-remove_polarssl_debug_call.patch with upstream backport.

Changelog: https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23#OpenVPN2.3.12

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
8 years agogemini: rename patches directory to patches-4.4
Stijn Tintel [Tue, 23 Aug 2016 22:08:32 +0000 (01:08 +0300)]
gemini: rename patches directory to patches-4.4

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoperf: drop sched_getcpu wrapper
Ralph Sennhauser [Tue, 23 Aug 2016 18:35:10 +0000 (20:35 +0200)]
perf: drop sched_getcpu wrapper

Current musl already provides sched_getcpu

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
8 years agostrace: bump to 4.13
Ralph Sennhauser [Tue, 23 Aug 2016 18:36:15 +0000 (20:36 +0200)]
strace: bump to 4.13

Fixes broken btrfs support in 4.12

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
8 years agogemini: drop Linux 4.1 support
Jo-Philipp Wich [Mon, 22 Aug 2016 15:35:47 +0000 (17:35 +0200)]
gemini: drop Linux 4.1 support

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agogemini: add Linux 4.4 support
Roman Yeryomin [Sun, 21 Aug 2016 23:36:50 +0000 (02:36 +0300)]
gemini: add Linux 4.4 support

Signed-off-by: Roman Yeryomin <roman@advem.lv>
[Jo-Philipp Wich: change commit title]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoath9k: Set ATH9K_STATION_STATISTICS when enabling debugging
Toke Høiland-Jørgensen [Tue, 23 Aug 2016 10:36:12 +0000 (12:36 +0200)]
ath9k: Set ATH9K_STATION_STATISTICS when enabling debugging

The ATH9K_STATION_STATISTICS kernel config variable enables some extra
statistics that are useful for debugging (in particular with the airtime
fairness patches enabled). This adds that kernel config when selecting
ath9k debugging.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
8 years agoubus: update to the latest version, adds object remove fixes
Felix Fietkau [Tue, 23 Aug 2016 11:29:36 +0000 (13:29 +0200)]
ubus: update to the latest version, adds object remove fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoubox: move logd into ubox package
Felix Fietkau [Fri, 5 Aug 2016 11:06:13 +0000 (13:06 +0200)]
ubox: move logd into ubox package

Preparation for further build rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agohostapd: use printf to improve portability.
Ash Benz [Tue, 23 Aug 2016 10:07:01 +0000 (18:07 +0800)]
hostapd: use printf to improve portability.

Signed-off-by: Ash Benz <ash.benz@bk.ru>
8 years agobuild: use perl instead of GNU date for KBUILD_BUILD_TIMESTAMP
Felix Fietkau [Tue, 23 Aug 2016 09:05:56 +0000 (11:05 +0200)]
build: use perl instead of GNU date for KBUILD_BUILD_TIMESTAMP

Fixes warning on non-Linux systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotools: build GNU date from coreutils on non-Linux systems
Felix Fietkau [Tue, 23 Aug 2016 08:58:34 +0000 (10:58 +0200)]
tools: build GNU date from coreutils on non-Linux systems

Required for reproducible builds in the kernel build system

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: pass $(STAGING_DIR_HOST) to Host/Install
Felix Fietkau [Tue, 23 Aug 2016 08:58:00 +0000 (10:58 +0200)]
build: pass $(STAGING_DIR_HOST) to Host/Install

makes it more consistent with package builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath10k-ct: Update to latest ath10k-ct driver.
Ben Greear [Thu, 11 Aug 2016 18:20:46 +0000 (11:20 -0700)]
ath10k-ct: Update to latest ath10k-ct driver.

This uses GFP_DMA32 for firmware swap.  Fixes issue on x86-64 with
QCA 9984 chipset when host system does not have vt-d enabled.

Also tested on linksys ea8500 with 9980 chipset.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agoramips: mt7621: switch to 24kc
Jonas Gorski [Sun, 21 Aug 2016 17:23:13 +0000 (19:23 +0200)]
ramips: mt7621: switch to 24kc

1004kc is just a SMP capable 34kc, and GCC treats 24kc and 34kc exactly
the same and will generate identical code, so there is no need to tune
to 1004kc instead of 24kc.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agoinclude: remove 34k distinction
Jonas Gorski [Sun, 21 Aug 2016 17:23:12 +0000 (19:23 +0200)]
include: remove 34k distinction

Now that there are no users anymore, drop the 34kc CPU_FLAGS.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agolantiq: switch from 34k to 24k
Jonas Gorski [Sun, 21 Aug 2016 17:23:11 +0000 (19:23 +0200)]
lantiq: switch from 34k to 24k

GCC treats 24kc and 34kc exactly the same and will generate identical
code, so there is no need to tune to 34kc instead of 24kc.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agoar71xx: switch to 24kc
Jonas Gorski [Sun, 21 Aug 2016 17:23:10 +0000 (19:23 +0200)]
ar71xx: switch to 24kc

GCC treats 24kc and 34kc exactly the same and will generate identical
code, so there is no need to tune to 34kc instead of 24kc.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agonetifd: update to the latest version
Felix Fietkau [Tue, 23 Aug 2016 08:16:29 +0000 (10:16 +0200)]
netifd: update to the latest version

Adds fixes for wireless device error handling
Adds link state fixes for shell proto handlers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: update kernel 4.4 to version 4.4.19
Stijn Tintel [Mon, 22 Aug 2016 17:05:45 +0000 (19:05 +0200)]
kernel: update kernel 4.4 to version 4.4.19

Refresh patches for all targets that support kernel 4.4.
Compile-tested on all targets that use kernel 4.4 and aren't marked broken.
Runtime-tested on ar71xx, octeon and x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agobrcm47xx: add missing config symbol
Stijn Tintel [Mon, 22 Aug 2016 18:57:09 +0000 (21:57 +0300)]
brcm47xx: add missing config symbol

8 years agobcm53xx: backport patch adding ARCH_BCM_53573 symbol
Rafał Miłecki [Tue, 23 Aug 2016 05:10:05 +0000 (07:10 +0200)]
bcm53xx: backport patch adding ARCH_BCM_53573 symbol

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agocyassl: make CyaSSL/WolfSSL more configurable
Andreas Schultz [Sat, 20 Aug 2016 10:52:42 +0000 (12:52 +0200)]
cyassl: make CyaSSL/WolfSSL more configurable

The default configuration might not be suitable for
every use case. Add options to enable/disable additional
options.

Signed-off-by: Andreas Schultz <aschultz@tpip.net>
8 years agoimx6: Fix pointing to msata/mmc bootdevs
Koen Vandeputte [Mon, 22 Aug 2016 15:05:11 +0000 (17:05 +0200)]
imx6: Fix pointing to msata/mmc bootdevs

Point to correct devices when booting from msata or MMC
Changes fetched from Gateworks git

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
[Jo-Philipp Wich: rebased to apply against current LEDE version]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoipq806x: Build image for Netgear Nighthawk X4 R7500v2
Alexis Green [Fri, 19 Aug 2016 20:56:24 +0000 (13:56 -0700)]
ipq806x: Build image for Netgear Nighthawk X4 R7500v2

Signed-off-by: Alexis Green <alexis@cessp.it>
[Jo-Philipp Wich: add missing DEVICE_TITLE, fix model name in commit title]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: add fake users for udptunnel and iptunnel modules
Daniel Golle [Mon, 22 Aug 2016 15:14:03 +0000 (17:14 +0200)]
kernel: add fake users for udptunnel and iptunnel modules

Without any in-tree users enabled the Kernel's build process doesn't
actually build those modules. Enable some potential in-tree users
during Kernel build, so out-of-tree modules can depend on them.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agooxnas: drop explicit pre-init iface
Daniel Golle [Fri, 19 Aug 2016 16:22:20 +0000 (18:22 +0200)]
oxnas: drop explicit pre-init iface

According to Jonas Gorski this is no longer needed, the problem
originally addressed by first adding 07_preinit_iface and subsequently
merging that into 02_network was probably a bug during the transition
to the new board.d pre-init approach.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agokernel: bgmac: use upstream accepted patches
Rafał Miłecki [Mon, 22 Aug 2016 07:47:34 +0000 (09:47 +0200)]
kernel: bgmac: use upstream accepted patches

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agolantiq: fix building AVM/EVA sysupgrade images on NOR devices
Martin Blumenstingl [Sun, 21 Aug 2016 15:01:33 +0000 (17:01 +0200)]
lantiq: fix building AVM/EVA sysupgrade images on NOR devices

Device/AVM unconditionally inherits Device/NAND, which changes the
sysupgrade image to sysupgrade-tar (instead of a "raw" sysupgrade image
as used in the Device/Default template).
This moves the Device/NAND call to the FRITZ3370 device definition, as
this is the only AVM/EVA device that uses NAND.
Additionally we have to define the IMAGE_SIZE for the AVM/EVA NOR
devices to ensure that the images are not discarded.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agoipq806x: add usb pins to r7800 dts file
John Crispin [Mon, 15 Aug 2016 20:54:23 +0000 (22:54 +0200)]
ipq806x: add usb pins to r7800 dts file

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoimx6: fix generating bootfs in imagebuilder (FS#102)
Jo-Philipp Wich [Sat, 20 Aug 2016 18:17:51 +0000 (20:17 +0200)]
imx6: fix generating bootfs in imagebuilder (FS#102)

The image builder does not bundle sub-directories within $(KERNEL_BUILD_DIR),
therfore the intermediate "ventana-uImage.boot" directory is not shipped,
leading to failures with "make image" later on.

To circumvent the issue, store the intermediate boot files as tar archive
instead of putting them into a directory to ensure that they end up in the
final image builder tarball. Fixes FS#102

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoramips: fix build of TRENDnet TEW-69xGR images
Mathias Kresin [Fri, 19 Aug 2016 23:18:51 +0000 (01:18 +0200)]
ramips: fix build of TRENDnet TEW-69xGR images

The image generation for TEW-691GR and TEW-692GR was broken since
79d02229 due to the move of the UMedia recipe to another Makefile.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: move umedia build step to Makefile
Mathias Kresin [Fri, 19 Aug 2016 23:17:16 +0000 (01:17 +0200)]
ramips: move umedia build step to Makefile

Some rt3883 based boards need this one as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: TEW-691GR: fix switch and wireless
Mathias Kresin [Fri, 19 Aug 2016 18:46:50 +0000 (20:46 +0200)]
ramips: TEW-691GR: fix switch and wireless

Due to the missing phy-mode setting, the switch wasn't initialised.

The wireless requires an eeprom to work. Use the same mac addresses as
the stock firmware.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: TEW-692GR: fix switch and wireless
Mathias Kresin [Sat, 13 Aug 2016 22:47:14 +0000 (00:47 +0200)]
ramips: TEW-692GR: fix switch and wireless

The AR8327 initvals were not copied to the DTS during the switch from
mach file to device tree and broke the switch on the device.

The former used PORT6 related initvals were wrong and have been
corrected.

The phy mode setting for the switch was missing in the DTS as well.

The wireless requires an eeprom to work. The dual band wireless chips
have both bands enabled by default but only one band per chip is
working.

The stock firmware uses the following mac addresses:

LAN:    AA:BB:CC:DD:EE:E4
WAN:    AA:BB:CC:DD:EE:E4
2.4GHz: AA:BB:CC:DD:EE:E4
5 GHz:  AA:BB:CC:DD:EE:E8

Assuming the mac address range :E4 to :E8 is reserved for this device,
the MAC addresses were reorder to have a unique MAC address for each
interface:

LAN:    AA:BB:CC:DD:EE:E4
2.4GHz: AA:BB:CC:DD:EE:E4
WAN:    AA:BB:CC:DD:EE:E5
5 GHz:  AA:BB:CC:DD:EE:E8

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: rt3883: fix dtc compiler warning
Mathias Kresin [Tue, 16 Aug 2016 05:39:28 +0000 (07:39 +0200)]
ramips: rt3883: fix dtc compiler warning

Fixes the following compiler warning:

Warning (reg_format): "reg" property in /ethernet@10100000/port@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /ethernet@10100000/port@0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /ethernet@10100000/port@0

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: generate switch configuration for BTHOMEHUBV2B.
Sigurd Hogsbro [Wed, 17 Aug 2016 23:43:16 +0000 (07:43 +0800)]
lantiq: generate switch configuration for BTHOMEHUBV2B.

Split from HH3A as it appears to have a different switch.
https://en.wikipedia.org/wiki/BT_Home_Hub#Models_and_technical_specifications

Signed-off-by: Sigurd Hogsbro <sigurd@hogsbro.org>
8 years agoarchs38: Merge sd and ramfs subtargets in generic again
Alexey Brodkin [Fri, 19 Aug 2016 10:58:36 +0000 (13:58 +0300)]
archs38: Merge sd and ramfs subtargets in generic again

As it turned out we may actually build both initramfs and
SD-based images in one run with just a small tweak in
existing image/Makefile and so we do here.

We're back with one "generic" target for all ARC HS38-based bords.

Kudos to John for his patience and very helpful tips!

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Jo-Philipp Wich <jo@mein.io>
8 years agoltq-deu: fix cra_priority
Martin Schiller [Thu, 18 Aug 2016 10:03:17 +0000 (12:03 +0200)]
ltq-deu: fix cra_priority

With the default priority of 0, the DEU algos would be overlapped
by the generic algos (if available).

To fix this, set the cra_priority of the hardware algos to the
recommended value of 300/400.

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agoltq-deu: fix handling of data blocks with sizes != AES/DES block size
Martin Schiller [Thu, 18 Aug 2016 10:03:16 +0000 (12:03 +0200)]
ltq-deu: fix handling of data blocks with sizes != AES/DES block size

This fix is a backport from the lantiq UGW-6.1.1-MR1

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agoltq-deu: fix aes initialization vector handling
Martin Schiller [Thu, 18 Aug 2016 10:03:15 +0000 (12:03 +0200)]
ltq-deu: fix aes initialization vector handling

This fix is a backport from the lantiq UGW-6.1.1-MR1

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agotoolchain: include yasm in x86 toolchain
Daniel Golle [Fri, 19 Aug 2016 15:49:09 +0000 (17:49 +0200)]
toolchain: include yasm in x86 toolchain

Some libraries require yasm to build with in-line assembly for x86
targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agooxnas: set preinit interface in /etc/board.d/02_network
Daniel Golle [Mon, 15 Aug 2016 00:47:39 +0000 (02:47 +0200)]
oxnas: set preinit interface in /etc/board.d/02_network

Signed-off-by: Daniel Golle <daniel@makrotopia.org>