openwrt/staging/jow.git
5 years agomac80211: fix selecting of ath10k -ct firmware
Hauke Mehrtens [Wed, 26 Sep 2018 19:30:59 +0000 (21:30 +0200)]
mac80211: fix selecting of ath10k -ct firmware

There is not firmware file with -ct-ct postfix, remove one -ct.

Fixes: 61b5b4971e7d ("mac80211: make ath10k-ct the default ath10k")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from 3fa7e62cec16393d09a914e3c36a14df8353c608)

5 years agomac80211: Use backports-4.19-rc5-1.tar.xz
Hauke Mehrtens [Tue, 25 Sep 2018 20:35:17 +0000 (22:35 +0200)]
mac80211: Use backports-4.19-rc5-1.tar.xz

This is an official release with some minor changes compared to the
unofficial 4.19-rc4-1 we used before.
* added bcma and ssb again, which is removed in OpenWrt
* fix to build with kernel 4.19
* other minor fixes not relevant for Openwrt.

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

5 years agoramips: fix power LED DTB for wt3020
Emil Muratov [Fri, 14 Sep 2018 09:12:32 +0000 (12:12 +0300)]
ramips: fix power LED DTB for wt3020

Since c134210 power LED is no longer lights after boot-up.
Reversing gpio polarity makes it work as it should be.

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
(backported from 8e6bc1a5beec6a9829ad77e0b8ace2ab106772ee)

5 years agoath10k-ct: update to version ath10k-4.16
Hauke Mehrtens [Sun, 23 Sep 2018 18:15:52 +0000 (20:15 +0200)]
ath10k-ct: update to version ath10k-4.16

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

5 years agoiw: update nl80211.h
Hauke Mehrtens [Sun, 23 Sep 2018 17:28:48 +0000 (19:28 +0200)]
iw: update nl80211.h

Now this file matches the version in backports.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from 02e7fa6f8ac11b379b931d9d2089f1be91274afb)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: fix compile warning in 986-rt2x00-add-TX-LOFT-calibration.patch
Hauke Mehrtens [Sun, 23 Sep 2018 17:10:22 +0000 (19:10 +0200)]
mac80211: fix compile warning in 986-rt2x00-add-TX-LOFT-calibration.patch

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

5 years agomac80211: Add patches which were added later
Hauke Mehrtens [Sun, 23 Sep 2018 16:48:09 +0000 (18:48 +0200)]
mac80211: Add patches which were added later

These patches were added after the new matches structure for the
mac80211 package was created. All the deleted patches are already
integrated in kernel 4.19-rc4.

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

5 years agomac80211: update to version based on 4.19-rc4
Hauke Mehrtens [Sun, 23 Sep 2018 16:02:35 +0000 (18:02 +0200)]
mac80211: update to version based on 4.19-rc4

This updates mac80211 to backports based on kernel 4.19-rc4.

I plan to integrate all the patches which are in this tar into upstream
backports soon.

I used the backports generated from this code:
https://github.com/hauke/backports/commits/wip2

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(backported from db90c243a0b9bd72fc691cd09e58a96ac2a452cf)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: make ath10k-ct the default ath10k
John Crispin [Wed, 5 Sep 2018 12:51:44 +0000 (14:51 +0200)]
mac80211: make ath10k-ct the default ath10k

We select ath10k-ct by default, but it is still possible to build
the upstream version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John Crispin <john@phrozen.org>
(backported from 61b5b4971e7d6aab6b0695997c3b5aaf73c53b5f)

5 years agomac80211: rt2x00: add experimental patches from Stanislaw Gruszka
Daniel Golle [Wed, 15 Aug 2018 14:02:18 +0000 (16:02 +0200)]
mac80211: rt2x00: add experimental patches from Stanislaw Gruszka

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from de1c58a64bd66319e770d2587da07d8c9c90174a)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: remove obsolete patch
Daniel Golle [Wed, 15 Aug 2018 13:22:43 +0000 (15:22 +0200)]
mac80211: rt2x00: remove obsolete patch

According to Stanislaw Gruszka the patch
    600-23-rt2x00-rt2800mmio-add-a-workaround-for-spurious-TX_F.patch
should be dropped.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from c837c41a768ddd6f3d028fe480dd972b40389b2a)

5 years agomac80211: rt2x00: add TX LOFT calibration
Tomislav Požega [Thu, 11 Jan 2018 18:53:49 +0000 (19:53 +0100)]
mac80211: rt2x00: add TX LOFT calibration

Add TX LOFT calibration from mtk driver.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
(backported from d449233fd2b5efaa7ab086eda656fc7f962cf3b4)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: add RXIQ calibration
Tomislav Požega [Mon, 8 Jan 2018 12:43:56 +0000 (13:43 +0100)]
mac80211: rt2x00: add RXIQ calibration

Add RXIQ calibration found in mtk driver. With old openwrt builds this gets us ~8Mbps more of RX bandwidth (test with iPA/eLNA layout).
Please try if this makes any difference among various board/RF layouts.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
(backported from 5d1620f29c9180881ed1c0c7b79e476cc98fd7dd)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: add RXDCOC calibration
Tomislav Požega [Mon, 8 Jan 2018 12:43:37 +0000 (13:43 +0100)]
mac80211: rt2x00: add RXDCOC calibration

Add RXDCOC calibration code from mtk driver. Please try if this makes any difference among various board/RF layouts.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
(backported from e125b6abb2362cabacfc42b3343cdcc4b0453603)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: add r calibration
Tomislav Požega [Mon, 8 Jan 2018 12:42:58 +0000 (13:42 +0100)]
mac80211: rt2x00: add r calibration

Add r calibration code as found in mtk driver.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
(backported from 061541f207b0bad605cdd4d0e5aa23a9571b0770)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: add RF self TXDC calibration
Tomislav Požega [Mon, 8 Jan 2018 12:42:27 +0000 (13:42 +0100)]
mac80211: rt2x00: add RF self TXDC calibration

Add TX self calibration based on mtk driver.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
(backported from 66929e34146159aafa01fdef2626c5584ea86139)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agomac80211: rt2x00: write registers required for reducing power consumption
Tomislav Požega [Wed, 23 Aug 2017 17:10:21 +0000 (19:10 +0200)]
mac80211: rt2x00: write registers required for reducing power consumption

Write registers required for reducing power consumption like the vendor
driver does when ADJUST_POWER_CONSUMPTION_SUPPORT is set.
This helps devices to sync at better TX/RX rates and improves overall
performance.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[daniel@makrotopia.org: edited commit message]
(backported from 6044682b83a08618a4d8f6791503e0cec5b9fbe5)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agolinux-firmware: set PKG_MIRROR_HASH
Daniel Golle [Thu, 16 Aug 2018 15:03:36 +0000 (17:03 +0200)]
linux-firmware: set PKG_MIRROR_HASH

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from b88df4a7c8f260867f3213fc3baaa4b509d449bf)

5 years agolinux-firmware: add ath10k support
John Crispin [Fri, 3 Aug 2018 12:16:47 +0000 (14:16 +0200)]
linux-firmware: add ath10k support

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

5 years agoath10k-firmware: disable the package and use default linux-firmware package
John Crispin [Fri, 3 Aug 2018 11:59:40 +0000 (13:59 +0200)]
ath10k-firmware: disable the package and use default linux-firmware package

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

5 years agomac80211: rebase ontop of v4.18.5
John Crispin [Thu, 2 Aug 2018 06:44:29 +0000 (08:44 +0200)]
mac80211: rebase ontop of v4.18.5

Signed-off-by: John Crispin <john@phrozen.org>
(backported from d9eefa7a7031543571d434693c7f984dfbdc990d)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agokernel: netfilter: add IPVS kernel module support
Mauro Mozzarelli [Mon, 2 Oct 2017 18:09:09 +0000 (19:09 +0100)]
kernel: netfilter: add IPVS kernel module support

IPVS (IP Virtual Server) implements transport-layer load balancing inside
the Linux kernel, so called Layer-4 switching. IPVS running on a host acts
as a load balancer at the front of a cluster of real servers, it can direct
requests for TCP/UDP based services to the real servers, and makes services
of the real servers to appear as a virtual service on a single IP address.

This change adds the following kmod packages
- kmod-nf-ipvs
- kmod-nf-ipvs-ftp
- kmod-nf-ipvs-sip

Signed-off-by: Mauro Mozzarelli <mauro@ezplanet.org>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(backported from 9f105ce8c8ec66c1fbb808fb04afb361513950ee)

5 years agobusybox: fix dependency for IPV6
Rosy Song [Sat, 22 Sep 2018 13:15:40 +0000 (21:15 +0800)]
busybox: fix dependency for IPV6

Signed-off-by: Rosy Song <rosysong@rosinson.com>
(backported from 9f0cb135dd4078f4df89978abb0f96326133da2c)

5 years agolayerscape: build ls-dpl package with linux dtc tool
Yangbo Lu [Thu, 6 Sep 2018 05:30:32 +0000 (13:30 +0800)]
layerscape: build ls-dpl package with linux dtc tool

Building ls-dpl package requires the dtc tool. This patch
is to support using linux dtc tool for ls-dpl package.
This avoids compile issue when host system doesn't have
the dtc tool.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 87d7a596eca7809a7845d507fd32d0e52230f11e)

5 years agolayerscape: fix get_device_file() function of restool
Yangbo Lu [Wed, 1 Aug 2018 02:41:11 +0000 (10:41 +0800)]
layerscape: fix get_device_file() function of restool

The restool failed to work with current gcc-7.3.0-musl.
This patch is to add a restool fix-up patch to fix
multiple problems encountered in the get_device_file()
function:
 - The deprecated atoi() function is replaced by strtoul
 - An invalid memory access was being performed by using
 memory from dir->d_name even after closedir(). This is
 fixed by a strdup() on the device filename.
 - Also, error prints now print any relevant error code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from db30adc9312bd0c42830af60ddf2ca398494c265)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agolayerscape: update README for SD card boot and new devices
Yangbo Lu [Mon, 23 Jul 2018 08:48:48 +0000 (16:48 +0800)]
layerscape: update README for SD card boot and new devices

This patch is to update the README since SD card boot support
and LS1012AFRWY/LS1021ATWR were introduced.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 0f44c7c8d190924c22420638f87cca0ea148d587)

5 years agolayerscape: add ls1012afrwy support and drop ls1012afrdm
Yangbo Lu [Wed, 18 Jul 2018 08:56:07 +0000 (16:56 +0800)]
layerscape: add ls1012afrwy support and drop ls1012afrdm

ls1012afrdm was no longer supported in NXP Layerscape SDK.
Instead a new board ls1012afrwy was introduced in LSDK.
This patch is to drop ls1012afrdm and add ls1012afrwy support.
Since only 2MB NOR flash could be used, we just put u-boot
and firmware on NOR flash, and put kernel/dtb/rootfs on SD
card.

The Layerscape FRWY-LS1012A board is an ultra-low-cost
development platform for LS1012A Series Communication
Processors built on Arm Cortex-A53. This tool refines the
FRDM-LS1012A with more features for a better hands-on experience
for IoT, edge computing, and various advanced embedded
applications. Features include easy access to processor I/O,
low-power operation, micro SD card storage, an M2 connector, a
small form factor, and expansion board options via mikroBUS Click
Module. The MicroBUS Module provides easy expansion via hundreds
of powerful modules supporting sensors, actuators, memories,
and displays.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 7016dd48f164364e1ee7b9d86169375691f7be0d)

5 years agolayerscape: add SD card boot support
Yangbo Lu [Wed, 18 Jul 2018 06:14:40 +0000 (14:14 +0800)]
layerscape: add SD card boot support

NOR/QSPI Flash on Layerscape board only has limited 64MB memory size.
Since some boards (ls1043ardb/ls1046ardb/ls1088ardb/ls1021atwr)
could support SD card boot, we added SD boot support for them to put
all things on SD card to meet large memory requirement.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from eb684205e5e6958ad71cf4a179fa776f6507f7e3)

5 years agolayerscape: add armv7 subtarget and ls1021atwr board support
Yangbo Lu [Tue, 10 Jul 2018 03:58:59 +0000 (11:58 +0800)]
layerscape: add armv7 subtarget and ls1021atwr board support

The NXP TWR-LS1021A module is a development system based
on the QorIQ LS1021A processor.
- This feature-rich, high-performance processor module can
  be used standalone or as part of an assembled Tower System
  development platform.
- Incorporating dual Arm Cortex-A7 cores running up to 1 GHz,
  the TWR-LS1021A delivers an outstanding level of performance.
- The TWR-LS1021A offers HDMI, SATA3 and USB3 connectors as
  well as a complete Linux software developer's package.
- The module provides a comprehensive level of security that
  includes support for secure boot, Trust Architecture and
  tamper detection in both standby and active power modes,
  safeguarding the device from manufacture to deployment.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from f0ec7bd27d206ea0eb9587e178ce0d7ddc006bce)

5 years agolayerscape: split image makefile per subtarget
Yangbo Lu [Wed, 15 Aug 2018 08:41:41 +0000 (16:41 +0800)]
layerscape: split image makefile per subtarget

This patch is to split image makefile per subtarget.
The ARMv7 subtarget will be added in the future.
It will be not convinient if only one makefile is used
for several subtargets management and future development.
This patch also dropped 32-bit Traverse LS1043-S since
Traverse only intended to support 64-bit and the 32-bit
compile now had an issue.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 0d95eb2cce62102a849e8c9552c30dfee3fe6189)

5 years agolayerscape: define ls-append function
Yangbo Lu [Mon, 9 Jul 2018 10:38:10 +0000 (18:38 +0800)]
layerscape: define ls-append function

This patch is to define a ls-append function for
each device to reuse it for image appending.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 82dd7f7da2b977eca0050ea7500a830252ea1abe)

5 years agolayerscape: update linux 4.9 patches to LSDK-18.06
Yangbo Lu [Wed, 15 Aug 2018 08:08:53 +0000 (16:08 +0800)]
layerscape: update linux 4.9 patches to LSDK-18.06

This patch is to update linux 4.9 patches to LSDK-18.06
release and to adjust config-4.9 accordingly.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from a83eae385ab72c895e9af898a6fc392f05fe9728)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agolayerscape: add u-boot environment support for OpenWrt boot
Yangbo Lu [Tue, 17 Jul 2018 09:42:47 +0000 (17:42 +0800)]
layerscape: add u-boot environment support for OpenWrt boot

This patch is to implement u-boot environment txt files
to support OpenWrt boot for all layerscape devices.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from ad1dbc0ca304686a7f826528e674620791f34584)

5 years agolayerscape: update u-boot to LSDK-18.06
Yangbo Lu [Wed, 4 Jul 2018 04:20:41 +0000 (12:20 +0800)]
layerscape: update u-boot to LSDK-18.06

The u-boot source code had been migrated to codeaurora
for LSDK-18.06 release and the future release. This
patch is to update u-boot to LSDK-18.06 for both
uboot-layerscape and uboot-layerscape-armv8_32b packages.
Besides, this patch also introduced some other changes.
- Reworked uboot-layerscape makefile to make it more
  readable.
- Define package in uboot-layerscape-armv8_32b for each board.
- Fixed u-boot package selection in target image makefile.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from dcf57c766acc5224e05f62cf5fae2d965abace59)

5 years agolayerscape: drop uboot-layerscape patches
Yangbo Lu [Mon, 16 Jul 2018 08:59:48 +0000 (16:59 +0800)]
layerscape: drop uboot-layerscape patches

Dropped uboot-layerscape patches which were environemnt patches.
We will make u-boot environment binaries with a txt file for all
devices.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from e83faa3d7d5cd8fe8753e86bd25e04fd61b70490)

5 years agolayerscape: update restool to LSDK-18.06
Yangbo Lu [Tue, 3 Jul 2018 06:17:08 +0000 (14:17 +0800)]
layerscape: update restool to LSDK-18.06

The restool source code had been migrated to codeaurora
for LSDK-18.06 release and the future release. This patch
is to update restool to LSDK-18.06 release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 5c325c2b63937992fba32888ebcd2fd912f29864)

5 years agolayerscape: update ls-ppa to LSDK-18.06
Yangbo Lu [Tue, 3 Jul 2018 06:58:01 +0000 (14:58 +0800)]
layerscape: update ls-ppa to LSDK-18.06

This patch is to update ls-ppa to LSDK-18.06 release
and to rework ls-ppa makefile to make it more readable.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 32bb763e4526b44e219fb3ffcba6d76fc650a1cf)

5 years agolayerscape: update ls-rcw to LSDK-18.06
Yangbo Lu [Tue, 3 Jul 2018 03:07:06 +0000 (11:07 +0800)]
layerscape: update ls-rcw to LSDK-18.06

The rcw source code had been migrated to codeaurora
for LSDK-18.06 release and the future release. The
source code had also involved ls1012ardb/ls1012afrdm/
ls1088ardb/ls2088ardb rcw, so we updated ls-rcw to
LSDK-18.06, reworked the makefile and dropped ls-rcw-bin
package in this patch. Also reworked ls-rcw patch to
adapt to the latest source code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 89c4ed57b768449d58bb0830e98c9b99ea466feb)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agolayerscape: update ppfe-firmware to LSDK-18.06
Yangbo Lu [Mon, 2 Jul 2018 08:33:35 +0000 (16:33 +0800)]
layerscape: update ppfe-firmware to LSDK-18.06

This patch is to update ppfe-firmware to LSDK-18.06 release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 984cf8d89dc40b1a1ed994d2e550e783240599dd)

5 years agolayerscape: update ls-mc to LSDK-18.06
Yangbo Lu [Mon, 2 Jul 2018 06:58:30 +0000 (14:58 +0800)]
layerscape: update ls-mc to LSDK-18.06

This patch is to update ls-mc to LSDK-18.06 release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from c19f5206866f73acb3dc4dfdf1af33e9b9556733)

5 years agolayerscape: update ls-dpl to LSDK-18.06
Yangbo Lu [Mon, 2 Jul 2018 03:12:17 +0000 (11:12 +0800)]
layerscape: update ls-dpl to LSDK-18.06

The dpl-examples source code had been migrated to
codeaurora for LSDK-18.06 release and the future
release. This patch is to update this package to
LSDK-18.06.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from e4fee592eae88ba9e985cd64a44b60d00b74da98)

5 years agolayerscape: update fman-ucode to LSDK-18.06
Yangbo Lu [Fri, 29 Jun 2018 08:20:32 +0000 (16:20 +0800)]
layerscape: update fman-ucode to LSDK-18.06

Actually there was no change for fman-ucode in LSDK-18.06
just tagged with LSDK-18.06. This patch is to rework the
fman-ucode makefile to make it more readable, and to use
lsdk-1806 as the PKG_VERSION.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(backported from 56853409c4f6ba038aea8d12f7702b44ef866e0f)

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)