openwrt/staging/mkresin.git
6 years agoramips: add support for Tama W06
INAGAKI Hiroshi [Mon, 19 Feb 2018 05:35:42 +0000 (14:35 +0900)]
ramips: add support for Tama W06

Tama Electric Axing W06 is a 2.4 GHz band 11n router, based on Mediatek
MT7688AN.

Specification:

- MT7688AN (575 MHz)
- 64 MB of RAM (DDR2 SDRAM)
- 16 MB of Flash (SPI)
- 1T1R 2.4 GHz
- 1x 10/100/1000 Mbps Ethernet
- 4x LEDs (GPIO connected: 3), 1x button
- 1x USB 2.0 Type-A (host)
- UART header on PCB (GND, RX, TX, Vcc from RJ45 side)

Flash instruction using sysupgrade image:
1. Connect micro-USB cable for power supply into W06 and turn on the
router
2. Connect to wifi with SSID "tama-*" with password. Complete SSID and
password are listed on the back of the router
3. Access to 192.168.1.1 and login with user name "admin" and password
empty
4. In firmware update(ファームウェア更新) page, click "参照" button
and click "ブラウザー" button to open file browser, select the
sysupgrade image and press OK button
5. Wait ~150 seconds to complete flashing

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years agoramips: improve GnuBee Personal Cloud Two support
Mathias Kresin [Sat, 17 Feb 2018 08:54:57 +0000 (09:54 +0100)]
ramips: improve GnuBee Personal Cloud Two support

Use the generic board detection for the GnuBee Personal Cloud Two
instead of the target specific one as all recent additions are doing.

Fixup the pinmux to set all pins used as GPIO to the function GPIO.
Request pins where used.

Drop the i2c from the dts. There is nothing connected. While at it fix an
indentation issue and use references instead of duplicating the whole
node path.

Use the same switch config as for the GB-PC1 and drop the led trigger for
the not supported IP1001 phy connected to second rgmii.

Fixes: c60a21532bc9 ("ramips: Add support for the GnuBee Personal Cloud Two")
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: use generic board detection for D-Link DAP-1522 A1
Mathias Kresin [Sat, 17 Feb 2018 08:18:09 +0000 (09:18 +0100)]
ramips: use generic board detection for D-Link DAP-1522 A1

Use the generic board detection for the D-Link DAP-1522 A1 instead of the
target specific one as all recent additions are doing.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: update dts files
Hauke Mehrtens [Mon, 13 Nov 2017 21:39:01 +0000 (22:39 +0100)]
lantiq: kernel 4.14: update dts files

Updated the devicetree source files to make use of the following
upstreamed drivers:

 - xrx200 ethernet phy
 - reset controller unit
 - dwc2
 - fpi

Use our custom xrx200 ethernet phy compatible to support boards, which
have switched the vr9 revision during lifetime, with a single devicetree
source file.

By switching to the dwc2 driver + usb phy framework, we don't need to used
our custom gpio power patch and can use a fixed regulator instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: cleanup dts files
Mathias Kresin [Mon, 1 Jan 2018 16:58:30 +0000 (17:58 +0100)]
lantiq: kernel 4.14: cleanup dts files

Move common used parts to dtsi. Add labels to nodes and reference nodes
via labels in dts files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: fix usb
Mathias Kresin [Sat, 20 Jan 2018 13:38:40 +0000 (14:38 +0100)]
lantiq: kernel 4.14: fix usb

On danube the USB0 registers are at 1e101000 similar to all other lantiq
SoCs.

On Danube and AR9 the USB core is connected to the AHB bus, hence we need
to enable the AHB Bus as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: autoselect matching vr9 rev firmware
Mathias Kresin [Fri, 19 Jan 2018 19:19:06 +0000 (20:19 +0100)]
lantiq: kernel 4.14: autoselect matching vr9 rev firmware

Add a custom xrx200 ethernet phy compatible to load the firmware matching
the vr9 revision without specifing an expected revision.

We have quite a few boards in the tree were later produced ones are using
a more recent vr9. It is impossible to distinguish which revision of the
vr9 is used without opening the case and removing a heatsink for some of
them.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: don't use CPU interrupt controller IPI IRQ domain support
Mathias Kresin [Mon, 8 Jan 2018 22:04:57 +0000 (23:04 +0100)]
lantiq: kernel 4.14: don't use CPU interrupt controller IPI IRQ domain support

This reverts kernel commit 1eed40043579 ("MIPS: smp-mt: Use CPU interrupt
controller IPI IRQ domain support"). With the patch applied, the kernel
hangs during boot if SMP is active.

The Lantiq IRQ controller gets registered first and it directly handles
the MIPS native SW1/2 and HW0 - HW5 IRQs. It looks like this controller
already registers IRQ 0 - 7 and the generic driver only gets the following
IRQs starting later.

The upstream discussion can be found at
https://www.linux-mips.org/archives/linux-mips/2017-05/msg00059.html.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: select MFD SYSCON for ase
Mathias Kresin [Tue, 23 Jan 2018 21:14:28 +0000 (22:14 +0100)]
lantiq: kernel 4.14: select MFD SYSCON for ase

Enable syscon to use it for the RCU MFD on Amazon SE as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: update patches and config
Hauke Mehrtens [Sun, 12 Nov 2017 22:06:30 +0000 (23:06 +0100)]
lantiq: kernel 4.14: update patches and config

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: kernel 4.14: copy patches, config and dts files
Hauke Mehrtens [Sun, 12 Nov 2017 21:27:14 +0000 (22:27 +0100)]
lantiq: kernel 4.14: copy patches, config and dts files

This just copies the patches, configuration and dts files into the
directories hich are used for kernel 4.14.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: fix lantiq applications kernel 4.14 compatiblity
Hauke Mehrtens [Mon, 13 Nov 2017 21:18:00 +0000 (22:18 +0100)]
lantiq: fix lantiq applications kernel 4.14 compatiblity

This is fixing multiple compile problems with kernel 4.14 and updates the
code to take care of changes introduced between kernel 4.9 and 4.14.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: make dts files and kernel config kernel version specific
Mathias Kresin [Sun, 31 Dec 2017 11:11:57 +0000 (12:11 +0100)]
lantiq: make dts files and kernel config kernel version specific

Move the devicetree source files to a kernel specific directory in
preparation of adding kernel 4.14 support.

Rename the subtarget kernel config files to match a specific kernel
version.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: rename gphy firmware
Mathias Kresin [Sun, 31 Dec 2017 10:48:15 +0000 (11:48 +0100)]
lantiq: rename gphy firmware

Rename the gphy firmware to match the name requested by kernel 4.14 and
update the devicetree source files to use the new name.

Update the u-boot lantiq Makefile to be compatible with the new names as
well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokernel: enable CONFIG_USB_PCI for PCI usb modules
Mathias Kresin [Sat, 20 Jan 2018 09:09:07 +0000 (10:09 +0100)]
kernel: enable CONFIG_USB_PCI for PCI usb modules

With upstream commit 2c93e790e825 ("usb: add CONFIG_USB_PCI for system
have both PCI HW and non-PCI based USB HW") the CONFIG_USB_PCI was
introduced.

The option is disabled by default in our generic kernel 4.14 config, hence
we need to set the option for all related kernel modules.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoppp: fix build with kernel 4.14.9+
Mathias Kresin [Tue, 2 Jan 2018 00:01:33 +0000 (01:01 +0100)]
ppp: fix build with kernel 4.14.9+

With a9772285a724 ("linux/compiler.h: Split into compiler.h and
compiler_types.h") compiler.h was refactored and most its content was
moved to compiler_types.h. Both files are required to build ppp-mod-pppoa.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoodhcpd: fix interop with wide DHCPv6 client (FS#1377)
Hans Dedecker [Tue, 20 Feb 2018 15:16:25 +0000 (16:16 +0100)]
odhcpd: fix interop with wide DHCPv6 client (FS#1377)

96033e9 dhcpv6-ia: don't always send reconf accept option (FS#1377)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomodules: iio-mxs-lradc: build on mxs only
Zoltan HERPAI [Tue, 20 Feb 2018 14:01:00 +0000 (15:01 +0100)]
modules: iio-mxs-lradc: build on mxs only

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agomodules: gpio-mcp23s08: fully depend on i2c-core
Zoltan HERPAI [Tue, 20 Feb 2018 13:13:20 +0000 (14:13 +0100)]
modules: gpio-mcp23s08: fully depend on i2c-core

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

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

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

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

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

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

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

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

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

Tested on Netgear R7800

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

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

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

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

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

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

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

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

This reverts commit 6c2e1ff80f52b939405fe0c14577c584602ae432.

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

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

These 2 patches were recently queued for 4.17.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

They were introduced for arm64 in 4.14.20.

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

this caused v4.14.20 based builds so fail on aarch64

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

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

Fixes CVE-2017-8824.

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

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

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

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

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

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

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

Fixes CVE-2017-8824.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Linux Kernel upstream commit d73413058

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

u-boot upstream commit 6130b1f6bc23

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This reverts commit 805f756d6e4ff5061380baf5e262aec72abcf195.

Move back to 2017.07 until we move sunxi to GCC7.

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

This reverts commit f142de5f44bcba8cb0f12e5b1fd26cd9867cf866.

Revert until we can move to 2017.11

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

This reverts commit ef0416666f48e1e7793c4230cec18c8cdd3e1003.

Revert until we can move to 2017.11

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

These cause mediatek arm to fail full builds

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

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

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

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

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

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

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

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

223e09b add support for expected throughput

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

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

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

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

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

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

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

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

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

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

Fixes FS#1147, FS#1341

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

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

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

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

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

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

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

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

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

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

This patch adds support for GL.iNet GL-B1300

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Add sysfs 'mode' attribute to swconfig controlled LEDs.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Add support for kernel 4.14 to the mvebu target.

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

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

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

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

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

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

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

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

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

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

These were found when compiling the new octeontx target.

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

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

Fixes FS#1350.

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

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>