Commit Graph

1329 Commits

Author SHA1 Message Date
Thibaut VARÈNE
898d82daa0 ramips: mikrotik: use routerbootpart partitions
Enable routerbootpart partitions on MikroTik devices.

Tested-by: Tobias Schramm <t.schramm@manjaro.org>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:38:41 +08:00
Thibaut VARÈNE
1f67898c56 ramips/mt7621: enable CONFIG_MTD_ROUTERBOOT_PARTS
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:38:05 +08:00
Thibaut VARÈNE
c94a125d58 ath79/mikrotik: use routerbootpart partitions
Enable routerbootpart partitions on MikroTik devices.

Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:36:44 +08:00
Thibaut VARÈNE
84dd1ca83d ath79/mikrotik: enable CONFIG_MTD_ROUTERBOOT_PARTS
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:36:07 +08:00
Thibaut VARÈNE
2421583542 generic: routerboot partition build bits
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:35:20 +08:00
Thibaut VARÈNE
f6f0843828 generic: routerbootpart MTD parser for RouterBoot
This driver provides an OF MTD parser to properly assign the RouterBoot
partitions on the flash. This parser builds from the "fixed-partitions"
one (see ofpart.c), but it can handle dynamic partitions as found on
routerboot devices.

The parent node must contain the following:
	compatible = "mikrotik,routerboot-partitions";
	#address-cells = <1>;
	#size-cells = <1>;

Children routerbootpart DTS nodes are defined as follows:
For fixed partitions
	node-name@unit-address {
		reg = <prop-encoded-array>;
		label = <string>;
		read-only;
		lock;
	};

All properties but reg are optional.

For dynamic partitions:
	node-name {
		size = <prop-encoded-array>;
		label = <string>;
		read-only;
		lock;
	};

size property is mandatory unless the next partition is a fixed one or
a "well-known" one (matched from the strings defined below) in which case
it can be omitted or set to 0; other properties are optional.

By default dynamic partitions are appended after the preceding one, except
for "well-known" ones which are automatically located on flash.

Well-known partitions (matched via label or node-name):
 - "hard_config"
 - "soft_config"
 - "dtb_config"

This parser requires the DTS to list partitions in ascending order as
expected on the MTD device.

This parser has been successfully tested on BE (ath79) and LE (ipq40xx
and ramips) hardware.

Tested-by: Baptiste Jonglez <git@bitsofnetworks.org>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>
Tested-by: Christopher Hill <ch6574@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-09 11:32:34 +08:00
Stijn Tintel
f8d88d39a0 kernel: add missing symbol to 5.4 config
This symbol is exposed if KERNEL_PROVE_LOCKING is enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2020-05-09 11:20:06 +08:00
AmadeusGhost
b3e8a12c65 layerscape: add kernel 5.4 support from official commit 2020-05-08 08:25:49 +08:00
Petr Štetiar
0503cdbc89 kernel: bump 5.4 to 5.4.39
Refreshed patches.

Run tested: qemu-x86-64
Build tested: x86/64, imx6, sunxi/a53, layerscape/armv7+armv8_64b

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-05-08 08:18:53 +08:00
Chuanhong Guo
fcc5b35ffc generic: ar8216: fix unknown packet flooding for ar8229/ar8236
ar8229 and ar8236 don't allow unknown unicast/multicast frames and
broadcast frames to be flooded to cpu port. This isn't desired behavior
for swconfig as we treat it as a standalone switch.
Current code doesn't enable unicast frame flooding for ar8229 and uses
wrong setup for ar8236. This commit fixes both of them by enabling port
0 flooding for all unknown frames.

Fixes: FS#2848
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-05-06 12:09:15 +08:00
Adrian Schmutzler
4c3e74b6c3 sunxi: remove unneeded shebang for preinit files
preinit files are sourced and they have no execute bit set, so remove
their shebang.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-05-06 12:08:40 +08:00
Adrian Schmutzler
de51cfed9a sunxi: tidy up cases in base-files
This removes unnecessary quotes in cases and applies alphabetic
order to members.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-05-06 12:08:11 +08:00
Adrian Schmutzler
c96496f51e ath79: indicate boot/failsafe/upgrade for NanoBeam/Nanostation AC
Like for Ubiquiti PowerBeam 5AC Gen2, the highest RSSI LED can
be exploited to indicate boot/failsafe/upgrade for the NanoBeam AC
and Nanostation AC as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 80a094aaf3)
2020-05-05 22:25:13 +08:00
AmadeusGhost
ffd2755fb9 treewide: adjust sysupgrade script 2020-05-05 22:18:12 +08:00
John Crispin
ddeaed80d5 mediatek: fix image building
Signed-off-by: John Crispin <john@phrozen.org>
2020-05-05 11:53:18 +08:00
John Crispin
08781baf5b mediatek: update patches
Signed-off-by: John Crispin <john@phrozen.org>
2020-05-05 11:51:42 +08:00
Stijn Tintel
dea63928af bcm27xx: backup /boot/cmdline.txt and restore early
If you want to use the Raspberry Pi UART, "console=serial0,115200" needs
to be removed from the kernel cmdline. This is done by editing
/boot/cmdline.txt. However, this file is not currently backed up during
sysupgrade, so this effectively breaks HATs that require the use of the
UART every sysupgrade.

Backup this file during sysupgrade, and restore it before rebooting.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2020-05-05 11:50:21 +08:00
AmadeusGhost
53a25bebe3 octeontx: refresh 5.4 patches 2020-05-05 11:50:15 +08:00
CN_SZTL
f5e3bd13ef
Merge Mainline 2020-05-04 16:11:02 +08:00
CN_SZTL
622381da92
Merge Lean's source 2020-05-04 16:01:50 +08:00
AmadeusGhost
9f90d1abd4
Redmi AC2100: adjust switch configuration (#4528) 2020-05-04 00:43:17 +08:00
CN_SZTL
b11dcd594c kernel: bump 4.14 to 4.14.178
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-03 19:33:01 +08:00
CN_SZTL
95aa0a3995 kernel: bump 4.14 to 4.14.177
Fixes:
 - CVE-2020-11669

Remove upstreamed:
 - 001-irqchip-versatile-fpga-Handle-chained-IRQs-properly.patch
 - 002-irqchip-versatile-fpga-Apply-clear-mask-earlier.patch
 - 003-ARM-dts-oxnas-Fix-clear-mask-property.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-03 19:32:54 +08:00
CN_SZTL
ebd3dfdac7
kernel: bump 4.19 to 4.19.120
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-03 17:49:03 +08:00
CN_SZTL
c5c9118ebe kernel: bump 4.9 to 4.9.221
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-03 16:52:59 +08:00
CN_SZTL
ea2b278e9e
kernel 4.9: revert changes for some patches 2020-05-03 16:37:24 +08:00
AmadeusGhost
b6388e8b7f ipq40xx: 5.4: add c526a support 2020-05-03 12:05:54 +08:00
AmadeusGhost
9a97380321 ipq40xx: add support for hiwifi c526a
cherry-pick commit from LGA1150/openwrt

SOC:	Qualcomm QCA4019 717MHz
RAM:    512M DDR3
FLASH1: 2M en25qh16
FLASH2: 128M NAND
LED:    wan LED
USB:    USB3.0 x 1
POWER:  12V 2.5A
WLAN1:  MT7615 2.4GHz 802.11 b/g/n
WLAN2:  QCA4019 5.2GHz 802.11 n/ac
WLAN3:  QCA4019 5.8GHz 802.11 n/ac
Ethernet: 4 x 1000Mbps (1wan, 3lan)

Installation:
Flash into pbboot and pandorabox, and then:
  mtd erase ubi
  mtd write /tmp/openwrt.ubi ubi
2020-05-03 11:09:27 +08:00
Richard Huynh
ecc72b7a5f ramips: Add support for Xiaomi Redmi Router AC2100 (RM2100)
Specification:
- CPU: MediaTek MT7621A
- RAM: 128 MB DDR3
- FLASH: 128 MB ESMT NAND
- WIFI: 2x2 802.11bgn (MT7603)
- WIFI: 4x4 802.11ac (MT7615)
- ETH: 3xLAN+1xWAN 1000base-T
- LED: Power, WAN, in Amber and White

Signed-off-by: Richard Huynh <voxlympha@gmail.com>
2020-05-02 19:25:28 +08:00
CN_SZTL
e56373ae93
Merge Lean's source 2020-05-02 16:48:51 +08:00
CN_SZTL
4170e91d1e kernel: bump 5.4 to 5.4.37
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-02 16:28:55 +08:00
AmadeusGhost
1a44b8d74f
ramips: fix build error (#4508) 2020-05-02 07:30:25 +08:00
AmadeusGhost
3c510baf47
ramips: fix support for Redmi AC2100 (#4500)
This commit fix switch and image config for Redmi AC2100.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2020-05-01 22:37:45 +08:00
AmadeusGhost
7d17073c14 treewide: adjust sysupgrade script 2020-05-01 16:29:04 +08:00
coolsnowwolf
01aeb5df0e ramips: Add support for Xiaomi Redmi Router AC2100 (RM2100) 2020-05-01 12:23:28 +08:00
CN_SZTL
920cf867f4
Merge Mainline 2020-05-01 10:38:39 +08:00
CN_SZTL
91c55c934c
kernel: bump 4.19 to 4.19.119
Remove upstreamed:
 - 551-loop-Better-discard-support-for-block-devices.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-05-01 00:33:53 +08:00
AmadeusGhost
e19377e68b Merge Lean's source 2020-04-30 18:09:47 +08:00
Petr Štetiar
2197351ec6 kernel: bump 5.4 to 5.4.36
Refreshed patches, removed upstreamed patch:

 generic/hack: 551-loop-Better-discard-support-for-block-devices.patch

Added generic config symbol `ARM64_ERRATUM_1542419` due to Fixes:
f2791551cedb ("arm64: errata: Hide CTR_EL0.DIC on systems affected by
Neoverse-N1 #1542419").

Run tested: qemu-x86-64, apalis, nbg6617
Build tested: x86/64, imx6, ipq40xx, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-30 08:26:17 +08:00
Daniel Golle
2ef3fba9e6 ath79: fix dts of Teltonika RUT9xx devices
The previous commits were missing a semicolon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-04-30 08:26:12 +08:00
Daniel Golle
6386cb9c27 ath79: add support for Teltonika RUT955 H7V3C0
This board was previously supported in ar71xx as 'RUT9XX'. The
difference between that and the other RUT955 board already supported in
ath79 is that instead of the SPI shift registers driving the LEDs and
digital outputs that model got an I2C GPIO expander instead.

To support LEDs during early boot and interrupt-driven digital inputs,
I2C support as well as support for PCA953x has to be built-in and
cannot be kernel modules, hence select those symbols for ath79/generic.

Specification:

- 550/400/200 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1
- 2T2R 2,4 GHz (AR9344)
- built-in 4G/3G module (example: Quectel EC-25EU)
- internal microSD slot (spi-mmc, buggy and disabled for now)
- RS232 on D-Sub9 port (Cypress ACM via USB, /dev/ttyACM0)
- RS422/RS485 (AR934x high speed UART, /dev/ttyATH1)
- analog 0-24V input (MCP3221)
- various digital inputs and outputs incl. a relay
- 11x LED (4 are driven by AR9344, 7 by PCA9539)
- 2x miniSIM slot (can be swapped via GPIO)
- 2x RP-SMA/F (Wi-Fi), 3x SMA/F (2x WWAN, GPS)
- 1x button (reset)
- DC jack for main power input (9-30 V)
- debugging UART available on PCB edge connector

Serial console (/dev/ttyS0) pinout:

- RX: pin1 (square) on top side of the main PCB (AR9344 is on top)
- TX: pin1 (square) on bottom side

Flash instruction:

Vendor firmware is based on OpenWrt CC release. Use the "factory" image
directly in GUI (make sure to uncheck "keep settings") or in U-Boot web
based recovery. To avoid any problems, make sure to first update vendor
firmware to latest version - "factory" image was successfully tested on
device running "RUT9XX_R_00.06.051" firmware and U-Boot "3.0.1".

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-04-30 08:19:51 +08:00
Daniel Golle
6ea96fec81 ath79: split Teltonika RUT955 to support other RUT9xx models
Split device-tree of Teltonika RUT955 into a generic RUT9xx part and
a part specific to that version of RUT955 already supported.
Also harmonize GPIO and LED names with what is used by the vendor
firmware and assign RS485 DTR signal.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-04-30 08:18:16 +08:00
AmadeusGhost
244a0f8574 Revert "kernel: bump 4.14 to 4.14.177"
This reverts commit 89c18f5335.
2020-04-29 17:25:11 +08:00
AmadeusGhost
4b53337af7
ipq40xx: correct device packages (#4450) 2020-04-29 13:32:07 +08:00
AmadeusGhost
153e8546e9 kirkwood: remove kernel 4.14 & 4.19 support 2020-04-29 08:15:50 +08:00
Adrian Schmutzler
edf504aafe ath79: add SUPPORTED_DEVICES based on ar71xx for some devices
This adds some still-missing board names for old TP-Link devices
to ath79 SUPPORTED_DEVICES.

Fixes: FS#3017

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-29 08:11:00 +08:00
Adrian Schmutzler
7b5442e220 Revert "ramips: explicitly disable built-in switch for lan-only devices"
This reverts commit a1693bf626.

The rt288x and rt3883 devices in question don't have switches.
Only keep the merged case for rt305x.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-29 08:10:21 +08:00
Pawel Dembicki
f56535d230 kirkwood: switch from swconfig to dsa
This patch removes support for swconfig and switches to dsa driver.

swconfig and switch drivers are removed. DSA driver is enabled and
configuration is adjusted.

In kirkwood only two devices have switches: Linksys EA3500 and EA4500.

WAN MAC configuration in 02_network is required because otherwise WAN
would have the same MAC address as lan interfaces. In swconfig solution
the WAN address was assigned in u-Boot to eth1. Now, as eth1 is disabled
and wan is part of the switch, we have to set it manually.

Compile tested: EA3500, EA4500
Run tested: EA4500

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[minor commit title/message adjustments, remove swconfig package
for devices]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-29 08:09:46 +08:00
DENG Qingfang
82cc3dcd55 ramips: fix MikroTik 750Gr3 ports MAC addresses
According to a user in OpenWrt forum, on RouterOS the MAC addresses are
ether1(WAN) = MAC
ether2(LAN2) = MAC+1
ether3(LAN3) = MAC+2
etc.

Fix the MAC addresses in OpenWrt.

Ref: https://forum.openwrt.org/t/few-dumb-question-about-mt7530-rb750gr3-dsa/61608
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
[remove label_mac in 02_network]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-29 08:08:36 +08:00
AmadeusGhost
74c7cd6dbf omap: add support for kernel 5.4 2020-04-28 11:00:38 +08:00
Adrian Schmutzler
fe82c8445c ath79: indicate boot/failsafe/upgrade for NanoBeam/Nanostation AC
Like for Ubiquiti PowerBeam 5AC Gen2, the highest RSSI LED can
be exploited to indicate boot/failsafe/upgrade for the NanoBeam AC
and Nanostation AC as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-28 10:51:47 +08:00
Adrian Schmutzler
230538cbe1 ramips: rt3883: remove swconfig from individual DEVICE_PACKAGES
In rt3883 subtarget, several devices add swconfig to their DEVICE_PACKAGES.
This is redundant as the package is already provided via DEFAULT_PACKAGES.

Remove the redundant inclusions.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-28 10:49:37 +08:00
Adrian Schmutzler
ef19bc7b76 ramips: remove (kmod-)swconfig DEVICE_PACKAGES for Sitecom WL-351
These definitions are not required since swconfig is selected for
the target anyway and kmod-swconfig is pulled as dependency by
kmod-switch-rtl8366rb.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-28 10:46:17 +08:00
Sungbo Eo
3aad5d79e2 ramips: explicitly disable built-in switch for lan-only devices
Commit 8f6334eb94 ("ramips: explicitly disable built-in switch when needed")
did not fix rt288x and rt3883 devices. This patch deals with them.

While at it, consolidate duplicate cases in interface setup.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-04-28 10:44:06 +08:00
Adrian Schmutzler
16d80420b6 ramips: create common definition for I-O DATA NAND devices
Three of the I-O DATA devices with NAND flash share a lot of
variables. Create a common definition for them to reduce duplicate
code.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-28 10:42:47 +08:00
Yong-hyu, Ban
9f10ea5055 mediatek: fix compile error caused by upstreamed mtk_m32 function
This fixes following compile error:

```
  CC      drivers/net/ethernet/mediatek/mtk_eth_soc.o
drivers/net/ethernet/mediatek/mtk_eth_soc.c:70:5: error: conflicting types for 'mtk_m32'
 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
     ^~~~~~~
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:25:
drivers/net/ethernet/mediatek/mtk_eth_soc.h:964:6: note: previous declaration of 'mtk_m32' was here
 void mtk_m32(struct mtk_eth *eth, u32 clear, u32 set, unsigned reg);
      ^~~~~~~
```

which caused by 5.4.34 mainlining of mtk_m32 function.

Fixes: faf668be35 ("kernel: bump 5.4 to 5.4.34")
Signed-off-by: Yong-hyu, Ban <perillamint@quendi.moe>
2020-04-28 10:36:55 +08:00
INAGAKI Hiroshi
4f5c070c16 ramips: use lzma-loader for I-O DATA mt7621 devices
The official sysupgrade images for I-O DATA devices manufactured by
MSTC (MitraStar Technology Corp.) cannot be booted normally and the
kernel panics after switching to kernel 5.4.

This commit fixes the issue by using lzma-loader.

Note:
  These devices use Z-LOADER to read the kernel from NAND flash and boot
  it. Z-LOADER cannot load and start plain lzma-loader, so additional
  lzma-compression is needed.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Co-developed-by: Yanase Yuki <dev@zpc.sakura.ne.jp>
Signed-off-by: Yanase Yuki <dev@zpc.sakura.ne.jp>
Tested-by: Yanase Yuki <dev@zpc.sakura.ne.jp> [wn-ax2033gr]
2020-04-28 10:35:53 +08:00
INAGAKI Hiroshi
faaa299929 ramips: use lzma-loader for Japanese mt7621 devices
In several Japanese routers with MT7621 SoC, the official sysupgrade
image cannot be booted properly after switching to kernel 5.4.

This commit fixes the issue by using lzma-loader.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2020-04-28 10:35:13 +08:00
Szabolcs Hubai
e85d410a79 ramips: mt7621: use lzma-loader for D-Link DIR-860L B1
This device has trouble extracting big kernel from flash,
and supports LZMA compressed kernels only.

Using OpenWrt kernel loader saves us 64 KB compared to the dictionary
size limiting workaround.

Factory image sizes (commit: 5f126c541a) with "CONFIG_ALL_KMODS=y":
- original ("-d23", default): 4784188 bytes, LZMA ERROR 1
- with "-d19": 4915260, LZMA ERROR 1
- with "-d18": 4915260, diff to original: +128 KB
- with "-d17": 4980796, diff to original: +192 KB
- with this patch: 4849724, diff to original: +64 KB

To save some CPU cycle, use minimal compression ("-a0") for the LZMA
compressed uImage.

The most robust solution would use a different loader,
which reads the compressed kernel directly from the flash.
See the thread at [0] for more details!

[0] http://lists.infradead.org/pipermail/openwrt-devel/2020-April/022926.html

Signed-off-by: Szabolcs Hubai <szab.hu@gmail.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
[fixed identation]
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-28 10:33:41 +08:00
David Bauer
75579f926f ath79: enable SGMII workaround for affected boards
These boards suffer from a sudden inability to establish a link on the
SGMII. Enable the workaround to fix the link when it dies.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-28 10:32:55 +08:00
David Bauer
1484f9f350 ath79: ag71xx: unify version dependent code
Use IS_ERR_OR_NULL macro to use the same code on kernel 4.19 as well as
5.4.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-28 10:30:41 +08:00
David Bauer
47a669d3e4 ath79: ag71xx: remove code for legacy kernels
ath79 does not support kernels prior to 4.19 anymore.
Remove legacy code for those kernels from the ag71xx driver.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-28 10:30:17 +08:00
David Bauer
6b4aae8a65 ath79: remove unused TP-Link partition parser
This parser was added with the target, but no device seems to use it
currently, as all partitions are specified in the device-tree.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-28 10:28:46 +08:00
coolsnowwolf
404ec5fa84 ipq40xx: adjust pacakge 2020-04-27 12:30:22 +08:00
Matt Merhar
774e8f6a51 kernel: backport fix for non-regular inodes on f2fs
Upstream commit dda9f4b9ca ("f2fs: fix to skip verifying block address
for non-regular inode").

On 4.14, attempting to perform operations on a non-regular inode
residing on an f2fs filesystem, such rm-ing a device node, would fail
and lead to a warning / call trace in dmesg. This fix was already
applied to other kernels upstream - including 4.19, from which the patch
was taken.

More info at https://bugzilla.kernel.org/show_bug.cgi?id=202495.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
2020-04-27 09:05:18 +08:00
Adrian Schmutzler
a51b43b9fa mvebu: tidy up support for GL.iNet GL-MV1000
This fixes a bunch of cosmetic issues with GL.iNet GL-MV1000:

- apply alphabetic sorting in multiple files
- use armada-3720 prefix for DTS like for other devices
- fix vendor capitalization for model in DTSes
- remove trivial comment in DTS files
- use DEVICE_VENDOR/DEVICE_MODEL
- remove redundant SUPPORTED_DEVICES
- use SOC instead of DEVICE_DTS
- remove empty line at EOF

Fixes: 050c24f05c ("mvebu: add support for GL.iNet GL-MV1000")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-27 08:47:41 +08:00
Li Zhang
d63319113c mvebu: add support for GL.iNet GL-MV1000
This patch adds supports for GL-MV1000.

Specification:
	- SOC: Marvell Armada 88F3720 (1GHz)
	- Flash: 16MB (W25Q128FWSIG)
	- RAM: 1GB DDR4
	- Ethernet: 3x GE (1 WAN + 2 LAN)
	- EMMC: 8GB EMMC (KLM8G1GETF-B041)
	- MicroSD: 1x microSD slot
	- USB: 1x USB 2.0 port(TypeA),1x USB 3.0 port(TypeC)
	- Button: 1x reset button,1x slide switch
	- LED: 3x greed LED
	- UART: 1x UART on PCB (JP1: 3.3V, RX, TX, GND)

	Update firmware instructions
	============================
	In the compiled,please gzip -d xxx.img.gz,then update firmware on uboot web.

Signed-off-by: Li Zhang <li.zhang@gl-inet.com>
[Copied dts file to files-5.4]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-27 08:45:28 +08:00
Sungbo Eo
7194d0b046 ramips: remove unnecessary DEVICE_PACKAGES for Belkin F7C027
kmod-usb-dwc2 and kmod-usb-ledtrig-usbport are not target default packages, and
Belkin F7C027 does not have a USB port anyway. Just drop it.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-04-27 08:42:51 +08:00
Sungbo Eo
9963d43e08 ramips: fix SUPPORTED_DEVICES for Mercury MAC1200R v2
Currently SUPPORTED_DEVICES only contains the old device string. Fix it by
removing the first assignment.

Fixes: c2334ad60d ("ramips/mt76x8: Synchronize Makefiles with DTS compatible")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-04-27 08:42:08 +08:00
Sungbo Eo
a9b1e81ff8 oxnas: move service file to correct place
This service file has been misplaced from the very beginning.

Fixes: dcc34574ef ("oxnas: bring in new oxnas target")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-04-27 08:41:17 +08:00
coolsnowwolf
4306c245cf generic: fix flow table hw offload 2020-04-26 15:36:41 +08:00
René van Dorst
c46d3459a1 ramips: enable SFP port for Ubiquiti ER-X-SFP
SFP cage of this device is connected via a AT8031 phy to port 5 of the switch.
This phy act as a RGMII-to-SerDes converter.

Also a I2C clock gate needs to be enabled in order to access the SFP module via I2C bus.
SFP cage also has module detect pin which is connected to I2C gpio expander.

With this patch the kernel/PHYLINK now can detect, readout and use the SFP module/port.

NOTE: SFP cage / AT8033 PHY only support 1000base-X encoding!
This means that some SGMII modules can work and only at forced 1GBit/full-duplex!

Signed-off-by: René van Dorst <opensource@vdorst.com>
2020-04-26 12:02:00 +08:00
René van Dorst
d2763883a6 kernel: add module to support SFP cages
Enables kernel SFP case support.

Signed-off-by: René van Dorst <opensource@vdorst.com>
2020-04-26 12:01:22 +08:00
DENG Qingfang
c79fa65943 ramips: phy: at803x: support RGMII-to-SerDes and SFP support
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Signed-off-by: René van Dorst <opensource@vdorst.com>
2020-04-26 11:56:09 +08:00
DENG Qingfang
4f19971fbe kernel: backport support for clause 37 1000Base-X auto-negotiation
This patch is needed for clause 37 1000Base-X encoding used in many SFP modules.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Signed-off-by: René van Dorst <opensource@vdorst.com>
2020-04-26 11:55:26 +08:00
Petr Štetiar
8b75e5797a imx6: add back perf monitor related config symbol
Commit 0543eb1110 ("imx6: 5.4: add missing kernel perf monitor
symbol") has added missing kernel config symbol FSL_IMX8_DDR_PMU which
is exposed only when building perf, so add it back.

Fixes: 8d9b36270b ("imx6: refresh kernel config")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-26 11:54:43 +08:00
Petr Štetiar
a7bf3d97d5 kernel: bump 5.4 to 5.4.35
Refreshed one patch.

Run tested: qemu-x86-64
Build tested: x86/64, imx6, sunxi/a53, rockchip/armv8

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-25 21:05:03 +08:00
AmadeusGhost
aac401fc39 lantiq: sync official source code 2020-04-25 18:29:43 +08:00
Alexander Couzens
425ad82d0f lantiq/fritz 7312: set maximum speed to 100 mbit
The fritz 7312 does not support 1000 gbit. Advertising it makes it
worse. Some NIC will change to 1000 gibt and turn off and on again for
ever.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2020-04-25 12:10:56 +08:00
CN_SZTL
0b4f23bcb3
Merge branch '18.06-kernel5.4' of github.com:project-openwrt/openwrt into 18.06-kernel5.4 2020-04-25 11:44:13 +08:00
CN_SZTL
a89aeebf92
Merge Mainline 2020-04-25 11:43:44 +08:00
David Bauer
58a381efda ath79: fix QCA953x DDR and GPIO compatible bindings
The memory as well as GPIO controller had the wrong SoC name used for
their compatible binding.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-25 11:39:31 +08:00
CN_SZTL
11789d9335
kernel: fix myloader on 4.9 2020-04-25 11:34:17 +08:00
David Bauer
22c9f8d75b ath79: correct QCA9550 machine compatible binding
Some boards using a QCA9556 or QCA9558 had their machine compatible
binding incorrectly set to qca,qca9557.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-25 11:33:52 +08:00
David Bauer
b16924954d ath79: rename qca9557.dtsi to qca955x.dtsi
There are at least 3 different chips in the Scorpion series of SoCs.
Rename the common DTSI to better reflect it's purpose for the whole
series.

Also rename the compatible bindings from qca,ar9557 and qca,qca9557
to qca,qca9550.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-25 11:32:37 +08:00
Adrian Schmutzler
26aa165e23 ath79: move tplinkpart.c parser to patches
Between 4.19 and 5.4, mtd parsers have been moved to "parsers"
subdirectory. Like for myloader.c in the previous patch,
this patch moves tplinkpart.c to the kernel patches, so the
code and the kernel includes are at the same location and
the path can be adjusted per kernel.

While at it, remove some outdated kernel version switches from
the C code.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-25 11:29:59 +08:00
Adrian Schmutzler
9bac15ce47 kernel: fix include of myloader.o since kernel 5.4
Between 4.19 and 5.4, mtd parsers have been moved to "parsers"
subdirectory. Based on this, the selection of myloader.o in OpenWrt
was also moved to that subdirectory, while the Kconfig and our local
myloader.c file remained in /drivers/mtd.

This resulted in linking errors like the following (on ath25@5.4):

make[8]: *** No rule to make target 'drivers/mtd/parsers/myloader.o', ...
   needed by 'drivers/mtd/parsers/built-in.a'.  Stop.
make[7]: *** [scripts/Makefile.build:500: drivers/mtd/parsers] Error 2
make[6]: *** [scripts/Makefile.build:500: drivers/mtd] Error 2

Since myloader.c is not too big, this patch moves it to the kernel patches,
allowing to adjust the path for kernel 5.4 and keeping Makefiles and
file paths better in sync.

Other patches have been refreshed accordingly.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-25 11:28:20 +08:00
CN_SZTL
0d6d3fd5d8 kernel: bump 4.19 to 4.19.118
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-25 11:08:19 +08:00
CN_SZTL
89c18f5335 kernel: bump 4.14 to 4.14.177
Fixes:
 - CVE-2020-11669

Remove upstreamd:
 - 001-irqchip-versatile-fpga-Handle-chained-IRQs-properly.patch
 - 002-irqchip-versatile-fpga-Apply-clear-mask-earlier.patch
 - 003-ARM-dts-oxnas-Fix-clear-mask-property.patch

Refresh all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-25 10:18:50 +08:00
CN_SZTL
38032f3a97
Merge Mainline 2020-04-25 08:43:48 +08:00
CN_SZTL
5a192cf749
mtwifi: remove outdated package 2020-04-25 08:42:58 +08:00
CN_SZTL
b3cf46c550
mt7621/76x8: switch to kernel 5.4 2020-04-25 08:35:17 +08:00
CN_SZTL
0ddb22c585 kernel: bump 4.9 to 4.9.220
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-25 08:06:59 +08:00
Leon M. George
e420613151 ipq40xx: wpj428: fix missing MDIO GPIO reset and pinmux
The bootloader does not always initialize the MDIO pins before booting
Linux. E.g. on version "U-Boot 2012.07 [Chaos Calmer 15.05.1,r35193] (Jul
25 2017 - 11:36:26)" this is the case when booting automatically without
activating the U-Boot console.

Without this change, the kernel boot will complain about missing PHYs:

 libphy: ipq40xx_mdio: probed
 ar40xx c000000.ess-switch: Probe failed - Missing PHYs!
 libphy: Fixed MDIO Bus: probed

With this change it will work as expected:

 libphy: ipq40xx_mdio: probed
 ESS reset ok!
 ESS reset ok!
 libphy: Fixed MDIO Bus: probed

Ref: GH-2835
Tested-by: Fredrik Olofsson <fredrik.olofsson@anyfinetworks.com>
Signed-off-by: Leon M. George <leon@georgemail.eu>
[commit description from Fredrik, subject facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-24 21:16:31 +08:00
Adrian Schmutzler
f998fdb8d6 ramips: remove config-4.14 for mt7621/mt76x8
mt7621 and mt76x8 subtargets have been moved to kernel 5.4 and their
DTS(I) files are incompatible to kernel 4.14.

Remove the corresponding kernel config files to signal that more
boldly and to prevent accidentally patching the wrong kernel when
pulling in older config patches.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-24 08:18:16 +08:00
AmadeusGhost
58cf0e0bca octeon: add support for kernel 5.4 2020-04-24 08:15:26 +08:00
AmadeusGhost
83f3fc7c9d ath79: add kernel 5.4 support 2020-04-23 12:00:03 +08:00
CN_SZTL
d713bda74f
Revert "generic: fix flow table hw offload"
This reverts commit b36ae2bdc6.
2020-04-23 11:29:37 +08:00
AmadeusGhost
a18cb784eb mediatek: sync upstream source code 2020-04-23 08:20:22 +08:00
John Crispin
b36ae2bdc6
generic: fix flow table hw offload
Make the driver work with recent upstream changes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-04-23 06:24:14 +08:00
CN_SZTL
8e2e62cb6f
Merge Mainline 2020-04-22 23:18:30 +08:00
John Crispin
c6f0dcd2be generic: fix flow table hw offload
Make the driver work with recent upstream changes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-04-22 17:50:13 +08:00
Koen Vandeputte
5991d737c6 kernel: bump 4.19 to 4.19.117
Refreshed all patches.

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-22 11:05:03 +08:00
Petr Štetiar
b181b86a1d kernel: bump 5.4 to 5.4.34
Refreshed patches.

Run tested: qemu-x86-64, apalis, a64-olinuxino
Build tested: x86/64, imx6, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-22 09:09:42 +08:00
Koen Vandeputte
efb8986b2f
imx6: refresh kernel config
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-21 23:22:28 +08:00
AmadeusGhost
b8a25fb41c mpc85xx: change thermal to bool 2020-04-20 09:38:01 +08:00
AmadeusGhost
6577d6ae05 bcm47xx/63xx: add kernel 5.4 support 2020-04-20 08:30:18 +08:00
CN_SZTL
8b41b12f5b
Merge Mainline 2020-04-19 19:58:30 +08:00
CN_SZTL
a20ee5eabf
Merge Lean's source 2020-04-19 19:35:34 +08:00
Sungbo Eo
6dc2b70c09 ramips: replace pinctrl property names for ipTIME A1004ns
The pinctrl driver had been replaced with the upstream one in b756ea2a90
("ramips: replace pinctrl property names"), but the initial A1004ns support
patch did not reflect the changes. This commit updates its pinctrl property
names.

Fixes: 9169482f64 ("ramips: add support for ipTIME A1004ns")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-04-19 19:05:17 +08:00
AmadeusGhost
c33118190f
bcm63xx: refresh patches (#4372) 2020-04-19 14:31:01 +08:00
AmadeusGhost
b7650efddd ramips: sync upstream source code 2020-04-19 12:29:05 +08:00
Mantas Pucka
0bdcaa1189 generic: spi-nor: fix 4-byte opcode support for w25q256
There are 2 different chips (w25q256fv and w25q256jv) that share
the same JEDEC ID. Only w25q256jv fully supports 4-byte opcodes.
Use SFDP header version to differentiate between them.

Fixes broken reboot on 8devices Habanero since f0f35fdac

Signed-off-by: Mantas Pucka <mantas@8devices.com>
2020-04-19 12:21:00 +08:00
CN_SZTL
0def38e520
Merge Upstream 2020-04-18 12:21:38 +08:00
AmadeusGhost
099db68667 ipq40xx: switch to ath10k 2020-04-18 11:40:34 +08:00
Petr Štetiar
51332ec1c3
kernel: bump 5.4 to 5.4.33
Refreshed patches, removed upstreamed patches:

 oxnas: 001-irqchip-versatile-fpga-Handle-chained-IRQs-properly.patch
 oxnas: 002-irqchip-versatile-fpga-Apply-clear-mask-earlier.patch

Run tested: qemu-x86-64, apalis
Build tested: x86/64, imx6, sunxi/a53

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-04-17 22:44:22 +08:00
CN_SZTL
7f9ab3cee4
Merge Upstream 2020-04-17 22:40:20 +08:00
CN_SZTL
1211ab828d
Merge Lean's source 2020-04-17 22:37:21 +08:00
AmadeusGhost
9448672845
kernel: bump to 4.9.219, 4.14.176, 4.19.115 (#4350)
* kernel: bump 4.14 to 4.14.176

Refreshed all patches.

Remove upstreamed:
- 0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
- 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch
- 184-USB-serial-option-add-Wistron-Neweb-D19Q1.patch

Fixes:
- CVE-2020-8648 (potentially)
- CVE-2020-8647
- CVE-2020-8649

Compile-tested on: cns3xxx, octeontx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

* kernel: bump 4.19 to 4.19.115

Remove upstreamed:
- 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch
- 184-USB-serial-option-add-Wistron-Neweb-D19Q1.patch

Fixes:
- CVE-2020-8647
- CVE-2020-8648 (potentially)
- CVE-2020-8649

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

* kernel: bump 4.9 to 4.9.219

Refreshed all patches.

Altered patches:
- 0026-NET-multi-phy-support.patch

Fixes:
- CVE-2020-8647
- CVE-2020-8648 (Potentially)
- CVE-2020-8649

Compile-tested on: ar71xx
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-17 11:50:34 +08:00
Koen Vandeputte
e111a8a555
kernel: add support for GD25D05 SPI NOR (5.4)
This chip is used on newer RB912UAG-5HPnD r2 and 922UAGS-5HPacD boards:

Before:

[    0.824562] spi-nor spi0.0: unrecognized JEDEC id bytes: c8 40 10 c8 40 10
[    0.831607] spi-nor: probe of spi0.0 failed with error -2

After:

[    0.825347] spi-nor spi0.0: gd25d05 (64 Kbytes)
[    0.830291] 1 routerbootpart partitions found on MTD device spi0.0
[    0.836577] Creating 1 MTD partitions on "spi0.0":
[    0.841448] 0x000000000000-0x000000010000 : "partitions"
[    0.848418] 4 routerbootpart partitions found on MTD device partitions
[    0.855092] Creating 4 MTD partitions on "partitions":
[    0.860318] 0x000000000000-0x00000000c000 : "routerboot"
[    0.866548] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.872832] 0x00000000d000-0x00000000e000 : "bios"
[    0.878580] 0x00000000e000-0x00000000f000 : "soft_config"

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-04-17 05:34:06 +08:00
AmadeusGhost
5ab8650479 ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
AmadeusGhost
04c2018c4f ramips: remove testing-kernrl 2020-04-16 19:53:42 +08:00
AmadeusGhost
d2c3833012 mpc85xx/mvebu/mxs/octeontx/oxnas/sunxi/tegra/zynq: add kernel 5.4 support 2020-04-16 19:38:37 +08:00
AmadeusGhost
caf22aa4ce apm821xx/archs38/armvirt/gemini/imx6/kirkwood/lantiq/malta: add kernel 5.4 support 2020-04-16 18:09:15 +08:00
AmadeusGhost
cc689609d6
ipq806x: 4.19: correct dts for m520 (#4330)
Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-04-16 11:28:05 +08:00
AmadeusGhost
00568e07ed ramips: add basic support for kernel 5.4 2020-04-16 10:00:29 +08:00
AmadeusGhost
ea16f633ac ipq806x: 5.4: add more gmac config for m520
status: fail to startup
2020-04-16 09:06:04 +08:00
CN_SZTL
71bdb47a9b
Revert "ramips: mt7530 disable eee"
This reverts commit 9d1ac8192c.
2020-04-15 21:29:23 +08:00
CN_SZTL
1d9a198011
Merge Upstream 2020-04-15 21:15:07 +08:00
CN_SZTL
06c80d3dd0
Merge Lean's source 2020-04-15 21:06:54 +08:00
Chuanhong Guo
0208bbc1ed
ramips: mt7621: enable lzma-loader for some devices
ubnt er-x/xiaomi/netgear sercomm devices are known to have troble
extracting a big kernel from flash and has support for uncompressed
uimage
This commit uses uncompressed uimage with lzma-loader for these devices
to fix boot issue.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-04-15 20:40:57 +08:00
Chen Minqiang
9d1ac8192c
ramips: mt7530 disable eee
This disable eee for mt7530 on LINUX_5_4

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-04-15 20:39:55 +08:00
Chuanhong Guo
de6e7cb5d8
ramips: define image recipe for uncompressed uimage with loader
Some devices have bootloaders with broken lzma code resulting in failed
decompression or corrupted kernel code.
This image recipe allows to sacrifice 5KB for OpenWrt LZMA loader and
take over the task of decompress kernel.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-04-15 20:38:04 +08:00
Ansuel Smith
a44de85704 ipq806x: add patch to fix broken buttons
From kernel 4.20 msm-gpio driver is broken and cause the
malfunction of the buttons on every ipq806x target.
Add a patch to fix this.

Tested-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-04-15 19:55:27 +08:00
AmadeusGhost
e7c65ce31c generic: refresh phy driver 2020-04-15 18:05:10 +08:00
AmadeusGhost
61bad53e93 ipq806x: 5.4: rewrite dts 2020-04-15 10:26:33 +08:00
AmadeusGhost
ce149a86b9 ipq806x/4.19: fix error dts for m520
Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-04-15 09:35:18 +08:00
CN_SZTL
f5c9391d0a
ipq806x: add Kernel 5.4 (Testing) 2020-04-15 02:06:48 +08:00
CN_SZTL
90f7bbabb1
bcm27xx/bcm53xx: add Kernel 5.4 (Testing) 2020-04-15 02:02:43 +08:00
CN_SZTL
9fd7fa88c8
target/bcm53xx: adjust nand config 2020-04-15 01:28:16 +08:00
CN_SZTL
20ee2055dc
kernel: bump 5.4 to 5.4.32
Remove upstreamed:
* 746-stable-net-dsa-mt7530-fix-null-pointer-dereferencing-in-por.patch

Refreshed all generic patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-15 01:19:50 +08:00
LGA1150
88ecff8632
bcm53xx: enable NAND 2020-04-15 01:05:39 +08:00
CN_SZTL
c5dd056449
mediatek: init kernel 5.4 support 2020-04-15 00:36:20 +08:00
CN_SZTL
b209e03f86
ramips: add Kernel 5.4 (Testing) 2020-04-15 00:30:01 +08:00
CN_SZTL
08d3bda9ab
ramips: mt7621/76x8 add Kernel 5.4 (Testing) 2020-04-14 23:45:24 +08:00
CN_SZTL
6861ca0a6a
ipq806x: init kernel 5.4 support 2020-04-14 23:21:08 +08:00
CN_SZTL
d69b57c2bc
bcm27xx: init kernel 5.4 support 2020-04-14 23:09:10 +08:00
CN_SZTL
e1cde65dc2
bcm53xx: init kernel 5.4 support 2020-04-14 21:39:46 +08:00
CN_SZTL
85887a5586
ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
CN_SZTL
a6c483f2f9
target/ipq40xx: add Kernel 5.4 (Testing) 2020-04-14 20:42:50 +08:00
CN_SZTL
534f1abc20
Merge Upstream 2020-04-14 20:33:17 +08:00
CN_SZTL
86e526f93c
kernel: bump to 4.9.219, 4.14.176, 4.19.115
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-14 20:17:38 +08:00
AmadeusGhost
138d9a3926 ipq40xx: 5.4: refresh patches 2020-04-14 16:25:14 +08:00
CN_SZTL
d7ccf4a3dc
ipq40xx: add dts files for kernel 5.4 2020-04-14 09:30:02 +08:00
AmadeusGhost
f7cdc54602
ipq40xx: add missing device config for rt-ac1300uhp (#4300) 2020-04-14 09:22:11 +08:00
CN_SZTL
9daa977cac
target/x86: add Kernel 5.4 (Testing) 2020-04-14 07:03:36 +08:00
CN_SZTL
468ae867b8
target/ipq40xx: init kernel 5.4 support 2020-04-14 05:19:58 +08:00
CN_SZTL
d3f103f38b
target/x86: zen: copy kernel 4.19 config to 5.4 2020-04-14 04:16:07 +08:00
CN_SZTL
0df7c96021
x86_64: add kernel config 2020-04-14 04:12:53 +08:00
Mathias Kresin
adab38ed12
generic: make all phy drivers kernel 5.0 compatible
It adjusts the code to upstream changes from the commit 3c1bcc8614db
("net: ethernet: Convert phydev advertize and supported from u32 to link
 mode")

Signed-off-by: Mathias Kresin <dev@kresin.me>
2020-04-14 03:55:42 +08:00
Mathias Kresin
2111c6e03f
kernel: swconfig: make compatible with kernel 5.2
Since kernel 5.2 within netlink messages the NLA_F_NESTED nested flag is
validated. But swconfig/swlib doesn't set the flag for
SWITCH_ATTR_OP_VALUE_PORTS related netlink messages and assigning ports
to vlans via

  swconfig dev switch0 vlan 1 set ports '0 1 2 3 4 6t'

Errors put with "Failed to set attribute: Invalid input data or
parameter".

Relax the validation rules and use the deprecated functions, to use the
same level of validation as it was till kernel 5.1. Depending on who has
swconfig related netlink messages implemented, there might be more
broken tools out there and we should keep backward compatibility if
possible.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Tested-by: Rafał Miłecki <rafal@milecki.pl>
2020-04-14 02:59:41 +08:00
CN_SZTL
9cbd449674
kernel: init kernel 5.4 support 2020-04-14 00:08:05 +08:00
Rafał Miłecki
a1aeb10921
kernel: backport mtd partition address fix sent upstream
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2020-04-13 23:43:08 +08:00
CN_SZTL
eb020983ca
target/generic: add missing config 2020-04-13 22:21:52 +08:00
AmadeusGhost
e225cb6e02 package: disable duplicate packages 2020-04-13 09:05:10 +08:00
AmadeusGhost
05e01ab1da mtwifi: correct makefile 2020-04-12 22:00:25 +08:00
AmadeusGhost
f19db3103c mtwifi: add dual 7615 support
From Tang Haili dalao, also add new package for dbdc devices.
2020-04-12 17:08:11 +08:00
AmadeusGhost
00d40a40ac
ipq40xx: fix support for Asus RT-AC1300UHP in 4.19 (#4285)
RT-AC1300UHP has 256M memory and does not need to use ath10k-ct-smallbuffers.

Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-04-12 12:04:02 +08:00
Jo-Philipp Wich
12b295cf20
generic: drop 616-net_optimize_xfrm_calls.patch
The conditional check introduced by this patch may trigger a NULL pointer
dereference in case the result of dev_net() is NULL.

Since the purpose of this patch is neither sufficiently explained and since
this patch apparently has never been submitted upstream despite it being in
the pending-* patch directory, I propose to drop it without replacement.

If the performance implications of dropping this patch are found to be
significiant, it should be reintroduced with proper description and
benchmark results.

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2943
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-12 07:47:50 +08:00
AmadeusGhost
fd72bf35b7 ipq40xx: fix support for Asus RT-AC1300uhp in 4.19
RT-AC1300UHP has 256M memory and does not need to use ath10k-ct-smallbuffers.

Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-04-11 19:54:00 +08:00
AmadeusGhost
dd4357ebf3 ramips: sync upstream source code 2020-04-10 16:18:43 +08:00
CN_SZTL
40d8704d41
linux/mt7621: fix dependency 2020-04-09 18:42:39 +08:00
AmadeusGhost
2cdcee23fb
ipq40xx: device: switch to ath10k-ct (#4239) 2020-04-09 14:00:56 +08:00
lean
12b558bbd4 amule: dyn linked 2020-04-09 00:30:15 +08:00
lean
aa8f942bf9 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2020-04-07 22:44:45 +08:00
lean
a1b538a9f5 ipq40xx: switch to ath10k-ct 2020-04-07 22:44:32 +08:00
AmadeusGhost
f095b225dd
bcm27xx: rpi4: enable wifi in first boot (#4220) 2020-04-07 21:59:03 +08:00
CN_SZTL
526a2b4856
Merge Lean's source 2020-04-07 21:24:17 +08:00
lean
2a1f9e6fdf target: add luci-app-music-remote-center 2020-04-07 16:17:22 +08:00
AmadeusGhost
b622523565
ramips: improve support for HiWiFi HC5962 (#4195)
* ramips: increase HiWiFi HC5962 kernel partition to 4M

Increase kernel partition because 2M is insufficient for 4.19
Because the partition changes, previous version of OpenWrt cannot upgrade to this version

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>

* ramips: use all reserved space for HiWiFi HC5962

Idea was from ad6c6361f9 ("ath79: enable all space on Netgear ar9344-based WNDR routers")

These stock partitons: "backup", "hw_panic", "overly", firmware_backup", "opt"
do not contain any device-specific data and can be used for /overlay, resulting in
121M space
Users should erase those partitions with command `mtd erase <partition name>` prior to
upgrading to this version

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>

Co-authored-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2020-04-06 23:29:11 +08:00
CN_SZTL
c0a2da80f2
kernel: bump 4.9 to 4.9.218
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-06 01:32:37 +08:00
CN_SZTL
02009b59e6
kernel: bump 4.19 to 4.19.114
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-06 01:14:37 +08:00
CN_SZTL
011f13255b
kernel: bump 4.14 to 4.14.175
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-06 00:58:37 +08:00
CN_SZTL
b34ff3b4fa
Merge Lean's source 2020-04-05 21:05:21 +08:00
AmadeusGhost
08637d8262
ar71xx: fix alloc_page_frag issue (#4184)
cherry-pick from 819800ab4f
2020-04-05 18:32:06 +08:00
AmadeusGhost
fd954e61e5 ipq40xx: enable ath10k_thermal by default 2020-04-05 11:28:04 +08:00
ElonH
af97c3cda9
mt7621: add MLX5 config 2020-04-04 18:50:04 +08:00
AmadeusGhost
14667d35c2 target: refresh patches 2020-04-04 17:30:28 +08:00
AmadeusGhost
7d597c5347
mac80211: switch to upstream owl-loader driver (#4164)
The Owl Loader (named after the codename that Atheros gave
these devices back in the day) has been accepted upstream.

This patch removes the "misc" driver OpenWrt had and adds
the remaining differences against the version that ships
with 5.4-rc1 into a separate "120-owl-loader-compat.patch"
file that can be cut down once AR71XX is being dealt with.

Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2020-04-04 15:55:52 +08:00
AmadeusGhost
6f0cc1cdf1 mac80211: switch to upstream owl-loader driver 2020-04-04 01:05:15 +08:00
AmadeusGhost
86d19b3700 bcm27xx: rpi4: luci: set architecture 2020-04-03 19:30:07 +08:00
AmadeusGhost
9a65c3ef74
treewide: revert use new procd sysupgrade variable (#4139) 2020-04-02 13:29:45 +08:00
CN_SZTL
d3151feec4
Kernel 4.9: remove outdated patches 2020-04-02 01:08:36 +08:00
AmadeusGhost
ed025d9baa config: enable ext4 rootfs and gzip
Also disable for x86 by default
2020-04-01 16:08:54 +08:00
CN_SZTL
b9749d61aa
kernel: bump 4.9 to 4.9.217
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-01 07:52:10 +08:00
CN_SZTL
211fbcc199
kernel: bump 4.19 to 4.19.113
Remove upstream patches:
- 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-01 07:37:21 +08:00
CN_SZTL
9a4de1f5a2
kernel: bump 4.14 to 4.14.174
Remove upstream patches:
- 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-04-01 06:32:54 +08:00
AmadeusGhost
cbef9a23e4 treewide: Revert improve sysupgrade support 2020-03-31 18:21:47 +08:00
ElonH
77d245bdfd
linux: config missing
Solarflare SFC9000/SFC9100-family MTD support (SFC_MTD) [Y/n/?] (NEW) aborted!
Solarflare SFC9000/SFC9100-family MCDI logging support (SFC_MCDI_LOGGING) [Y/n/?] (NEW) aborted!
2020-03-31 13:17:00 +08:00
CN_SZTL
d73ca39ef4
Merge Lean's source 2020-03-30 21:14:50 +08:00