openwrt/staging/chunkeey.git
7 years agoar71xx: fix up mikrotik subtarget kernel config
Piotr Dymacz [Fri, 27 Jan 2017 20:39:31 +0000 (21:39 +0100)]
ar71xx: fix up mikrotik subtarget kernel config

Disable all devices which do not belong to the mikrotik subtarget.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agoar71xx: fix up nand subtarget kernel config
Piotr Dymacz [Fri, 27 Jan 2017 15:42:37 +0000 (16:42 +0100)]
ar71xx: fix up nand subtarget kernel config

Disable all devices which do not belong to the nand subtarget.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agoar71xx: select ATH79_NVRAM only by boards actually use it
Piotr Dymacz [Fri, 27 Jan 2017 14:50:35 +0000 (15:50 +0100)]
ar71xx: select ATH79_NVRAM only by boards actually use it

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agort5350: added pcm interface in .dtsi
Giuseppe Lippolis [Sun, 29 Jan 2017 19:39:40 +0000 (20:39 +0100)]
rt5350: added pcm interface in .dtsi

Added the missing audio pcm interface in the .dtsi file for the rt5350
device. The update has been verified from the data get from the datasheet
and is very similar to the mt7620a.dtsi

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
7 years agoopenvpn: adding key_direction to append_params.
Brandon Koepke [Thu, 2 Feb 2017 17:51:05 +0000 (09:51 -0800)]
openvpn: adding key_direction to append_params.

key_direction shows up as an openvpn option in the user-interface but does not end up in the /var/etc/openvpn*.conf file. Adding it to the list here fixed the issue for me.

Signed-off-by: Brandon Koepke <bdkoepke@fastmail.com>
7 years agogeneric: rtl8366rb: fix compatible string
Mathias Kresin [Thu, 2 Feb 2017 21:42:25 +0000 (22:42 +0100)]
generic: rtl8366rb: fix compatible string

Use a vendor prefix as it has to be for all not core driver. Update the
compatible string in the device tree files accordingly.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix Sercomm NA930 compatible string
Mathias Kresin [Thu, 2 Feb 2017 21:35:59 +0000 (22:35 +0100)]
ramips: fix Sercomm NA930 compatible string

The Sercomm NA930 is not a mt7620a evaluation board and shouldn't use
the eval board compatible string.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: remove Planex CS-QR10 sound device tree node
Mathias Kresin [Thu, 2 Feb 2017 21:34:53 +0000 (22:34 +0100)]
ramips: remove Planex CS-QR10 sound device tree node

The comptible string is neither added by any LEDE patch nor exists in
in the kernel. Drop the sound node which was obviously added
accidentally with 9195d8da ("ramips: DTS rework").

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: cleanup SPI flash device tree properties usage
Mathias Kresin [Thu, 2 Feb 2017 21:11:23 +0000 (22:11 +0100)]
ramips: cleanup SPI flash device tree properties usage

Use only the jedec,spi-nor compatible string. Everything else either
never worked or is only support to keep compatibility.

Remove the linux,modalias property. It is obsolete since kernel 4.4.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agogeneric: mtd: update settings of mx25u3235f
André Valentin [Wed, 1 Feb 2017 21:08:51 +0000 (22:08 +0100)]
generic: mtd: update settings of mx25u3235f

This patch enabled 4K, dual and quad read. Settings have been verified with
a real device.

Signed-off-by: André Valentin <avalentin@marcant.net>
7 years agoipq806x: fixup nbg6817 internal mmc and switch configuration in DTS
André Valentin [Thu, 2 Feb 2017 11:05:32 +0000 (12:05 +0100)]
ipq806x: fixup nbg6817 internal mmc and switch configuration in DTS

The setting mmc-ddr-1_8v in the platform dts leads to read errors. The
device is unusable and system reboots in a loop. Because NBG6817 is the
only mmc device, I removed it in base dts.

The second change removes settings now present in base dts.

The third change references was a wrong conversion of constants in the switch settings.
Switch now initializes again.

Signed-off-by: André Valentin <avalentin@marcant.net>
7 years agokernel: bump to 4.4.46
Koen Vandeputte [Wed, 1 Feb 2017 16:02:21 +0000 (17:02 +0100)]
kernel: bump to 4.4.46

Refreshed patches for all supported targets.

Compile-tested on ar71xx, cns3xxx, imx6, mt7621, oxnas and x86/64.
Run-tested on ar71xx, cns3xxx, imx6 and mt7621.

Tested-by: Stijn Segers <francesco.borromini@inventati.org>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoubox: support quiet modprobe, support millisecond log timestamp accuracy
Jo-Philipp Wich [Thu, 2 Feb 2017 17:30:25 +0000 (18:30 +0100)]
ubox: support quiet modprobe, support millisecond log timestamp accuracy

Update ubox to latest Git HEAD in order to import the following fixes:

ac2d43e kmodloader: support '-q' quiet option
f8d3d16 ubox: Add an option for more accurate timestamps in log

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath9k: add a warning to the tx99 config option
Felix Fietkau [Thu, 2 Feb 2017 11:25:01 +0000 (12:25 +0100)]
ath9k: add a warning to the tx99 config option

Lots of users try random stuff when they encounter any kind of
difficulty. I've had to debug a number of cases where people had enabled
this option for no reason. Hopefully this warning will reduce the number
of useless support cases.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: brcmfmac: backport wowlan netdetect fixes
Rafał Miłecki [Thu, 2 Feb 2017 10:23:17 +0000 (11:23 +0100)]
mac80211: brcmfmac: backport wowlan netdetect fixes

I needed a moment to figure out relation between this patchset and the
nl80211: fix validation of scheduled scan info for wowlan netdetect

It appears nl80211 commit will go on top of brcmfmac changes so it's
safe to backport these patches.

One patch that was excluded is commit 2a2a5d1835b6 ("brcmfmac: add
.update_connect_params() callback") as it depends on missing commit
088e8df82f91 ("cfg80211: Add support to update connection parameters").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport PSM watchdog improvements
Rafał Miłecki [Thu, 2 Feb 2017 09:04:57 +0000 (10:04 +0100)]
mac80211: brcmfmac: backport PSM watchdog improvements

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport minor code cleanups
Rafał Miłecki [Thu, 2 Feb 2017 08:59:05 +0000 (09:59 +0100)]
mac80211: brcmfmac: backport minor code cleanups

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport 4.10 fixes & typo fix
Rafał Miłecki [Thu, 2 Feb 2017 08:29:21 +0000 (09:29 +0100)]
mac80211: brcmfmac: backport 4.10 fixes & typo fix

This includes memory leak fix in initialization path.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport scheduled scan cleanup and chip support
Rafał Miłecki [Thu, 2 Feb 2017 08:27:20 +0000 (09:27 +0100)]
mac80211: brcmfmac: backport scheduled scan cleanup and chip support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: backport some old patches from 2016
Rafał Miłecki [Thu, 2 Feb 2017 08:21:13 +0000 (09:21 +0100)]
mac80211: brcmfmac: backport some old patches from 2016

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: rename brcmfmac patches to use higher prefix
Rafał Miłecki [Thu, 2 Feb 2017 08:39:31 +0000 (09:39 +0100)]
mac80211: rename brcmfmac patches to use higher prefix

There are more patches to backport that should go before these.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoccache, samba36: fix samba.org addresses to use https
Hannu Nyman [Wed, 1 Feb 2017 21:17:37 +0000 (23:17 +0200)]
ccache, samba36: fix samba.org addresses to use https

samba.org has started to enforce https and
currently plain http downloads with curl/wget fail,
so convert samba.org download links to use https.

Modernise links at the same time.

Also convert samba.org URL fields to have https.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoscripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback
Jo-Philipp Wich [Tue, 31 Jan 2017 06:50:29 +0000 (07:50 +0100)]
scripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback

Add a fallback case to get_source_date_epoch.sh which reports the modification
time of the script itself in case there is no SCM information available, e.g.
when downloading .tar.gz or .zip tarballs produced by Github.

Also fix the mercurial case while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agodnsmasq: make DHCPv6 viable for standalone dnsmasq install
Eric Luehrsen [Thu, 22 Dec 2016 18:20:25 +0000 (13:20 -0500)]
dnsmasq: make DHCPv6 viable for standalone dnsmasq install

dnsmasq has sufficient services to meet the needs of DHCP
and RA with IP6 for single router router users. This is
the most common use for consumer routers. Its reenforced
as most ISP tend to only DHCP-PD /64. dnsmasq has year
over year demonstrated great flexibility in its option
set, and support for off-standard DHCP clients.

odhcpd has enhanced capabilities focused on IP6 such
as DHCP/RA relay and NDP proxy. However, it is not as
flexible in its option set. odhcpd is not as forgiving
with off-standard DHCP clients. Some points may represent
a long term TODO list, but it is the state currently.

These changes make any such combination possible. Already
odhcpd can be set as the main dhcp server. Now odhcpd
can be removed or disabled and dnsmasq will take over
if DHCPv6 compiled in. The existing DHCPv6 and RA UCI
are translated into dnsmasq.conf. The changes focus on
'--dhcp-range', '--dhcp-host', and '--dhcp-options'.

DHCP host ID is least 16 bits [::1000-::FFFF], but
leaves low range for typical infrastructure assignments.
dnsmasq accepts DHCPv6 options in the tranditional
'--dhcp-option' put they must be prefixed 'option6:'.
dnsmasq will also discover SLAAC DNS entries from DHCPv4
clients MAC, and confirm with a ping at least renew.

Long term TODO include improving use of dnsmasq relay
options for DHCPv4 and DHCPv6 in parallel. It would also
be possible to preconfigure DHCP-PD in host-with-options
records for fixed infrastructure.

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
[Jo-Philipp Wich: emit proper IPv6 hostid format in dhcp-host directive]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agodnsmasq: expand 'add_local_hostname' fexibility including FQDN
Eric Luehrsen [Sat, 14 Jan 2017 02:37:25 +0000 (21:37 -0500)]
dnsmasq: expand 'add_local_hostname' fexibility including FQDN

ref commit 612e2276b4a2f57fcbbe79b95bec4a46e89d748c
ref commit ec63e3bf1312ab4c666f7417ca9844857214047f

'option add_local_hostname' scripted implementation statically assigns
this host in auto generated host file at init. If IFUP or other signals
do not occur, then address changes are not tracked. The script doesn't
apply all the addresses at an interface. This may make logs obscure.
The script only puts the bare host name (maybe not FQDN) in host file,
but if '--exapandhosts' is enabled, then /etc/hosts entries will be
suffixed, and "127.0.0.1 localhost" becomes "localhost.lan".

dnsmasq provides an option to perform this function, but it is rather
greedy. '--interface-name=<name>,<iface>' will assign the name to all
IP on the specified interface (except link local). This is a useful
feature, but some setups depend on the original restrictive behavior.

'option add_local_fqdn' is added to enhance the feature set, but
if not entered or empty string, then it will default to original
option and behavior. This new option has a few settings. At each
increased setting the most detailed name becomes the PTR record:
0 - same as add_local_hostname 0 or disabled
1 - same as add_local_hostname 1
2 - assigns the bare host name to all IP w/ --dnsmasq-interface
3 - assigns the FQDN and host to all IP w/ --dnsmasq-interface
4 - assigns <iface>.<host>.<domain> and above w/ --dnsmasq-nterface

'option add_wan_fqdn' is added to run the same procedure on
inferred WAN intefaces. If an interface has 'config dhcp' and
'option ignore 1' set, then it is considered WAN. The original
option would only run on DHCP serving interfaces.

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
7 years agoramips: Introduce CONFIG_MIPS_APPENDED_RAW_DTB to F5D8235 V1 (rt288x)
Tobias Wolf [Wed, 21 Dec 2016 12:56:16 +0000 (13:56 +0100)]
ramips: Introduce CONFIG_MIPS_APPENDED_RAW_DTB to F5D8235 V1 (rt288x)

This activates the CONFIG_MIPS_APPENDED_RAW_DTB kernel configuration and
configures the F5D8235 V1 target to use append-dtb for kernel creation
instead of OWRTDTB.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
[Jo-Philipp Wich: rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoramips: Introduce CONFIG_MIPS_APPENDED_RAW_DTB to arch/mips/ralink
Tobias Wolf [Wed, 21 Dec 2016 12:55:43 +0000 (13:55 +0100)]
ramips: Introduce CONFIG_MIPS_APPENDED_RAW_DTB to arch/mips/ralink

This commit introduces CONFIG_MIPS_APPENDED_RAW_DTB as an alternative to
OWRTDTB. Both solutions can be used concurrently until all board
configurations have been changed.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
[Jo-Philipp Wich: rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobase-files: emit tagged switch configuration by default
Jo-Philipp Wich [Sat, 15 Oct 2016 23:31:03 +0000 (01:31 +0200)]
base-files: emit tagged switch configuration by default

Instead of only using tagged CPU port configurations when more than one VLAN
is present on the switch, always emit tagged configurations unless a board
explicitely opts out of this behaviour by using the previously introduced
[0-9]u@netdev syntax.

Emitting default tagged configurations has the following benefits:

 - Relation of switch vlans to netdevs is easier to understand, especially
   for multi-cpu-port switches

 - Adding additional VLANs (e.g. to break out a LAN port for other purposes)
   becomes easier as users are not forced to change the existing untagged
   VLAN to tagged and the existing ifname notation from ethX to ethX.Y
   anymore, drastly reducing the likelyhood of soft-bricks.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobrcm63xx: board.d: request untagged switch config where applicable
Jo-Philipp Wich [Sat, 15 Oct 2016 23:20:40 +0000 (01:20 +0200)]
brcm63xx: board.d: request untagged switch config where applicable

In order to prepare support for generating tagged switch configurations by
default, explicitely request untagged configs for boards which do not already
request tagging to retain default behaviour.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoimagebuilder: make submake invocations less verbose
Jo-Philipp Wich [Mon, 1 Aug 2016 16:26:05 +0000 (18:26 +0200)]
imagebuilder: make submake invocations less verbose

Use silent make invocations for sub-makes like build_image or checksum to
avoid bloating the IB output with non-status info.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoodhcp6c: fix PKG_SOURCE_URL
Hans Dedecker [Wed, 1 Feb 2017 20:14:01 +0000 (21:14 +0100)]
odhcp6c: fix PKG_SOURCE_URL

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Wed, 1 Feb 2017 19:59:49 +0000 (20:59 +0100)]
odhcpd: update to git HEAD version

3317c86 dhcpv6-ia: apply lease delete based on assignment bound state
df50429 odhcpd: properly handle netlink messages (FS#388)
83d72cf odhcpd: fix coding style

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agokernel: fix BCM54612E PHY support
Rafał Miłecki [Wed, 1 Feb 2017 19:53:15 +0000 (20:53 +0100)]
kernel: fix BCM54612E PHY support

This backports upstream commit 62e13097c46c ("net: phy: broadcom: rehook
BCM54612E specific init")

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoath10k-firmware: revert faulty PKG_SOURCE_DATE change from 7cb27b46
Felix Fietkau [Wed, 1 Feb 2017 17:04:30 +0000 (18:04 +0100)]
ath10k-firmware: revert faulty PKG_SOURCE_DATE change from 7cb27b46

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-firmware: update qca9984 firmware and board data
Pavel Kubelun [Wed, 1 Feb 2017 12:10:51 +0000 (15:10 +0300)]
ath10k-firmware: update qca9984 firmware and board data

Fixes firmware crash in rare cases and a bug
ath10k_pci 0001:01:00.0: received unexpected tx_fetch_ind event: in
push mode
for those who kept experiencing it after previous firmware update.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agomt76: update to the latest version
Felix Fietkau [Wed, 1 Feb 2017 15:37:14 +0000 (16:37 +0100)]
mt76: update to the latest version

Uses upstream code to parse DT supported band/frequency information.
Update existing .dts files to the new format and remove unnecessary
overrides.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips: remove DT pcie nodes for GL-MT300A/N
Felix Fietkau [Wed, 1 Feb 2017 12:53:57 +0000 (13:53 +0100)]
ramips: remove DT pcie nodes for GL-MT300A/N

These devices don't have a secondary wifi chip

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agortl8366_smi: add linux 4.4 compatibility
Felix Fietkau [Fri, 27 Jan 2017 12:56:48 +0000 (13:56 +0100)]
rtl8366_smi: add linux 4.4 compatibility

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set
Felix Fietkau [Fri, 27 Jan 2017 12:52:33 +0000 (13:52 +0100)]
ath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: fix kernel api compatibility issues
Felix Fietkau [Fri, 27 Jan 2017 12:04:32 +0000 (13:04 +0100)]
ath10k-ct: fix kernel api compatibility issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorotary-gpio-custom: depend on Linux 3.18 and 4.4 (will not work on newer kernels)
Felix Fietkau [Fri, 27 Jan 2017 11:49:55 +0000 (12:49 +0100)]
rotary-gpio-custom: depend on Linux 3.18 and 4.4 (will not work on newer kernels)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoxtables-addons: update to version 2.12
Felix Fietkau [Fri, 27 Jan 2017 11:53:39 +0000 (12:53 +0100)]
xtables-addons: update to version 2.12

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: Support ath10k CT firmware for 9887 chipsets.
Ben Greear [Fri, 27 Jan 2017 00:11:27 +0000 (16:11 -0800)]
ath10k-ct: Support ath10k CT firmware for 9887 chipsets.

And, update support for 9880 chipsets.  The new firmware
fixes a regression with EAPOL 4/4 packets added in
a recent commit.

It also fixes a case where the firmware would improperly try
to use STBC when configured for 1x1 (as 9887 always is).

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agoath10k-ct: Fix performance of 2x2 hardware running 3x3 firmware.
Ben Greear [Fri, 27 Jan 2017 00:11:26 +0000 (16:11 -0800)]
ath10k-ct: Fix performance of 2x2 hardware running 3x3 firmware.

The driver had a bug when calculating the rateset.  This resolves
that and allows full VHT mcs rates on 2x2 hardware.

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agoleds-apu2: add compatibility for linux 4.9
Felix Fietkau [Fri, 27 Jan 2017 10:55:22 +0000 (11:55 +0100)]
leds-apu2: add compatibility for linux 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogpio-nct5104d: add compatibility for linux 4.9
Felix Fietkau [Fri, 27 Jan 2017 10:55:12 +0000 (11:55 +0100)]
gpio-nct5104d: add compatibility for linux 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: enable SMP for XRX200
Felix Fietkau [Thu, 4 Aug 2016 10:38:01 +0000 (12:38 +0200)]
lantiq: enable SMP for XRX200

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoscripts/getver.sh: append short git hash based on upstream commit
Magnus Kroken [Sat, 14 Jan 2017 21:34:01 +0000 (22:34 +0100)]
scripts/getver.sh: append short git hash based on upstream commit

The short git hash suffix printed by getver.sh is taken from the
latest local commit, change this to use the hash from latest
upstream commit if available. This is considered the intended
behavior based on commit message a642a11faca87e2a7bddc1fadb54253e2fc26e84,
introducing getver.sh.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogcc: remove obsolete uclibc patch
Felix Fietkau [Wed, 1 Feb 2017 07:22:27 +0000 (08:22 +0100)]
gcc: remove obsolete uclibc patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobcm53xx: fix LAN MAC address for devices that use eth2 originally
Rafał Miłecki [Tue, 31 Jan 2017 12:53:46 +0000 (13:53 +0100)]
bcm53xx: fix LAN MAC address for devices that use eth2 originally

We override default Ethernet interface with eth0 which often uses random
MAC due to missing proper NVRAM entry. Fix this by manually assigning
MAC in the config.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agotoolchain/gcc: reduce source directory size by about 420 MB
Felix Fietkau [Wed, 1 Feb 2017 07:29:06 +0000 (08:29 +0100)]
toolchain/gcc: reduce source directory size by about 420 MB

Remove gcc testsuite, ada and libjava (if not selected)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: keep recursive dependency check stampfiles up to date
Felix Fietkau [Wed, 1 Feb 2017 13:44:22 +0000 (14:44 +0100)]
build: keep recursive dependency check stampfiles up to date

Since the main stamp file depends on the _check stampfile, the _check
stampfile needs to be created on the first run as well.

Fixes spurious rebuilds with CONFIG_AUTOREBUILD=y

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomvebu: fix usb port leds
Mathias Kresin [Tue, 24 Jan 2017 22:04:10 +0000 (23:04 +0100)]
mvebu: fix usb port leds

All mvebu boards have three USB LEDs. The first one is used for the
USB1 port.

There are two LEDs related to the second USB port. The top (bar) LED
gets bright in case any USB device is connected to the second USB port.

If the connected device is an USB 3 (SuperSpeed) device, the small dot
LED bellow the "bar" LED gets also bright.

While at it, use a name for the USB LEDs that matches the names printed
on the case.

Fixes: FS#423, FS#425
Signed-off-by: Kabuli Chana <newtownbuild@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agokernel: backport bgmac support for external PHYs
Rafał Miłecki [Tue, 31 Jan 2017 21:01:05 +0000 (22:01 +0100)]
kernel: backport bgmac support for external PHYs

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: use upstream accepted bgmac fix for BCM47186B0
Rafał Miłecki [Tue, 31 Jan 2017 20:08:18 +0000 (21:08 +0100)]
kernel: use upstream accepted bgmac fix for BCM47186B0

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: rename bgmac patches to squeeze them
Rafał Miłecki [Tue, 31 Jan 2017 20:00:51 +0000 (21:00 +0100)]
kernel: rename bgmac patches to squeeze them

This is a pure rename without any changes. It makes maintaining bgmac
simpler and will hopefully make adding new kernel a bit easier.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoodhcp6c: use LEDE_GIT in package source url
Hans Dedecker [Mon, 30 Jan 2017 14:15:18 +0000 (15:15 +0100)]
odhcp6c: use LEDE_GIT in package source url

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomt76: update to the latest version
Felix Fietkau [Tue, 31 Jan 2017 20:28:28 +0000 (21:28 +0100)]
mt76: update to the latest version

Fixes DFS detection false positive issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: update bcma to fix devm memory leaks
Rafał Miłecki [Tue, 31 Jan 2017 13:21:53 +0000 (14:21 +0100)]
kernel: update bcma to fix devm memory leaks

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: start hostapd with logging wpa_printf messages to syslog
Rafał Miłecki [Mon, 30 Jan 2017 06:32:00 +0000 (07:32 +0100)]
mac80211: start hostapd with logging wpa_printf messages to syslog

Some debugging/error messages are printed using wpa_printf and this
change allows finally reading them out of the syslog.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agohostapd: enable support for logging wpa_printf messages to syslog
Rafał Miłecki [Mon, 30 Jan 2017 06:31:59 +0000 (07:31 +0100)]
hostapd: enable support for logging wpa_printf messages to syslog

This will allow starting hostapd with the new -s parameter and finally
read all (error) messages from the syslog.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoath9k: remove the deaf rx path state check patch
Felix Fietkau [Tue, 31 Jan 2017 10:38:25 +0000 (11:38 +0100)]
ath9k: remove the deaf rx path state check patch

This needs to be refined and reworked before we can safely leave it
enabled by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomdns: update to the latest version
Felix Fietkau [Tue, 31 Jan 2017 10:23:02 +0000 (11:23 +0100)]
mdns: update to the latest version

- fixes unaligned acccesses, causing DNS parsing issues on ARMv5
- fixes service timeout handling

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agodownload.pl: fix detecting download errors with curl
Felix Fietkau [Tue, 31 Jan 2017 10:22:21 +0000 (11:22 +0100)]
download.pl: fix detecting download errors with curl

Avoid treating error pages as successfully downloaded content

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips: add support for Buffalo WCR-1166DS
FUKAUMI Naoki [Sat, 28 Jan 2017 16:05:56 +0000 (01:05 +0900)]
ramips: add support for Buffalo WCR-1166DS

Buffalo WCR-1166DS is a small wireless router with

 - MT7628AN + MT7612E
 - 64MiB DDR2 SDRAM
 - 16MiB SPI flash
 - 2T2R 11ac/a/b/g/n Wi-Fi
 - 2x 10/100M ethernet switch
 - 8x programmable LED
 - 3x button
 - UART pad on PCB (J2: 3.3V, GND, TX, RX)

factory image can be installed via stock web UI.

due to the "dual image" function in the bootloader, the second half of
the SPI flash ("firmware2" partition) cannot be used as a part of the
file system.

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
7 years agobcm53xx: build factory images for WZR-900DHP series
FUKAUMI Naoki [Sat, 28 Jan 2017 16:05:55 +0000 (01:05 +0900)]
bcm53xx: build factory images for WZR-900DHP series

only factory images for DHP-EU and DHP2-JP (fw ver. 2.x) are built.

this will not work for DHP-JP/AP/TW (fw ver. 1.x) because they use
different buffalo_csum() formula.

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agofirmware-utils: improve tools for Buffalo DHP series
FUKAUMI Naoki [Sat, 28 Jan 2017 16:05:54 +0000 (01:05 +0900)]
firmware-utils: improve tools for Buffalo DHP series

some of Buffalo DHP series use slightly different trx magic, buffalo-enc,
buffalo-tag, and factory image begin with 'bgn'.

this patch adds support for building those images.

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
7 years agoramips: add missing DTS pcie node for WSR-600
Felix Fietkau [Tue, 31 Jan 2017 09:27:25 +0000 (10:27 +0100)]
ramips: add missing DTS pcie node for WSR-600

Enables PCI bus and support for the MT7603 and RT5592 chips

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: use LEDE_GIT in package source url
Hans Dedecker [Mon, 30 Jan 2017 21:15:48 +0000 (22:15 +0100)]
odhcpd: use LEDE_GIT in package source url

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoqemu: rename internal crypto/aes symbols
Stijn Tintel [Mon, 30 Jan 2017 16:47:11 +0000 (17:47 +0100)]
qemu: rename internal crypto/aes symbols

Qemu's local AES code defines symbols that conflict with
LibreSSL/OpenSSL's libcrypto. Rename them to avoid build problems.

See upstream commit c8d70e59738e672021926c7747af8ef9dea15c82.

Fixes FS#444.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoiproute2: cake: update cake support
Kevin Darbyshire-Bryant [Sat, 28 Jan 2017 16:44:30 +0000 (16:44 +0000)]
iproute2: cake: update cake support

Updated cake's tc patch to match the official cake repository
formatting.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agokmod-sched-cake: Bump to latest version
Kevin Darbyshire-Bryant [Sat, 28 Jan 2017 16:38:59 +0000 (16:38 +0000)]
kmod-sched-cake: Bump to latest version

wash, mpu & some memory optimisation have now made it to the official
cake repository.

Point LEDE to the official repository.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoodhcp6c: update to git HEAD version
Hans Dedecker [Mon, 30 Jan 2017 14:03:29 +0000 (15:03 +0100)]
odhcp6c: update to git HEAD version

c13b6a0 dhcpv6: fix white space error
e9d80cc dhcpv6: trigger restart of DHCPv6 state machine when not
receiving statefull options
c7122ec update README
419fb63 dhcpv6: server unicast option support

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobcm53xx: suppress osafeloader info error messages during flashing
Felix Fietkau [Mon, 30 Jan 2017 10:46:08 +0000 (11:46 +0100)]
bcm53xx: suppress osafeloader info error messages during flashing

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: fix unaligned access in xrx200_poll_rx()
Alexander Couzens [Sat, 28 Jan 2017 16:23:16 +0000 (17:23 +0100)]
lantiq: fix unaligned access in xrx200_poll_rx()

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agobase-files: don't overwrite model name set by target
Mathias Kresin [Sat, 28 Jan 2017 15:19:35 +0000 (16:19 +0100)]
base-files: don't overwrite model name set by target

The condition is always true due to the literal string followed the
-n test parameter. A model name set by target scripts always gets
overwritten this way.

Change the condition to check for an already existing destination file
as it was before 5e85ae9 ("base-files: fix error message during boot").

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agohostapd: backport support for sending debug messages to the syslog
Rafał Miłecki [Wed, 25 Jan 2017 07:32:00 +0000 (08:32 +0100)]
hostapd: backport support for sending debug messages to the syslog

It wasn't possible to read hostapd wpa_printf messages unless running
hostapd manually. It was because hostapd was printing them using vprintf
and not directly to the syslog.

We were trying to workaround this problem by redirecting STDIN_FILENO
and STDOUT_FILENO but it was working only for the initialization phase.
As soon as hostapd did os_daemonize our solution stopped working.

Please note despite the subject this change doesn't affect debug level
messages only but just everything printed by hostapd with wpa_printf
including MSG_ERROR-s. This makes it even more important as reading
error messages can be quite useful for debugging.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agorpcd: Explicitly link with lcrypt
Florian Fainelli [Sun, 1 Jan 2017 00:13:34 +0000 (16:13 -0800)]
rpcd: Explicitly link with lcrypt

Fixes build issues with some toolchains that don't add lcrypt in the default
search paths:

CMakeFiles/rpcd.dir/session.c.o: In function `rpc_login_test_password':
build_dir/target-mipsel-linux-gnu/rpcd-2016-12-03-0577cfc1/session.c:823: undefined reference to `crypt'
collect2: error: ld returned 1 exit status

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agotoolchain: Broaden the executable loader pattern
Florian Fainelli [Sun, 1 Jan 2017 00:13:35 +0000 (16:13 -0800)]
toolchain: Broaden the executable loader pattern

Some toolchains will produce executables with an interpreter that is e.g:
ld.so.1 (typically a symbolic link). Due to our current LIBC_SPEC_FILE value,
we would not be able to copy this symbolic link/file over to the rootfs and
executables would fail to load. Extend the search pattern to include all
ld*.so* files that could be needed.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobuild: Suffix build directory with _$(LIBC) for external toolchains
Florian Fainelli [Sun, 15 Jan 2017 04:04:38 +0000 (20:04 -0800)]
build: Suffix build directory with _$(LIBC) for external toolchains

For external toolchain, we also know the type of C library used, and the
toolchain triplet may not always be reflective of that, therefore make
$(TARGET_DIR_NAME) suffixed with _$(LIBC).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoledtrig-netdev: don't cancel work on events for different interfaces
Sergey Sergeev [Sun, 29 Jan 2017 16:01:40 +0000 (19:01 +0300)]
ledtrig-netdev: don't cancel work on events for different interfaces

This fixes logic bug(in function netdev_trig_notify) introduced in
0b2991a8ed32b5d9ba0a7c3441a72e1c1a1c4fde commit.
Events triggered by different interfaces were stopping work queue so it
wasn't working for tx/rx mode.

Signed-off-by: Sergey Sergeev <adron@yapic.net>
7 years agoar71xx: add missing DEVICE_TITLE for mikrotik devices
Felix Fietkau [Sun, 29 Jan 2017 16:32:40 +0000 (17:32 +0100)]
ar71xx: add missing DEVICE_TITLE for mikrotik devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobusybox: update to 1.26.2
Magnus Kroken [Sun, 15 Jan 2017 01:21:41 +0000 (02:21 +0100)]
busybox: update to 1.26.2

Refresh patches, delete patches that have been applied upstream.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix defaults]
7 years agobusybox: convert netmsg and lock applet to "new style" applet definition
Magnus Kroken [Sun, 15 Jan 2017 01:21:40 +0000 (02:21 +0100)]
busybox: convert netmsg and lock applet to "new style" applet definition

The "new style" busybox applet approach moves all config and build
definitions related to an applet to its .c file. This makes the
patches easier to maintain, as they only add new files to the busybox
build directory, without modifying BusyBox files.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoar71xx: prepare jffs2 partition properly in factory.bin for BHR-4GRV2
FUKAUMI Naoki [Fri, 9 Dec 2016 08:53:15 +0000 (17:53 +0900)]
ar71xx: prepare jffs2 partition properly in factory.bin for BHR-4GRV2

"pad-rootfs" is required just after "append-rootfs".

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
7 years agomxs: remove stale references to obsolete kernel module packages
Michael Heimpold [Sat, 28 Jan 2017 15:32:34 +0000 (16:32 +0100)]
mxs: remove stale references to obsolete kernel module packages

Commit 29443e2 (mxs: remove modules.mk, select drivers in the kernel config)
missed to remove these references, so cleanup it now.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
7 years agokernel: make BCM54210E PHY code work with 4.4
Rafał Miłecki [Sat, 28 Jan 2017 16:14:50 +0000 (17:14 +0100)]
kernel: make BCM54210E PHY code work with 4.4

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: backport BCM54210E PHY support
Rafał Miłecki [Sat, 28 Jan 2017 15:50:06 +0000 (16:50 +0100)]
kernel: backport BCM54210E PHY support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agolantiq: fix brnImage signature for the VGV7510KW22BRN images
Mathias Kresin [Sat, 28 Jan 2017 11:36:15 +0000 (12:36 +0100)]
lantiq: fix brnImage signature for the VGV7510KW22BRN images

The VGV7510KW22BRN and VGV7519BRN do not have the same brnImage
signature. It was accidentally changed with ba42c1d ("lantiq: un-macro
the image building code").

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoopenssl: update to version 1.0.2k
Hauke Mehrtens [Fri, 27 Jan 2017 22:36:45 +0000 (23:36 +0100)]
openssl: update to version 1.0.2k

This fixes the following security problems:
CVE-2017-3731: Truncated packet could crash via OOB read
CVE-2017-3732: BN_mod_exp may produce incorrect results on x86_64
CVE-2016-7055: Montgomery multiplication may produce incorrect results

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: bump to 4.4.45
Koen Vandeputte [Fri, 27 Jan 2017 14:18:00 +0000 (15:18 +0100)]
kernel: bump to 4.4.45

Refreshed patches for all supported targets.

Compiled & tested on cns3xxx & imx6

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoRevert "ar71xx: fix Archer C7 LED colour names"
Mathias Kresin [Fri, 27 Jan 2017 21:07:20 +0000 (22:07 +0100)]
Revert "ar71xx: fix Archer C7 LED colour names"

This reverts commit e79ecb4c26471526552d2473bb50d331c3dafb87.

The commit was incomplete and the issue that should be fixed isn't
that easy fixable. The Archer C7 mach file is used for the Archer C5,
WDR4900 and WDR7500 as well. Where the WDRs in compare to the Archer
do have blue LEDs.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agokernel: mark nvmem as hidden, it is only used as a library for other modules
Felix Fietkau [Fri, 27 Jan 2017 15:53:05 +0000 (16:53 +0100)]
kernel: mark nvmem as hidden, it is only used as a library for other modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoixp4xx: put apex images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:32:41 +0000 (16:32 +0100)]
ixp4xx: put apex images into image staging directory

Do not put the apex images into the kernel build directory as this directory
might get removed after kernel updates while the apex packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomxs: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:26:56 +0000 (16:26 +0100)]
mxs: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agooxnas: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:21:17 +0000 (16:21 +0100)]
oxnas: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosunxi: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:18:05 +0000 (16:18 +0100)]
sunxi: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolayerscape: put u-boot and ucode images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:06:31 +0000 (16:06 +0100)]
layerscape: put u-boot and ucode images into image staging directory

Do not put the u-boot and ucode images into the kernel build directory as this
directory might get removed after kernel updates while the u-boot packages
InstallDev recipe is not getting re-executed because it is still considered
current, leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomvebu: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 12:14:12 +0000 (13:14 +0100)]
mvebu: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing u-boot images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: introduce STAGING_DIR_IMAGE
Jo-Philipp Wich [Fri, 27 Jan 2017 12:41:04 +0000 (13:41 +0100)]
build: introduce STAGING_DIR_IMAGE

Introduce a new location STAGING_DIR_IMAGE which is intended to be used by
bootloader iamges and similar image-related artifacts.

This directory is guaranteed to be persistent across kernel upgrades which
might involve a removal of KERNEL_BUILD_DIR and is guranteed to be bundled
with the image builder.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>