oweals/openwrt.git
8 years agobase-files: also generate configs when current is empty (FS#193)
Koen Vandeputte [Wed, 5 Oct 2016 09:26:35 +0000 (11:26 +0200)]
base-files: also generate configs when current is empty (FS#193)

Before a configuration is generated, an empty file is created to store
it in. (required by UCI)

If something happens during config generation
(power cut, interruption, ..) an empty file exists and it is never
regenerated again, causing some daemons to fail starting
(NTPD, logread, ..)

Fix this by also generating new configs if a critical file
is empty.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
8 years agolantiq: fix usb leds/trigger
Mathias Kresin [Wed, 5 Oct 2016 06:16:08 +0000 (08:16 +0200)]
lantiq: fix usb leds/trigger

Add USB led aliases to boards having an led which is meant to be used
as USB led according to the manuals.

Remove the kmod-ledtrig-usbdev from the default package selection for
boards not having an USB led. Add the kmod-ledtrig-usbdev to boards
where it is missing.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: use aliases device tree node for leds
Mathias Kresin [Tue, 4 Oct 2016 18:34:03 +0000 (20:34 +0200)]
lantiq: use aliases device tree node for leds

The chosen node is clearly the wrong place for aliases.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: cleanup led handling functions
Mathias Kresin [Tue, 4 Oct 2016 18:30:34 +0000 (20:30 +0200)]
lantiq: cleanup led handling functions

Use a more generic name for the lantiq_get_dt_led_chosen function.

Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led
function can be used to achieve the same.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: board.d: apply alphabetical order to led file
Mathias Kresin [Wed, 5 Oct 2016 08:05:51 +0000 (10:05 +0200)]
lantiq: board.d: apply alphabetical order to led file

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoinclude/download.mk: Use -7e compression instead of -6 by default
Daniel Engberg [Tue, 4 Oct 2016 11:36:53 +0000 (06:36 -0500)]
include/download.mk: Use -7e compression instead of -6 by default

Adds a slightly higher compression level to xz by default which roughly raises memory usage from 100MiB to about 200MiB during compression, about 10MiB for decompression. (Source: xz manpage)

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agoinclude/prereq-build.mk: Add xz-utils to make prereq
Daniel Engberg [Tue, 4 Oct 2016 11:34:43 +0000 (06:34 -0500)]
include/prereq-build.mk: Add xz-utils to make prereq

Add xz-utils to make prereq

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agoccache: disable assembler support, it breaks kernel initramfs images
Felix Fietkau [Wed, 5 Oct 2016 07:45:59 +0000 (09:45 +0200)]
ccache: disable assembler support, it breaks kernel initramfs images

The reason is that ccache does not recognize and process the .incbin
directive, so caching is unreliable.
See https://github.com/ccache/ccache/issues/136 for more information.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix kmod-sound-hda-core on Linux 3.18
Jo-Philipp Wich [Tue, 4 Oct 2016 23:35:52 +0000 (01:35 +0200)]
kernel: fix kmod-sound-hda-core on Linux 3.18

The kmod-sound-hda-core module attempts to package snd-hda-core.ko which
does not exist in Linux 3.18, therfore only use it for kernels >= 4.1

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agozynq: fix maintainer email address
Jo-Philipp Wich [Thu, 28 Jul 2016 12:27:43 +0000 (14:27 +0200)]
zynq: fix maintainer email address

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agozynq: convert to new image build code
Jo-Philipp Wich [Thu, 28 Jul 2016 12:19:16 +0000 (14:19 +0200)]
zynq: convert to new image build code

Convert the Zynq target to use the new image build code in order to fix
broken image generation after 9945a1dca5bb6bc522393f7583baf3a64df6ce11
changed the handling of CPIO images.

Also remove the misapplied ubifs feature flag since the image generation is
not using UBIFS for building FIT images.

As part of the conversion, move the DTB building and the uImage ramdisk
generation into separate build steps which can be generalized and shared
with other targets, like APM821xx, in the long run.

Also remove the legacy profile declarations and use new-style per-device
profiles which will allow different package sets per image in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agouhttpd: support using OpenSSL for certificate generation
Hannu Nyman [Tue, 4 Oct 2016 14:38:31 +0000 (17:38 +0300)]
uhttpd: support using OpenSSL for certificate generation

Support the usage of the OpenSSL command-line tool for generating
the SSL certificate for uhttpd. Traditionally 'px5g' based on
PolarSSL (or mbedTLS in LEDE), has been used for the creation.

uhttpd init script is enhanced by adding detection of an installed
openssl command-line binary (provided by 'openssl-util' package),
and if found, the tool is used for certificate generation.

Note: After this patch the script prefers to use the OpenSSL tool
if both it and px5g are installed.

This enables creating a truly OpenSSL-only version of LuCI
without dependency to PolarSSL/mbedTLS based px5g.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agoinclude/download.mk: generate reproducable SCM tarballs
Jo-Philipp Wich [Tue, 4 Oct 2016 16:33:55 +0000 (18:33 +0200)]
include/download.mk: generate reproducable SCM tarballs

Apply a number of changes to the tarball generation in order to produce
identical files on different systems:

1) Use an explicit `gzip -cn` to avoid storing file mtime in the gzip header
2) Instruct `tar` to unconditionally use uid and gid 0 for archive members
3) Instruct `tar` to sort archive members by file name
4) For SCMs that do not preserve file modification times like Git or Mercurial,
   use the date of the last commit to the repository and pass it as `--mtime`
   value to `tar`

After these changes, locally produced tarballs generated from SCM checkouts
should be identical on any system, simplifying the mirroring of cache archives.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: add missing snd-hda-intel module for Linux 3.18 and 4.1
Jo-Philipp Wich [Tue, 4 Oct 2016 22:43:10 +0000 (00:43 +0200)]
kernel: add missing snd-hda-intel module for Linux 3.18 and 4.1

Prior to kernel 4.4, the hda-intel module depends on the hda-controller
utility submodule so bundle it for the older kernel versions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: add missing config symbol (partial forward port of d2f4479870)
Felix Fietkau [Tue, 4 Oct 2016 15:54:23 +0000 (17:54 +0200)]
kernel: add missing config symbol (partial forward port of d2f4479870)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: fix regression on running make kernel_menuconfig
Felix Fietkau [Tue, 4 Oct 2016 15:51:48 +0000 (17:51 +0200)]
build: fix regression on running make kernel_menuconfig

The build system overrides HOST_LOADLIBES to add the staging dir to the
library search path. menuconfig needs -lncurses, add another override
for it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add missing symbols for Linux 3.18 (like d2f4479870)
Felix Fietkau [Tue, 4 Oct 2016 15:07:59 +0000 (17:07 +0200)]
kernel: add missing symbols for Linux 3.18 (like d2f4479870)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: move kmod-owl-loader to the right .mk file
Felix Fietkau [Tue, 4 Oct 2016 13:58:03 +0000 (15:58 +0200)]
kernel: move kmod-owl-loader to the right .mk file

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix sound-hda-core dependency
Felix Fietkau [Tue, 4 Oct 2016 13:56:53 +0000 (15:56 +0200)]
kernel: fix sound-hda-core dependency

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: leaving behind incomplete metadata files on cancelled builds
Felix Fietkau [Sun, 2 Oct 2016 09:40:06 +0000 (11:40 +0200)]
build: leaving behind incomplete metadata files on cancelled builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add missing symbols for Linux 4.1
Jo-Philipp Wich [Tue, 4 Oct 2016 13:59:30 +0000 (15:59 +0200)]
kernel: add missing symbols for Linux 4.1

Add some missing symbols to the generic 4.1 kernel config which got triggered
by the introduction of the hda-intel sound module.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude: relax umask check
Jo-Philipp Wich [Tue, 4 Oct 2016 12:05:56 +0000 (14:05 +0200)]
include: relax umask check

For now we only want to ensure that the group permission mask is permissive
enough to not clobber required permissions on the rootfs, so allow less
strict masks as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: backport usbport LED trigger from 4.9
Rafał Miłecki [Tue, 4 Oct 2016 09:22:49 +0000 (11:22 +0200)]
kernel: backport usbport LED trigger from 4.9

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoramips: add support for Zyxel NBG-419N2 (WAP3205v2)
Klaus [Sun, 24 Jul 2016 15:37:52 +0000 (17:37 +0200)]
ramips: add support for Zyxel NBG-419N2 (WAP3205v2)

applied bb-final-ramips-add-zyxel-nbg-419n2.patch from
123serge123, found at https://yadi.sk/d/1ZV0lKJwbTE65;
see https://forum.openwrt.org/viewtopic.php?pid=246905#p246905,
modified slightly to fit to CC release and to new lede build
system: image/rt305x.mk include file is used now
changed NBG-419N2.dts format to fit style of other dts files

Signed-off-by: Klaus <k-laus@quantentunnel.de>
8 years agogre: Support fqdn as remote tunnel endpoint
Hans Dedecker [Mon, 3 Oct 2016 08:56:45 +0000 (10:56 +0200)]
gre: Support fqdn as remote tunnel endpoint

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agoar71xx: update kernel config symbols
Piotr Dymacz [Thu, 29 Sep 2016 09:19:55 +0000 (11:19 +0200)]
ar71xx: update kernel config symbols

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: fix boards order in lib/upgrade/platform.sh
Piotr Dymacz [Thu, 29 Sep 2016 10:00:17 +0000 (12:00 +0200)]
ar71xx: base-files: fix boards order in lib/upgrade/platform.sh

Keep also case sections in alphabetical order.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: cleanups in lib/upgrade/platform.sh
Piotr Dymacz [Thu, 29 Sep 2016 09:44:44 +0000 (11:44 +0200)]
ar71xx: base-files: cleanups in lib/upgrade/platform.sh

This includes:

- code style fixes
- fix boards order within case sections

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: comsetic cleanups in files/arch/mips/ath79/{Makefile,machtypes.h}
Piotr Dymacz [Thu, 29 Sep 2016 09:17:46 +0000 (11:17 +0200)]
ar71xx: comsetic cleanups in files/arch/mips/ath79/{Makefile,machtypes.h}

Keep everything in alphabetical order and aligned in columns.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: cleanups in etc/board.d/01_leds
Piotr Dymacz [Thu, 29 Sep 2016 07:49:45 +0000 (09:49 +0200)]
ar71xx: base-files: cleanups in etc/board.d/01_leds

This includes:

- use of local 'board' variable in LED names, wherever possible
- merge of boards with exactly the same LED configuration

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: fix LED names for GL Innovations boards
Piotr Dymacz [Thu, 29 Sep 2016 07:18:05 +0000 (09:18 +0200)]
ar71xx: fix LED names for GL Innovations boards

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: fix code style in etc/board.d/01_leds
Piotr Dymacz [Thu, 29 Sep 2016 06:52:15 +0000 (08:52 +0200)]
ar71xx: base-files: fix code style in etc/board.d/01_leds

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: combine boards with the same config in etc/diag.sh
Piotr Dymacz [Wed, 28 Sep 2016 00:14:33 +0000 (02:14 +0200)]
ar71xx: base-files: combine boards with the same config in etc/diag.sh

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: cleanups in etc/diag.sh
Piotr Dymacz [Wed, 28 Sep 2016 00:02:40 +0000 (02:02 +0200)]
ar71xx: base-files: cleanups in etc/diag.sh

This includes:

- code style fixes
- use of local 'board' variable in LED names, wherever possible

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: fix boards order in etc/board.d/02_network
Piotr Dymacz [Tue, 27 Sep 2016 22:48:00 +0000 (00:48 +0200)]
ar71xx: base-files: fix boards order in etc/board.d/02_network

Keep everything in alphabetical order. Boards are ordered in two steps,
first within/inside common configuration (case section), then sections,
globally.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: cleanups in etc/board.d/02_network
Piotr Dymacz [Tue, 27 Sep 2016 22:08:37 +0000 (00:08 +0200)]
ar71xx: base-files: cleanups in etc/board.d/02_network

This includes:

- code style fixes
- removal of huge comment (it should be in doc, not here) and some small ones
- removal of redundant config for DR531/WPJ531 as the default is the same
- merge of boards with exactly the same interfaces config

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: base-files: rework etc/board.d/02_network
Piotr Dymacz [Tue, 27 Sep 2016 21:41:12 +0000 (23:41 +0200)]
ar71xx: base-files: rework etc/board.d/02_network

Convert etc/board.d/02_network in ar71xx target to the same shape
as we have in ramips target. Split code into two new functions:

- interface/s setup in ar71xx_setup_interfaces()
- MAC/s setup in ar71xx_setup_macs()

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoiproute2: tc cake qdisc add nat, docsis & ptm modes
Kevin Darbyshire-Bryant [Wed, 21 Sep 2016 08:45:33 +0000 (09:45 +0100)]
iproute2: tc cake qdisc add nat, docsis & ptm modes

Add cake nat de-masquerading mode: nat, nonat.
Also docsis & ptm overhead related keywords: nat, nonat,
ptm, docsis-downstream-ip, docsis-downstream, docsis-upstream-ip
& docsis-upstream.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agokmod-sched-cake: update to 161002 version
Kevin Darbyshire-Bryant [Sun, 2 Oct 2016 08:36:19 +0000 (09:36 +0100)]
kmod-sched-cake: update to 161002 version

Implement IPv4 de-masquerading. *
Implement PTM (VDSL2) overhead 65/64 compensation. *
Update diffserv4 priorities.

*Requires corresponding update to iproute2/tc for user/kernel space
handling.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agomvebu: fix sysupgrade
Aaron Curley [Sun, 2 Oct 2016 20:15:25 +0000 (13:15 -0700)]
mvebu: fix sysupgrade

sysupgrade command fails due to missing U-Boot environment-processing binaries on sysupgrade ramdisk. The missing binaries result in the following output:
Switching to ramdisk...
Performing system upgrade...
ash: /usr/sbin/fw_printenv: not found
ash: fw_setenv: not found
ash: touch: not found
cannot find target partition

Fixes FS#197.

Signed-off-by: Aaron Curley <accwebs@gmail.com>
8 years agobase-files: remove non-working filter option for wifi detect
Christian Lamparter [Thu, 29 Sep 2016 17:55:33 +0000 (19:55 +0200)]
base-files: remove non-working filter option for wifi detect

This patch removes the non-working wifi driver filter for
the wifi detection script.

I figured that rather than replacing ${2:-$DRIVERS} with
${1:-$DRIVERS}, it would be better to remove it. Nobody
needed it in the previous years.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 years agolinux/modules/fs: Fix missing vfat dependencies
Daniel Dickinson [Thu, 29 Sep 2016 08:15:46 +0000 (04:15 -0400)]
linux/modules/fs: Fix missing vfat dependencies

vfat filesystem fails to mount due to missing codepages with
factory-formatted flash drives.  Depend on cp437 iso8559-1 and
utf8 nls modules as this covers most factory-formatted vfat
filesystems.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
8 years agopackage/devel/trace-cmd: Update to 2.6
diizzyy [Mon, 3 Oct 2016 16:59:55 +0000 (18:59 +0200)]
package/devel/trace-cmd: Update to 2.6

Update to 2.6

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/patchelf: Update to 0.9 and remove patch
Daniel Engberg [Sun, 2 Oct 2016 22:18:37 +0000 (17:18 -0500)]
tools/patchelf: Update to 0.9 and remove patch

Updates patchelf to 0.9
Patch removed, upstreamed.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/upx: Update to 3.91 and use new tarball url
diizzyy [Sun, 2 Oct 2016 22:45:17 +0000 (00:45 +0200)]
tools/upx: Update to 3.91 and use new tarball url

Updates UPX to version 3.91 and also updates tarball url

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/ppl: Update to 1.2
diizzyy [Sun, 2 Oct 2016 22:27:48 +0000 (00:27 +0200)]
tools/ppl: Update to 1.2

Updates ppl to version 1.2

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/mpfr: Update to 3.1.5 and change to xz tarball
diizzyy [Sun, 2 Oct 2016 21:54:13 +0000 (23:54 +0200)]
tools/mpfr: Update to 3.1.5 and change to xz tarball

Updates mpfr to 3.1.5 and changes tarball format to xz

Signed-off-by: Daniel Engberg daniel.engberg.lists@pyret.net
8 years agotools/expat: Update to 2.2.0
diizzyy [Sun, 2 Oct 2016 21:03:15 +0000 (23:03 +0200)]
tools/expat: Update to 2.2.0

Updates expat to 2.2.0

Fixes several CVEs:
CVE-2016-0718
CVE-2016-4472
CVE-2016-5300
CVE-2012-6702

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/e2fsprogs: Update to 1.43.3
diizzyy [Sun, 2 Oct 2016 20:55:23 +0000 (22:55 +0200)]
tools/e2fsprogs: Update to 1.43.3

Update e2fsprogs to 1.43.3

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agotools/ccache: Update ccache 3.3.2 and refresh patch
Daniel Engberg [Sun, 2 Oct 2016 20:44:06 +0000 (15:44 -0500)]
tools/ccache: Update ccache 3.3.2 and refresh patch

Update ccache 3.3.2 and refresh patch

Preserving the original patch comments here by Karl Vogel:

"From 90762a9b8d9a50b6176f10bd6c2e2b9501117561 Mon Sep 17 00:00:00 2001
From: Karl Vogel <karl.vogel@gmail.com>
Date: Tue, 14 Jul 2015 11:05:33 +0200
Subject: [PATCH] Include environment variable GCC_HONOUR_COPTS in hash.

The OpenWRT patch, 910-mbsd_multi.patch, to GCC adds an extra
compilation flag, -fhonour-copts, which is influenced by an
environment variable called GCC_HONOUR_COPTS.

Include this environment var in the hash calculation as otherwise
the gcc stdout warning from a previous compilation might be shown
where, even when GCC_HONOUR_COPTS is in 's'ilent mode.

Signed-off-by: Karl Vogel <karl.vogel@gmail.com>"
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agokernel/sound: Add support for PCI HD Audio devices
Daniel Dickinson [Thu, 29 Sep 2016 08:19:08 +0000 (04:19 -0400)]
kernel/sound: Add support for PCI HD Audio devices

This patch set adds support for PCI Intel HD Audio
sound devices.  This is useful for multimedia packages
in the packages feed that one may use to create audio
servers.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
8 years agoramips: Add support for Phicomm K2 PSG1218
Xuefu Lin [Fri, 30 Sep 2016 11:41:12 +0000 (19:41 +0800)]
ramips: Add support for Phicomm K2 PSG1218

- CPU: MT7620A 580MHz
- Flash: 8MB - RAM: 64MB
- External PA+LNA on both WLAN2.4 and WLAN5
- 4x LAN ethernet and 1x WAN ethernet

Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
8 years agomountd: update to latest git HEAD
John Crispin [Fri, 30 Sep 2016 15:29:49 +0000 (17:29 +0200)]
mountd: update to latest git HEAD

adds a cmake fix

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoinclude: add umask prereq check
Jo-Philipp Wich [Tue, 4 Oct 2016 09:04:50 +0000 (11:04 +0200)]
include: add umask prereq check

When building LEDE with umask values other than 022, the resulting packages
will embed improper permissions, which may lead to random errors or non-
functional scripts on the target.

In order to make users aware of this problem, add a build-prereq check to
assert a correct umask setting before starting the build.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agovalgrind: improve mips support
Hauke Mehrtens [Mon, 3 Oct 2016 14:23:17 +0000 (16:23 +0200)]
valgrind: improve mips support

We have to remove the FPU check, it will run in an endless loop on LEDE
when compile without FPU emulation support.
The second patch fixes this problem: valgrind: mmap(0x400000, 303104)
failed in UME with error 22 (Invalid argument).

valgrind still does not support mips16, build LEDE without mips16 support.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agovalgrind: remove 110-add_a_out_h.patch
Hauke Mehrtens [Mon, 3 Oct 2016 14:22:28 +0000 (16:22 +0200)]
valgrind: remove 110-add_a_out_h.patch

This patch is not needed any more, valgrind is not using a.out.h any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agontiq: make i2c-lantiqi driver compile again
Hauke Mehrtens [Sun, 2 Oct 2016 20:12:44 +0000 (22:12 +0200)]
ntiq: make i2c-lantiqi driver compile again

It missed some changes needed for kernel 4.4. This is only used by the
Falcon SoC and not for the xRX SoCs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agobcm53xx: use the latest XHCI doorbell patch sent for upstream
Rafał Miłecki [Sat, 1 Oct 2016 22:19:58 +0000 (00:19 +0200)]
bcm53xx: use the latest XHCI doorbell patch sent for upstream

The main difference is it supports DT binding. This allows us to use DT
for specifying controller and the new standalone USB 3.0 PHY driver.
Thanks to that we don't need out of tree patch adding PHY initialization
to the controller driver anymore.

8 years agobcm53xx: drop unneeded fix for usb3-lpm-capable DT property
Rafał Miłecki [Sat, 1 Oct 2016 17:16:40 +0000 (19:16 +0200)]
bcm53xx: drop unneeded fix for usb3-lpm-capable DT property

This problem has been fixed by upstream commit 757de492f2d ("xhci: fix
platform quirks overwrite regression in 4.7-rc1").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: switch to standalone USB 2.0 PHY driver
Rafał Miłecki [Sat, 1 Oct 2016 14:22:43 +0000 (16:22 +0200)]
bcm53xx: switch to standalone USB 2.0 PHY driver

This drops built-in support for USB 2.0 PHY and starts using separated
driver that was upstreamed & backported some time ago.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add patch specifying USB controllers in DT
Rafał Miłecki [Sat, 1 Oct 2016 14:22:24 +0000 (16:22 +0200)]
bcm53xx: add patch specifying USB controllers in DT

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: backport BCM5301X patches from 2019-09-30
Rafał Miłecki [Fri, 30 Sep 2016 13:43:08 +0000 (15:43 +0200)]
bcm53xx: backport BCM5301X patches from 2019-09-30

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agonetfilter: fix file conflicts between kmod-ipt- and kmod-nft- packages
Matthias Schiffer [Fri, 30 Sep 2016 21:28:21 +0000 (23:28 +0200)]
netfilter: fix file conflicts between kmod-ipt- and kmod-nft- packages

The nf_reject_* and nf_nat_masquerade_* modules are moved into the
corresponding kmod-nf- packages. Appropriate dependencies are added to the
kmod-nft- packages.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agokernel: fix module dependency checking
Matthias Schiffer [Fri, 30 Sep 2016 20:40:06 +0000 (22:40 +0200)]
kernel: fix module dependency checking

Since the kernel makefile is using .ONESHELL, we need to add -e to
.SHELLFLAGS so errors are not ignored.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agokernel: update to v4.4.23
Álvaro Fernández Rojas [Fri, 30 Sep 2016 12:12:34 +0000 (14:12 +0200)]
kernel: update to v4.4.23

Refresh patches for all targets that support kernel 4.4.
compile/run-tested on brcm2708/bcm2710 only.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agokernel: update kernel 4.4 to version 4.4.22
Stijn Segers [Fri, 30 Sep 2016 06:34:01 +0000 (08:34 +0200)]
kernel: update kernel 4.4 to version 4.4.22

Forgot to update kernel-version.mk, so updated patch. Compile-tested on x86/64 and ar71xx; run-tested on x86/64 and ar71xx.

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
8 years agoath9k: remove patch causing stability issues with powersave devices (FS#176)
Felix Fietkau [Wed, 28 Sep 2016 07:49:31 +0000 (09:49 +0200)]
ath9k: remove patch causing stability issues with powersave devices (FS#176)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoiproute2: fix no fortify build failure
Kevin Darbyshire-Bryant [Fri, 30 Sep 2016 06:12:26 +0000 (07:12 +0100)]
iproute2: fix no fortify build failure

Fix rt_names build failure when FORTIFY_SOURCE disabled.
Include limits.h which otherwise gets automatically included
by fortify headers.

Solves FS #194

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agoipq806x: update Netgear R7800 device tree
dissent1 [Mon, 26 Sep 2016 19:18:37 +0000 (15:18 -0400)]
ipq806x: update Netgear R7800 device tree

-add spi pins
-move mdio and rgmii pinctrl from gmac and mdio into pinmux node
-add i2c4 pinctrl into rpm node
-add pin details into several nodes
-update gmac1 and gmac2 parameters
-update mdio phy0 and phy4 registers by ddwrt devs findings
-fix i2c4 pin drive-strengh
-remove pcie pins as it's already present in ipq8065 DT

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agotarget/{sdk,imagebuild}: Fix for symlink-tree
Daniel Dickinson [Thu, 29 Sep 2016 08:14:17 +0000 (04:14 -0400)]
target/{sdk,imagebuild}: Fix for symlink-tree

With symlink tree some directories are just symlinked which
means IB and SDK end up with a symlink instead of an actual
directory; this fixes the missing files by dereferencesing
the directories instead of copying the symlinks.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
8 years agobrcmfmac43430-firmware: remove package and switch to linux-firmware
Álvaro Fernández Rojas [Fri, 16 Sep 2016 09:48:22 +0000 (11:48 +0200)]
brcmfmac43430-firmware: remove package and switch to linux-firmware

Now that the firmware for BCM43430 has been submitted to linux-firmware use it
and remove RPiDistro package.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agokernel: do not enable the unpackaged rfkill-gpio driver
Felix Fietkau [Thu, 29 Sep 2016 16:25:49 +0000 (18:25 +0200)]
kernel: do not enable the unpackaged rfkill-gpio driver

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add missing config symbols
Felix Fietkau [Thu, 29 Sep 2016 16:07:13 +0000 (18:07 +0200)]
kernel: add missing config symbols

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: add support for SFP
Jonas Gorski [Thu, 29 Sep 2016 10:16:51 +0000 (12:16 +0200)]
mvebu: add support for SFP

Add patches for SFP support and package it for ClearFog. Tested with a
Juniper SFP module.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
8 years agomvebu: disable MSI interrupts
Jonas Gorski [Thu, 29 Sep 2016 10:19:28 +0000 (12:19 +0200)]
mvebu: disable MSI interrupts

MSI interrupts do not seem to be working on mvebu, and they break
ath10k. Since nothing else seems to be using them, especially not
mwlwifi, disable them until we can fix MSI interrupts.

Works around the following issue:
[    9.001457] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[   10.001453] ath10k_pci 0000:02:00.0: Service connect timeout
[   10.007126] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[   10.092224] ath10k_pci 0000:02:00.0: could not init core (-110)
[   10.098177] ath10k_pci 0000:02:00.0: could not probe fw (-110)

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add STAGING_DIR_HOST/lib to host library search path
Felix Fietkau [Thu, 29 Sep 2016 11:34:21 +0000 (13:34 +0200)]
kernel: add STAGING_DIR_HOST/lib to host library search path

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: fix rfkill dependency
John Crispin [Thu, 29 Sep 2016 09:38:52 +0000 (11:38 +0200)]
mac80211: fix rfkill dependency

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: Xiaomi MiWiFi Nano: fix status led
Cezary Jackiewicz [Wed, 28 Sep 2016 17:08:38 +0000 (19:08 +0200)]
ramips: Xiaomi MiWiFi Nano: fix status led

- add status led for Xiaomi MiWiFi Nano
- revert https://github.com/lede-project/source/commit/af1e70b4a730e91ce1668d506ebc5c1c8cf5abf5 , this should not be added.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years agokernel: fix build error in sign-file.c with libressl
Felix Fietkau [Thu, 29 Sep 2016 09:23:27 +0000 (11:23 +0200)]
kernel: fix build error in sign-file.c with libressl

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add missing config symbols
Felix Fietkau [Thu, 29 Sep 2016 09:13:03 +0000 (11:13 +0200)]
kernel: add missing config symbols

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: use upstream patches for rtl8xxxu
Álvaro Fernández Rojas [Thu, 29 Sep 2016 07:48:09 +0000 (09:48 +0200)]
mac80211: use upstream patches for rtl8xxxu

Also improves rtl8188eu support.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agokernel: add missing config symbols
Felix Fietkau [Wed, 28 Sep 2016 14:59:04 +0000 (16:59 +0200)]
kernel: add missing config symbols

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoprocd: update to latest git HEAD
John Crispin [Wed, 28 Sep 2016 10:06:57 +0000 (12:06 +0200)]
procd: update to latest git HEAD

this adds 2 new inittab handlers
* askconsolelate
* respawnlate

Signed-off-by: John Crispin <john@phrozen.org>
8 years agonetifd: update to the latest version, adds various fixes
Felix Fietkau [Wed, 28 Sep 2016 07:56:26 +0000 (09:56 +0200)]
netifd: update to the latest version, adds various fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotoolchain: Rework external toolchain libc selection
Florian Fainelli [Mon, 19 Sep 2016 19:59:32 +0000 (12:59 -0700)]
toolchain: Rework external toolchain libc selection

Make it a choice menu which offers the 3 C libraries we know about: glibc,
uClibc and musl. While at it, make it possible for the external toolchain libc
to select USE_GLIBC, USE_UCLIBC or USE_MUSL which is used by several packages
to conditionally include specific CFLAGS (e.g: iproute2).

Because USE_GLIBC et al. can now be selected by external toolchains, we need to
restrict the per-libc menus to check on !EXTERNAL_TOOLCHAIN.

While at it, make musl the default C library for external toolchain to match
the internal toolchain.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath10k-firmware: move to firmware section in buildroot
Stijn Segers [Sun, 18 Sep 2016 20:44:32 +0000 (22:44 +0200)]
ath10k-firmware: move to firmware section in buildroot

This patch moves the ath10k firmware packages to the firmware submenu
in the buildroot, where it belongs.

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
8 years agoar71xx: Do not use a hardcoded ath10k firmware mac address
Martin Blumenstingl [Sun, 18 Sep 2016 21:29:35 +0000 (23:29 +0200)]
ar71xx: Do not use a hardcoded ath10k firmware mac address

ar71xx has an init-script for special devices where the ath10k OTP
calibration data is stored on the PCIe card's EEPROM (and thus can only
be read by ath10k). Unfortunately the OTP data uses the default mac
address (= all devices come with the same mac address, which leads to
problems when you have multiple of these devices in the same network).

To work around this the mac address is patched in the firmware during
the first boot of the device. To prevent flash wear this was only done
if the ath10k firmware matched a hardcoded md5sum.
However, if the md5sum does not match this can mean that either the mac
address was already patched (which is fine) - unfortunately it can also
mean that the firmware version was updated without updating the
hardcoded md5sum.

Change the "was the mac address already patched" check to actually
compare the mac address inside the ath10k firmware.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agoath10k-firmware: update the qca988x firmware to 10.2.4.70.54
Martin Blumenstingl [Sun, 18 Sep 2016 21:29:34 +0000 (23:29 +0200)]
ath10k-firmware: update the qca988x firmware to 10.2.4.70.54

Use firmware version 10.2.4.70.54 from kvalo's git repository. The old
version (even though it's version number is greater) is an old version
from September 2015.
Using only the firmware versions from kvalo's git repo is recommended,
because those are tested by QCA's internal QCA.

The QCA988X directory received a small reorganization as a "hw2.0"
subdirectory was added - this patch also takes care of that as
board.bin was moved to that subdirectory.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agotoolchain: Force installation into /lib
Florian Fainelli [Thu, 22 Sep 2016 00:32:10 +0000 (17:32 -0700)]
toolchain: Force installation into /lib

For 64-bit capable systems, a symbolic link is set up for /lib64 to point to
/lib, so make sure the installation goes into /lib, irrespective of where the C
library files come from in an external toolchain.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
8 years agokernel: add missing config symbol after rfkill change
Felix Fietkau [Wed, 28 Sep 2016 06:29:50 +0000 (08:29 +0200)]
kernel: add missing config symbol after rfkill change

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agorfkill: add fake rfkill support
John Crispin [Tue, 27 Sep 2016 17:06:07 +0000 (19:06 +0200)]
rfkill: add fake rfkill support

allow building of modules depending on RFKILL even if RFKILL is not enabled.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoperf: fix build with musl on PowerPC
Matthias Schiffer [Wed, 28 Sep 2016 04:14:09 +0000 (06:14 +0200)]
perf: fix build with musl on PowerPC

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agokernel: remove echainiv.ko from kmod-crypto-iv
Matthias Schiffer [Wed, 28 Sep 2016 00:36:56 +0000 (02:36 +0200)]
kernel: remove echainiv.ko from kmod-crypto-iv

There is a separate package kmod-crypto-echainiv for echainiv.ko. Selecting
both packages led to a conflict, so remove the file from kmod-crypto-iv.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agomac80211: backport brcmfmac changes from 2016-09-27
Rafał Miłecki [Tue, 27 Sep 2016 16:18:54 +0000 (18:18 +0200)]
mac80211: backport brcmfmac changes from 2016-09-27

This fixes bug that could cause WARNING on every add_key/del_key call.
It also replaces WARNING with a simple message. They may still occur
e.g. on station going out of range and A-MPDU stall in the firmware.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoar71xx: add support for Cisco Meraki Z1 Cloud Managed Teleworker Gateway
Chris Blake [Tue, 20 Sep 2016 12:14:29 +0000 (07:14 -0500)]
ar71xx: add support for Cisco Meraki Z1 Cloud Managed Teleworker Gateway

This patch adds support for Cisco's Z1.
Detailed instructions for the flashing the device can
be found in the OpenWrt wiki:
<https://wiki.openwrt.org/toh/meraki/z1>

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agoopenssl: update to 1.0.2j
Magnus Kroken [Mon, 26 Sep 2016 15:21:52 +0000 (17:21 +0200)]
openssl: update to 1.0.2j

A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.

Patches applied upstream:
* 301-fix_no_nextprotoneg_build.patch
* 302-Fix_typo_introduced_by_a03f81f4.patch

Security advisory: https://www.openssl.org/news/secadv/20160926.txt

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
8 years agoramips : add support for Newifi D1
BangLang Huang [Tue, 27 Sep 2016 06:25:04 +0000 (14:25 +0800)]
ramips : add support for Newifi D1

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
8 years agoramips : add support for PandoraBox D1
BangLang Huang [Tue, 27 Sep 2016 06:23:27 +0000 (14:23 +0800)]
ramips : add support for PandoraBox D1

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
8 years agofortify-headers: update to 0.8
Kevin Darbyshire-Bryant [Sun, 25 Sep 2016 03:22:38 +0000 (04:22 +0100)]
fortify-headers: update to 0.8

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agolinux-firmware: Add mirrors
diizzyy [Fri, 23 Sep 2016 11:41:41 +0000 (13:41 +0200)]
linux-firmware: Add mirrors

Adds Google's mirrors as primary source and kernel.org as fallback.
Discussed in #lede-dev on Freenode

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>