openwrt/svn-archive/archive.git
8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 years agoramips: Fix setting of rx buffer length
John Crispin [Mon, 5 Oct 2015 10:26:21 +0000 (10:26 +0000)]
ramips: Fix setting of rx buffer length

The length of the DMA rx buffer was always set to 0 because the function
for extracting the length was used to calculate the value for setting it.
Instead the macro has to be split in a get and set function similar to the
TX_DMA_(GET_|)PLEN(0|1) macro.

No problem was noticed on MT7621a before this was changed and thus maybe it
was hidden by different problem which is not yet fixed.

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

8 years agoramips: Allow to receive vlan over untag ports on MT7530
John Crispin [Mon, 5 Oct 2015 10:26:09 +0000 (10:26 +0000)]
ramips: Allow to receive vlan over untag ports on MT7530

The MT7530 switch driver with enable_vlan set will automatically set all
ports to the user port mode. The hardware will remove the incoming vlan tag
on these ports and use it for its internal vlan. This is usually not wanted
and makes it impossible to communicate via vlan over the switch in both
directions.

It is possible to configure a switch port to "transparent mode" when this
port is only used as untag in the switch VLANs. This will disable the VLAN
untagging of packets when they were received on this port. The tagging on
"tag" ports based on the vlan id is still working.

The transparent port mode cannot be used when a port is both used in a VLAN
as "tag" and in another one as "untag" port.

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

8 years agoramips: Add build files for HiWiFi HC5x61 models
John Crispin [Mon, 5 Oct 2015 10:26:02 +0000 (10:26 +0000)]
ramips: Add build files for HiWiFi HC5x61 models

HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com <http://www.hiwifi.com/>. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
    1: Spaces -> Tabs
    2: Removed some packages

Signed-off-by: Xiaoning Kang <kangxn@163.com>
SVN-Revision: 47113

8 years agoramips: Add DTS files for HiWiFi HC5x61 models
John Crispin [Mon, 5 Oct 2015 10:25:53 +0000 (10:25 +0000)]
ramips: Add DTS files for HiWiFi HC5x61 models

HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
  1: Merged most stuff into dtsi file
  2: Remove unnecessary empty lines.

Signed-off-by: Xiaoning Kang <kangxn@163.com>
SVN-Revision: 47112

8 years agoramips: Add base-files for HiWiFi HC5x61 models
John Crispin [Mon, 5 Oct 2015 10:25:47 +0000 (10:25 +0000)]
ramips: Add base-files for HiWiFi HC5x61 models

HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
   1: Fixed model order
   2: Remove manufacturer name from model name
   3: Use a hacky but prettier way to get mac address.

Signed-off-by: Xiaoning Kang <kangxn@163.com>
SVN-Revision: 47111

8 years agoar71xx: Correct WeIO board name
John Crispin [Mon, 5 Oct 2015 10:25:40 +0000 (10:25 +0000)]
ar71xx: Correct WeIO board name

Trivial parch to correct WeIO board name in the system.

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
SVN-Revision: 47110

8 years agotarget/mpc85xx: check if 'generic' subtarget for image file cuImage.tl-wdr4900-v1
John Crispin [Mon, 5 Oct 2015 10:25:28 +0000 (10:25 +0000)]
target/mpc85xx: check if 'generic' subtarget for image file cuImage.tl-wdr4900-v1

Only add 'cuImage.tl-wdr4900-v1' to KERNEL_IMAGES if
the selected subtarget is 'generic'.

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

8 years agoiwinfo: nl80211: add support for reading TX power from netlink
Jo-Philipp Wich [Mon, 5 Oct 2015 09:10:17 +0000 (09:10 +0000)]
iwinfo: nl80211: add support for reading TX power from netlink

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

8 years agoar71xx: rename firmware for Chinese version of TL-WR941ND v6
Rafał Miłecki [Mon, 5 Oct 2015 08:54:26 +0000 (08:54 +0000)]
ar71xx: rename firmware for Chinese version of TL-WR941ND v6

It seems there are two *different* versions on TL-WR941ND v6: Chinese
and European one. Currently supported by OpenWrt is Chinese one. Rename
firmware to make it clear.
For details see:
http://wiki.openwrt.org/toh/tp-link/tl-wr941nd
https://forum.openwrt.org/viewtopic.php?id=59295

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

8 years agolantiq: fix gcc 5 build
Matteo Croce [Sun, 4 Oct 2015 22:10:18 +0000 (22:10 +0000)]
lantiq: fix gcc 5 build

SVN-Revision: 47106

8 years agolantiq: fix binutils 2.15.1 build
Matteo Croce [Sun, 4 Oct 2015 22:03:04 +0000 (22:03 +0000)]
lantiq: fix binutils 2.15.1 build

SVN-Revision: 47105

8 years agokernel: update 4.1 to 4.1.10
Hauke Mehrtens [Sun, 4 Oct 2015 11:34:39 +0000 (11:34 +0000)]
kernel: update 4.1 to 4.1.10

Fixes a regression on spi flash devices (upstream commit 1583eaece6fa).

Changelogs:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.7
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.8
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.9
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.10

096-ipv4-off-by-one-in-continuation-handling-in-proc-net.patch was applied
upstream and dropped.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
[update from 4.1.9 to 4.1.10]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 47104

8 years agotoplevel.mk: drop LD_LIBRARY_PATH overrides
Jo-Philipp Wich [Sat, 3 Oct 2015 09:49:24 +0000 (09:49 +0000)]
toplevel.mk: drop LD_LIBRARY_PATH overrides

Overriding LD_LIBRARY_PATH for host utilities frequently leads to problems
with host executables loading shared libraries from the staging_dir, leading
to crashes due to incompatible ABIs.

Since most host utilties either embed a proper rpath or are reworked to link
statically we do not need the workaround anymore.

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

8 years agolibnl: Install include files into libnl3
Felix Fietkau [Fri, 2 Oct 2015 16:24:15 +0000 (16:24 +0000)]
libnl: Install include files into libnl3

Install header files into same location as pkgconfig/libnl-3.0.pc says:
  Cflags: -I${includedir}/libnl3

Signed-off-by: Bruno Randolf <br1@einfach.org>
SVN-Revision: 47102

8 years agoiproute2: adapt coexistence layer to new unified path
Steven Barth [Fri, 2 Oct 2015 08:24:35 +0000 (08:24 +0000)]
iproute2: adapt coexistence layer to new unified path

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

8 years agobase-files: sanitize and unify $PATH
Steven Barth [Fri, 2 Oct 2015 08:24:32 +0000 (08:24 +0000)]
base-files: sanitize and unify $PATH

Previously init and hotplug paths were different from console.

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

8 years agoprocd: make nand_do_platform_check check image only
Rafał Miłecki [Fri, 2 Oct 2015 06:03:13 +0000 (06:03 +0000)]
procd: make nand_do_platform_check check image only

Recently all targets have been updated to call nand_do_upgrade directly.
It's not needed anymore to leave a magic /tmp/sysupgrade-nand-path mark
during image check.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 47079

8 years agomusl: re-enable des crypto support, fixes pppd MPPE issues
Felix Fietkau [Thu, 1 Oct 2015 19:50:06 +0000 (19:50 +0000)]
musl: re-enable des crypto support, fixes pppd MPPE issues

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

8 years agotoolchain/uClibc: add support of uClibc-ng
Felix Fietkau [Thu, 1 Oct 2015 19:50:01 +0000 (19:50 +0000)]
toolchain/uClibc: add support of uClibc-ng

uClibc-ng is a spin-off of original uClibc, see http://www.uclibc-ng.org/

We try to regularly add changes from uClibc to uClibc-ng.
We even sent patches and bug reports to the uClibc mailing list.
The config file is compatible between uClibc-ng 1.0 and uClibc git master.
This might change in the future.

Our main goal is to provide regularly a stable and tested release
to make embedded system developers happy.

The main advantage of uClibc-ng over olde good uClibc is regular releases
so there's no need to keep tons of patches on top of years old
0.9.33.2

Build-tested for
 [1] ARM: Sunxi generic
 [2] MIPS: Netgear WNDR3600/3700/3800

Run-tested for [yet out of the tree] Synopsys Designware ARC AXS101.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Waldemar Brodkorb <wbx@uclibc-ng.org>
Cc: Mathieu Olivari <mathieu@codeaurora.org>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: John Crispin <blogic@openwrt.org>
SVN-Revision: 47077