openwrt/staging/wigyori.git
6 years agomodules: gpio-mcp23s08: fully depend on i2c-core
Zoltan HERPAI [Tue, 20 Feb 2018 13:13:20 +0000 (14:13 +0100)]
modules: gpio-mcp23s08: fully depend on i2c-core

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agomxs: drop support for 4.9
Michael Heimpold [Mon, 19 Feb 2018 12:36:09 +0000 (13:36 +0100)]
mxs: drop support for 4.9

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agokernel: add kmod-iio-mxs-lradc
Michael Heimpold [Sun, 11 Feb 2018 13:19:15 +0000 (14:19 +0100)]
kernel: add kmod-iio-mxs-lradc

This adds support for the Freescale i.MX23/28 SoC's Low-Resolution ADC.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agomxs: enable LRADC driver
Michael Heimpold [Sun, 11 Feb 2018 10:33:32 +0000 (11:33 +0100)]
mxs: enable LRADC driver

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agomxs: bump to use 4.14 by default
Zoltan HERPAI [Mon, 8 Jan 2018 22:50:26 +0000 (23:50 +0100)]
mxs: bump to use 4.14 by default

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agomxs: add support for 4.14
Zoltan HERPAI [Mon, 8 Jan 2018 22:50:01 +0000 (23:50 +0100)]
mxs: add support for 4.14

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agokernel: ar83xx: remove stray leading space
John Crispin [Tue, 20 Feb 2018 09:32:58 +0000 (10:32 +0100)]
kernel: ar83xx: remove stray leading space

Signed-off-by: John Crispin <john@phrozen.org>
6 years agokernel: ar83xx: add support to configure per port VLAN priority
Tan Hong Hui [Sat, 27 Jan 2018 02:14:57 +0000 (10:14 +0800)]
kernel: ar83xx: add support to configure per port VLAN priority

Add support to allow for per switch port VLAN priority (PCP) bits
for the ar8327/8337 chip using the swconfig utility.

Tested on Netgear R7800

Signed-off-by: Tan Hong Hui <hhtan72@yahoo.com>
6 years agouqmi: ensure CID is a numeric value before proceeding
Koen Vandeputte [Mon, 19 Feb 2018 10:02:45 +0000 (11:02 +0100)]
uqmi: ensure CID is a numeric value before proceeding

The current implementation only checked if uqmi itself executed
correctly which is also the case when the returned value is actually
an error.

Rework this, checking that CID is a numeric value, which can only
be true if uqmi itself also executed correctly.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agokernel: backport pcie enumeration fix to kernel 4.9
Koen Vandeputte [Mon, 19 Feb 2018 09:46:14 +0000 (10:46 +0100)]
kernel: backport pcie enumeration fix to kernel 4.9

This issue is also present in kernel 4.9 starting from 4.9.71
Adapted the patch, as the fixed function is in another location here.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agobuild: add --force option to gzip in Build/gzip
Stijn Tintel [Mon, 19 Feb 2018 22:03:00 +0000 (23:03 +0100)]
build: add --force option to gzip in Build/gzip

When using pigz, a parallel gzip implementation, the gzip step in the
image build for some targets fails, because the image filename already
has the .gz extension. This results in an emtpy image file. Fix this by
adding the --force option to gzip in the Build/gzip macro.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Tested-by: Martin Schleier <drahemmaps@gmx.net>
6 years agoRevert "brcm2708: fix sdcard image"
Stijn Tintel [Mon, 19 Feb 2018 21:39:12 +0000 (22:39 +0100)]
Revert "brcm2708: fix sdcard image"

This reverts commit 6c2e1ff80f52b939405fe0c14577c584602ae432.

GNU gzip does not fail when the image filename already contains the .gz
extension, this is a problem specific to pigz. Revert the commit, as we
now gzip the image twice.

Reported-by: Martin Schleier <drahemmaps@gmx.net>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: backport patches simplifying mtd_device_parse_register code
Rafał Miłecki [Mon, 19 Feb 2018 14:40:42 +0000 (15:40 +0100)]
kernel: backport patches simplifying mtd_device_parse_register code

These 2 patches were recently queued for 4.17.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agokernel: order mtd backported patches by kernel release
Rafał Miłecki [Mon, 19 Feb 2018 14:27:47 +0000 (15:27 +0100)]
kernel: order mtd backported patches by kernel release

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoimx6: remove support for 4.9
Tim Harvey [Thu, 15 Feb 2018 16:34:38 +0000 (08:34 -0800)]
imx6: remove support for 4.9

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoimx6: switch to Linux 4.14
Tim Harvey [Thu, 15 Feb 2018 16:34:37 +0000 (08:34 -0800)]
imx6: switch to Linux 4.14

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoimx6: add support for Linux 4.14
Tim Harvey [Thu, 15 Feb 2018 16:34:36 +0000 (08:34 -0800)]
imx6: add support for Linux 4.14

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agokernel: backport dwc pci enumeration fix
Tim Harvey [Thu, 15 Feb 2018 16:34:35 +0000 (08:34 -0800)]
kernel: backport dwc pci enumeration fix

Backport of:  http://patchwork.ozlabs.org/patch/860701/

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agokernel: add missing symbols for v4.14
John Crispin [Mon, 19 Feb 2018 08:31:59 +0000 (09:31 +0100)]
kernel: add missing symbols for v4.14

Signed-off-by: John Crispin <john@phrozen.org>
6 years agodnsmasq: bump to 2.79rc1
Kevin Darbyshire-Bryant [Thu, 15 Feb 2018 10:45:38 +0000 (10:45 +0000)]
dnsmasq: bump to 2.79rc1

1721453 Remove special handling of A-for-A queries.
499d8dd Fix boundary for test introduced in 3e3f1029c9ec6c63e430ff51063a6301d4b2262
6f1cbfd Fix debian/readme typo.
55ecde7 Inotify: Ignore backup files created by editors
6b54d69 Make failure to chown() pidfile a warning.
246a31c Change ownership of pid file, to keep systemd happy.
83e4b73 Remove confusion between --user and --script-user.
6340ca7 Tweak heuristic for initial DNSSEC memory allocation.
baf553d Default min-port to 1024 to avoid reserved ports.
486bcd5 Simplify and correct bindtodevice().
be9a74d Close Debian bug for CVE-2017-15107.
ffcbc0f Example config typo fixes.
a969ba6 Special case NSEC processing for root DS record, to avoid spurious BOGUS.
f178172 Add homepage to Debian control file.
cd7df61 Fix DNSSEC validation errors introduced in 4fe6744a220eddd3f1749b40cac3dfc510787de6
c1a4e25 Try to be a little more clever at falling back to smaller DNS packet sizes.
4fe6744 DNSSEC fix for wildcard NSEC records. CVE-2017-15107 applies.
3bd4c47 Remove limit on length of command-line options.
98196c4 Typo fix.
22cd860  Allow more than one --bridge-interface option to refer to an interface.
3c973ad Use SIGINT (instead of overloading SIGHUP) to turn on DNSSEC time validation.
faaf306 Spelling fixes.
c7e6aea Change references to gPXE to iPXE. Development of EtherBoot gPXE was always development of iPXE core developer Michael Brown.
e541245 Handle duplicate RRs in DNSSEC validation.
84a01be Bump year in Debian copyright notice.
d1ced3a Update copyrights to 2018.
a6cee69 Fix exit code from dhcp_release6.
0039920 Severely fix code formating of contrib/lease-tools/dhcp_release6.c
39d8550 Run Debian startup regex in "C" locale.
ef3d137 Fix infinite retries in strict-order mode.
8c707e1 Make 373e91738929a3d416e6292e65824184ba8428a6 compile without DNSSEC.
373e917 Fix a6004d7f17687ac2455f724d0b57098c413f128d to cope with >256 RRs in answer section.
74f0f9a Commment language tweaks.
ed6bdb0 Man page typos.
c88af04 Modify doc.html to mention git-over-http is now available.
ae0187d Fix trust-anchor regexp in Debian init script.
0c50e3d Bump version in Debian package.
075366a Open inotify socket only when used.
8e8b2d6 Release notes update.
087eb76 Always return a SERVFAIL response to DNS queries with RD=0.
ebedcba Typo in printf format string added in 22dee512f3738f87539a79aeb52b9e670b3bd104
0954a97 Remove RSA/MD5 DNSSEC algorithm.
b77efc1 Tidy DNSSEC algorithm table use.
3b0cb34 Fix manpage which said ZSK but meant KSK.
aa6f832 Add a few DNS RRs to the table.
ad9c6f0 Add support for Ed25519 DNSSEC signature algorithm.
a6004d7 Fix caching logic for validated answers.
c366717 Tidy up add_resource_record() buffer size checks.
22dee51 Log DNS server max packet size reduction.
6fd5d79 Fix logic on EDNS0 headers.
9d6918d Use IP[V6]_UNICAST_IF socket option instead of SO_BINDTODEVICE for DNS.
a49c5c2 Fix search_servers() segfault with DNSSEC.
30858e3 Spaces in CNAME options break parsing.

Refresh patches.
Remove upstreamed patches:
250-Fix-infinite-retries-in-strict-order-mode.patch
260-dnssec-SIGINT.patch
270-dnssec-wildcards.patch

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agobrcm2708: Fix compile after adding kernel 4.9.82
Hauke Mehrtens [Sun, 18 Feb 2018 18:46:42 +0000 (19:46 +0100)]
brcm2708: Fix compile after adding kernel 4.9.82

Fixes: f621b539512e ("kernel: bump 4.9 to 4.9.82")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agox86: Use kernel 4.14 by default
Hauke Mehrtens [Sat, 17 Feb 2018 15:02:02 +0000 (16:02 +0100)]
x86: Use kernel 4.14 by default

Support for kernel 4.14 was added 2 months ago, make it now the default
kernel to use for the x86 target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Stijn Segers <francesco.borromini@inventati.org>
6 years agokernel: add missing config symbols
Stijn Tintel [Sun, 18 Feb 2018 13:14:06 +0000 (14:14 +0100)]
kernel: add missing config symbols

They were introduced for arm64 in 4.14.20.

Fixes: 88ba41453dbc ("kernel: bump 4.14 to 4.14.20")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: add missing symbol
John Crispin [Sun, 18 Feb 2018 08:20:38 +0000 (09:20 +0100)]
kernel: add missing symbol

this caused v4.14.20 based builds so fail on aarch64

Signed-off-by: John Crispin <john@phrozen.org>
6 years agokernel: bump 4.9 to 4.9.82
Stijn Tintel [Sun, 18 Feb 2018 00:43:25 +0000 (01:43 +0100)]
kernel: bump 4.9 to 4.9.82

Refresh patches.
Remove upstreamed patches:
- ar7/002-MIPS-AR7-ensure-the-port-type-s-FCR-value-is-used.patch
- backport/040-crypto-fix-typo-in-KPP-dependency-of-CRYPTO_ECDH.patch
Remove layerscape/819-Revert-dmaengine-dmatest-move-callback-wait-queue-to.patch,
it is superseded by upstream commit 297c7cc4b5651b174a62925b6c961085f04979fd.
Remove pending/650-pppoe_header_pad.patch, it is superseded by
upstream commit 1bd21b158e07e0b8c5a2ce832305a0ebfe42c480.
Update patches that no longer apply:
- ar71xx/004-register_gpio_driver_earlier.patch
- hack/204-module_strip.patch
- pending/493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch

Fixes CVE-2017-8824.

Compile-tested: ar71xx.
Runtime-tested: ar71xx.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agodropbear: add option to set receive window size
Stijn Tintel [Sun, 18 Feb 2018 00:15:58 +0000 (01:15 +0100)]
dropbear: add option to set receive window size

The default receive window size in dropbear is hardcoded to 24576 byte
to limit memory usage. This value was chosen for 100Mbps networks, and
limits the throughput of scp on faster networks. It also severely limits
scp throughput on high-latency links.

Add an option to set the receive window size so that people can improve
performance without having to recompile dropbear.

Setting the window size to the highest value supported by dropbear
improves throughput from my build machine to an APU2 on the same LAN
from 7MB/s to 7.9MB/s, and to an APU2 over a link with ~65ms latency
from 320KB/s to 7.5MB/s.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: bump 4.14 to 4.14.20
Stijn Tintel [Sat, 17 Feb 2018 21:59:07 +0000 (22:59 +0100)]
kernel: bump 4.14 to 4.14.20

Refresh patches.
Remove upstreamed patches:
- backport/080-v4.15-0001-arch-define-weak-abort.patch
- backport/081-v4.15-0002-kernel-exit.c-export-abort-to-modules.patch
Update patch that no longer applies:
pending/493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch

Fixes CVE-2017-8824.

Compile-tested: octeon, x86/64.
Runtime-tested: octeon, x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agobrcm2708: fix sdcard image
Stijn Tintel [Sat, 17 Feb 2018 20:00:34 +0000 (21:00 +0100)]
brcm2708: fix sdcard image

The gzip step in the sdcard image build fails because the image filename
already has the gzip extension. This results in an empty image file, to
which the metadata is finally appended.

Remove the .gz extension from the image filename to fix this.

Fixes: e79b096ee175 ("brcm2708: convert to metadata")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agoiperf3: update to 3.4
Philip Prindeville [Wed, 14 Feb 2018 23:58:54 +0000 (16:58 -0700)]
iperf3: update to 3.4

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agoarchs38: add HSDK board to network configure scripts
Evgeniy Didin [Thu, 15 Feb 2018 17:26:04 +0000 (20:26 +0300)]
archs38: add HSDK board to network configure scripts

In the initial patch which adds HSDK board there were no update
of network configuration scripts. Without it by default static IP
is set for br-lan and there is no access to internet.
This patch fixes the issue.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agoopenvpn: fix interface with mbedtls_sha256
Russell Senior [Fri, 16 Feb 2018 12:39:00 +0000 (04:39 -0800)]
openvpn: fix interface with mbedtls_sha256

Between mbedtls 2.6.0 and 2.7.0, the void returning mbedtls_MODULE* functions
were deprecated in favor of functions returning an int error code.  Use
the new function mbedtls_sha256_ret().

Signed-off-by: Russell Senior <russell@personaltelco.net>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agocurl: fix interface with mbedtls_sha256
Russell Senior [Fri, 16 Feb 2018 12:15:21 +0000 (04:15 -0800)]
curl: fix interface with mbedtls_sha256

Between mbedtls 2.6.0 and 2.7.0, the void returning mbedtls_MODULE* functions
were deprecated in favor of functions returning an int error code.  Use
the new function mbedtls_sha256_ret().

Signed-off-by: Russell Senior <russell@personaltelco.net>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agosunxi: Add Xunlong Orange Pi Zero Plus
Hauke Mehrtens [Sat, 27 Jan 2018 22:46:50 +0000 (23:46 +0100)]
sunxi: Add Xunlong Orange Pi Zero Plus

This is based on a patch from armbian:
https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/sunxi-add-orangepi-zero-plus.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-sunxi: Add Xunlong Orange Pi Zero Plus
Hauke Mehrtens [Sat, 27 Jan 2018 22:46:32 +0000 (23:46 +0100)]
uboot-sunxi: Add Xunlong Orange Pi Zero Plus

This is based on a patch from armbian:
https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/add-orangepi-zeroplus.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agosunxi: Add Realtek PHY driver or ARM64 devices
Hauke Mehrtens [Sun, 28 Jan 2018 00:14:42 +0000 (01:14 +0100)]
sunxi: Add Realtek PHY driver or ARM64 devices

The Orange Pi Zero Plus uses a RTL8211E, add the driver for this PHY.
This is probably used on more boards with a Allwinner SoC.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agosunxi: add support for NanoPi NEO Plus2 board
Antony Antony [Thu, 28 Dec 2017 17:21:15 +0000 (18:21 +0100)]
sunxi: add support for NanoPi NEO Plus2 board

arm64: allwinner: h5: NanoPi NEO Plus2 DT support
Add initial DT for NanoPi NEO Plus2 by FriendlyARM
    - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU
    - 1 GB DDR3 RAM
    - 8GB eMMC flash (Samsung KLM8G1WEPD-B031)
    - micro SD card slot
    - Gigabit Ethernet (external RTL8211E-VB-CG chip)
    - 802.11 b/g/n WiFi, Bluetooth 4.0 (Ampak AP6212A module)
    - 2x USB 2.0 host ports & 2x USB via headers

Signed-off-by: Antony Antony <antony@phenome.org>
6 years agosunxi: add kernel DT for NanoPi NEO Plus2 board
Antony Antony [Thu, 28 Dec 2017 17:21:18 +0000 (18:21 +0100)]
sunxi: add kernel DT for NanoPi NEO Plus2 board

Linux Kernel upstream commit d73413058

Signed-off-by: Antony Antony <antony@phenome.org>
6 years agouboot-sunxi: add u-boot DT for NanoPi NEO Plus2 board
Antony Antony [Thu, 28 Dec 2017 17:21:16 +0000 (18:21 +0100)]
uboot-sunxi: add u-boot DT for NanoPi NEO Plus2 board

u-boot upstream commit 6130b1f6bc23

Signed-off-by: Antony Antony <antony@phenome.org>
6 years agouboot-sunxi: dts: Update orange Pi R1 integration
Hauke Mehrtens [Mon, 1 Jan 2018 23:37:26 +0000 (00:37 +0100)]
uboot-sunxi: dts: Update orange Pi R1 integration

This syncs the Orange Pi R1 device tree files with the one from the
upstream kernel and also uses the default configuration from the Orange
Pi Zero.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoar71xx: fix sysupgrade syntax error
Mathias Kresin [Fri, 16 Feb 2018 21:56:56 +0000 (22:56 +0100)]
ar71xx: fix sysupgrade syntax error

Fix syntax error introduced with 188328111b46 ("treewide: move
nand_do_upgrade call to platform_do_upgrade").

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agombedtls: activate deprecated functions
Hauke Mehrtens [Fri, 16 Feb 2018 18:48:49 +0000 (19:48 +0100)]
mbedtls: activate deprecated functions

Some functions used by a lot of other software was renamed and is only
active when deprecated functions are allowed, deactivate the removal of
deprecated functions for now.

Fixes: 75c5ab4caf9 ("mbedtls: update to version 2.7.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agogpio-nct5104d: Add support for new chip ID
Jasper Scholte [Thu, 15 Feb 2018 12:40:53 +0000 (13:40 +0100)]
gpio-nct5104d: Add support for new chip ID

The PC Engines APU3b has a new nct5104b version with chip ID 0xc453.
This adds support for that version.

Signed-off-by: Jasper Scholte <NightNL@outlook.com>
6 years agotreewide: move nand_do_upgrade call to platform_do_upgrade
Mathias Kresin [Mon, 18 Dec 2017 19:32:18 +0000 (20:32 +0100)]
treewide: move nand_do_upgrade call to platform_do_upgrade

Calling nand_do_upgrade() from platform_pre_upgrade() was deprecated
with 30f61a34b4cf ("base-files: always use staged sysupgrade").

Update the platform upgrade code to use platform_do_upgrade() for NAND
images as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agotreewide: remove obsolete sysupgrade watchdog kill
Mathias Kresin [Mon, 18 Dec 2017 17:42:49 +0000 (18:42 +0100)]
treewide: remove obsolete sysupgrade watchdog kill

The watchdog kill command was meant for busybox watchdog. Busybox watchdog
was replaced by the procd watchdog mid 2013 with commit df7ce9301a25
("busybox: disable the watchdog utility by default"), which makes the kill
command obsolete since quite some time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agosunxi: switch to kernel 4.14
Zoltan HERPAI [Fri, 16 Feb 2018 11:20:39 +0000 (12:20 +0100)]
sunxi: switch to kernel 4.14

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: bump to 2017.11"
Zoltan HERPAI [Fri, 16 Feb 2018 10:40:34 +0000 (11:40 +0100)]
Revert "uboot-sunxi: bump to 2017.11"

This reverts commit 805f756d6e4ff5061380baf5e262aec72abcf195.

Move back to 2017.07 until we move sunxi to GCC7.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: refresh patches"
Zoltan HERPAI [Fri, 16 Feb 2018 10:40:01 +0000 (11:40 +0100)]
Revert "uboot-sunxi: refresh patches"

This reverts commit f142de5f44bcba8cb0f12e5b1fd26cd9867cf866.

Revert until we can move to 2017.11

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: fix build by adding comparabilities for old dtc"
Zoltan HERPAI [Fri, 16 Feb 2018 10:39:13 +0000 (11:39 +0100)]
Revert "uboot-sunxi: fix build by adding comparabilities for old dtc"

This reverts commit ef0416666f48e1e7793c4230cec18c8cdd3e1003.

Revert until we can move to 2017.11

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agokernel: add missing symbols
John Crispin [Fri, 16 Feb 2018 09:01:31 +0000 (10:01 +0100)]
kernel: add missing symbols

These cause mediatek arm to fail full builds

Signed-off-by: John Crispin <john@phrozen.org>
6 years agonftables: update to version 0.8.2
Hauke Mehrtens [Thu, 15 Feb 2018 21:13:17 +0000 (22:13 +0100)]
nftables: update to version 0.8.2

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoiproute2: update to version 4.15.0
Hauke Mehrtens [Thu, 15 Feb 2018 21:12:03 +0000 (22:12 +0100)]
iproute2: update to version 4.15.0

The musl compatibility patches are now included in the upstream version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agombedtls: update to version 2.7.0
Hauke Mehrtens [Thu, 15 Feb 2018 20:58:47 +0000 (21:58 +0100)]
mbedtls: update to version 2.7.0

This fixes the following security problems:
* CVE-2018-0488: Risk of remote code execution when truncated HMAC is enabled
* CVE-2018-0487: Risk of remote code execution when verifying RSASSA-PSS signatures

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoramips: preliminary support for 4.14
Roman Yeryomin [Tue, 16 Jan 2018 22:07:58 +0000 (00:07 +0200)]
ramips: preliminary support for 4.14

- removed upstreamed patches
- 0901-spansion_nand_id_fix.patch is disabled, not clear if it's needed

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: John Crispin <john@phrozen.org>
6 years agoiwinfo: update to latest git HEAD
Daniel Golle [Thu, 15 Feb 2018 03:56:26 +0000 (04:56 +0100)]
iwinfo: update to latest git HEAD

223e09b add support for expected throughput

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agoramips: fix reporting effective VLAN ID on MT7621 switches
Jo-Philipp Wich [Tue, 13 Feb 2018 14:58:48 +0000 (15:58 +0100)]
ramips: fix reporting effective VLAN ID on MT7621 switches

On MT7621, the REG_ESW_VLAN_VTIM reads are undefined, causing swconfig
to always report `vid: 0` in swconfig show output.

Since a 4K VLAN table is used on this platform, the VLAN ID always
correponds to the actual VLAN table index so provide a specific MT7621
implementation of the get_vid callback which returns the table index
as VLAN ID.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoramips: properly map pvid for vlans with remapped vid on mt7530/762x switches
Jo-Philipp Wich [Tue, 13 Feb 2018 14:37:49 +0000 (15:37 +0100)]
ramips: properly map pvid for vlans with remapped vid on mt7530/762x switches

Currently, untagged port primary vlan IDs are set to the VLAN table index,
and not the actual VLAN ID, breaking configurations with IDs deviating from
the VLAN index.

Fix the issue by resolving the per-port pvid property to the target VLAN ID
value before committing to the hardware.

Fixes FS#991, FS#1147, FS#1341

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoramips: don't clobber vlans with remapped vid on mt7530/762x switches
Jo-Philipp Wich [Sun, 11 Feb 2018 19:24:37 +0000 (20:24 +0100)]
ramips: don't clobber vlans with remapped vid on mt7530/762x switches

Avoid overwriting vlan entries with remapped vid in later iterations of
the vlan enumeration loop of mt7530_apply_config().

Fix the problem by refactoring the code to first reset the entire table,
then reprogram only vlans with members to prevent overwriting configured
vlans with unconfigured ones.

Fixes FS#1147, FS#1341

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoat91: fix image building with CONFIG_TARGET_MULTI_PROFILE
Jo-Philipp Wich [Tue, 13 Feb 2018 15:12:08 +0000 (16:12 +0100)]
at91: fix image building with CONFIG_TARGET_MULTI_PROFILE

The current image build code has a number of race conditions and interface
contract violations in the custom image build steps:

 - Build/install-zImage, solely used by at91, relies on $(PROFILE_SANITIZED)
   which is not available when building with CONFIG_TARGET_MULTI_PROFILE

 - Build/at91-sdcard, which may run concurrently, creates scratch files at
   fixed locations and manipulates target files directly which can lead
   to file corruption and other unexpected failures

Rename the install-zImage macro to at91-install-zImage and move it to the
at91 image Makefile since this target is the sole user. Also utilize "$@"
as output file name and switch the usage of $(PROFILE_SANITIZED) to
$(DEVICE_NAME) in order to fix naming under multi profile builds.

Fix the at91-sdcard macro to construct scratch file paths relative to "$@",
which is guaranteed to be unique and store the final artifact output in "$@"
as well, instead of inside $(BIN_DIR). The generic image build code takes
care of moving a build steps "$@" output to the final destination in a
concurrency-safe manner.

Finally remove the broken install-zImage from the generic image-commands
Makefile.

Fixes: d7a679a036 ("at91: Install zImage.")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agomediatek: bump to v4.14
John Crispin [Mon, 8 Jan 2018 14:06:24 +0000 (15:06 +0100)]
mediatek: bump to v4.14

This drops support for all the !emmc EVB and adds banannaPi-R2
Also drop mtkhnat until the nftables offoad driver is ready

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoipq806x: add support for GL.iNet GL-B1300
Dongming Han [Thu, 7 Dec 2017 12:48:19 +0000 (20:48 +0800)]
ipq806x: add support for GL.iNet GL-B1300

This patch adds support for GL.iNet GL-B1300

Specification:
- SOC:        IPQ4028 / QCA Dakota
- RAM:        256 MiB
- FLASH:      32 MiB
- ETH:        Qualcomm Atheros QCA8075 Gigabit Switch (2 x LAN, 1 x WAN)
- USB:        1 x 3.0 (via Synopsys DesignWare DWC3 controller in the SoC)
- WLAN1:      Qualcomm Atheros QCA4028 2.4GHz 802.11bgn 2:2x2
- WLAN2:      Qualcomm Atheros QCA4028 5GHz 802.11a/n/ac 2:2x2
- INPUT:      one reset and one WPS button
- LEDS:       3 leds: Power, WIFI(only for 2.4G currently), and one reserved
- UART:       1 x UART on PCB (3.3V, TX, RX, GND) - 115200 8N1

Installation:
Method 1:
- use serial port to stop uboot
- uboot command: run lf
Method 2:
- push down reset button and power on
- wait until three leds constantly on then release
- upgrade by uboot web at http://192.168.1.1
Note:
- the sysupgrade image need to be renamed to lede-gl-b1300.bin in both method.
- the sysupgrade image can be automatically downloaded if tftp server at
  192.168.1.2 have that file.
- the wifi led will be flashing when writing image.

Signed-off-by: Dongming Han <handongming@gl-inet.com>
6 years agoubox: update to latest git HEAD
John Crispin [Wed, 14 Feb 2018 08:28:52 +0000 (09:28 +0100)]
ubox: update to latest git HEAD

128bc35 logread: fix reconnect logd logic
66347ec logread: move the code setting up the request blob out of the main loop
975a258 logread: move output connection setup code out of main loop
b81bea7 logread: cleanup pid file handling
d73e7d2 ubox: Replace strerror(errno) with %m format.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoarchs38: add HSDK board
Evgeniy Didin [Tue, 13 Feb 2018 14:24:25 +0000 (17:24 +0300)]
archs38: add HSDK board

Synopsys DesignWare HSDK (which stands for ARC HS
Development Kit) is the latest and greatest development
platform that sports quad-core ARC HS38 in real silicon.

Most noticeable features of the board are:
 * Quad-core ARC HS38 CPU running at 1GHz
 * 4Gb of DDR
 * Built-in Vivante GPU (well supported via open source
   Etnaviv drivers)
 * Built-in Wi-Fi/Bluetooth module (RedPine RS-9113)

And as usual we have:
 * [micro] SD-card slot
 * 2 USB 2.0 ports
 * 1Gbit Ethernet port
 * Built-in Digilent JTAG probe
 * Serial port accessible via micro-USB port

For more information about HSDK board visit:
https://www.synopsys.com/dw/ipdir.php?ds=arc-hs-development-kit

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agoarchs38: switch to kmod-usb2
Evgeniy Didin [Tue, 13 Feb 2018 14:24:24 +0000 (17:24 +0300)]
archs38: switch to kmod-usb2

We have managed to get USB 2.0 working good enough
on all archs38 platforms so we're ready to switch
to much faster USB 2.0.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agogeneric: swconfig: reduce lock duration on sysfs files
Kevin Darbyshire-Bryant [Tue, 13 Feb 2018 13:53:50 +0000 (13:53 +0000)]
generic: swconfig: reduce lock duration on sysfs files

sysfs attributes 'port_mask' & 'speed_mask' held locks whilst doing
mundane tasks such as sprintf.  Refactor code to reduce length of time
locks are held unnecessarily.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agogeneric: swconfig: add mode led attribute
Kevin Darbyshire-Bryant [Tue, 13 Feb 2018 13:53:49 +0000 (13:53 +0000)]
generic: swconfig: add mode led attribute

Add sysfs 'mode' attribute to swconfig controlled LEDs.

swconfig 'link state' LEDs blink in the presence of port traffic.  This
behaviour becomes more obvious as switches start to support
get_port_stats() e.g. commits 0369e358916ef092a1644334f5dd1412051b68a4,
3056d09b4046e0eb0f6de0f3f5432cd9fa86fc51,
4ddbc43cc15c2fa128a2f169964ef7eb508cf2c5,
4d8a66d9346373c2a7fcac5bdae3f662a9dbd9df.

This blinking can be confusing/distracting if the switch has other LEDs
used to indicate traffic.  Provide a 'mode' sysfs attribute that
controls the blink on traffic behaviour.

mode - either "none" (LED is off) or a space separated list of one or more:

link: LED's normal state reflects whether the link is up (has carrier) or not
tx:   LED blinks on transmitted data
rx:   LED blinks on receive data

Note that 'link' considers any port speed mask that may be applicable.
e.g. if an LED is configured to indicate 1Gbit link speed and mode is
set to 'link rx tx' but the port is connected at 100Mbit then the LED
will not light or blink. A mode of 'tx rx' will blink in the presence of
traffic only if the port matches the rate (if configured)
This maintains compatibility with existing behaviour.

Attribute is 'link tx rx' by default for backwards compatible behaviour.

Many thanks to Thibaut Varene for providing a more sensible led_event
routine after I had mangled the original, and other coding style hints.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Acked-by: Thibaut VARENE <hacks@slashdirt.org>
6 years agomwlwifi: downgrade to version 10.3.4.0-20180118
Hauke Mehrtens [Tue, 13 Feb 2018 22:21:12 +0000 (23:21 +0100)]
mwlwifi: downgrade to version 10.3.4.0-20180118

Some people reported problems with the current development version, so
go back to the latests more or less release.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: fix compile problem with kernel 4.14
Hauke Mehrtens [Sun, 11 Feb 2018 11:38:24 +0000 (12:38 +0100)]
mwlwifi: fix compile problem with kernel 4.14

vfs_write() is not exported on kernel 4.14 any more and kernel_write()
should be used instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: use PKG_SOURCE_DATE instead of version
Hauke Mehrtens [Sun, 11 Feb 2018 11:28:38 +0000 (12:28 +0100)]
mwlwifi: use PKG_SOURCE_DATE instead of version

Using PKG_SOURCE_DATE instead of PKG_VERSION will make the build system
generate the version based on the date and the git hash. This way the
tar file name changes when the git hash changes and this avoids problems
when someone forgets to change the version, but changes the git hash.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: Update to latest commit 20180208
Chris Breuer [Tue, 23 Jan 2018 15:43:28 +0000 (16:43 +0100)]
mwlwifi: Update to latest commit 20180208

Changes since last merge into OpenWrt since 2017-12-14:
 - Added debugfs file tx_hist.
 - Added debugfs file fixed_rate.
 - Added debugfs file ba_hist.
 - Modified the way to establish BA stream.
 - Added code to control BF type.
 - Added functions to check/dump dhcp packet.
 - Upgrade 88W8964 firmware to 9.3.2.4.
 - Added debugfs file coredump.
 - Corrected the way to transmit multicast packets.
 - Change driver version to 10.3.4.0-20180118.
 - Corrected the way to get qos control.
 - Assigned broadcast dhcpoffer to another queue.
 - Separated broadcast and multicast packets. Bump to latest commit 20180206

Signed-off-by: Chris Breuer <github@chrisbreuer.de>
6 years agomvebu: Migrate uci config to new PCIe path
Hauke Mehrtens [Sun, 21 Jan 2018 15:33:34 +0000 (16:33 +0100)]
mvebu: Migrate uci config to new PCIe path

The name of the PCIe controller node in device tree changed between
kernel 4.9 and kernel 4.14. Migrate the configuration when an update
from kernel 4.9 to 4.14 or back is done to the new name to make
the existing wifi configuration compatible with the new names.

This replaces the "pcie-controller" part with "pcie" on all nodes if the
file exists in sys fs.

This is not done in the uci-defualts, because they are getting executed
to late in the boot process. The kernel module gets loaded before the
uci-defaults scripts are executed. When the mwlwifi driver gets loaded
it will trigger an event via hotplug to detect new devices and as the
paths are not in the uci configuration they will be added again.
When the migration is done before the script will detect that they are
already there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomvebu: Add support for kernel 4.14
Hauke Mehrtens [Thu, 21 Dec 2017 11:13:30 +0000 (12:13 +0100)]
mvebu: Add support for kernel 4.14

Add support for kernel 4.14 to the mvebu target.

This also replaces the old sfp and phylink patches with new versions
from Russell's clearfog-4.13 branch
http://git.arm.linux.org.uk/cgit/linux-arm.git/log/?h=clearfog-4.13

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomvebu: move files to files-4.9 and files-4.4 folder
Hauke Mehrtens [Sat, 23 Dec 2017 16:45:23 +0000 (17:45 +0100)]
mvebu: move files to files-4.9 and files-4.4 folder

This is needed to prevent copying it into kernel 4.14.
These device tree files are already integrated into kernel 4.14 and we
would like to use the upstream versions only.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomac80211: move wifi detect hotplug script to later
Hauke Mehrtens [Sun, 11 Feb 2018 21:58:42 +0000 (22:58 +0100)]
mac80211: move wifi detect hotplug script to later

Make it easily possible to add a custom script in front of this hotplug
script which adds new devices. This is needed for the mvebu target in
which we want to migrate the old configuration before new devices are
getting detected.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: ubifs: create use file system format 4 by default
Hauke Mehrtens [Sun, 21 Jan 2018 15:01:15 +0000 (16:01 +0100)]
kernel: ubifs: create use file system format 4 by default

Instead of creating an ubifs file system with format version 5 by
default on empty UBI volumes use the older format 4 by default. This
will make it possible to mount these file systems also on older kernel
versions.

When a user wants to do a sysupgrade from kernel 4.14 to kernel 4.9 the
old kernel has to read the file system created by the more recent kernel
which currently does not work for ubifs.

This fixes the problem by creating file systems which are compatible
with older kernel versions by default.
Kernel 4.14 will still be able to read and write UBI FS file system
version 5, it will just not be used when a ubifs partition is created
implicitly on an empty UBI volume.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: Add missing config options
Hauke Mehrtens [Tue, 13 Feb 2018 20:55:43 +0000 (21:55 +0100)]
kernel: Add missing config options

These were found when compiling the new octeontx target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agobrcm63xx: drop root parameter from cmdline
Jonas Gorski [Tue, 13 Feb 2018 11:19:29 +0000 (12:19 +0100)]
brcm63xx: drop root parameter from cmdline

The root= parameter overrides the automatic rootfs detection by partition
name, so drop it. Fixes boot from flash after renumeration changes of
partitions due to parser changes.

Fixes FS#1350.

Fixes: a27d59bb4274 ("brcm63xx: switch to new partition layout specification")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agotarget.mk: let profile remove from DEFAULT_PACKAGES
Philip Prindeville [Tue, 16 Jan 2018 22:46:44 +0000 (15:46 -0700)]
target.mk: let profile remove from DEFAULT_PACKAGES

In a profile, specifying -pkg in the list of PACKAGES will suppress
it even if it appears in the target's DEFAULT_PACKAGES list.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agoipq806x: switch to full dual-boot for the nbg6817 sysupgrade support
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:41:44 +0000 (22:41 +0100)]
ipq806x: switch to full dual-boot for the nbg6817 sysupgrade support

Instead of writing to the currently booted partition set, this
implements full dual-boot support for sysupgrade by always writing to
the other, currently inactive, partition set and toggling the dualflag
after a successful flash.

The currently active/ booted partition set is determined by parsing
/proc/cmdline for its rootfs parameter (supplied by the DTS), instead
of reading from the 0:DUAL_FLAG mtd, in order to prevent (potentially)
bricking both partition sets.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: request the first free loop device dynamically for the nbg6817 sysupgrade
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:27:08 +0000 (22:27 +0100)]
ipq806x: request the first free loop device dynamically for the nbg6817 sysupgrade

Instead of hardcoding /dev/loop0, it's safer to query for the first
free loop device and assign that dynamically. While /dev/loop0 is a
reasonable assumption immediately following "losetup --detach-all",
detaching the mounted overlay is no longer strictly necessary once
dual-boot support has been added for the nbg6817.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: use absolute the device path in $kernel for the nbg6817 sysupgrade
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:18:36 +0000 (22:18 +0100)]
ipq806x: use absolute the device path in $kernel for the nbg6817 sysupgrade

Harmonize the variable usage for $kernel and $rootfs to always contain
the full device path, instead of just its basename.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: support new location of USB PHY kernel module
Luis Araneda [Fri, 22 Dec 2017 03:23:07 +0000 (00:23 -0300)]
ipq806x: support new location of USB PHY kernel module

PHY drivers were grouped into vendor specific directories
by upstream commit 0b56e9a7e8358e59b21d8a425e463072bfae523c

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years agoi2c.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:27:15 +0000 (16:27 +0200)]
i2c.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agohwmon.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:22:40 +0000 (16:22 +0200)]
hwmon.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agocan.mk: sort modules
Lucian Cristian [Sun, 14 Jan 2018 13:37:06 +0000 (15:37 +0200)]
can.mk: sort modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agocrypto.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:06:27 +0000 (16:06 +0200)]
crypto.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agofs.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:15:30 +0000 (16:15 +0200)]
fs.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agofirewire.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:08:45 +0000 (16:08 +0200)]
firewire.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agobuild: cleanup leftover qconf files
Alif M. Ahmad [Fri, 12 Jan 2018 08:55:48 +0000 (08:55 +0000)]
build: cleanup leftover qconf files

``make xconfig`` toplevel target will invoke ``make qconf`` inside
./scripts/config directory, which results a ``qconf`` executable.

This commit removes leftover ``qconf`` executable during ``make
config-clean``.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
6 years agoar71xx: add more registers to ar71x_regs.h
Julien Dusser [Wed, 20 Dec 2017 14:29:42 +0000 (15:29 +0100)]
ar71xx: add more registers to ar71x_regs.h

Add more registers and flags to ar71x_regs.h for QCA955x and QCA956x
SoCs. Values come from Qualcomm Atheros u-boot code.

Patches can be merged into
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
6 years agoramips: add support for D-Link DAP-1522 A1
George Hopkins [Sat, 28 Oct 2017 12:24:21 +0000 (14:24 +0200)]
ramips: add support for D-Link DAP-1522 A1

D-Link DAP-1522 is a wireless bridge/access point with 4 LAN
ports and a dual-band wireless chipset.

Specifications:
- Ralink RT2880
- 32 MB of RAM
- 4 MB of Flash
- 4x 10/100/1000 Mbps Ethernet (RTL8366SR)
- 802.11abgn (RT2850)

Flash Instructions:
1. Download lede-ramips-rt288x-dap-1522-a1-squashfs-factory.bin
2. Open the web interface and upload the image

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agomtd: add fixwrg command
George Hopkins [Sat, 28 Oct 2017 12:08:38 +0000 (14:08 +0200)]
mtd: add fixwrg command

Add a command to fix WRG headers, based on wrgg.c.

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agokernel: mtdsplit: split by WRG header
George Hopkins [Sat, 28 Oct 2017 12:01:10 +0000 (14:01 +0200)]
kernel: mtdsplit: split by WRG header

Support splitting WRG images, which can be found in older
D-Link devices.

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agokernel: add missing symbol
John Crispin [Tue, 13 Feb 2018 09:55:46 +0000 (10:55 +0100)]
kernel: add missing symbol

Signed-off-by: John Crispin <john@phrozen.org>
6 years agouqmi: bump package release
Koen Vandeputte [Tue, 13 Feb 2018 09:12:11 +0000 (10:12 +0100)]
uqmi: bump package release

fixes: da8990e717e1 ("uqmi: use built-in command for data-link verification")

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoar71xx: Add eTactica EG-200 support
Karl Palsson [Thu, 26 May 2016 11:20:53 +0000 (11:20 +0000)]
ar71xx: Add eTactica EG-200 support

EG-200 is a DIN rail mountable device with one ethernet port, wifi,
an RS-485 port, and an internal USB attached uSD card reader.

Two leds, "modbus" and "etactica" are managed by userspace applications
in factory firmware.

Flash instruction:
    Original firmware is based on OpenWrt.
    Use sysupgrade image directly in vendor GUI.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agouqmi: use built-in command for data-link verification
Koen Vandeputte [Wed, 7 Feb 2018 12:23:28 +0000 (13:23 +0100)]
uqmi: use built-in command for data-link verification

uqmi contains a command for directly querying the modem if there
is a valid data connection, so let's use it.

This avoids the cases were all previous tests are succesful, but the
actual data link is not up for some reasons, leading to states were we
thought the link was up when it actually wasn't ..

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agouqmi: use correct value for connection checking
Koen Vandeputte [Wed, 7 Feb 2018 12:23:27 +0000 (13:23 +0100)]
uqmi: use correct value for connection checking

Originally, the implementation only checked if uqmi command
execution succeeded properly without actually checking it's returned data.

This lead to a pass, even when the returned data was indicating an error.

Rework the verification to actually check the returned data,
which can only be correct if the uqmi command itself also executed correctly.

On command execution success, value "pdh_" is a pure numeric value.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agouqmi: use general method for state cleaning
Koen Vandeputte [Wed, 7 Feb 2018 12:23:26 +0000 (13:23 +0100)]
uqmi: use general method for state cleaning

Debugging shows that using the general method properly cleans on each
run, while the method specifying the client-ID shows "No effect"
even while in connected state.

Fixes several connectivity issues seen on specific modems.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoramips: use new image build code for WHR-G300N
INAGAKI Hiroshi [Sun, 11 Feb 2018 18:42:47 +0000 (03:42 +0900)]
ramips: use new image build code for WHR-G300N

The tftp.bin image for Buffalo WHR-G300N was not built, so I was fixed
it after rewriting to new image build code. And the code for
factory-EU.bin was broken, so I deleted it.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years agomediatek: remove the CPU_SUBTYPE
John Crispin [Mon, 12 Feb 2018 20:02:01 +0000 (21:02 +0100)]
mediatek: remove the CPU_SUBTYPE

Signed-off-by: John Crispin <john@phrozen.org>