openwrt/staging/dedeckeh.git
7 years agobcm53xx: backport BCM5301X patches
Rafał Miłecki [Sat, 18 Mar 2017 17:31:36 +0000 (18:31 +0100)]
bcm53xx: backport BCM5301X patches

This fixes GIC interrupts (required before switching to 4.9), adds few
new entires & introduces DTS for Archer C5.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: parepare for building more Linksys images
Rafał Miłecki [Sun, 12 Mar 2017 15:24:13 +0000 (16:24 +0100)]
bcm53xx: parepare for building more Linksys images

We still can't enable them by default without proper TRX support.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: prepare for building Archer C5 V2 image
Rafał Miłecki [Sat, 11 Mar 2017 11:33:53 +0000 (12:33 +0100)]
bcm53xx: prepare for building Archer C5 V2 image

Don't enable it yet as kernel needs to be updated first.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoar71xx: add TP-LINK TL-WR841N/ND v12 image
Vittorio Gambaletta [Sun, 26 Mar 2017 07:55:44 +0000 (09:55 +0200)]
ar71xx: add TP-LINK TL-WR841N/ND v12 image

This router has the same hardware as TP-LINK TL-WR841N/ND v11 (same FCC
ID, same TFTP image name...).

If the stock firmware web interface doesn't accept LEDE factory image,
it can be flashed via the U-Boot TFTP recovery mode, by long-pressing
the reset button after power on.

The TFTP image name is wr841nv11_tp_recovery.bin (yes, v11, not v12).

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
7 years agoutils/f2fs-tools: Update to 1.8.0
Daniel Engberg [Wed, 15 Mar 2017 16:14:55 +0000 (17:14 +0100)]
utils/f2fs-tools: Update to 1.8.0

Update f2fs-tools to 1.8.0
Refresh patches
Remove selinux patch, use configure argument instead.
Switch to xz tarball
Adjust url to avoid redirects

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agobusybox: add musl compatible nslookup replacement
Jo-Philipp Wich [Tue, 14 Mar 2017 21:38:59 +0000 (22:38 +0100)]
busybox: add musl compatible nslookup replacement

Add an alternative nslookup applet implementation which is compatible with
musl libc wrt. name server selection and which supports a number of additional
features such as query type selection.

Fixes #155, #217

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agokernel: update kernel 4.4 to 4.4.61
Jo-Philipp Wich [Sat, 15 Apr 2017 15:00:49 +0000 (17:00 +0200)]
kernel: update kernel 4.4 to 4.4.61

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoodhcpd: update to version 2017-03-29 (FS#635)
Hans Dedecker [Sat, 1 Apr 2017 11:56:44 +0000 (13:56 +0200)]
odhcpd: update to version 2017-03-29 (FS#635)

3d9f406 rework IPv6 dns address selection (FS#635)
bc6c3ac ndp: keep an exact copy of IPv6 interface addresses
6eb1e01 ndp: code cleanup
eea7d03 rework IPv6 address dump logic
24d21c7 ndp: add syslog debug tracing

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoodhcpd: update to version 2017-02-28
Florian Fainelli [Sat, 4 Mar 2017 21:22:50 +0000 (13:22 -0800)]
odhcpd: update to version 2017-02-28

Brings in the following change:

9eac2a896341 dhcpv6-ia: Check lockf return value

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoodhcpd: update to version 2017-02-21
Hans Dedecker [Thu, 23 Feb 2017 20:56:15 +0000 (21:56 +0100)]
odhcpd: update to version 2017-02-21

1b630f8 router: don't announce prefixes with valid lifetime equal to 0
ba0cac0 router: fix arithmetic exception fault
3495f17 router: allow RA prefix lifetime being set to leasetime value (FS#397)
e437ce9 treewide: simplify dhcp leasetime checking
942fb33 router: support ra_mininterval and ra_lifetime uci parameters (FS#397)
f913337 router.h: fix alignment style
4dc7edb Revert "odhcpd.h: fix alignment style"
62ea54f odhcpd.h: fix alignment style
a898ee5 config: make loglevel configurable via uci (FS#481)
51c756c odhcpd: display correct default log level in usage text
68ee0b5 treewide: define and use macro IN6_IS_ADDR_ULA
fa57225 ndp: deregister netlink event socket for non recoverable errors
ac70d28 odhcpd: fix white space errors

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoramips: add RP-N53 pcie wireless eeprom
Mathias Kresin [Sun, 9 Apr 2017 07:14:52 +0000 (09:14 +0200)]
ramips: add RP-N53 pcie wireless eeprom

Fix the PCIe 5GHz wireless by using the on flash eeprom/caldata.
Disable the 2.4GHz band as this band has no antennas attached but is
enabled in the eeprom/caldata.

Fixes: FS#691
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix WHR-600D eeprom dt property
Mathias Kresin [Sun, 9 Apr 2017 07:12:55 +0000 (09:12 +0200)]
ramips: fix WHR-600D eeprom dt property

Fix the PCIe 5GHz wireless by using the ralink mtd-eeprom property as
this board have a RT5592 and uses the rt2x00 driver. The mediathek
device tree bindings do not work here.

Fixes: FS#691
Fixes: d8dd207ea6f2 ("ramips: use the ralink,mtd-eeprom device tree property")
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoutil-linux: re-enable parallel builds
Felix Fietkau [Wed, 22 Mar 2017 12:22:57 +0000 (13:22 +0100)]
util-linux: re-enable parallel builds

The original build error in 'more' seems to be gone

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoutil-linux: unconditionally enable ncursesw support
Felix Fietkau [Wed, 22 Mar 2017 12:49:05 +0000 (13:49 +0100)]
util-linux: unconditionally enable ncursesw support

The build dependency is unconditional, and some components might fail if
ncurses is not available

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoutils/util-linux: Update to 2.29.2
Daniel Engberg [Mon, 20 Mar 2017 08:51:26 +0000 (09:51 +0100)]
utils/util-linux: Update to 2.29.2

Update util-linux to 2.29.2
Remote 0001-fix-uClibc-ng-scanf-check.patch as it's been merged upstream.
Refresh patches
Change ncurses to ncursesw to fix compilation and avoid confusion

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [remove faulty dependency changes]
7 years agobuild: fix triggering opkg/host compilation
Jo-Philipp Wich [Thu, 19 Jan 2017 01:41:02 +0000 (02:41 +0100)]
build: fix triggering opkg/host compilation

Commit 131db36 "build: remove separate /install step for host builds" dropped
the package/*/host/install targets in favor to performing the install steps
within the compile target instead.

Adjust package/Makefile accordingly in order to prevent a missing
staging_dir/host/bin/opkg when staging package archives into the rootfs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolibubox: fix host build on macOS
Felix Fietkau [Mon, 20 Feb 2017 11:32:45 +0000 (12:32 +0100)]
libubox: fix host build on macOS

Use the defaults instead of a custom non-portable Host/Install section

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibubox: add host build
Jo-Philipp Wich [Fri, 17 Feb 2017 09:49:14 +0000 (10:49 +0100)]
libubox: add host build

Our opkg fork requires libubox to build, so add a host build for it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopkg: switch to LEDE fork (#120, #551, #571)
Jo-Philipp Wich [Thu, 16 Feb 2017 16:36:47 +0000 (17:36 +0100)]
opkg: switch to LEDE fork (#120, #551, #571)

Cherry-pick the following commits from master to bump opkg in LEDE 17.01:

b65dc04712 opkg: switch to own fork to improve memory usage
55ffc38004 opkg: re-enable usign support
19720a6f03 opkg: fix handling conffiles in status lists
9e4555f58d opkg: fix stray printf() (#551)
ebf846b005 opkg: mark as essential (FS#571)
aedd5d5cb0 opkg: fix several package installation bugs
48ae44d033 opkg: gracefully handle missing $PATH, fix build warnings
1449b52f02 opkg: backport upstream fixes, code cleanups

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomt76: ensure that the metapackage gets built as .ipk
Felix Fietkau [Wed, 5 Apr 2017 21:38:42 +0000 (23:38 +0200)]
mt76: ensure that the metapackage gets built as .ipk

Fixes errors during the image builder run

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoimage.mk: force kernel rebuild on every run
Felix Fietkau [Mon, 13 Mar 2017 09:49:58 +0000 (10:49 +0100)]
image.mk: force kernel rebuild on every run

DTS dependencies are not processed correctly so makes it safer against
poentially stale builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE operations.
Jing Qiu [Tue, 14 Mar 2017 07:32:08 +0000 (15:32 +0800)]
kernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE operations.

The problem is caused by the incorrect handling of the parent inode's
i_nlink count for the dentry to be RENAME_EXCHANGED. There are 3 cases
to consider. Assume we want to RENAME_EXCHANGE struct dentry *a and
struct dentry *b, and inode_a is pointed to by dentry_a, inode_b is
pointed to by dentry_b:

1. If inode_a is a directory, but inode_b isn't, then we must decrease
   the i_nlink count of old_dir_i, and increase the i_nlink of new_dir_i.
2. If inode_a isn't a directory, but inode_b is a directory, then we
   must increase the i_nlink of old_dir_i, and decrease the i_nlink count
   of new_dir_i.
3. If the types of inode_a and inode_b are the same, we don't change the
   i_nlink for either old_dir_i or new_dir_i.

Signed-off-by: Jing Qiu <aqiu0720@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: backport an upstream fix for queue start/stop handling
Felix Fietkau [Mon, 3 Apr 2017 13:08:28 +0000 (15:08 +0200)]
mac80211: backport an upstream fix for queue start/stop handling

Fixes issues with 802.11s

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agosysntpd: restore support for peer-less (standalone) mode
Piotr Dymacz [Mon, 6 Mar 2017 22:20:37 +0000 (23:20 +0100)]
sysntpd: restore support for peer-less (standalone) mode

ntpd from Busybox supports peer-less (standalone) mode when it's started
with option -l and without any peer provided with option -p. In this
mode ntpd uses local time as reference and acts as stratum 1 server.

This mode can be used in isolated networks, where Internet access and/or
other NTP server/s are not available, but the device has some other way
of getting correct time, like e.g. GPS (ugps supports setting local time
by default).

Support for this mode was incorrectly disabled/removed in:
1527f96ca6e196fa17c96fdb3ae520158fa5943f

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Acked-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: fix Wallys DR344 ethernet MAC addresses offsets
Piotr Dymacz [Sun, 12 Mar 2017 22:50:36 +0000 (23:50 +0100)]
ar71xx: fix Wallys DR344 ethernet MAC addresses offsets

Without this fix, ethernet interfaces on Wallys DR344 use random MAC
addresses.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agougps: fix and improve init script
Piotr Dymacz [Sun, 5 Mar 2017 18:30:44 +0000 (19:30 +0100)]
ugps: fix and improve init script

The ugps tool expects device path in last argument. If it's provided
before other options, they won't be processed at all.

Additionally, make it possible to use absolute path for gps character
device in related uci configuration.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agokernel: update kernel 4.4 to 4.4.59
Hauke Mehrtens [Sun, 2 Apr 2017 09:53:42 +0000 (11:53 +0200)]
kernel: update kernel 4.4 to 4.4.59

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoubox: fix sha256 mirror hash
Hauke Mehrtens [Thu, 30 Mar 2017 12:25:39 +0000 (14:25 +0200)]
ubox: fix sha256 mirror hash

Commit 5c20a4fec923c3 ("ubox: turn logd into a separate package") changed
the PKG_SOURCE_DATE which is also included in the tar file. This change
resulted in a new tar with a different hash, but the sha256 hash was not
updated. Fix the sha256 hash value in this commit to match what would be
created from git and what is already on the mirror.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
7 years agoodhcpd: fix sha256 sum
Hauke Mehrtens [Thu, 30 Mar 2017 10:25:13 +0000 (12:25 +0200)]
odhcpd: fix sha256 sum

The sha256sum added in commit b8567cb44e9e4f ("odhcpd: update to git HEAD
version (FS#396)") does not match the sha256sum of the file on the mirror or
when I clone it. Update the sha256 sum to the correct value.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
7 years agofirewall: document rules for IPSec ESP/ISAKMP with 'name' option
Yousong Zhou [Tue, 28 Mar 2017 09:41:14 +0000 (17:41 +0800)]
firewall: document rules for IPSec ESP/ISAKMP with 'name' option

These are recommended practices by REC-22 and REC-24 of RFC6092:
"Recommended Simple Security Capabilities in Customer Premises Equipment
(CPE) for Providing Residential IPv6 Internet Service"

Fixes FS#640

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoiw: enable MESH ID in scan output
Matthias Schiffer [Sat, 25 Mar 2017 12:43:29 +0000 (13:43 +0100)]
iw: enable MESH ID in scan output

Make scan output useful for 802.11s meshes. The common print_ssid function
is used, so this doesn't add any additional code.

Based-on-patch-by: Jan-Tarek Butt <tarek@ring0.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobusybox: vi: backporting patches to fix ZZ and :x command
Yousong Zhou [Sat, 25 Mar 2017 05:23:06 +0000 (13:23 +0800)]
busybox: vi: backporting patches to fix ZZ and :x command

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoumdns: update to the version 2017-03-21
Rafał Miłecki [Tue, 21 Mar 2017 21:57:56 +0000 (22:57 +0100)]
umdns: update to the version 2017-03-21

This includes following changes:
480d7bc Fix sending unicast questions on cache expire
a0403cd Keep source sockaddr for every cached DNS record
1478293 Fix code freeing cached non-A(AAA) records too early
9f1cc22 Fix replying to "QU" questions received on unicast interface
943bedb Fix reading port of incoming packets
c725494 Use MCAST_PORT define for port 5353
ce7e9e9 Use one define for DNS-Based Service Discovery service name
e1bacef Drop entries cached for interface we're going to delete
496aeba Fix comment typo in cache_gc_timer
f89986b Fix refreshing cached A(AAA) records that expire

Previous updates made umdns work as expected on startup but there were
still many bugs. They were mostly related to runtime - cache management
and requests + responses. E.g. umdns was never able to send question on
DNS record expire. It was also ignoring all incoming unicast questions.

Since these issues are quite serious it makes sense to backport this
update to the stable branch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoumdns: update to the version 2017-03-14
Rafał Miłecki [Tue, 14 Mar 2017 10:59:53 +0000 (11:59 +0100)]
umdns: update to the version 2017-03-14

This includes 3 cleanups:
fd5a160 Don't cache hosts as services
80dd246 Refresh DNS records A and AAAA directly
6515101 Access cached records (instead of services) to read list of hosts

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoiproute2: fix ip monitor can't work when NET_NS is not enabled
Yousong Zhou [Fri, 17 Mar 2017 09:49:29 +0000 (17:49 +0800)]
iproute2: fix ip monitor can't work when NET_NS is not enabled

The bug appeared in v4.1.0 and was fixed since v4.8.0

Fixes FS#620

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agocurl: fix CVE-2017-2629 SSL_VERIFYSTATUS ignored
Hauke Mehrtens [Mon, 13 Mar 2017 21:51:20 +0000 (22:51 +0100)]
curl: fix CVE-2017-2629 SSL_VERIFYSTATUS ignored

This fixes the following security problem:
https://curl.haxx.se/docs/adv_20170222.html

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agombedtls: update to version 2.4.2
Hauke Mehrtens [Mon, 13 Mar 2017 19:04:32 +0000 (20:04 +0100)]
mbedtls: update to version 2.4.2

This fixes the following security problems:
* CVE-2017-2784: Freeing of memory allocated on stack when validating a public key with a secp224k1 curve
* SLOTH vulnerability
* Denial of Service through Certificate Revocation List

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agomac80211: mwifiex-sdio: select DRIVER_11AC_SUPPORT
Álvaro Fernández Rojas [Sat, 11 Mar 2017 18:31:16 +0000 (19:31 +0100)]
mac80211: mwifiex-sdio: select DRIVER_11AC_SUPPORT

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agomac80211: mwifiex-pcie: select DRIVER_11AC_SUPPORT
Álvaro Fernández Rojas [Sat, 11 Mar 2017 18:30:05 +0000 (19:30 +0100)]
mac80211: mwifiex-pcie: select DRIVER_11AC_SUPPORT

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agomvebu: wrt3200acm enable SDIO interface
Henryk Heisig [Tue, 28 Feb 2017 05:30:25 +0000 (06:30 +0100)]
mvebu: wrt3200acm enable SDIO interface

add mwifiex-sdio package to wrt3200acm

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agomac80211: add support for Marvell 802.11n/802.11ac SDIO Wireless cards
Henryk Heisig [Tue, 28 Feb 2017 05:32:26 +0000 (06:32 +0100)]
mac80211: add support for Marvell 802.11n/802.11ac SDIO Wireless cards

This adds option to build kernel module and firmware packages
for a Marvell 8887 SDIO Wireless device

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708: remove duplicated gzip from image generation
Álvaro Fernández Rojas [Tue, 7 Feb 2017 21:26:11 +0000 (22:26 +0100)]
brcm2708: remove duplicated gzip from image generation

Images are now automatically gziped so remove custom image command

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoar71xx: add ath10k driver and firmware for Netgear R6100 to firmware image
Stijn Segers [Fri, 10 Mar 2017 17:58:26 +0000 (18:58 +0100)]
ar71xx: add ath10k driver and firmware for Netgear R6100 to firmware image

A Netgear R6100 owner reported the LEDE images lack the ath10k driver and firmware [1]. This patch adds both to the R6100 image.

[1] https://forum.lede-project.org/t/netgear-r6100-5ghz-wifi-not-working-after-initial-install/2222

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
7 years agoumdns: update to the 2017-03-10 version
Rafał Miłecki [Fri, 10 Mar 2017 10:58:48 +0000 (11:58 +0100)]
umdns: update to the 2017-03-10 version

This fixes crash in interface_start caused by freeing interface in
interface_free without stopping a timeout.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm2708: add support for the new Raspberry Pi Zero W
Stijn Tintel [Sun, 5 Mar 2017 20:16:07 +0000 (21:16 +0100)]
brcm2708: add support for the new Raspberry Pi Zero W

Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708: order boards and models alphabetically
Stijn Tintel [Sun, 5 Mar 2017 20:16:06 +0000 (21:16 +0100)]
brcm2708: order boards and models alphabetically

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agobrcm2708: update linux 4.4 patches to latest version
Álvaro Fernández Rojas [Wed, 8 Mar 2017 08:46:30 +0000 (09:46 +0100)]
brcm2708: update linux 4.4 patches to latest version

As usual these patches were extracted and rebased from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y

- led1 can't be controlled on rpi-3 for linux 4.4, remove it.
- Fix modules.mk typos.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Wed, 8 Mar 2017 08:28:19 +0000 (09:28 +0100)]
brcm2708-gpu-fw: update to latest version

This is needed in order to add support for the new RPi Zero W

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoramips: fix Linksys RE6500 switch port mapping
Jo-Philipp Wich [Tue, 7 Mar 2017 16:38:30 +0000 (17:38 +0100)]
ramips: fix Linksys RE6500 switch port mapping

Properly map the internal switch ports to the proper LAN1..LAN4 labels.

Fixes #530.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoppp: propagate master peerdns setting to dynamic slave interface
Jo-Philipp Wich [Mon, 6 Mar 2017 12:47:50 +0000 (13:47 +0100)]
ppp: propagate master peerdns setting to dynamic slave interface

Honour the parent interfaces peerdns option when spawning a virtual DHCPv6
interface in order to avoid pulling in IPv6 DNS servers when the user opted
to inhibit peer DNS servers in the configuration.

Fixes #597.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agokernel: update kernel 4.4 to 4.4.52
Kevin Darbyshire-Bryant [Sun, 26 Feb 2017 18:09:10 +0000 (18:09 +0000)]
kernel: update kernel 4.4 to 4.4.52

Bump kernel from 4.4.50 to 4.4.52

Refresh patches

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agobcm53xx: backport accepted BCM5301X and BCM53573 patches
Rafał Miłecki [Tue, 28 Feb 2017 21:34:13 +0000 (22:34 +0100)]
bcm53xx: backport accepted BCM5301X and BCM53573 patches

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: include Broadcom PHY driver in the kernel
Rafał Miłecki [Tue, 7 Feb 2017 17:11:17 +0000 (18:11 +0100)]
bcm53xx: include Broadcom PHY driver in the kernel

Initial idea was to use package with this PHY driver for devices that
need it. Unfortunately this can't work as bgmac is built-in and PHY
probing happens before loading modules - it results in PHY subsystem
picking default (generic) PHY driver.

There were two ways of solving this:
1) Making bcm53xx use bgmac as module
xor
2) Built-in Broadcom PHY driver

After some quick discussion it seems we can simply built-in the driver
as increased kenel size is relatively small (1805 B).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokirkwood: fix include in etc/board.d/02_network
Alberto Bursi [Thu, 23 Feb 2017 18:42:40 +0000 (19:42 +0100)]
kirkwood: fix include in etc/board.d/02_network

the mtd_get_mac_ascii function called within this script requires the inclusion of /lib/functions/system.sh

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agowireless-tools: Change download url to github
Hsing-Wang Liao [Sun, 26 Feb 2017 10:07:52 +0000 (18:07 +0800)]
wireless-tools: Change download url to github

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
7 years agogrub2: update to 2.02~rc1
Alif M. Ahmad [Sat, 18 Feb 2017 16:03:33 +0000 (23:03 +0700)]
grub2: update to 2.02~rc1

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoiftop: bump to latest upstream
Kevin Darbyshire-Bryant [Tue, 18 Oct 2016 08:56:19 +0000 (09:56 +0100)]
iftop: bump to latest upstream

Drops a LEDE carried patch now upstream.
Convert to autotools.
A number of nits fixed upstream (dns & short packet handling most
notable)

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoswconfig: Bugfix switch_port uci option parsing
Ben Kelly [Mon, 20 Feb 2017 12:04:30 +0000 (14:04 +0200)]
swconfig: Bugfix switch_port uci option parsing

When not defining 'device' or 'vlan' in relevant switch_port uci
sections, behaviour is inconsistent due to *devn, *port and *vlan
pointers not being zero initialized.

Signed-off-by: Ben Kelly <ben@benjii.net>
7 years agonetifd: fix stopping netifd + interfaces
Felix Fietkau [Mon, 20 Feb 2017 09:49:33 +0000 (10:49 +0100)]
netifd: fix stopping netifd + interfaces

stop() is overwritten by rc.common, so implement stop_service instead.
While at it, remove the now unnecessary restart() override

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibpcap: add optional netfilter support
Martin Schiller [Mon, 20 Feb 2017 05:27:41 +0000 (06:27 +0100)]
libpcap: add optional netfilter support

This is needed to use the nflog interface with tcpdump

Signed-off-by: Martin Schiller <mschiller@tdt.de>
7 years agoarchs38: only calculate entry point address when necessary
Felix Fietkau [Thu, 16 Feb 2017 06:51:42 +0000 (07:51 +0100)]
archs38: only calculate entry point address when necessary

$(eval) runs even during prereq check, which can cause bogus error
messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoarc770: only calculate entry point address when necessary
Felix Fietkau [Thu, 16 Feb 2017 06:50:55 +0000 (07:50 +0100)]
arc770: only calculate entry point address when necessary

$(eval) runs even during prereq check, which can cause bogus error
messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agopx5g: replace px5g-standalone with a statically linked variant of px5g-mbedtls
Felix Fietkau [Tue, 21 Feb 2017 13:24:32 +0000 (14:24 +0100)]
px5g: replace px5g-standalone with a statically linked variant of px5g-mbedtls

px5g-standalone only supports SHA1 for certificates, which is strongly
deprecated. The new px5g-standalone is about 27k bigger (compressed),
and has identical behavior to px5g-mbedtls (it uses SHA256).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agombedtls: add --function-sections and --data-sections to CFLAGS
Felix Fietkau [Tue, 21 Feb 2017 13:33:14 +0000 (14:33 +0100)]
mbedtls: add --function-sections and --data-sections to CFLAGS

This allows binaries that links these libraries statically to be reduced
by using --gc-sections on link

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoscripts/feeds: Reuse TOPDIR if defined in environment
Michal Sojka [Thu, 16 Feb 2017 22:02:50 +0000 (23:02 +0100)]
scripts/feeds: Reuse TOPDIR if defined in environment

The feeds script sets value of TOPDIR in a way that is inconsistent
with how toplevel Makefile sets it. The inconsistency manifests when I
use a "build directory" with symlinks to LEDE source (see below).

When make is invoked in such a directory, make's TOPDIR variable is
set to that directory, whereas scripts/feeds sets TOPDIR to the top of
LEDE source, which results in creating feeds directory inside the LEDE
source instead of in the build directory.

This patch changes the script so that it reuses the TOPDIR value form
the environment if it exists. The result is that 'make
package/symlinks' correctly fetches feeds to the build directory
instead in the source.

I use the following commands to create the build directory:

    ln -s $SRC/config config
    ln -s $SRC/Config.in Config.in
    ln -s $SRC/feeds.conf.default feeds.conf.default
    ln -s $SRC/include include
    ln -s $SRC/Makefile Makefile
    mkdir package
    ln -s $SRC/package/base-files package/base-files
    ln -s $SRC/package/boot package/boot
    ln -s $SRC/package/devel package/devel
    ln -s $SRC/package/firmware package/firmware
    ln -s $SRC/package/kernel package/kernel
    ln -s $SRC/package/libs package/libs
    ln -s $SRC/package/Makefile package/Makefile
    ln -s $SRC/package/network package/network
    ln -s $SRC/package/system package/system
    ln -s $SRC/package/utils package/utils
    ln -s $SRC/rules.mk rules.mk
    ln -s $SRC/scripts scripts
    ln -s $SRC/target target
    ln -s $SRC/toolchain toolchain
    ln -s $SRC/tools tools

This allows me to easily test changes in LEDE on multiple targets.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
7 years agokernel: add Chinese codepages
Hsing-Wang Liao [Sat, 18 Feb 2017 06:40:58 +0000 (14:40 +0800)]
kernel: add Chinese codepages

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
7 years agogen-dependencies.sh: fix handling variations in "file" output
Felix Fietkau [Sun, 19 Feb 2017 14:28:01 +0000 (15:28 +0100)]
gen-dependencies.sh: fix handling variations in "file" output

On some systems, file adds ", with debug info" after "not stripped"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorstrip.sh: fix handling variations in "file" output
Felix Fietkau [Sun, 19 Feb 2017 13:02:38 +0000 (14:02 +0100)]
rstrip.sh: fix handling variations in "file" output

On some systems, file adds ", with debug info" after "not stripped"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibpcap: remove feature dependencies on kmod-* packages
Felix Fietkau [Fri, 17 Feb 2017 09:04:16 +0000 (10:04 +0100)]
libpcap: remove feature dependencies on kmod-* packages

USB support could be built into the kernel as well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoebtables: update to last commit
Ansuel Smith [Fri, 10 Feb 2017 15:18:47 +0000 (16:18 +0100)]
ebtables: update to last commit

Refreshed patches

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agohostapd: mv netifd.sh hostapd.sh
Daniel Albers [Sun, 12 Feb 2017 19:23:20 +0000 (20:23 +0100)]
hostapd: mv netifd.sh hostapd.sh

same name for the file on the host and target

Signed-off-by: Daniel Albers <daniel.albers@public-files.de>
7 years agoath10k-firmware: update qca9984 firmware
Pavel Kubelun [Fri, 10 Feb 2017 11:13:10 +0000 (14:13 +0300)]
ath10k-firmware: update qca9984 firmware

Bump qca9984 firmware.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoppp: honor ip6table for IPv6 PPP interfaces
Ulrich Weber [Fri, 10 Feb 2017 13:28:09 +0000 (14:28 +0100)]
ppp: honor ip6table for IPv6 PPP interfaces

as we do for IPv4 PPP interfaces. When we create the
dynamic IPv6 interface we should inherit ip6table from
main interface.

Signed-off-by: Ulrich Weber <ulrich.weber@riverbed.com>
7 years agoppp: add pppoe-discovery to an independent package
Florian Eckert [Tue, 7 Feb 2017 14:32:08 +0000 (15:32 +0100)]
ppp: add pppoe-discovery to an independent package

pppoe-discovery performs the same discovery process as pppoe, but does
not initiate a session

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobase-files: Added a deprecation notice on wifi detect
David Pinilla Caparrós [Mon, 30 Jan 2017 14:44:05 +0000 (15:44 +0100)]
base-files: Added a deprecation notice on wifi detect

When running wifi detect, the user will be told on error output that
wifi detect is deprecated, that wifi config must be used instead. Also
the commit that changes it is referenced for further info.

Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
7 years agobase-files: Add wifi config to wifi command usage
David Pinilla Caparrós [Mon, 30 Jan 2017 14:15:08 +0000 (15:15 +0100)]
base-files: Add wifi config to wifi command usage

Since commit 5f8f8a366136a07df661e31decce2458357c167a wifi detect does
not longer work and wifi config it's used to configure not yet
configured wireless devices.

This commit changes command usage to reflect that change.

Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
7 years agoar71xx: fix platform_find_rootfspart()
Thibaut VARENE [Sat, 11 Feb 2017 10:10:37 +0000 (11:10 +0100)]
ar71xx: fix platform_find_rootfspart()

platform_find_rootfspart() fails if the kernel partition comes before the
rootfs partition. The proposed patch fixes this while preserving what I
understand was the original idea: stop at first match.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agouclibc++: patch bugfix erase() on derived __base_associative
Ben Kelly [Tue, 7 Feb 2017 08:56:47 +0000 (10:56 +0200)]
uclibc++: patch bugfix erase() on derived __base_associative

When calling erase() on a containers derived from __base_associative
(e.g. multimap) and providing a pair of iterators a segfault will
occur.

Example code to reproduce:

typedef std::multimap<int, int> testmap;
testmap t;
t.insert(std::pair<int, int>(1, 1));
t.insert(std::pair<int, int>(2, 1));
t.insert(std::pair<int, int>(3, 1));
t.erase(t.begin(), t.end());

Signed-off-by: Ben Kelly <ben@benjii.net>
7 years agoramips: fix Airlink AR725W device title
Mathias Kresin [Sat, 4 Feb 2017 11:55:16 +0000 (12:55 +0100)]
ramips: fix Airlink AR725W device title

Gemtek is the ODM but the board was sold by Airlink101.

Signed-off-by: Mathias Kresin <dev@kresin.me>
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 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 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 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 agoleds-apu2: Add PC Engines APU2 LED driver
Chris Blake [Wed, 25 Jan 2017 17:23:19 +0000 (11:23 -0600)]
leds-apu2: Add PC Engines APU2 LED driver

This adds support for the PCB LEDs and Reset Button found on the PC
Engines APU2/APU3 embedded boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agonetfilter: re-enable TEE support for kernel 4.4
Koen Vandeputte [Fri, 13 Jan 2017 15:23:48 +0000 (16:23 +0100)]
netfilter: re-enable TEE support for kernel 4.4

It got disabled in commit 4454a3fb6375cf1adf17f63a54cd7660bc40caa7
but works nicely these days.

Tested on cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agogpio-nct5104d: Add nct5104d driver package
Chris Blake [Mon, 23 Jan 2017 08:12:35 +0000 (02:12 -0600)]
gpio-nct5104d: Add nct5104d driver package

This adds support for the SuperIO chip nct5104d found on the PC Engines
APU boards, which allows for a handful of additional ports, such as 2x
additional UART pinouts, enabling an external watchdog (no driver for
this functionality yet), and 16 GPIO pins. More info can be found at
https://pcengines.ch/ht_gpio.htm

Thanks to @feckert for helping package this.

Cc: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86/64: Enable GPIO sysfs & GPIO LED support
Chris Blake [Mon, 23 Jan 2017 08:12:34 +0000 (02:12 -0600)]
x86/64: Enable GPIO sysfs & GPIO LED support

The following changes enables GPIO sysfs as well as the LEDS_GPIO option
within the kernel. This is required to enable LEDs over a GPIO
interface.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: drop ep80579-drivers
Mathias Kresin [Thu, 19 Jan 2017 08:03:13 +0000 (09:03 +0100)]
x86: drop ep80579-drivers

The subtarget on which the driver still depends was removed with
dee8986b95dcc200550faebe49c143e5d2357c60 because it was unmaintained
for a long time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago6in4: add missing colon when setting default ca_path
Daniel Golle [Mon, 23 Jan 2017 12:39:52 +0000 (13:39 +0100)]
6in4: add missing colon when setting default ca_path

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoprocd: update to latest git HEAD
John Crispin [Wed, 15 Feb 2017 08:59:46 +0000 (09:59 +0100)]
procd: update to latest git HEAD

5f91241 procd: add cancel_timeout on rc scripts when a runtime_timeout is specified
961dc69 procd: stop service using SIGKILL if SIGTERM failed to do so

Fixes FS#516.

Signed-off-by: John Crispin <john@phrozen.org>
(cherry picked from commit 946d1dfb87d41cf9ffb487522f6a84a5e87edafb)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoprocd: update to the latest version
Felix Fietkau [Sat, 11 Feb 2017 14:56:21 +0000 (15:56 +0100)]
procd: update to the latest version

Fixes compatibility issues with glibc 2.25

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 2ffb80bc9f829f81878b12a10b0a352d3f76c421)

7 years agohostapd: fix feature indication
Jo-Philipp Wich [Sun, 19 Feb 2017 21:04:16 +0000 (22:04 +0100)]
hostapd: fix feature indication

 - Fix eap test to work with standalone hostapd builds
 - Fix 11n test to check the correct define
 - Add 11ac, 11r and 11w tests

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agorelayd: fix making incomplete instance json data
Yousong Zhou [Sat, 25 Feb 2017 12:07:27 +0000 (20:07 +0800)]
relayd: fix making incomplete instance json data

Defer procd_open_instance only after validity check passed.

Fixes FS#541

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agorelayd: remove old start-stop-service related code
Yousong Zhou [Sat, 25 Feb 2017 12:00:14 +0000 (20:00 +0800)]
relayd: remove old start-stop-service related code

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoppp: ppp6-up: add executable permission bit
Yousong Zhou [Wed, 15 Feb 2017 06:06:41 +0000 (14:06 +0800)]
ppp: ppp6-up: add executable permission bit

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agomac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT
Yousong Zhou [Fri, 3 Feb 2017 13:15:42 +0000 (21:15 +0800)]
mac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT

This is required for default wireless configuration of malta target to
work out of the box again.  Fixes "77ece30e: hostapd: Add ability to
specify that that wireless driver supports 802.11ac"

Signed-off-by: Yousong Zhou <yszhou4tech@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>
[Fixes FS#537]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoubus: update to the latest version
Felix Fietkau [Sat, 25 Feb 2017 10:15:07 +0000 (11:15 +0100)]
ubus: update to the latest version

c09e4f0 ubusd: fix incomplete copy of shared buf during queue-ing
453b87f cli: add support for subscribing to objects
6eb3c96 cli: do not use default timeout for listen
dfe3383 libubus: reset ctx->sock.error when doing ubus reconnect
34c6e81 cli: fix listen_timeout compile issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoubus: update to the latest version
Felix Fietkau [Sat, 4 Feb 2017 09:42:06 +0000 (10:42 +0100)]
ubus: update to the latest version

Adds the following fixes:

91acde6 libubus: do not modify uloop_cancelled
763b9b2 libubus: reset ctx->sock.eof to fix reconnect issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>