openwrt/staging/thess.git
7 years agotoolchain: force a full rebuild on buildbot if the toolchain changed
Felix Fietkau [Wed, 15 Feb 2017 14:15:46 +0000 (15:15 +0100)]
toolchain: force a full rebuild on buildbot if the toolchain changed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoqos-scripts: fix module load commands (FS#438)
Felix Fietkau [Wed, 15 Feb 2017 13:00:24 +0000 (14:00 +0100)]
qos-scripts: fix module load commands (FS#438)

fq_codel is built-in, and xt_CONNMARK is provided by the xt_connmark
module

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: skip headers install and config on make target/linux/prepare
Felix Fietkau [Wed, 15 Feb 2017 11:34:52 +0000 (12:34 +0100)]
build: skip headers install and config on make target/linux/prepare

This simplifies working with quilt on the kernel tree

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: fix crashes on MIPS when loading kernel modules under memory pressure
Felix Fietkau [Wed, 15 Feb 2017 11:33:03 +0000 (12:33 +0100)]
kernel: fix crashes on MIPS when loading kernel modules under memory pressure

When memory is tight, modules may need to be loaded into vmalloc()
space. The code then has to generate jump trampolines which enable
relocations between vmalloc space and physical address space.

The code had a bug that was freeing these trampolines even when the
module was successfully loaded.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomdns: update and rename package to the umdns
Rafał Miłecki [Wed, 15 Feb 2017 10:46:57 +0000 (11:46 +0100)]
mdns: update and rename package to the umdns

This update includes numerous small fixes for:
1) Interfaces setup
2) Packets parsing
3) Sending replies
Without this there were multiple problems with exchanging information
between (u)mdns and other implementations (including (u)mdns as well).

This also follows project rename to umdns which was required to avoid
confusion with Apple's mdnsd from mDNSResponder project.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoar71xx: add preliminary kernel support for several RB SPI NOR devices
Thibaut VARENE [Fri, 10 Feb 2017 19:36:50 +0000 (20:36 +0100)]
ar71xx: add preliminary kernel support for several RB SPI NOR devices

The cAP 2nD, mAP 2nD and wAP 2nD apparently all share the same QCA953x/SPI-NOR
platform.

This patch adds preliminary kernel support based on init data used in
Mikrotik's linux-3.3.5 kernel patch. Since this is totally experimental and
untested, the necessary glue in base-files has not been added, the code is
provided as a starting point in case somebody with that hardware wants to help
getting it supported.

The cAP lite (cAPL 2nD) should also be supported once it is determined whether
or not it uses the same board identifier as the mAP lite.

Code has been successfully built and has no side effect (no impact on already
supported devices).

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: add new SPI NOR RB devices to the list of serial-enable patch
Thibaut VARENE [Fri, 10 Feb 2017 15:53:34 +0000 (16:53 +0100)]
ar71xx: add new SPI NOR RB devices to the list of serial-enable patch

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: add support for RB750r2
Thibaut VARENE [Thu, 9 Feb 2017 22:07:23 +0000 (23:07 +0100)]
ar71xx: add support for RB750r2

This patch adds support for the MikroTik RouterBOARD hEX lite
https://routerboard.com/RB750r2

Specifications:
- SoC: Qualcomm QCA9531 (850MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Ethernet: 5x100M (1 PoE in)

This ethernet router is based on the same platform as the hEX PoE lite (it
shares the same board identifier), but has no USB and no PoE out.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: add support for RB750UPr2
Thibaut VARENE [Thu, 9 Feb 2017 21:50:08 +0000 (22:50 +0100)]
ar71xx: add support for RB750UPr2

This patch adds support for the MikroTik RouterBOARD hEX PoE lite
https://routerboard.com/RB750UPr2

Specifications:
- SoC: Qualcomm QCA9531 (650MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Ethernet: 5x100M (1 PoE in, 1 PoE out)
- USB: Type A

This ethernet router is based on the same platform as the wireless router hAP.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: add support for RB951Ui-2nD
Thibaut VARENE [Tue, 7 Feb 2017 18:10:04 +0000 (19:10 +0100)]
ar71xx: add support for RB951Ui-2nD

This patch adds support for the MikroTik RouterBOARD hAP
https://routerboard.com/RB951Ui-2nD

Specifications:
- SoC: Qualcomm QCA9531 (650MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Wireless: builtin QCA9531, 2x2:2
- Ethernet: 5x100M (1 PoE in, 1 PoE out)
- USB: Type A

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: provide support for RB-941-2nD via mach-rbspi.c
Thibaut VARENE [Tue, 7 Feb 2017 14:23:30 +0000 (15:23 +0100)]
ar71xx: provide support for RB-941-2nD via mach-rbspi.c

This patch implements support for the hAP lite in mach-rbspi.c

hAP lite was supported via mach-rb941.c, so this file is removed
as well as the corresponding build bits.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: add support for RB mAP L-2nD
Thibaut VARENE [Tue, 7 Feb 2017 11:06:33 +0000 (12:06 +0100)]
ar71xx: add support for RB mAP L-2nD

This patch adds support for the MikroTik RouterBOARD mAP lite
https://routerboard.com/RBmAPL-2nD

Specifications:
- SoC: Qualcomm QCA9533 (650MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Wireless: builtin QCA9533, 2x2:2
- Ethernet: 1x100M

This is another 16M SPI NOR mikrotik device. The machine file is named
mach-rbspi.c because I plan to add support for several of the other spi-based
RouterBOARD devices in subsequent patches: they share most of the hardware
and thus the same codebase.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoebtables: update to last commit
Ansuel Smith [Fri, 10 Feb 2017 15:18:47 +0000 (16:18 +0100)]
ebtables: update to last commit

Refreshed patches

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agofeeds: add option to force feed update despite modified files
Jo-Philipp Wich [Tue, 14 Feb 2017 17:35:57 +0000 (18:35 +0100)]
feeds: add option to force feed update despite modified files

Implement a new flag "-f" for the feeds update command which causes the
script to fall back to a more agressive git update strategy in case there
are locally modified files in the feeds directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoprocd: update to latest git HEAD
John Crispin [Wed, 15 Feb 2017 08:59:46 +0000 (09:59 +0100)]
procd: update to latest git HEAD

5f91241 procd: add cancel_timeout on rc scripts when a runtime_timeout is specified
961dc69 procd: stop service using SIGKILL if SIGTERM failed to do so

Signed-off-by: John Crispin <john@phrozen.org>
7 years agohostapd: mv netifd.sh hostapd.sh
Daniel Albers [Sun, 12 Feb 2017 19:23:20 +0000 (20:23 +0100)]
hostapd: mv netifd.sh hostapd.sh

same name for the file on the host and target

Signed-off-by: Daniel Albers <daniel.albers@public-files.de>
7 years agoprocd: fix default timeout for reload trigger actions
Denis Osvald [Tue, 14 Feb 2017 16:08:49 +0000 (17:08 +0100)]
procd: fix default timeout for reload trigger actions

Default trigger action timeout was added to procd.sh in commit f88e3a4c0
(procd: add default timeout for reload trigger actions)
However, the timeout value was not placed under the correct JSON-script
array nesting level and thus did not apply.

To fix this and make the timeout actually apply to the reload triggers,
we place it in the correct scope, that is the per-trigger array.

Fixes: f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
7 years agoramips: replace remaining instances of ralink, port-map
Daniel Golle [Tue, 14 Feb 2017 13:08:59 +0000 (14:08 +0100)]
ramips: replace remaining instances of ralink, port-map

Some boards were apparently forgotten when ralink,portmap was renamed
to mediatek,portmap -- probably because they used the long obsolete
ralink,port-map attribute.
If this commit breaks ethernet wan/lan assignment, this is because
the port-map attribute wasn't actually parsed, you'll have to replace
"wllll" by "llllw" in the dts file belonging to that board (and send
a patch doing that!)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoramips: fix mt7621 ethernet support for v4.9
John Crispin [Wed, 15 Feb 2017 08:11:41 +0000 (09:11 +0100)]
ramips: fix mt7621 ethernet support for v4.9

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: add missing symbol for v4.9
John Crispin [Wed, 15 Feb 2017 08:11:11 +0000 (09:11 +0100)]
kernel: add missing symbol for v4.9

Signed-off-by: John Crispin <john@phrozen.org>
7 years agox86: Add board configs for the PC Engines APU2
Chris Blake [Mon, 13 Feb 2017 08:01:14 +0000 (02:01 -0600)]
x86: Add board configs for the PC Engines APU2

This adds the default LED and network settings for the PC Engines APU2
when running under the x86 target.

[dwmw2: Change Ethernet port setup]
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: Enable DIAG LED on Geos
David Woodhouse [Mon, 13 Feb 2017 13:38:33 +0000 (13:38 +0000)]
x86: Enable DIAG LED on Geos

Based on a patch from Chris Blake <chrisrblake93@gmail.com>, except let's
do it by using the LED configuration instead of hard-coding it for each
board type. And try using /bin/board_detect to do the default behaviour,
on the first boot where the config hasn't yet been generated.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agox86: Move Traverse Geos configs into x86 base-files
Chris Blake [Mon, 13 Feb 2017 08:01:13 +0000 (02:01 -0600)]
x86: Move Traverse Geos configs into x86 base-files

This change moves the files in 657418d to the root of the x86 target.
This is done in preperation for adding more devices under other
subtargets.

CC: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agoramips: export slic IRQ line in dwr-512
Giuseppe Lippolis [Tue, 14 Feb 2017 13:12:24 +0000 (14:12 +0100)]
ramips: export slic IRQ line in dwr-512

The DWR-512 embeds the hw slic device si3210. This device have the IRQ line
attached to the gpio1. This patch export the gpio1 with proper name and
parameters to the sysfs.

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
7 years agotools: patch-image: fix file descriptor leak.
Furong Xu [Tue, 14 Feb 2017 13:25:01 +0000 (21:25 +0800)]
tools: patch-image: fix file descriptor leak.

Maybe this is committed by mistake, fix it.

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years agoocteon: only copy sysupgrade file if present
John Crispin [Wed, 15 Feb 2017 05:36:21 +0000 (06:36 +0100)]
octeon: only copy sysupgrade file if present

this caused

'mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory'

when running sysupgrade -n

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoocteon: bump to v4.9
John Crispin [Mon, 13 Feb 2017 17:05:24 +0000 (18:05 +0100)]
octeon: bump to v4.9

Signed-off-by: John Crispin <john@phrozen.org>
7 years agobuild: add buildbot specific config option for setting defaults
Felix Fietkau [Tue, 14 Feb 2017 11:24:07 +0000 (12:24 +0100)]
build: add buildbot specific config option for setting defaults

This can be used to tweak the buildbot behavior without having to change
buildbot's configuration.
It will also allow us to add more aggressive clean steps (e.g. on
toolchain changes), which would break developers' workflows if enable
by default.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips: revert faulty 4.4 config change from 9c242270907
Felix Fietkau [Tue, 14 Feb 2017 12:47:21 +0000 (13:47 +0100)]
ramips: revert faulty 4.4 config change from 9c242270907

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix DEFAULT_PACKAGES for mikrotik devices
Felix Fietkau [Tue, 14 Feb 2017 12:14:38 +0000 (13:14 +0100)]
ar71xx: fix DEFAULT_PACKAGES for mikrotik devices

Include packages from the default profile for NAND devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: Add support for D-Link EBR-2310 Rev. C
Alexandru Gagniuc [Fri, 3 Feb 2017 05:01:36 +0000 (21:01 -0800)]
ar71xx: Add support for D-Link EBR-2310 Rev. C

Add support for the EBR-2310, which is almost identical to the DIR-615
rev E4, without the wifi.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
7 years agouboot-kirkwood: fix usb of nsa310b u-boot
Alberto Bursi [Sun, 12 Feb 2017 11:08:06 +0000 (12:08 +0100)]
uboot-kirkwood: fix usb of nsa310b u-boot

fixes issue "nsa 310b u-boot can initialize usb but cannot
use usb storage so it cannot load files from usb"

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agoar71xx: add support for TP-Link TL-WA850RE v2
Piotr Dymacz [Fri, 10 Feb 2017 12:44:06 +0000 (13:44 +0100)]
ar71xx: add support for TP-Link TL-WA850RE v2

TP-Link TL-WA850RE v2 is a wall-plug N300 Wi-Fi range extender,
based on Qualcomm/Atheros QCA9533 v2.

Short specification:

- 550/391/195 MHz (CPU/DDR/AHB)
- 1x 10/100 Mbps Ethernet
- 32 MB of RAM (DDR1)
- 4 MB of FLASH
- 2T2R 2.4 GHz
- 2x internal antennas (embedded on PCB)
- 9x LED (all can be turned off with GPIO15), 2x button
- UART (J3) header on PCB

Flash instruction: use "factory" image directly in vendor GUI.

Warning: this device does not include any kind of recovery mechanism
in the bootloader and disassembling process is not trivial.

You can access vendor firmware over serial line using:
- login: root
- password: sohoadmin

Image was tested only in US version of the device, but should work
also with the same device version sold in other countries.

Available FLASH space, with LEDE trunk, is only 240 KB.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agoramips: Clean duplicated status property for Omega2 WMAC in dtsi
Furong Xu [Tue, 14 Feb 2017 09:25:08 +0000 (17:25 +0800)]
ramips: Clean duplicated status property for Omega2 WMAC in dtsi

At the tail of dtsi, wmac is enabled twice, clean the first one

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years agoramips: fixed sms led polarity into dwr-512 DT
Giuseppe Lippolis [Mon, 13 Feb 2017 10:36:41 +0000 (11:36 +0100)]
ramips: fixed sms led polarity into dwr-512 DT

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
7 years agoramips: WN3000RPv3: do not setup switch
Thibaut VARENE [Sun, 12 Feb 2017 16:11:08 +0000 (17:11 +0100)]
ramips: WN3000RPv3: do not setup switch

The WN3000RPv3 is a repeater with a single ethernet port. Setting up the
switch, even to disable it, is unnecessary and possibly confusing.

Configure LAN as eth0 instead.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoath10k-firmware: update qca9984 firmware
Pavel Kubelun [Fri, 10 Feb 2017 11:13:10 +0000 (14:13 +0300)]
ath10k-firmware: update qca9984 firmware

Bump qca9984 firmware.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoar71xx: Add missing device package om-watchdog for MR1750
Sven Eckelmann [Fri, 3 Feb 2017 08:14:57 +0000 (09:14 +0100)]
ar71xx: Add missing device package om-watchdog for MR1750

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add OpenMesh A40 to OpenMesh A60 profile
Sven Eckelmann [Fri, 23 Sep 2016 07:39:06 +0000 (09:39 +0200)]
ar71xx: add OpenMesh A40 to OpenMesh A60 profile

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: extract ath10k wifi board.bin for the OpenMesh A40 board
Sven Eckelmann [Fri, 23 Sep 2016 07:40:10 +0000 (09:40 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh A40 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/uboot-envtools: add OpenMesh A40 support
Sven Eckelmann [Fri, 23 Sep 2016 07:38:34 +0000 (09:38 +0200)]
package/uboot-envtools: add OpenMesh A40 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/om-watchdog: add OpenMesh A40 support
Sven Eckelmann [Fri, 23 Sep 2016 07:38:10 +0000 (09:38 +0200)]
package/om-watchdog: add OpenMesh A40 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: enable sysupgrade for the OpenMesh A40
Sven Eckelmann [Fri, 23 Sep 2016 07:37:44 +0000 (09:37 +0200)]
ar71xx: enable sysupgrade for the OpenMesh A40

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add user-space support for the OpenMesh A40
Sven Eckelmann [Fri, 23 Sep 2016 07:36:43 +0000 (09:36 +0200)]
ar71xx: add user-space support for the OpenMesh A40

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add kernel support for the OpenMesh A40 board
Sven Eckelmann [Fri, 23 Sep 2016 07:36:10 +0000 (09:36 +0200)]
ar71xx: add kernel support for the OpenMesh A40 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: create profile and build image for the OpenMesh A60 board
Sven Eckelmann [Tue, 9 Aug 2016 14:10:16 +0000 (16:10 +0200)]
ar71xx: create profile and build image for the OpenMesh A60 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: extract ath10k wifi board.bin for the OpenMesh A60 board
Sven Eckelmann [Tue, 9 Aug 2016 14:12:06 +0000 (16:12 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh A60 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/uboot-envtools: add OpenMesh a60 support
Sven Eckelmann [Tue, 9 Aug 2016 14:02:39 +0000 (16:02 +0200)]
package/uboot-envtools: add OpenMesh a60 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/om-watchdog: add OpenMesh A60 support
Sven Eckelmann [Tue, 9 Aug 2016 14:01:50 +0000 (16:01 +0200)]
package/om-watchdog: add OpenMesh A60 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: enable sysupgrade for the OpenMesh A60
Sven Eckelmann [Tue, 9 Aug 2016 14:00:55 +0000 (16:00 +0200)]
ar71xx: enable sysupgrade for the OpenMesh A60

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoscripts/om-fwupgradecfg-gen.sh: add support for the A60
Sven Eckelmann [Tue, 9 Aug 2016 14:08:01 +0000 (16:08 +0200)]
scripts/om-fwupgradecfg-gen.sh: add support for the A60

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add user-space support for the OpenMesh A60
Sven Eckelmann [Tue, 9 Aug 2016 14:06:45 +0000 (16:06 +0200)]
ar71xx: add user-space support for the OpenMesh A60

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add kernel support for the OpenMesh A60 board
Sven Eckelmann [Tue, 9 Aug 2016 13:58:08 +0000 (15:58 +0200)]
ar71xx: add kernel support for the OpenMesh A60 board

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/uboot-envtools: add OpenMesh OM2Pv4/-HSv4 support
Sven Eckelmann [Thu, 2 Jun 2016 09:33:13 +0000 (11:33 +0200)]
package/uboot-envtools: add OpenMesh OM2Pv4/-HSv4 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agopackage/om-watchdog: add OpenMesh OM2Pv4/-HSv4 support
Sven Eckelmann [Thu, 2 Jun 2016 09:31:47 +0000 (11:31 +0200)]
package/om-watchdog: add OpenMesh OM2Pv4/-HSv4 support

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: enable sysupgrade for the OpenMesh OM2Pv4/-HSv4
Sven Eckelmann [Thu, 2 Jun 2016 09:29:23 +0000 (11:29 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM2Pv4/-HSv4

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add user-space support for the OpenMesh OM2Pv4/-HSv4
Sven Eckelmann [Thu, 2 Jun 2016 09:25:00 +0000 (11:25 +0200)]
ar71xx: add user-space support for the OpenMesh OM2Pv4/-HSv4

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: add kernel support for the OpenMesh OM2Pv4/-HSv4
Sven Eckelmann [Thu, 2 Jun 2016 09:23:21 +0000 (11:23 +0200)]
ar71xx: add kernel support for the OpenMesh OM2Pv4/-HSv4

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoar71xx: Remove the v2/v3 from the OpenMesh profile names
Sven Eckelmann [Thu, 2 Jun 2016 09:06:39 +0000 (11:06 +0200)]
ar71xx: Remove the v2/v3 from the OpenMesh profile names

The list of v2/v3 devices is getting longer and makes reading the names of
the profiles unnecessary hard.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
7 years agoramips: add v4.9 support
John Crispin [Mon, 13 Feb 2017 11:38:27 +0000 (12:38 +0100)]
ramips: add v4.9 support

NAND support is missing

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoppp: honor ip6table for IPv6 PPP interfaces
Ulrich Weber [Fri, 10 Feb 2017 13:28:09 +0000 (14:28 +0100)]
ppp: honor ip6table for IPv6 PPP interfaces

as we do for IPv4 PPP interfaces. When we create the
dynamic IPv6 interface we should inherit ip6table from
main interface.

Signed-off-by: Ulrich Weber <ulrich.weber@riverbed.com>
7 years agoppp: add pppoe-discovery to an independent package
Florian Eckert [Tue, 7 Feb 2017 14:32:08 +0000 (15:32 +0100)]
ppp: add pppoe-discovery to an independent package

pppoe-discovery performs the same discovery process as pppoe, but does
not initiate a session

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomvebu: append metadata to clearfog sd card images
Jonas Gorski [Mon, 13 Feb 2017 16:40:29 +0000 (17:40 +0100)]
mvebu: append metadata to clearfog sd card images

Fixes the following issue:

root@LEDE:/# sysupgrade /tmp/lede-mvebu-armada-388-clearfog-sdcard.img.gz
Saving metaconfig...
Image metadata not found
Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware
Image check 'fwtool_check_image' failed.
root@LEDE:/#

Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agosdk: clean scripts/config before packing tarball (FS#504)
Felix Fietkau [Mon, 13 Feb 2017 10:45:43 +0000 (11:45 +0100)]
sdk: clean scripts/config before packing tarball (FS#504)

Avoids shipping potentially incompatible object files and also reduces
the tarball size

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agocns3xxx: disable watchdog until it is fixed
Felix Fietkau [Mon, 13 Feb 2017 10:30:55 +0000 (11:30 +0100)]
cns3xxx: disable watchdog until it is fixed

It has been reported to cause random reboots on some devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: add missing tracing related config symbols for linux 4.9
Felix Fietkau [Sun, 12 Feb 2017 19:31:05 +0000 (20:31 +0100)]
kernel: add missing tracing related config symbols for linux 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoapm821xx: adds missing symbol to v4.9 default config
John Crispin [Mon, 13 Feb 2017 09:07:57 +0000 (10:07 +0100)]
apm821xx: adds missing symbol to v4.9 default config

Signed-off-by: John Crispin <john@phrozen.org>
7 years agobase-files: Added a deprecation notice on wifi detect
David Pinilla Caparrós [Mon, 30 Jan 2017 14:44:05 +0000 (15:44 +0100)]
base-files: Added a deprecation notice on wifi detect

When running wifi detect, the user will be told on error output that
wifi detect is deprecated, that wifi config must be used instead. Also
the commit that changes it is referenced for further info.

Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
7 years agobase-files: Add wifi config to wifi command usage
David Pinilla Caparrós [Mon, 30 Jan 2017 14:15:08 +0000 (15:15 +0100)]
base-files: Add wifi config to wifi command usage

Since commit 5f8f8a366136a07df661e31decce2458357c167a wifi detect does
not longer work and wifi config it's used to configure not yet
configured wireless devices.

This commit changes command usage to reflect that change.

Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
7 years agoramips: added image size into dwr-512 DT
Giuseppe Lippolis [Sat, 11 Feb 2017 17:53:33 +0000 (18:53 +0100)]
ramips: added image size into dwr-512 DT

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
7 years agolayerscape: fix adjust_link for 10G & 2.5G
Yangbo Lu [Fri, 10 Feb 2017 18:03:35 +0000 (02:03 +0800)]
layerscape: fix adjust_link for 10G & 2.5G

Added a linux-4.4 patch to fix adjust_link for 10G & 2.5G.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agoramips: correct switch configuration for Newifi D1
Chuanhong Guo [Sat, 11 Feb 2017 13:32:07 +0000 (21:32 +0800)]
ramips: correct switch configuration for Newifi D1

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
7 years agolantiq: fix patching the wifi mac address on BTHOMEHUBV3A
Martin Blumenstingl [Sun, 12 Feb 2017 22:29:16 +0000 (22:29 +0000)]
lantiq: fix patching the wifi mac address on BTHOMEHUBV3A

The firmware hotplug script tries to read the mac address from a
partition with the name "uboot-env" which does not exist (instead it's
name is uboot_env). This broke calculation of the new checksum (after
patching the mac address) which resulted in ath9k refusing to use the
EEPROM data.

The original error reported by ath9k was:
PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
ath: phy0: Bad EEPROM checksum 0x2523
ath: phy0: Unable to initialize hardware; initialization status: -22
ath9k 0000:00:0e.0: Failed to initialize device

Fixes: a20616863d32d9 ("lantiq: use ath9k device tree bindings
binding/owl-loader")

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Sun, 12 Feb 2017 17:09:53 +0000 (18:09 +0100)]
netifd: update to git HEAD version

f107656 netifd: Add option to configure locktime for each device
cdc0e80 interface: add prefix assignment priority support
6397f5e device: add veth support
6228d0f wireless: fix _wireless_add_process
7cc2f10 treewide: fix white space errors

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomac80211: refresh patches
Felix Fietkau [Sun, 12 Feb 2017 14:00:20 +0000 (15:00 +0100)]
mac80211: refresh patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: backport upstream fix for CSA in IBSS mode
Koen Vandeputte [Wed, 8 Feb 2017 15:11:01 +0000 (16:11 +0100)]
mac80211: backport upstream fix for CSA in IBSS mode

Allows to change channels on-the-fly using CSA when using IBSS.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoar71xx: fix platform_find_rootfspart()
Thibaut VARENE [Sat, 11 Feb 2017 10:10:37 +0000 (11:10 +0100)]
ar71xx: fix platform_find_rootfspart()

platform_find_rootfspart() fails if the kernel partition comes before the
rootfs partition. The proposed patch fixes this while preserving what I
understand was the original idea: stop at first match.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agobuild: fix dependency of kernel_menuconfig target
Baptiste Jonglez [Sun, 12 Feb 2017 13:48:35 +0000 (14:48 +0100)]
build: fix dependency of kernel_menuconfig target

When running "make kernel_menuconfig" in a clean tree, it fails with:

    make[1]: *** No rule to make target 'tools/quilt/install'.  Stop.

Replacing the dependency with 'tools/quilt/compile' fixes the issue (quilt
and all its prerequisites will be built, and quilt will be installed in
staging_dir).

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
7 years agoath9k: fix various issues in the airtime-fairness implementation
Felix Fietkau [Sun, 12 Feb 2017 12:25:08 +0000 (13:25 +0100)]
ath9k: fix various issues in the airtime-fairness implementation

Effects of the bugs could include memory corruption, tx hangs, kernel
crahes, possibly other things as well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: fix kmod-rxrpc with kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 22:30:30 +0000 (23:30 +0100)]
kernel: fix kmod-rxrpc with kernel 4.9

rxkad will be build into af-rxrpc now and is of type boolean.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: fix compile error on linux 4.9 with CONFIG_KALLSYMS disabled
Martin Blumenstingl [Sun, 12 Feb 2017 12:36:46 +0000 (13:36 +0100)]
kernel: fix compile error on linux 4.9 with CONFIG_KALLSYMS disabled

Upstream linux commit 7523e4dc5057e "module: use a structure to
encapsulate layout." moves some of the struct module members into a
separate struct module_layout.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
7 years agokernel: MIPS: IRQ Stack: Fix erroneous jal to plat_irq_dispatch
Hauke Mehrtens [Sun, 12 Feb 2017 00:40:16 +0000 (01:40 +0100)]
kernel: MIPS: IRQ Stack: Fix erroneous jal to plat_irq_dispatch

This backports the following fix to our mips IRQ stack patches:
https://patchwork.linux-mips.org/patch/15110/

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agolantiq: fix section mismatch in PCIe driver
Hauke Mehrtens [Sun, 12 Feb 2017 00:24:37 +0000 (01:24 +0100)]
lantiq: fix section mismatch in PCIe driver

Do not put the probe function into the __init section, but use the normal
section. This fixes a section mismatch warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoltq-ptm: use netif_trans_update() only for kernel >= 4.7
Hauke Mehrtens [Sun, 12 Feb 2017 00:03:18 +0000 (01:03 +0100)]
ltq-ptm: use netif_trans_update() only for kernel >= 4.7

This fixes a bug introduced in commit c7ce9908bd58af60153716aa64a7251
"ltq-ptm: fix build with kernel 4.9"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agolantiq: add support for kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 14:52:41 +0000 (15:52 +0100)]
lantiq: add support for kernel 4.9

The following patches were dropped because they are already applied
upstream:
0012-pinctrl-lantiq-fix-up-pinmux.patch
0013-MTD-lantiq-xway-fix-invalid-operator.patch
0014-MTD-lantiq-xway-the-latched-command-should-be-persis.patch
0015-MTD-lantiq-xway-remove-endless-loop.patch
0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch
0017-MTD-xway-fix-nand-locking.patch
0044-pinctrl-lantiq-introduce-new-dedicated-devicetree-bi.patch
0045-pinctrl-lantiq-Fix-GPIO-Setup-of-GPIO-Port3.patch
0046-pinctrl-lantiq-2-pins-have-the-wrong-mux-list.patch
0047-irq-fixes.patch
0047-mtd-plat-nand-pass-of-node.patch
0060-usb-dwc2-Add-support-for-Lantiq-ARX-and-XRX-SoCs.patch
0120-MIPS-lantiq-add-support-for-device-tree-file-from-bo.patch
0121-MIPS-lantiq-make-it-possible-to-build-in-no-device-t.patch
122-MIPS-store-the-appended-dtb-address-in-a-variable.patch

The PHY driver was reduced to the code adding the LED configuration,
the rest is already upstream:
0023-NET-PHY-adds-driver-for-lantiq-PHY11G.patch

The SPI driver was replaced with the version pending for upstream
inclusion:
New driver:
0090-spi-add-transfer_status-callback.patch
0091-spi-lantiq-ssc-add-support-for-Lantiq-SSC-SPI-controller.patch
Old driver:
0100-spi-add-support-for-Lantiq-SPI-controller.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoltq-vmmc: fix build with kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 16:30:18 +0000 (17:30 +0100)]
ltq-vmmc: fix build with kernel 4.9

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoltq-ptm: fix build with kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 15:48:43 +0000 (16:48 +0100)]
ltq-ptm: fix build with kernel 4.9

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: add missing config option for kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 18:16:23 +0000 (19:16 +0100)]
kernel: add missing config option for kernel 4.9

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: add rest controller option for kernel 4.9
Hauke Mehrtens [Sat, 11 Feb 2017 15:49:02 +0000 (16:49 +0100)]
kernel: add rest controller option for kernel 4.9

Deactivate the reset controllers which could be activated on kernel 4.9
by default.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoglibc: update to version 2.25
Felix Fietkau [Sat, 11 Feb 2017 13:30:26 +0000 (14:30 +0100)]
glibc: update to version 2.25

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoglibc: override default rpath to /lib:/usr/lib
Felix Fietkau [Sat, 11 Feb 2017 18:23:03 +0000 (19:23 +0100)]
glibc: override default rpath to /lib:/usr/lib

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agocns3xxx: clean up patches
Felix Fietkau [Sat, 11 Feb 2017 13:27:41 +0000 (14:27 +0100)]
cns3xxx: clean up patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: add ZyXEL NSA325 device
Alberto Bursi [Mon, 6 Feb 2017 10:40:52 +0000 (11:40 +0100)]
kirkwood: add ZyXEL NSA325 device

This patch add ZyXEL NSA325 2-Bay Media Server

The ZyXEL NSA325 device is a Kirkwood based NAS:

- SoC: Marvell 88F6702 1600Mhz
- SDRAM memory: 512MB DDR2 400Mhz
- Gigabit ethernet: Marvell Alaska
- Flash memory: 128MB
- 1 Power button
- 1 Power LED (blue)
- 5 Status LED (green/red)
- 1 Copy/Sync button
- 1 Reset button
- 2 SATA II ports (internal)
- 2 USB 2.0 ports (back)
- 1 USB 3.0 port (front)
- Fan (fixed speed)
- hardware watchdog in a mcu

Basically a bigger, more powerful version of NSA310,
installation is the same as they share the same flash layout.

A notable difference is that there is a hardware watchdog
in a mcu on the board, which is disabled by default in the LEDE u-boot.
The watchdog is also disabled with a GPIO activation through
raw register change when kwbooting or it would reset the board before
the new uboot was transferred.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [remove dead code]
7 years agouboot-kirkwood: add Zyxel NSA325 uboot
Alberto Bursi [Mon, 6 Feb 2017 10:39:21 +0000 (11:39 +0100)]
uboot-kirkwood: add Zyxel NSA325 uboot

add uboot for NSA325

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agouboot-envtools: add nsa325 envs
Alberto Bursi [Mon, 6 Feb 2017 10:36:18 +0000 (11:36 +0100)]
uboot-envtools: add nsa325 envs

adding nsa325 envs for consistency with other kirkwoods

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agokirkwood: cleanup nsa310b mac address extraction
Alberto Bursi [Mon, 6 Feb 2017 09:20:47 +0000 (10:20 +0100)]
kirkwood: cleanup nsa310b mac address extraction

switch nsa310b mac address reading to mtd_get_mac_ascii helper as
it seems the fw_env.config file is created way later than when
network is set up, when I tested I still had that file included
in the image through /files folder.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agoapm821xx: add linux 4.9 apm821xx patches
Christian Lamparter [Fri, 10 Feb 2017 16:44:43 +0000 (17:44 +0100)]
apm821xx: add linux 4.9 apm821xx patches

This patch updates the apm821xx target to use the 4.9 kernel.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
7 years agogdb: update to version 7.12.1, fix glibc 2.25 build issues
Felix Fietkau [Sat, 11 Feb 2017 16:37:53 +0000 (17:37 +0100)]
gdb: update to version 7.12.1, fix glibc 2.25 build issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoglibc: use default PATCH_DIR
Felix Fietkau [Sat, 11 Feb 2017 12:03:07 +0000 (13:03 +0100)]
glibc: use default PATCH_DIR

Version configuration is gone, so version specific patch directories are
not necessary either.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: Add configuration back for Traverse Geos
David Woodhouse [Fri, 10 Feb 2017 11:41:30 +0000 (11:41 +0000)]
x86: Add configuration back for Traverse Geos

When we merged all the Geode boards into one generic target, the default
network and LED configuration was lost. Put it back.

Fixes: 9e0759ea2653 ("x86: merge all geode based subtargets into one")
Signed-off-by: David Woodhouse <dwmw2@infradead.org>