openwrt/staging/nbd.git
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 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 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 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 agoramips: fix Airlink AR725W factory image build
Mathias Kresin [Sat, 4 Feb 2017 10:02:36 +0000 (11:02 +0100)]
ramips: fix Airlink AR725W factory image build

The factory image can't be bigger than 3328 KByte. If the image is
bigger than that, the gemtek-header tool throws an error and breaks
the build.

Make sure the output file to which the gemtek header should be added
exists and wasn't removed during the check-size step because of it
size. This will prevent hard errors in case the factory image is to big
similar to what is done for sysupgrade images.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoipq806x: fix wireless macs
Hannu Nyman [Fri, 3 Feb 2017 13:10:57 +0000 (15:10 +0200)]
ipq806x: fix wireless macs

Commit 71a39b8 ("ipq806x: Fix wireless support for Netgear Nighthawk X4S
D7800") added a trailing TAB char after the backslash which prevents
the assignment of the correct MACs for wifi devices.

Fixes: FS#451
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
[reworded commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobcm53xx: set WAN MAC address to don't share one with LAN interface
Rafał Miłecki [Wed, 1 Feb 2017 15:45:19 +0000 (16:45 +0100)]
bcm53xx: set WAN MAC address to don't share one with LAN interface

After analyzing numerous NVRAMs and vendor firmwares it seems the base
MAC address is used for LAN interface. WAN interface has different one
which sometimes is set directly in NVRAM and sometines needs to be
calculated.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
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 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 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 agomusl: update musl to 1.1.16+ and switch to download from git
Christian Lamparter [Tue, 3 Jan 2017 16:51:04 +0000 (17:51 +0100)]
musl: update musl to 1.1.16+ and switch to download from git

This patch updates musl to 1.1.16+ [0] and removes all the
backported patches. This is a major release and tagged as such.
For more information visit musl-libc.org or read the WHATSNEW.

Furthermore, this patch also changes musl to download directly
from git. This makes it easier to update musl in the future.

The patch custom Add-format-attribute-to-some-function-declarations.patch
was assigned a new 400- number. This should avoid confusion
since 0xx numbers are usually assigned to backports.

[0] <http://git.musl-libc.org/cgit/musl/commit/?id=769f53598e781ffc89191520f3f8a93cb58db91f>

Cc: Hannu Nyman <hannu.nyman@iki.fi>
Cc: Koen Vandeputte <koen.vandeputte@ncentric.com>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
7 years agoar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:39:55 +0000 (09:39 +0800)]
ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
7 years agoar71xx: fix netgear wnr2000 v3 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:34:53 +0000 (09:34 +0800)]
ar71xx: fix netgear wnr2000 v3 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order after merging with gl-ar300 case]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: fix tl-wr841n-v7 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:26:20 +0000 (09:26 +0800)]
ar71xx: fix tl-wr841n-v7 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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 agomvebu: set fan_ctrl.sh only on mamba
Hans Geiblinger [Fri, 13 Jan 2017 14:13:55 +0000 (09:13 -0500)]
mvebu: set fan_ctrl.sh only on mamba

Signed-off-by: Hans Geiblinger <cybrnook2002yahoo.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
7 years agox86: add kernel module for sp5100_tco watchdog
Chris Blake [Sat, 14 Jan 2017 16:20:25 +0000 (10:20 -0600)]
x86: add kernel module for sp5100_tco watchdog

This change adds the sp5100_tco driver as a kernel module for the x86
target. Specifically, this can be used by the PCEngines APU2/APU3. The
reason for having this as a kernel module is to allow users to
load/unload it on demand, as the I2C interface on the APU2/APU3 will not
work while this module is loaded. More info can be found on GitHub at
https://github.com/riptidewave93/LEDE-APU2/pull/5#issuecomment-255667736

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: Add sp5100_tco AMD patches
Chris Blake [Sat, 14 Jan 2017 16:20:24 +0000 (10:20 -0600)]
x86: Add sp5100_tco AMD patches

This adds the following patches to the x86 target:

sp5100_tco: Add AMD Mullins platform support
sp5100_tco: Add AMD Carrizo platform support
sp5100_tco: fix the device check for SB800 and later chipsets
watchdog: sp5100_tco: properly check for new register layouts

With these added, the sp5100_tco driver can then be used on newer AMD
platforms, such as the PCEngines APU2/APU3 boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agoocteon: fix mtd partitions for erlite on cmdline
Jiri Kastner [Wed, 18 Jan 2017 09:45:23 +0000 (10:45 +0100)]
octeon: fix mtd partitions for erlite on cmdline

erlite mtdparts exposes boot0, boot1 and eeprom regions
as read/write.
this patch adds readonly flags, so these regions can't be
modified. same as it is already for ER profile.

Signed-off-by: Jiri Kastner <cz172638@gmail.com>
7 years agoipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
Zhang Jingye [Mon, 16 Jan 2017 12:10:51 +0000 (20:10 +0800)]
ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800

D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band.
However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading.

This patch adds d7800 to ath10k caldata extraction list.
I can get two functional wireless bands after making change to it.

Signed-off-by: Zhang Jingye <934526987@qq.com>
7 years agopackage-ipkg: Do not fail build without base-files
Florian Fainelli [Sat, 10 Dec 2016 00:04:49 +0000 (16:04 -0800)]
package-ipkg: Do not fail build without base-files

If the base-files package is not selected, we will fail executing the
very first postinst script:

make[3]: Leaving directory `/local/users/fainelli/openwrt/trunk'
cp -fpR
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root.orig-orion
./usr/lib/opkg/info/busybox.postinst: line 3:
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion/lib/functions.sh:
No such file or directory
./usr/lib/opkg/info/busybox.postinst: line 4: default_postinst: command
not found
postinst script ./usr/lib/opkg/info/busybox.postinst has failed with
exit code 127
make[2]: *** [package/install] Error 1

Check for the existence of lib/functions.sh, and if it does not exist,
just bail out gracefully.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoFix dependency for hostapd
Wilco Baan Hofman [Wed, 4 Jan 2017 16:48:42 +0000 (17:48 +0100)]
Fix dependency for hostapd

Signed-off-by: Wilco Baan Hofman <wilco@baanhofman.nl>
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 agolibtool: don't clobber host libtool infrastructure
Jo-Philipp Wich [Sat, 21 Jan 2017 23:28:54 +0000 (00:28 +0100)]
libtool: don't clobber host libtool infrastructure

The libtool target package stages its files into the host staging directory
and moves the libltdl library parts from there into the target staging
directory afterwards.

By doing so, the package essentially renders the host libtool infrastructure
unusable, leading to the below error in subsequent package builds:

    libtoolize: $pkgltdldir is not a directory: `.../hostpkg/share/libtool`

Prevent this problem by using a dedicated libltdl install prefix in order to
avoid overwriting and moving away preexisting files belonging to tools/libtool.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: properly pass CPP and CXX flags in HOST_MAKE_VARS
Jo-Philipp Wich [Tue, 17 Jan 2017 08:29:50 +0000 (09:29 +0100)]
build: properly pass CPP and CXX flags in HOST_MAKE_VARS

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: introduce default HOST_MAKE_VARS for host-builds
Alexandru Ardelean [Mon, 9 Jan 2017 12:59:02 +0000 (14:59 +0200)]
build: introduce default HOST_MAKE_VARS for host-builds

Inspired/adapted from `package-defaults.mk` MAKE_VARS.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agotools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars
Alexandru Ardelean [Thu, 12 Jan 2017 13:31:13 +0000 (15:31 +0200)]
tools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars

The final semantic is the same, but this is a bit more correct.

Build tested on Windows 10 (yes, there is some
Ubuntu mode for Windows 10, and I've been also building LEDE
on it for a few weeks).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
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 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 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 agoodhcpd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:28:28 +0000 (21:28 +0100)]
odhcpd: update to git HEAD version

c4f9ace odhcpd: decrease default log level to LOG_INFO
a6eadd7 odhcpd: rework IPv6 interface address dump
44965f1 odhcpd: extra syslog tracing

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Tue, 24 Jan 2017 09:01:00 +0000 (10:01 +0100)]
odhcpd: update to git HEAD version

e447ff9 router: fix compile issue on 64 bit systems

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Mon, 23 Jan 2017 17:36:25 +0000 (18:36 +0100)]
odhcpd: update to git HEAD version

237f1f4 router: convert syslog lifetime traces into LOG_INFO prio
da660c7 treewide: rework prio of syslog messages
0485580 ndp: code cleanup
c5040fe router: add syslog debug tracing for trouble shooting
df023ad treewide: use RELAYD_MAX_ADDRS as address array size
c8ac572 ndp: don't scan netlink attributes in case of netlink route
event

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:22:18 +0000 (21:22 +0100)]
netifd: update to git HEAD version

650758b interface-ip: route proto config support (FS#170)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobase-files: add /etc/iproute2/rt_protos
Hans Dedecker [Tue, 17 Jan 2017 21:50:40 +0000 (22:50 +0100)]
base-files: add /etc/iproute2/rt_protos

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobase-files: uppercase default hostname: LEDE
Yousong Zhou [Wed, 11 Jan 2017 03:21:16 +0000 (11:21 +0800)]
base-files: uppercase default hostname: LEDE

The name will appear in shell prompt and LuCI page title.  Uppercase
letters seem to be more vigorous

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoprocd: update procd.sh to disallow signal-numbers, enforce signal-names
Bastian Bittorf [Fri, 13 Jan 2017 19:22:51 +0000 (20:22 +0100)]
procd: update procd.sh to disallow signal-numbers, enforce signal-names

A given signal-name is now converted to the corresonding number. In general
it's good style to use names (readability) and it's more portable: signal
numbers can be architecture-dependent, so we are more safe giving names.

A real world example is signal 10, which is BUS on ramips and USR1 on PPC.

All users of 'procd_send_signal' must change their code to reflect this.

Signed-off-by: Bastian Bittorf <bb@npl.de>
7 years agoopenvpn: ssl-enabled variants also provide a virtual openvpn-crypto package
Sven Roederer [Sun, 22 Jan 2017 18:00:51 +0000 (19:00 +0100)]
openvpn: ssl-enabled variants also provide a virtual openvpn-crypto package

When relying on x.509 certs for auth and / or encryption of traffic you can't
use package openvpn-nossl.
Just have your package depend on openvpn-crypto to have SSL-encryption and
X.509-support enabled in OpenVPN. If encryption / X.509 is not a must, use
virtual packge openvpn, which is provided by all OpenVPN-variants.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
7 years agoiproute2: cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Sat, 31 Dec 2016 17:15:56 +0000 (17:15 +0000)]
iproute2: cake: add 'mpu' minimum packet length support

Add 'mpu' minimum length packet size parameter for scheduling/bandwidth
accounting.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agokmod-sched-cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Fri, 23 Dec 2016 16:46:45 +0000 (16:46 +0000)]
kmod-sched-cake: add 'mpu' minimum packet length support

Add 'mpu' minimum packet length for scheduling/bandwidth accounting
purposes.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agohostapd: default to wps_independent 1
Steven Honson [Sat, 14 Jan 2017 11:22:24 +0000 (22:22 +1100)]
hostapd: default to wps_independent 1

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agohostapd: expose wps_independent and ap_setup_locked as uci options
Steven Honson [Tue, 27 Dec 2016 05:16:23 +0000 (16:16 +1100)]
hostapd: expose wps_independent and ap_setup_locked as uci options

ap_setup_locked is named wps_ap_setup_locked in uci for consistency with other
wps related uci options.

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agomwlwifi: Fixes rewritten history hash and latest version
Gabe Rodriguez [Wed, 25 Jan 2017 04:48:53 +0000 (20:48 -0800)]
mwlwifi: Fixes rewritten history hash and latest version

The author of the upstream mwlwifi edited the history of the previous commit.
This commit not only fixes the updated hash but also sends in the latest
commits he made to the code which are mainly testing.

Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
7 years agoopkg: clarify messages and errors related to downloads
Hannu Nyman [Mon, 23 Jan 2017 09:40:29 +0000 (11:40 +0200)]
opkg: clarify messages and errors related to downloads

Clarify opkg's messages related to downloads:

* more visible error message for package list download failure
* separate error message for signature file download error
* if wget returns 4, signal the network error more clearly
* remove '.' from end of filenames and URLs

* try signature check only if the package list was downloaded ok.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoubus: update to the latest version
Felix Fietkau [Sun, 22 Jan 2017 13:37:24 +0000 (14:37 +0100)]
ubus: update to the latest version

Adds uloop related libubus fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoubus: update to the latest version
Felix Fietkau [Fri, 20 Jan 2017 10:34:26 +0000 (11:34 +0100)]
ubus: update to the latest version

- Adds support for passing file descriptors in ubus invoke requests
- Fixes clearing pending timers on ubus_shutdown()
- Fixes checking the amount of written data in ubusd
- Fixes an ubusd crash when trying to subscribe to system objects

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)
Jo-Philipp Wich [Fri, 13 Jan 2017 15:38:22 +0000 (16:38 +0100)]
kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)

Running ar8327_get_arl_entry() early after boot leads to MDIO related system
lockups on several devices using this driver.

Since dumping the ARL table contens is an optional, uncritical feature, simply
disable the code for now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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 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 agoar71xx: Fix mikrotik subtarget default profile for device profile selection
Alex Samorukov [Sun, 22 Jan 2017 17:56:37 +0000 (17:56 +0000)]
ar71xx: Fix mikrotik subtarget default profile for device profile selection

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agoar71xx: improve Mikrotik hAP Lite device support
Alex Samorukov [Thu, 19 Jan 2017 14:38:49 +0000 (15:38 +0100)]
ar71xx: improve Mikrotik hAP Lite device support

- remove CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
- enable jffs2 support
- fix sysupgrade

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agoar71xx: mark soft_config mtd part as writeable for RB-941-2nD
Thibaut VARENE [Wed, 18 Jan 2017 09:44:19 +0000 (10:44 +0100)]
ar71xx: mark soft_config mtd part as writeable for RB-941-2nD

The soft_config partition must be writeable for rbcfg to be able to
enact changes to the routerboot configuration.
The read-only flag was a mistake in the initial patch. Removing it
brings mach-rb941.c in line with all other RB platforms.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: fix up the kernel config for the mikrotik subtarget
Felix Fietkau [Tue, 10 Jan 2017 17:09:22 +0000 (18:09 +0100)]
ar71xx: fix up the kernel config for the mikrotik subtarget

Limit enabled devices to routerboards, disable all other devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix network config for Mikrotik RB411U
Cezary Jackiewicz [Mon, 9 Jan 2017 21:06:12 +0000 (22:06 +0100)]
ar71xx: fix network config for Mikrotik RB411U

Mikrotik RB411U has only one ethernet port - eth0. This patch allows to create
correct config with one lan section.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
7 years agoar71xx: add support for RB-941-2nD
Thibaut VARENE [Wed, 4 Jan 2017 21:44:54 +0000 (22:44 +0100)]
ar71xx: add support for RB-941-2nD

Add full support for Mikrotik RB-941-2nD (hAP lite)

Original patch by Sergey Sergeev <adron@yapic.net> and
more information is available here:
https://wiki.openwrt.org/toh/mikrotik/rb941_2nd
I updated and adapted the patch to apply cleanly to LEDE trunk
and added proper numbering for the switch ports (matching case
labels).
Tested working on actual hardware with the information
provided in the above webpage. Sysupgrade works.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: convert mikrotik routerboard support to UBI
Felix Fietkau [Sun, 8 Jan 2017 13:27:38 +0000 (14:27 +0100)]
ar71xx: convert mikrotik routerboard support to UBI

Remove the wget2nand script, drop the need for manual installation,
use sysupgrade instead.

There are now two different NAND images, one for 64 MiB flashes, the
other for >= 128 MiB

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: create a proper default profile for the mikrotik subtarget, drop other profiles
Felix Fietkau [Sat, 7 Jan 2017 19:54:42 +0000 (20:54 +0100)]
ar71xx: create a proper default profile for the mikrotik subtarget, drop other profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agotools: update kernel2minor to 0.24 version
Sergey Sergeev [Tue, 24 Jan 2017 13:04:18 +0000 (16:04 +0300)]
tools: update kernel2minor to 0.24 version

Signed-off-by: Sergey Sergeev <adron@yapic.net>
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 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 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 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 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 agotools/qemu: use default host configure rule ; set appropriate vars & args
Alexandru Ardelean [Mon, 9 Jan 2017 12:46:18 +0000 (14:46 +0200)]
tools/qemu: use default host configure rule ; set appropriate vars & args

Admittedly, this is my own OCD wanting to get rid of this.

Because I tried (a while back to upgrade QEMU to a newer version),
and (during that attempt) I tried to get rid of this.

Tested on Linux & Mac.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
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 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 agokmod-sched-core: Add HTB and TBF traffic shapers
Toke Høiland-Jørgensen [Fri, 20 Jan 2017 12:13:35 +0000 (13:13 +0100)]
kmod-sched-core: Add HTB and TBF traffic shapers

HTB and TBF are the basic traffic shapers used by sqm-scripts. Moving
these into kmod-sched-core enables sqm-scripts to downgrade its
dependency from kmod-sched to kmod-sched-core, potentially making it
useful on devices with smaller flash sizes.

This adds around 30k to the size of kmod-sched-core (20k for sch_htb.ko
and 10k for sch_tbf.ko).

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
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 agoopenvpn: add support for various new 2.4 configuration options
Magnus Kroken [Mon, 16 Jan 2017 21:56:03 +0000 (22:56 +0100)]
openvpn: add support for various new 2.4 configuration options

Updates to openvpn.init were included in early OpenVPN 2.4 patch
series, but got lost along the way and were never merged.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
7 years agokernel: backport support for BCM54210E PHY
Rafał Miłecki [Sat, 28 Jan 2017 17:51:57 +0000 (18:51 +0100)]
kernel: backport support for BCM54210E PHY

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: backport support for BCM54810 PHY
Rafał Miłecki [Sat, 28 Jan 2017 17:44:23 +0000 (18:44 +0100)]
kernel: backport support for BCM54810 PHY

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

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
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 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 agoath9k: fix up a refcount imbalance error in the IRQ related fix
Felix Fietkau [Fri, 27 Jan 2017 14:43:12 +0000 (15:43 +0100)]
ath9k: fix up a refcount imbalance error in the IRQ related fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoprocd: update to latest git HEAD
Matthias Schiffer [Thu, 26 Jan 2017 15:18:41 +0000 (16:18 +0100)]
procd: update to latest git HEAD

0f58977 init: fix /tmp permissions on zram

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobase-files: fix user creation on sysupgrade with few opkg control files
Matthias Schiffer [Tue, 24 Jan 2017 17:55:13 +0000 (18:55 +0100)]
base-files: fix user creation on sysupgrade with few opkg control files

If only a single opkg control file exists (which can happen with
CONFIG_CLEAN_IPKG), grep would not print the file name by default. Instead
of forcing it using -H, we just switch to -l (print only file names) and
get rid of the cut.

Add -s to suppress an error message when no control files exist.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoinclude/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG
Matthias Schiffer [Tue, 24 Jan 2017 16:00:43 +0000 (17:00 +0100)]
include/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG

Require-User is handled by /etc/uci-defaults/13_fix_group_user on first
boot, so we need to keep these when removing all opkg data with
CONFIG_CLEAN_IPKG.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoimagebuilder: properly escape single quotes in device titles
Jo-Philipp Wich [Thu, 26 Jan 2017 09:13:23 +0000 (10:13 +0100)]
imagebuilder: properly escape single quotes in device titles

The name "Plat'Home OpenBlocks AX3" causes the imagebuilders "make info"
command to fail with:

    bash: -c: line 0: syntax error near unexpected token `('
    bash: -c: line 0: `echo;  [...]'
    Makefile:99: recipe for target '_call_info' failed

Properly escape single quotes to avoid breaking the echo commands.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)
Felix Fietkau [Wed, 25 Jan 2017 14:32:18 +0000 (15:32 +0100)]
ath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)

The radio would stop communicating completely. This issue was easiest to
trigger on AR913x devices, e.g. the TP-Link TL-WR1043ND, but other
hardware was occasionally affected as well.

The most critical issue was a race condition in disabling/enabling IRQs
between the IRQ handler and the IRQ processing tasklet

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: refresh patch
Felix Fietkau [Wed, 25 Jan 2017 14:31:51 +0000 (15:31 +0100)]
mac80211: refresh patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoAdd back the commit "ath9k: Add airtime fairness scheduler"
Felix Fietkau [Tue, 24 Jan 2017 14:23:30 +0000 (15:23 +0100)]
Add back the commit "ath9k: Add airtime fairness scheduler"

This reverts commit c296ba834db4ce8c71e0ad7030aab188fe60b27b.
According to several reports, the issues with the airtime fairness
changes are gone in current versions.
It's time to re-apply the patch now.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobcm53xx: disable building Linksys EA6300 V1 image
Rafał Miłecki [Wed, 25 Jan 2017 09:48:51 +0000 (10:48 +0100)]
bcm53xx: disable building Linksys EA6300 V1 image

This device has 2 TRX partitions (main one and failsafe one) and Linux
may not detect them properly failing to run userspace.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agox86: fix sysupgrades on disks with 4k block size
Felix Fietkau [Wed, 25 Jan 2017 07:13:11 +0000 (08:13 +0100)]
x86: fix sysupgrades on disks with 4k block size

Even when the disk uses 4k blocks, the partition table still uses units
of 512 byte sectors. Always use ibs=512 for the offsets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: brcmfmac: don't use uninitialize mem for country codes
Rafał Miłecki [Tue, 24 Jan 2017 15:54:09 +0000 (16:54 +0100)]
mac80211: brcmfmac: don't use uninitialize mem for country codes

There was a bug in brcmfmac patch that could result in treating random
memory as source of country codes.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: move (& update) upstream accepted brcmfmac patches
Rafał Miłecki [Tue, 17 Jan 2017 21:41:18 +0000 (22:41 +0100)]
mac80211: move (& update) upstream accepted brcmfmac patches

These 3 patches are now in wireless-drivers-next tree.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm47xx: backport arch patch with Luxul devices support
Rafał Miłecki [Tue, 24 Jan 2017 19:22:14 +0000 (20:22 +0100)]
brcm47xx: backport arch patch with Luxul devices support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agopackages: mark packages depending on a target as nonshared
Mathias Kresin [Thu, 19 Jan 2017 08:18:57 +0000 (09:18 +0100)]
packages: mark packages depending on a target as nonshared

The packages can't be build as shared packages due to the unmet
dependencies.

Fixes FS#418.

Signed-off-by: Mathias Kresin <dev@kresin.me>