Commit Graph

1329 Commits

Author SHA1 Message Date
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
lean
427e7ec56f luci-app-airplay2: open to all target 2020-03-30 20:33:09 +08:00
lean
32964d4b71 luci-app-airplay2: open to all target 2020-03-30 20:27:31 +08:00
CN_SZTL
900f5680ed
Merge Lean's source 2020-03-30 01:26:49 +08:00
lean
aad03293fa x86: switch and optimize 4.19 kernel 2020-03-30 01:13:43 +08:00
CN_SZTL
f616ec9119
Merge Lean's source 2020-03-29 19:41:54 +08:00
lean
51fc01f88c luci-app-airplay2: add airplay2 for x86 2020-03-29 19:33:36 +08:00
CN_SZTL
347aebcbee
Merge Lean's source 2020-03-29 02:51:12 +08:00
lean
bea383627c x86: adjust some kernel module for k4.9 2020-03-29 02:14:15 +08:00
lean
295e835f0c ajust some default package setting for x86 32bit 2020-03-29 01:33:43 +08:00
CN_SZTL
84e42d098f
Merge Lean's source 2020-03-29 00:32:36 +08:00
SJZ
3b7228f4f5
Remove repeat select zerotier (#4068) 2020-03-28 20:33:42 +08:00
AmadeusGhost
424d547cf1 bcm27xx: rpi4: set vht40 by default 2020-03-28 19:25:31 +08:00
CN_SZTL
d7d5d2e028
x86: fix path for qemu-img
This reverts commit 7346fdca12.
2020-03-27 20:07:02 +08:00
CN_SZTL
33b6c553ad
Revert "Add support for FriendlyARM rk3328 boards routers"
This reverts commit 8259f4fbe8.
2020-03-27 19:59:13 +08:00
CN_SZTL
b1f9dd475d
Merge Lean's source 2020-03-27 17:01:40 +08:00
AmadeusGhost
77b85a3e18
ipq806x: add i2c chips support for m520 (#4055)
This commit enable lm75 and pcf8563 for m520.

Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-03-27 16:56:25 +08:00
CN_SZTL
5c947863e2
kernel: AQC111 driver: add missing linkmode header 2020-03-26 19:55:09 +08:00
AmadeusGhost
964490bd53 ipq40xx: improve support for r619ac
This commit enable 128M nand and disable pcie wake by default, pcie is
designed for 4G network cards instead of wireless network cards. Due to
boardname change, we should flash into ubi via opboot/pbboot.
2020-03-26 15:20:46 +08:00
CN_SZTL
2b448028d3
kernel/4.9: fix aqc111 driver patch 2020-03-25 22:22:17 +08:00
CN_SZTL
4b17e0bef5
kernel: add aqc111 driver 2020-03-25 21:51:33 +08:00
CN_SZTL
983bd2d46f
Merge Lean's source 2020-03-25 19:11:35 +08:00
lean
7346fdca12 Revert "x86: fix path for qemu-img (#3856)"
This reverts commit d291e24956.
2020-03-25 11:43:13 +08:00
Chuanhong Guo
41081ebbd0 mediatek: mt7629: fix ethernet default config
1. fix typo: ucidef_set_interfaces_wan -> ucidef_set_interface_wan
2. change board name to mt7629-rfb to match upstream dts

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-03-25 08:25:12 +08:00
CN_SZTL
fbc565c228
Merge Lean's source 2020-03-24 20:20:12 +08:00
lean
83fe56c426 x86: remove core2 target 2020-03-24 18:38:45 +08:00
CN_SZTL
c73762f9cd
Merge Lean's source 2020-03-24 04:47:40 +08:00
AmadeusGhost
548d409854 ipq40xx/806x: add u9300 4G driver
From @ksong008 dalao
2020-03-23 23:32:19 +08:00
AmadeusGhost
b63e2effbd ipq806x: fix i2c support for m520
dmesg:
  [   15.868426] lm75 0-0048: hwmon0: sensor 'lm75'
  [   15.922580] Bluetooth: RFCOMM TTY layer initialized
  [   15.922610] Bluetooth: RFCOMM socket layer initialized
  [   15.926267] Bluetooth: RFCOMM ver 1.11
  [   15.939812] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as
  rtc0

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2020-03-23 19:28:37 +08:00
z826540272
fb6ab3dc56
MT7621 disable switch EEE (#3963)
* revert: ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control

revert: ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default
This revert c8f8e59
The TX/RX flow control is not the cause of the TX timeouts issue

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: net/mediatek fix logical error

ramips: net/mediatek fix logical error

fe_empty_txd() should return `tx_ring_size - 1` on ring empty, and
return 0 on ring full.

* ramips: net/mediatek disable eee

ramips: net/mediatek disable eee

This disable eee for mt7530 ports, it causes the link down/up
issue, which happens when connecting to 100Mbit switch

Fixes: FS#1449

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-23 18:14:35 +08:00
Daniel Golle
67c58b1bde
oxnas: yet another irqchip related patch
This time DTS fix, again from Sungbo Eo <mans0n@gorani.run>
  ARM: dts: oxnas: Fix clear-mask property

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 9e5a25846f)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-03-23 01:22:59 +08:00
Daniel Golle
7507bee86d
oxnas: backport another fix for irqchip
Sungbo Eo <mans0n@gorani.run> submitted another patch fixing an error
on reboot:
  irqchip/versatile-fpga: Apply clear-mask earlier

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 19af00850f)
2020-03-23 01:22:44 +08:00
CN_SZTL
a225a908b2
Merge Lean's source 2020-03-22 19:07:54 +08:00
AmadeusGhost
fd76b93998
ipq40xx: add missing label for cm520 (#3935) 2020-03-22 16:38:45 +08:00
Xiaok
d291e24956
x86: fix path for qemu-img (#3856) 2020-03-22 10:19:20 +08:00
CN_SZTL
f2fd3a4487
Merge Lean's source 2020-03-21 22:34:01 +08:00
AmadeusGhost
86e132e34b
ramips: fix GHL support for MX25L25635E flash (#3906)
Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-21 22:19:30 +08:00
AmadeusGhost
66de6c5050
luci-app-cpufreq: drop untest target (#3915)
Someone reports that it has bug in arm64
2020-03-21 22:17:09 +08:00
CN_SZTL
2e668211bb
oxnas: backport patch fixing hang after reboot 2020-03-21 01:27:39 +08:00
CN_SZTL
dc577dca98
Merge Lean's source 2020-03-21 01:20:39 +08:00
lean
667d594da4 Revert "mt7621: TCP and UDP traffic is forwarded correctly by HWNAT (1% CPU usage)"
This reverts commit cd59b49863.
2020-03-20 14:14:03 +08:00
CN_SZTL
0dec59280f
Merge Lean's source 2020-03-19 23:10:10 +08:00
lean
ed0e83ee6c ramips: mt7530: Implement set_port_link 2020-03-19 22:58:39 +08:00
Chen Minqiang
6dede0f8a5 revert: ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default
This revert c8f8e59816
The TX/RX flow control is not the cause of the TX timeouts issue

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-19 21:36:04 +08:00
Koen Vandeputte
3891769528 kernel: bump 4.19 to 4.19.110
Refreshed all patches.

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

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

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-19 17:50:48 +08:00
AmadeusGhost
c984acad1f imx6: refresh 4.19 patch 2020-03-19 17:50:03 +08:00
AmadeusGhost
92d2f94e3d kernel: bump 4.14 to 4.14.173 2020-03-19 17:40:18 +08:00
AmadeusGhost
2f66cce3e4 fix file permissions 2020-03-19 13:00:46 +08:00
AmadeusGhost
a0e673cec5 RPI_AXIPERF: move to generic config 2020-03-17 22:08:18 +08:00
CN_SZTL
af5cc73e79
Merge Lean's source 2020-03-17 20:40:55 +08:00
lean
5af6281bb9 bcm2711: add RPI_AXIPERF Symbol 2020-03-17 19:44:25 +08:00
AmadeusGhost
b36b079134
Revert 'kernel: update 4.19 patch' (#3850) 2020-03-17 18:47:05 +08:00
AmadeusGhost
ae2698ceb5 Merge Lean's source 2020-03-17 17:30:16 +08:00
lean
3d3a95e5b4 ramips: update mt7530 switch settings 2020-03-17 02:03:47 +08:00
lean
62eb2434f5 kernel: update v4.19 kernel config 2020-03-17 01:56:13 +08:00
AmadeusGhost
a1807936af
ramips: add xiaomi_miwifi-r3 support (#3839)
* ramips: add xiaomi_miwifi-r3 support

Specification:
 - CPU: 580 MHz
 - Flash size: 128 MiB NAND
 - RAM size: 128 MiB DDR2
 - Wireless No1: SoC-integrated: MT7620A 2x2 MIMO 802.11b/g/n (2.4 GHz)
 - Wireless No2: On-board chip: MT7612E 2x2 MIMO 802.11a/n/ac (5 GHz)
 - Switch: MT7620 built-in 10/100 switch w/ vlan support
 - USB: 2.0 x1

Flash instructions:
 1. access ssh via https://wiki.openwrt.org/toh/xiaomi/mir3
 2. in ssh:
      nvram set flag_last_success=1
      nvram set boot_wait=on
      nvram set uart_en=1
      nvram commit
      mtd write lede-ramips-mt7620-miwifi-r3-squashfs-kernel1.bin kernel1
      mtd write lede-ramips-mt7620-miwifi-r3-squashfs-rootfs0.bin rootfs0
      reboot

If you want to revert back to stock fw while on LEDE:
  insert usb stick (FAT/FAT32) with stock fw renamed to miwifi.bin
  fw_setenv flag_last_success 0
  power off the device
  hold the reset button and power on the device, keep holding the reset button until yellow led starts blinking.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: add mt7620-nand driver for NAND flash

This add the mt7620-nand driver
and enable nand ubifs for subtarget mt7620

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-17 01:39:45 +08:00
Chen Minqiang
6a433f181b ramips: add mt7620-nand driver for NAND flash
This add the mt7620-nand driver
and enable nand ubifs for subtarget mt7620

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-16 19:29:52 +08:00
Chen Minqiang
ef26af2420 ramips: add xiaomi_miwifi-r3 support
Specification:
 - CPU: 580 MHz
 - Flash size: 128 MiB NAND
 - RAM size: 128 MiB DDR2
 - Wireless No1: SoC-integrated: MT7620A 2x2 MIMO 802.11b/g/n (2.4 GHz)
 - Wireless No2: On-board chip: MT7612E 2x2 MIMO 802.11a/n/ac (5 GHz)
 - Switch: MT7620 built-in 10/100 switch w/ vlan support
 - USB: 2.0 x1

Flash instructions:
 1. access ssh via https://wiki.openwrt.org/toh/xiaomi/mir3
 2. in ssh:
      nvram set flag_last_success=1
      nvram set boot_wait=on
      nvram set uart_en=1
      nvram commit
      mtd write lede-ramips-mt7620-miwifi-r3-squashfs-kernel1.bin kernel1
      mtd write lede-ramips-mt7620-miwifi-r3-squashfs-rootfs0.bin rootfs0
      reboot

If you want to revert back to stock fw while on LEDE:
  insert usb stick (FAT/FAT32) with stock fw renamed to miwifi.bin
  fw_setenv flag_last_success 0
  power off the device
  hold the reset button and power on the device, keep holding the reset button until yellow led starts blinking.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-03-16 15:39:19 +08:00
Sungbo Eo
525c915c75 layerscape: add kmod-i2c-mux to DEVICE_PACKAGES for traverse-ls1043
kmod-i2c-mux-pca954x will not get into images unless kmod-i2c-mux is added to
DEVICE_PACKAGES as well.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(cherry picked from commit dffbe668ab)
2020-03-16 15:28:18 +08:00
AmadeusGhost
f8d1eecc08
ramips: sync upstream source code (#3805) 2020-03-15 19:14:19 +08:00
CN_SZTL
6d33f0d6be
Merge Lean's source 2020-03-15 16:12:16 +08:00
AmadeusGhost
60326ac7de CM520-79F: add missing label 2020-03-15 15:39:41 +08:00
lean
21d4809d79 ipq40xx: switch back to kernel 4.14 2020-03-15 14:26:30 +08:00
AmadeusGhost
eff2d6c4a1 ramips: sync upstream source code 2020-03-14 12:15:16 +08:00
AmadeusGhost
7a69201b43 m520: disable gsbi2 serial 2020-03-14 11:29:38 +08:00
AmadeusGhost
722777e783 ramips: change wireless driver to mtwifi for dual 7615 devices 2020-03-14 11:25:12 +08:00
CN_SZTL
43e49f8322
Merge Lean's source 2020-03-13 23:00:10 +08:00
haxc
978c3f7a60
Fix mw4530r forgot to add network settings (#3788)
* ath79: add support for TP-Link TL-WR882N/WR885N/WR886N

This adds support for the various clones of the TL-WR885N recently
supported  ("ath79: add support for TP-Link TL-WR885N v1"):

- tplink,tl-wr882n-v1
- tplink,tl-wr882n-v2
- tplink,tl-wr882n-v3
- tplink,tl-wr885n-v1
- tplink,tl-wr885n-v2
- tplink,tl-wr886n-v2
- tplink,tl-wr886n-v3
- tplink,tl-wr886n-v4
- tplink,tl-wr886n-v5
- tplink,tl-wr886n-v6
- tplink,tl-wr886n-v7

These devices are cloned in ar71xx. All models added in this patch are the same hardware CPU

WR885n V2 was tested.

Specifications:
- SOC: Qualcomm Atheros TP9343-AL3A
- CPU: 750MHz
- Flash: 2 MiB (AH1446 25Q16BS1G E5N102)
- RAM: 16 MiB (Zentel A3S28D40JTP-50)
- WLAN: Qualcomm Atheros TP9343 450Mbps
- Ethernet: Atheros AR8228/AR8229  4 port (100M)

添加TP9343芯片的路由器型号支持,TL-WR882N/WR885N/WR886N系列

* ath79: add support for MerCury MW4530R v1

重新添加水星MW4530R路由器支持

* Repair generate mw4530r firmware default is 8M

* Fix mw4530r forgot to add network settings
2020-03-13 22:52:20 +08:00
AmadeusGhost
df1779b127
ipq40xx: fix build error on 4.14 (#3786) 2020-03-13 21:34:58 +08:00
CN_SZTL
262363d79c
target/ipq40xx: update Kconfig for kernel 4.14 2020-03-13 21:07:58 +08:00
CN_SZTL
24bdd6f0fb
target/x86: add missing symbol for kernel 4.9 2020-03-13 20:47:36 +08:00
AmadeusGhost
6cc2fcb777 XiaoMi R3P: change wireless driver to mtwifi 2020-03-13 19:20:15 +08:00
CN_SZTL
e17aca712d
Merge Lean' ssource 2020-03-13 18:34:46 +08:00
lean
8ecd6c8b3c kernel: fix 4.9 sfe patch 2020-03-13 15:42:21 +08:00
AmadeusGhost
bbb241bf2a
generic-4.9: fix error patch (#3776)
This commit fix  39edfa9.
2020-03-13 14:28:09 +08:00
AmadeusGhost
39edfa99bd
generic: refresh patch (#3774)
* generic-4.19: refresh patch

* generic-4.9: refresh patch

cherry-pick 2515a5e from @1715173329 dalao
2020-03-13 14:05:24 +08:00
lean
c9fe160157 kernel: bump 4.9 to 4.9.215 2020-03-13 12:17:42 +08:00
lean
3bef40a0cb kernel: bump to 4.14.172 / 4.19.108 2020-03-13 12:11:40 +08:00
AmadeusGhost
f2f7de06ef hack-4.19: refresh patch 2020-03-13 11:50:45 +08:00
lean
cd59b49863 mt7621: TCP and UDP traffic is forwarded correctly by HWNAT (1% CPU usage) 2020-03-13 11:43:59 +08:00
Chen Minqiang
ab6b020a65 kernel: fix crash nf_xfrm_me_harder 2020-03-13 11:25:44 +08:00
Chuanhong Guo
639dd37fd7 ramips: mt76x8: pinctrl: add a hack for ESD_MODE bit in GPIO1_MODE
This bit is used to specify sdxc pinmap for mt76x8. Details available
in patch description.

To properly solve this problem and the other pinctrl hack in mtk-mmc
driver we'll need to write a dedicated pinctrl driver for mt76x8,
with the support for configuring AGPIO_MODE and RGCTL registers as
well as specially handling GPIO reservation/pinctrl setup for ESDMODE.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2020-03-13 11:15:47 +08:00
lean
8b4a939c56 kernel: backport out-of-memory fix for non-Ethernet devices (zerotier, mwan3 etc...) 2020-03-13 11:15:36 +08:00
lean
9db10a8cb2 ipq40xx: Qualcomm Crypto Engine fixes 2020-03-13 09:45:45 +08:00
AmadeusGhost
fb56108243 ipq806x: add i2c devices support for m520
This commit enable lm75 and pcf8563 for m520.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2020-03-12 21:38:09 +08:00
CN_SZTL
22452590e9
Merge Lean's source 2020-03-12 19:42:03 +08:00
LEAN-ESX
de64f40b56 ipq40xx: switch to kernel 4.19 2020-03-12 04:36:40 -07:00
CN_SZTL
1dba06c12d
Merge Lean's source 2020-03-11 23:57:43 +08:00
haxc
071645c698
Repair generate mw4530r firmware default is 8M (#3732)
* ath79: add support for TP-Link TL-WR882N/WR885N/WR886N

This adds support for the various clones of the TL-WR885N recently
supported  ("ath79: add support for TP-Link TL-WR885N v1"):

- tplink,tl-wr882n-v1
- tplink,tl-wr882n-v2
- tplink,tl-wr882n-v3
- tplink,tl-wr885n-v1
- tplink,tl-wr885n-v2
- tplink,tl-wr886n-v2
- tplink,tl-wr886n-v3
- tplink,tl-wr886n-v4
- tplink,tl-wr886n-v5
- tplink,tl-wr886n-v6
- tplink,tl-wr886n-v7

These devices are cloned in ar71xx. All models added in this patch are the same hardware CPU

WR885n V2 was tested.

Specifications:
- SOC: Qualcomm Atheros TP9343-AL3A
- CPU: 750MHz
- Flash: 2 MiB (AH1446 25Q16BS1G E5N102)
- RAM: 16 MiB (Zentel A3S28D40JTP-50)
- WLAN: Qualcomm Atheros TP9343 450Mbps
- Ethernet: Atheros AR8228/AR8229  4 port (100M)

添加TP9343芯片的路由器型号支持,TL-WR882N/WR885N/WR886N系列

* ath79: add support for MerCury MW4530R v1

重新添加水星MW4530R路由器支持

* Repair generate mw4530r firmware default is 8M
2020-03-11 23:03:04 +08:00
AmadeusGhost
af3376f733 dir-878: change wireless driver to mtwifi 2020-03-11 16:36:28 +08:00
Leon M. George
dd74723386 ipq40xx: add cpximg to flash Compex WPJ428 via bootloader
Generate a cpximg that is compatible with the cpximg loader in Compex' u-boot.
The cpximg loader can be started either by holding the reset button during power
up or by entering the u-boot prompt and entering 'cpximg'.
Once it's running, a TFTP-server under 192.168.1.1 will accept an image
appropriate for the board revision that is etched on the board (e.g. 6A04).

The image can be pushed using tftp:
  tftp -v -m binary 192.168.1.1 -c put openwrt-ipq40xx-generic-compex_wpj428-squashfs-cpximg-6a04.bin

cpximg files can also be used with the sysupgrade utility in stock images.
(add SSH key in luci for root access)

In mkmylofw_32m, the calculation of the "partition size" has been preferred
to just padding the partition as this will result in less block transfers
during flashing (while the additional complexity is bearable).

Signed-off-by: Leon M. George <leon@georgemail.eu>
Co-developed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-03-11 09:00:53 +08:00
AmadeusGhost
8ba4d0d346 bcm27xx: fix error patch
This commit fix efc4ae1
2020-03-11 08:28:42 +08:00
CN_SZTL
2515a5e031
kernel/4.9: refresh all patches 2020-03-11 00:46:32 +08:00
CN_SZTL
4b0ab60da2
target/generic: fix kernel419 config 2020-03-11 00:24:21 +08:00
Koen Vandeputte
efc4ae1c12
kernel: bump 4.9 to 4.9.215
Refreshed all patches.

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

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-10 22:23:13 +08:00
CN_SZTL
93f4e20f3f
Merge Lean's source 2020-03-10 22:18:01 +08:00
AmadeusGhost
252c766ae3
kernel: generic: add missing config symbol (#3710)
* kernel: generic: add missing 4.19 config symbol

* kernel: generic: add missing 4.14 config symbol
2020-03-10 22:01:50 +08:00
AmadeusGhost
6486cafc92 kernel: generic: add missing config symbol 2020-03-10 20:35:55 +08:00
AmadeusGhost
abe8be8efe ramips: sync upstream source code 2020-03-10 15:55:08 +08:00
Koen Vandeputte
46d074fa34 kernel: bump 4.19 to 4.19.108
Refreshed all patches.

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

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-10 11:25:26 +08:00
Koen Vandeputte
aee0dfa544 kernel: bump 4.14 to 4.14.172
Refreshed all patches.

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

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-03-10 11:16:01 +08:00