openwrt/staging/jow.git
5 years agozynq: kernel: select FPGA-related configs
Luis Araneda [Wed, 12 Sep 2018 05:48:10 +0000 (02:48 -0300)]
zynq: kernel: select FPGA-related configs

These configs are necessary to program the FPGA fabric

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from b959f361bed07ae68eb7640919d9de58d6c22c47)

5 years agosunxi: build image/uboot for the NanoPi NEO2
Jasper Scholte [Wed, 19 Sep 2018 20:31:26 +0000 (22:31 +0200)]
sunxi: build image/uboot for the NanoPi NEO2

The NanoPi NEO2 is a small Allwinner H5 based board available with
different DRAM configurations.
This board is very similar to the NanoPi NEO PLUS2

Signed-off-by: Jasper Scholte <NightNL@outlook.com>
(backported from a689307c970e37c247c6452ba3963be8b109eb4f)

5 years agokernel: add Si7020 relative humidity/temperature sensor driver
Hartmut Knaack [Mon, 10 Sep 2018 23:33:37 +0000 (01:33 +0200)]
kernel: add Si7020 relative humidity/temperature sensor driver

Add support for the Silicon Labs Si7020 family of relative humidity and
temperature sensors using the I2C bus.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
(backported from d3a492c72f15ecf8debe56a3ee35eb213c9d9bcc)

5 years agokernel: add TSL4531 ambient light sensor driver
Hartmut Knaack [Mon, 10 Sep 2018 23:33:36 +0000 (01:33 +0200)]
kernel: add TSL4531 ambient light sensor driver

Add support for the TAOS TSL4531x family of ambient light sensors using
the I2C bus.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
(backported from 265dcb05ea4e4ca7fd780f496f20b17327598338)

5 years agombedtls: update to 2.13.0
Magnus Kroken [Sat, 15 Sep 2018 22:44:43 +0000 (00:44 +0200)]
mbedtls: update to 2.13.0

* Fixed a security issue in the X.509 module which could lead to a buffer overread during certificate extensions parsing.
* Several bugfixes.
* Improvements for better support for DTLS on low-bandwidth, high latency networks with high packet loss.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
(backported from 7849f74117ce83e4cfcd1448a22cc05dbf9b3486)

5 years agoath9k: add back support for using tx99 with active monitor interfaces
Felix Fietkau [Sat, 22 Sep 2018 13:34:40 +0000 (15:34 +0200)]
ath9k: add back support for using tx99 with active monitor interfaces

Fixes controlling bitrate

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from a32a70f4f20ff84dd037c7533759f81b1c1ea7ea)

5 years agoelfutils: bump to 0.174
Luiz Angelo Daros de Luca [Tue, 18 Sep 2018 04:07:57 +0000 (01:07 -0300)]
elfutils: bump to 0.174

- Simplified musl patch with error.h concentrated into system.h

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
(backported from 38a88ade14e935f979dc17b2181f538653d137c5)

5 years agotoolchain/musl: update to version 1.1.20
Christian Lamparter [Tue, 4 Sep 2018 21:27:00 +0000 (23:27 +0200)]
toolchain/musl: update to version 1.1.20

This release introduces the ability to replace/interpose the allocator
(malloc) subject to certain restrictions, adds an experimental m68k
port, and makes notable improvements to stdio (application-provided
buffers), getaddrinfo (AI_ADDRCONFIG, support for IPv4-only kernel
configurations), the dynamic linker (safety against dlopen of
libraries using initial-exec TLS model, reclaiming unused memory on
FDPIC archs, better dladdr results), and handling of default thread
stack size (pthread_setattr_default_np now works more reliably).

Many bugs have been fixed, including potentially dangerous regressions
in iconv (only for new conversions to legacy encodings) and visibly
incorrect behavior in printf on non-x86 archs (%a format with
precision specifier), in getopt_long_only when short options are a
prefix for a long option, in complex arc-trig/hyperbolic functions, in
strftime and mktime (timezone-specific issues), and numerous
less-obvious places.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[altered commit msg a bit keeping it tight]
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 1801e60390706abc0ffe6376c5d9441ca10253c6)

5 years agomdadm: Install /etc/config file as 600
Rosen Penev [Wed, 19 Sep 2018 01:32:15 +0000 (18:32 -0700)]
mdadm: Install /etc/config file as 600

/etc/config/mdadm is only used by the init script which is ran as root.
There is no need for it to be readable by anything else.

Added PKG_CPE_ID for proper CVE tracking.

Small reorganization for consistency between Makefiles.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 5efd080e20f83556c0e3acb4d9c56673ec577d27)

5 years agofstools: Install mount.hotplug and 10-fstab.defaults as 600
Rosen Penev [Wed, 19 Sep 2018 01:32:20 +0000 (18:32 -0700)]
fstools: Install mount.hotplug and 10-fstab.defaults as 600

Both of these are used by programs that run as root and nothing else.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 4ad87744fa83e2f75fd4f6e9a46f106aaf7ee2dc)

5 years agousbmode: Update modeswitch data to 20170806
Rosen Penev [Wed, 19 Sep 2018 01:32:19 +0000 (18:32 -0700)]
usbmode: Update modeswitch data to 20170806

Changed hotplug file to 600 as it is only read by procd, which runs as
root.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 873801a671bb9aa0a063ad9d01c0913b2e35886c)

5 years agotrelay: Install hotplug and config files as 600
Rosen Penev [Wed, 19 Sep 2018 01:32:18 +0000 (18:32 -0700)]
trelay: Install hotplug and config files as 600

The hotplug file is ran by procd, which runs as root. The config file is
used by the init script, which also runs as root.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 39d8b2cf7925911a5e5340cd86eb63bb0729a4f9)

5 years agodropbear: Install /etc/config as 600
Rosen Penev [Wed, 19 Sep 2018 01:32:17 +0000 (18:32 -0700)]
dropbear: Install /etc/config as 600

/etc/config/dropbear is used by the init script which only runs as root.

Small whitespace change.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 7651e254d5f17ba1f3cf16065b4fa1e5f4a3a3f6)

5 years agolldpd: Install /etc/config file as 600
Rosen Penev [Wed, 19 Sep 2018 01:32:16 +0000 (18:32 -0700)]
lldpd: Install /etc/config file as 600

/etc/config/lldpd is only used by the init script, which only runs as root

Adjusted homepage and download URLs to use HTTPS.

-std=c99 is useful for GCC versions less than 6. Current OpenWrt uses 7.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from add4871582e185c1f7a8bcfc6a4c044430b40358)

5 years agoucert: work around short read
Mike McCormack [Sat, 18 Aug 2018 06:04:57 +0000 (16:04 +1000)]
ucert: work around short read

usign occasionally writes 16 characters then exits without writing a LF,
leaving ucert hanging waiting for more input.  Accept 16 characters
or more rather than 17 to work around the short read.

Signed-off-by: Mike McCormack <mike@atratus.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from e8cbfedc7229348230c3f970b2376776cb0c113e)

5 years agotools/e2fsprogs: fix build with clang
Felix Fietkau [Sat, 15 Sep 2018 13:49:31 +0000 (15:49 +0200)]
tools/e2fsprogs: fix build with clang

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 03c7c8c8530cc899bf04d0559d575ba0ea1de19c)

5 years agobusybox: update to 1.29.3
Hannu Nyman [Fri, 14 Sep 2018 19:07:42 +0000 (22:07 +0300)]
busybox: update to 1.29.3

Update busybox to 1.29.3, minor bugfix release

https://git.busybox.net/busybox/log/?h=1_29_3

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(backported from 4a3298c124787721be632f15b77def945f097441)

5 years agokernel: add missing symbol
John Crispin [Mon, 10 Sep 2018 15:50:40 +0000 (17:50 +0200)]
kernel: add missing symbol

Signed-off-by: John Crispin <john@phrozen.org>
(backported from 9926f7cf29cbdb075f83128956b33215c93732ae)

5 years agoramips: Fix early memory calculation for certain MIPS platforms
Tobias Wolf [Sun, 19 Aug 2018 11:04:02 +0000 (13:04 +0200)]
ramips: Fix early memory calculation for certain MIPS platforms

Kernel upstream commit 67a3ba25aa95 ("MIPS: Fix incorrect mem=X@Y handling") introduced a new issue for rt288x where "PHYS_OFFSET" is 0x0 but the calculated "ramstart" is not. As the prerequisite of custom memory map has been removed, this results in the full memory range of 0x0 - 0x8000000 to be marked as reserved
for this platform.

This patch adds the originally intended prerequisite again.

Signed-off-by: Tobias Wolf <dev-NTEO@vplace.de>
(backported from 93bfafb8dc209f153022796d9e747149e66cc29e)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant
Sven Eckelmann [Mon, 3 Sep 2018 07:58:42 +0000 (09:58 +0200)]
ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant

The OM2P(-HS)v4 got a variant which uses a slightly different flash. The
standard versions used a flash with 256KB blocks which is no longer
available. The replacement flash uses a flash with 64K blocks.

The padding for the image rootfs is already for 64K and 256K and thus can
be flashed on the device without any problems. Unfortunately, the
bootloader will check $rootfs_size (rounded down to the nearest 64k block)
minus 1x 64k. But it is now possible that the new JFFS2 rootfs_data starts
even earlier and modifies the checked region. The check will then fail and
the backup image (when available) will be booted.

Just setting it to the same number of skipped blocks as other 64K models
avoids this problem.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(backported from 78a5d25dca5de9b00890e7a414a6e423c4ba6e19)

5 years agotools/expat: Update to 2.2.6
Daniel Engberg [Wed, 29 Aug 2018 06:58:44 +0000 (08:58 +0200)]
tools/expat: Update to 2.2.6

Update (lib)expat to 2.2.6

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from 3e734e822b5167110979d60d6cc7da8ca01cdf09)

5 years agotools/e2fsprogs: Update to 1.44.4
Daniel Engberg [Wed, 29 Aug 2018 07:01:54 +0000 (09:01 +0200)]
tools/e2fsprogs: Update to 1.44.4

Update e2fsprogs to 1.44.4

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from c6a0d57ca98cf61241d386971dd12d6e57671a2d)

5 years agokernel: add driver for virtual mtd_concat devices
Bernhard Frauendienst [Sat, 25 Aug 2018 10:48:54 +0000 (12:48 +0200)]
kernel: add driver for virtual mtd_concat devices

Some systems require multiple flash chips to be concatenated and read as
a single mtd device. The ar71xx target provides custom code to create
such mtdconcat devices. When porting devices to ath79, however, there is
no way to create such devices from within the device tree.

This commit adds a driver for creating virtual mtd-concat devices to the
ath79 target. Nodes must have a compatible = "virtual,mtd-concat" line,
and define a list of devices to concat in the 'devices' property,
for example:

flash {
compatible = "virtual,mtd-concat";

devices = <&flash0 &flash1>;
};

The driver is added to the very end of the mtd Makefile to increase the
likelyhood of all child devices already being loaded at the time of
probing, preventing unnecessary deferred probes which might in turn
cause other problems (like failure to load MAC addresses from art because
the partitions are not loaded yet).

Signed-off-by: Bernhard Frauendienst <openwrt@nospam.obeliks.de>
(backported from 3370e104954191eeab97df7cd07146d7c48e180d)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agofirmware-utils: mkedimaximg: add "big-endianness mode" option
INAGAKI Hiroshi [Mon, 10 Sep 2018 07:29:39 +0000 (09:29 +0200)]
firmware-utils: mkedimaximg: add "big-endianness mode" option

In addition to the default little-endianness format, I added a mode
so that we can generate firmware with big-endianness format.

example: ELECOM WRC-300GHBK2-I (QCA9563)

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(backported from 7a67b437e7f72f765fb5affe686f308cb42a09e7)

5 years agokernel: backport i2c-gpio working over slow can_sleep GPIOs
Martin Schiller [Wed, 29 Aug 2018 13:06:21 +0000 (15:06 +0200)]
kernel: backport i2c-gpio working over slow can_sleep GPIOs

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
(backported from 628eb271dc5868d3c5bd6a643c213783cce4fd0a)

5 years agokernel: backport rtc ds1308 support to 4.9
Martin Schiller [Wed, 29 Aug 2018 09:13:42 +0000 (11:13 +0200)]
kernel: backport rtc ds1308 support to 4.9

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
(backported from bc24f0ad2b3cc7ca7b74ecef8051c1bbff9d4277)

5 years agolibpcap: patch to add limits.h to pcap-usb-linux.c
Eneas U de Queiroz [Wed, 1 Aug 2018 12:49:35 +0000 (12:49 +0000)]
libpcap: patch to add limits.h to pcap-usb-linux.c

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
This is an upstream-applied patch that fixes 'PATH_MAX' and 'NAME_MAX'
undeclared when compiling on musl with CONFIG_PCAP_HAS_USB.

[aafa351] pcap-usb-linux.c: add missing limits.h for musl systems.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
(backported from 0317fc3658eb55596c72647f2e6c68bf06bf36ff)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomvebu: Replace RTC initialization patch with upstreamed version
Rosen Penev [Sun, 9 Sep 2018 04:23:57 +0000 (21:23 -0700)]
mvebu: Replace RTC initialization patch with upstreamed version

While we're at it, rename the patches to their proper git format-patch
name.

Tested on a Turris Omnia.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 6a2ee91267a09fd77dee70cf3b0ba8b9b905476f)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agozynq: enable kernel overlay and f2fs support
Luis Araneda [Tue, 4 Sep 2018 01:40:01 +0000 (22:40 -0300)]
zynq: enable kernel overlay and f2fs support

Select configs to enable build-in F2FS support
and use the overlayfs provided by generic config

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from d6501467e7aac5b7b0831363753da4a86f33f182)

5 years agozynq: remove bootargs from kernel config
Luis Araneda [Tue, 4 Sep 2018 01:40:00 +0000 (22:40 -0300)]
zynq: remove bootargs from kernel config

Use options from generic instead of target-specific,
as the bootargs are now passed by the bootloader
and can be device-specific

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from 1ee929460951407068e421b306733c4be3c6b9e4)

5 years agouboot-zynq: use a file to modify the default environment
Luis Araneda [Tue, 4 Sep 2018 01:39:59 +0000 (22:39 -0300)]
uboot-zynq: use a file to modify the default environment

Follow the strategy of other targets and create a
default environment file, uEnv.txt, to configure the
behavior of U-Boot.
For now, use it to pass bootargs to the kernel

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from e2a4d14aaa562262dc27963a9f523aa18202cb56)

5 years agouboot-zynq: copy U-Boot images to STAGING_DIR
Luis Araneda [Tue, 4 Sep 2018 01:39:58 +0000 (22:39 -0300)]
uboot-zynq: copy U-Boot images to STAGING_DIR

Create a directory inside STAGING_DIR and copy U-Boot
output images, so they can be used later when creating the
sdcard image

Additionally, like others targets, override the default
install method to avoid copying the images to bin directory

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from 306a60fcfed2481498a05b9e016cba4abcfd1343)

5 years agouboot-zynq: automatically select the appropriate variant
Luis Araneda [Tue, 4 Sep 2018 01:39:57 +0000 (22:39 -0300)]
uboot-zynq: automatically select the appropriate variant

Select the U-Boot variant automatically based on the
current selected device, and hide the package from
menuconfig

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from e62df3dd8b5efcbddf278c12f5d85faf4ac38e22)

5 years agouboot-zynq: remove ZC706 board
Luis Araneda [Tue, 4 Sep 2018 01:39:56 +0000 (22:39 -0300)]
uboot-zynq: remove ZC706 board

The board was added when creating the target, but the
corresponding device was never defined inside the target

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from 5d2b702590628518bc760662e73b0b8cc45a63da)

5 years agotools/cmake: Update to 3.12.2
Daniel Engberg [Sun, 9 Sep 2018 11:17:28 +0000 (13:17 +0200)]
tools/cmake: Update to 3.12.2

Update CMake to 3.12.2

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from 791a3a22ad86def9a7a71168a596a0a920fe3eeb)

5 years agocurl: Update to 7.61.1
Daniel Engberg [Sun, 9 Sep 2018 11:21:00 +0000 (13:21 +0200)]
curl: Update to 7.61.1

Update curl to 7.61.1

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from 9cfa5f2cecc4bafbb95c2b5d11d81c6a0ea5bb4e)

5 years agoodhcp6c: add client fqdn and reconfigure options
pacien [Thu, 6 Sep 2018 13:56:17 +0000 (15:56 +0200)]
odhcp6c: add client fqdn and reconfigure options

Allowing DHCPV6_CLIENT_FQDN and DHCPV6_ACCEPT_RECONFIGURE to be turned off.
Defaulting to false, former behavior remains unchanged.

Signed-off-by: pacien <pacien.trangirard@pacien.net>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
(backported from ef01c1d308d1cb200fc14ab49f0d3d0a07e1a9fe)

5 years agoar71xx: fix switch probing on kernel 4.14
Koen Vandeputte [Thu, 30 Aug 2018 17:09:46 +0000 (19:09 +0200)]
ar71xx: fix switch probing on kernel 4.14

The bump to 4.14 changed the way mdio probes behind switches.

While the board_info is added to the list, the code that actually inserted
the list info into the phydev structure was missing.

This resulted in non-working ethernet ports.

Re-add it to fix switch probing.
This mimics the exact behaviour as it was in kernel 4.9.

Before:

[    1.066007] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.073409] Atheros AR8216/AR8236/AR8316: probe of ag71xx-mdio.0:00 failed with error -22
[    1.102455] libphy: ag71xx_mdio: probed
[    1.737938] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Generic PHY]
[    1.747994] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    2.377642] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.429938] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

After:

[   11.163357] libphy: Fixed MDIO Bus: probed
[   11.319898] libphy: ag71xx_mdio: probed
[   11.360844] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[   12.447398] libphy: ag71xx_mdio: probed
[   13.077402] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[   13.088989] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[   13.717716] ag71xx-mdio.1: Found an AR934X built-in switch
[   13.769990] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 42f158314e011293ffdaeab5870b19110f4e2e9d)

5 years agogdb: bump to 8.2
Koen Vandeputte [Thu, 6 Sep 2018 12:44:17 +0000 (14:44 +0200)]
gdb: bump to 8.2

*** Changes in GDB 8.2

 Support for the following target has been added:

    RiscV ELF (riscv*-*-elf)

 Support for following targets and native configurations has been removed:

    m88k running OpenBSD (m88*-*-openbsd*)
    SH-5/SH64 ELF (sh64-*-elf*)
    SH-5/SH64 (sh*)
    SH-5/SH64 running GNU/Linux (sh*-*-linux*)
    SH-5/SH64 running OpenBSD (sh*-*-openbsd*)

 Various Python API enhancements
 Aarch64/Linux enhancements:

    SVE support.
    Hardware watchpoints improvements for entities stored at unaligned addresses.
        New "c" response to disable the pager for the rest of the current command.
        C expressions can now use _Alignof, and C++ expressions can now use alignof.
        Improved flexibility for loading symbol files.
        The 'info proc' command nows works on running processes on FreeBSD systems as well as core files created on FreeBSD systems.
        A new --enable-codesign=CERT configure option to automatically codesign GDB after build (useful on MacOS X).

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 22535240238b6bcc93bdc356856be36a02aec054)

5 years agotoolchain/gdb: bump to 8.2
Koen Vandeputte [Thu, 6 Sep 2018 12:43:56 +0000 (14:43 +0200)]
toolchain/gdb: bump to 8.2

*** Changes in GDB 8.2

 Support for the following target has been added:

    RiscV ELF (riscv*-*-elf)

 Support for following targets and native configurations has been removed:

    m88k running OpenBSD (m88*-*-openbsd*)
    SH-5/SH64 ELF (sh64-*-elf*)
    SH-5/SH64 (sh*)
    SH-5/SH64 running GNU/Linux (sh*-*-linux*)
    SH-5/SH64 running OpenBSD (sh*-*-openbsd*)

 Various Python API enhancements
 Aarch64/Linux enhancements:

    SVE support.
    Hardware watchpoints improvements for entities stored at unaligned addresses.
        New "c" response to disable the pager for the rest of the current command.
        C expressions can now use _Alignof, and C++ expressions can now use alignof.
        Improved flexibility for loading symbol files.
        The 'info proc' command nows works on running processes on FreeBSD systems as well as core files created on FreeBSD systems.
        A new --enable-codesign=CERT configure option to automatically codesign GDB after build (useful on MacOS X).

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from c24d02d15421bfe67f0fedee3a30259567478e5a)

5 years agoramips: add support for TP-Link TL-MR3020 v3
Carlo Nel [Sun, 26 Aug 2018 19:11:59 +0000 (21:11 +0200)]
ramips: add support for TP-Link TL-MR3020 v3

TP-Link TL-MR3020 v3 is a pocket-size router based on MediaTek MT7628N.

This PR is based on the work of @meyergru[1], with his permission.

Specification:
- MediaTek MT7628N/N (575 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz
- 1x 10/100 Mbps Ethernet

Flash instruction:

The only way to flash the image in TL-MR3020 v3 is to use
tftp recovery mode in U-Boot:

1. Configure PC with static IP 192.168.0.225/24 and tftp server.
2. Rename "openwrt-ramips-mt76x8-tplink_tl-mr3020-v3-squashfs-tftp-recovery.bin"
   to "tp_recovery.bin" and place it in tftp server directory.
3. Connect PC with the LAN port, press the reset button, power up
   the router and keep button pressed for around 6-7 seconds, until
   device starts downloading the file.
4. Router will download file from server, write it to flash and reboot.

[1] https://github.com/meyergru/lede-source/commits/TL-MR3020-V3

Signed-off-by: Carlo Nel <carlojnel@gmail.com>
(backported from 6bbb2202551be394fead2efd99eb946f846fc63d)

5 years agoramips: drop obsolete sd card driver code
Mathias Kresin [Thu, 30 Aug 2018 17:16:53 +0000 (19:16 +0200)]
ramips: drop obsolete sd card driver code

The pinmux for all SoCs using this driver is now set via the pinmux. It
makes this code obsolete.

Some of the code targeting the mt76x8 SoCs is still required. The sd
card pins share the pads with the EPHY. These pads need to be switched
to digital mode if the pins are used for sd cards.

The eMMC 8-bit mode has to be enabled via pinmux instead of a kernel
option. The uart2 group need to be set to function "sdxc d5 d4", pwm1
to "sdxc d6" and pwm0 to "sdxc d7" to do so. It can't be done by as
part of a default pinmux, as it would break the normal operation of
uart2.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 287b7aa583584262a68fcebc3786779b2ab14307)

5 years agoramips: add mt7620/1 sdhci pinmux
Mathias Kresin [Thu, 30 Aug 2018 17:13:20 +0000 (19:13 +0200)]
ramips: add mt7620/1 sdhci pinmux

Set the pins to the required mode via the pinmux driver. It allows to
get rid of the pinmux related code in the sd card driver.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 563a5b5f94b2fb36dce36f39bf6515e5bbb31245)

5 years agoramips: fix mt7620a ND/SD pins pinmuxes
Mathias Kresin [Fri, 31 Aug 2018 05:53:42 +0000 (07:53 +0200)]
ramips: fix mt7620a ND/SD pins pinmuxes

Drop the nd_sd gpio pinmux in case sdcard is used. They're mutually
exclusive and for most of the boards not even used as GPIOs.

If the pins are in sdcard mode, the pins ND_WE_N and ND_CS_N are still
GPIOs (#45 and #46).

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from a14097e8e0eef8f7ee5e1e773defee83366a10a4)

5 years agoramips: reference node by label
Mathias Kresin [Fri, 31 Aug 2018 07:01:34 +0000 (09:01 +0200)]
ramips: reference node by label

Reference the HC5661A sdhci node by label instead of by the full path.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 2cc7980dcb5261561de32b719ada919ca3882faa)

5 years agoramips: add rt3352 SPI_CS1 pinmux
Mathias Kresin [Wed, 22 Aug 2018 06:02:20 +0000 (08:02 +0200)]
ramips: add rt3352 SPI_CS1 pinmux

The rt3352 has a pin that can be used as second spi chip select,
watchdog reset or GPIO. The pinmux setup was missing the definition of
said pin but it is already used in the SoC dtsi.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 1d08951628ace1d3c3d2bced6aea582e5ca3fe79)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoimx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi
Felix Fietkau [Wed, 5 Sep 2018 07:56:52 +0000 (09:56 +0200)]
imx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi

Fixes build with the default profile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 36c6ba3735f06f435af66175ace0dd192601ac85)

5 years agoimx6: rename Generic profile to Default, fixes u-boot image build issue
Felix Fietkau [Wed, 5 Sep 2018 07:52:57 +0000 (09:52 +0200)]
imx6: rename Generic profile to Default, fixes u-boot image build issue

u-boot.mk checks for the Default profile to build images for all targets.
This brings the target default profile in sync with other targets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from b9f926e15146bcb3688d66562fd0f1a3e79ca747)

5 years agoimx6: extend cubox support to hummingboard, add support for building full images
Felix Fietkau [Sun, 26 Aug 2018 18:04:08 +0000 (20:04 +0200)]
imx6: extend cubox support to hummingboard, add support for building full images

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from ded905ce431bfdb4809124e0f0a587013f980b07)

5 years agoimx6: enable f2fs and loopback support in preparation for squashfs with overlay support
Felix Fietkau [Sun, 26 Aug 2018 18:03:00 +0000 (20:03 +0200)]
imx6: enable f2fs and loopback support in preparation for squashfs with overlay support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 8c41f1f81cde0712e90019c868f89192fdddf5bb)

5 years agouboot-imx6: fall back to MMC for SPL if boot mode is invalid
Felix Fietkau [Sun, 26 Aug 2018 17:34:41 +0000 (19:34 +0200)]
uboot-imx6: fall back to MMC for SPL if boot mode is invalid

Fixes boot on Hummingboard

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 7165378d19a8a76b3182b95681af61d2bc93a74c)

5 years agouboot-imx6: remove obsolete patch
Felix Fietkau [Sun, 26 Aug 2018 17:34:17 +0000 (19:34 +0200)]
uboot-imx6: remove obsolete patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from aa3efca8d92f3a81e90006983304ee48a1184551)

5 years agouboot-imx6: install images into STAGING_DIR_IMAGE
Felix Fietkau [Sun, 26 Aug 2018 11:47:23 +0000 (13:47 +0200)]
uboot-imx6: install images into STAGING_DIR_IMAGE

Will be used by a new combined image for cubox

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from eab7bcc8e1e321ecd43ec4af69207e7f53c53837)

5 years agoramips: ethernet: unify tx descriptor buffer splitting
Felix Fietkau [Sun, 22 Jul 2018 11:07:29 +0000 (13:07 +0200)]
ramips: ethernet: unify tx descriptor buffer splitting

A buffer is split into multiple descriptors if it exceeds 16 KB.
Apply the same split for the skb head as well (to deal with corner cases
on fraglist support)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from b605a84a74170d2a07f53512cd57cd564db77249)

5 years agonghttp2: bump to 1.33.0
Hans Dedecker [Mon, 3 Sep 2018 08:29:56 +0000 (10:29 +0200)]
nghttp2: bump to 1.33.0

9d843334 Update bash_completion
23cb3f38 Update manual pages
1d682dcd Bump up version number to 1.33.0, LT revision to 31:0:17
601fbbb4 Update doc
f44aa246 Update AUTHORS
dd74a6dd Update manual pages
e959e733 src: Refactor utos
fb9a204d nghttpx: Fix compile error without mruby
cd096802 Update doc
7417fd71 nghttpx: Per-pattern not per-backend
2d1a981c Merge branch 'akonskarm-master'
45acc922 clang-format
214d0899 Merge branch 'master' of https://github.com/akonskarm/nghttp2 into akonskarm-master
31fd707d nghttpx: Fix broken healthmon frontend
9a2e38e0 fix code for reuse addr on asio client
d24527e7 Bump up LT revision due to v1.32.1 release
6195d747 nghttpx: Share mruby context if it is compiled from same file
fb97f596 nghttpx: Allocate mruby file because fopen requires NULL terminated string
0ccc7a77 nghttpx: Move blocked request data to request buffer for API request
32826466 nghttpx: Fix crash with API request
0422f8a8 nghttpx: Fix worker process crash with neverbleed write error
e329479a Merge pull request #1215 from nghttp2/mruby-per-backend
f80a7873 Merge branch 'akonskarm-reuse_addr'
866ac6ab add option reuse addr in local endpoint configuration of asio client
b574ae6a nghttpx: Support per-backend mruby script
de4fd7cd doc: Update doc
32d7883c nghttpx: Downstream::request_buf_full: take into account blocked_request_buf_
9b24e197 nghttpx: Choose h1 protocol if headers have been sent to backend on retry
13ffece1 Merge pull request #1214 from nghttp2/fix-rst-without-dconn
9d5b781d Fix stream reset if data from client is arrived before dconn is attached

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(backported from 17c9b72046d79a8696b23a91df5c7571a2c12490)

5 years agoiproute2: update cake man page
Kevin Darbyshire-Bryant [Mon, 27 Aug 2018 08:52:55 +0000 (15:52 +0700)]
iproute2: update cake man page

CAKE supports overriding of its internal classification of
packets through the tc filter mechanism.

Update the man page in our package, even though we don't
build them.  Someone may find the documentation useful.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit 30598a05385b0ac2380dd4f30037a9f9d0318cf2)
(backported from dc9388ac5506f2d0ea0fee6967c003b9129c8ca5)

5 years agoRevert "ramips: mmc: Fix init for MT7628AN"
Jo-Philipp Wich [Thu, 30 Aug 2018 11:19:18 +0000 (13:19 +0200)]
Revert "ramips: mmc: Fix init for MT7628AN"

This reverts commit 3a8efaef00d6b7317c46fe6b7e923912d8bf3500.

The change reportedly breaks UART2 on some boards. Furthermore it uses
bitwise logic on an uninitialized variable and fails to explain what it
is fixing exactly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from 4302c917cc4dc244c007c6c1902b8e138a74ed0e)

5 years agoramips: fix rt3883 pinmux for second SPI
Mathias Kresin [Wed, 22 Aug 2018 05:40:17 +0000 (07:40 +0200)]
ramips: fix rt3883 pinmux for second SPI

The rt3883 doesn't have a pinmux group named spi_cs1. The cs1 is part
of the pci group. The function pci-func enables the second chip select.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from a6e11ccb136fd87efd2757a2959b8d9510534501)

5 years agoramips: fix rt3883 pci pinmux
Mathias Kresin [Wed, 22 Aug 2018 05:26:39 +0000 (07:26 +0200)]
ramips: fix rt3883 pci pinmux

The PCI pins need to be set to "PCI Host support one device" to allow
the use of one PCI device and flash memory.

The pci-fnc function is intended to be used if no PCI is used but
flash, nand or the codec functionality is.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from dcdc6d9dadf2f97253f7891dacdd5b581d7914b4)

5 years agoramips: drop pointless default led definitions
Mathias Kresin [Sat, 18 Aug 2018 10:07:08 +0000 (12:07 +0200)]
ramips: drop pointless default led definitions

The LEDs should be triggered/lit by any kind of state change instead of
turned on/off unconditional.

If LEDs really need to be turned off by default, it should be done via
the default-state devicetree led property.

The handling of the wndr3700v5 and wt3020 power led is at least
strange. Something is for sure wrong with them. Either the leds are
misnamed, the default off trigger is a typo or the polarity of the
gpios is wrong. Drop the power led from userspace and wait for someone
with access to the hardware to fix it properly.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from c134210b8f7e18b43641b6c2176e7a3e6baed030)

5 years agoramips: add missing zbt-cpe102 diag led
Mathias Kresin [Sat, 18 Aug 2018 09:42:50 +0000 (11:42 +0200)]
ramips: add missing zbt-cpe102 diag led

Based on the userspace led configuration it's quite obvious that the
4g-0 led should be used for boot status indication.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 43df31f64dfc68374093142cd51808655d6e8d50)

5 years agoramips: express diag led handling via devicetree
Mathias Kresin [Sat, 18 Aug 2018 09:38:13 +0000 (11:38 +0200)]
ramips: express diag led handling via devicetree

Use the default-state property to express the desired led handling in
the devicetree source file instead of the userspace.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 99045dfc5989e732f671de5d145532f0fe8c0ce1)

5 years agoramips: remove default on userspace trigger for diag leds
Mathias Kresin [Sat, 18 Aug 2018 09:09:29 +0000 (11:09 +0200)]
ramips: remove default on userspace trigger for diag leds

All the LEDs are turned on by diag.sh at the end of the boot process.
No need to do the same via userspace configuration again.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 111907e8d319eb05e7a5ef7a0cc6ec55cb069242)

5 years agoramips: fix multi colour led handling
Mathias Kresin [Sat, 18 Aug 2018 10:22:25 +0000 (12:22 +0200)]
ramips: fix multi colour led handling

All boards either have a multi colour led or a single lightpipe. It
makes it impossible to handle the LEDs individual. Change the LED
config for these boards to take it into account.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 56e6ebdea42aab76d6ef54e0296c6bf946956684)

5 years agoramips: rt-n12p: use the boardname helper variable
Mathias Kresin [Wed, 29 Aug 2018 06:59:46 +0000 (08:59 +0200)]
ramips: rt-n12p: use the boardname helper variable

Use the helper variable for the Asus RT-N12P as it is done by all
boards.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from fe1e90deb4cacbac4841507b9bf2a85eb275a823)

5 years agomediatek: remove duplicate RPS patch
Koen Vandeputte [Tue, 28 Aug 2018 11:28:45 +0000 (13:28 +0200)]
mediatek: remove duplicate RPS patch

Commit 7af1fb9faafb ("kernel: add a RPS balancer") introduces a RPS balancer
for all targets.

In the past however, this patch was already introduced for target "mediatek"
in commit 7762c07c8898 ("mediatek: bump to v4.14")

Remove the separate copy of the patch within the mediatek target,
which otherwise is applied twice and results in a build error.

Fixes: 7af1fb9faafb ("kernel: add a RPS balancer")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 23366b6dc6bb81c9c0e0bd7c91832a5bf0e5dbc2)

5 years agogeneric: add flow_offload accounting
John Crispin [Mon, 13 Aug 2018 15:00:14 +0000 (17:00 +0200)]
generic: add flow_offload accounting

This patch makes the flow offloading layer account for the traffic inside
the conntack entries.

Signed-off-by: John Crispin <john@phrozen.org>
(backported from 1d4d156a7ce67988f922c470f622f6dd2a5c161b)

5 years agokernel: add a RPS balancer
John Crispin [Mon, 13 Aug 2018 14:24:17 +0000 (16:24 +0200)]
kernel: add a RPS balancer

By default the RPS delegation will happen by masking the last few bits of
skb->hash. This patch adds an inermediate hash bucket that maps the masked
hash to a RPS core. This makes RPS results much more deterministic on SMP
systems.

Signed-off-by: John Crispin <john@phrozen.org>
(backported from 7af1fb9faafbc842fc727c49108f5fc4edc08601)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agobuild: add mkrasimage
David Bauer [Wed, 22 Aug 2018 15:30:44 +0000 (17:30 +0200)]
build: add mkrasimage

The current make-ras.sh image generation script for the ZyXEL NBG6617
has portability issues with bash. Because of this, factory images are
currently not built correctly by the OpenWRT buildbots.

This commit replaces the make-ras.sh by C-written mkrasimage.

The new mkrasimage is also compatible with other ZyXEL devices using
the ras image-format.
This is not tested with the NBG6616 but it correctly builds the
header for ZyXEL factory image.

Signed-off-by: David Bauer <mail@david-bauer.net>
(backported from 8e9a59a6b924469c0061d4bd945ae0c6dbfdecfe)

5 years agostrace: update strace to version 4.24
Hauke Mehrtens [Sat, 25 Aug 2018 12:32:08 +0000 (14:32 +0200)]
strace: update strace to version 4.24

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from af6e901ae8449bba62697ef676c651b2e0bfea01)

5 years agoramips: fix mt7620 pinmux for second SPI
Mathias Kresin [Wed, 22 Aug 2018 05:30:36 +0000 (07:30 +0200)]
ramips: fix mt7620 pinmux for second SPI

The mt7620 doesn't have a pinmux group named spi_cs1. The cs1 is part
of the "spi refclk" group. The function "spi refclk" enables the second
chip select.

On reset, the pins of the "spi refclk" group are used as reference
clock and GPIO.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 3601c3de23f15e2735adc4becdca14c803b6b1a5)

5 years agolinux-firmware: realtek: Add FW for rtl8192eu, rtl8723au and rtl8723bu
Hauke Mehrtens [Mon, 27 Aug 2018 16:10:14 +0000 (18:10 +0200)]
linux-firmware: realtek: Add FW for rtl8192eu, rtl8723au and rtl8723bu

These devices are more or less supported by the kmod-rtl8xxxu driver.

Fixes: FS#1789
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from a2488f3a243b60ac05b3a3ae492145d564fc6f6e)

5 years agonghttp2: bump to 1.32.1
Hans Dedecker [Mon, 27 Aug 2018 08:02:10 +0000 (10:02 +0200)]
nghttp2: bump to 1.32.1

4c76aaee Update manual pages
2b51ad67 Bump up version number to 1.32.1, LT revision to 30:3:16
708379dc Tweak nghttp2_session_set_stream_user_data
73106b0d Compile with clang-6.0

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(backported from 6caa8e09aa72de45b632666ddb914aceca8ac831)

5 years agoath10k-firmware: update both QCA988X CT variants
Stijn Tintel [Sun, 26 Aug 2018 15:57:42 +0000 (17:57 +0200)]
ath10k-firmware: update both QCA988X CT variants

This fixes slow performance with 802.11w enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(backported from 2c01425d2de01f087a90ee6b4499b0b68f7a6964)

5 years agoath10k-ct: bump to git HEAD
Stijn Tintel [Thu, 23 Aug 2018 13:46:23 +0000 (16:46 +0300)]
ath10k-ct: bump to git HEAD

e0d2ce0 ath10k:  Support setting tx_antenna in descriptor field.
29c644f Update to latest 4.13 and 4.16 ath10k-ct drivers.
20db9db ath10k:  Support vdev stats for 4.9, 4.16  kernel
fd92066 ath10k:  Support 'ct-sta-mode' for 9984 firmware that supports it.
34954f0 ath10k:  get_tsf, PMF

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(backported from 616b9729207b0b10985b591d6c47a4b1ffdd225e)

5 years agoiproute2: update to 4.18.0
Hans Dedecker [Thu, 23 Aug 2018 19:58:14 +0000 (21:58 +0200)]
iproute2: update to 4.18.0

Update to the latest version of iproute2; see https://lwn.net/Articles/762515/
for a full overview of the changes in 4.18.
Remove upstream patch 001-rdma-sync-some-IP-headers-with-glibc

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(backported from 8fd8e791437a94a486409ab7141ebbba9a82abf8)

5 years agoath9k: fix setting up tx99 with a monitor mode interface
Felix Fietkau [Mon, 20 Aug 2018 09:40:48 +0000 (11:40 +0200)]
ath9k: fix setting up tx99 with a monitor mode interface

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from d9792152fdc7f18229274b82b5d8664d22b36d2c)

5 years agokernel: make mtd mac address increment more flexible
Felix Fietkau [Mon, 20 Aug 2018 09:10:27 +0000 (11:10 +0200)]
kernel: make mtd mac address increment more flexible

Allow selecting the byte on which the increment should be added.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from a1f4ebcc874f8414ef551d653363eb0ef95d553c)

5 years agoimx6: Initial support for SolidRun CuBox-i devices based on i.MX6 processors (i1...
Vladimir Vid [Mon, 9 Jul 2018 09:09:53 +0000 (11:09 +0200)]
imx6: Initial support for SolidRun CuBox-i devices based on i.MX6 processors (i1, i2, i2eX, and i4Pro).

- Specifications -

CuBox i1:
- SoC: i.MX6 Solo
- Cores: 1
- Memory Size: 512MB
- GPU: GC880
- Wifi/Bluetooth: Optional
- USB 2.0 ports: 2
- Ethernet: 10/100/1000 Mbps

CuBox i2 | i2eX:
- SoC: i.MX6 Dual Lite
- Cores: 2
- Memory Size: 1GB
- GPU: GC2000
- Wifi/Bluetooth: Optional
- USB 2.0 ports: 2
- Ethernet: 10/100/1000 Mbps

CuBox i4Pro | i4x4:
- SoC: i.MX6 Quad
- Cores: 4
- Memory Size: 2/4 GB
- GPU: GC2000
- Wifi/Bluetooth: Build In
- USB 2.0 ports: 2
- Ethernet: 10/100/1000 Mbps

Built-in u-boot requires SPL (secondary program loader) to be present on the SD-card regardless of the image type which will be loaded.
SPL is generated by the u-boot-mx6cuboxi package which is preselected by the target device and can be found in bin/u-boot-mx6cuboxi directory.

Flashing the SPL:
dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=4
dd if=bin/targets/imx6/generic/u-boot-mx6cuboxi/SPL of=/dev/mmcblk0 bs=1K seek=1

Preparing the firmware on the SD-card:
(echo o; echo n; echo p; echo 1; echo ''; echo ''; echo w) | fdisk /dev/mmcblk0
mkfs.ext4 /dev/mmcblk0p1
mount /dev/mmcblk0p1 /mnt
tar -xzf bin/targets/imx6/generic/openwrt-imx6-device-cubox-i-rootfs.tar.gz -C /mnt/
mkdir -p /mnt/boot
cp bin/targets/imx6/generic/{*-uImage,*.dtb,*.scr} /mnt/boot/

Generated u-boot.img needs to be placed on the first partition:
cp bin/targets/imx6/generic/u-boot-mx6cuboxi/u-boot.img /mnt/

To boot from the SD card:

Boot script which sets mmc/dtb parameters and boots the board is automatically sourced.
If this does not work for any reason:
mmc dev 0; load mmc 0:1 $scriptaddr boot/boot.scr; source $scriptaddr

Currently imx6dl-cubox-i.dtb (Dual Lite) and imx6q-cubox-i.dtb (Quad) device trees are available.

Tested on i4Pro, MMC, USB (+ HiD), HDMI and ethernet ports are working.
Wireless and bluetooth are broken ATM. According to SolidRun forums, BCM4329/BCM4330 firmware is used which works fine on older kernels.

Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
(backported from 6cda4f68619ec139be7897ea61b7f22c72c38b59)

5 years agouboot-zynq: add support for the zybo z7 board
Luis Araneda [Fri, 24 Aug 2018 03:40:25 +0000 (00:40 -0300)]
uboot-zynq: add support for the zybo z7 board

Backport board support from the upcoming v2018.09 release,
and add an additional patch to read the MAC address
from flash memory

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
(backported from 43dedd0661e3f83405c71b80e1f8d4b4a1e7ac00)

5 years agolibevent2: Switch to using release tarball
Rosen Penev [Fri, 17 Aug 2018 20:31:48 +0000 (13:31 -0700)]
libevent2: Switch to using release tarball

Starting with version 2.1.8, a release tarball is available.

Simplifies the Makefile slightly.

Updated the project URL. HTTPS is broken. Issue has been reported upstream

Adjusted patches. CMake support is not present in the tarball. It's made
for Windows anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 3ccc2ebe01c179cb48b04e812ff15d16fdaf711b)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoramips: fix RBM11G partitioning
Thibaut VARÈNE [Sat, 4 Aug 2018 13:44:26 +0000 (15:44 +0200)]
ramips: fix RBM11G partitioning

This patch improves faf64056ddd46992a75b1e277d94541c7251035c by correcting
the partition scheme for the "RouterBoot" section of the flash.

The partition scheme initially submitted is incorrect and does not reflect
the actual flash structure.

The "RouterBoot" section (name matching OEM) is subdivided in several
static segments, as they are on ar71xx RB devices albeit with different
offsets and sizes.
The naming convention from ar71xx has been preserved, except for the
bootloaders which are named "bootloader1" and "bootloader2" to avoid
confusion with the master "RouterBoot" partition.
The preferred 'fixed-partitions' DTS node syntax is used, with nesting
support as introduced in 2a598bbaa3.
"partition" is used for node names, with associated "label" to match
policy set by 6dd94c2781.

Leave a note in DTS to explain how the original author selected the SPI speed.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
(backported from bbe2cf657ca72119288a441ca3337a503aa17f80)

5 years agoramips: fix RBM33G partitioning
Thibaut VARÈNE [Sat, 4 Aug 2018 13:44:25 +0000 (15:44 +0200)]
ramips: fix RBM33G partitioning

This patch improves 5684d087418d176cfdef4e045e1950ca7ba3b09f by correcting
the partition scheme for the "RouterBoot" section of the flash.

The partition scheme initially submitted is incorrect and does not reflect
the actual flash structure.

The "RouterBoot" section (name matching OEM) is subdivided in several
static segments, as they are on ar71xx RB devices albeit with different
offsets and sizes.
The naming convention from ar71xx has been preserved, except for the
bootloaders which are named "bootloader1" and "bootloader2" to avoid
confusion with the master "RouterBoot" partition.
The preferred 'fixed-partitions' DTS node syntax is used, with nesting
support as introduced in 2a598bbaa3.
"partition" is used for node names, with associated "label" to match
policy set by 6dd94c2781.

The OEM source code also define a "RouterBootFake" partition at the
beginning of the secondary flash chip: to avoid trouble if OEM ever makes
use of that space, it is also defined here.

The resulting partition scheme looks like this:
[   10.114241] m25p80 spi0.0: w25x40 (512 Kbytes)
[   10.118708] 1 fixed-partitions partitions found on MTD device spi0.0
[   10.125049] Creating 1 MTD partitions on "spi0.0":
[   10.129824] 0x000000000000-0x000000040000 : "RouterBoot"
[   10.136215] 5 fixed-partitions partitions found on MTD device RouterBoot
[   10.142894] Creating 5 MTD partitions on "RouterBoot":
[   10.148032] 0x000000000000-0x00000000f000 : "bootloader1"
[   10.154336] 0x00000000f000-0x000000010000 : "hard_config"
[   10.160665] 0x000000010000-0x00000001f000 : "bootloader2"
[   10.167046] 0x000000020000-0x000000021000 : "soft_config"
[   10.173461] 0x000000030000-0x000000031000 : "bios"
[   10.190191] m25p80 spi0.1: w25q128 (16384 Kbytes)
[   10.194950] 2 fixed-partitions partitions found on MTD device spi0.1
[   10.201271] Creating 2 MTD partitions on "spi0.1":
[   10.206071] 0x000000000000-0x000000040000 : "RouterBootFake"
[   10.212746] 0x000000040000-0x000001000000 : "firmware"
[   10.307216] 2 minor-fw partitions found on MTD device firmware
[   10.313044] 0x000000040000-0x000000220000 : "kernel"
[   10.319002] 0x000000220000-0x000001000000 : "rootfs"
[   10.324906] mtd: device 9 (rootfs) set to be root filesystem
[   10.330678] 1 squashfs-split partitions found on MTD device rootfs
[   10.336886] 0x000000b40000-0x000001000000 : "rootfs_data"

Leave a note in DTS to explain how the original author selected the SPI speed.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
[rmilecki: dropped "RouterBootFake" partition]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(backported from b90cad2c2e61720b72a9cdd6317474cabc4962ec)

5 years agoar71xx: fix typo in rb91x nand source
Koen Vandeputte [Fri, 24 Aug 2018 07:10:29 +0000 (09:10 +0200)]
ar71xx: fix typo in rb91x nand source

Fixes: 3b1ea0996f83 ("ar71xx: fix build error due to bad include")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 6100655c8ce29cd789da8e03b184da2ddb1008f5)

5 years agoramips: add support for ELECOM WRC-1900GST
NOGUCHI Hiroshi [Sat, 18 Aug 2018 23:05:15 +0000 (08:05 +0900)]
ramips: add support for ELECOM WRC-1900GST

ELECOM WRC-1900GST is a wireless router, based on Mediatek MT7621A.
This is almost same as WRC-2533GST except wireless specs.

Specifications:

  - SoC : MT7621A (four logical CPU cores)
  - RAM : 128MiB
  - ROM : 16MiB of SPI NOR-FLASH
  - wireless :
          5GHz : 3T3R up to 1300Mbps/11ac with MT7615
          2.4GHz : 3T3R up to 600Mbps/11n with MT7615
  - Ethernet : 5 ports, all ports is capable of 1000base-T
  - Ether switch : MT7530 (MT7621A built-in)
  - LEDs : 4 LEDs
  - buttons : 2 buttons and 1 slide-switch
  - UART : header is on PCB, 57600bps

Flash instruction using factory image:

 1. Connect the computer to the LAN port of WRC-1900GST
 2. Connect power cable to WRC-1900GST and turn on it
 3. Access to "https://192.168.2.1/" and open firmware update
    page ("ファームウェア更新")
 4. Select the OpenWrt factory image and click apply ("適用")
    button
 5. Wait ~150 seconds to complete flashing

Signed-off-by: NOGUCHI Hiroshi <drvlabo@gmail.com>
(backported from ad10e71becfb36d36c81c5b0e898c4ea7912d778)

5 years agoar71xx: fix build error due to bad include
Koen Vandeputte [Wed, 22 Aug 2018 11:00:22 +0000 (13:00 +0200)]
ar71xx: fix build error due to bad include

While "rawnand.h" is available in kernel 4.14,
the default for this target is kernel 4.9 in which "nand.h" should be used.

Add an extra check to include the correct file depending on kernel version

Fixes these build errors:

drivers/mtd/nand/ar934x_nfc.c:16:10: fatal error: linux/mtd/rawnand.h: No such file or directory
 #include <linux/mtd/rawnand.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Fixes: 318e19ba6755 ("ar71xx: add v4.14 support")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 3b1ea0996f83690695e06d11e0214110b6f7201f)

5 years agoar71xx: add missing include for checking kernel version
Koen Vandeputte [Wed, 22 Aug 2018 11:00:21 +0000 (13:00 +0200)]
ar71xx: add missing include for checking kernel version

Fixes these build errors:

arch/mips/ath79/mach-rb2011.c:20:5: error: "LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Werror=undef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
     ^~~~~~~~~~~~~~~~~~
arch/mips/ath79/mach-rb2011.c:20:26: error: "KERNEL_VERSION" is not defined, evaluates to 0 [-Werror=undef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
                          ^~~~~~~~~~~~~~
arch/mips/ath79/mach-rb2011.c:20:40: error: missing binary operator before token "("
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
                                        ^

Fixes: 318e19ba6755 ("ar71xx: add v4.14 support")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 743654f30dde7659d11280e9cd34da2f1ddad0bc)

5 years agoyamonenv: Remove dead URLs
Rosen Penev [Fri, 17 Aug 2018 02:38:58 +0000 (19:38 -0700)]
yamonenv: Remove dead URLs

uscan errors on the URL as it is no longer available.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 7961009346cbfb44702cd87ffba0be2069c4b773)

5 years agofconfig: Remove dead URLs
Rosen Penev [Fri, 17 Aug 2018 02:38:57 +0000 (19:38 -0700)]
fconfig: Remove dead URLs

uscan errors on the URL as it is no longer available.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from f5098a69ed5ea2062a098aa7a652d7af83cba2ea)

5 years agoapex: Remove dead URL.
Rosen Penev [Fri, 17 Aug 2018 02:38:56 +0000 (19:38 -0700)]
apex: Remove dead URL.

uscan errors on the URL as it is no longer available.

Also switched the download URL to HTTPS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from f2e1fd0f358cba7f75eb4dc90621c3e77f74927d)

5 years agoar71xx: add v4.14 support
John Crispin [Thu, 9 Aug 2018 13:59:41 +0000 (15:59 +0200)]
ar71xx: add v4.14 support

adds v4.14 patches for testing but leaves v4.9 as default for now.

Signed-off-by: John Crispin <john@phrozen.org>
(backported from 318e19ba6755105bb6cc19937d8fff26cbd2cc6f)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoiptables: make iptables-mod-conntrack-extra depend on kmod-ipt-raw
Jo-Philipp Wich [Wed, 22 Aug 2018 05:12:47 +0000 (07:12 +0200)]
iptables: make iptables-mod-conntrack-extra depend on kmod-ipt-raw

Since kernel 4.14 there is no auto assignment of conntrack helpers anymore
so fw3 needs raw table support in order to stage ct helper assignment rules.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from e5f56c07d7fab9a6f2201f4100b593349b8ef67d)

5 years agohostapd: process all CSA parameters
Yury Shvedov [Mon, 16 Jul 2018 12:15:10 +0000 (15:15 +0300)]
hostapd: process all CSA parameters

This adds processing of all CSA arguments from ubus switch_chan request
in the same manner as in the control interface API.

Signed-off-by: Yury Shvedov <yshvedov@wimarksystems.com>
(backported from cad9519ebaf88cb4f3669ca1a04f04eb5d096311)

5 years agotoolchain/gcc: update 8.x to 8.2.0
Syrone Wong [Fri, 27 Jul 2018 10:32:03 +0000 (18:32 +0800)]
toolchain/gcc: update 8.x to 8.2.0

This release fixes LTO link-time performance problems and C++ bug introduced in GCC 8.1

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from 2fb95f71425cc1b3cc9424bb2922fd296e4e05bf)

5 years agotoolchain/gcc: add config symbol to determine how to apply path remapping
Syrone Wong [Thu, 26 Jul 2018 14:38:57 +0000 (22:38 +0800)]
toolchain/gcc: add config symbol to determine how to apply path remapping

Added boolean symbol for GCC 8 and higher, when we add newer GCC, we don't have
to modify rules.mk to keep things consistant.

Fixes: da9d760 ("rules.mk: replace iremap when using GCC 8")
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from 713cee6463a8b654d2c72e469112130373c1336b)

5 years agotarget.mk: Remove obsolete octeon CPU_CFLAGS
Daniel Engberg [Sun, 19 Aug 2018 06:14:50 +0000 (08:14 +0200)]
target.mk: Remove obsolete octeon CPU_CFLAGS

As of commit c6e02b49f65cb4eff624a0831d3db265b3fadd2a the octeon target
uses octeonplus instead of octeon

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from fc9cbf3bc0673c97e31693ea45fad1798346c2cd)

5 years agoutil-linux: Update to 2.32.1
Daniel Engberg [Sun, 12 Aug 2018 22:01:56 +0000 (00:01 +0200)]
util-linux: Update to 2.32.1

Update util-linux to 2.32.1
For release notes see https://lwn.net/Articles/759922/

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
(backported from d1ea8ac3b476e1e552f42dbf1042b521c57a0df4)

5 years agolantiq: add support for upgrade led
Mathias Kresin [Wed, 15 Aug 2018 18:18:26 +0000 (20:18 +0200)]
lantiq: add support for upgrade led

Indicate a (sys)upgrade via leds as well. It brings the lantiq diag.sh
script en par with the other implementations using devicetree aliases
to define multiple leds for boot status indication.

By default, use the boot finished led to indicate an upgrade for now.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from c9e9a787343fb9190b5491188025bcfdebc94beb)

5 years agotreewide: drop unused get_status_led functions
Mathias Kresin [Wed, 15 Aug 2018 17:23:44 +0000 (19:23 +0200)]
treewide: drop unused get_status_led functions

The function isn't used for targets getting the status leds from the
devicetree.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from be06c726c4f7275325dd380ca151963dd7597638)

5 years agotreewide: consolidate upgrade state set
Mathias Kresin [Wed, 15 Aug 2018 16:55:01 +0000 (18:55 +0200)]
treewide: consolidate upgrade state set

Set the (sys)upgrade state when sourcing the stage2 script instead of
setting the state for each target individual.

This change fixes the, due to a missing state set, not working upgrade
led on ath79 and apm821xx.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec)