53340 Commits

Author SHA1 Message Date
SuLingGG
67e8f2075e
scripts/download.pl: update openwrt.cc mirror url
[updated url]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 009c17217107834cdf5ccc336e791ef0b33eada1)
2021-08-30 23:07:08 +08:00
Tianling Shen
382f7f59d9
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-30 16:47:37 +08:00
Hauke Mehrtens
085c67762d kernel: bump 5.4 to 5.4.143
Manually rebased:
  bcm27xx/patches-5.4/950-1031-net-lan78xx-Ack-pending-PHY-ints-when-resetting.patch

Removed upstreamed:
  mvebu/patches-5.4/100-cpufreq-armada-37xx-forbid-cpufreq-for-1.2-GHz-variant.patch

All others updated automatically.

Compile-tested on: lantiq/xrx200, armvirt/64
Runtime-tested on: lantiq/xrx200, armvirt/64

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-08-29 21:30:32 +02:00
gw826943555
70668acaf4
ipq40xx: improve cpu operating points and overclock to 896Mz
This patch will match the clock-latency-ns values in the device tree
for those found inside the OEM device tree and kernel source code and
unlock 896Mhz CPU operating points.

(cherry picked from commit a8a01ea334554659f7e1eb3251d7382d7da735e7)
2021-08-29 20:44:33 +08:00
Eneas U de Queiroz
ff31cfb856 openssl: bump to 1.1.1l
This version fixes two vulnerabilities:
  - SM2 Decryption Buffer Overflow (CVE-2021-3711)
    Severity: High

  - Read buffer overruns processing ASN.1 strings (CVE-2021-3712)
    Severity: Medium

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 7119fd32d397567931e63dbbf72014e95624018f)
2021-08-28 15:51:41 +02:00
Andre Heider
5bfb9c30a1 prereq-build: require python3-distutils
Debian and Ubuntu ship a python3-minimal package which does not include
the distutils module. This is not supported by upstream and can be
considered a broken python distribution.

In practice, many scripts depend on said module, and this is a reoccuring
pain point for building various OpenWrt packages.

Require and check for said module, enough time has been wasted on this.

A list of just the most recent issues:
https://github.com/openwrt/packages/pull/16304
https://github.com/openwrt/packages/pull/16027
https://github.com/openwrt/packages/pull/15443
https://github.com/openwrt/packages/pull/14394
https://github.com/openwrt/packages/pull/12909
https://github.com/openwrt/packages/issues/12443
https://github.com/openwrt/packages/pull/11035
https://github.com/openwrt/packages/issues/10993

Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit 60af8d753343691c4a647bfc7c51ef6eb92df9f2)
2021-08-28 15:48:08 +02:00
Hauke Mehrtens
f78017006b uboot-layerscape: fix dtc compilation on host gcc 10
Backport a patch from upstream U-Boot to fix the compile with host GCC 10.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 8d143784cb8fafccdbcdc0bd5d1aa47d3d676f70)
2021-08-28 15:48:08 +02:00
Hauke Mehrtens
8f039acee4 uboot-at91: fix dtc compilation on host gcc 10
Backport a patch from upstream U-Boot to fix the compile with host GCC 10.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit a1034afba8ea8bec48e2528fdae0fb74a6757e53)
2021-08-28 15:48:08 +02:00
Tianling Shen
854a8a6780
generic: drop duplicate patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-28 06:02:41 +08:00
Tianling Shen
5218a1ee21
generic: apply arm64 model name hack
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-28 06:01:55 +08:00
Tianling Shen
5dd4013145
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-28 03:11:37 +08:00
David Bauer
378769b555 kernel: bump 5.4 to 5.4.142
Compile-tested: ath79-generic ipq40xx-generic
Run-tested: ipq40xx-generic

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-08-24 19:41:47 +02:00
Stijn Tintel
662401d903 ipq40xx: fix Edgecore ECW5211 boot
The bootloader will look for a configuration section named ap.dk01.1-c2
in the FIT image. If this doesn't exist, the device won't boot.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit a43da1be43ae251f0edaa6419612e600fc6ec972)
2021-08-24 19:41:47 +02:00
Tianling Shen
4d3cb7459f
Revert "ath79: csac: sync with upstream source"
This reverts commit a4f8dde6e9358fede87072b384953fe94ebc892c.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-24 02:49:51 +08:00
Tianling Shen
a4f8dde6e9
ath79: csac: sync with upstream source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 2385ffcedb00b9f46efd553f65972ef2a9de9db8)
2021-08-24 02:49:19 +08:00
Tianling Shen
35028a39c7
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-23 20:42:19 +08:00
Tianling Shen
99da7628a7
README: fix indent
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit f134c62bf7953aaa5cc4d8042a86db031e868614)
2021-08-23 20:39:37 +08:00
Tianling Shen
d801983c8f
README: futher style fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 70c1b0e2f63a6f88ab6267e71bdbf8bf8944cd27)
2021-08-23 20:39:33 +08:00
Tianling Shen
dd16833e95
README: minor typo fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 75300e5ca1da4b7a7369f1d5f2a42460d414f362)
2021-08-23 20:39:28 +08:00
Tianling Shen
2944f5e37f
README: rewrite based on OpenWrt
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 56a0a12e171fbe4ae1af3fc799487305c3945f76)
2021-08-23 20:39:21 +08:00
Paul Blazejowski
61c65acbda ath79: kernel: Add missing quote to drivers/mfd/Kconfig
A missing quote in target/linux/ath79/patches-5.x/920-mikrotik-rb4xx.patch
produces:

...
scripts/kconfig/conf  --syncconfig Kconfig
drivers/mfd/Kconfig:2016:warning: multi-line strings not supported
...

This patch adds missing closing quote, fixing the above warning.

Signed-off-by: Paul Blazejowski <paulb@blazebox.homeip.net>
(cherry picked from commit f7374bce00a97fda78ace3acaef48369e8246814)
2021-08-22 20:02:31 +02:00
Álvaro Fernández Rojas
25d9fe8468 bcm27xx-userland: update to latest version
Properly recognise all BCM2711 variants

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-08-21 19:39:55 +02:00
AmadeusGhost
e34b976c64
feeds: routing: update project url
(cherry picked from commit aed47c6b81864919f5541ca0a3293244267606b2)
2021-08-19 21:09:00 +08:00
Ronny Kotzschmar
5cdd4cb868
rockchip: reliably distribute net interrupts
On the NanoPI R4S it takes an average of 3..5 seconds for the network devices
to appear in '/proc/interrupts'.
Wait up to 10 seconds to ensure that the distribution of the interrupts
really happens.

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit fd65ce6f322cd36be4e58e79581e7b65b28880a4)
2021-08-19 15:59:22 +08:00
QiuSimons
09574e88b9
rockchip: distribute R2C net interrupts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9ba4de031d51a4d4d9dd39fec26bf4ebf739d4ed)
2021-08-19 15:55:00 +08:00
Michael Heimpold
35eb06066e bcm27xx-userland: factor out a -dev package
Installing headers and static libraries to the target system seems
to be not required for most use cases, so let's factor them
out into a dedicated -dev package.

This cuts down to disk usage to around 50% of the original
package to ~ 2MB - not that disk space is an issue normally,
but when using inside an initramfs only project, it counts.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-08-18 20:29:47 +02:00
Tianling Shen
ad4aa8df39
rockchip: nanopi r4s: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ec04bb231fd507240775cd5a964d47ee9157b056)
2021-08-17 19:46:59 +08:00
Tianling Shen
e418251fa5
uboot-rockchip: fix typo error of patch name
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 301489a8d92a94202335c523b0d92e2130644f2f)
2021-08-15 18:08:44 +08:00
Tianling Shen
95c4cc89de
rockchip: add Motorcomm PHY driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 83ce2ba131fbc46870d4074a7d4e58e16b4ecbfd)
2021-08-13 03:25:45 +08:00
Tianling Shen
9e0e1f4685
rockchip: add NanoPi R2C support
This board is a fork of NanoPi R2S, with the native NIC changed.

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-13 03:24:51 +08:00
Tianling Shen
b9b3fd0df0
uboot-rockchip: add NanoPi R2C support
Add support for the FriendlyARM NanoPi R2C.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 2f1747a51f0a94c7afe364a3c4239770b29a53ce)
2021-08-13 03:24:37 +08:00
Tianling Shen
2568299bfe
generic/rockchip: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ee6815b64ca1a29cb07edbc6dcf07e940087dfbc)
2021-08-13 03:24:26 +08:00
Tianling Shen
9a3b347499
arm-trusted-firmware-rockchip-vendor: workaround for VARIANT issue
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 751967e121738723182408c7c22ad003234ccf69)
2021-08-13 00:36:10 +08:00
Tianling Shen
87464461d3
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-12 23:55:53 +08:00
Tianling Shen
faceaec70d
arm-trusted-firmware-rockchip-vendor: rework multiple devices building
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4262a83d1d0316f45fdcc66595b8fc37fbf875db)
2021-08-12 23:54:42 +08:00
Edgar Su
750b966866 x86: kernel: set NR_CPUS to 512
NR_CPUS limits the number of CPUs supported to 8. This makes total sense
on hardware-restircted platforms, but not on x86_64, where CPUs with
more than 8 cores can be easily acquired and with less physical limitaions.

see also: https://forum.openwrt.org/t/x86-64-8-cpu-limitation-on-vanilla-release/100946

Signed-off-by: Edgar Su <sjs333@outlook.com>
(cherry picked from commit df554e6fcab171ec499d8fb2ed10a0da328323f3)
2021-08-11 10:12:26 -10:00
Tianling Shen
98d06941ec
automount: mark as nonshared
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 2008dea56aadf7e65c85c7c2762a14ef154ef3ad)
2021-08-11 17:32:55 +08:00
Daniel Kestrel
94efa1c612 fritz-tools: fix returning wrong values due to strncmp usage
When having two keys that start with the same characters and the second
key just has one character more nand_tffs_read and tffs_read return the
wrong value for the longer key. This is due to the usage of strncmp in
combination with the length of the shorter key which is usually first in
the list before the longer key and when strncmp matches, the search is
stopped. The problem only occurs when the length of the two keys is
different, not if just the last character is different. The fix is to
use strcmp and as such it will only return the value if the key (name)
and the key to look for (namefilter) have the same value and length. A
sample case returning wrong values is when keys macwlan and macwlan2 are
defined and querying macwlan2 returns the value for macwlan.

Signed-off-by: Daniel Kestrel <kestrel1974@t-online.de>
(cherry picked from commit 12564c5b860f9849c9a2fb7026c2c11150b9a4fc)
2021-08-08 20:51:52 +02:00
Rosen Penev
d9be07169e mbedtls: update to 2.16.11
Switched to AUTORELEASE to avoid manual increments.

Release notes:
https://github.com/ARMmbed/mbedtls/releases/tag/v2.16.11

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit fcfd741eb83520e496eb09de5f8b2f2b62792a80)
2021-08-08 20:51:41 +02:00
Josef Schlehofer
f407b2f43c mvebu: armada-37xx: add patch to forbid cpufreq for 1.2 GHz
This patch is backported from linux-arm-kernel [1] to improve situation, when
it was reported that 1.2 GHz variant is unstable with DFS.
It waits to be accepted upstream, however, it waits for Marvell people to respond.

[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210630225601.6372-1-kabel@kernel.org/

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit d3794768177293f584cc74f90c921276793da1e7)
2021-08-08 20:48:24 +02:00
Josef Schlehofer
b254bd697d Revert "mvebu: 5.4 fix DVFS caused random boot crashes"
Based on the discussion on the mailing list [1], the patch which was
reverted, it reverts only one patch without the subsequent ones.

This leads to the SoC scaling issue not using a CPU parent clock, but
it uses DDR clock. This is done for all variants, and it's wrong because
commits (hacks) that were using the DDR clock are no longer in the mainline kernel.

If someone has stability issues on 1.2 GHz, it should not affect all
routers (1 GHz, 800 MHz) and it should be rather consulted with guys, who are trying to
improve the situation in the kernel and not making the situation worse.

There are two solutions in cases of instability:
a) disable cpufreq
b) underclock it up to 1 GHz

This reverts commit 080a0b74e39d159eecf69c468debec42f28bf4d8.

[1] https://lists.openwrt.org/pipermail/openwrt-devel/2021-June/035702.html

CC: Pali Rohár <pali@kernel.org>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit 7b868fe04a8961048feec1143e72fe47bde52a12)
2021-08-08 20:48:05 +02:00
Tianling Shen
a87dd6b5f2
uboot-rockchip: fix dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 052f3e3c613f7d9f349da6f117245fc63be4ac2e)
2021-08-08 22:09:12 +08:00
AmadeusGhost
7e5734d76b
r8168: update to 8.049.01
(cherry picked from commit bd7988e68e3ad3183f3f047f861f5d62e706450b)
2021-08-08 20:22:32 +08:00
AmadeusGhost
111cec90d7
arm-trusted-firmware-rockchip-vendor: rename from arm-trusted-firmware-rkbin
(cherry picked from commit da42a1fe22f96bf169a855e134bd0c7b547681dc)
2021-08-08 20:22:22 +08:00
Tianling Shen
9014b748e5
uboot-rockchip: drop ugly hacks from friendlyarm
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 974443992ef91a0b429b2ee0ed24eca9a2a3dbd1)
2021-08-08 20:22:12 +08:00
Tianling Shen
7b83d67e7a
uboot-rockchip: use rkbin for nanopi r4s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a2759b1be2387d357dc08203025d6889b4ab1292)
2021-08-08 20:21:41 +08:00
Tianling Shen
2b85a33644
arm-trusted-firmware-rkbin: rename from arm-trusted-firmware-rk3328
Added support for rk3399.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 87fe3f825757c5253cce07c92b73391501556e97)
2021-08-08 20:21:10 +08:00
Tianling Shen
cc38a589d9
openwrt-keyring: install usign key for OPDE
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit d314cb30109410f50f6dc76d19a4d9dee80b9f6a)
2021-08-08 17:02:18 +08:00
ElonH
46d0d29747
keyring: switch to ImmortalWrt Team
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-08 16:58:58 +08:00
Tianling Shen
6965645784
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-06 10:17:10 +08:00