openwrt/staging/hauke.git
9 years agobrcm2708: update 4.1 patches
Felix Fietkau [Fri, 11 Sep 2015 16:32:00 +0000 (16:32 +0000)]
brcm2708: update 4.1 patches

As usual, this patches were taken (and rebased) from
https://github.com/raspberrypi/linux/commits/rpi-4.1.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 46853

9 years agotarget: ar71xx: add support for COMFAST CF-E316N v2 board
Felix Fietkau [Fri, 11 Sep 2015 16:31:35 +0000 (16:31 +0000)]
target: ar71xx: add support for COMFAST CF-E316N v2 board

This adds full support (sans sysupgrading from vendor firmware) for the COMFAST
CF-E316N v2 (aka CF-E316V2, CF-E316N-V2 and CF-E316Nv2.0, no FCC ID) by
Shenzhen Four Seas Global Link Network Technology Co., Ltd (this company is
actively refusing to provide GPL'd sources for the OpenWrt version they ship
with the device, damn them).

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 46852

9 years agohostapd: work around unconditional libopenssl build dependency
Felix Fietkau [Fri, 11 Sep 2015 16:31:18 +0000 (16:31 +0000)]
hostapd: work around unconditional libopenssl build dependency

As the OpenWrt build system only resolves build dependencies per directory,
all hostapd variants were causing libopenssl to be downloaded and built,
not only wpad-mesh. Fix this by applying the same workaround as in
ustream-ssl.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 46851

9 years agoopkg: work around unconditional libopenssl build dependency
Felix Fietkau [Fri, 11 Sep 2015 16:31:01 +0000 (16:31 +0000)]
opkg: work around unconditional libopenssl build dependency

As the OpenWrt build system only resolves build dependencies per directory,
all opkg variants were causing libopenssl to be downloaded and built,
not only opkg-smime. Fix this by applying the same workaround as in
ustream-ssl.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 46850

9 years agobase-files: change banner to Designated Driver release
Rafał Miłecki [Fri, 11 Sep 2015 08:56:37 +0000 (08:56 +0000)]
base-files: change banner to Designated Driver release

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46846

9 years agocomgt-ncm: Add possibility to choose PDP context type
Steven Barth [Fri, 11 Sep 2015 06:46:42 +0000 (06:46 +0000)]
comgt-ncm: Add possibility to choose PDP context type

By setting the option pdptype to IP, IPV6 or IPV4V6 the user can
choose the context type between IPv4, IPv6 and dual stack,
respectively. The default setting is dual stack, except if option
ipv6=0 is specified, in which case IPv4 context is the default.
This allows for an out-of-the-box IPv6 support with modems
utilizing NCM-like protocols.

While we are at it, also add commands for Sierra DirectIP modems
(currently untested), which will allow us to drop the separate
comgt-directip package (once tested and verified working).

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 46844

9 years agouqmi: Add proper IPv6 support
Steven Barth [Fri, 11 Sep 2015 06:46:40 +0000 (06:46 +0000)]
uqmi: Add proper IPv6 support

Use the new --ip-family option to start both IPv4 and IPv6 sessions
by default. Autoconnect can't be used when starting two sessions,
so revert back to using the client IDs and packet data handles for
handling the network connection.

Some modem firmwares do not implement a RA server, therefore by
default use outband IP configuration and static addressing. Some
other firmwares report bogus IP configuration with the WDS get
current settings command. In this case inband configuration with
DHCP/RA can be optionally enabled by setting option dhcp to 1.

Per 3GPP standard a /64 prefix is served to all clients, which is
extended to LAN as specified in RFC 7278.

v2: Restrict the IPv6 gateway route source address
Signed-off-by: Matti Laakso <malaakso@elisanet.fi>
SVN-Revision: 46843

9 years agofirewall: Remove src_port from firewall.config to receive dhcpv6 replies
Steven Barth [Fri, 11 Sep 2015 06:46:35 +0000 (06:46 +0000)]
firewall: Remove src_port from firewall.config to receive dhcpv6 replies

Seems like my second try was again whitespace broken. Sorry for the noise.

Remove src_port from firewall.config to receive dhcpv6 replies. Fixes #20295.

Signed-off-by: Anselm Eberhardt <a.eberhardt@cygnusnetworks.de>
SVN-Revision: 46842

9 years agonetifd: update to the latest version, fixes a WDS STA mode regression caused by multi...
Felix Fietkau [Thu, 10 Sep 2015 21:00:19 +0000 (21:00 +0000)]
netifd: update to the latest version, fixes a WDS STA mode regression caused by multicast-to-unicast handling (#20466)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46841

9 years agoimagebuilder: run build prereq checks before building image to set up host commands...
Felix Fietkau [Thu, 10 Sep 2015 11:06:42 +0000 (11:06 +0000)]
imagebuilder: run build prereq checks before building image to set up host commands properly

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46840

9 years agoipq806x: fix uninitialized variable usage in cpufreq-krait
Jonas Gorski [Thu, 10 Sep 2015 10:09:42 +0000 (10:09 +0000)]
ipq806x: fix uninitialized variable usage in cpufreq-krait

In krait_cpufreq_probe, both freq and max_cpu_freq are never
initialized, so the max_cpu_freq will have a random value at the end.
Fix this by properly initializing max_cpu_freq to 0 and storing the clk
frequency in freq as well, to make it similar to how it's calculated in
krait_set_target.

Fixes the following warnings:

In file included from include/linux/clk.h:16:0,
                 from drivers/cpufreq/cpufreq-krait.c:13:
drivers/cpufreq/cpufreq-krait.c: In function 'krait_cpufreq_probe':
include/linux/kernel.h:714:24: warning: 'freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
  _max1 > _max2 ? _max1 : _max2; })
                        ^
drivers/cpufreq/cpufreq-krait.c:217:25: note: 'freq' was declared here
  unsigned long freq_Hz, freq, max_cpu_freq;
                         ^
In file included from include/linux/clk.h:16:0,
                 from drivers/cpufreq/cpufreq-krait.c:13:
include/linux/kernel.h:714:24: warning: 'max_cpu_freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
  _max1 > _max2 ? _max1 : _max2; })
                        ^
drivers/cpufreq/cpufreq-krait.c:217:31: note: 'max_cpu_freq' was declared here
  unsigned long freq_Hz, freq, max_cpu_freq;

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46839

9 years agoipq806x: modules: fix typo in usb-dwc3-qcom dependencies
Jonas Gorski [Thu, 10 Sep 2015 10:09:36 +0000 (10:09 +0000)]
ipq806x: modules: fix typo in usb-dwc3-qcom dependencies

The phy driver has its qcom-dwc3 order switched in contrast to the usb
controller driver.

Signed-off-by: Kaspar Schleiser <kaspar@schleiser.de>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46838

9 years agoipq806x: fix R7500 kernel generation
Jonas Gorski [Thu, 10 Sep 2015 10:09:26 +0000 (10:09 +0000)]
ipq806x: fix R7500 kernel generation

Obviously the dummy rootfs must be after the kernel (uImage), not
included in it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46837

9 years agobusybox: lock: implement -n "Fail rather than wait"
Felix Fietkau [Wed, 9 Sep 2015 20:36:10 +0000 (20:36 +0000)]
busybox: lock: implement -n "Fail rather than wait"

lock -n is similiar to flock -n. If the lock was already taken,
fail with exit code = 1 and write error message to stderr.

example:
if ! lock -n /tmp/foo ; then
echo lock exits.
else
echo lock was free. But is locked now.
fi
> lock was free. But is locked now.
> lock exists.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 46836

9 years agogeneric: Fix per interface nf_call_iptables setting
Felix Fietkau [Wed, 9 Sep 2015 18:40:15 +0000 (18:40 +0000)]
generic: Fix per interface nf_call_iptables setting

commit r30917 ("kernel: bypass all netfilter hooks if the sysctls for that
functionality have been disabled - eliminates the overhead of enabling
CONFIG_BRIDGE_NETFILTER in the kernel config") introduced an optimization
which should reduce/eliminate the overhead for traffic send over bridges on
kernels compiled with CONFIG_BRIDGE_NETFILTER=y. But this optimization
breaks the nf_call_iptables per bridge setting which is more fine grained
than the global sysctl net.bridge.bridge-nf-call-iptables setting.

A test reflecting a real world setup was created to identify if this really
eliminates the overhead and if per-bridge nf_call_iptables could be used in
some setups to increase the throughput. A Qualcomm Atheros QCA9558 based
system with one ethernet and an ath9k wifi 3x3 in HT40 mode was used.
Cables from the AP to the wifi station were used to reduce interference
problems during the tests.

The wlan interface was put in one bridge interface called br-wlan. This
bridge usually contains some more wlan interfaces. The eth0 was put in a
second bridge called br-lan. This usually contains some other privileged
wlan or mesh interfaces. Routing was added between br-lan and br-wlan.

Three kernels were tested:

 * (default) OpenWrt kernel for this device
 * (brfilter-global) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y
 * (brfilter-local)  OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y and
    without 644-bridge_optimize_netfilter_hooks.patch

The changes to the the netfilter settings of the bridge were done via:

 * (brfilter-global) /sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1
 * (brfilter-lobal) echo 1 > /sys/class/net/br-lan/bridge/nf_call_iptables
   and/or echo 1 > /sys/class/net/br-wan/bridge/nf_call_iptables

A station connected to the wlan0 (AP) interface was used to send traffic to
a PC connected via ethernet. iperf with 3 concurrent transmissions was used
to generate the traffic.

| kernel          | br-nf-* global | nf-call* iface | download | upload   |
|-----------------|----------------|----------------|----------|----------|
| default         | 0              | -              |      209 |      268 |
| brfilter-global | 0              | -              |      185 |      243 |
| brfilter-local  | 0              | -              |      187 |      243 |
| brfilter-local  | 0              | br-lan         |      157 |      226 |
| brfilter-local  | 0              | br-lan br-wlan |      139 |      161 |
| brfilter-global | 1              | -              |      136 |      162 |

Download/upload results in Mibit/s

It can be seen that the patch doesn't eliminate the overhead. It can also
be seen that the throughput of brfilter-global and brfilter-local with
disabled filtering is the roughly the same. Also the throughput for
brfilter-global and brfilter-local for enabled filtering on all bridges is
roughly the same.

But also the brfilter-local throughput is higher when only br-lan requires
the filtering. This setting would not be possible with
644-bridge_optimize_netfilter_hooks.patch applied and thus can only be
compared with brfilter-global and filtering enabled for all interfaces.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 46835

9 years agolinux: make IPv6 builtin if selected (saves >30KB)
Steven Barth [Wed, 9 Sep 2015 12:20:36 +0000 (12:20 +0000)]
linux: make IPv6 builtin if selected (saves >30KB)

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46834

9 years agobusybox: fix ip applet and netlink behavior
Steven Barth [Wed, 9 Sep 2015 10:38:16 +0000 (10:38 +0000)]
busybox: fix ip applet and netlink behavior

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46833

9 years agopackage: replace ifconfig-usage with ip
Steven Barth [Tue, 8 Sep 2015 17:44:24 +0000 (17:44 +0000)]
package: replace ifconfig-usage with ip

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46832

9 years agoiproute2: improve ip-full coexistence, remove rt_table
Steven Barth [Tue, 8 Sep 2015 17:44:17 +0000 (17:44 +0000)]
iproute2: improve ip-full coexistence, remove rt_table

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46831

9 years agobase-files: add /etc/iproute2/rt_tables, replace ifconfig-usage
Steven Barth [Tue, 8 Sep 2015 17:44:13 +0000 (17:44 +0000)]
base-files: add /etc/iproute2/rt_tables, replace ifconfig-usage

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46830

9 years agobusybox: improve applets & deprecate ifconfig, route
Steven Barth [Tue, 8 Sep 2015 17:44:10 +0000 (17:44 +0000)]
busybox: improve applets & deprecate ifconfig, route

added: ip addr, ip route, ip link, traceroute6
removed: hostid, devmem, vconfig, arping
deprecated (to be removed): ifconfig, route

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46829

9 years agokernel: describe bridge patch "multicast to unicast"
Rafał Miłecki [Tue, 8 Sep 2015 16:43:32 +0000 (16:43 +0000)]
kernel: describe bridge patch "multicast to unicast"

It was initially added in r41367 by nbd.

SVN-Revision: 46828

9 years agokernel: describe bridge patch "optimize netfilter hooks"
Rafał Miłecki [Tue, 8 Sep 2015 16:43:21 +0000 (16:43 +0000)]
kernel: describe bridge patch "optimize netfilter hooks"

It was initially added in r30917 by nbd.

SVN-Revision: 46827

9 years agokernel: describe bridge patch "remove IPv6 depependency of bridge in 2.6.38+"
Rafał Miłecki [Tue, 8 Sep 2015 16:43:10 +0000 (16:43 +0000)]
kernel: describe bridge patch "remove IPv6 depependency of bridge in 2.6.38+"

It was initially added in r27237 by jow as patch from Jonas.

SVN-Revision: 46826

9 years agokernel: describe bridge patch "port isolate"
Rafał Miłecki [Tue, 8 Sep 2015 16:43:04 +0000 (16:43 +0000)]
kernel: describe bridge patch "port isolate"

It was initially added in r25762 by nbd.

SVN-Revision: 46825

9 years agokernel: describe bridge patch "always accept EAP"
Rafał Miłecki [Tue, 8 Sep 2015 16:42:58 +0000 (16:42 +0000)]
kernel: describe bridge patch "always accept EAP"

It was initially added in r26015 by nbd.

SVN-Revision: 46824

9 years agokernel: describe bridge patch "no EAP forward"
Rafał Miłecki [Tue, 8 Sep 2015 16:42:50 +0000 (16:42 +0000)]
kernel: describe bridge patch "no EAP forward"

It was initially added in r25095 by nbd.

SVN-Revision: 46823

9 years agokernel: restore 640-bridge_no_eap_forward.patch to its original form
Felix Fietkau [Tue, 8 Sep 2015 14:29:55 +0000 (14:29 +0000)]
kernel: restore 640-bridge_no_eap_forward.patch to its original form

It was corrupted in r38528. The most obvious symptom is repeated messages like this:

Tue Sep  8 08:25:18 2015 kern.warn kernel: [77141.972226] br-lan: received packet on wlan0 with own address as source address

Signed-off-by: Dmitry Ivanov <dima@ubnt.com>
SVN-Revision: 46821

9 years agokernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4
Felix Fietkau [Tue, 8 Sep 2015 12:31:04 +0000 (12:31 +0000)]
kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4

Everything except for blkcipher was already built-in, so make blkcipher
built-in as well.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46820

9 years agomap: be less restrictive when matching lw4over6 prefixes
Steven Barth [Tue, 8 Sep 2015 12:13:29 +0000 (12:13 +0000)]
map: be less restrictive when matching lw4over6 prefixes

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46819

9 years agoiw: reduce size even more (~12k after gzip)
Felix Fietkau [Tue, 8 Sep 2015 11:48:48 +0000 (11:48 +0000)]
iw: reduce size even more (~12k after gzip)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46818

9 years agomusl: add a hack to remove unused crypt() algorithms, saves ~14k after lzma
Felix Fietkau [Tue, 8 Sep 2015 10:57:11 +0000 (10:57 +0000)]
musl: add a hack to remove unused crypt() algorithms, saves ~14k after lzma

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46816

9 years agodropbear: remove generation and configuration of DSS keys
Steven Barth [Tue, 8 Sep 2015 08:59:40 +0000 (08:59 +0000)]
dropbear: remove generation and configuration of DSS keys

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46815

9 years agodropbear: disable 3des, cbc mode, dss support, saves about 5k gzipped
Felix Fietkau [Tue, 8 Sep 2015 08:55:10 +0000 (08:55 +0000)]
dropbear: disable 3des, cbc mode, dss support, saves about 5k gzipped

While technically required by the RFC, they are usually completely
unused (DSA), or have security issues (3DES, CBC)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46814

9 years agoargp-standalone: fix build error with gcc 5.2 (#20460)
Felix Fietkau [Tue, 8 Sep 2015 07:10:07 +0000 (07:10 +0000)]
argp-standalone: fix build error with gcc 5.2 (#20460)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46813

9 years agobrcm47xx: apply serial flash size trick to Netgear WNR1000 V3
Rafał Miłecki [Tue, 8 Sep 2015 05:24:57 +0000 (05:24 +0000)]
brcm47xx: apply serial flash size trick to Netgear WNR1000 V3

It also uses different block size just like WGR614 V10.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46810

9 years agoDisable telnet in favor of passwordless SSH
Steven Barth [Mon, 7 Sep 2015 19:29:25 +0000 (19:29 +0000)]
Disable telnet in favor of passwordless SSH

This enables passworldless login for root via SSH whenever no root
password is set (e.g. after reset, flashing without keeping config
or in failsafe) and removes telnet support alltogether.

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46809

9 years agouhttpd: update to the latest version, fixes deferred cgi script processing (#20458)
Felix Fietkau [Mon, 7 Sep 2015 19:18:58 +0000 (19:18 +0000)]
uhttpd: update to the latest version, fixes deferred cgi script processing (#20458)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46807

9 years agobrcm47xx: fix reading WGT634U CFE variables with 4.1
Rafał Miłecki [Mon, 7 Sep 2015 16:43:29 +0000 (16:43 +0000)]
brcm47xx: fix reading WGT634U CFE variables with 4.1

This ports fix from r46584 to the 4.1.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46806

9 years agobrcm47xx: add Netgear WNR1000 V3 support in the Linux arch code
Rafał Miłecki [Mon, 7 Sep 2015 16:29:21 +0000 (16:29 +0000)]
brcm47xx: add Netgear WNR1000 V3 support in the Linux arch code

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46805

9 years agomap: ignore insignificant PSID bits
Steven Barth [Mon, 7 Sep 2015 16:21:15 +0000 (16:21 +0000)]
map: ignore insignificant PSID bits

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46804

9 years agoodhcpd: fix parsing of host entries without duid
Steven Barth [Mon, 7 Sep 2015 13:31:36 +0000 (13:31 +0000)]
odhcpd: fix parsing of host entries without duid

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46803

9 years agoodhcpd: various bugfixes
Steven Barth [Mon, 7 Sep 2015 09:49:35 +0000 (09:49 +0000)]
odhcpd: various bugfixes

* ra: don't announce as default router if we aren't (regression)
* ra: reduce maximum announced dns lifetimes due to buggy clients
* dhcpv6: fix mac-based lease-matching

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46802

9 years agonls.mk: add -rpath-link when needed for NLS support
Steven Barth [Mon, 7 Sep 2015 08:03:34 +0000 (08:03 +0000)]
nls.mk: add -rpath-link when needed for NLS support

When a package links to a shared library that depends on libiconv or
libintl shared libraries, specifying directory pathes to them via -L
switches is not enough, see "man 1 ld" -rpath-link description.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 46801

9 years agogcc: add missing powerpc patch for 5.2.0
Felix Fietkau [Mon, 7 Sep 2015 06:59:56 +0000 (06:59 +0000)]
gcc: add missing powerpc patch for 5.2.0

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46800

9 years agogcc: remove 4.6.3 leftovers
Felix Fietkau [Sun, 6 Sep 2015 10:07:07 +0000 (10:07 +0000)]
gcc: remove 4.6.3 leftovers

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46799

9 years agogcc: remove version 4.9-linaro
Felix Fietkau [Sun, 6 Sep 2015 10:07:03 +0000 (10:07 +0000)]
gcc: remove version 4.9-linaro

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46798

9 years agouboot-ar71xx: fix gcc 5.2 compile errors
Felix Fietkau [Sun, 6 Sep 2015 09:57:02 +0000 (09:57 +0000)]
uboot-ar71xx: fix gcc 5.2 compile errors

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46797

9 years agoipq806x: add support for Netgear Nighthawk X4 R7500
Jonas Gorski [Fri, 4 Sep 2015 14:46:06 +0000 (14:46 +0000)]
ipq806x: add support for Netgear Nighthawk X4 R7500

Add support for the Netgear Nighthawk X4 R7500 and build
appropariate sysupgrade and factory images.

Known issues:
 * 5 GHz wifi not working - there is no quantenna driver
 * One of the USB ports is not working

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46796

9 years agoipq806x: enable ide led trigger
Jonas Gorski [Fri, 4 Sep 2015 14:45:49 +0000 (14:45 +0000)]
ipq806x: enable ide led trigger

To use gpio leds as ide leds, we need to enable the trigger to be
included in the kernel.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46795

9 years agobase-files: allow setting ide-disk led trigger
Jonas Gorski [Fri, 4 Sep 2015 14:45:45 +0000 (14:45 +0000)]
base-files: allow setting ide-disk led trigger

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46794

9 years agoipq806x: add support for retrieving macs from mtd
Jonas Gorski [Fri, 4 Sep 2015 14:45:40 +0000 (14:45 +0000)]
ipq806x: add support for retrieving macs from mtd

Add support for mtd-mac-address for stmac.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46793

9 years agoimage: allow exactly KERNEL_SIZE sized kernels
Jonas Gorski [Fri, 4 Sep 2015 14:45:16 +0000 (14:45 +0000)]
image: allow exactly KERNEL_SIZE sized kernels

The KERNEL_SIZE should be the maximum size, inclusive, so we need to
check for greater equal, not just greater.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46792

9 years agoimage: move netgear-image to top and rename to -dni
Jonas Gorski [Fri, 4 Sep 2015 14:45:09 +0000 (14:45 +0000)]
image: move netgear-image to top and rename to -dni

Use the same naming as netgear-chk.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46791

9 years agoar71xx: rename NETGEAR_ variables to their netgear names
Jonas Gorski [Fri, 4 Sep 2015 14:45:04 +0000 (14:45 +0000)]
ar71xx: rename NETGEAR_ variables to their netgear names

Netgear names them BOARD_ID and HW_ID, so we should do the same.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46790

9 years agoipq806x: build images and add sysupgrade support for AP148
Jonas Gorski [Fri, 4 Sep 2015 14:45:00 +0000 (14:45 +0000)]
ipq806x: build images and add sysupgrade support for AP148

Add full ubi and sysupgrade images for AP148 and add sysupgrade support
for ipq806x to allow updating the current installation.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46789

9 years agoipq806x: clear IMAGES for devices
Jonas Gorski [Fri, 4 Sep 2015 14:44:51 +0000 (14:44 +0000)]
ipq806x: clear IMAGES for devices

Ensure that IMAGE-less devices won't keep the IMAGES of any previous
devices.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46788

9 years agoipq806x: wrap legacy image in uImage
Jonas Gorski [Fri, 4 Sep 2015 14:44:48 +0000 (14:44 +0000)]
ipq806x: wrap legacy image in uImage

Wrap the zImage in a uImage header so we can easily boot it from legacy
u-boots.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46787

9 years agoipq806x: rename "rootfs" to "ubi" on nand
Jonas Gorski [Fri, 4 Sep 2015 14:44:44 +0000 (14:44 +0000)]
ipq806x: rename "rootfs" to "ubi" on nand

OpenWrt expects the ubi paritition to be named "ubi", not "rootfs".

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46786

9 years agoipq806x: enable smem-parser for nand on AP148
Jonas Gorski [Fri, 4 Sep 2015 14:44:36 +0000 (14:44 +0000)]
ipq806x: enable smem-parser for nand on AP148

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46785

9 years agobuild: add a build step for generic sysupgrade nand image
Jonas Gorski [Fri, 4 Sep 2015 14:44:27 +0000 (14:44 +0000)]
build: add a build step for generic sysupgrade nand image

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46784

9 years agoimage: add a build step for building and appending an ubinized rootfs
Jonas Gorski [Fri, 4 Sep 2015 14:44:10 +0000 (14:44 +0000)]
image: add a build step for building and appending an ubinized rootfs

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46783

9 years agoipq806x: enable ubiblock support
Jonas Gorski [Fri, 4 Sep 2015 14:44:04 +0000 (14:44 +0000)]
ipq806x: enable ubiblock support

To allow squashfs on ubi, enable ubiblock support in the kernel.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46782

9 years agoodhcp6c: correctly extend prefix from RAs
Steven Barth [Fri, 4 Sep 2015 06:29:36 +0000 (06:29 +0000)]
odhcp6c: correctly extend prefix from RAs

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46781

9 years agocomgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default
Steven Barth [Thu, 3 Sep 2015 15:53:40 +0000 (15:53 +0000)]
comgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46780

9 years agoodhcp6c: add RFC 7278 3gpp IPv6 prefix extension
Steven Barth [Thu, 3 Sep 2015 15:53:33 +0000 (15:53 +0000)]
odhcp6c: add RFC 7278 3gpp IPv6 prefix extension

Use option extendprefix 1 to enable

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46779

9 years agomdns: update to the latest version, fixes a spurious build error
Felix Fietkau [Thu, 3 Sep 2015 13:15:19 +0000 (13:15 +0000)]
mdns: update to the latest version, fixes a spurious build error

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46778

9 years agouclibc++: fix build with gcc 5.2
Felix Fietkau [Thu, 3 Sep 2015 13:15:05 +0000 (13:15 +0000)]
uclibc++: fix build with gcc 5.2

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46777

9 years agolibpcap: update to version 1.7.4
Felix Fietkau [Thu, 3 Sep 2015 13:14:56 +0000 (13:14 +0000)]
libpcap: update to version 1.7.4

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46776

9 years agogdb: update to the latest version, fixes a build error with gcc 5.2
Felix Fietkau [Thu, 3 Sep 2015 13:14:50 +0000 (13:14 +0000)]
gdb: update to the latest version, fixes a build error with gcc 5.2

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46775

9 years agogcc: add ARM codegen fix from PR 65932
Felix Fietkau [Thu, 3 Sep 2015 13:14:44 +0000 (13:14 +0000)]
gcc: add ARM codegen fix from PR 65932

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46774

9 years agoar7: fix HIGHMEM_START (#20427)
Felix Fietkau [Wed, 2 Sep 2015 16:22:44 +0000 (16:22 +0000)]
ar7: fix HIGHMEM_START (#20427)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46773

9 years agomusl: update to version 1.1.11
Felix Fietkau [Wed, 2 Sep 2015 15:44:17 +0000 (15:44 +0000)]
musl: update to version 1.1.11

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46772

9 years agobase-files: add /etc/hosts entries for ::1, ff02::1 and ff02::2
Jo-Philipp Wich [Wed, 2 Sep 2015 11:54:03 +0000 (11:54 +0000)]
base-files: add /etc/hosts entries for ::1, ff02::1 and ff02::2

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 46771

9 years agodnsmasq: make /tmp/dnsmasq.d and /tmp/hosts preferred over UCI settings
Steven Barth [Wed, 2 Sep 2015 11:49:00 +0000 (11:49 +0000)]
dnsmasq: make /tmp/dnsmasq.d and /tmp/hosts preferred over UCI settings

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46770

9 years agodropbear: bump to 2015.68
Steven Barth [Wed, 2 Sep 2015 11:48:57 +0000 (11:48 +0000)]
dropbear: bump to 2015.68

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46769

9 years agokernel: update 3.18 to 3.18.21
Jonas Gorski [Wed, 2 Sep 2015 10:18:15 +0000 (10:18 +0000)]
kernel: update 3.18 to 3.18.21

Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46768

9 years agoramips: fix devicetree corruption with some boot loaders if the caches are not ready...
Felix Fietkau [Wed, 2 Sep 2015 09:24:05 +0000 (09:24 +0000)]
ramips: fix devicetree corruption with some boot loaders if the caches are not ready at boot

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 46766

9 years agokernel: bridge, multicast-to-unicast: fix echoes on STA
Felix Fietkau [Wed, 2 Sep 2015 09:23:59 +0000 (09:23 +0000)]
kernel: bridge, multicast-to-unicast: fix echoes on STA

Currently, multicast packets from an STA are sent to any according
multicast listener directly through the bridge multicast-to-unicast
feature. Unfortunately, so far this includes the originating STA, too,
resulting in multicast packets being echo'ed back to the originating STA
if it itself is a multicast listener for that group.

This behaviour breaks IPv6 duplicate address detection: An IPv6 Neighbor
Solicitation for IPv6 Duplicate Address Detection is being echo'ed back,
resulting in the host falsely detecting an address collision, which
makes the node unable to claim an IPv6 address and use IPv6 in general.

Mac80211 unfortunately only prevents the echoes for us for multicast
frames. For the multicast frames cast to a unicast destination we'll
need to take care of excluding the originator ourselves.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
SVN-Revision: 46765

9 years agomdns: fix having mulitple network entries in uci
Felix Fietkau [Wed, 2 Sep 2015 09:23:52 +0000 (09:23 +0000)]
mdns: fix having mulitple network entries in uci

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46764

9 years agomap: add debug-code for mapcalc
Steven Barth [Tue, 1 Sep 2015 18:48:22 +0000 (18:48 +0000)]
map: add debug-code for mapcalc

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46763

9 years agopolarssl: bump to 1.3.12
Steven Barth [Tue, 1 Sep 2015 18:48:15 +0000 (18:48 +0000)]
polarssl: bump to 1.3.12

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46762

9 years agoodhcpd: fix incorrect address assignment for DHCPv6
Steven Barth [Tue, 1 Sep 2015 13:31:00 +0000 (13:31 +0000)]
odhcpd: fix incorrect address assignment for DHCPv6

Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46761

9 years agolantiq: remove dead EASY33016 image recipe
Jonas Gorski [Sun, 30 Aug 2015 12:18:22 +0000 (12:18 +0000)]
lantiq: remove dead EASY33016 image recipe

Support for lantiq_svip_be has been removed a while ago, so EASY33016
images weren't buildable anymore. Remove the recipes as well as gzip
compressed kernel support, as EASY33016 was the last user of it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46760

9 years agoramips: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:18:14 +0000 (12:18 +0000)]
ramips: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46759

9 years agomalta: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:18:05 +0000 (12:18 +0000)]
malta: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46758

9 years agobrcm63xx: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:18:00 +0000 (12:18 +0000)]
brcm63xx: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46757

9 years agobrcm47xx: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:17:57 +0000 (12:17 +0000)]
brcm47xx: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46756

9 years agoath25: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:17:56 +0000 (12:17 +0000)]
ath25: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46755

9 years agoadm5120: disable the openwrt commandline hack
Jonas Gorski [Sun, 30 Aug 2015 12:17:54 +0000 (12:17 +0000)]
adm5120: disable the openwrt commandline hack

We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46754

9 years agobrcm63xx: remove legacy led/button related patches
Jonas Gorski [Sun, 30 Aug 2015 12:17:52 +0000 (12:17 +0000)]
brcm63xx: remove legacy led/button related patches

We register all gpio buttons and leds through DT, so no need to keep
fixes/additions for the platform data based bay.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46753

9 years agobrcm63xx: add Comtrend VR-3026e support
Jonas Gorski [Sun, 30 Aug 2015 12:17:46 +0000 (12:17 +0000)]
brcm63xx: add Comtrend VR-3026e support

Add support for Comtrend VR-3026e v1.
The device is almost identical to the Comtrend VR-3025un.

Signed-off-by: Martin Tesar <tesarmar@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 46752

9 years agobroadcom-wl: add interface after bridge is up
Hauke Mehrtens [Sat, 29 Aug 2015 20:05:04 +0000 (20:05 +0000)]
broadcom-wl: add interface after bridge is up

Without this patch adding the wifi device to the bridge may fail
because the bridge is not already configured when the wifi device gets
configured. This patch makes broadcom-wl wait till the bridge is ready.

This fixes #17262

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46749

9 years agobroadcom-wl: fix bash comparison error
Hauke Mehrtens [Sat, 29 Aug 2015 17:38:15 +0000 (17:38 +0000)]
broadcom-wl: fix bash comparison error

This fixes #17495

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46746

9 years agobroadcom-wl: fix section mismatches in broadcom-wl driver
Hauke Mehrtens [Sat, 29 Aug 2015 17:37:41 +0000 (17:37 +0000)]
broadcom-wl: fix section mismatches in broadcom-wl driver

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46745

9 years agobroadcom-wl: fix build with kernel 4.1
Hauke Mehrtens [Sat, 29 Aug 2015 17:37:09 +0000 (17:37 +0000)]
broadcom-wl: fix build with kernel 4.1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46744

9 years agobrcm47xx: fix Linksys E1200 V2 image filename
Rafał Miłecki [Sat, 29 Aug 2015 09:23:19 +0000 (09:23 +0000)]
brcm47xx: fix Linksys E1200 V2 image filename

Drop unwanted suffix (copy & paste mistake).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46742

9 years agomt76: update to the latest version, fixes some tx power issues
Felix Fietkau [Fri, 28 Aug 2015 07:05:41 +0000 (07:05 +0000)]
mt76: update to the latest version, fixes some tx power issues

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46741

9 years agomac80211: add pending brcmfmac patch fixing warm reboots
Rafał Miłecki [Thu, 27 Aug 2015 14:39:30 +0000 (14:39 +0000)]
mac80211: add pending brcmfmac patch fixing warm reboots

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46739

9 years agouci: update to the latest version, adds various fixes
Felix Fietkau [Thu, 27 Aug 2015 12:43:27 +0000 (12:43 +0000)]
uci: update to the latest version, adds various fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46738