4 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 <>
SVN-Revision: 47236

4 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 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 <>

SVN-Revision: 47234

4 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 <>
SVN-Revision: 47225

4 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

Signed-off-by: Pushpal Sidhu <>
SVN-Revision: 47224

4 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 <>
SVN-Revision: 47223

4 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 <>
SVN-Revision: 47222

4 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 <>
SVN-Revision: 47221

4 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 <>
SVN-Revision: 47220

4 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 <>
SVN-Revision: 47219

4 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 <>
SVN-Revision: 47218

4 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 <>
SVN-Revision: 47217

4 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 <>
SVN-Revision: 47216

4 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 <>
SVN-Revision: 47215

4 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 <>
SVN-Revision: 47214

4 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

Signed-off-by: Martin Blumenstingl <>
SVN-Revision: 47213

4 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

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 <>
SVN-Revision: 47212

4 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 <>
SVN-Revision: 47211

4 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 <>
SVN-Revision: 47210

4 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 <>
SVN-Revision: 47209

4 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 <>
SVN-Revision: 47208

4 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 <>
SVN-Revision: 47207

4 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 <>
SVN-Revision: 47206

4 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 <>
SVN-Revision: 47205

4 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 <>
SVN-Revision: 47204

4 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 <>
SVN-Revision: 47203

4 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 <>
SVN-Revision: 47201

4 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 <>
SVN-Revision: 47200

4 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 <>
SVN-Revision: 47199

4 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 <>
SVN-Revision: 47198

4 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 <>
SVN-Revision: 47197

4 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 <>
SVN-Revision: 47189

4 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 <>
SVN-Revision: 47187

4 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 <>
SVN-Revision: 47186

4 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 <>
SVN-Revision: 47185

4 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 <>
SVN-Revision: 47184

4 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 <>
SVN-Revision: 47183

4 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 <>
SVN-Revision: 47182

4 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 <>
SVN-Revision: 47181

4 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.


Signed-off-by: Mathias Kresin <>
SVN-Revision: 47180

4 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 <>
SVN-Revision: 47179

4 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

SVN-Revision: 47178

4 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 <>
SVN-Revision: 47177

4 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 <>
SVN-Revision: 47176

4 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 <>
SVN-Revision: 47175

4 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 <>
SVN-Revision: 47174

4 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 <>
SVN-Revision: 47173

4 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 status.

Signed-off-by: Luca Debernardi <>
SVN-Revision: 47172

4 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


Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 47171

4 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 <>
SVN-Revision: 47170

4 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 <>
SVN-Revision: 47169

4 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 <>
SVN-Revision: 47168

4 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 <>
Signed-off-by: Pushpal Sidhu <>
SVN-Revision: 47167

4 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

4 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 <>
SVN-Revision: 47164

4 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

"allow request handlers to disable chunked reponses"


"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 <>
SVN-Revision: 47161

4 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 <>
SVN-Revision: 47160

4 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 <>
SVN-Revision: 47159

4 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 <>
SVN-Revision: 47158

4 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

4 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

4 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

4 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

4 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

4 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 <>
Signed-off-by: Helge Mader <>
Reported-by: Jo-Philipp Wich <>
SVN-Revision: 47152

4 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 <>
SVN-Revision: 47151

4 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 <>
SVN-Revision: 47149

4 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 <>
SVN-Revision: 47148

4 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 <>
SVN-Revision: 47147

4 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 <>
SVN-Revision: 47146

4 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 <>
SVN-Revision: 47143

4 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 <>
SVN-Revision: 47142

4 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 <>
SVN-Revision: 47139

4 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 <>
SVN-Revision: 47138

4 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 <>
SVN-Revision: 47137

4 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 <>
SVN-Revision: 47136

4 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 <>
SVN-Revision: 47135

4 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 <>
SVN-Revision: 47134

4 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 <>
SVN-Revision: 47133

4 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 <>
Signed-off-by: José Vázquez Fernández <>
SVN-Revision: 47132

4 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 <>
SVN-Revision: 47131

4 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 <>
SVN-Revision: 47130

4 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

Fixes boot on TD-W8980.

Signed-off-by: Mathias Kresin <>
Signed-off-by: Martin Blumenstingl <>
SVN-Revision: 47129

4 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 <>
SVN-Revision: 47128

4 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 <>
Reported-by: Sylwester Petela <>
SVN-Revision: 47127

4 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

Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 47126

4 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 <>
SVN-Revision: 47125

4 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 <>
SVN-Revision: 47124

4 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 <>
SVN-Revision: 47123

4 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 <>
SVN-Revision: 47122

4 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 <>
SVN-Revision: 47121

4 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 <>
SVN-Revision: 47120

4 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 <>
SVN-Revision: 47119

4 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 <>
SVN-Revision: 47118

4 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 <>
SVN-Revision: 47117

4 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 <>
SVN-Revision: 47116

4 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 <>
SVN-Revision: 47115

4 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

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 <>
SVN-Revision: 47114

4 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 <>. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu ( 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 <>
SVN-Revision: 47113

4 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 These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu ( 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 <>
SVN-Revision: 47112

4 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 These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu ( 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 <>
SVN-Revision: 47111