openwrt/staging/pepe2k.git
9 years agobzip2: extend/fix the Host/Install rule to install libbz2.so files
Steven Barth [Thu, 22 Oct 2015 13:24:35 +0000 (13:24 +0000)]
bzip2: extend/fix the Host/Install rule to install libbz2.so files

It looks like the bzip2 package does not install any shared libs
and has no build rules to install any shared libs.

So, for the host build we're installing the libbz2 shared libs manually
so that other modules can link against them.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 47245

9 years agotools: scons: Add alternate download URL
Florian Fainelli [Thu, 22 Oct 2015 00:43:35 +0000 (00:43 +0000)]
tools: scons: Add alternate download URL

sourceforge.net sometimes produces the following tarball file while
being behind a HTTP proxy:

We're sorry -- the Sourceforge site is currently in Disaster Recovery
mode, and currently requires
the use of javascript to function.  Please check back later.

Update to a regular FTP location that allows us to complete the
download.

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

9 years agouhttpd: update to latest git HEAD
John Crispin [Tue, 20 Oct 2015 18:16:05 +0000 (18:16 +0000)]
uhttpd: update to latest git HEAD

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

9 years agoramips: gpio-mt7621 was not handling irqs above 31 properly
John Crispin [Tue, 20 Oct 2015 07:09:20 +0000 (07:09 +0000)]
ramips: gpio-mt7621 was not handling irqs above 31 properly

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

9 years agokernel: force CONFIG_BT_HCIUART_ATH3K to y
Jo-Philipp Wich [Tue, 20 Oct 2015 00:00:39 +0000 (00:00 +0000)]
kernel: force CONFIG_BT_HCIUART_ATH3K to y

The CONFIG_BT_HCIUART_ATH3K may not be "m", therfore we cannot inherit the
kmod selection state. Force the "CONFIG_BT_HCIUART_ATH3K" symbol to "y" in
order to avoid `warning: symbol value 'm' invalid for BT_HCIUART_ATH3K` and
subsequent kconfig stalls.

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

9 years agoar71xx: Send power to USB port on WNR2200
John Crispin [Mon, 19 Oct 2015 18:18:12 +0000 (18:18 +0000)]
ar71xx: Send power to USB port on WNR2200

This patch fixes ticket #15267 by enabling power on the
WNR2200's USB port. At present, the USB port on the WNR2200
is non-functional due to it not receiving power.

This patch defines an additional GPIO pin, but none of the
current GPIO definitions have been modified.

Signed-off-by: Riley Baird <BM-2cVqnDuYbAU5do2DfJTrN7ZbAJ246S4XiX@bitmessage.ch>
SVN-Revision: 47236

9 years agoar71xx: Add Gainstrong MiniBox v1.0 support to trunk
John Crispin [Mon, 19 Oct 2015 17:55:25 +0000 (17:55 +0000)]
ar71xx: Add Gainstrong MiniBox v1.0 support to trunk

This patch supersedes the v1 from September 17th.

Bumping the patch version - the MiniBox profile showed up under M, but
since it's called 'Gainstrong MiniBox v1.0' now it looks out of place.
Renamed the profile to gs-minibox-v1.mk to fix that.

The following patch adds support for the Gainstrong MiniBox into trunk
(or 'Designated Driver' :D ).

Fixed items:

- Inverted LED polarity (OOLITE seems to suffer from the same problem).
- Changed uppercase MINIBOX_V1_ prefix as requested.
- Prefixes are now gs_minibox_ similar to gs_oolite_ (same vendor).
- Mention the vendor (Gainstrong) in code headers.

Compiles fine, has been confirmed working by owners on 15.05.

Question: I've seen some boards use tools/firmware-utils/src/mktplinkfw.c,
the MiniBox images build fine without, so I'm wondering: do I need to add
it in there as well? Any added benefit?

Thank you

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

SVN-Revision: 47234

9 years agokernel: add usb-mass-storage-gadget driver package
John Crispin [Mon, 19 Oct 2015 10:10:51 +0000 (10:10 +0000)]
kernel: add usb-mass-storage-gadget driver package

This is another useful gadget driver that can allow an OTG port to act as a
mass storage device.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47225

9 years agokernel: add mvsw61xx module package
John Crispin [Mon, 19 Oct 2015 10:10:41 +0000 (10:10 +0000)]
kernel: add mvsw61xx module package

Adds the package to select the mvsw61xx module present in the 3.18/4.0/4.1
kernels.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47224

9 years agokernel: add ath3k module package
John Crispin [Mon, 19 Oct 2015 10:10:20 +0000 (10:10 +0000)]
kernel: add ath3k module package

Adds a package for the ath3k kernel module, present in 3.18/4.0/4.1 kernels

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47223

9 years agofirmware: linux-firmware: Add ibt-firmware and ar3k-firmware packages
John Crispin [Mon, 19 Oct 2015 10:10:14 +0000 (10:10 +0000)]
firmware: linux-firmware: Add ibt-firmware and ar3k-firmware packages

Some bluetooth devices require firmware. Add intel bluetooth and ar3k for now.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47222

9 years agoar71xx: Bitmain Antminer S1 & S3 cleanup
John Crispin [Mon, 19 Oct 2015 10:10:02 +0000 (10:10 +0000)]
ar71xx: Bitmain Antminer S1 & S3 cleanup

Sets the LEDs to boardname:color:led-name
Sets the LAN to eth0
Other corrections such as the Machine Name and HWIDs
v2 corrects the profile names in the Makefile and changes tabs to spaces
in the Makefile 'define Device/' like the other devices.

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

9 years agogeneric: add 8139cp fixes, enable hardware csum/tso on 4.0+
John Crispin [Mon, 19 Oct 2015 10:09:54 +0000 (10:09 +0000)]
generic: add 8139cp fixes, enable hardware csum/tso on 4.0+

This contains two sets of fixes for the 8139cp driver.

For all kernel versions older than 4.3, we can apply the fixes from the
4.3-rc4 kernel. In particular, these fix the TX timeout recovery which
is causing my Geos to lock up until the hardware watchdog kicks in.

For 4.0 and later kernels, we can also apply the additional improvements
which are going into 4.4 to fix and enable hardware checksum/TSO
offload. Backporting those to older kernels is non-trivial.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
SVN-Revision: 47220

9 years agobase-files: create /var/tmp on boot
John Crispin [Mon, 19 Oct 2015 10:09:46 +0000 (10:09 +0000)]
base-files: create /var/tmp on boot

FHS mandates presence of /var/tmp on compliant systems.

The lack of /var/tmp was discovered when using MIT Kerberos libraries
which default to that location for storing credentials cache.

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

9 years agooxnas: move gmac soc glue from mach to stmmac driver
John Crispin [Mon, 19 Oct 2015 10:09:36 +0000 (10:09 +0000)]
oxnas: move gmac soc glue from mach to stmmac driver

Still a lot of kernel-version ifdef'ery, but imho that's easy to remove
once obsoleted and avoids duplicate code in the meantime.

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

9 years agooxnas: prepare pinctrl for kernel >=4.2
John Crispin [Mon, 19 Oct 2015 10:09:30 +0000 (10:09 +0000)]
oxnas: prepare pinctrl for kernel >=4.2

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

9 years agooxnas: prepare irqchip driver for kernel >=4.2
John Crispin [Mon, 19 Oct 2015 10:09:23 +0000 (10:09 +0000)]
oxnas: prepare irqchip driver for kernel >=4.2

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

9 years agooxnas: fix duplicate include in clk-oxnas
John Crispin [Mon, 19 Oct 2015 10:09:16 +0000 (10:09 +0000)]
oxnas: fix duplicate include in clk-oxnas

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

9 years agooxnas: remove obsolete __cpuinit
John Crispin [Mon, 19 Oct 2015 10:09:07 +0000 (10:09 +0000)]
oxnas: remove obsolete __cpuinit

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

9 years agolantiq: Synchronize access to the DSL command pipe
John Crispin [Mon, 19 Oct 2015 10:08:56 +0000 (10:08 +0000)]
lantiq: Synchronize access to the DSL command pipe

Whenever two processes were executing different commands at the same
time then one of the commands sometimes got the response of the other
command.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47213

9 years agotools/firmware-utils: tplink-safeloader: add version 1.1 support to CPE210/220/510/520
John Crispin [Mon, 19 Oct 2015 10:08:50 +0000 (10:08 +0000)]
tools/firmware-utils: tplink-safeloader: add version 1.1 support to CPE210/220/510/520

The hardware is identical to version 1.0, add the new models to the support
list.

Also remove the empty line at the end of the support list, the current
stock images don't have it either.

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

9 years agotools/firmware-utils: tplink-safeloader: fix support-list format, clean up vendor...
John Crispin [Mon, 19 Oct 2015 10:08:44 +0000 (10:08 +0000)]
tools/firmware-utils: tplink-safeloader: fix support-list format, clean up vendor information

The first 4 bytes of the support list and the vendor information are
supposed to contain the length of these fields.

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

9 years agotools/firmware-utils: tplink-safeloader: clean up code
John Crispin [Mon, 19 Oct 2015 10:08:34 +0000 (10:08 +0000)]
tools/firmware-utils: tplink-safeloader: clean up code

There is no reason for the internal functions not to be static.

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

9 years agolantiq: Print the status register whenever an error occurs
John Crispin [Mon, 19 Oct 2015 10:08:29 +0000 (10:08 +0000)]
lantiq: Print the status register whenever an error occurs

This should help finding potential problems with the SPI driver.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47209

9 years agolantiq: Fixed reading the number of RX FIFOs in the SPI driver
John Crispin [Mon, 19 Oct 2015 10:08:18 +0000 (10:08 +0000)]
lantiq: Fixed reading the number of RX FIFOs in the SPI driver

Until now the SPI driver used the TX bits for the RX FIFO. This seems
uncritical for now since both are equals on my devices (VR9), but this
could cause problems on other SoCs.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47208

9 years agoRevert "lantiq: activate spi-xway on TDW89X0"
John Crispin [Mon, 19 Oct 2015 10:08:12 +0000 (10:08 +0000)]
Revert "lantiq: activate spi-xway on TDW89X0"

This reverts commit 68c2e4789b4f071ee75d39248f4d08fe8283eb28.

commit r47159 was bad

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

9 years agouhttpd: update to latest git revision
John Crispin [Mon, 19 Oct 2015 10:08:01 +0000 (10:08 +0000)]
uhttpd: update to latest git revision

adds URL alias support

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

9 years agoramips: add alsa support
John Crispin [Mon, 19 Oct 2015 10:07:54 +0000 (10:07 +0000)]
ramips: add alsa support

add the SDK alsa driver. this has only been tested on mt7628/88 and wm8960.
mt7620 is only compile tested.

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

9 years agoramips: add a baurate hack
John Crispin [Mon, 19 Oct 2015 10:07:43 +0000 (10:07 +0000)]
ramips: add a baurate hack

When talking to an atmel controller we need 9600 or 250000 baud.
as 250000 does not exist we use 2500000.

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

9 years agoramips: add LinkIt Smart7688 support
John Crispin [Mon, 19 Oct 2015 10:07:38 +0000 (10:07 +0000)]
ramips: add LinkIt Smart7688 support

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

9 years agopolarssl: update to version 1.3.14
Hauke Mehrtens [Sun, 18 Oct 2015 21:48:32 +0000 (21:48 +0000)]
polarssl: update to version 1.3.14

This fixes CVE-2015-5291 and some other smaller security issues.

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

9 years agombedtls: update to version 2.1.2
Hauke Mehrtens [Sun, 18 Oct 2015 21:48:04 +0000 (21:48 +0000)]
mbedtls: update to version 2.1.2

This fixes CVE-2015-5291 and some other smaller security issues.

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

9 years agobrcm47xx: remove support for kernel 3.18
Hauke Mehrtens [Sat, 17 Oct 2015 11:50:16 +0000 (11:50 +0000)]
brcm47xx: remove support for kernel 3.18

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

9 years agobcm53xx: remove support for kernel 3.18
Hauke Mehrtens [Sat, 17 Oct 2015 11:49:01 +0000 (11:49 +0000)]
bcm53xx: remove support for kernel 3.18

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

9 years agocosmetic: remove trailing whitespaces
Luka Perkov [Thu, 15 Oct 2015 22:12:13 +0000 (22:12 +0000)]
cosmetic: remove trailing whitespaces

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

9 years ago6in4: add tunlink option support
Steven Barth [Thu, 15 Oct 2015 08:56:59 +0000 (08:56 +0000)]
6in4: add tunlink option support

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

9 years agomt76: update to the latest version, fixes tx related crashes
Felix Fietkau [Mon, 12 Oct 2015 13:11:26 +0000 (13:11 +0000)]
mt76: update to the latest version, fixes tx related crashes

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

9 years agofirmware-utils/buffalo-enc: explicitly use signed char for checksum function
Felix Fietkau [Mon, 12 Oct 2015 13:11:20 +0000 (13:11 +0000)]
firmware-utils/buffalo-enc: explicitly use signed char for checksum function

ARM defaults to unsigned char and that breaks the calculation, as it
relies on sign extension

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

9 years agofirmware-utils/buffalo-enc: add support for decrypting data with an offset
Felix Fietkau [Mon, 12 Oct 2015 13:11:03 +0000 (13:11 +0000)]
firmware-utils/buffalo-enc: add support for decrypting data with an offset

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

9 years agoiperf3: update URL
Luka Perkov [Sun, 11 Oct 2015 22:41:30 +0000 (22:41 +0000)]
iperf3: update URL

Update iperf3 to point to the correct project website. Prior URL was the
old iperf2 website.

Signed-off-by: Karl Palsson <karlp@remake.is>
SVN-Revision: 47184

9 years agolibnl: fix URL
Luka Perkov [Sun, 11 Oct 2015 22:19:25 +0000 (22:19 +0000)]
libnl: fix URL

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
SVN-Revision: 47183

9 years agokernel: generic: add kernel 4.3
Hauke Mehrtens [Sun, 11 Oct 2015 19:08:08 +0000 (19:08 +0000)]
kernel: generic: add kernel 4.3

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

9 years agotools: firmware-utils: fix compiler warnings
Hauke Mehrtens [Sun, 11 Oct 2015 19:00:41 +0000 (19:00 +0000)]
tools: firmware-utils: fix compiler warnings

This just fixes a lot of compiler warnings.

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

9 years agolantiq: fix use of IRQF_DISABLED in lantiq kmods
John Crispin [Sun, 11 Oct 2015 16:24:43 +0000 (16:24 +0000)]
lantiq: fix use of IRQF_DISABLED in lantiq kmods

The IRQF_DISABLED flag was removed in kernel 4.1 with commit
"genirq: Remove the deprecated 'IRQF_DISABLED' request_irq() flag entirely" [1].

Therefore the compilation of ltq-hcd and ltq-vmmc kmods fails.

[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d8bf368d0631d4bc2612d8bf2e4e8e74e620d0cc

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 47180

9 years agoar71xx: TP-LINK Archer C5 image name
John Crispin [Sun, 11 Oct 2015 16:24:31 +0000 (16:24 +0000)]
ar71xx: TP-LINK Archer C5 image name

There are more version on market, add version number to the name.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
SVN-Revision: 47179

9 years agoar71xx/image: migrate all images based on macro TPLINK
John Crispin [Sun, 11 Oct 2015 16:24:22 +0000 (16:24 +0000)]
ar71xx/image: migrate all images based on macro TPLINK

Includes images for
rnx-n360rt
tl-mr3220-v1
tl-mr3420-v1
tl-wa701n-v1
tl-wa730rev1
tl-wa7510n
tl-wa801nd-v1
tl-wa830re-v1
tl-wa901nd-v1
tl-wa901nd-v2
tl-wr740n-v1
tl-wr740n-v3
tl-wr743nd-v1
tl-wr841nd-v3
tl-wr841nd-v5
tl-wr841nd-v7
tl-wr842n-v1
tl-wr941nd-v2
tl-wr941nd-v3
tl-wr941nd-v4
tl-wr1043nd-v1

SVN-Revision: 47178

9 years agoar71xx/image: remove old build step TPLINK-LZMA
John Crispin [Sun, 11 Oct 2015 16:24:10 +0000 (16:24 +0000)]
ar71xx/image: remove old build step TPLINK-LZMA

all boards has been migrated to the new build step

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

9 years agoar71xx/image: migrate last TPLINK-LZMA images to new build system
John Crispin [Sun, 11 Oct 2015 16:24:01 +0000 (16:24 +0000)]
ar71xx/image: migrate last TPLINK-LZMA images to new build system

Migrate TLWR1043V2 TLWR2543

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

9 years agoar71xx/image: refactor tplink-chn-v2 devices
John Crispin [Sun, 11 Oct 2015 16:23:53 +0000 (16:23 +0000)]
ar71xx/image: refactor tplink-chn-v2 devices

* use build step mktplinkfw with extra arguments
* remove now unused mktplinkfw-chn-v2
* use Device/tplink

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

9 years agoar71xx/image: add options argument to mktplinkfw step
John Crispin [Sun, 11 Oct 2015 16:23:44 +0000 (16:23 +0000)]
ar71xx/image: add options argument to mktplinkfw step

Allow to pass extra arguments to mktplinkfw step. Some board requires
an extra argument to create a valid image.

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

9 years agoar71xx/image: remove unused multiprofile definitons
John Crispin [Sun, 11 Oct 2015 16:23:35 +0000 (16:23 +0000)]
ar71xx/image: remove unused multiprofile definitons

These profiles covered by new image/Makefile descriptions. Only the old format uses
MultiProfile macro

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

9 years agolantiq: bugfix wrong non pre-emptive crc errors output
John Crispin [Sun, 11 Oct 2015 16:23:26 +0000 (16:23 +0000)]
lantiq: bugfix wrong non pre-emptive crc errors output

This patch fixes a wrong non pre-emptive crc errors output of
dsl_control.sh status.

Signed-off-by: Luca Debernardi <luca.debernardi@gmail.com>
SVN-Revision: 47172

9 years agobrcm2708: use mmd for overlays subdirectory
John Crispin [Sun, 11 Oct 2015 16:23:18 +0000 (16:23 +0000)]
brcm2708: use mmd for overlays subdirectory

Fixes https://dev.openwrt.org/ticket/20704

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

9 years agomtools: build and install mmd
John Crispin [Sun, 11 Oct 2015 16:23:11 +0000 (16:23 +0000)]
mtools: build and install mmd

useful for making MS-DOS subdirectories

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

9 years agobrcm2708: all sound overlays require i2c to work
John Crispin [Sun, 11 Oct 2015 16:23:01 +0000 (16:23 +0000)]
brcm2708: all sound overlays require i2c to work

Tested on RPi B+ with HiFiBerry Amp+

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

9 years agoimx6: fix platform checking
Luka Perkov [Sat, 10 Oct 2015 12:35:02 +0000 (12:35 +0000)]
imx6: fix platform checking

Fix platform checking when configuring networks and when doing sysupgrade.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47168

9 years agouboot-envtools: Add Gateworks Ventana Support
Luka Perkov [Sat, 10 Oct 2015 12:34:45 +0000 (12:34 +0000)]
uboot-envtools: Add Gateworks Ventana Support

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 47167

9 years agoomap24xx: Append dtb to the zImage
Michael Büsch [Fri, 9 Oct 2015 07:46:12 +0000 (07:46 +0000)]
omap24xx: Append dtb to the zImage

We just hardcode the n810 dtb for now. It should be selectable via profiles.

SVN-Revision: 47166

9 years agomvebu: add support for the Linksys WRT1900ACS (Shelby)
Imre Kaloz [Thu, 8 Oct 2015 10:01:30 +0000 (10:01 +0000)]
mvebu: add support for the Linksys WRT1900ACS (Shelby)

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

9 years agouhttpd: fix keep-alive bug (#20607, #20661)
Jo-Philipp Wich [Wed, 7 Oct 2015 22:14:48 +0000 (22:14 +0000)]
uhttpd: fix keep-alive bug (#20607, #20661)

The two commits

  5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291
"allow request handlers to disable chunked reponses"

and

  618493e378e2239f0d30902e47adfa134e649fdc
"file: disable chunked encoding for file responses"

broke the chunked transfer encoding handling for proc responses in keep-alive
connections that followed a file response with http status 204 or 304.

The effect of this bug is that cgi responses following a 204 or 304 one where
sent neither in chunked encoding nor with a content-length header, causing
browsers to stall until the keep alive timeout was reached.

Fix the logic flaw by inverting the chunk prevention flag in the client state
and by testing the chunked encoding preconditions every time instead of
once upon client (re-)initialization.

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

9 years agobase-files: revert to default ECN settings
Steven Barth [Wed, 7 Oct 2015 21:11:24 +0000 (21:11 +0000)]
base-files: revert to default ECN settings

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

9 years agolantiq: activate spi-xway on TDW89X0
John Crispin [Wed, 7 Oct 2015 12:12:48 +0000 (12:12 +0000)]
lantiq: activate spi-xway on TDW89X0

use the hardware spi core in favour of spi-gpio.

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

9 years agolantiq: spi driver fix
John Crispin [Wed, 7 Oct 2015 12:12:35 +0000 (12:12 +0000)]
lantiq: spi driver fix

adds a missing wait busy. based on the UGW patch 2060..

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

9 years agodl_cleanup: Fix linux blacklist
Michael Büsch [Wed, 7 Oct 2015 10:51:18 +0000 (10:51 +0000)]
dl_cleanup: Fix linux blacklist

SVN-Revision: 47157

9 years agodl_cleanup: Port to Python 3
Michael Büsch [Wed, 7 Oct 2015 10:03:16 +0000 (10:03 +0000)]
dl_cleanup: Port to Python 3

SVN-Revision: 47156

9 years agoomap24xx: Add missing kconfig options
Michael Büsch [Wed, 7 Oct 2015 09:40:42 +0000 (09:40 +0000)]
omap24xx: Add missing kconfig options

SVN-Revision: 47155

9 years agoomap24xx: KERNEL_PATCHVER:=4.1
Michael Büsch [Wed, 7 Oct 2015 08:30:58 +0000 (08:30 +0000)]
omap24xx: KERNEL_PATCHVER:=4.1

SVN-Revision: 47154

9 years agoomap24xx: Remove 4.0
Michael Büsch [Wed, 7 Oct 2015 08:29:06 +0000 (08:29 +0000)]
omap24xx: Remove 4.0

SVN-Revision: 47153

9 years agolantiq: bugfix luci lantiq_dsl status
John Crispin [Wed, 7 Oct 2015 08:00:54 +0000 (08:00 +0000)]
lantiq: bugfix luci lantiq_dsl status

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Helge Mader <hmader@tdt.de>
Reported-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 47152

9 years agoramips: fix /target/linux/ramips/dts/HC5XXX.dtsi
John Crispin [Wed, 7 Oct 2015 08:00:40 +0000 (08:00 +0000)]
ramips: fix /target/linux/ramips/dts/HC5XXX.dtsi

dtb complained about those lines

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

9 years agohostapd: wait longer for inactive client probe (empty data frame)
Felix Fietkau [Tue, 6 Oct 2015 12:33:10 +0000 (12:33 +0000)]
hostapd: wait longer for inactive client probe (empty data frame)

One second is not enough for some devices to ackowledge null data frame
which is sent at the end of ap_max_inactivity interval. In particular,
this causes severe Wi-Fi instability with Apple iPhone which may take
up to 3 seconds to respond.

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

9 years agokernel: drop the now unused kmod-oprofile package
Felix Fietkau [Tue, 6 Oct 2015 12:33:04 +0000 (12:33 +0000)]
kernel: drop the now unused kmod-oprofile package

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

9 years agooprofile: drop kmod-oprofile dependency, it uses the perf API now
Felix Fietkau [Tue, 6 Oct 2015 12:32:59 +0000 (12:32 +0000)]
oprofile: drop kmod-oprofile dependency, it uses the perf API now

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

9 years agoramips: enable mt76 by default for the mt7620 subtarget (for devices with mt7620...
Felix Fietkau [Tue, 6 Oct 2015 12:32:31 +0000 (12:32 +0000)]
ramips: enable mt76 by default for the mt7620 subtarget (for devices with mt7620 + mt7612)

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

9 years agomt76: update to the latest version, adds a few minor fixes
Felix Fietkau [Mon, 5 Oct 2015 22:30:01 +0000 (22:30 +0000)]
mt76: update to the latest version, adds a few minor fixes

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

9 years agomac80211: add a fix to initialize the tid field in the tx queue struct
Felix Fietkau [Mon, 5 Oct 2015 15:43:14 +0000 (15:43 +0000)]
mac80211: add a fix to initialize the tid field in the tx queue struct

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

9 years agobuild: include homebrew include/library directory in cflags/ldflags on mac os x
Felix Fietkau [Mon, 5 Oct 2015 14:11:30 +0000 (14:11 +0000)]
build: include homebrew include/library directory in cflags/ldflags on mac os x

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

9 years agobuild: use host cflags/ldflags for openssl prereq check
Felix Fietkau [Mon, 5 Oct 2015 14:11:25 +0000 (14:11 +0000)]
build: use host cflags/ldflags for openssl prereq check

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

9 years agoramips: improve read performance of the m25p80 chunked io patch
Felix Fietkau [Mon, 5 Oct 2015 11:34:16 +0000 (11:34 +0000)]
ramips: improve read performance of the m25p80 chunked io patch

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

9 years agolldpd: wrap procd command args in separate quotes
John Crispin [Mon, 5 Oct 2015 10:29:01 +0000 (10:29 +0000)]
lldpd: wrap procd command args in separate quotes

Seems the match pattern was being adapted from 'eth0' to ' eth0'
because of the way I added the procd command args.

This did not seem to be a problem when there were multiple interfaces,
just on devices with single interfaces for lldpd to listen on.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 47136

9 years agobase-files: add URL option for OEM manufacturer info
John Crispin [Mon, 5 Oct 2015 10:28:53 +0000 (10:28 +0000)]
base-files: add URL option for OEM manufacturer info

This URL can be embedded e.g. within UPnP announcements where a link
to the manufacturer's homepage is desired.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
SVN-Revision: 47135

9 years agoopenvpn: add handling for route-pre-down option
John Crispin [Mon, 5 Oct 2015 10:28:47 +0000 (10:28 +0000)]
openvpn: add handling for route-pre-down option

OpenVPN 2.3 added a route-pre-down option, to run a command before
routes are removed upon disconnection.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
SVN-Revision: 47134

9 years agouboot_envtools: add P2812HNUF1
John Crispin [Mon, 5 Oct 2015 10:28:39 +0000 (10:28 +0000)]
uboot_envtools: add P2812HNUF1

Add generation of /etc/fw_env.config for P2812HNUF1

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
SVN-Revision: 47133

9 years agolantiq: several ARV7519RW22 fixes
John Crispin [Mon, 5 Oct 2015 10:28:34 +0000 (10:28 +0000)]
lantiq: several ARV7519RW22 fixes

Fixes ARV7519RW22 flash register (only 1 flash).
Power LED is green, not red.
Rename message LEDs to internet.
Add LEDs configuration (lan, wan, power).
Enable switch VLANs.
Fix secondary USB.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
SVN-Revision: 47132

9 years agolantiq: make v4.1 the default kernel
John Crispin [Mon, 5 Oct 2015 10:28:26 +0000 (10:28 +0000)]
lantiq: make v4.1 the default kernel

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

9 years agolantiq: Add target TP-Link TD-W8980
John Crispin [Mon, 5 Oct 2015 10:28:19 +0000 (10:28 +0000)]
lantiq: Add target TP-Link TD-W8980

The device is similar to the TD-W8970, beside a different Atheros 2.4 GHz
wireless chip and the additional, PCI connected, WAVE300 5 GHz wireless.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 47130

9 years agolantiq: fix ath_pci_fixup hang on bridged devices
John Crispin [Mon, 5 Oct 2015 10:28:12 +0000 (10:28 +0000)]
lantiq: fix ath_pci_fixup hang on bridged devices

Port of r41856.

In contrast to the brcm63xx target, it isn't sufficient to enable/disable
the bridge. The device needs to be enabled/disabled to fix the hang. The
bridge will be automatically enabled by the time the connected device is
enabled.

Fixes boot on TD-W8980.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47129

9 years agolantiq: Change the data-type of mac address in ETOP driver
John Crispin [Mon, 5 Oct 2015 10:28:07 +0000 (10:28 +0000)]
lantiq: Change the data-type of mac address in ETOP driver

This adds the changes from r46219 to the linux 4.1 patches as well.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47128

9 years agolantiq: bugfix uninitialized variables
John Crispin [Mon, 5 Oct 2015 10:27:55 +0000 (10:27 +0000)]
lantiq: bugfix uninitialized variables

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Reported-by: Sylwester Petela <sscapi@gmail.com>
SVN-Revision: 47127

9 years agobrcm2708: keep boot partition mounted to allow users to change config.txt
John Crispin [Mon, 5 Oct 2015 10:27:49 +0000 (10:27 +0000)]
brcm2708: keep boot partition mounted to allow users to change config.txt

This way it's easier to configure device tree overlays, customize other
parameters...

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

9 years agobrcm2708: add support for device tree overlays
John Crispin [Mon, 5 Oct 2015 10:27:41 +0000 (10:27 +0000)]
brcm2708: add support for device tree overlays

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

9 years agobrcm2708: switch device tree compilation to linux
John Crispin [Mon, 5 Oct 2015 10:27:34 +0000 (10:27 +0000)]
brcm2708: switch device tree compilation to linux

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

9 years agobrcm2708: fix kmod-sound-soc-bcm2708-i2s config
John Crispin [Mon, 5 Oct 2015 10:27:18 +0000 (10:27 +0000)]
brcm2708: fix kmod-sound-soc-bcm2708-i2s config

Right now, selecting kmod-sound-soc-bcm2708-i2s causes build errors due to
missing configs.
kmod-regmap enables I2C and SPI, causing build errors due to depending
variables not defined.

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

9 years agoramips: improve systick timer
John Crispin [Mon, 5 Oct 2015 10:27:09 +0000 (10:27 +0000)]
ramips: improve systick timer

when sleep mode is disable use MIPS as clocksource and clockevent instead of systick.
because MIPS timer has higher resolution 5ns less than systick 20us and
larger counter bits 32 > 16.
clean interrupt by write compare register at isr.
fix typo cause sleep mode not enable.

Signed-off-by: Michael Lee <igvtee@gmail.com>
SVN-Revision: 47122

9 years agoramips: fix use remove_irq to release irqaction resource
John Crispin [Mon, 5 Oct 2015 10:27:04 +0000 (10:27 +0000)]
ramips: fix use remove_irq to release irqaction resource

Signed-off-by: Michael Lee <igvtee@gmail.com>
SVN-Revision: 47121

9 years agoramips: add support for 16MB VoCore
John Crispin [Mon, 5 Oct 2015 10:27:00 +0000 (10:27 +0000)]
ramips: add support for 16MB VoCore

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

9 years agoramips: fix size-cells for spi nodes
John Crispin [Mon, 5 Oct 2015 10:26:54 +0000 (10:26 +0000)]
ramips: fix size-cells for spi nodes

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

9 years agoramips: Ralink RT3883 RGMII pinmux fix.
John Crispin [Mon, 5 Oct 2015 10:26:40 +0000 (10:26 +0000)]
ramips: Ralink RT3883 RGMII pinmux fix.

Due to datasheet of rt3883 SoC rgmii1 port handles pins 84-95 and rgmii2 port handles pins 72-83. When this function ports gets added to rt3883_pinmux_data there's wrong pinmux bits set (RT3883_GPIO_MODE_GE1 manages 84-95 pins and RT3883_GPIO_MODE_GE2 manages 72-83). So when enabling rgmii2 as GPIO driver confuses hardware and nothing work, neither rgmii nor gpio.
Also in '0030-pinctrl-ralink-add-pinctrl-driver.patch' typo in name of rgmii2 port.

Signed-off-by: Nick Leiten <nickleiten@gmail.com>
SVN-Revision: 47118

9 years agoramips: Enable rx of 1536 bytes ethernet frames on MT7621
John Crispin [Mon, 5 Oct 2015 10:26:34 +0000 (10:26 +0000)]
ramips: Enable rx of 1536 bytes ethernet frames on MT7621

The default switch frame size (with FCS + header) is 1536 bytes. But the
GMAC only accepted frames up to 1522 bytes. Setting it to 1536 allows to
receive ethernet frames using the full of MTU 1500 + an extra VLAN header +
VLAN header added by the switch.

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

9 years agoramips: Fix too small rx buffer
John Crispin [Mon, 5 Oct 2015 10:26:28 +0000 (10:26 +0000)]
ramips: Fix too small rx buffer

The driver assumes that the maximum received buffer for non-jumbo frames is
1536 bytes. But the allocation of the rx fragment doesn't reflect that. It
currently allocates fragments which will only be large enough to be used as
rx buffer with the size of 1534 bytes. This is problematic because the GMAC
will now try to write to 2 bytes which don't belong to its receive buffer
when a large enough ethernet frame is received.

This may already be a problem on existing chips but will at least become a
problem when the 1536 byte rx modus is enabled on MT7621a. It is required
on this SoC to receive ethernet frames which use their full 1500 bytes MTU
and a VLAN header next to the switch VLAN tag.

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