librecmc/librecmc.git
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 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 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 agouclibc++: patch bugfix erase() on derived __base_associative
Ben Kelly [Tue, 7 Feb 2017 08:56:47 +0000 (10:56 +0200)]
uclibc++: patch bugfix erase() on derived __base_associative

When calling erase() on a containers derived from __base_associative
(e.g. multimap) and providing a pair of iterators a segfault will
occur.

Example code to reproduce:

typedef std::multimap<int, int> testmap;
testmap t;
t.insert(std::pair<int, int>(1, 1));
t.insert(std::pair<int, int>(2, 1));
t.insert(std::pair<int, int>(3, 1));
t.erase(t.begin(), t.end());

Signed-off-by: Ben Kelly <ben@benjii.net>
7 years agoramips: fix Airlink AR725W device title
Mathias Kresin [Sat, 4 Feb 2017 11:55:16 +0000 (12:55 +0100)]
ramips: fix Airlink AR725W device title

Gemtek is the ODM but the board was sold by Airlink101.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoscripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback
Jo-Philipp Wich [Tue, 31 Jan 2017 06:50:29 +0000 (07:50 +0100)]
scripts: get_source_date_epoch.sh: fix mercurial support, add mtime fallback

Add a fallback case to get_source_date_epoch.sh which reports the modification
time of the script itself in case there is no SCM information available, e.g.
when downloading .tar.gz or .zip tarballs produced by Github.

Also fix the mercurial case while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath10k-firmware: revert faulty PKG_SOURCE_DATE change from 7cb27b46
Felix Fietkau [Wed, 1 Feb 2017 17:04:30 +0000 (18:04 +0100)]
ath10k-firmware: revert faulty PKG_SOURCE_DATE change from 7cb27b46

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-firmware: update qca9984 firmware and board data
Pavel Kubelun [Wed, 1 Feb 2017 12:10:51 +0000 (15:10 +0300)]
ath10k-firmware: update qca9984 firmware and board data

Fixes firmware crash in rare cases and a bug
ath10k_pci 0001:01:00.0: received unexpected tx_fetch_ind event: in
push mode
for those who kept experiencing it after previous firmware update.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoath10k-ct: Support ath10k CT firmware for 9887 chipsets.
Ben Greear [Fri, 27 Jan 2017 00:11:27 +0000 (16:11 -0800)]
ath10k-ct: Support ath10k CT firmware for 9887 chipsets.

And, update support for 9880 chipsets.  The new firmware
fixes a regression with EAPOL 4/4 packets added in
a recent commit.

It also fixes a case where the firmware would improperly try
to use STBC when configured for 1x1 (as 9887 always is).

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agoscripts/getver.sh: append short git hash based on upstream commit
Magnus Kroken [Sat, 14 Jan 2017 21:34:01 +0000 (22:34 +0100)]
scripts/getver.sh: append short git hash based on upstream commit

The short git hash suffix printed by getver.sh is taken from the
latest local commit, change this to use the hash from latest
upstream commit if available. This is considered the intended
behavior based on commit message a642a11faca87e2a7bddc1fadb54253e2fc26e84,
introducing getver.sh.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoleds-apu2: Add PC Engines APU2 LED driver
Chris Blake [Wed, 25 Jan 2017 17:23:19 +0000 (11:23 -0600)]
leds-apu2: Add PC Engines APU2 LED driver

This adds support for the PCB LEDs and Reset Button found on the PC
Engines APU2/APU3 embedded boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agonetfilter: re-enable TEE support for kernel 4.4
Koen Vandeputte [Fri, 13 Jan 2017 15:23:48 +0000 (16:23 +0100)]
netfilter: re-enable TEE support for kernel 4.4

It got disabled in commit 4454a3fb6375cf1adf17f63a54cd7660bc40caa7
but works nicely these days.

Tested on cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agogpio-nct5104d: Add nct5104d driver package
Chris Blake [Mon, 23 Jan 2017 08:12:35 +0000 (02:12 -0600)]
gpio-nct5104d: Add nct5104d driver package

This adds support for the SuperIO chip nct5104d found on the PC Engines
APU boards, which allows for a handful of additional ports, such as 2x
additional UART pinouts, enabling an external watchdog (no driver for
this functionality yet), and 16 GPIO pins. More info can be found at
https://pcengines.ch/ht_gpio.htm

Thanks to @feckert for helping package this.

Cc: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86/64: Enable GPIO sysfs & GPIO LED support
Chris Blake [Mon, 23 Jan 2017 08:12:34 +0000 (02:12 -0600)]
x86/64: Enable GPIO sysfs & GPIO LED support

The following changes enables GPIO sysfs as well as the LEDS_GPIO option
within the kernel. This is required to enable LEDs over a GPIO
interface.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: drop ep80579-drivers
Mathias Kresin [Thu, 19 Jan 2017 08:03:13 +0000 (09:03 +0100)]
x86: drop ep80579-drivers

The subtarget on which the driver still depends was removed with
dee8986b95dcc200550faebe49c143e5d2357c60 because it was unmaintained
for a long time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago6in4: add missing colon when setting default ca_path
Daniel Golle [Mon, 23 Jan 2017 12:39:52 +0000 (13:39 +0100)]
6in4: add missing colon when setting default ca_path

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
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

Fixes FS#516.

Signed-off-by: John Crispin <john@phrozen.org>
(cherry picked from commit 946d1dfb87d41cf9ffb487522f6a84a5e87edafb)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoprocd: update to the latest version
Felix Fietkau [Sat, 11 Feb 2017 14:56:21 +0000 (15:56 +0100)]
procd: update to the latest version

Fixes compatibility issues with glibc 2.25

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 2ffb80bc9f829f81878b12a10b0a352d3f76c421)

7 years agohostapd: fix feature indication
Jo-Philipp Wich [Sun, 19 Feb 2017 21:04:16 +0000 (22:04 +0100)]
hostapd: fix feature indication

 - Fix eap test to work with standalone hostapd builds
 - Fix 11n test to check the correct define
 - Add 11ac, 11r and 11w tests

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agorelayd: fix making incomplete instance json data
Yousong Zhou [Sat, 25 Feb 2017 12:07:27 +0000 (20:07 +0800)]
relayd: fix making incomplete instance json data

Defer procd_open_instance only after validity check passed.

Fixes FS#541

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agorelayd: remove old start-stop-service related code
Yousong Zhou [Sat, 25 Feb 2017 12:00:14 +0000 (20:00 +0800)]
relayd: remove old start-stop-service related code

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoppp: ppp6-up: add executable permission bit
Yousong Zhou [Wed, 15 Feb 2017 06:06:41 +0000 (14:06 +0800)]
ppp: ppp6-up: add executable permission bit

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agomac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT
Yousong Zhou [Fri, 3 Feb 2017 13:15:42 +0000 (21:15 +0800)]
mac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT

This is required for default wireless configuration of malta target to
work out of the box again.  Fixes "77ece30e: hostapd: Add ability to
specify that that wireless driver supports 802.11ac"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoopenvpn: adding key_direction to append_params.
Brandon Koepke [Thu, 2 Feb 2017 17:51:05 +0000 (09:51 -0800)]
openvpn: adding key_direction to append_params.

key_direction shows up as an openvpn option in the user-interface but does not end up in the /var/etc/openvpn*.conf file. Adding it to the list here fixed the issue for me.

Signed-off-by: Brandon Koepke <bdkoepke@fastmail.com>
[Fixes FS#537]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoubus: update to the latest version
Felix Fietkau [Sat, 25 Feb 2017 10:15:07 +0000 (11:15 +0100)]
ubus: update to the latest version

c09e4f0 ubusd: fix incomplete copy of shared buf during queue-ing
453b87f cli: add support for subscribing to objects
6eb3c96 cli: do not use default timeout for listen
dfe3383 libubus: reset ctx->sock.error when doing ubus reconnect
34c6e81 cli: fix listen_timeout compile issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoubus: update to the latest version
Felix Fietkau [Sat, 4 Feb 2017 09:42:06 +0000 (10:42 +0100)]
ubus: update to the latest version

Adds the following fixes:

91acde6 libubus: do not modify uloop_cancelled
763b9b2 libubus: reset ctx->sock.eof to fix reconnect issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibubox: Update to latest version
Ted Hess [Fri, 24 Feb 2017 20:30:28 +0000 (15:30 -0500)]
libubox: Update to latest version

9d6305a utils: Change calloc_a() to return size_t aligned pointers

Signed-off-by: Ted Hess <thess@kitschensync.net>
7 years agolibubox: update to the latest version
Felix Fietkau [Fri, 3 Feb 2017 15:54:46 +0000 (16:54 +0100)]
libubox: update to the latest version

Adds the following changes:

de3f14b uloop: add uloop_cancelling function
3b6181b utils: fix build on Mac OS X 10.12
7f671b1 blobmsg: add support for double
0fe1374 utils: add helper functions useful for allocating a ring buffer
8fc1c30 libubox: replace strtok with _r version.
4a9f74f libubox: allow reading out the pid of uloop process in lua
372e1e6 uloop: remove useless epoll data assignment
f9db1cb libubox: allow reading out the remaining time of a uloop timer in Lua

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoacx-mac80211: fix scan API error that could lead to a crash
Felix Fietkau [Fri, 27 Jan 2017 10:11:00 +0000 (11:11 +0100)]
acx-mac80211: fix scan API error that could lead to a crash

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoiw: sync nl80211.h with mac80211 package
Felix Fietkau [Fri, 24 Feb 2017 11:17:03 +0000 (12:17 +0100)]
iw: sync nl80211.h with mac80211 package

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: sync with master branch as of 9edff13abd97
Felix Fietkau [Fri, 24 Feb 2017 10:57:27 +0000 (11:57 +0100)]
mac80211: sync with master branch as of 9edff13abd97

Includes the following changes:
9edff13abd mac80211: disable potentially harmful PS software retry for A-MPDU sessions
75216a76b0 mac80211: backport upstream fix for CSA in IBSS mode
368cc8ef47 mac80211: update brcmfmac backporting brcmf_err cleanups
66a63d25c4 mac80211: fix build on linux 3.18
9eacb9d7fc rt2x00: mt7620: lots of improvements
fd94fa61a7 mac80211: brcmfmac: update Raspberry Pi patches for linux 4.9
649e766a64 mac80211: update to wireless-testing 2017-01-31
47540afa5d ath9k: add a warning to the tx99 config option
b367eef21d mac80211: rt2x00: add support for external LNA on MT7620
9200e168f2 mac80211: move (& update) upstream accepted brcmfmac patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set
Felix Fietkau [Fri, 27 Jan 2017 12:52:33 +0000 (13:52 +0100)]
ath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: fix kernel api compatibility issues
Felix Fietkau [Fri, 27 Jan 2017 12:04:32 +0000 (13:04 +0100)]
ath10k-ct: fix kernel api compatibility issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: Fix performance of 2x2 hardware running 3x3 firmware.
Ben Greear [Fri, 27 Jan 2017 00:11:26 +0000 (16:11 -0800)]
ath10k-ct: Fix performance of 2x2 hardware running 3x3 firmware.

The driver had a bug when calculating the rateset.  This resolves
that and allows full VHT mcs rates on 2x2 hardware.

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agomt76: split kmod package
Joseph C. Lehner [Sun, 19 Feb 2017 12:13:15 +0000 (13:13 +0100)]
mt76: split kmod package

This patch splits `kmod-mt76` into three separate packages:
`kmod-mt76-core`, `kmod-mt76x2` and `kmod-mt7603`. By making
`kmod-mt76` a metapackage containing these new packages,
the previous behaviour of including all drivers and firmware
is left unchanged, unless explicitly unselected in
`DEVICE_PACKAGES`.

This splitting is especially beneficial for devices with
small flash chips, since the `kmod-mt76` package currently
requires ~160K on squashfs (after compression).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
7 years agolantiq: fix broadcast packets leaking on the wrong vlan on xrx200
Felix Fietkau [Wed, 22 Feb 2017 12:31:17 +0000 (13:31 +0100)]
lantiq: fix broadcast packets leaking on the wrong vlan on xrx200

The ethernet driver uses a port map override via special tag to control
the ports on which multicast packets are sent. This was added to work
around an issue in the switch that was occasionally leaking packets onto
the wrong vlan.
Unfortunately the change had some leftover lines that were overwrting
the port map with a list of all ports, thus always leaking packets onto
the wront vlan.

Fix this by only enabling the override with the VLAN port map and only
if a matching VLAN port map was actually found

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: move upstream accepted bcm47xxpart TRX cleanups
Rafał Miłecki [Fri, 10 Feb 2017 07:30:16 +0000 (08:30 +0100)]
kernel: move upstream accepted bcm47xxpart TRX cleanups

Use 0xx prefix for accepted patches.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: backport bcm47xxsflash support for reading 32 MiB flashes
Rafał Miłecki [Thu, 9 Feb 2017 07:34:20 +0000 (08:34 +0100)]
kernel: backport bcm47xxsflash support for reading 32 MiB flashes

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoRevert "kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)"
Stijn Tintel [Wed, 22 Feb 2017 10:42:36 +0000 (11:42 +0100)]
Revert "kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)"

This reverts commit ec1a695daa7390a6c24e3b28d3956f194cba2cb5.

Revert the workaround, the problem was properly fixed in
237454991618e0e8b7ceb8a8a2a43fca12c1a454.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 5c49fecf72c9c10b1d302b0a9d4db3b4ce3c782c)

7 years agoar8216: flush ARL table during reset after init_globals
Günther Kelleter [Wed, 15 Feb 2017 09:36:49 +0000 (10:36 +0100)]
ar8216: flush ARL table during reset after init_globals

commit 33b72b8e0faf7a39faabece584fd6da61cd8f8df
"ar8216: adjust ATU flushing in case of link changes"
introduced portwise flushing on link down events. Now the ARL table could
be in a chaotic state after boot where ar8xxx_sw_get_arl_table looped
forever (depending on the entries collected while booting).

Fixes FS#384.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
(cherry picked from commit 237454991618e0e8b7ceb8a8a2a43fca12c1a454)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agocmake: skip build system check on compile
Felix Fietkau [Mon, 20 Feb 2017 11:13:51 +0000 (12:13 +0100)]
cmake: skip build system check on compile

cmake checks the build system and its variables on its own to detect if
the makefiles need to be regenerated.
Unfortunately this can invalidate overrides passed in the
Build/Configure step. On non-Linux systems this breaks the build when
switching between targets of the same package architecture.

Fix this by forcibly disabling the build system check and relying on the
LEDE build system to take care of these things

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agodnsmasq: Add upstream patch fixing SERVFAIL issues with multiple servers
Baptiste Jonglez [Mon, 20 Feb 2017 15:59:28 +0000 (16:59 +0100)]
dnsmasq: Add upstream patch fixing SERVFAIL issues with multiple servers

This fixes FS#391 for lede-17.01

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
7 years agokernel: update kernel 4.4 to version 4.4.50
Jo-Philipp Wich [Mon, 20 Feb 2017 13:45:59 +0000 (14:45 +0100)]
kernel: update kernel 4.4 to version 4.4.50

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoRevert "px5g-standalone: provide px5g via PROVIDES"
Stijn Tintel [Mon, 20 Feb 2017 14:11:40 +0000 (15:11 +0100)]
Revert "px5g-standalone: provide px5g via PROVIDES"

This reverts commit cc66f819b4e778732a32f08f5dc39a2554682b73.

This commit causes opkg to install px5g-standalone instead of px5g when
installing luci-ssl. As luci-ssl depends on mbedtls, using
px5g-standalone makes no sense. Next to that, it creates deprecated SHA1
certificates. Revert the commit to avoid pxg5-standalone to be
installed by accident.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit ca8aee0c570561fc59fb0d0e6b5eac418054c372)

7 years agouboot-kirkwood: fix goflexhome/net bootcommand
Alberto Bursi [Mon, 6 Feb 2017 07:08:26 +0000 (08:08 +0100)]
uboot-kirkwood: fix goflexhome/net bootcommand

Goflexhome/net use uImage, and to boot an uImage the u-boot
must use bootm command, not bootz.

Fixes the "i cannot boot LEDE with this u-boot" issue that I
found out myself with my goflexnet.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agoar71xx: Remove images for rb-941-2nd
Thibaut VARENE [Wed, 15 Feb 2017 12:37:41 +0000 (13:37 +0100)]
ar71xx: Remove images for rb-941-2nd

The code that generates this image is broken in many ways.

The new code currently in master generates images that will not be compatible
with the ones in 17.01. To avoid a migration nightmare, this patch removes
image generation for this device in 17.01

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agosdk: emit proper tag references for base URLs
Jo-Philipp Wich [Sun, 19 Feb 2017 19:45:11 +0000 (20:45 +0100)]
sdk: emit proper tag references for base URLs

Properly resolve symbolic tag names when constructing the base feed Git url
and avoid emitting "HEAD" references when building from detached commits.

Fixes #495, #501.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolantiq: set the internet led interface according to wan interface
Mathias Kresin [Fri, 17 Feb 2017 21:16:01 +0000 (22:16 +0100)]
lantiq: set the internet led interface according to wan interface

Use the nas0 interface for the netdev trigger as default. Use the ptm0
interface for xRX200 boards to match the default wan interface set in
02_network.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: introduce lantiq_is_vdsl_system
Mathias Kresin [Fri, 17 Feb 2017 21:04:12 +0000 (22:04 +0100)]
lantiq: introduce lantiq_is_vdsl_system

Move the code to check if the current system is a system with vdsl
support to a dedicate function to make it reusable.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: fix ARV7519RW22 switch port indexing
Mathias Kresin [Thu, 2 Feb 2017 23:59:16 +0000 (00:59 +0100)]
lantiq: fix ARV7519RW22 switch port indexing

Fixes FS#454.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouhttpd: use sha256 when generating certificates with openssl (FS#512)
Felix Fietkau [Fri, 17 Feb 2017 13:21:47 +0000 (14:21 +0100)]
uhttpd: use sha256 when generating certificates with openssl (FS#512)

Patch from attachment to FS#512

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agodropbear: bump PKG_RELEASE
Stijn Tintel [Fri, 17 Feb 2017 11:18:58 +0000 (12:18 +0100)]
dropbear: bump PKG_RELEASE

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 27040dbf89fb45dd9b5cc663e23bb19afc294d29)

7 years agodropbear: enable SHA256 HMACs
Joseph C. Sible [Thu, 2 Feb 2017 06:51:51 +0000 (01:51 -0500)]
dropbear: enable SHA256 HMACs

The only HMACs currently available use MD5 and SHA1, both of which have known
weaknesses. We already compile in the SHA256 code since we use Curve25519
by default, so there's no significant size penalty to enabling this.

Signed-off-by: Joseph C. Sible <josephcsible@users.noreply.github.com>
(cherry picked from commit 0bf85ef04806e0fd5a6f78ac9f6a32aabb1e7fdc)

7 years agoar71xx: fix ethernet PLL configuration for QCA956x
Felix Fietkau [Fri, 17 Feb 2017 10:51:42 +0000 (11:51 +0100)]
ar71xx: fix ethernet PLL configuration for QCA956x

QCA956x is configured like AR934x, not like the older chips.
Should fix ethernet hangs when using the WAN port without SGMII

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: Set default baud rate on Geode images to 115200
David Woodhouse [Wed, 15 Feb 2017 17:27:45 +0000 (17:27 +0000)]
x86: Set default baud rate on Geode images to 115200

Prior to commit 1496b95a0 ("x86: clean up default grub baudrate
settings") we had three different baud rates for the Geode targets:
19200 for net5501, 38400 for alix2, and 115200 for Geos.

It doesn't seem that there's a very good reason for varying from our
default 115200 baud, so let's make the Geode target do that instead.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agox86: Add Geos profile for Geode subtarget
David Woodhouse [Wed, 15 Feb 2017 16:11:12 +0000 (16:11 +0000)]
x86: Add Geos profile for Geode subtarget

This makes the Geode images actually useful again. The Geos profile
should include the relevant hardware for that board, and the Default
profile adds the via-rhine adapter which seems to have been present in
the net5501 and alix targets killed in commit 9e0759ea265 ("x86: merge
all geode based subtargets into one").

Signed-off-by: David Woodhouse <dwmw2@infradead.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 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>
7 years agoMark targets using kernel 3.18 as source-only
Rafał Miłecki [Fri, 17 Feb 2017 05:57:33 +0000 (06:57 +0100)]
Mark targets using kernel 3.18 as source-only

We're past v17.01.0-rc2 phase and these few targets are stuck at 3.18
kernel. We obviously don't want to have targets like this built for the
release, especially with 3.18 being EOL.

It may be not too late for bringing these targets back for the next
minor release, so just mark them as source-only instead of dropping
completely.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoramips: fix the number of uarts for MT7688
Furong Xu [Thu, 16 Feb 2017 03:10:28 +0000 (11:10 +0800)]
ramips: fix the number of uarts for MT7688

Same as MT7621 and MT7628, MT7688 allows up to 3 uarts

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years agoramips: fix PWM pin mux conflict in dtsi
Furong Xu [Thu, 16 Feb 2017 02:00:48 +0000 (10:00 +0800)]
ramips: fix PWM pin mux conflict in dtsi

GPIO18 and GPIO19 on OMEGA2(+) should be GPIO mode, enable PWM lead to a conflict

[    0.290633] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm
[    0.299722] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22
[    0.305729] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0  on device rt2880-pinmux
[    0.315131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back

Keep PWM disabled.

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years agougps: fix typo
Cezary Jackiewicz [Wed, 15 Feb 2017 18:06:04 +0000 (19:06 +0100)]
ugps: fix typo

Removing redundant spaces from the name of the option. Without fix:

root@LEDE:~# opkg install ugps
Installing ugps (2016-10-24-32a6b2b7-1) to root...
Downloading http://downloads.lede-project.org/releases/17.01-SNAPSHOT/packages/mips_24kc/base/ugps_2016-10-24-32a6b2b7-1_mips_24kc.ipk
Configuring ugps.
uci: Parse error (invalid character in name field) at line 3, byte 23
uci: Parse error (invalid character in name field) at line 3, byte 23
sh: out of range
root@LEDE:~# uci show gps
uci: Parse error (invalid character in name field) at line 3, byte 23

With this fix:

root@LEDE:~# uci show gps
gps.@gps[0]=gps
gps.@gps[0].tty='ttyACM0'
gps.@gps[0].adjust_time='1'

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
7 years agobrcm47xx: fix button inversion for Asus WL-500W
Mirko Parthey [Tue, 14 Feb 2017 21:38:17 +0000 (22:38 +0100)]
brcm47xx: fix button inversion for Asus WL-500W

The Asus WL-500W buttons are active high,
but the software treats them as active low.
Fix the inverted logic.

Signed-off-by: Mirko Parthey <mirko.parthey@web.de>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm47xx: fix USB driver choice for Asus WL-500W
Mirko Parthey [Tue, 14 Feb 2017 14:05:09 +0000 (15:05 +0100)]
brcm47xx: fix USB driver choice for Asus WL-500W

BCM4704 SoC has only USB 1.1 core:
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
but this device actually comes with two USB 2.0 ports.

It appears embedded controller isn't used but instead there are two PCI
attached controllers (next to the BCM4321 wireless card):
1106:3038 VT82xx/62xx UHCI USB 1.1 Controller
1106:3104 USB 2.0

Choose a set of USB drivers which actually support this hardware.

Signed-off-by: Mirko Parthey <mirko.parthey@web.de>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
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 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: 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 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 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 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 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 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 agobrcm63xx: Neufbox 6: fix switch by probing through DT
Jonas Gorski [Tue, 7 Feb 2017 16:15:36 +0000 (17:15 +0100)]
brcm63xx: Neufbox 6: fix switch by probing through DT

Probe the switch through DT instead of a platform device. This fixes
probe, as GPIO offsets are now properly accounted for.

Fixes the following issue:

[    0.802953] 8021q: 802.1Q VLAN Support v1.8
[    0.810518] rtl8366_smi: gpio_request failed for 18, err=-517

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>