openwrt/staging/stintel.git
9 years agoar71xx: add platform_pre_upgrade for sysupgrade
Felix Fietkau [Sun, 10 May 2015 13:54:25 +0000 (13:54 +0000)]
ar71xx: add platform_pre_upgrade for sysupgrade

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

9 years agotoolchain: change default emulation for mips64 (octeon) to n64
Felix Fietkau [Sun, 10 May 2015 13:54:20 +0000 (13:54 +0000)]
toolchain: change default emulation for mips64 (octeon) to n64

fixes several ld errors reported by buildbot:
http://buildbot.openwrt.org:8010/broken_packages/octeon/mdnsresponder/compile.txt
http://buildbot.openwrt.org:8010/broken_packages/octeon/luasocket/compile.txt
http://buildbot.openwrt.org:8010/broken_packages/octeon/luasec/compile.txt
http://buildbot.openwrt.org:8010/broken_packages/octeon/openvswitch/compile.txt
http://buildbot.openwrt.org:8010/broken_packages/octeon/prosody/compile.txt

link error:
 ABI is incompatible with that of the selected emulation

found at OE toolchain for bintils 2.22:
http://patchwork.openembedded.org/patch/28033/

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 45666

9 years agokernel: fix regression in backtrace module info change (#19631)
Felix Fietkau [Sun, 10 May 2015 13:16:40 +0000 (13:16 +0000)]
kernel: fix regression in backtrace module info change (#19631)

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

9 years agogcc: add some size optimization patches
Felix Fietkau [Sun, 10 May 2015 13:16:35 +0000 (13:16 +0000)]
gcc: add some size optimization patches

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

9 years agoipq806x: add pcie support to ipq806x based platforms
Felix Fietkau [Sun, 10 May 2015 11:47:09 +0000 (11:47 +0000)]
ipq806x: add pcie support to ipq806x based platforms

This change adds PCIe support to IPQ806x based platforms. The driver is
actually cherry-picked from the following LKML thread:
*https://lwn.net/Articles/643086/ (patches 110-111)

We also add here an additional fix to support multiple PCI controllers
on the same platform (patch 112), and to patch the ap148 & dbs149 DTS
files (patch 113).

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
SVN-Revision: 45663

9 years agoipq806x: add support for zImage kernel
Felix Fietkau [Sun, 10 May 2015 11:47:02 +0000 (11:47 +0000)]
ipq806x: add support for zImage kernel

This change enable zImage+appended dtb support in ipq806x kernel
options. The zImage will now be generated as part of the kernel
binaries. Platforms which do not have DT support enabled in U-boot
can now make use of it by generating zImage files and appending dtb
to it.

It is not used yet but it is done as a stepping stone for early IPQ806x
platforms, which did not include DT support in U-boot.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
SVN-Revision: 45662

9 years agoipq806x: fix boot freeze on zImage kernel
Felix Fietkau [Sun, 10 May 2015 11:46:56 +0000 (11:46 +0000)]
ipq806x: fix boot freeze on zImage kernel

ARCH_QCOM is using the ARCH_MULTIPLATFORM option, as now recommended
on most ARM architectures. This automatically calculate ZRELADDR by
masking PHYS_OFFSET with 0xf8000000.

On IPQ806x though, the first ~20MB of RAM is reserved for the hardware.
In newer bootloader, when DT is used, this is not a problem, we just
reserve this memory in the device tree. But if the bootloader doesn't
have DT support, then ATAGS have to be used. In this case, the ARM
decompressor will position the kernel in this low mem, which will not be
in the RAM section mapped by the bootloader, which means the kernel will
freeze in the middle of the boot process trying to map the memory.

As a work around, this patch allows disabling AUTO_ZRELADDR when
ARCH_QCOM is selected. It makes the zImage usage possible on bootloaders
which don't support device-tree, which is the case on certain early
IPQ806x based designs.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
SVN-Revision: 45661

9 years agoinclude: make dtb argument optional in MkFIT
Felix Fietkau [Sun, 10 May 2015 11:46:50 +0000 (11:46 +0000)]
include: make dtb argument optional in MkFIT

As mkits.sh makes the -d argument optional, we'll make this same
argument optional in the MkFIT function as well.

With this change, MkFIT can be used both to generate FIT images with DT,
and without DT.

Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 45660

9 years agobuild: make device-tree arg optional in mkits.sh
Felix Fietkau [Sun, 10 May 2015 11:46:45 +0000 (11:46 +0000)]
build: make device-tree arg optional in mkits.sh

mkits.sh help currently shows dtb file as optional, but generates an
invalid its file when this option is unspecified.

We're fixing this problem by removing the use of the sed command and
just including variables instead.

Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 45659

9 years agogeneric: add CRYPTO_DEV_QCE option to default config
Felix Fietkau [Sun, 10 May 2015 11:46:41 +0000 (11:46 +0000)]
generic: add CRYPTO_DEV_QCE option to default config

This option has been added in kernel 3.17. It shows-up only when both
ARCH_QCOM and CRYPTO are enabled. So we'll disable these two by default
to avoid stalling the build when these conditions are met.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
SVN-Revision: 45658

9 years agobuild: don't call prereq for any package/symlinks rules
Felix Fietkau [Sun, 10 May 2015 11:17:29 +0000 (11:17 +0000)]
build: don't call prereq for any package/symlinks rules

Most of the time, we want to make sure OpenWrt has been configured and
setup before start running make. However, in case of package/symlinks,
forcing prereq as a dependency creates multiple issues:
*when executed on a clean workspace, it will prompt for user input
 and open a menuconfig window before executing the feeds command
*the only way around that is to provide a .config. However, the "prereq"
 target would then run a "make defconfig", which will remove all the
 packages in the .config but from external feeds, as feeds have not been
 installed yet.

The only way to currently work around this, is to generate a fake config
by running "make defconfig", then "make package/symlinks", copy the real
config (which at this point disregards the previously generated config),
and run make defconfig again. Something like this:

make defconfig
make package/symlinks
cp real.config .config
make defconfig

This change is removing the need for the first defconfig, making the
process more logical for OpenWrt users using the package/symlinks target.

Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 45657

9 years agoar71xx: add status led found on ew-dorin boards
Luka Perkov [Sun, 10 May 2015 07:47:04 +0000 (07:47 +0000)]
ar71xx: add status led found on ew-dorin boards

Signed-off-by: Catrinel Catrinescu <cc@80211.de>
SVN-Revision: 45656

9 years agokernel: when KALLSYMS is disabled, print module address + size for matching backtrace...
Felix Fietkau [Sun, 10 May 2015 00:02:18 +0000 (00:02 +0000)]
kernel: when KALLSYMS is disabled, print module address + size for matching backtrace entries

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

9 years agoppp: remove the persist option, netifd handles reconnects
Felix Fietkau [Sat, 9 May 2015 21:14:46 +0000 (21:14 +0000)]
ppp: remove the persist option, netifd handles reconnects

Significantly reduces reconnect delay

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

9 years agokernel: fix pppoe disconnect issues
Felix Fietkau [Sat, 9 May 2015 21:14:41 +0000 (21:14 +0000)]
kernel: fix pppoe disconnect issues

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

9 years agokernel: backport first bcma patches from 4.2
Rafał Miłecki [Sat, 9 May 2015 17:38:48 +0000 (17:38 +0000)]
kernel: backport first bcma patches from 4.2

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

9 years agomac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)
Felix Fietkau [Sat, 9 May 2015 08:58:12 +0000 (08:58 +0000)]
mac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)

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

9 years agokernel: add accidentally left out fib trie backport patch
Felix Fietkau [Fri, 8 May 2015 21:46:51 +0000 (21:46 +0000)]
kernel: add accidentally left out fib trie backport patch

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

9 years agomt76: include generated mac80211 config file and add an appropriate define for mesh...
Felix Fietkau [Fri, 8 May 2015 21:46:42 +0000 (21:46 +0000)]
mt76: include generated mac80211 config file and add an appropriate define for mesh support (fixes #19474)

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

9 years agogeneric: refresh patches
Luka Perkov [Fri, 8 May 2015 20:12:42 +0000 (20:12 +0000)]
generic: refresh patches

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 45648

9 years agokirkwood: add support for the Seagate GoflexHome
Luka Perkov [Fri, 8 May 2015 20:12:39 +0000 (20:12 +0000)]
kirkwood: add support for the Seagate GoflexHome

Add Support for the Seagate GoflexHome <http://wiki.openwrt.org/toh/seagate/goflexhome>

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 45647

9 years agoar71xx: allow mktplinkfw calls from the new image code to fail (because of oversized...
Felix Fietkau [Fri, 8 May 2015 14:02:50 +0000 (14:02 +0000)]
ar71xx: allow mktplinkfw calls from the new image code to fail (because of oversized images)

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

9 years agoar71xx: allow tp-link initramfs images to exceed size limits
Felix Fietkau [Fri, 8 May 2015 14:02:43 +0000 (14:02 +0000)]
ar71xx: allow tp-link initramfs images to exceed size limits

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

9 years agomktplinkfw: add flag to ignore size limit (used for initramfs images)
Felix Fietkau [Fri, 8 May 2015 14:02:33 +0000 (14:02 +0000)]
mktplinkfw: add flag to ignore size limit (used for initramfs images)

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

9 years agoar71xx/image: move TPLINK-LZMA image to new build code
Felix Fietkau [Fri, 8 May 2015 14:02:23 +0000 (14:02 +0000)]
ar71xx/image: move TPLINK-LZMA image to new build code

There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties.
v2: set correct DEVICE_PROFILES for all images.
v2: migrate TP-LINK TL-WR710N v2 which was committed after v1.
v2: split very very long line `TARGET_DEVICES +=` into smaller parts

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

9 years agousign: update to the latest version, use libubox base64 code
Felix Fietkau [Fri, 8 May 2015 12:37:26 +0000 (12:37 +0000)]
usign: update to the latest version, use libubox base64 code

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

9 years agolibubox: update to the latest version, adds a base64 implementation
Felix Fietkau [Fri, 8 May 2015 12:35:41 +0000 (12:35 +0000)]
libubox: update to the latest version, adds a base64 implementation

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

9 years agoar71xx: do general formatting on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:24:30 +0000 (12:24 +0000)]
ar71xx: do general formatting on wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45640

9 years agoar71xx: fix spelling, add copyright on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:24:23 +0000 (12:24 +0000)]
ar71xx: fix spelling, add copyright on wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45639

9 years agoar71xx: add support for Green WAN LED on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:24:17 +0000 (12:24 +0000)]
ar71xx: add support for Green WAN LED on wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45638

9 years agoar71xx: add support for green LAN LEDS for wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:24:11 +0000 (12:24 +0000)]
ar71xx: add support for green LAN LEDS for wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45637

9 years agoar71xx: fix amber WAN LED setting for wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:24:03 +0000 (12:24 +0000)]
ar71xx: fix amber WAN LED setting for wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45636

9 years agoar71xx: make WLAN button RFKILL on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:58 +0000 (12:23 +0000)]
ar71xx: make WLAN button RFKILL on wnr2000-v4

Users will now be provided with the inherent wifi toggle functionality
of /etc/rc.button/rfkill

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45635

9 years agoar71xx: set all buttons to be active_low on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:53 +0000 (12:23 +0000)]
ar71xx: set all buttons to be active_low on wnr2000-v4

Originally pressing a button would trigger a release state and vice-versa,
as observed from hotplug.d.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45634

9 years agoar71xx: fix ethernet on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:45 +0000 (12:23 +0000)]
ar71xx: fix ethernet on wnr2000-v4

Most people report broken ethernet with upstream. Last year, user "franz.flasch"
authored a working mach-file. His patch is outdated so I modernized it. Original
patch and user commentary on page 1:
https://forum.openwrt.org/viewtopic.php?pid=260861#p260861

I have figured out what the critical differences are between the two that caused
upstream ethernet to break.
  1) Both ath79_init_mac() functions calls must be invocated before any GMAC init
  2) must init GMAC0 before GMAC1

That was enough to get upstream to function, but I wanted to enjoy my confidence
having tested franz's patch for a week sucessfully, so I put his whole
function in, which only features more differences in order of function calls.

An expert should consider these changes, which could pose potential bugs/issues:
1) No longer using the flag AR934X_ETH_CFG_SW_PHY_SWAP in the
ath79_setup_ar934x_eth_cfg() call.

2) Possible consequence of no longer explicitly setting ethernet duplex/speed.

Review: With this patch, my ethernet and wireless works.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45633

9 years agoar71xx: track the correct WAN interface on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:40 +0000 (12:23 +0000)]
ar71xx: track the correct WAN interface on wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45632

9 years agoar71xx: fix LAN portmasks on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:35 +0000 (12:23 +0000)]
ar71xx: fix LAN portmasks on wnr2000-v4

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45631

9 years agoar71xx: use a common naming scheme for LEDS on wnr2000-v4
Felix Fietkau [Fri, 8 May 2015 12:23:27 +0000 (12:23 +0000)]
ar71xx: use a common naming scheme for LEDS on wnr2000-v4

It is common that the router provider be used rather than product name.
One can see this in target/linux/ar71xx/base-files/etc/uci-defaults/01_leds

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>
SVN-Revision: 45630

9 years agomvebu: add xhci phy support
Imre Kaloz [Fri, 8 May 2015 12:12:20 +0000 (12:12 +0000)]
mvebu: add xhci phy support

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45629

9 years agotools: host/include/getline.h: fix FreeBSD 8.0+ support
Imre Kaloz [Fri, 8 May 2015 12:09:26 +0000 (12:09 +0000)]
tools: host/include/getline.h: fix FreeBSD 8.0+ support

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45628

9 years agoar71xx: make art partition read only on 16MB ew-dorin board
Luka Perkov [Fri, 8 May 2015 10:45:26 +0000 (10:45 +0000)]
ar71xx: make art partition read only on 16MB ew-dorin board

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 45627

9 years agonetifd-dhcp: supply parameters to user-script
Felix Fietkau [Fri, 8 May 2015 10:44:19 +0000 (10:44 +0000)]
netifd-dhcp: supply parameters to user-script

hand over parameters to user-script e.g. $1=deconfig

Signed-off-by: Leon George <leon@georgemail.de>
Signed-off-by: Christian Mehlis <christian@m3hlis.de>
SVN-Revision: 45626

9 years agotrace-cmd: update to 2.4.2
Felix Fietkau [Fri, 8 May 2015 10:44:08 +0000 (10:44 +0000)]
trace-cmd: update to 2.4.2

fixes compile error:
(observed w. target arm64, all kernel build opts enabled)
error: call to '__open_missing_mode' declared with attribute
error: open with O_CREAT in second argument needs 3 arguments

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 45625

9 years agoar71xx: fix 82_patch_ath10k
Felix Fietkau [Fri, 8 May 2015 10:43:55 +0000 (10:43 +0000)]
ar71xx: fix 82_patch_ath10k

It has been broken since the new ath10k firmware introduced in r44656.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 45624

9 years agoustream-ssl: correct year in PKG_VERSION string
Felix Fietkau [Fri, 8 May 2015 10:43:48 +0000 (10:43 +0000)]
ustream-ssl: correct year in PKG_VERSION string

ustream-ssl: correct the year in the PKG_VERSION string, as both r45157 and
r45441 left the old year 2014 there. For a casual user it may seem that the
current code is from April 2014, although
a4ca61527236e89eb9efb782fd9bfd04796144e3 is from April 2015.

http://nbd.name/gitweb.cgi?p=ustream-ssl.git;a=commit;h=a4ca61527236e89eb9efb782fd9bfd04796144e3
https://dev.openwrt.org/changeset/45441/
https://dev.openwrt.org/changeset/45157/

signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45623

9 years agokernel: backport upstream usbnet fix (fixes #19455)
Felix Fietkau [Wed, 6 May 2015 10:19:22 +0000 (10:19 +0000)]
kernel: backport upstream usbnet fix (fixes #19455)

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

9 years agohostapd: fix remote denial of service vulnerability in WMM action frame parsing
Felix Fietkau [Wed, 6 May 2015 09:45:39 +0000 (09:45 +0000)]
hostapd: fix remote denial of service vulnerability in WMM action frame parsing

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

9 years agobrcm47xx: fix regression in NVRAM support for WGT634U
Rafał Miłecki [Wed, 6 May 2015 05:54:19 +0000 (05:54 +0000)]
brcm47xx: fix regression in NVRAM support for WGT634U

We were calculating wrong offset, NVRAM wasn't found and OpenWrt didn't
boot.

Fixes: 9019803 ("brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)")
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45618

9 years agoiptables: disable unused xml support to save some space
Felix Fietkau [Wed, 6 May 2015 00:59:41 +0000 (00:59 +0000)]
iptables: disable unused xml support to save some space

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

9 years agohostapd: enable 802.11w only for the full variants
Felix Fietkau [Wed, 6 May 2015 00:59:36 +0000 (00:59 +0000)]
hostapd: enable 802.11w only for the full variants

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

9 years agouboot-envtools: disable AES support, reduces code size
Felix Fietkau [Wed, 6 May 2015 00:59:28 +0000 (00:59 +0000)]
uboot-envtools: disable AES support, reduces code size

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

9 years agobuild: enable package list signing by default
Felix Fietkau [Tue, 5 May 2015 21:16:13 +0000 (21:16 +0000)]
build: enable package list signing by default

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

9 years agofirewall: Allow IGMP and MLD input on WAN
Steven Barth [Tue, 5 May 2015 13:22:41 +0000 (13:22 +0000)]
firewall: Allow IGMP and MLD input on WAN

The WAN port should at least respond to IGMP and MLD queries as
otherwise a snooping bridge/switch might drop traffic.

RFC4890 recommends to leave IGMP and MLD unfiltered as they are always
link-scoped anyways.

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

9 years agonetsupport: l2tp-ip: only depend on IPv6 if IPv6 support is enabled
Steven Barth [Tue, 5 May 2015 13:22:33 +0000 (13:22 +0000)]
netsupport: l2tp-ip: only depend on IPv6 if IPv6 support is enabled

Before r45593 kmod-l2tp-ip did not depend on kmod-ipv6.
With r45593 support for L2TP IPv6 encapsulation was added and
included in the kmod-l2tp-ip package. This change also
added the dependency to kmod-ipv6 to kmod-l2tp-ip, regardless
of whether the user chose to generally include IPv6 support
or not.
Change this so L2TP over IPv6 and the resulting dependency
to kmod-ipv6 is only included in kmod-l2tp-ip if IPv6 support
is enabled.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 45612

9 years agoprocd: fix uid/gid changing for service instances
Jo-Philipp Wich [Tue, 5 May 2015 11:00:53 +0000 (11:00 +0000)]
procd: fix uid/gid changing for service instances

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

9 years agopolarssl: include PKG_RELEASE in ABI_VERSION
Felix Fietkau [Tue, 5 May 2015 10:14:04 +0000 (10:14 +0000)]
polarssl: include PKG_RELEASE in ABI_VERSION

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

9 years agocurl: replace polarssl run-time version check with a compile-time one
Felix Fietkau [Tue, 5 May 2015 10:12:49 +0000 (10:12 +0000)]
curl: replace polarssl run-time version check with a compile-time one

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

9 years agoopenvpn: replace polarssl run-time version check with a compile-time one
Felix Fietkau [Tue, 5 May 2015 10:09:16 +0000 (10:09 +0000)]
openvpn: replace polarssl run-time version check with a compile-time one

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

9 years agopolarssl: disable runtime version checks to save some space
Felix Fietkau [Tue, 5 May 2015 10:00:49 +0000 (10:00 +0000)]
polarssl: disable runtime version checks to save some space

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

9 years agopolarssl: disable an unused random number generator
Felix Fietkau [Tue, 5 May 2015 10:00:36 +0000 (10:00 +0000)]
polarssl: disable an unused random number generator

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

9 years agotools/pkg-config: fix compile on musl hosts
Imre Kaloz [Mon, 4 May 2015 13:22:54 +0000 (13:22 +0000)]
tools/pkg-config: fix compile on musl hosts

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45605

9 years agotools/autoconf: fix compile on musl hosts
Imre Kaloz [Mon, 4 May 2015 13:22:36 +0000 (13:22 +0000)]
tools/autoconf: fix compile on musl hosts

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45604

9 years agotools/sed: fix compile on musl hosts
Imre Kaloz [Mon, 4 May 2015 13:22:17 +0000 (13:22 +0000)]
tools/sed: fix compile on musl hosts

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45603

9 years agoopenvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)
Jo-Philipp Wich [Mon, 4 May 2015 08:49:21 +0000 (08:49 +0000)]
openvpn: disable CBC record splitting in PolarSSL/mbedTLS (#19101)

OpenVPN assumes that its control channel messages are sent and received
unfragmented, this assumption is broken when CBC record splitting is
enabled in mbedTLS.

The record splitting is intended as countermeasure against BEAST attacks
which do not apply to OpenVPN, therefore we simply disable it until
upstream OpenVPN gains the ability to process fragmented control
messages.

Disabling the splitting also works around a (not remotely triggerable)
segmentation fault in mbedTLS.

References:

 * https://dev.openwrt.org/ticket/19101
 * https://community.openvpn.net/openvpn/ticket/524
 * https://github.com/ARMmbed/mbedtls/pull/185

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

9 years agogeneric/4.0: update to 4.0.1
Imre Kaloz [Sun, 3 May 2015 18:04:46 +0000 (18:04 +0000)]
generic/4.0: update to 4.0.1

Also refresh one patch.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45601

9 years agobase-files: fix logic error in led default handling (patch from #19593)
Felix Fietkau [Sun, 3 May 2015 18:04:27 +0000 (18:04 +0000)]
base-files: fix logic error in led default handling (patch from #19593)

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

9 years agompc85xx: replace WDR4900 uci-defaults ethernet MAC address hack with DTS entry
Imre Kaloz [Sun, 3 May 2015 18:00:47 +0000 (18:00 +0000)]
mpc85xx: replace WDR4900 uci-defaults ethernet MAC address hack with DTS entry

This also changes the MAC address to one of the adresses actually used by the
stock firmware on one of the ethernet interfaces.

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

9 years agompc85xx: gianfar: add mtd-mac-address support
Imre Kaloz [Sun, 3 May 2015 17:59:46 +0000 (17:59 +0000)]
mpc85xx: gianfar: add mtd-mac-address support

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

9 years agompc85xx: move newly created files from patch files to files directory
Imre Kaloz [Sun, 3 May 2015 17:58:45 +0000 (17:58 +0000)]
mpc85xx: move newly created files from patch files to files directory

This will make these files much more maintainable.

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

9 years agoThe ability to read MAC addresses from MTD is useful for other targets besides ramips...
Imre Kaloz [Sun, 3 May 2015 17:56:32 +0000 (17:56 +0000)]
The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well.

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

9 years agonettle: bump to 3.1.1
Steven Barth [Sun, 3 May 2015 11:19:42 +0000 (11:19 +0000)]
nettle: bump to 3.1.1

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

9 years agodhcp: add option specifying overriding custom-routes
Steven Barth [Sat, 2 May 2015 07:44:55 +0000 (07:44 +0000)]
dhcp: add option specifying overriding custom-routes

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

9 years agonetsupport: package L2TPv3 over IPv6 as well
Steven Barth [Sat, 2 May 2015 07:44:47 +0000 (07:44 +0000)]
netsupport: package L2TPv3 over IPv6 as well

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

9 years agoenv: allow passing a commit message on save
Jo-Philipp Wich [Fri, 1 May 2015 17:23:15 +0000 (17:23 +0000)]
env: allow passing a commit message on save

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

9 years agomake-ext4fs: avoid using libc internal declarations
Jo-Philipp Wich [Fri, 1 May 2015 16:18:25 +0000 (16:18 +0000)]
make-ext4fs: avoid using libc internal declarations

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

9 years agomap: shorten autogenerated sub-interface names to account for limits
Steven Barth [Thu, 30 Apr 2015 12:43:46 +0000 (12:43 +0000)]
map: shorten autogenerated sub-interface names to account for limits

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

9 years agoar71xx: fix leds and gpio on wpj344
Luka Perkov [Wed, 29 Apr 2015 20:04:46 +0000 (20:04 +0000)]
ar71xx: fix leds and gpio on wpj344

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 45589

9 years agoar71xx: fix sysupgrade for compex-wpj344
Luka Perkov [Wed, 29 Apr 2015 13:52:34 +0000 (13:52 +0000)]
ar71xx: fix sysupgrade for compex-wpj344

Moved board to the right magic case.

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
SVN-Revision: 45588

9 years agodnsmasq: bump to 2.73rc7
Steven Barth [Wed, 29 Apr 2015 07:19:24 +0000 (07:19 +0000)]
dnsmasq: bump to 2.73rc7

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

9 years agoodhcpd: Remove prefix class config option as not supported anymore by odhcpd
Steven Barth [Tue, 28 Apr 2015 14:58:54 +0000 (14:58 +0000)]
odhcpd: Remove prefix class config option as not supported anymore by odhcpd

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 45586

9 years agoodhcp6c: Fix white space errors
Steven Barth [Tue, 28 Apr 2015 14:57:52 +0000 (14:57 +0000)]
odhcp6c: Fix white space errors

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 45585

9 years agokernel: disable INET_LRO by default
Jonas Gorski [Tue, 28 Apr 2015 13:31:08 +0000 (13:31 +0000)]
kernel: disable INET_LRO by default

INET_LRO deprecated and there are exactly two drivers using it, neither
being included in any of the targets enabling INET_LRO. At the same time
both drivers needing it select it.

So just disable it for everyone.

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

9 years agobrcm63xx: fix bcm6348 ext irqc compatible name
Jonas Gorski [Mon, 27 Apr 2015 11:06:05 +0000 (11:06 +0000)]
brcm63xx: fix bcm6348 ext irqc compatible name

This was a remnant of an old version.

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45583

9 years agobrcm63xx: fix bcm3368.dtsi typo.
Jonas Gorski [Mon, 27 Apr 2015 11:06:00 +0000 (11:06 +0000)]
brcm63xx: fix bcm3368.dtsi typo.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 45582

9 years agosdk: filter out CONFIG_SIGNED_PACKAGES for generated config
Felix Fietkau [Sat, 25 Apr 2015 12:39:02 +0000 (12:39 +0000)]
sdk: filter out CONFIG_SIGNED_PACKAGES for generated config

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

9 years agokernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires it
Felix Fietkau [Sat, 25 Apr 2015 10:47:18 +0000 (10:47 +0000)]
kernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires it

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

9 years agoRevert "nvram: increase NVRAM size to 64 KiB"
Rafał Miłecki [Fri, 24 Apr 2015 15:38:38 +0000 (15:38 +0000)]
Revert "nvram: increase NVRAM size to 64 KiB"

This reverts commit ff84c27a281bc19df19bc62ee8688cca5586f6e3.
This tool has really broken size handling (many values hardcoded), it
crashes right now in case of NVRAM not filling whole MTD partition.

Conflicts:
package/utils/nvram/src/nvram.h

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

9 years agonvram: fix regression in finding NVRAM beginning
Rafał Miłecki [Fri, 24 Apr 2015 14:28:57 +0000 (14:28 +0000)]
nvram: fix regression in finding NVRAM beginning

The loop was giving up too early as it never expected NVRAM smaller
than 0x10000.

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

9 years agomac80211: backport brcmfmac to support multiple devices NVRAM
Rafał Miłecki [Fri, 24 Apr 2015 10:53:11 +0000 (10:53 +0000)]
mac80211: backport brcmfmac to support multiple devices NVRAM

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

9 years agomac80211: update brcmfmac to the wireless-drivers-next-for-davem-2015-04-09
Rafał Miłecki [Fri, 24 Apr 2015 10:45:33 +0000 (10:45 +0000)]
mac80211: update brcmfmac to the wireless-drivers-next-for-davem-2015-04-09

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

9 years agobcm53xx: sort ports from NVRAM entries before matching them
Rafał Miłecki [Fri, 24 Apr 2015 07:47:25 +0000 (07:47 +0000)]
bcm53xx: sort ports from NVRAM entries before matching them

Some devices have unsorted ports which may lead to broken config.

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

9 years agonetlogic: copy initramfs image to $(BIN_DIR)
Florian Fainelli [Thu, 23 Apr 2015 22:31:36 +0000 (22:31 +0000)]
netlogic: copy initramfs image to $(BIN_DIR)

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 45574

9 years agokernel: backport rest of bgmac patches to 4.0
Rafał Miłecki [Thu, 23 Apr 2015 19:11:11 +0000 (19:11 +0000)]
kernel: backport rest of bgmac patches to 4.0

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

9 years agodnsmasq: bump to 2.73rc6
Steven Barth [Thu, 23 Apr 2015 13:05:15 +0000 (13:05 +0000)]
dnsmasq: bump to 2.73rc6

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

9 years agokernel: backport few bgmac patches to 4.0
Rafał Miłecki [Thu, 23 Apr 2015 12:30:51 +0000 (12:30 +0000)]
kernel: backport few bgmac patches to 4.0

I still need to test following patch before backporting:
bgmac: leave interrupts disabled as long as there is work to do

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

9 years agobrcm47xx: add patches for kernel 4.0
Rafał Miłecki [Thu, 23 Apr 2015 11:31:54 +0000 (11:31 +0000)]
brcm47xx: add patches for kernel 4.0

SVN-Revision: 45570

9 years agoRevert "ncurses: cleanup InstallDev"
Felix Fietkau [Thu, 23 Apr 2015 11:06:15 +0000 (11:06 +0000)]
Revert "ncurses: cleanup InstallDev"

This reverts r43204. The symlinks are faulty, as they point to a
temporary staging dir

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

9 years agopackage-ipkg.mk: fix typo (patch from #19540)
Felix Fietkau [Thu, 23 Apr 2015 08:27:22 +0000 (08:27 +0000)]
package-ipkg.mk: fix typo (patch from #19540)

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

9 years agohostapd: backport fix for CVE-2015-1863, refresh patches
Felix Fietkau [Thu, 23 Apr 2015 08:01:51 +0000 (08:01 +0000)]
hostapd: backport fix for CVE-2015-1863, refresh patches

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

9 years agonvram: increase NVRAM size to 64 KiB
Rafał Miłecki [Wed, 22 Apr 2015 19:07:24 +0000 (19:07 +0000)]
nvram: increase NVRAM size to 64 KiB

For years Broadcom devices use 64 KiB NVRAM partition size and some of
them indeed have it filled in more than 50%. This change allows handling
whole NVRAM e.g. on Netgear WNDR4500 and Netgear R8000.

The same fix was applied to kernel in upstream commit 6ab7c29.

Reported-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45566