Compare commits

...

3427 Commits

Author SHA1 Message Date
coolsnowwolf
0bc87353e5 Version update to R25.4.145 2025-04-16 12:11:08 +08:00
aiamadeus
ebbde708c8 uboot-rockchip: bump to 2025.04 2025-04-15 20:00:20 +08:00
coolsnowwolf
34e8beace9 kernel: bump 6.x to latest HEAD 2025-04-14 10:00:19 +08:00
Andre Heider
91d0fd154f hostapd: update to 2023-06-22
Removed, merged upstream:
- 170-wpa_supplicant-fix-compiling-without-IEEE8021X_EAPOL.patch

Manually refreshed:
- 040-mesh-allow-processing-authentication-frames-in-block.patch
- 600-ubus_support.patch
- 761-shared_das_port.patch

Fixes: a091a96 ("hostapd: always enable nl80211 driver support")
Signed-off-by: Andre Heider <a.heider@gmail.com>
2025-04-13 16:30:05 +08:00
Felix Fietkau
c61ceffddb iwinfo: add multi-radio support
Fix the path to the hostapd config file for queries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-04-13 16:26:01 +08:00
Christian Marangi
25ebc3de2e generic: fix no previous prototype
It seems new kernel version introduced -Wmissing-prototypes. This new
warning reported drivers that define non static function that are used
statically in the driver.

Fix this by declaring making those function actually static if not
defined in any header and not used outside of the single driver.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-04-13 16:20:18 +08:00
coolsnowwolf
1d300215e5 mac80211: backport EHT API support 2025-04-13 16:18:08 +08:00
coolsnowwolf
4a21ec3e4f mt76: update to Git HEAD (2024-05-17) 2025-04-12 21:20:21 +08:00
Robert Marko
55e46bb63c iwinfo: update to Git HEAD (2025-02-06)
94b3a3c1a6c4 devices: add device id for Qualcomm Atheros IPQ5018
9cec6b4dd2df devices: add device id for Qualcomm Atheros QCN6122

Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-12 16:38:30 +08:00
Felix Fietkau
3750142bb6 udebug: update to Git HEAD (2023-12-06)
6d3f51f9fda7 ucode: check for errors in ftruncate()

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-04-12 16:30:05 +08:00
Felix Fietkau
8ce3d7e91f ucode: update to Git HEAD (2025-03-24)
2824982da336 ubus: fix broken uc_ubus_defer()

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-04-12 16:28:16 +08:00
Robert Marko
9da01c6b7b rpcd: update to Git HEAD (2024-12-02)
cc9a471c32e1 rpc-sys: rework packagelist call for apk

Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-12 16:21:15 +08:00
John Audia
ad4f5990fc linux-firmware: update to 20250311
Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2025-04-11 15:10:26 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
59540554ee package: add kmod-r8127 ethernet driver
r8127 is an out of tree driver provided by Realtek for RTL8127 devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-04-11 15:00:30 +08:00
coolsnowwolf
e61334eee7 ipq-wifi: update to Git HEAD (2025-04-08) 2025-04-10 12:08:43 +08:00
Shiji Yang
71813b0d03 generic: crypto: fix jitterentropy initialization failed issue
Sync jitterentropy source code with linux-6.12 to solve the
issue of jitterentropy initialization failed:

[ 9.523489] jitterentropy: Initialization failed with host not compliant with requirements: 9
[ 9.661916] kmodloader: 1 module could not be probed
[ 9.662377] kmodloader: - jitterentropy_rng - 0

In linux upstream commit cf27d9475f37 ("crypto: jitter - use
permanent health test storage"), when FIPS crypto is disabled,
the health test results are always explicitly skipped. That means
it will never return error code 9 (health test failed) again.

Fixes: https://github.com/openwrt/openwrt/issues/16684
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18399
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-10 11:59:41 +08:00
coolsnowwolf
7495ac1b63 kernel: bump 6.x to latest HEAD 2025-04-10 11:57:12 +08:00
Florian Maurer
ba66096756 mediatek: netgear-wax206 fix wifi leds
The wifi leds of the wax206 were not reacting. This patch enables
the green leds to show activity, as the blue ones are very bright.
Also set the label-mac to the gmac0.

Signed-off-by: Florian Maurer <f.maurer@outlook.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-04-09 22:10:18 +08:00
Andrew LaMarche
a7a6707213 airoha: an7581: fix phy2 led1 function
PHY2 led1 is configured to control PHY1's LED. Change it to PHY2.

Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-04-08 22:20:01 +08:00
coolsnowwolf
b50369007d filogic: improve HUASIFEI WH3000 support 2025-04-07 21:00:02 +08:00
Michel Lespinasse
8c11125e5e rockchip: show boot stages on nanopi r6
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 5s
Set up openwrt to show boot progress on the nanopi r6s/r6c system LED.

The LED blinking states indicate the boot stage. The LED is defined as
a power LED, but can still be set to heartbeat in /etc/config/system
after the system is done booting.

Signed-off-by: Michel Lespinasse <michel@lespinasse.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-04-05 22:10:09 +08:00
coolsnowwolf
7eb42a3618 rockchip: add support for Radxa ROCK 5B
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 6s
2025-04-04 20:40:25 +08:00
coolsnowwolf
d0efae101c rockchip: sync rk3588 dts with upstream
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 4s
Fixes: #13425
2025-04-03 20:00:15 +08:00
Álvaro Fernández Rojas
efbab19385 generic: backport gpio-regmap ops patch
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 3s
This patch has been accepted for linux v6.14
so we can move it from pending to backport.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-04-02 22:10:16 +08:00
Daniel Golle
60824ec6a6 mediatek: mt7622: fix SATA on BPi-R64
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 4s
Two commits which made their way into Linux stable broke the SATA
support on the BPi-R64.

Fix this by reverting a node rename which broke DT-overlay application
and import a (still pending) patch re-adding the 'syscon' compatible
to the pciesys clock-controller which also contains phy-mode bits
referenced by the ahci_mtk driver expecting to access them using
syscon_regmap_lookup_by_phandle().

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-04-01 22:00:19 +08:00
Mieczyslaw Nalewaj
ae810b9dd6 kernel: remove unused settings and depends
Remove settings and depends that are not used anywhere.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-03-31 22:40:05 +08:00
Rui Salvaterra
8808906a7d kernel: usb: simplify r8152 dependencies
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 5s
It doesn't depend on either usb-net or usb-net-cdc-ncm. It does, however, depend
on mii. Fix thusly, and make it depend explicitly on usb, not usb-net.

While at it, add a conditional dependency on libphy, for future kernel versions.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2025-03-30 23:08:25 +08:00
Martin Schiller
129f2e50f1 generic: backport some copper SFP fixes
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 6s
This fixes the handling of some FS copper SFP modules using
the RollBall protocol and needing some extra treatment.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2025-03-29 22:10:38 +08:00
aiamadeus
3cfb3952dd rockchip: add support for h29k hw v1.3
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 5s
2025-03-28 20:30:18 +08:00
aiamadeus
ece23788a7 mediatek: add FM25S01BI3 flash support
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 23s
Import patch from MediaTek's SDK to support FM25S01B flash.
Also fixes DS35Q1GA flash support in kernel 6.1.

Fixes: c2a01cf ("mediatek: sync kernel 6.1 from upstream")
2025-03-27 15:30:02 +08:00
Stephen Howell
ebe6852c1d kernel: modules: add Intel ICE support
Add support for the Intel E800 series of cards, with
switchdev support enabled for lower CPU usage.

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-03-26 18:36:27 +08:00
coolsnowwolf
840b076139 kernel: bump 6.12 to 6.12.20 2025-03-25 01:45:26 +08:00
coolsnowwolf
f03f0f54b5 mac80211: fix build on linux kernel 5.4.291+ 2025-03-25 01:40:34 +08:00
coolsnowwolf
391830f91c kernel: bump 6.6 to 6.6.84 2025-03-25 01:04:12 +08:00
coolsnowwolf
43473ebd4f Revert "rockchip: fix RK3399 PCIE reboot issues"
This reverts commit e43d4db7c0.
This commit breaks nvme support for rk3399.
2025-03-24 20:00:03 +08:00
Willem Lee
6e84aeb589
ath79: add support for Alibaba AP121-DB (#13417) 2025-03-23 22:10:28 +08:00
IDeLoveYou
d7d4bcc86d
toolchain: glibc: Fix build with autoconf 2.71
Fixes: #13308
2025-03-22 22:00:03 +08:00
Rui Salvaterra
7866838873 kernel: igc: enable HW vlan tag by default
Add a pending patch [1] in order to do so. This will be moved to the backports
section as soon as we know on which Linux version it will be merged.

[1] https://lore.kernel.org/netdev/20250313093615.8037-1-rsalvaterra@gmail.com/

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2025-03-21 22:20:26 +08:00
coolsnowwolf
97d3d1c6aa mt76: fix mt7916 160Mhz support in kernel 5.4 2025-03-20 12:54:19 +08:00
Willem Lee
4d0cc6c14c
filogic: add support for KANKA KOMI A31 2025-03-20 11:30:05 +08:00
coolsnowwolf
c638a07dac busybox: update to 1.36.1 2025-03-19 16:46:54 +08:00
coolsnowwolf
e43d4db7c0 rockchip: fix RK3399 PCIE reboot issues 2025-03-18 18:20:22 +08:00
coolsnowwolf
d4831d96b7 mediatek: add support for CMCC A10 2025-03-18 18:10:30 +08:00
coolsnowwolf
83134525fd rockchip: sync base with upstream
Fixes: #13402
2025-03-16 22:20:02 +08:00
coolsnowwolf
9914389a8d treewide: update dts for switch 2025-03-15 18:18:08 +08:00
coolsnowwolf
3f938d01a6 kernel: bump all to latest HEAD 2025-03-14 16:02:08 +08:00
coolsnowwolf
e005f3b627 kernel: bump 5.x to latest HEAD 2025-03-13 13:00:19 +08:00
coolsnowwolf
74aa05a408 kernel: bump 6.1 to 6.1.130 2025-03-13 12:57:08 +08:00
coolsnowwolf
0c58045b0e Version update to R25.3.15 2025-03-13 12:42:04 +08:00
coolsnowwolf
75f99ed4fd kernel: bump 6.6 to 6.6.82 2025-03-13 12:39:59 +08:00
Christian Marangi
f352df1dc2 airoha: an7581: cleanup kernel config
Cleanup kernel config and drop all unrelated configs. This have the side
effect of fixing the port not going up automatically due to Bridge VLAN
Filtering disabled.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-03-12 22:20:29 +08:00
Willem Lee
0fae2aafdb
ipq40xx: fixes Alibaba AP4220 support 2025-03-11 21:01:03 +08:00
coolsnowwolf
fd54fed45c kernel: bump 6.12 to 6.12.18 2025-03-10 16:01:28 +08:00
aiamadeus
00eb500306 rockchip: sync rk3528 with upstream
Switch to the mainline pcie driver.
2025-03-09 18:30:08 +08:00
coolsnowwolf
46e9727846
luci-app-fogvdn: fix wrong typo 2025-03-08 17:08:17 +08:00
Willem Lee
2f337aa482
ipq40xx:add support for Alibaba AP4220 (#13385) 2025-03-08 17:06:18 +08:00
sfwtw
ec108ac504 rockchip: improve support for fine3399 2025-03-08 16:18:18 +08:00
coolsnowwolf
543621f9d6 luci-app-fogvdn: add fogvdn new package 2025-03-07 15:10:15 +08:00
coolsnowwolf
fe71259e68 uboot-rockchip: update rk3528 support
Fixes: #13380
2025-03-07 13:01:25 +08:00
Ahmed Naseef
c65c2ad5b0 kernel: usbnet: Restore usb%d naming
Prior to commit 8a7d12d674,
cdc-ethernet USB LTE modems (e.g. Quectel EC200A) were consistently named
usb0. After 8a7d12d67, devices began renaming to eth1 due to an assumption
that local MAC addresses originate exclusively from the kernel. Some
devices provide driver-assigned local MACs, causing point-to-point
interfaces with driver-set MACs to adopt eth%d names instead of usb%d.

Restore the naming exception for point-to-point devices: interfaces
without driver MACs or with driver-provided local MACs will retain the
usb%d convention. This addresses issues reported in [1] and fixed in [2].

[1] https://lore.kernel.org/all/Z00udyMgW6XnAw6h@atmark-techno.com/
[2] https://lore.kernel.org/all/20241203130457.904325-1-asmadeus@codewreck.org/

Tested-by: Ahmed Naseef <naseefkm@gmail.com>
Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-03-06 23:08:30 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
ae9e8d4c84 kernel: r8125: update to v9.015.00
Changelog: https://github.com/openwrt/rtl8125/compare/9.014.01...9.015.00

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-03-05 23:01:19 +08:00
Álvaro Fernández Rojas
d0fa42a6bc kernel: r8126: update to v10.015.00
Changelog: https://github.com/openwrt/rtl8126/compare/10.014.01...10.015.00

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-03-05 23:00:30 +08:00
aiamadeus
2fe48cd61a rockchip: remove dwcmshc hack for rk3528
This hack is only needed when running sdk u-boot.
2025-03-04 20:00:16 +08:00
aiamadeus
36b2cd19df uboot-rockchip: add pending rk3528 support 2025-03-03 21:00:02 +08:00
aiamadeus
324daf1e8e rockchip: improve rk3528/rk3568 support 2025-03-03 20:38:09 +08:00
coolsnowwolf
2dc0ff4f66 quectel_MHI: fix complie with ipq807x 2025-03-02 15:28:19 +08:00
libriunk
461364a4f4 mediatek: fixes gpio for netcore n60 pro 2025-03-01 23:20:08 +08:00
tuzhis
0146ee1968
mediatek: add support for netcore n60 pro 2025-02-28 20:10:03 +08:00
coolsnowwolf
b55bb8004d quectel-cm: update to version 1.6.7 2025-02-27 22:02:26 +08:00
coolsnowwolf
04b8d9bdd6 package/wwan: remove outdated packages 2025-02-27 22:00:05 +08:00
coolsnowwolf
0608f510fc intel-microcode: update to version 20250211
Fixes: #13366
2025-02-26 17:20:08 +08:00
tabudz
8a984fc1dd
mt7603e: fix possible infinite loop in BN_mod_sqrt() (#13368)
The calculation in some cases does not finish for non-prime p.

This fixes CVE-2022-0778.

Based on patch by David Benjamin <davidben@google.com>.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
2025-02-26 16:44:12 +08:00
Internet1235
84884dd637
openssl: update to 3.0.16 (#13363) 2025-02-25 18:23:25 +08:00
coolsnowwolf
c44f45dfe6 aic8800: rename usb module to avoild conflicts 2025-02-25 14:43:53 +08:00
coolsnowwolf
6fbd06a3a0 kernel: bump 6.12 to 6.12.16 2025-02-25 14:12:02 +08:00
coolsnowwolf
b32c0de796 linux: add module package crypto-lib-aescfb for 6.12 2025-02-24 17:42:56 +08:00
coolsnowwolf
dedff78f07 uboot-rk35xx: fix MangoPi M28C support 2025-02-24 17:41:11 +08:00
77160860
a050110bb9
armbian-firmware: add BCM43430B0 FullMac SDIO firmware
rockchop:fine3399 wifi support
2025-02-24 11:49:25 +08:00
Chuanhong Guo
6bfda9d7d9 Add new package for usb gadget setup
Setting up usb gadgets using g_* kernel modules are considered a
legacy approach, but the usb_gadget configfs is a bit annoying
to use directly.
The usb_gadget configfs works by creating magic directories
and writing to magic files under /sys/kernel/config/usbgadget.
This new package is an init script to setup usb_gadget configfs
using uci. In the config file, gadget/configuration/function
sections create corresponding directories. UCI options are magic
files available in the configfs and strings/0x409 directories,
grabbed with a 'find' command. UDC option in gadget writes
the UDC file under the 'gadget' directory to attach the
generated gadget config.

It's also possible to apply pre-made config templates under
/usr/share/usbgadget. The templates use the same UCI config
format, with the 'gadget' entry named 'g1'. Currently, there
are templates for CDC-ACM and CDC-NCM gadgets written based
on existing g_*.ko module code.

Certain SBCs come with only a USB device port (e.g. Raspberry Pi
Zero). With this script, it's now possible to perform initial
setup on them by adding a default NCM gadget.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2025-02-23 23:00:19 +08:00
Christian Marangi
8b14c27843 airoha: Introduce 7581 SoC support
Introduce EN7581 SoC support with currently rfb board supported.

This is a new 64bit SoC from Airoha that is currently almost fully
supported upstream with only the DTS missing. Setting source-only
waiting for the full upstream support to be completed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-02-22 23:01:06 +08:00
Daniel Golle
228b0ce955 linux-firmware: update to 20250211
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-21 21:30:20 +08:00
aiamadeus
3f00869321 tools: add xxhash package for ccache 2025-02-20 21:10:10 +08:00
aiamadeus
55c1cfedcc aic8800: add support for usb cards 2025-02-19 20:30:02 +08:00
aiamadeus
4a126e07b7 usb-modeswitch: add aic8800 support 2025-02-19 20:20:20 +08:00
coolsnowwolf
36c00a4209 ipq-wifi: update to version 2025-02-16 2025-02-18 11:25:00 +08:00
John Audia
d989a3256a qualcommb/ipq95xx: refresh patches ahead of 6.6.75
Refreshed patches for qualcommb/ipq95xx by running
make target/linux/refresh after creating a .config containing:
CONFIG_TARGET_qualcommbe=y
CONFIG_TARGET_qualcommbe_ipq95xx=y
CONFIG_TARGET_qualcommbe_ipq95xx_DEVICE_qcom_rdp433=y

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-02-18 11:00:26 +08:00
coolsnowwolf
8311a3f316 generic: add more switch port link speed nested attributes 2025-02-17 16:59:22 +08:00
tabudz
6c30ff6831
mt7615d: fix possible infinite loop in BN_mod_sqrt() (#13346)
The calculation in some cases does not finish for non-prime p.

This fixes CVE-2022-0778.

Based on patch by David Benjamin <davidben@google.com>.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>

Co-authored-by: Su Yindu <yindusu@smu.edu.sg>
2025-02-17 10:57:45 +08:00
coolsnowwolf
b00deea1b7 mac80211: ath: add qcom-qmi-helpers as package 2025-02-16 16:28:26 +08:00
Felix Fietkau
81419528c1 kernel: backport MHI patch required by an upcoming mac80211 update
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-16 16:22:39 +08:00
coolsnowwolf
0631178b1e ipq-wifi: rename jdcloud ax6600 to re-cs-02 2025-02-16 11:33:57 +08:00
coolsnowwolf
58b8d3234a qualcommax: ipq807x: add support for Zbtlink Z800AX 2025-02-15 22:10:25 +08:00
George Moussalem
dbd654f22b nss-dp: switchdev: apply flag dependency directives
The FDB roaming issues were observed on ipq807x and ipq60xx boards.
The fix depends on API exposed only when NSS_DP_PPE_SUPPORT is enabled.
However, this flag applies to above mentioned platforms only and is
causing the logs to be flooded on other QCA platforms, including ipq50xx,
with:

[   34.893418] nss-dp 39c00000.dp1 lan: cannot get VSI ID for port 1
[   34.898370] nss-dp 39c00000.dp1 lan: cannot get VSI ID for port 1
[   34.904598] nss-dp 39c00000.dp1 lan: cannot get VSI ID for port 1
[   34.910661] nss-dp 39c00000.dp1 lan: cannot get VSI ID for port 1

So let's apply a dependency on the NSS_DP_PPE_SUPPORT flag and contain
the patch code for ipq807x and ipq60xx within conditional directives.

Tested on: Linksys SPNMX56

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17966
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-15 08:34:54 +08:00
Mieczyslaw Nalewaj
8730dc18a4 kernel: rtl8367: detect rtl8367d chip family
Detect the RTL8367D chip family and set the appropriate extif

Co-authored-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-02-14 20:26:16 +08:00
Luiz Angelo Daros de Luca
0263cb3835 kernel: netdevices: add realtek DSA modules
Uses upstream DSA switch modules (rtl8365mb, rtl8366), similar to
RTL8367C and rtl8366rb swconfig drivers.

The package dependencies exclude targets built without kernel CONFIG_OF.

It also fixes the rtl8366rb LED support.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-14 20:10:08 +08:00
coolsnowwolf
bf665a29b2 qualcommax: ipq50xx: add CMCC RAX3000Q support 2025-02-13 18:17:57 +08:00
coolsnowwolf
9dc66796d5 qualcommax: ipq50xx : temporarily disable tcsr_q6_block 2025-02-13 16:48:41 +08:00
coolsnowwolf
108da88bad kernel: netfilter: fix ipt-ipopt depends
Fixes: #13336
2025-02-12 22:00:20 +08:00
coolsnowwolf
36fac63d85 qualcommax: 6.6: add ipq60xx pwm support 2025-02-12 16:26:00 +08:00
aiamadeus
84c08cc0c4 ipq60xx: replace cpufreq with latest series 2025-02-11 22:09:01 +08:00
aiamadeus
64ed83cc0e mac80211/ath11k: temporarily disable DBS mode 2025-02-10 21:30:16 +08:00
Robert Marko
f8b9349cb8 qualcommax: move generic image recipes target
These recipes are generic and will be used for other subtargets, so lets
move them to the target Makefile so they can reused.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-09 17:38:10 +08:00
Joe Zheng
7b1175e882 kernel: add package for Intel VPU/NPU driver
Intel NPU device is an AI inference accelerator integrated with Intel
client CPUs, starting from Intel Core Ultra generation of CPUs
(formerly known as Meteor Lake). It enables energy-efficient execution
of artificial neural network tasks.

The full device name is Neural Processing Unit, but the Linux kernel
driver uses the older name - Versatile Processing Unit (VPU).

This package is for NPU/VPU firmware.

Details in https://github.com/intel/linux-npu-driver

Signed-off-by: Joe Zheng <joe.zheng@intel.com>
2025-02-09 17:10:16 +08:00
Robert Marko
719b7258f6 qualcommax: replace SPINAND to latest series
Replace the existing SPI NAND controller patches with the latest v14
set that is pending upstream, and include Ansuels patch that fixes it.

Bindings patch is removed as there is no point carrying it in OpenWrt.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-09 17:06:02 +08:00
Christian Marangi
d5b41ff34f generic: move Qcom SNAND driver to backports
Add patch to fix Qcom SNAND driver and move the SNAND patches to
backports directory as they are shared between qualcommax and qualcommbe
target.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-09 17:00:16 +08:00
coolsnowwolf
76271e77fd ath11k-firmware: add QCN6122 wifi firmware 2025-02-08 20:18:05 +08:00
coolsnowwolf
6754876c3c ipq-package: add linux 6.6 support for nss 2025-02-08 20:10:20 +08:00
coolsnowwolf
b45bbd008a qualcommax: add nss support for linux 6.6 2025-02-08 20:02:10 +08:00
aiamadeus
b9e8fb3049 qualcommax: fixes Aliyun AP8220 support 2025-02-08 18:18:03 +08:00
coolsnowwolf
922b9fd73b qualcommax: sync ipq50xx with upstream 2025-02-07 12:04:28 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
a0dbcae1dd kernel: r8168: update to v8.055.00
Changelog: https://github.com/openwrt/rtl8168/compare/8.054.00...8.055.00

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-02-07 12:00:06 +08:00
coolsnowwolf
111e93f75d kernel: bump 6.x to latest HEAD 2025-02-06 19:40:05 +08:00
coolsnowwolf
e905fdb169 OpenWrt v24.10.0: adjust config defaults 2025-02-06 19:35:15 +08:00
coolsnowwolf
be22644b67 kernel: add option to disable legacy cgroup v1 2025-02-06 19:28:18 +08:00
守望
cadb05400b
dnsmasq: add option to expose additional paths 2025-02-06 12:30:04 +08:00
Daniel Golle
8858bea842 generic: net: phy: realtek: various improvements
Follow the advise of Russell King allows to greatly improve the driver
for RealTek's 1G and 2.5G Ethernet PHYs. The results are full/half
duplex as well as Gbit master/slave property being read from PHY
Specific Status Register (PHYSR), and fixes regarding link-partner
advertisement.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-05 18:30:03 +08:00
Daniel Golle
3b3ed936ec generic: net: phy: mxl-gpy: add support for PHY LEDs
Add driver support for PHY LEDs for MaxLinear/Intel GPY Ethernet PHYs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-03 23:02:26 +08:00
Daniel Golle
5c7361ebdc generic: net: phy: intel-way: add support for PHY LEDs
Add driver support for PHY LEDs for MaxLinear/Intel/Lantiq XWAY
Ethernet PHYs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-03 23:00:09 +08:00
Daniel Golle
82a54c3179 generic: net: phy: use all SerDes MAC interface modes
Instead of forcing 2.5G PHYs into rate-adapter mode which results higher
energy consumption, lack of support for half-duplex modes and typically
worse performance when linked at speeds less than 2.5G, use SGMII mode
which allows the MAC to follow the PHY speed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-02-02 23:40:02 +08:00
coolsnowwolf
62329a55f8 qualcommax: ipq807x: improve support for Aliyun AP8220 2025-01-31 23:00:09 +08:00
coolsnowwolf
c14fe39288 qualcommbe: ipq95xx: add qualcomm wifi7 be target support 2025-01-31 16:17:05 +08:00
coolsnowwolf
d49a280942 kernel: bump 5.x to latest HEAD 2025-01-31 15:55:16 +08:00
coolsnowwolf
fac8d770bf kernel: bump 6.x to latest HEAD 2025-01-31 15:51:42 +08:00
coolsnowwolf
f4a80a4ce1 filogic: fixes huasifei wh3000 led 2025-01-30 12:40:16 +08:00
aiamadeus
424c43cafd rockchip: add MangoPi M28C support 2025-01-28 23:01:25 +08:00
coolsnowwolf
171cb58c1d gpio-button-hotplug: sync upstream 2025-01-27 23:10:02 +08:00
coolsnowwolf
19978f14dc autocore: update index page 2025-01-25 23:00:05 +08:00
coolsnowwolf
a6b29fbae9 generic: fix linux 6.12 build 2025-01-24 23:00:16 +08:00
coolsnowwolf
c15d43eaec
kernel: bump 6.6 to 6.6.73 2025-01-23 04:23:52 +08:00
coolsnowwolf
08296f25e8
gpio-button-hotplug: fix for linux 6.12 2025-01-23 04:20:57 +08:00
coolsnowwolf
89624f51bc kernel: bump 6.12 to 6.12.10 2025-01-23 02:43:23 +08:00
Internet1235
1999fa3f2d
apk: bump to Git HEAD 2024-10-28 (#13304)
Fixes: https://github.com/coolsnowwolf/lede/issues/13299
2025-01-22 21:46:55 +08:00
coolsnowwolf
4514a62beb cryptodev-linux: fix for linux 6.12 2025-01-21 21:36:19 +08:00
aiamadeus
6488a08057 mac80211: backport QCA2066 support 2025-01-20 22:10:06 +08:00
kcro227
b2cdb3a102
mediatek: add for cmcc xr30 support 2025-01-19 23:20:10 +08:00
Internet1235
10cd0f0831
action: update apt dependencies 2025-01-17 21:20:04 +08:00
Willem Lee
c2a9a0cfec
ath79: add support for Zte E8820 2025-01-16 20:02:01 +08:00
aiamadeus
90de065709 uboot-rockchip: bump to 2025.01 2025-01-15 22:08:27 +08:00
coolsnowwolf
d2bbf8b912 generic: add missing kconfig 2025-01-14 22:20:28 +08:00
coolsnowwolf
002ab96412
Update openwrt-ci.yml 2025-01-13 15:20:23 +08:00
coolsnowwolf
062f52320b kernel: bump 6.x to latest HEAD 2025-01-13 14:36:31 +08:00
Kien Truong
80ccee5b7e rockchip: disable all kernel preemption
This setting is more suitable for device running OpenWRT.
Most OpenWRT targets are already default to this configuration,
and it has shown better performance in VPN (wireguard).

Signed-off-by: Kien Truong <duckientruong@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-01-12 22:20:09 +08:00
Christian Marangi
eda8bc8395 generic: backport BLOCK OF support patch
Backport BLOCK OF support patch merged upstream and refresh pending
BLOCK patches.

This is a new way to declare partition table for BLOCK device (eMMC
currently supported) with the use of DTS.

Current pending patch are adapted to not cause regression with current
downstream implementation of a similar functionality.

Also enable the new OF_PARTITION config by default.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-01-10 20:30:02 +08:00
Daniel Golle
343d814968 mtd-utils: add ubihealthd to nand-utils
Add ubihealthd to the nand-utils package, auto-create UCI config for
each UBI device and launch the daemon on boot.

The default time interval between scrubbing a random PED is 120 seconds
which means that a fully used 128 MiB flash chip gets scrubbed in about
a day and a half. The interval can be adjusted in UCI using the
'interval' option.

Suggested-by: Rodrigo Balerdi <lanchon@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-01-09 23:10:09 +08:00
Daniel Golle
d3002da4e5 mediatek: update MediaTek PHY patchset
The previous iteration of MediaTek's PHY patches caused various weird bugs.
Drop culprit patch 733-10-net-phy-mediatek-Extend-1G-TX-RX-link-pulse-time.patch
and use the most recent iteration of the patchset which has been posted to the
netdev mailing list.

Link: https://patchwork.kernel.org/project/netdevbpf/list/?series=895513&state=*
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-01-08 21:16:28 +08:00
Daniel Golle
77c3d74088 mediatek: apply pending PHY driver fixes
Apply changes suggested by SkyLake Huang for pending series improving
MediaTek Ethernet PHY drivers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-01-08 21:10:16 +08:00
Robert Marko
e59a6368cc ath10k-ct: select mac80211 debugfs support
Trying to compile ath10k-ct without mac80211 debugfs support will result in:
 8083 | #warning Please enable ATH10K-DEBUGFS kernel option for optimal support for CT firmware.
      |  ^~~~~~~
cc1: all warnings being treated as errors

So, since the driver itself is saying that debugfs is required, then
lets make ath10k-ct select mac80211 debugfs support which is selected
by default anyway.

Fixes: #11687, #12363
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-01-07 22:30:16 +08:00
coolsnowwolf
e1204bd00d Version update to 24.10.0-rc5 2025-01-06 20:30:00 +08:00
aiamadeus
330cb1ea52 rockchip: sync upstream fixes 2025-01-06 18:28:06 +08:00
coolsnowwolf
be3442766f
kernel: bump 6.6 to 6.6.69 2025-01-05 20:39:19 +08:00
coolsnowwolf
cbd8e21246
kernel: bump 6.12 to 6.12.8 2025-01-05 20:37:59 +08:00
coolsnowwolf
bac0af3dec uboot-rockchip: fix rk3399 boot issue 2025-01-04 16:03:09 +08:00
coolsnowwolf
ccb92beeda ramips: adapted cevt-r4k irq patches
Fixes: #13251
2025-01-03 20:06:08 +08:00
coolsnowwolf
b522d5bdb9 README(EN/JA): sync build dependency
Fixes: #13249
2025-01-02 23:02:10 +08:00
aiamadeus
d379cee203 aic8800: update to version 20240327
Fixes build for kernel 6.12.
2025-01-02 11:38:20 +08:00
Jonas Jelonek
f3e56a87e7 kernel: add Broadcom NetXtreme-C/E driver
Package bnxt_en kernel module for Broadcom NetXtreme-C/E based
Ethernet network chips like BCM573xx and BCM574xx.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-12-31 22:00:08 +08:00
Jack Sun
774d694812 package: busybox: update download link
There is no file named busybox-1.36.1.tar.bz2 in the root directory of the website
The actual download link is “https://sources.buildroot.net/busybox/busybox-1.36.1.tar.bz2”

Signed-off-by: Jack Sun <sunjiazheng321521@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-12-30 22:30:16 +08:00
Rani Hod
e14a7bfece linux-firmware: package MT7925 firmware
Package firmware for MediaTek MT7925 Bluetooth from `linux-firmware`.

Signed-off-by: Rani Hod <rani.hod@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-12-29 23:16:28 +08:00
coolsnowwolf
f2815ef000 ramips: add support for Huasifei WHF283 2024-12-28 18:00:10 +08:00
coolsnowwolf
817dfb5381 filogic: add support for HUASIFEI WH3000 2024-12-28 17:50:06 +08:00
Beginner
1fcb93df27
kernel: bump 6.6 to 6.6.67 (#13239) 2024-12-27 15:01:04 +08:00
Beginner
abac351b33
kernel: refresh 6.1 patches (#13240) 2024-12-27 10:30:06 +08:00
Beginner
6d2364bf77
kernel: refresh 6.12 patches (#13238) 2024-12-27 10:00:36 +08:00
coolsnowwolf
ae997a86d8 kernel: bump 5.10 to 5.10.232 2024-12-26 11:44:22 +08:00
coolsnowwolf
27cc9c7468 kernel: bump 5.15 to 5.15.175 2024-12-26 11:33:30 +08:00
coolsnowwolf
8289e89f90 kernel: bump 5.4 to 5.4.288 2024-12-26 11:32:37 +08:00
coolsnowwolf
1776f07f5d kernel: bump 6.1 to 6.1.121 2024-12-26 11:31:23 +08:00
coolsnowwolf
f3bb851821 kernel: bump 6.12 to 6.12.6 2024-12-26 11:30:08 +08:00
Joe Zheng
55be1d688c x86: make i915 as a kmod with required firmware
i915 driver requires to load correct firmware to work on latest x86
GPU, it is more reasonable to make it as a kernel module, so that
initramfs is not required, and it can also save some space from the
kernel image comparing being a built-in driver

Signed-off-by: Joe Zheng <joe.zheng@intel.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-12-25 22:30:40 +08:00
David Bauer
aeac24fb69 net: phy: broadcom: update dependency condition
The broadcom PHY driver only has to depend upon PTP_1588_CLOCK_OPTIONAL
if NETWORK_PHY_TIMESTAMPING is enabled. The PTP functionality is stubbed
in this case.

Reflect this circumstance in the dependence condition. This allows to
build the driver as a built-in module even if PTP is built as a module.

This is required to include the broadcom PHY module regardless of the
built-setting of the PTP subsystem. On ath79 (and probably more)
targets with Broadcom PHY, Gigabit operation is currently broken as the
PHY driver is only built as a module in case all kernel-packages are
built. Due to this circumstance, affected devices fall back to using the
generic PHY driver.

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-12-25 22:01:02 +08:00
Marco von Rosenberg
b20c1bceba generic: fix BCM54612E ethernet backport patch
This backport patch inserted suspend/resume callbacks
for the wrong PHY driver.

Signed-off-by: Marco von Rosenberg <marcovr@selfnet.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-12-24 22:36:03 +08:00
cn-shell
f21df97339
uboot-rockchip: fix NanoPi-R3S defconfig (#13232)
Fixes: #12491, #13001
2024-12-23 22:30:09 +08:00
coolsnowwolf
7953c94b31 kernel: kstrtox: revert strtobool() in linux 6.12 2024-12-23 13:39:14 +08:00
coolsnowwolf
651cc85470
openwrt-ci.yml : update profile 2024-12-23 13:02:09 +08:00
aiamadeus
3790f4f134 kernel: fixes some modules build on 6.12
Fixes: #13224
2024-12-22 19:20:38 +08:00
aiamadeus
47cfbf7d9b generic: add missing kconfig for kernel 6.x 2024-12-21 23:00:29 +08:00
coolsnowwolf
b49e92a28c default-settings: also including english lang po 2024-12-20 18:56:19 +08:00
coolsnowwolf
d6c6378869 rockchip: add 6.12 testing kernel support 2024-12-20 16:00:04 +08:00
coolsnowwolf
f0424787f1 rockchip: kernel 6.12: add rk3576 soc support 2024-12-19 22:20:09 +08:00
coolsnowwolf
37330800b4 rockchip: add ondemand cpu freq gov as default 2024-12-19 15:45:57 +08:00
coolsnowwolf
d5fc5fc430 kernel: bump 5.15 to 5.15.174 2024-12-18 22:11:53 +08:00
coolsnowwolf
33e376de95 kernel: bump 5.4 to 5.4.287 2024-12-18 21:56:26 +08:00
coolsnowwolf
c1846ee3f8 mac80211: fix build with kernel 5.10.230+ 2024-12-18 21:11:33 +08:00
coolsnowwolf
ea8c0bcaa0 ksmbd: fix build with kernel 5.10 2024-12-18 21:05:45 +08:00
coolsnowwolf
cab2ab7d58 kernel: bump 5.10 to 5.10.231 2024-12-18 13:06:41 +08:00
coolsnowwolf
af0a4aa4a4 rockchip: update rk3399 soc support 2024-12-17 21:40:15 +08:00
coolsnowwolf
927e1b695c generic: 6.12: fixes broken patches 2024-12-17 21:36:05 +08:00
Beginner
23d466fba0
kernel: bump 6.6 to 6.6.66 (#13214) 2024-12-16 20:30:22 +08:00
Beginner
b7305e23ef
kernel: bump 6.1 to 6.1.120 (#13215) 2024-12-16 16:00:10 +08:00
coolsnowwolf
0a3cb8e16a ramips: add setmac and getmac scripts 2024-12-16 11:21:10 +08:00
Beginner
4fb48d3e6f
kernel: bump 6.12 to 6.12.5 (#13216) 2024-12-16 10:00:16 +08:00
aiamadeus
f449329de6 trusted-firmware-a.mk: fix release download URL 2024-12-15 18:38:35 +08:00
aiamadeus
062dc20078 arm-trusted-firmware-rockchip: update to v2.12
Switch rk3588 to the mainline atf.
Fixes: #13211
2024-12-15 18:36:21 +08:00
Bohdan Chubuk
d6318bba0f generic: mtd: spinand: add support for F35SQA001G
Add support for FORESEE F35SQA001G SPI NAND.

Similar to F35SQA002G, but differs in capacity.
Datasheet:
  -  https://cdn.ozdisan.com/ETicaret_Dosya/704795_871495.pdf

Tested on Xiaomi AX3000T flashed with OpenWRT.

Signed-off-by: Bohdan Chubuk <chbgdn@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-12-14 22:40:08 +08:00
Bohdan Chubuk
79545017e8 generic: mtd: spinand: add support for F35SQA002G
Add support for FORESEE F35SQA002G SPI NAND.
Datasheet:
  https://www.longsys.com/uploads/LM-00006FORESEEF35SQA002GDatasheet_1650183701.pdf

Refresh all affected patch with make target/linux/refresh.

Signed-off-by: Bohdan Chubuk <chbgdn@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-12-14 22:35:30 +08:00
aiamadeus
764b5a63d1 mediatek: add u-boot mod version for Cudy TR3000 2024-12-13 21:20:15 +08:00
Jianyu Zhuang
23a4c1fb90 mediatek: filogic: add support for Tenbay WR3000K
Tenbay WR3000K is an 802.11ax (Wi-Fi 6) router, based on MediaTek MT7981B.

- SoC: MetiaTek MT7981B
- RAM: Hynex H5TQ2G863GFR 512MiB
- Flash: Winbond W25N01GVZEIG 128MiB
- Wi-Fi: MediaTek MT7976C (2.4GHz/5GHz, 802.11ax, 2x2 MIMO, AX3000)
- MediaTek MT7915E: 2.4GHz and 5GHz
- Ethernet: 1x 10/100/1000 Mbps WAN + 3x 10/100/1000 Mbps LAN
- Switch: MediaTek MT7531AE
- UART: J4 (115200 baud)
- LEDs: Power
- Buttons: Reset, WPS
- PWR: 12V/1A DC, 5.5×2.1 connector

Signed-off-by: Jianyu Zhuang <xzjianyu@gmail.com>
2024-12-13 21:01:20 +08:00
Oleg S
21eb7bf2ae mediatek: expand kernel size to 6MiB for Xiaomi AX6S
Expand kernel partition size on Xiaomi AX6S for the kernel larger than
4 MiB. Manual upgrade from OpenWRT to new OpenWRT:

cd /tmp
dd if=factory.bin bs=1M count=4 | mtd write - kernel
dd if=factory.bin bs=1M skip=4 count=2 | mtd write - ubi
dd if=factory.bin bs=1M skip=6  | mtd -p 2097152 write - ubi

Signed-off-by: Oleg S <remittor@gmail.com>
2024-12-12 21:18:25 +08:00
coolsnowwolf
d242992f65 base-files: allow override model name from uboot env 2024-12-11 19:28:11 +08:00
Luis Mita
41e0c30d82 mediatek: add Cudy TR3000 v1 support
Hardware:
 - SoC: MediaTek MT7981B
 - CPU: 2x 1.3 GHz Cortex-A53
 - Flash: 128 MiB SPI NAND
 - RAM: 512 MiB
 - WLAN: 2.4 GHz, 5 GHz (MediaTek MT7976CN, 802.11ax)
 - Ethernet: 1x 10/100/1000/2500 Mbps WAN, 1x10/100/1000 Mbps LAN
 - USB 3.0 port
 - Buttons: 1 Reset button, 1 slider button
 - LEDs: 1x Red, 1x White
 - Serial console: internal test points, 115200 8n1
 - Power: 5 VDC, 3 A

Installation:
The installation must be done via TFTP by disassembling the router.
On other occasions Cudy has distributed intermediate firmware to make
installation easier, and so I recommend checking the Wiki for this
device if there is a more convenient solution than the one below.

To install using TFTP:
1. Connect to UART.
2. With the router off, press the RESET button. While the router is turning
   on, the button should continue to be pressed for at least 5 seconds.
3. A u-boot shell will automatically open.
4. Connect to LAN and set your IP to 192.168.1.88/24. Configure a
   TFTP server and an OpenWrt initramfs-kernel.bin firmware file.
5. Run these steps in u-boot using the name of your file.

setenv bootfile initramfs-kernel.bin
tftpboot
bootm

6. If you can reach LuCI or SSH now, just use the sysupgrade image
   with the 'Keep settings' option turned off.

Signed-off-by: Luis Mita <luis@luismita.com>
2024-12-10 17:30:36 +08:00
Beginner
da0bc37b19
kernel: bump 6.6 to 6.6.64 (#13195) 2024-12-10 10:10:12 +08:00
mars-m9
e87df11ac5
intel-microcode: update to 20241112 (#13193) 2024-12-09 23:10:07 +08:00
coolsnowwolf
eb12799875 uboot-rk35xx: fixes build with gcc13
Fixes: #13191
2024-12-09 23:06:21 +08:00
Beginner
e66ffaf37c
kernel: bump 6.1 to 6.1.119 (#13185) 2024-12-08 16:01:09 +08:00
Beginner
fd9b9cc78b
kernel: refresh 6.6 patches (#13179) 2024-12-07 15:13:57 +08:00
Beginner
d83ce75e31
kernel: refresh 6.12 patches (#13178) 2024-12-07 10:56:20 +08:00
coolsnowwolf
cb4244db53 ksmbd: add SMB v1 support 2024-12-06 18:13:53 +08:00
coolsnowwolf
9e010ff34a kernel: bump 6.12 to 6.12.3 2024-12-06 16:45:13 +08:00
coolsnowwolf
2778ccf7a3 Revert "tools: update versions"
This reverts commit ff5046f.
2024-12-06 11:40:05 +08:00
coolsnowwolf
06366c30e7 uqmi: update to latest HEAD 2024-12-06 11:30:08 +08:00
coolsnowwolf
ef272b46c0 noddos: fix gcc 13 building 2024-12-05 19:32:39 +08:00
coolsnowwolf
d06838b449 libreadlne: create symlinks for .so 2024-12-04 22:36:03 +08:00
coolsnowwolf
0ab7c18f48 ksmbd: update to Git HEAD (2024-12-02) 2024-12-04 13:55:27 +08:00
coolsnowwolf
228c3c4403 Revert "ksmbd: move to in tree kernel buidin module"
This reverts commit f09fb1ac12.
2024-12-04 13:01:29 +08:00
coolsnowwolf
2ce0dfdc41 elfutils: fix build with gcc 8 2024-12-03 22:27:16 +08:00
coolsnowwolf
0c725fe51b ubus: update to Git HEAD (2024-10-20) 2024-12-03 20:42:54 +08:00
coolsnowwolf
e59c30afbb libubox: update to Git HEAD (2024-03-29) 2024-12-03 20:05:32 +08:00
coolsnowwolf
3409218cf9 README.md: update host apt install package 2024-12-03 18:08:22 +08:00
coolsnowwolf
0e2c0a340c meson: allow using staging python 2024-12-03 14:27:03 +08:00
coolsnowwolf
e67c755180 autosamba: allow select samba server type 2024-12-03 14:26:15 +08:00
coolsnowwolf
841d082824 target.mk: improve ipv6 support package 2024-12-03 13:55:08 +08:00
coolsnowwolf
3022abc26c procd: use standard POSIX header for basename() 2024-12-03 13:28:24 +08:00
coolsnowwolf
4ebc73897e elfutils: Update to 0.192 2024-12-03 13:14:16 +08:00
coolsnowwolf
6c2883702c toolchain/musl: Update to 1.2.5 2024-12-03 12:58:46 +08:00
coolsnowwolf
326599e3d0 toolchain: gcc: switch default to 13 2024-12-03 12:31:48 +08:00
Michael Pratt
003a084905 build: add default host build recipes for gnulib
Add generic recipes for incorporating gnulib into a build
for simplification and readability of the individual build Makefile.

Recipes for configuring and installing are purposefully missing
since "configuring" gnulib is done with standard autoreconf
and gnulib is not a final build target meant for installing.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/15853
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-12-02 21:56:35 +08:00
Christian Marangi
70c103fda7 host-build: always define Host/Prepare/Default
We currently skip defining Host/Prepare/Default if HOST_UNPACK is not
defined.

This is mostly the case for Host packages that just provide files with
the src directory and don't need to be downloaded/extracted.

This was probably done lots of times ago due to quilt causing error as
the patches directory wasn't present.
This has changed now and quilt can correctly detect if no patches needs
to be applied (instead of terminating with error)

Always define Host/Prepare/Default to make tools/refresh correctly works
as HOST_QUILT is hardcoded enabled for this make target and will
complain for tool not prepared for quilt patches.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-12-02 21:55:40 +08:00
coolsnowwolf
fbc2865461 Release: v24.10.0-rc1: adjust config defaults 2024-12-02 19:28:12 +08:00
coolsnowwolf
7f19e32c4a Version update to R24.12.12 2024-12-02 19:22:30 +08:00
Georgi Valkov
72bab93bc3 toolchain/gcc: fix build errors on macOS with Xcode 15.3
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:550:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    _LIBCPP_INLINE_VISIBILITY
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:891:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
 #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
          __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))

Fixed using backport of upstream commits [1-2] as discussed here
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632#c21

[1] Include safe-ctype.h after C++ standard headers, to avoid over-poisoning
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a

[2] libcc1: fix <vector> include
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
2024-12-02 18:56:09 +08:00
coolsnowwolf
ff5046fa7c tools: update versions and sync with upstream v24.10 2024-12-02 18:53:09 +08:00
Michael Pratt
17731641e4 tools: add gnulib source
By having a local copy of gnulib, we can:
import the latest macro fixes into any package,
get rid of some statically stored macros that were otherwise missing,
bootstrap GNU tools with the latest relevant source
without having to wait for a release or rely on git submodules,
and possibly more...

The patch assists in bootstrapping by ignoring
the building of po files using gettext,
and also to allow a user-defined path to a program
to include parameters.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2024-12-02 13:00:13 +08:00
Internet1235
28e46bb611
openssl: make compatible with v1.1 pkg (#13143) 2024-12-01 22:23:53 +08:00
coolsnowwolf
007d406efc rockchip: refine fan speed for mmbox anas3035 2024-11-29 18:31:31 +08:00
coolsnowwolf
1609903030 mt76: add kernel 6.12 support 2024-11-29 17:20:57 +08:00
Daniel Golle
efce6b6392 generic: 6.6: update block nvmem patchset
While discussions are still ongoing, update the block NVMEM provider
patchset to the level submitted upstream to allow testing and validation.

Link: https://patchwork.kernel.org/project/linux-block/list/?series=875202
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-27 22:01:05 +08:00
Álvaro Fernández Rojas
446d071896 generic: backport upstream r8169 patches
These patches have been added in linux v6.12 release.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-11-27 21:40:20 +08:00
Marty Jones
c6de673aa5 linux-firmware: update to 20241110
linux-firmware update to 20241110
Move WCN6750 firmware to the device-specific subdir

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2024-11-26 23:00:20 +08:00
aiamadeus
61b26c92f8 uboot-rockchip: disable optee client
Fixes: #13129
2024-11-26 22:30:17 +08:00
coolsnowwolf
a87916d4c1 README: add llvm as build dependency 2024-11-25 23:06:26 +08:00
John Audia
4d0b9caf5f kernel: bump 6.6 to 6.6.63 (#16997)
Manually rebased:
	bcm27xx/patches-6.6/950-0297-staging-vchiq_arm-Add-36-bit-address-support.patch

All other patches automatically rebased. Fix: #13121

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-11-25 18:16:27 +08:00
aiamadeus
3d32cf1756 rockchip: fixes rk3588 usb3 init issue 2024-11-24 22:30:05 +08:00
coolsnowwolf
9bfa3a936d r8125/r8126: improve transmit performance 2024-11-24 22:28:16 +08:00
coolsnowwolf
468d14896b kernel: disable kmod-fs-ntfs for Linux 6.12 2024-11-23 11:25:46 +08:00
coolsnowwolf
3346bf1ee2 kernel: bump 6.12 to 6.12.1 2024-11-23 01:35:01 +08:00
coolsnowwolf
0a6ea7cfbf rockchip: add support for MMBOX ANAS3035 2024-11-23 01:02:34 +08:00
coolsnowwolf
27a261c8df r8125: support devname configuration from OF 2024-11-23 01:01:23 +08:00
coolsnowwolf
030f6f6ec6 rockchip: enable support for disk led trigger 2024-11-23 01:00:37 +08:00
coolsnowwolf
f031685a8c kmod-sound-hda-core: fix build with linux 6.12 2024-11-23 00:58:43 +08:00
coolsnowwolf
fd656efbc3 kernel: bump 6.6 to 6.6.63 2024-11-23 00:31:00 +08:00
coolsnowwolf
85d99596b4 generic: fix netfilter xtables NFLOG and MARK not load on IPv4 on linux 6.6 2024-11-22 23:57:01 +08:00
coolsnowwolf
26cc6f2a46 ipq807x: add Arcadyan AW1000 support 2024-11-22 21:59:04 +08:00
coolsnowwolf
f09fb1ac12 ksmbd: move to in tree kernel buidin module 2024-11-22 21:05:17 +08:00
coolsnowwolf
676db02019 modules: kmod-fs-cifs fix build with kernel 6.12 2024-11-22 16:32:44 +08:00
coolsnowwolf
af207e5f62 uboot-rockchip: update rkbin and add rk3576 support 2024-11-22 13:00:18 +08:00
coolsnowwolf
0c80cdd186 rockchip: add ArmSoM Sige5 (RK3576, 8 Cores) board support 2024-11-22 12:50:27 +08:00
coolsnowwolf
ab8cac3519 rockchip: backport upstream rk3576 support for kernel 6.6 2024-11-22 10:57:43 +08:00
coolsnowwolf
8decff2d88 toolchain: fix gcc 11 build error with host gcc-14 2024-11-22 10:43:46 +08:00
coolsnowwolf
32dc417ef8 ksmbd: fix build with kernel 6.12 2024-11-22 10:37:04 +08:00
coolsnowwolf
af098a176f kmod-tpm: fix linux 6.12 support 2024-11-21 23:02:51 +08:00
coolsnowwolf
6b5e1a552f x86: add kconfig for linux 6.12 2024-11-21 14:25:25 +08:00
coolsnowwolf
a6567a2415 autocore: fix kernel 6.12 x86 board name display 2024-11-21 13:17:45 +08:00
coolsnowwolf
53e61ac527 kernel: add linux kernel 6.12 support 2024-11-21 13:16:25 +08:00
coolsnowwolf
be8fee09fb mac80211: add kernel build with 6.11+ support 2024-11-21 12:27:34 +08:00
coolsnowwolf
28f226a038 r8125: fix build with linux 6.9+ 2024-11-21 12:20:47 +08:00
coolsnowwolf
a816cede4d r8168: fix build with linux 6.9+ 2024-11-21 12:14:51 +08:00
coolsnowwolf
826816c208 r8126: fix build with linux 6.9+ 2024-11-21 12:13:54 +08:00
coolsnowwolf
418c887452 generic: sync genlmsg_mcast patch with upstream with kernel 6.6.59+ 2024-11-21 12:10:10 +08:00
aiamadeus
71196b2724 kernel: video: add ST7789V LCD driver 2024-11-20 22:36:09 +08:00
aiamadeus
c74ed3282c rockchip: add HINLINK H29K CPE Board 2024-11-20 22:26:09 +08:00
coolsnowwolf
44ac9994fe rockchip: add NanoPi R2C Plus support 2024-11-19 12:30:32 +08:00
coolsnowwolf
bafb6af955 rockchip: move nanopi r2s plus dts to common dts files 2024-11-19 12:14:25 +08:00
coolsnowwolf
d72ea8c7b6 ramips: mt7621: fix Huasifei MT7621 DTU led status 2024-11-19 11:10:10 +08:00
coolsnowwolf
54aae07290 rockchip: Add support for FriendlyElec NanoPi R2S Plus 2024-11-18 22:09:35 +08:00
coolsnowwolf
655367c488 rockchip: add Radxa ROCK 5A support 2024-11-18 21:56:45 +08:00
coolsnowwolf
4db4344cac kernel: bump 6.1 to 6.1.118 2024-11-18 15:24:26 +08:00
coolsnowwolf
b743ccd20c kernel: bump 5.15 to 5.15.173 2024-11-18 15:13:42 +08:00
coolsnowwolf
0004a5c57f kernel: bump 6.6 to 6.6.62 2024-11-18 14:52:26 +08:00
coolsnowwolf
bdc94f7fd2 kernel: bump 6.1 to 6.1.117 2024-11-18 00:31:56 +08:00
coolsnowwolf
20b3f20e53 kernel: bump 6.6 to 6.6.61 2024-11-17 23:23:59 +08:00
coolsnowwolf
29c13455d2 kernel: Split kmod-video-dma into two kmods 2024-11-17 23:09:09 +08:00
coolsnowwolf
d17b0026c2 LEDE v24.10: set branch defaults 2024-11-17 23:02:41 +08:00
Patryk Kowalczyk
4a7dd142ff filogic: add support for ASUS TUF AX6000
Hardware
========
SOC: MediaTek MT7986
RAM: 512MB DDR3
FLASH: 256MB SPI-NAND
WIFI: Mediatek MT7986 DBDC 802.11ax 2.4/5 GHz 4T4R
ETH: MediaTek MT7530 Switch (LAN)
MaxLinear GPY211C 2.5 N-Base-T PHY (WAN)
MaxLinear GPY211C 2.5 N-Base-T PHY (LAN)
UART: 3V3 115200 8N1 (Do not connect VCC)
USB 3.1

Signed-off-by: Patryk Kowalczyk <patryk@kowalczyk.ws>
2024-11-17 21:01:20 +08:00
coolsnowwolf
8a28dd39d4 ipq60xx: add alt name to JDCloud routers 2024-11-17 16:16:06 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
94c4c1331a bcm27xx: switch default kernel to 6.6
Update default kernel version to 6.6 for the Raspberry Pi devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-11-17 16:06:03 +08:00
coolsnowwolf
0c5fee5ec2 mediatek: add BananaPi BPi-R3 mini 2024-11-16 18:20:10 +08:00
coolsnowwolf
7b605254b7 ubnt-ledbar: adapt for kernel v6.1 2024-11-16 18:00:03 +08:00
John Audia
44a23972ec kernel: bump 6.6 to 6.6.60
All other patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2024-11-15 16:40:05 +08:00
Beginner
eba03073ab kernel: bump 6.6 to 6.6.59 2024-11-15 16:18:19 +08:00
coolsnowwolf
9b5d129bec Version update to R24.11.11 2024-11-14 14:14:42 +08:00
coolsnowwolf
1063641e6e branding: add LEDE branding 2024-11-14 13:14:47 +08:00
coolsnowwolf
5cd761710a ath10k-ct: fix build with some target 2024-11-14 12:53:29 +08:00
coolsnowwolf
0404234acb ubnt-ledbar: fix compilation error 2024-11-14 11:31:21 +08:00
coolsnowwolf
cb33d17dba Revert "rkbin: update to latest git HEAD" 2024-11-13 23:38:08 +08:00
coolsnowwolf
128d3289dd kernel: remove obsolete rtl8812au driver 2024-11-13 23:36:23 +08:00
Til Kaiser
ec78ad954a kernel: netdevices: adjust mlxsw network drivers
* Adds the x86_64 dependency for mlxsw_core

* Removes the redundant mlxsw_core dependency
from mlxsw-minimal and mlxsw-spectrum

* Removes the DCB configuration symbols because
they were moved into the generic configuration

Signed-off-by: Til Kaiser <mail@tk154.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-11-12 23:05:23 +08:00
Til Kaiser
55afdb73c6 kernel: modules: add boot flag to igc, mlx4/5 drivers
Set the boot flag for the igc, mlx4-core, and mlx5-core network device drivers
to load them at a more early stage of the boot process.

This is required for network drivers whose network interface PCI paths are set
via ucidef_set_network_device_path inside the 02_network script since it is
called after kernel modules are loaded from modules-boot.d but before they are
loaded from the modules.d directory.

Signed-off-by: Til Kaiser <mail@tk154.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-11-12 23:01:36 +08:00
asushugo
dd5c39cbab qualcommax: ipq60xx: add support for JDCloud RE-CS-07 2024-11-11 05:22:04 +00:00
coolsnowwolf
17cbfefbe1 qualcommax: ipq50xx: add support for GL.iNet GL-B3000 2024-11-10 23:25:26 +08:00
coolsnowwolf
86b0876324 kernel: qca-ssdk/qca-nss-dp: fixes kernel 6.1 support 2024-11-10 23:16:10 +08:00
coolsnowwolf
2b10822e1b kernel: qca-ssdk/qca-nss-dp: update to 12.5 for kernel 6.6 support 2024-11-09 23:01:43 +08:00
coolsnowwolf
f2e1532a7c qualcommax: add support for JDCloud AX3000 2024-11-09 15:36:01 +08:00
coolsnowwolf
a6ea160b40 ath11k-firmware: add IPQ5018 wifi firmware 2024-11-09 15:20:15 +08:00
coolsnowwolf
105f4fd96a qualcommax: add ipq50xx target init support 2024-11-09 11:20:25 +08:00
Álvaro Fernández Rojas
c5a7f6cde1 kernel: r8126: update to v10.014.01
Changelog: https://github.com/openwrt/rtl8126/compare/10.013.00...10.014.01

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-11-08 23:10:29 +08:00
Álvaro Fernández Rojas
7702e88e60 kernel: r8125: update to v9.014.01
Changelog: https://github.com/openwrt/rtl8125/compare/9.013.02...9.014.01

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-11-08 23:09:05 +08:00
Álvaro Fernández Rojas
a5eeb5700e kernel: r8168: update to v8.054.00
Changelog: https://github.com/openwrt/rtl8168/compare/8.053.00...8.054.00

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-11-08 23:06:03 +08:00
aiamadeus
19649ea2dc r8152: update to version 2.19.2 2024-11-07 21:36:03 +08:00
aiamadeus
f0ab317249 rkbin: update to latest git HEAD 2024-11-07 21:26:16 +08:00
aiamadeus
44cccd68f5 rtw88-usb: update to latest git HEAD 2024-11-06 21:06:18 +08:00
aiamadeus
7ce7dc32e0 linux-firmware: update RTW88/89 firmware 2024-11-06 21:00:26 +08:00
aiamadeus
d83c55af85 rockchip: enable lcd/pwm-fan for srcm3588 2024-11-05 20:36:08 +08:00
aiamadeus
6cbe4f5135 ipq60xx: fixes usb3 power for jdc ax6600
Fixes: #12396
2024-11-05 20:30:10 +08:00
喵二
4915cc9ed2
leigod-acc: update binary program (#12608)
leigod-acc: fixed bind issues & use fail issues
2024-11-04 10:08:08 +08:00
Daniel Golle
9630906317 mediatek: mt7988: fix peripheral SPI busses
The clocks for SPI busses were named wrongly which resulted in the
spi-mt65xx driver not requesting them. This has apparently been
worked around by marking the clocks required for SPI0 which is used
for SPI-NOR and SPI-NAND flash chips as critical.
Fix the device tree for all 3 generic SPI host controllers and no
longer mark clocks as critical.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-04 10:01:00 +08:00
Daniel Golle
f942a330fe mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan
Assign pwm function of PWM0 pin to the pwm-fan.
This is mostly just cosmetics as it basically reflects the default
setting of that pin.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-03 23:01:21 +08:00
Daniel Golle
6bcceed653 mediatek: pinctrl-mt7988: add missing PWM pingroups
Add additionals possible pinctrl group for pwm2~7 on pins
pin  4 (GPIO_A)        pwm7
pin 58 (JTAG_JTDI)     pwm2
pin 59 (JTAG_JTDO)     pwm3
pin 60 (JTAG_JTMS)     pwm4
pin 61 (JTAG_JTCLK)    pwm5
pin 62 (JTAG_JTRST_N)  pwm6

They can be useful e.g. on the BPi-R4 as in that way pwm2~6 can be exposed
on the 26-pin header (pwm6 always, pwm2~5 instead of the full UART).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-03 23:00:07 +08:00
Daniel Golle
011c3ad78d mediatek: backport pending Ethernet PHY driver patches
Use pending patchset for 2.5GE PHY driver, unifying LED handling
accross all MediaTek Ethernet PHYs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-02 22:16:02 +08:00
Daniel Golle
4078885193 generic: backport pending driver for Winchip CH348 USB
Import patch and package kernel module for Winchip CH348
USB-to-8x-UART chip.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-02 22:00:28 +08:00
Daniel Golle
897572506f generic: phy: aquantia: correctly describe LED polarity
Backport newly introduced support for 'active-high' property and use
it to correctly implement polarity assignment for Aquantia PHY LEDs.
Previously the 'active-low' property was used to switch a LED PIN to
active-high ("drive VDD" in Aquantia-speak) mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-11-01 13:00:09 +08:00
Robert Marko
e5c20ddcd0 generic: add fix for AQR113 PMD Global Transmit Disable bit
PMD Global Transmit Disable bit should be cleared for normal operation.
This should be HW default, however I found that on Asus RT-AX89X that uses
AQR113C PHY and firmware 5.4 this bit is set by default.

With this bit set the AQR cannot achieve a link with its link-partner and
it took me multiple hours of digging through the vendor GPL source to find
this out, so lets always clear this bit during .config_init() to avoid a
situation like this in the future.

aqr107_wait_processor_intensive_op() is moved up because datasheet notes
that any changes to this bit are processor intensive.

This is a modified version of patch that got merged upstream as AQR113C
has a separate config_init() upstream.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-11-01 12:38:20 +08:00
coolsnowwolf
bd85b63920 build: correctly ignore Initramfs image might fail as it's too big 2024-10-31 17:11:03 +08:00
coolsnowwolf
568395dbbd ramips: switch to kernel 5.10 2024-10-31 17:03:54 +08:00
coolsnowwolf
f3d6035d78 kernel: bump 5.10 to 5.10.221 2024-10-31 16:53:49 +08:00
coolsnowwolf
ecd7193bd2 Revert "tools/libtool: bump to 2.4.6"
This reverts commit 906045201f.
2024-10-30 22:23:29 +08:00
coolsnowwolf
3e24ca1105 kernel: fix rtw88x kernel 6.x build 2024-10-30 21:04:40 +08:00
coolsnowwolf
3a31a9cf67 feeds.conf.default: swtich to custom telephony feeds 2024-10-30 16:06:27 +08:00
coolsnowwolf
3f0ed51973 ath10k-ct: fix build with arm/mips 2024-10-30 15:54:28 +08:00
coolsnowwolf
e40fe43e49 gpio-nct5104d: fix kernel 6.x build 2024-10-30 15:03:38 +08:00
coolsnowwolf
906045201f tools/libtool: bump to 2.4.6 2024-10-30 11:57:42 +08:00
coolsnowwolf
35cc3202be luci-app-spdmodem: remove spdmodem package 2024-10-30 11:19:26 +08:00
coolsnowwolf
2d97f3db67 sprd_pcie: remove package in replace of kernel buildin 2024-10-30 11:18:34 +08:00
coolsnowwolf
b926a6f9cb rockchip: refresh uboot devices config
Fixes: #12621
2024-10-30 10:36:28 +08:00
coolsnowwolf
a82c6fd5f9 drm-nouveau: fix build with kernel 6.x 2024-10-29 20:25:38 +08:00
coolsnowwolf
a091a96c87 hostapd: always enable nl80211 driver support 2024-10-29 15:45:10 +08:00
coolsnowwolf
7e49db2e33 ddns-scripts_dnspod: update with luci upstream 2024-10-29 03:31:19 +08:00
coolsnowwolf
68d77afcac ddns-scripts_aliyun: update with luci upstream 2024-10-29 03:23:43 +08:00
Daniel Golle
b1684789ed mediatek: mt7988: add DT entries for WED
Add memory regions and devices used for wireless offloading to the
device tree for MT7988.

This allows using WED on devices with MT7988 SoC and MT7995E, MT7996E or
MT7992E wireless controllers.

Devices with 4 GiB of RAM (or more) will still need ajustments to avoid
running out of swiotlb entries.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-28 10:06:12 +08:00
Daniel Golle
e1b895b3cb generic: mtk_wed: fix path of MT7988 WO firmware
commit eee3c695f3 ("linux-firmware: add offloading firmware for MT7988")
added mt7988_wo_{0,1}.bin in the 'mediatek/mt7988' directory while driver
currently expects the files in the 'mediatek' directory.

Import pending patch which changes the path in the driver header now
that the firmware has been added.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-28 10:05:19 +08:00
Daniel Golle
e0f6d6b7ea kernel: add MultiPath TCP diag kernel module
Add INET diag socket monitoring interface module for MultiPath TCP.
It allows using native Linux socket diagnostic tools such as 'ss' for
Multipath TCP connections.

Co-authored-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
Signed-off-by: sKy King <29267720+sKyissKy@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/12884
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-27 06:52:18 +08:00
Daniel Golle
33cec3d343 kernel: enable Multi-Path TCP for !SMALL_FLASH targets
Expose Kernel's CONFIG_MPTCP option and enable it by default for
!SMALL_FLASH targets.

The idea behind enabling it by default is to allow users of the binary
distribution to make use of MPTCP tunneling for link aggregation.

Using MPTCP for link aggregation is an often discussed topic in the
forum and there is even a whole OpenWrt fork (MPTCPRouter) just for that.

Enabling the kernel-side of the story by default will allow using MPTCP
on vanilla OpenWrt without having to build anything from source.

See also https://openwrt.org/docs/guide-user/network/mptcp

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-27 06:51:53 +08:00
coolsnowwolf
b84bb53053 luci-app-leigod-acc: fix zh_Hans with luci js i18n 2024-10-27 06:48:17 +08:00
coolsnowwolf
17e8a30dbc Version: Celebrate 24/1024 Programmers Day 2024-10-27 06:22:32 +08:00
coolsnowwolf
e5706cfa80 linux-firmware: add offloading firmware for MT7988 2024-10-27 05:19:28 +08:00
coolsnowwolf
2f58aa6006 Version update to R24.10.1 2024-10-26 18:40:06 +08:00
Stefan Lippers-Hollmann
6969af9b5e linux-firmware: Update to version 20241017
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-26 18:36:06 +08:00
Tianling Shen
02c320a0cf
mediatek: minor fixes for openembed som7981 (#12598)
Signed-off-by: Tianling Shen <i@cnsztl.eu.org>
2024-10-25 21:20:26 +08:00
aiamadeus
972664bd05 Revert "kernel: bump 6.1 to 6.1.111"
This reverts commit 718ac376b9.
2024-10-25 21:00:16 +08:00
Beginner
ce88975693
kernel: bump 6.6 to 6.6.58 (#12593) 2024-10-24 22:16:05 +08:00
aiamadeus
3a4c5001b3 rockchip: move rk3328 dmc node to dtsi 2024-10-23 21:20:08 +08:00
coolsnowwolf
9a93c4cc0c rockchip: add OrangePi 5 Plus support 2024-10-23 00:05:28 +08:00
coolsnowwolf
cf4723548d rockchip: add OrangePi 5 support 2024-10-22 23:53:51 +08:00
coolsnowwolf
f0f8f53e51 rockchip: add FriendlyElec NanoPi R3S support 2024-10-22 23:41:31 +08:00
aiamadeus
9f65b6fb9e rockchip: add seewo srcm3588/expand support 2024-10-22 23:26:26 +08:00
coolsnowwolf
2eb18369f8 rockchip: add FriendlyARM NanoPi/PC devices 2024-10-22 10:36:06 +08:00
aiamadeus
2c463fa4fb uboot-rockchip: update to version 2024.10
Fixes: #12572
2024-10-22 10:18:10 +08:00
coolsnowwolf
d1ef46c5dd autocore: add getCPUUsage for ubus reading 2024-10-21 21:26:18 +08:00
coolsnowwolf
cb77f7a857 ipq-wifi: update to latest version 2024-10-08 2024-10-21 10:14:24 +08:00
Beginner
e325c0a2db
kernel: bump 6.6 to 6.6.57 (#12556) 2024-10-20 18:20:19 +08:00
coolsnowwolf
f1b0e6c52e qualcommax: net: QCA NSS MCS support 2024-10-20 15:12:48 +08:00
Daniel Golle
b3eded6f1c generic: phy: aquantia: move accepted patches to backport-6.6
Move patches accepted upstream from pending-6.6 to backport-6.6.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-19 21:29:16 +08:00
Daniel Golle
151296d52b generic: phy: aquantia: add pending patch to force MDI pair order
Import pending patch to force MDI pair order.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-19 21:28:07 +08:00
coolsnowwolf
eaa043c4cf mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX) 2024-10-18 17:33:52 +08:00
喵二
b9910de8d9
luci-app-leigod-acc: add scheduled pause (#12404)
* Leigod-Acc: Add Scheduled Pause

* luci-app-leigod-acc: add scheduled pause

---------

Co-authored-by: 喵二 <2860950766@qq.com>
2024-10-18 16:44:42 +08:00
coolsnowwolf
28e2e4d04a autocore: fix tempinfo path 2024-10-18 15:10:00 +08:00
coolsnowwolf
e2ebf13c36 Version update to R24.10.24 2024-10-17 21:24:12 +08:00
coolsnowwolf
3f4f0ccac9 autocore: implement tempinfo display for luci js 2024-10-17 19:26:28 +08:00
coolsnowwolf
b7cf62b3a8 base-files: improve Luci2 js support 2024-10-17 19:05:31 +08:00
Hauke Mehrtens
8f378b3297 base-files: failsafe: Remove the VLAN modifier from interface name
Some interfaces have a VLAN modifier like :t in lan1:t, this modifier
should be removed from the interface before calling preinit_ip_config().

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-17 17:22:09 +08:00
Arınç ÜNAL
05979aadf6 base-files: add protocol ncm support for ucidef_set_interface()
Make it possible to set up a default network (interface) for devices with
cellular modems using NCM.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2024-10-17 17:19:39 +08:00
coolsnowwolf
2757124d34 procd: move service command to procd 2024-10-17 17:12:14 +08:00
coolsnowwolf
9f40de14ca base-files: simplify restorecon logic 2024-10-17 17:04:21 +08:00
coolsnowwolf
8527c75281 base-files: ipcalc.sh: check for params before calculating start/end 2024-10-17 16:51:29 +08:00
coolsnowwolf
864e344469 base-files: stage2: add 'tail' to sysupgrade environment 2024-10-17 16:46:31 +08:00
coolsnowwolf
1175c829e6 base-files: rework mtd_get_mac_text() 2024-10-17 16:34:38 +08:00
Luiz Angelo Daros de Luca
1627fd2c74 base-files: bring up vlan interface too
Vlan subinterface was never brought up when using vlan-based preinit network.
Tested forcing ifname="" before preinit_ip() on a Tp-Link Archer C5v4.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2024-10-17 16:09:49 +08:00
Mark Baker
508dd96b84 base-files: add support for retrieving IPv6 assignments
In DHCPv6-PD enabled environments, addresses are assigned to interfaces.
These new functions retrieve the IPv6 assigned prefix(es).

Signed-off-by: Mark Baker <mark@vpost.net>
2024-10-17 16:06:09 +08:00
Karel Kočí
1c2a7462df base-files: fix enabled for services with only STOP
There are services that have only STOP value set. They are executed only
on shutdown and it is common to use them for system cleanup. There is
one such service shipped directly with base-files, it is 'umount'. Those
work the same way as those with START but enabled does not report them
as enabled although it should have as they can be enabled and disabled
as any other service.

This also changes check from check for executable to check for symbolic
link. The implementation depends on those being links to service file
and it is much cleaner and direct to check for them being links.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2024-10-17 16:03:37 +08:00
Florian Eckert
bd8d34909d base-files: fix service_running check
The following command checks if a instance of a service is running.
/etc/init.d/<service> running <instance>

 In the variable `$@`, which is passed to the function
`service_running`, the first argument is always the `instance` which
should be checked. Because all other variables where removed from `$@`
with `shift`.

Before this change the first argument of `$@` was set to the `$service`
Variable. So the function does not work as expected. The `$service`
variable was always the instance which should be checked. This is not
what we want.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Reviewed-by: Sungbo Eo <mans0n@gorani.run>
2024-10-17 16:02:48 +08:00
Florian Eckert
b498e0ac33 base-files: add wrapper for procd service list command
A service managed by procd does have a json object with usefull information.
This information could by dumped with the following command.

ubus call service list "{ 'verbose':true, 'name': '<service-name>)'". }"

This line is long and complicated to enter. This commit adds a wrapper
call to the procd service section tool to simplify the input and get the
output faster.

We could now enter the command /etc/initd/<service> info to get the info
faster.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-10-17 16:01:07 +08:00
Alexey Smirnov
98b97c58f2 base-files: add support for heartbeat led trigger
This patch adds support for creation heartbeat led trigger with,
for example, this command:

	ucidef_set_led_heartbeat "..." "..." "..."

from /etc/board.d/01_leds.

Signed-off-by: Alexey Smirnov <s.alexey@gmail.com>
2024-10-17 15:42:50 +08:00
Olliver Schinagl
8f7e660d4d base-files: LED/trigger/heartbeat: Add support for inversion
The heartbeat trigger has the option to be inverted, however
openwrt/uci/luci have no way to set this.

This patch adds this support.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-10-17 15:39:53 +08:00
Olliver Schinagl
cf0d45e534 base-files: LED/gpio: Ensure inverted is read as a boolean
The sysfs interface for the GPIO takes a boolean value. Ensure we get
one from uci.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2024-10-17 15:39:13 +08:00
Mark Mentovai
a4c100df52 failsafe: run on all consoles listed in /proc/cmdline
On x86, when both CONFIG_GRUB_CONSOLE and CONFIG_GRUB_SERIAL are set (as
they are by default), the kernel command line will have two console=
entries, such as

    console=tty0 console=ttyS0,115200n8

Failsafe was only running a shell on the first defined console, the VGA
console. This is a problem for devices like apu2, where there is only a
serial console and it appears on ttyS0.

Moreover, the console prompt to enter failsafe during boot was delivered
to, and its input read from, the last console= on the kernel command
line. So while the failsafe shell was on the first defined console, only
the last defined console could be used to enter failsafe during boot.

In contrast, the x86 bootloader (GRUB) operates on both the serial
console and the VGA console by virtue of "terminal_{input,output}
console serial". GRUB also provided an alternate means to enter failsafe
from either console. The presence of two console= kernel command line
parameters causes kernel messages to be delivered to both. Under normal
operation (not failsafe), procd runs login in accordance with inittab,
which on x86 specifies ttyS0, hvc0, and tty1, allowing login through any
of serial, hypervisor, or VGA console. Thus, serial access was
consistently available on x86 devices with serial consoles under normal
operation, except for shell access in failsafe mode (without editing the
kernel command line).

By presenting the failsafe prompt, reading failsafe prompt input, and
running failsafe shells on all consoles listed in /proc/cmdline,
failsafe mode will work correctly on devices with a serial console (like
apu2), and the same image without any need for reconfiguration can be
shared by devices with the more traditional (for x86) VGA console. This
improvement should benefit any system with multiple console= arguments,
including x86 and bcm27xx (Raspberry Pi).

Signed-off-by: Mark Mentovai <mark at moxienet.com>
2024-10-17 15:07:03 +08:00
Matthias Schiffer
75663fdd70 base-files: fix merge of passwd/shadow/group lines with trailing colons
Empty trailing fields get lost when the lines are split and merged again
at colons, resulting in unparsable entries. Only use the split fields for
matching against the other file, but emit the original line unchanged
to fix the issue.

Fixes: de7ca7dafadf ("base-files: merge /etc/passwd et al at sysupgrade config restore")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2024-10-17 15:03:52 +08:00
Shiji Yang
a4b597b221 base-files: support parse DT LED color and function
The 'label' property in led node has been deprecated and we'd better
to avoid using it. This patch allows us to extract DT OF LED name
from the newly introduced LED properties "color", "function" and
"function-enumerator".

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-10-17 15:00:48 +08:00
Philip Prindeville
1172e4c4b6 busybox: preserve crontabs
/etc/syslog.conf is used by sysklogd, and /etc/crontabs is used
by crond, both features of busybox.  Given this, ownership for
these files should be bound to busybox, especially if one day
there's a way to do an in-place opkg update of busybox.

There's also the busybox provided syslogd which uses this file
if CONFIG_BUSYBOX_FEATURE_SYSLOGD_CFG is set.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2024-10-17 14:54:38 +08:00
Tony Ambardar
da4a165063 base-files: enable BPF JIT kallsyms by default
Set net.core.bpf_jit_kallsyms=1 in /etc/sysctl.d/10-default.conf.

For privileged users, this exports addresses of JIT-compiled programs to
appear in /proc/kallsyms when present, allowing their use for debugging
and in traces.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2024-10-17 14:53:07 +08:00
David Bauer
1af9ce7777 base-files: allow ignoring minor compat-version check
Downstream projects might re-generate device-specific configuration
based on OpenWrt's defaults on each upgrade, thus being unaffected by
forward- as well as backwards-breaking configuration.

Add a new sysupgrade parameter, which allows sysupgrades between minor
compat-versions. Upgrades will still fail upon mismatching major compat
versions.

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-10-17 14:47:58 +08:00
Andre Heider
f6243f2bb4 base-files: add 'isup' to the wifi script
This is a silent command that allows easy wifi up/down automation for
scripts.

It takes one or multiple devices as arguments (or all if none are passed),
and the exit code indicates if any of those is not up.

E.g.:
wifi isup && echo "all wifi devices are up"
wifi isup radio0 || echo "this wifi is down"

Signed-off-by: Andre Heider <a.heider@gmail.com>
2024-10-17 14:46:48 +08:00
coolsnowwolf
68e1f16060 rockchip: sync kernel 6.x with upstream 2024-10-17 11:20:08 +08:00
coolsnowwolf
21bbc6fbed ipq807x: add support for Aliyun AP8220 2024-10-16 23:10:43 +08:00
aiamadeus
fd1b694242 rockchip: 6.6: fixes rk3568 pcie msi issue 2024-10-16 21:18:28 +08:00
coolsnowwolf
4f77bbc4a4 uboot-rockchip: refresh rk3399 devices config
Fixes: #12538
2024-10-15 19:40:18 +08:00
Mieczyslaw Nalewaj
339673597b kernel: rtl8367b: store chip in smi->rtl8367b_chip
Store the chip type in smi->rtl8367b_chip, fix #12537

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-14 23:10:21 +08:00
coolsnowwolf
3f4efb6c4f rockchip: fix some devices support
Fixes: #12533
2024-10-13 21:36:06 +08:00
Beginner
ecaf84009c
kernel: bump 6.6 to 6.6.56 (#12530) 2024-10-12 10:10:41 +08:00
Robert Marko
0b75ecd310 generic: 5.15: add Winbond W25N01KV support
It seems that some Xiaomi AX3000T boards changed to using Winbond W25N01KV
SPI-NAND which is not supported in OpenWrt 23.05 but only in main.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-10-12 10:01:05 +08:00
Daniel Golle
2d6568c5d4 generic: 6.6: backport pending fix for Aquantia PHY LEDs
The 'active-low' property was not applied correctly and two fixes
are required to make inverted LEDs work as expected.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-10-11 22:16:03 +08:00
coolsnowwolf
1c8d69465e README.md: drop python2 as build environment requirement 2024-10-10 00:52:09 +08:00
Mieczyslaw Nalewaj
57abb30ed3 generic: mtd: winbond: more serial NAND flash types
Add support for W25N01JW, W25N02JWZEIF, W25N512GW, W25N02KWZEIR and W25N01GWZEIG.
Add support for W25N04KV.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-09 22:20:09 +08:00
Tianling Shen
8061c8b8f9
mediatek: add support for OpenEmbed SOM7981 (#12524)
* kernel: crypto: add atmel i2c hw accelerator support

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* kernel: add led act/polarity select for rtl8221 phy

Signed-off-by: Tianling Shen <cnsztl@gmail.com>

* mediatek: add support for OpenEmbed SOM7981

Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 256 MiB SPI-NAND
  RAM: 0.5/1 GB DDR4
  Ethernet: 1x 1GbE, 1x 2.5GbE (RTL8221B)
  WiFi: MediaTek MT7976C
  USB: 1x M.2 B-Key
  GPIO: 26-Pin header
  UART: 6 GND, 8 TX, 10 RX (in Pin header)
  Button: Reset

Installation:
The board comes with a third-party custom OpenWrt image, you can upload
sysupgrade image via LuCI directly WITHOUT keeping configurations.

Or power on the board with pressing reset button for 5 second, then visit
http://192.168.1.1 and upload -factory.bin firmware.

Signed-off-by: Tianling Shen <cnsztl@gmail.com>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2024-10-08 19:42:37 +08:00
coolsnowwolf
9a4a925205 generic: add missing kernel config 2024-10-06 22:08:18 +08:00
Beginner
6df0b2d9f4
kernel: bump 6.6 to 6.6.54 (#12519) 2024-10-05 01:55:15 +08:00
John Audia
ff581ad03b x86: generic: 6.6: refresh config
Add CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y which was introduced
back in April of this year[1]

1. ce0abef6a1

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-04 23:08:10 +08:00
coolsnowwolf
af37c0ffb4 atf-rockchip: update rk3568 support 2024-10-03 22:00:09 +08:00
aiamadeus
c54f4958dc r8152: add support for r8157 2024-10-02 23:00:03 +08:00
coolsnowwolf
b99d532315 kernel: bump 5.4 to 5.4.284 2024-10-01 14:11:04 +08:00
Beginner
d1ebc2ca7d
kernel: bump 6.6 to 6.6.53 (#12509) 2024-10-01 12:25:04 +08:00
Beginner
1a1b7da30d
kernel: bump 6.1 to 6.1.112 (#12510) 2024-10-01 12:20:19 +08:00
coolsnowwolf
fac34a2dfe rockchip: sync upstream 6.6 source code 2024-09-30 10:38:28 +08:00
coolsnowwolf
55b08d2052 bcm27xx: fix linux 6.1 compile issues 2024-09-29 18:54:51 +08:00
syb999
02f936358c usb-audio: add kernel 6.6 dependency 2024-09-28 20:09:39 +08:00
Oskari Lemmela
91b20eaedb kernel: netdevices: add dsa support
Add support for building DSA switch drivers as kernel modules.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-27 19:15:22 +08:00
Oskari Lemmela
42d626f8d8 kernel: netdevices: add leds support
Compile LED support to swconfig and phy modules

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-26 23:27:17 +08:00
Oskari Lemmela
d51d4477e3 kernel: netdevices: add phy modules
Add support for building multiple phy drivers as kernel modules

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-26 23:25:22 +08:00
Oskari Lemmela
6ca5e85514 kernel: modules: add irq support for pca953x
Enable interrupt controller support for PCA953x kernel module

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-26 23:21:06 +08:00
coolsnowwolf
a75453bbc9 rtw88-usb: fix rtw8703b build with kernel 6.6+ 2024-09-25 15:39:42 +08:00
coolsnowwolf
297d4adf02 Update README_EN.md 2024-09-25 13:39:22 +08:00
coolsnowwolf
af5276890c README.md: update Armsom Sige Board series info 2024-09-24 16:40:57 +08:00
coolsnowwolf
3d47ebac7b rockchip: add ArmSoM Sige7 (RK3588 ARM64 8 cores) support 2024-09-24 15:15:27 +08:00
Hauke Mehrtens
90131838f3 linux-firmware: Update to version 20240909
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-23 19:38:19 +08:00
Chuanhong Guo
0dc62d9d8b siflower: new target for Siflower SF19A2890
Siflower SF19A2890 is an SoC with:
Dual-core MIPS InterAptiv at 800MHz
DDR3 controller
One Gigabit Ethernet MAC with RGMII and IPv4 HNAT engine
Built-in 2x2 11N + 2x2 11AC WiFi radio
USB 2.0 OTG
I2C/SPI/GPIO and various other peripherals

This adds support for SF19A2890 EVB with ethernet support.

EVB spec:
Memory: DDR3 128M
Ethernet: RTL8367RB 5-port gigabit switch
Flash: 16M NOR
Others: MicroUSB OTG, LED x 1, Reset button x1

The built image can be flashed using u-boot recovery.

This target is marked as source-only until support for a commercial
router board comes.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2024-09-22 23:25:18 +08:00
Chuanhong Guo
a5d881f3a3 package: busybox: disable mips16 on hard-float
The busybox built with mips16 enabled has broken seq command.
Disassembling shows that the call to hard-float strtod in mips16
code is generated without the __call_stub_fp.

As a result, strtod returns the result in float point registers
while the calling mips16 code expect the result in v0/v1.

Disable mips16 on hard-float targets for now. The built .ipk goes
from 213316 bytes to 251419 bytes.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2024-09-22 23:21:02 +08:00
coolsnowwolf
5ea6cb7c37 rockchip: backport driver updates for rk3588 2024-09-21 17:22:54 +08:00
aiamadeus
801f345131 kernel: refresh 6.1 patches
Fixes: 718ac37 ("kernel: bump 6.1 to 6.1.111")
Closed: #12487
2024-09-21 15:16:16 +08:00
coolsnowwolf
6dc420855a kernel: bump 6.6 to 6.6.52 2024-09-19 22:24:09 +08:00
coolsnowwolf
718ac376b9 kernel: bump 6.1 to 6.1.111 2024-09-19 22:14:36 +08:00
John Audia
6da40576e0 kernel: bump 6.6 to 6.6.51 (#16370)
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.51

All other patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-09-19 15:10:28 +08:00
coolsnowwolf
fa54bfe3db rockchip: fixes r8125 nic support 2024-09-19 15:06:09 +08:00
coolsnowwolf
53661b6a15 rockchip: add RUMU3F FINE 3399 support 2024-09-18 17:14:00 +08:00
coolsnowwolf
92d4a09c0a Version update to R24.9.18 2024-09-18 17:01:32 +08:00
coolsnowwolf
dc8ed6a7bd rockchip: switch to kernel 6.6 2024-09-18 15:08:32 +08:00
coolsnowwolf
2ad20218e5 uboot-rockchip: add ArmSoM Sige7 support 2024-09-18 15:01:54 +08:00
coolsnowwolf
98e2f0b48b rockchip: add ArmSom Sige3 RK3568 (ARM64 4 cores) support 2024-09-18 14:05:09 +08:00
aiamadeus
3aad94cd07 r8125/r8126: conflicts with rss 2024-09-16 23:30:30 +08:00
coolsnowwolf
a3ca5c60f0 rkbin: remove tfa references
Fixes: #12465
This is closed source, no need.
2024-09-15 19:10:21 +08:00
Ivan Pavlov
a45c291927 openssl: update to 3.0.15
OpenSSL 3.0.15 is a security patch release.
The most severe CVE fixed in this release is Moderate.

This release incorporates the following bug fixes and mitigations:

  * Fixed possible denial of service in X.509 name checks (CVE-2024-6119)

  * Fixed possible buffer overread in SSL_select_next_proto() (CVE-2024-5535)

Added github releases url as source mirror

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-15 19:00:05 +08:00
Chuanhong Guo
dcb074e9d3 ipset: update to version 7.21
release notes:
7.21: https://www.spinics.net/lists/netfilter-devel/msg85299.html
7.20: https://www.spinics.net/lists/netfilter-devel/msg85120.html
7.19: https://www.spinics.net/lists/netfilter-devel/msg82985.html

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2024-09-14 22:20:16 +08:00
Chuanhong Guo
6d659cd7fd ipset: include libgen.h for basename
musl dropped the GNU version of basename prototype from string.h
in 1.2.5.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2024-09-14 22:16:29 +08:00
coolsnowwolf
136890c672 Update README.md for macOS 2024-09-13 22:02:26 +08:00
aiamadeus
49910e1e4c generic: refresh kernel 6.6 patches 2024-09-12 23:00:10 +08:00
John Audia
530265022e kernel: bump 6.6 to 6.6.50 (#16351)
All patch automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-09-12 22:40:09 +08:00
coolsnowwolf
c9c95be315 uboot-rockchip: update rkbin dependencies 2024-09-11 22:16:08 +08:00
coolsnowwolf
95c79b7036 atf-rockchip: add support for rk3568/rk3588 2024-09-11 22:10:12 +08:00
aiamadeus
9fcac0612c rockchip: rk-rng: simplify with dev_err_probe 2024-09-10 22:36:05 +08:00
aiamadeus
eb08cc889a rockchip: improve some rk3528 devices support
- Fixes reboot issues with radxa e20c
  - Enable ssd1306 for mangopi-m28k pro
2024-09-10 22:30:21 +08:00
Zheng Zhang
0c35082a17 mediatek: fix wed use-after-free kernel panic
Fix a use-after-free bug in mtk_wed_setup_tc_block_cb()
which leads to kernel panic when setup multiple ap
interfaces on one band of mt798x.

Signed-off-by: Zheng Zhang <everything411@qq.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-09-09 23:36:05 +08:00
Álvaro Fernández Rojas
83273215e8 generic: 6.6: backport upstream r8169 patches
- improve RTL8411b phy-down fixup
- remove not needed check in rtl_fw_write_firmware
- remove multicast filter limit
- improve handling task scheduling
- simplify EEE handling
- simplify code by using core-provided pcpu stats allocation
- add generic rtl_set_eee_txidle_timer function
- support setting the EEE tx idle timer on RTL8168h
- add support for returning tx_lpi_timer in ethtool get_eee
- annotate writes on dev->mtu from ndo_change_mtu()
- disable interrupt source RxOverflow
- remove detection of chip version 11 (early RTL8168b)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-09-08 22:08:04 +08:00
Álvaro Fernández Rojas
821b80c796 generic: 6.6: backport upstream Realtek PHY patch
- Fix setting of PHY LEDs Mode B bit on RTL8211F.
- Rename pending Realtek PHY patches.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-09-07 21:16:17 +08:00
Álvaro Fernández Rojas
92ccb72981 generic: 6.6: backport realtek phy patches from 6.11
- add support for rtl8224 2.5Gbps PHY
- add support for PHY LEDs on RTL8211F

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-09-06 23:28:22 +08:00
Álvaro Fernández Rojas
bbe8198ea5 generic: 6.6: backport upstream RealTek PHY patches
Replace downstream RealTek PHY patches with backported ones.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-09-05 22:00:09 +08:00
coolsnowwolf
9ed955ab9b ramips: mt7621: improve Huasifei MT7621 DTU support 2024-09-04 21:16:08 +08:00
coolsnowwolf
0736e2feec x86: add support for iKOOLCORE R2 Max 2024-09-03 23:28:18 +08:00
Florian Eckert
68828f1f80 kernel: usb: remove deprecated option
The Kconfig option 'CONFIG_USB_XHCI_HCD_DEBUGGING' has been removed with the
following commit upstream in the Linux kernel.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b2497509df002e9a09c8550cd0ecd2f77c9640d8

This Kconfig option is therefore no longer valid for the kernel version
5.4 and could be removed.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-09-02 23:01:08 +08:00
Til Kaiser
7b3297e6ad generic: 6.x: add missing DCB symbols
Disables Data Center Bridging support for some network drivers by
default to avoid compilation errors when CONFIG_DCB is enabled.

Signed-off-by: Til Kaiser <mail@tk154.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-01 23:00:28 +08:00
Robert Marko
740b33dd7c generic: filter out CONFIG_FRAME_WARN
CONFIG_FRAME_WARN value is set by config/Config-kernel.in based on the
target type dynamically since commit:
16a2051 ("kernel: Set CONFIG_FRAME_WARN depending on target").

However, CONFIG_FRAME_WARN was not set to get filtered out so it ended up
in multiple target configs during refreshes.
So, lets filter out CONFIG_FRAME_WARN as its set dynamically to prevent it
ending up in more target configs.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2024-08-31 23:30:09 +08:00
Mieczyslaw Nalewaj
09375a2f7b kernel: rtl8367b: remove rlvid analysis
Remove the rlvid analysis because for the rtl8367b family chips supported
by the driver (rtl8367rb and rtl8367r-vb), rlvid is always equal to 1.
So the code for rlvid equal to 0 is completely unnecessary.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-08-30 22:36:21 +08:00
aiamadeus
3c9bacd390 rockchip: backport 6.11 rk3568 gpufreq fix
Some cost down devices require this fixes.
2024-08-29 23:02:29 +08:00
Robert Marko
3e637c9fc8 generic: 6.6: add Winbond W25N01KV support
It seems that some Xiaomi AX3000T boards changed to using Winbond W25N01KV
SPI-NAND which is not supported in OpenWrt nor upstream kernel.

So, add a pending patch to support it as upstream supports rest of the KV
revision models.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-08-28 22:40:20 +08:00
Daniel Pawlik
2fdd47aff0 mt76: Add firmware files into mt7925 package
The firmware binaries were missing in kmod-mt7925-firmware package.
There was a typo done for mt7925e and mt7925u in the KernelPackage
definitions, which caused the system to load the wrong kernel modules.

Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
2024-08-27 21:30:15 +08:00
aiamadeus
4f9d051c8e package: add driver for aic8800 sdio wifi 2024-08-27 20:02:21 +08:00
aiamadeus
6c15bad147 rockchip: add some rk3528 devices support 2024-08-26 22:30:18 +08:00
aiamadeus
be32bce9df rockchip: add basic support for RK3528(A)
RK3528 is a cost down SoC with high CPU performance.
However, it has poor PCIe performance (same for RK3576).
Also CPU 0/1 can't get any rest due to rkbin limitation.

Some code references: https://github.com/warpme/minimyth2
2024-08-26 20:10:04 +08:00
coolsnowwolf
6149067618 armbian-firmware: add bcm sdio fw package 2024-08-25 22:38:09 +08:00
coolsnowwolf
d856657965 generic: kernel 6.6: fixes thermal driver 2024-08-25 22:30:13 +08:00
coolsnowwolf
166b4bd84e mediatek: add missing wifi for hf-m7986r1 2024-08-23 23:15:19 +08:00
coolsnowwolf
fd25a03bef uboot-rk35xx: add new package for rk3528 2024-08-23 23:10:29 +08:00
aiamadeus
12641b1ce1 rockchip: refresh rk3568 devices support 2024-08-22 21:38:26 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
68ec0da1d5 package: add kmod-r8126 ethernet driver
r8126 is an out of tree driver provided by Realtek for RTL8126 devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[Refresh our patch, disable aspm]
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2024-08-21 20:53:10 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
b53ecbb75a package: add kmod-r8125 ethernet driver
r8125 is an out of tree driver provided by Realtek for RTL8125 devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[Refresh our patch, disable aspm]
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2024-08-21 20:50:16 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
0061cb8a1f package: add kmod-r8168 ethernet driver
r8168 is an out of tree driver provided by Realtek for RTL8168 devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[Refresh our patch]
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2024-08-21 20:40:21 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
1ba4b04f46 package: add kmod-r8101 ethernet driver
r8101 is an out of tree driver provided by Realtek for RTL8101 devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-08-21 20:28:36 +08:00
aiamadeus
6da30838ca rockchip: add support for Radxa ROCK 3C 2024-08-20 23:30:23 +08:00
aiamadeus
c35bad3287 ipq40xx: use old upgrade scripts for asus ac42u/ac58u 2024-08-18 23:40:24 +08:00
aakkll
a6c9d54925 kernel: bump 6.6 to 6.6.46 and update config (#12413) 2024-08-17 18:40:01 +08:00
coolsnowwolf
a66cf5fe24 rockchip: fixes build for rk3328 and rk3399 devices 2024-08-15 23:50:23 +08:00
coolsnowwolf
d3bc57db55 arm-trusted-firmware-rockchip-vendor: rename to rkbin 2024-08-15 22:38:35 +08:00
coolsnowwolf
793679209f arm-trusted-firmware-rockchip-vendor: bump to latest git HEAD 2024-08-13 23:05:26 +08:00
coolsnowwolf
26a04de18b ramips: add Huasifei MT7621 DTU network and wwan cpe settings 2024-08-12 16:52:24 +08:00
coolsnowwolf
912cb4bdc1 sendat: add AT Commnad package 2024-08-12 16:30:47 +08:00
coolsnowwolf
6df7d6894f ramips: add Huasifei MT7621 DTU support 2024-08-11 15:22:19 +08:00
Mieczyslaw Nalewaj
9cb68c2e60 kernel: 6.6: modules: lan743x: add missing dependency
Fix error: Package kmod-lan743x is missing dependencies
for the following libraries: fixed_phy.ko

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
2024-08-10 23:16:08 +08:00
left_left
2593995b8e autocore: fix CPU usage display with procps (#12399) 2024-08-09 21:40:05 +08:00
coolsnowwolf
3341f523c2 update default packages for filogic and ipq60xx, x86
Fixes: #12388
2024-08-08 22:08:37 +08:00
coolsnowwolf
bb208b0974 rockchip: add ScenSmart SV901 EAIO Replica Board support 2024-08-07 21:30:26 +08:00
coolsnowwolf
1640f5708e Revert "luci-app-leigod-acc: add scheduled pause (#12378)"
This reverts commit 33188e1cc5.
2024-08-06 00:25:46 +08:00
Stijn Tintel
bb839963b1 kernel: add missing BTF symbol for 6.6
Enabling KERNEL_DEBUG_INFO_BTF and KERNEL_KPROBE_EVENTS on 6.6 exposes
CONFIG_PROBE_EVENTS_BTF_ARGS in the kernel config. Add a build option
for it to fix build failures with KERNEL_DEBUG_INFO_BTF and
KERNEL_KPROBE_EVENTS enabled on targets using the 6.6 kernel.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2024-08-05 22:50:11 +08:00
Marek Behún
2c6595fa43 gpio-button-hotplug: add vendor button
Handle the KEY_VENDOR key in gpio-button-hotplug driver.
This is used by Turris Omnia.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-08-04 23:35:33 +08:00
aiamadeus
d0aedf02ff libcryptopp: rewrite compilation process
This makes it easier to upgrade version.
Fixes: #12380
2024-08-03 23:50:08 +08:00
喵二
33188e1cc5
luci-app-leigod-acc: add scheduled pause (#12378) 2024-08-02 22:10:06 +08:00
coolsnowwolf
0d4e0de6a1 luci-app-leigod-acc: add tun mode support 2024-08-02 16:37:53 +08:00
喵二
e53905ae41
leigod-acc: fix typo and add conntrack depends (#12376)
* Update: Leigod Acc

* Update: Leigod Acc Depends conntrackd

* fix: zh-cn

* Update leigo-acc.po

---------

Co-authored-by: coolsnowwolf <31687149+coolsnowwolf@users.noreply.github.com>
2024-08-02 01:49:26 +08:00
coolsnowwolf
e958c5f2b3 leigod-acc: add Leigod Game Accelerater package and luci 2024-08-01 18:32:40 +08:00
coolsnowwolf
576235b0f1 phy-aquantia: fix build with 6.1.100+ 2024-08-01 11:29:55 +08:00
Álvaro Fernández Rojas
31c0baa4db generic: 6.6: backport upstream r8169 patches
Backport a bunch of upstream r8169 patches:
- RTL8168/RTL8101 LEDs support.
- RTL8126A support.
- RTL8125/RTL8126 LEDs support.
- RTL8168M support.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-08-01 11:25:50 +08:00
coolsnowwolf
75c1433842 Version update to R24.8.1 2024-07-31 10:52:47 +08:00
coolsnowwolf
a5cb49ea42 autocore: fix AMD Ryzen AI 300 Series Processors CPU temp display 2024-07-31 10:52:00 +08:00
coolsnowwolf
b55f5d84a0 x86: use kernel 6.6 by default 2024-07-31 10:47:20 +08:00
coolsnowwolf
625dbc3505 linux-firmware: amd64-microcode: add AMD Ryzen AI 300 Series Processors ucode support 2024-07-31 10:46:10 +08:00
Daniel Golle
a03505e141 mediatek: fix PCIe #PERST de-asserted too early
The driver for MediaTek gen3 PCIe hosts de-asserts all reset
signals at the same time using a single register write operation.
Delay the de-assertion of the #PERST signal by 100ms as some PCIe
devices fail to come up otherwise.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-30 23:20:19 +08:00
Daniel Golle
88450c61a3 kernel: backport fixes for MTK Ethernet driver
Fix PSE port assignment for 3rd GMAC on MT7988 and make sure dma_addr
is always initialized to prevent potentially accessing uninitialized
stack memory in the error path.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-30 23:15:19 +08:00
aiamadeus
deb218ea2e generic: 6.1/6.6: remove gro improvement patch
Avoid unstable situations, closed: #12331
2024-07-29 22:06:27 +08:00
XIE Zhibang
f252f21b3d netfilter: kmod-nft-netdev: add egress support
The netdev egress hook was added in Linux kernel 5.16.

Signed-off-by: XIE Zhibang <Yeking@Red54.com>
2024-07-28 23:36:04 +08:00
Yogi Hermawan
3bbf603357
ramips: fix Bolt BL201 support (#12361)
Changes:
1. Update device baud rate.
2. Modify LED and button GPIO values and names.
3. Adjust partition layout to match the stock configuration.
4. Add missing package dependencies for USB.
5. Include device UIMAGE Magic value.
6. Revise switch layout.
7. Assign different MAC addresses.
2024-07-27 18:01:35 +08:00
coolsnowwolf
1faba8061d apk: move package to core 2024-07-26 17:00:34 +08:00
coolsnowwolf
8c14a219b1 kmod-switch-bcm53xx: fixes build on kernel 5.4 2024-07-26 16:36:04 +08:00
coolsnowwolf
5859fc60a4 config: revert to use GRUB_SERIAL 2024-07-25 20:35:07 +08:00
coolsnowwolf
ff2689bd48 mediatek: fixes kernel 5.15 build
Fixes: #12356
2024-07-24 21:30:03 +08:00
John Audia
062d85f8fd kernel: bump 6.6 to 6.6.40 (#15956)
All other patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-23 22:00:08 +08:00
Zxl hhyccc
f9f1a684ea kernel: bump 6.1 to 6.1.100 (#15973)
All patches automatically rebased.

Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com>
2024-07-23 21:50:28 +08:00
coolsnowwolf
150b745250 mt76: fixes build for older kernel
Fixes: #12343
2024-07-22 20:35:30 +08:00
coolsnowwolf
2dde298ca1 config: sync with upstream source code 2024-07-22 20:32:48 +08:00
John Audia
f316dcb0a4 modules: change package definition for fb
This commit accomplishes three goals:
1. bump 6.6 to 6.6.33
2. kernel: modules: video: change package definition for fb for
   upstream changes[1]
3. kernel/multiple subtargets: add CONFIG_FB_IOMEM_FOPS=y to all
   subtargets which also set CONFIG_FB_CORE=y.

Fixes: #12344
Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: John Audia <therealgraysky@proton.me>
2024-07-21 22:16:03 +08:00
aiamadeus
e7646d45d5 generic: add missing realtek phy led patches 2024-07-19 23:02:05 +08:00
aiamadeus
64b80093dd mediatek: replace mac-address-increment hack 2024-07-19 23:00:27 +08:00
秋野かえで
d4b2121ac2
config: add xdp-sockets-diag support (#12341) 2024-07-18 21:10:10 +08:00
Robert Marko
e725c6198c kernel: fix x86 compilation on macOS
Trying to compile x86 or x86_64 on macOS will fail with:
openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.36/tools/include/linux/rbtree.h:21:10: fatal error: 'linux/stddef.h' file not found

After some digging, it seems that we dropped the old 212-tools_portability
patch when 6.6 x86 support was added, then Felix added back some parts of
it in ("kernel: fix tools build breakage on macos with x86") but trying to
build x86 kernels will still fail.

So, lets add more of the required changes from the 212-tools_portability
patch so that x86 kernels build on macOS.

Fixes: 69b145188f1a ("generic: 6.6: Removal of tools_portability.patch already included in kernel 6.6")
Link: https://github.com/openwrt/openwrt/pull/15904
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-18 13:12:11 +08:00
John Audia
410fe9f49b kernel: bump 6.6 to 6.6.38
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.38

Removed target/linux/generic/hack-6.6/900-fix-build-to-handle-return-value.patch
which was introduced as a hacky attempt to fix an upstream issue related to 6.6.37.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/15879
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-18 13:10:24 +08:00
Rosen Penev
02c176caaf lua: fix CVE-2014-5461 (Buffer overflow)
Patch taken from Debian.

Refresh patches

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-07-15 22:06:06 +08:00
Zxl hhyccc
991451d002 kernel: bump 6.1 to 6.1.98 (#15935) 2024-07-14 23:15:14 +08:00
coolsnowwolf
665cedd251 mt76: fixes build error for mt7925
Fixes: #12328
2024-07-13 23:02:08 +08:00
Robert Marko
b3de7a9adf config: add ARM PMUv3 for kernel 6.6
Kernel 6.6 has moved the ARM PMUv3 driver to drivers/perf and now once
KERNEL_ARM_PMU is selected trying to build the kernel will stop with:
ARM PMUv3 support (ARM_PMUV3) [N/y/?] (NEW)

So, lets enable ARM_PMUV3 for ARMv7 and ARMv8 architectures if
KERNEL_PERF_EVENTS is selected.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-12 22:25:20 +08:00
coolsnowwolf
54ad1c5009 rockchip: fix sata support for rk3568 2024-07-11 22:20:06 +08:00
coolsnowwolf
8a8bf45736 mediatek: filogic: fix HF-M7986R1 typo 2024-07-11 22:10:15 +08:00
aiamadeus
6a9ab8e562 sunxi: backport H616 cpufreq support 2024-07-10 22:18:14 +08:00
Álvaro Fernández Rojas
33489cf2e7 linux-firmware: add RTL8126 firmware
This commit adds RTL8126 firmwares to r8169-firmware package.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-07-09 22:08:07 +08:00
coolsnowwolf
83fc42fcdb build: enable ipv6 support by default 2024-07-09 22:04:57 +08:00
Beginner
8cf859bf01
kernel: bump 5.15 to 5.15.162 (#12317) 2024-07-08 14:57:44 +08:00
Daniel Golle
e693552f7f generic: 6.6: mtk_eth_soc: import accepted patches
Import two imported patches accepted upstream.
Move from pending:
 - net: ethernet: mtk_eth_soc: implement .{get,set}_pauseparam ethtool ops

Initial import:
 - net: ethernet: mtk_ppe: Change PPE entries number to 16K

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-08 11:30:46 +08:00
Daniel Golle
ded1993bd6 generic: 6.6: mtk_eth_soc: add support for flow-control settings
Add patch implementing operations to get and set flow-control link
parameters of mtk_eth_soc via ethtool.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-08 11:25:29 +08:00
coolsnowwolf
ae0e24c157 qualcommax: ipq60xx: fix squashfs configuration for emmc image 2024-07-08 10:25:16 +08:00
Martin Schiller
a0cb802ac6 generic: 6.6: backport fix for broken cmdline "nosmp" and "maxcpus=0"
This backports the fix for the broken "nosmp" and "maxcpus=0" cmdline
params.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/15811
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-07 22:23:24 +08:00
Qingfang Deng
adfb25ecd0 mediatek: fit: fix use of uninitialized variable
When building the kernel with -Wmaybe-uninitialized, GCC reports this
warning:

block/partitions/fit.c: In function 'parse_fit_partitions':
block/partitions/fit.c:164:3: warning: 'images' may be used uninitialized in this function [-Wmaybe-uninitialized]
  164 |   printk(KERN_ERR "FIT: Cannot find %s node: %d\n", FIT_CONFS_PATH, images);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It appears to be a copy paste error. It's the "config" variable that is
supposed to be printed.

Fixes: e6aac8d98f56 ("image: add support for building FIT image with filesystem")
Signed-off-by: Qingfang Deng <qingfang.deng@siflower.com.cn>
2024-07-07 22:23:03 +08:00
Chuanhong Guo
44e17fac52 kernel: mtdsplit: fix fit rootfs_data split
fit size should be rounded up instead of rounding down first and adding
a block. Otherwise the calculated size is one block more than needed
when fit size is exactly multiples of one block size.

Fixes: 9a863f803ec1 ("kernel: mtdsplit: add support for FIT image")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Qingfang Deng <qingfang.deng@siflower.com.cn>
2024-07-07 22:22:42 +08:00
coolsnowwolf
ca094bc318 generic: fix compilation warning for ar8xxx swconfig for kernel 5.4/5.10 2024-07-07 22:21:10 +08:00
Beginner
f3887ab8b7
kernel: bump 6.6 to 6.6.37 (#12313) 2024-07-07 17:11:27 +08:00
Beginner
6b275d3f2f
kernel: bump 6.1 to 6.1.97 (#12312) 2024-07-07 17:11:09 +08:00
Miles Poupart
87cc82ea69
autocore: add missing CPU frequency info (#12314)
Fix CPU frequency info for rockchip
2024-07-07 16:18:13 +08:00
aiamadeus
ddaa6722f4 base-files: move ntp server to default settings 2024-07-06 23:05:37 +08:00
aiamadeus
a68bae1b95 qualcommax: fixes dts part for some devices
Fixes: #12309
2024-07-06 23:02:18 +08:00
Christian Lamparter
34a261f30e firmware: intel-microcode: update to 20240531
Debian changelog:

intel-microcode (3.20240531.1) unstable; urgency=medium

  * New upstream microcode datafile 20240531
    * Fix unspecified functional issues on Pentium Silver N/J5xxx,
      Celeron N/J4xxx
    * Updated Microcodes:
      sig 0x000706a1, pf_mask 0x01, 2024-04-19, rev 0x0042, size 76800
  * source: update symlinks to reflect id of the latest release, 20240531

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2024-07-05 22:36:10 +08:00
Daniel Golle
cc3b73156f generic: fitblk: typo in dmesg output
Fix spelling in dmesg output during boot when using the fitblk driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-05 22:30:10 +08:00
coolsnowwolf
7ecb40bb3a quectel_QMI_WWAN: bump to v3.0-2 2024-07-04 13:47:52 +08:00
coolsnowwolf
983de37cf8 mt76: update to Git HEAD (2024-05-17) 2024-07-04 13:36:18 +08:00
coolsnowwolf
df4e307b30 mediatek: fix PWM fan on BPi-R4 for 6.1 kernel 2024-07-04 02:51:44 +08:00
coolsnowwolf
c672c2da4e Version update to R24.7.7 2024-07-04 02:48:38 +08:00
coolsnowwolf
4c5284498f autocore: add mediatek mt7988 cpufreq display 2024-07-04 02:46:17 +08:00
coolsnowwolf
c2a01cf771 mediatek: sync kernel 6.1 from upstream 2024-07-04 02:26:54 +08:00
coolsnowwolf
382d2c2e3d mediatek: filogic: fix HF-M7986R1 reset button 2024-07-04 01:11:24 +08:00
coolsnowwolf
b4fe0e2919 mediatek: filogic: add HF-M7986R1 emmc sysupgrade support 2024-07-03 20:13:09 +08:00
Sean Khan
ade3055089 f2fs-tools: Add missing 'f2fslabel' symlink
`f2fslabel` is already built into `f2fs.fsck`, but is missing its symlink
in the final package.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/15851
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-07-03 18:51:51 +08:00
coolsnowwolf
0397de1060 mt76: add MediaTek MT7996 (PCIe) support 2024-07-03 14:34:32 +08:00
coolsnowwolf
3a5a4986fa mac80211: Add EHT UL MU-MIMO flag in ieee80211_bss_conf 2024-07-03 14:27:19 +08:00
coolsnowwolf
5d1aadf436 mt76: update to Git HEAD (2024-04-19) 2024-07-03 13:42:54 +08:00
Beginner
12be5cfdd6
kernel: bump 6.1 to 6.1.96 (#12298) 2024-07-03 13:12:10 +08:00
Beginner
79c106c720
kernel: bump 6.6 to 6.6.36 (#12299) 2024-07-03 12:10:03 +08:00
coolsnowwolf
6dfcc5e782 Revert "mediatek: backport a hell of thermal commits"
This reverts commit e1132c36d9.
2024-07-02 23:31:41 +08:00
coolsnowwolf
e5017ff7ca mt76: fix linux kernel 6.1 support for mediatek 2024-07-02 15:58:53 +08:00
coolsnowwolf
e1132c36d9 mediatek: backport a hell of thermal commits 2024-07-02 15:55:07 +08:00
coolsnowwolf
b3e60d1892 generic: sync kernel 6.1 from upstream 2024-07-02 15:24:05 +08:00
coolsnowwolf
2f7ba54f99 mediatek: include fitblk package for subtargets 2024-07-02 13:44:11 +08:00
coolsnowwolf
b9b078da8e base-files: upgrade: nand.sh: mute umount error 2024-07-02 13:16:51 +08:00
coolsnowwolf
319b46b4bd base-files: recognize bootdevice on devices using fitblk 2024-07-02 13:14:41 +08:00
Daniel Golle
ea86509cd1 generic: 6.6: net: ethernet: mediatek: Allow gaps in MAC allocation
Some devices with MediaTek SoCs don't use the first but only the second
MAC in the chip. Especially with MT7981 which got a built-in 1GE PHY
connected to the second MAC this is quite common.
Make sure to reset and enable PSE also in those cases by skipping gaps
using 'continue' instead of aborting the loop using 'break'.

Fixes: 75081235b8 ("generic: 6.6: (re-)add support multiple PPE to mtk_eth_soc")
Reported-by: Daniel Suchy <danny@danysek.cz>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-02 13:02:58 +08:00
Shiji Yang
eb6cb4abf8 kernel: mtd: ubi: avoid attaching "linux,ubi" mtd again
"linux,ubi" compatible MTD device can be automatically attached early
since commit fc153aa8d94f. Therefore, there is no need to attach MTD
devices named "ubi" or "data" again.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-07-02 13:02:40 +08:00
coolsnowwolf
d0c0f941ad generic: kernel add 6.6 missing symbols 2024-07-02 13:01:05 +08:00
coolsnowwolf
f2d670b67f fstools: update to Git HEAD (2024-01-22) 2024-07-02 12:33:45 +08:00
coolsnowwolf
02b1ec2525 target: x86: add intel-microcode for Intel CPU microcode update 2024-07-02 12:26:11 +08:00
coolsnowwolf
05d2fc3d9b autocore: disable gso offload for some x86 network card hw issue 2024-07-02 12:22:58 +08:00
coolsnowwolf
4d50adb8ef mediatek: filogic: add HF-M7986R1 EMMC Version support 2024-07-02 12:09:12 +08:00
coolsnowwolf
03835617b9 cryptodev-linux: fix build with linux-5.10.220+ 2024-07-01 22:41:46 +08:00
coolsnowwolf
141a53a029 mediatek: filogic: enable HF-M7986R1 emmc support 2024-07-01 16:39:42 +08:00
Daniel Golle
08aaf074b9 mediatek: add support for BananaPi BPI-R4 board
Hardware
--------
SOC:    MediaTek MT7988A (4x Cortex-A73)
RAM:    4 GiB DDR4
Flash:  128 MiB Winbond SPI-NAND
MMC:    8 GiB eMMC *or* microSD (cannot be used both)
ETH:    4x 1GE (1x WAN, 3x LAN)
        2x SFP+ (10G, 5G, 2.5G, 1G)
USB:    on-board USB 3.2 4-port hub
        1x USB 3.2 port (type A connector)
        1x M.2 for 4G/5G modem
        2x mPCIe for additional modems
WiFi:   optional MediaTek MT7996 Wi-Fi 7 module
        (using 2x PCIe gen3 x2 on the mPCIe slots and 12V power)

Installation
------------
1. Decompress and write the sdcard image to a micro SD card and use that
to boot the R4 (both dip switches in upper position).

2. Use the bootloader menu accessible via the serial console to install
to SPI-NAND.

3. Switch to boot from SPI-NAND and install to eMMC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 13:36:10 +08:00
Daniel Golle
21ab9a9f1a uboot-mediatek: update to U-Boot 2024.01 release
Rebase local patches on top of quarterly timed release, allowing to
drop numerous patches which have been accepted upstream since the
release of U-Boot 2023.07.02.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 12:33:07 +08:00
Daniel Golle
15d850a5ef arm-trusted-firmware-mediatek: use UBI on new NAND targets
Make use of recently added UBI support in MediaTek's ARM
TrustedFirmware-A on new MT7988 SoC.

Load fip from static UBI volume instead of fixed offset on SPIM-NAND
and SNFI.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 12:20:28 +08:00
Daniel Golle
052d09668b package: add fitblk util to release /dev/fit* devices
Add minimalistic tool to allow releasing /dev/fit* devices which is
needed on sysupgrade when using the fitblk driver.
The package is hidden in menuconfig, it should only be selected by
adding it to the default package selection of boards using it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 12:16:32 +08:00
Daniel Golle
8acf60b77e kernel: add pending fitblk uImage.FIT sub-image block driver
Add 'fitblk' driver to replace the rejected/deprecated uImage.FIT
partition parser.
To use the new driver, add phandle /chosen/rootdisk and point it to
the MTD partition, UBI volume or block device holding the uImage.FIT.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 12:11:00 +08:00
Daniel Golle
2dd024a02e kernel: allow skipping deprecated uImage.FIT partition parser
In order to allow gradually migrating the boards currently using the
uImage.FIT partition (deprecated/rejected) parser to the new fitblk
driver, skip the partition parser code in case the new fitblk driver
(which serves the same purpose) is used.

As an indicator for the use of the new fitblk driver, check if the
/chosen/rootdisk property is present in the Device Tree.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 10:51:32 +08:00
Daniel Golle
b763c5cb75 kernel: move uImage.FIT partition parser to mediatek target
The partition parser approach has been rejected upstream, it will be
replaced by a small block driver which is the solution suggestion by
upstream maintainers.
As the partition parser has only been used by the mediatek target, as
a first step, move it there.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-01 10:39:51 +08:00
coolsnowwolf
78c0839c9b mediatek: filogic: add HF-M7986R1 support 2024-06-30 13:27:48 +08:00
coolsnowwolf
6924a18f35 mt76: add linux kernel 6.6 support for mediatek 2024-06-30 11:12:58 +08:00
coolsnowwolf
aea7d683f1 mediatek: 6.6: refresh patches 2024-06-30 10:44:13 +08:00
Daniel Golle
487e180766 generic: 6.6: (re-)add support multiple PPE to mtk_eth_soc
Now that the issue with WED has been sorted out, re-add support for
multiple PPE to the mtk_eth_soc driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-29 22:56:13 +08:00
Liu Tie
7ea44fc419
doc: update the documentation for Mac (#12278) 2024-06-28 23:08:02 +08:00
coolsnowwolf
b75357d1a0 generic: sync kernel 6.6 from upstream 2024-06-27 15:57:09 +08:00
coolsnowwolf
a9dd459fa8 mediatek: switch to Linux version 6.1 2024-06-26 20:13:50 +08:00
Tony Ambardar
d96fcb36df toolchain/musl: add support for renameat2()
Backport an upstream patch to support the renameat2 syscall, added in Linux
3.15 and supported by glibc since 2.28. It is commonly used in filesystem
or security contexts, and needed building upstream kernel bpf selftests.

Link:
https://inbox.vuxu.org/musl/20240421153640.379015-1-Tony.Ambardar@gmail.com/

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/15697
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-25 13:45:16 +08:00
coolsnowwolf
b7c03c0fc9 feeds.conf.default: adjust config defaults 2024-06-25 12:17:21 +08:00
Beginner
cd3fe52be6
kernel: bump 5.10 to 5.10.220 (#12265) 2024-06-24 10:01:08 +08:00
coolsnowwolf
2ef8b6a614 fullconenat: make xt_FULLCONENAT autoload 2024-06-23 02:39:58 +08:00
coolsnowwolf
d1bc8d77c6 fullconenat: add libxtables dependence 2024-06-23 02:20:18 +08:00
coolsnowwolf
f06cea1eed qca-nss-ecm: enable iptables NAT loopback 2024-06-22 18:29:27 +08:00
coolsnowwolf
9728c59e9b firewall: add iptables-mod-conntrack-extra by default 2024-06-22 18:16:32 +08:00
coolsnowwolf
39a4bb9bb8 csstidy: move to luci feed 2024-06-22 17:55:14 +08:00
coolsnowwolf
809deeee20 Revert "qca-nss-ecm: add kmod-nat46 as dependencies package"
This reverts commit a93701bee4.
2024-06-22 17:50:09 +08:00
Beginner
847b81b679
kernel: bump 6.6 to 6.6.35 (#12256) 2024-06-22 04:14:04 +08:00
Beginner
0e02e8ae03
kernel: bump 6.1 to 6.1.95 (#12257) 2024-06-22 04:13:43 +08:00
coolsnowwolf
8482b89587 cpufreq: add CPU Scaling adjustment tool 2024-06-21 20:45:27 +08:00
coolsnowwolf
a93701bee4 qca-nss-ecm: add kmod-nat46 as dependencies package 2024-06-21 19:04:56 +08:00
coolsnowwolf
dfa2935600 base-files: add TARGET_DEFAULT_LAN_IP_FROM_PREINIT for setting the default LAN IP address and netmask 2024-06-21 18:37:12 +08:00
coolsnowwolf
f2f2ca1e5c quectel_QMI_WWAN: add linux 6.6 kernel support 2024-06-21 18:09:43 +08:00
Beginner
de0b0aa0b7
kernel: bump 6.6 to 6.6.34 (#12252) 2024-06-21 10:01:05 +08:00
John Audia
6ba427f2f3 openssl: update to 3.0.14
Major changes between OpenSSL 3.0.13 and OpenSSL 3.0.14 [04-Jun-2024]

* Fixed potential use after free after SSL_free_buffers() is called.
  [CVE-2024-4741]
* Fixed checking excessively long DSA keys or parameters may be very slow.
  [CVE-2024-4603]
* Fixed an issue where some non-default TLS server configurations can cause
  unbounded memory growth when processing TLSv1.3 sessions. An attacker may
  exploit certain server configurations to trigger unbounded memory growth that
  would lead to a Denial of Service.  [CVE-2024-2511]
* New atexit configuration switch, which controls whether the OPENSSL_cleanup
  is registered when libcrypto is unloaded. This can be used on platforms
  where using atexit() from shared libraries causes crashes on exit

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-06-20 23:10:26 +08:00
coolsnowwolf
6f4bb7ec57 ipq-wifi: JDCloud AX6600 bdf file 2024-06-19 21:53:05 +08:00
coolsnowwolf
32c934ed2c ipq-wifi: add JDCloud AX1800 Pro bdf file 2024-06-19 19:18:05 +08:00
coolsnowwolf
88d69f5edc package: nss-firmware: add Qualcomm IPQ5018 support 2024-06-18 15:05:11 +08:00
coolsnowwolf
a95c23c180 qualcommax: ipq60xx: add JDCloud AX1800 Pro and AX6600 support 2024-06-18 15:02:07 +08:00
coolsnowwolf
0f039195d0 qualcommax: ipq807x: fix IPQ807x devices NSS build and nss-firmware 2024-06-17 15:10:08 +08:00
coolsnowwolf
edb64fde27 qualcommax: ipq807x: add IPQ807x devices NSS support 2024-06-17 14:43:14 +08:00
Beginner
c1573c8ac8
kernel: bump 6.1 to 6.1.94 (#12245) 2024-06-17 14:15:10 +08:00
Beginner
5e947a9df9
kernel: bump 5.4 to 5.4.278 (#12247) 2024-06-17 12:30:01 +08:00
Beginner
781b3b4c0b
kernel: bump 5.10 to 5.10.219 (#12246) 2024-06-17 10:00:02 +08:00
Beginner
330337a644
kernel: bump 5.15 to 5.15.161 (#12243) 2024-06-16 22:41:02 +08:00
Beginner
89db9c4050
kernel: bump 6.6 to 6.6.33 (#12236) 2024-06-16 18:35:31 +08:00
Christian Marangi
a8156c5d10 generic: 6.1: backport patch adding support for LED PHY
Backport patch adding support for LED PHY directly in PHY ops struct.
Add new PHYLIB_LEDS config and refresh patches.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-16 17:26:04 +08:00
Christian Marangi
8340d2f0ea generic: 6.1: backport LEDs patch adding modes
Backport LEDs patch adding additional modes for split link speed and
half/full duplex state.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-16 17:23:40 +08:00
Christian Marangi
df60447f3e generic: 5.15: qca8k: backport code split patch
Backport upstream code split patch for qca8k needed for ipq40xx target
to correctly implement a DSA driver.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-16 17:20:26 +08:00
Christian Marangi
fb661b4744 generic: backport initial LEDs hw control support
Backport initial LEDs hw control support. Currently this is limited to
only rx/tx and link events for the netdev trigger but the API got
accepted and the additional modes are working on and will be backported
later.

Refresh every patch and add the additional config flag for QCA8K new
LEDs support.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-16 17:16:13 +08:00
coolsnowwolf
eb557774e2 qualcommax: add ipq8074-nss.dtsi for IPQ807x devices NSS support 2024-06-15 23:22:45 +08:00
coolsnowwolf
7b6fe1d69a qualcommax: ipq60xx: add Xiaomi RM1800 (AX5) wireless support 2024-06-15 23:07:03 +08:00
coolsnowwolf
ca0d93bec8 Version update to R24.6.6 2024-06-15 18:00:04 +08:00
coolsnowwolf
e7b75aae80 package: qca: fix target dependencies 2024-06-15 17:50:02 +08:00
coolsnowwolf
aeb660ba58 autocore: add nss usage display on index 2024-06-14 17:50:11 +08:00
coolsnowwolf
2fc5d80589 qualcommax: fix mmc upgrade for ipq60xx 2024-06-14 17:31:25 +08:00
coolsnowwolf
809226391c qualcommax: add all nss support package 2024-06-14 17:26:00 +08:00
coolsnowwolf
568f5ab87c package: add nss packages for qualcommax 2024-06-14 17:15:13 +08:00
coolsnowwolf
935b13b61e qualcommax: add qca-nss-ecm kernel support 2024-06-14 16:50:09 +08:00
Daniel Golle
fb42176cd1 generic: sync MediaTek Ethernet driver with upstream
Import commits from upstream Linux replacing some downstream patches.
Move accepted patches from pending-{5.15,6.1} to backport-{5.15,6.1}.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-13 22:20:05 +08:00
Daniel Golle
e5dffcaddd mediatek: generate bootloader artifacts for mt7988_rfb
Switch to OpenWrt uImage.FIT bootmethod and include various bootloader
artifacts with the generated binaries.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-12 23:02:49 +08:00
Daniel Golle
176eb7d8ef generic: 6.6: net: sfp-bus: fix SFP mode detect from bitrate
Backport commit fixing detection of SFP modules which has been broken
since Linux 6.4 for some modules.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-11 23:00:24 +08:00
Daniel Golle
a07fca99cb kernel: serial: 8250_mtk: track busclk state to avoid bus error
UARTs not used as boot console are currently broken on some MediaTek
targets due to register access depending on the bus clock being enabled.
Add patch to make sure this dependency is always met.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-11 22:52:17 +08:00
Daniel Golle
dbf65dd826 arm-trusted-firmware-mediatek: import patchset for Fidelix flash on SNFI
Import pending patches to set pinconf settings for SPI-NAND pins on
MT7622 identical to what the old proprietary preloader did.

Should further increase the reliability of some SNFI-attached SPI-NAND
flash chips.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-10 23:08:07 +08:00
Daniel Golle
d5ae67bea0 arm-trusted-firmware-mediatek: update to MediaTek-patched v2.10.0
Update ARM TrustedFirmware-A to the most recent release of
MediaTek downstream patched version released 2024-01-17.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-10 23:05:03 +08:00
IFV
94f8d8b735
autoconf-archive: fix ax_c_float_words_bigendian fails when lto enabled (#12227)
See 23be7ccd7f
2024-06-09 18:59:02 +08:00
Daniel Golle
be9a399019 uboot-mediatek: snfi: FM35Q1GA is x4-only
Dont allow x2 read and cache read operations on FM35Q1GA as they seem
to be unstable. Also the Linux drivers does not allow x2 ops.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-08 22:30:09 +08:00
Daniel Golle
b3bbc4b90d mediatek: improve reliability of Fidelix SPI-NAND
Prior to performing a PROGRAM LOAD RANDOM DATA operation, a WRITE
ENABLE (06h) command must be issued to change the contents of the
memory array. Following a WRITE ENABLE (06) command, **first a PROGRAM
LOAD (02h or 32h) command must be issued to reset the cache**, then
issue a PROGRAM LOAD RANDOM DATA (84h or 34h) command

This is dirty fix provided to use by MediaTek engineer Sky Huang which
may resolve the "OpenWrt Kiss of Death" issue we've been seeing on the
Linksys E8450 aka. Belkin RT3200. However, it means that everything has
to be re-written with that patch already applied, ie. we need to rebuild
the installer once it is part of snapshot builds to have any effect.

Users already on FIP-in-UBI layout are advised to re-write 'fip' UBI
volume and 'bl2' MTD partition manually once from within Linux after
this fix has been applied.

A similar fix will also be required for U-Boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-08 22:26:03 +08:00
coolsnowwolf
5c11df48ac qualcommax: ipq60xx: add reserved NSS memory nodes 2024-06-07 12:48:08 +08:00
aiamadeus
a87cb8cd96 rockchip: sync rk3568 upstream dts changes 2024-06-06 23:01:16 +08:00
aiamadeus
cb1f2c6a58 rockchip: fix rk3568 nvme detection issue
Fixes: #12149
2024-06-05 16:30:30 +08:00
Hao Guan
a5af3cafa2
tools: fix build on macOS Sonoma (#12212)
* tools/coreutils: update to 9.3

* tools/cpio: update to 2.15

* libjson-c: update to 0.17

* gettext-full: fix clang build errors

* toolchain: gcc: update to 13.3

* tools: b43-tools: fix compilation with GCC14
2024-06-05 00:18:09 +08:00
aiamadeus
8d664879c5 ramips: mt7621: fixes gpio config
Fixes: 4561705 ("ramips: add support for OpenFi 5Pro")
2024-06-03 22:28:03 +08:00
coolsnowwolf
3d715feecc elfutils: fix build with GCC 12/13 2024-06-01 13:10:06 +08:00
Hauke Mehrtens
9042bd040a x86: 6.6: Activate CONFIG_FB_DEVICE
This adds the legacy /dev/fb* device file for kernel 6.6 again.
Linux upstream commit 701d2054fa31 ("fbdev: Make support for
userspace interfaces configurable") made this configurable and we
deactivated this option by default for kernel 6.6. On x86 we are
not space constrained and some users need this legacy interface.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-05-31 22:36:26 +08:00
Hauke Mehrtens
258e84d30d kernel: Add CONFIG_FB_DEVICE to kmod-fb
At least kmod-fb-tft depends on CONFIG_FB_DEVICE
and can not be activated without it.

This configuration option was added with kernel 6.6,
before this featre was always activated.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-05-31 22:22:30 +08:00
Sheng Huang
3b8e07ae19 ramips: add support for JDCloud RE-CP-02
- Soc: MediaTek MT7621AT
- RAM: 512 MB (DDR3)
- Flash: 16 MB (SPI NOR)
- WiFi: MediaTek MT7905DAN, MediaTek MT7975DN
- Ethernet: 1 WAN, 3 LAN (Gigabit)
- Buttons: Reset, Joylink
- LEDs: (red, blue, green), routed to one indicator in the top of the
  device
- Power: DC 12V 1A tip positive
- 1 TF Card Slot

Co-Authored-By: Jianti Chen <clbcjt@outlook.com>
Signed-off-by: Sheng Huang <shenghuang147@gmail.com>
2024-05-30 23:00:02 +08:00
Michael Lyle
22f1e5eabf ramips: gl-mt1300: downclock SPI to 50MHz
The SPI max frequency was set to 80MHz, considerably higher than the
vendor clocks it in their firmware (10MHz).  Multiple users reported
jffs2 corruption/instability.

My unit has a W25Q256; datasheet specifies maximum SPI frequency for
read command of 50MHz.

Signed-off-by: Michael Lyle <mlyle@lyle.org>
2024-05-30 22:56:23 +08:00
coolsnowwolf
0186d52076 build: introduce PKG_BUILD_FLAGS 2024-05-29 10:35:11 +08:00
Sven Huang
4561705e1b
ramips: add support for OpenFi 5Pro (#12196)
OpenFi 5Pro is a 2.4/5 GHz band 11ac router, based on MT7621A.

Specification:

- SoC               : MediaTek MT7621A
- RAM               : DDR3 512 MB
- Flash             : SPI-NOR 64MB (W25Q512)
- WLAN              : 2.4/5 GHz 2T2R (MT7603/MT7613)
- Ethernet          : 2x 10/100/1000 Mbps
- LEDs/Keys (GPIO)  : 3x/2x
- UART              : 1xUART
  - settings        : 115200n8

How to upgrade image in uboot:

1. press reset button when boot for 5sec.
2. access 192.168.21.1 in web ui.
3. select image and upload
2024-05-28 23:30:02 +08:00
coolsnowwolf
d447f22e74 hostapd: fix mbo module build 2024-05-27 00:03:38 +08:00
Beginner
13931a492e
kernel: bump 6.6 to 6.6.32 (#12186) 2024-05-26 23:50:41 +08:00
Beginner
4819907434
kernel: bump 6.1 to 6.1.92 (#12187) 2024-05-26 23:50:17 +08:00
coolsnowwolf
d88c0116f3 mtd: spi-nor: add support for Winbond W25Q512 2024-05-26 23:29:20 +08:00
coolsnowwolf
a459786ac2 mvebu: add support for QNAP QHora-321/322 with commo image 2024-05-26 23:19:20 +08:00
coolsnowwolf
57c907ddb6 base-files: add legacy-sdcard sysupgrade support 2024-05-26 23:16:05 +08:00
Beginner
86b8e436b7
kernel: bump 5.4 to 5.4.277 (#12191) 2024-05-26 20:30:07 +08:00
Beginner
d57b79961b
kernel: bump 5.10 to 5.10.218 (#12190) 2024-05-26 18:30:08 +08:00
Beginner
73d37cb1d2
kernel: bump 5.15 to 5.15.160 (#12188) 2024-05-26 18:00:11 +08:00
Shiji Yang
63af18b5a9 ramips: add support for H3C TX180x series devices
H3C TX180x series WiFi6 routers are customized by different carrier.
While these three devices look different, they use the same motherboard
inside. Another minor difference comes from the model name definition
in the u-boot environment variable.

Specifications:
 SOC:      MT7621 + MT7915
 ROM:      128 MiB
 RAM:      256 MiB
 LED:      status *2
 Button:   reset *1 + wps/mesh *1
 Ethernet:        lan *3 + wan *1 (10/100/1000Mbps)
 TTL Baudrate:    115200
 TFTP server IP:  192.168.124.99

Compatibility mode is used to guarantee the connection of old devices
that only support WiFi4 or WiFi5.

TFTP + TTL Installation:
Although a TTL connection is required for installation, we do not need
to tear down it. We can find the TTL port from the cooling hole at the
bottom. It is located below LAN3 and the pins are defined as follows:
|LAN1|LAN2|LAN3|----|WAN|
--------------------
    |GND|TX|RX|VCC|

1. Set tftp server IP to 192.168.124.99 and put initramfs firmware in
   server's root directory, rename it to a simple name "initramfs.bin".
2. Plug in the power supply and wait for power on, connect the TTL cable
   and open a TTL session, enter "reboot", then enter "Y" to confirm.
   Finally push "0" to interruput boot while booting.
3. Execute command to install a initramfs system:
   # tftp 0x80010000 192.168.124.99:initramfs.bin
   # bootm 0x80010000
4. Backup nand flash by OpenWrt LuCI or dd instruction. We need those
   partitions if we want to back to stock firmwre due to official
   website does not provide download link.
   # dd if=/dev/mtd1 of=/tmp/u-boot-env.bin
   # dd if=/dev/mtd4 of=/tmp/firmware.bin
5. Edit u-boot env to ensure use default bootargs and first image slot:
   # fw_setenv bootargs
   # fw_setenv bootflag 0
6. Upgrade sysupgrade firmware.
7. About restore stock firmware: flash the "firmware" and "u-boot-env"
   partitions that we backed up in step 4.
   # mtd write /tmp/u-boot-env.bin u-boot-env
   # mtd write /tmp/firmware.bin firmware

Additional Info:
The H3C stock firmware has a 160-byte firmware header that appears to
use a non-standard CRC32 verification algorithm. For this part of the
data, the u-boot does not check it so we can just directly replace it
with a placeholder.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-05-25 22:25:15 +08:00
Rany Hany
b49e163a99 mediatek: fix broken PCIe caused by kernel update
The patch "710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch"
makes use of "syscon_regmap_lookup_by_phandle" which requires that
"syscon" be in the compatible list.

Without this patch, PCIe probe will fail with the following error:

[    1.287467] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.294019] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.299901] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.307954] mtk-pcie 1a143000.pcie: missing hifsys node
[    1.313185] mtk-pcie: probe of 1a143000.pcie failed with error -22

Fixes: #12182
Fixes: 1b3612a ("kernel: bump 5.15 to 5.15.158")
Signed-off-by: Rany Hany <rany_hany@riseup.net>
2024-05-24 23:10:05 +08:00
Rui Salvaterra
813a3468eb linux-firmware: realtek: update rtl8821ae firmware
A newer version, rtl8821aefw_29.bin, has been available for over 7 years.
Let's use it.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2024-05-24 23:05:58 +08:00
Daniel Golle
1144959ad8 mediatek: filogic: mt7988: mark RTC clock as critical
A dependency of the MT7988 MMC host controller on the SoC's RTC clock
being running has been discovered. Mark RTC clock as critical to fix
MMC host on MT7988.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-23 23:38:05 +08:00
Daniel Golle
f643c08df8 generic: 5.15: rename patches to match correct version
Rename two patches which were only accepted in Linux 6.2, but were
marked as if they were accepted in Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-23 23:36:12 +08:00
Daniel Golle
8f988ed371 mediatek: filogic: enable driver for MediaTek XS-PHY
Enable driver for MediaTek SuperSpeedPlus XS-PHY transceiver
for the USB3.1 GEN2 controllers found in the MT7988 SoC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-22 23:38:42 +08:00
John Crispin
563de907f6 arm-trusted-firmware-mediatek: add mt7981 ddr4 builds
Signed-off-by: John Crispin <john@phrozen.org>
2024-05-22 23:36:15 +08:00
coolsnowwolf
8ccd96e80a kernel: asymmetric: Add missing dependency on CRYPTO_SIG for 6.6 2024-05-21 20:55:12 +08:00
coolsnowwolf
5376eb13b3 ramips: improve AP-MT7621A-V60 EVB support 2024-05-21 20:49:55 +08:00
Beginner
c188b9f52e
kernel: bump 5.4 to 5.4.276 (#12175) 2024-05-21 00:35:59 +08:00
Beginner
ad11245663
kernel: bump 5.10 to 5.10.217 (#12174) 2024-05-20 23:40:29 +08:00
Beginner
bcbc08ab45
kernel: bump 6.6 to 6.6.31 (#12164)
delete target/linux/generic/backport-6.6/600-v6.9-01-net-gro-parse-ipv6-ext-headers-without-frag0-invalid.patch
 delete target/linux/generic/backport-6.6/600-v6.9-02-net-gro-fix-udp-bad-offset-in-socket-lookup-by-addin.patch
 delete target/linux/generic/backport-6.6/600-v6.9-03-net-gro-add-flush-check-in-udp_gro_receive_segment.patch
 delete target/linux/generic/backport-6.6/816-v6.7-0002-nvmem-add-explicit-config-option-to-read-old-syntax-.patch
 delete target/linux/generic/pending-6.6/681-net-bridge-fix-multicast-to-unicast-with-fraglist-GS.patch
 delete target/linux/generic/pending-6.6/682-net-core-reject-skb_copy-_expand-for-fraglist-GSO-sk.patch
 delete target/linux/generic/pending-6.6/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.patch
2024-05-18 15:50:32 +08:00
Beginner
638fe853a7
kernel: bump 6.1 to 6.1.91 (#12165)
delete target/linux/bcm27xx/patches-6.1/950-0270-net-bcmgenet-Reset-RBUF-on-first-open.patch
 delete target/linux/generic/backport-6.1/600-v6.9-03-net-gro-add-flush-check-in-udp_gro_receive_segment.patch
 delete target/linux/generic/pending-6.1/681-net-bridge-fix-multicast-to-unicast-with-fraglist-GS.patch
 delete target/linux/generic/pending-6.1/682-net-core-reject-skb_copy-_expand-for-fraglist-GSO-sk.patch
 delete target/linux/generic/pending-6.1/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.patch
2024-05-18 15:50:13 +08:00
Beginner
19e494cfe7
kernel: bump 5.15 to 5.15.159 (#12166) 2024-05-18 06:30:07 +08:00
Álvaro Fernández Rojas
4172836243 image: add missing DTC include directory
include-prefixes were moved to a common directory in linux v4.12, see
d5d332d3f7

This is needed for bcm27xx kernel v6.6 support.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-05-13 18:30:08 +08:00
Álvaro Fernández Rojas
a9ce86f16b kernel: add missing kernel 6.6 symbols
Add missing kernel 6.6 symbols for bcm27xx.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-05-13 18:28:26 +08:00
coolsnowwolf
c6bb9a7912 target.mk: remove luci-newapi 2024-05-09 22:11:31 +08:00
coolsnowwolf
1531aa758e feeds.conf.default: add option switch to luci-23.05 2024-05-08 13:15:25 +08:00
coolsnowwolf
918879abc7 default-settings: compatibility with luci-23.05 2024-05-08 13:14:10 +08:00
coolsnowwolf
1b7087bae5 firewall/firewall4: provide uci-firewall 2024-05-08 12:55:32 +08:00
coolsnowwolf
2e865ac654 unetd: add WireGuard based VPN connection manager for OpenWrt 2024-05-08 12:26:19 +08:00
coolsnowwolf
7db3f7518c r8126: add Realtek RLT8126 5gb NIC support 2024-05-07 23:06:09 +08:00
coolsnowwolf
1b3612a289 kernel: bump 5.15 to 5.15.158 2024-05-07 10:13:18 +08:00
coolsnowwolf
4e3d253ef9 kernel: bump 5.10 to 5.10.216 2024-05-07 10:00:13 +08:00
coolsnowwolf
e87716ac87 kernel: bump 5.4 to 5.4.275 2024-05-07 09:44:13 +08:00
Antonio Flores
77a790bd2d kernel: add kmod-ata-ahci-dwc
Add kmod-ata-ahci-dwc for the rockchip target.

33629d3509

Signed-off-by: Antonio Flores <antflores627@gmail.com>
2024-05-06 14:35:13 +08:00
Felix Fietkau
c7d931e7b6 kernel: fix corrupted ethernet header on bridge multicast-to-unicast
Fixes: 45a8e962a591 ("kernel: fix crash with multicast-to-unicast and fraglist GRO")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-05-06 14:32:01 +08:00
coolsnowwolf
179329cbba Version update to R24.5.1 2024-05-06 05:57:17 +08:00
coolsnowwolf
6e604e9875 amlogic: add mesongx Phicomm N1 support 2024-05-06 05:53:58 +08:00
coolsnowwolf
dde01c597c kernel: remove 640-bridge-only-accept-EAP-locally.patch 2024-05-05 20:04:10 +08:00
coolsnowwolf
524107deb5 Revert "kernel: bump 5.15 to 5.15.158 (#12126)"
This reverts commit 0f35cfbb60.
2024-05-05 14:25:14 +08:00
coolsnowwolf
89a6a0c63b Revert "kernel: bump 5.10 to 5.10.216 (#12127)"
This reverts commit e5c26e9039.
2024-05-05 14:25:06 +08:00
coolsnowwolf
cf57cfaeeb Revert "kernel: bump 5.4 to 5.4.275 (#12128)"
This reverts commit 23a35d1ef0.
2024-05-05 14:24:57 +08:00
coolsnowwolf
e5d8feddc3 kernel: backport upstream GRO fixes 2024-05-05 14:23:46 +08:00
coolsnowwolf
542de0b0ac kernel: add missing check for TCP GRO 2024-05-05 13:33:15 +08:00
Beginner
8c6cc8f468
kernel: bump 6.1 to 6.1.90 (#12125) 2024-05-05 10:00:11 +08:00
Beginner
722c2739ba
kernel: bump 6.6 to 6.6.30 (#12123) 2024-05-05 06:00:32 +08:00
Beginner
23a35d1ef0
kernel: bump 5.4 to 5.4.275 (#12128) 2024-05-04 16:01:03 +08:00
Beginner
e5c26e9039
kernel: bump 5.10 to 5.10.216 (#12127) 2024-05-04 11:00:08 +08:00
Beginner
0f35cfbb60
kernel: bump 5.15 to 5.15.158 (#12126) 2024-05-04 10:10:03 +08:00
Daniel Golle
8f593dd700 mediatek: filogic: update MT7988 device tree
* move ethernet to mt7988a.dtsi
 * move switch definition to mt7988a.dtsi
 * add PHY LEDs

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-03 22:54:18 +08:00
Beginner
87d7c07cfa
kernel: bump 5.15 to 5.15.157 (#12108) 2024-05-01 20:00:14 +08:00
Beginner
76c97b741b
kernel: bump 6.1 to 6.1.89 (#12107)
Removed upstreamed:
	target/linux/mediatek/patches-6.1/220-v6.3-clk-mediatek-clk-gate-Propagate-struct-device-with-m.patch
	target/linux/mediatek/patches-6.1/222-v6.3-clk-mediatek-clk-mtk-Propagate-struct-device-for-com.patch
	target/linux/mediatek/patches-6.1/223-v6.3-clk-mediatek-clk-mux-Propagate-struct-device-for-mtk.patch
	target/linux/mediatek/patches-6.1/226-v6.3-clk-mediatek-clk-mtk-Extend-mtk_clk_simple_probe.patch
2024-05-01 18:10:10 +08:00
Beginner
eef66478a4
kernel: refresh 6.6 patches (#12113) 2024-05-01 15:00:15 +08:00
Beginner
fcd30851f7
kernel: bump 6.6 to 6.6.28 (#12106) 2024-04-30 23:32:40 +08:00
aiamadeus
b760a6f166 uboot-sunxi: drop broken patches
These patches break boot, link: #12104
2024-04-30 20:21:23 +08:00
aiamadeus
54bb95de0f target: add some missing patches 2024-04-30 20:19:35 +08:00
Felix Fietkau
bdcee653dc kernel: backport flow offload pppoe fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-04-30 10:00:10 +08:00
Daniel Golle
61bc98ea14 arm-trusted-firmware-tools: update to version 2.9
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-29 21:25:10 +08:00
Daniel Golle
07afd0f581 generic: 6.1: fix uImage.FIT partitions on mtdblock and ubiblock
When refreshing the hack patches for Linux 6.1 the part of the uImage.FIT
partition parser patch which takes care of allowing mtdblock and ubiblock
devices to have partitions has been dropped, supposedly by accident.
Re-add a that part to the patch, so devices using a uImage.FIT filesystem
sub-image as rootfs can work with Linux 6.1.

Fixes: 19a246bb65 ("generic: 6.1: manually refresh hack patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-29 21:21:32 +08:00
Daniel Golle
e72f8049c7 arm-trusted-firmware-mediatek: update to release 2023-10-13
Drop local patches now upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-28 21:15:06 +08:00
coolsnowwolf
80fdc8951d
kernel: modules: jitterentropy_rng requires SHA3 support for kernel 6.1.87+ 2024-04-28 00:07:57 +08:00
coolsnowwolf
5ebdcf2f4b atf-rockchip-vendor: add rk3528 support 2024-04-27 23:18:04 +08:00
Zoltan HERPAI
52a7bf68d5 sunxi: add and set 6.6 testing kernel
Allow selecting 6.6 as testing kernel on sunxi.

Runtime-tested:
 - Linksprite pcDuino (cortexa8)
 - Olimex A20 Micro (cortexa7)
 - Pine64 SoM (cortexa53)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2024-04-26 21:36:12 +08:00
Beginner
75b424cc1c
kernel: bump 5.4 to 5.4.274 (#12096) 2024-04-25 09:10:23 +08:00
Beginner
c2f35f6547
kernel: bump 5.10 to 5.10.215 (#12095) 2024-04-25 00:10:11 +08:00
lean
0b74998c3a arm-trusted-firmware-rockchip-vendor: revert version 2024-04-24 23:57:06 +08:00
Beginner-Go
8200c9e45b r8168: update to version 8.053.00 2024-04-23 10:15:24 +08:00
Beginner-Go
ed47ab6c42 r8125: update to version 9.013.02-2 2024-04-23 10:08:18 +08:00
Christian Lamparter
ec63924daa intel-microcode: update to 20240312
intel-microcode (3.20240312.1) unstable; urgency=medium

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2024-04-21 22:39:45 +08:00
coolsnowwolf
57050f9951 ipq-wifi: update to version 2024-04-16 2024-04-21 22:35:21 +08:00
Beginner
849b8c3dbc
kernel: bump 5.15 to 5.15.156 (#12082) 2024-04-20 00:10:53 +08:00
aakkll
9546676d1f
kernel: bump 6.6 to 6.6.28 (#12079)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2024-04-19 03:08:59 +08:00
Beginner
5a6426b34f
kernel: bump 6.1 to 6.1.87 (#12081) 2024-04-19 03:08:41 +08:00
Hauke Mehrtens
cba1493388 linux-firmware: update to 20240220
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-04-18 23:01:50 +08:00
aiamadeus
1216535698 rtw88-usb: update to latest git HEAD 2024-04-18 22:16:40 +08:00
coolsnowwolf
a263b22cee generic: add missing kconfig for 6.x 2024-04-17 21:50:53 +08:00
aiamadeus
01c841d07c rockchip: enable hdmi console output 2024-04-16 21:35:28 +08:00
aiamadeus
7a4a98ec71 kernel: modules: sync upstream fixes 2024-04-16 21:28:54 +08:00
Beginner
fd8808e403
kernel: bump 5.15 to 5.15.155 (#12076) 2024-04-15 10:10:29 +08:00
Beginner
0328537087
kernel: bump 6.1 to 6.1.86 (#12075) 2024-04-15 10:00:38 +08:00
Beginner
c44b8f56de
kernel: bump 6.6 to 6.6.27 (#12074)
* kernel: bump 6.6 to 6.6.27

* kernel: Reorder kernel 6.6 config
2024-04-14 23:37:18 +08:00
coolsnowwolf
5966985c19 kernel: modules: netdevices: adapt for loongarch64 2024-04-14 22:54:30 +08:00
Daniel Golle
27a7480dc1 mediatek: filogic: restore non-const type in pinctrl-mt7988 driver
When building with Linux 5.15 the 'const' type results in warnings.
Restore the original non-const type in those cases.

Fixes: 36d0aa9c2d ("mediatek: filogic: sync pinctrl-mt7988 with MediaTek SDK")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-14 22:15:08 +08:00
Daniel Golle
e89c9e5880 mediatek: filogic: sync pinctrl-mt7988 with MediaTek SDK
Update pinctrl driver for the MT7988 with driver from mtk-openwrt-feeds.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-14 22:12:32 +08:00
coolsnowwolf
784b562e90 USB: serial: option: add MEDIATEK FM350-GL module usb mode support 2024-04-13 11:03:00 +08:00
Beginner
9e29b15c05
kernel: refresh 6.6 patches (#12069) 2024-04-13 10:57:10 +08:00
Beginner
0bc2188f41
kernel: refresh 6.1 patches (#12068) 2024-04-13 10:56:47 +08:00
coolsnowwolf
373bf02149 Version update to R24.4.4 2024-04-11 14:09:38 +08:00
coolsnowwolf
a66f5342cd kernel: bump 6.1 to 6.1.85 2024-04-11 08:14:17 +08:00
coolsnowwolf
14f04764c8 kernel: bump 6.6 to 6.6.26 2024-04-11 08:07:13 +08:00
coolsnowwolf
e703f844c8 uboot-rockchip: update rk3566 ATF and DDR version 2024-04-11 07:58:28 +08:00
coolsnowwolf
ad5d57cd81 uboot-rockchip: update rk356x ATF and DDR version 2024-04-10 16:59:16 +08:00
coolsnowwolf
e4172db5da sunxi: add F1C100/200 (arm926ej-s) support 2024-04-10 08:50:23 +08:00
coolsnowwolf
259cf72476 r8125: bump to 9.012.04 2024-04-10 08:39:48 +08:00
coolsnowwolf
c897f32a45 tools/automake: bump to 1.16.5 2024-04-09 23:28:22 +08:00
Rodrigo Balerdi
d3ab2cd000 base-files: minor fix to mmc_mac_ascii function
This is mostly a cosmetic cleanup. The absence of
the return statement was not causing any problems.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
2024-04-09 21:50:04 +08:00
coolsnowwolf
f788f35b36 closed-arm-firmware-rockchip: bump to 2024-02-22 2024-04-09 21:45:43 +08:00
Weijie Gao
0983191cb6 gpio-button-hotplug: fix linux 6.2 build failure
devm_gpiod_get_from_of_node() was removed since linux 6.2.
devm_fwnode_gpiod_get() is the recommended replacement.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-04-08 19:28:28 +08:00
Qingfang Deng
9415e0a37d kernel: xt_FLOWOFFLOAD: fix use of uninitialized dir variable
The dir variable has been used uninitialized since the port to 5.10, and
somehow this remains undetected by GCC.

Fixes: b10d6044599d ("kernel: add linux 5.10 support")
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
2024-04-08 19:26:34 +08:00
Daniel Golle
3de103535a generic: 6.1: backport support for various MHI 5G modems
* Dell DW5932e
  * Foxconn T99W175 (HP variant)
  * Foxconn T99W510
  * Generic SDX75-based
  * Quectel EM160R-GL (newer variants)
  * Quectel RM520
  * Quectel RM520N-GL (Lenovo variant)
  * SC8280XP Compute Reference Design
  * Telit FE990

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-06 19:37:57 +08:00
Daniel Golle
7e90035c77 generic: 6.6: backport support for SDX75-based MHI 5G modems
Also backport most recent MHI modem additions to Linux 6.6.
Adds support for generic SDX75-based modems.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-06 19:35:31 +08:00
Daniel Golle
0273ba389f kernel: modules: package driver for MediaTek T7xx PCIe 5G modem
Build and package driver for MediaTek PCIe 5G WWAN modem T7xx device
available in Linux 6.1 and 6.6 as kmod-mtk-t7xx.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-06 19:32:35 +08:00
coolsnowwolf
3b68197250 arm-trusted-firmware-rockchip-vendor: add RK3528/RK3588 support 2024-04-05 18:22:48 +08:00
coolsnowwolf
a771805649 uboot-sunxi: fix h2 without SPL I2C failed to build 2024-04-05 17:48:16 +08:00
Lollipop907
6586685561
rockchip: Add support for Advantech RSB4810 (#12031) 2024-04-05 16:57:42 +08:00
Beginner
f221abf682
kernel: bump 6.6 to 6.6.25 (#12052) 2024-04-05 16:10:08 +08:00
Beginner
7727540c1c
kernel: bump 5.15 to 5.15.153 (#12048) 2024-04-04 15:00:40 +08:00
Beginner
a5922c08f2
kernel: bump 5.10 to 5.10.214 (#12049) 2024-04-04 12:10:06 +08:00
Beginner
7b24bf9a5c
kernel: bump 5.4 to 5.4.273 (#12050) 2024-04-04 12:00:39 +08:00
Beginner
b171813f46
kernel: bump 6.1 to 6.1.84 (#12046) 2024-04-04 00:20:30 +08:00
Beginner
7d7e578142
kernel: bump 6.6 to 6.6.24 (#12047) 2024-04-04 00:10:16 +08:00
Florian Eckert
05c7666b4d tools: add tmon package
Add the 'tmon' packages. This is as a tool to help visualize,
tune, and test the complex thermal subsystem.

We get a compile warning for the tool that the printf format does not
fit. This commit contains a patch that fixes this warning. This patch
has also been sent upstream to the Linux kernel [1].

Links:
[1] https://lore.kernel.org/all/20231204141335.2798194-1-fe@dev.tdt.de/

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2024-04-02 21:56:25 +08:00
Rosen Penev
d3c28faf88 kernel: backport ethtool_puts
Will be used for conversions in the following commit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-04-02 21:50:46 +08:00
Qingfang Deng
5d367a85be kernel: support RISC-V PMU
Add RISC-V PMU config symbols and enable them for riscv64.

Signed-off-by: Qingfang Deng <dqfext@gmail.com>
2024-04-01 21:31:46 +08:00
Felix Fietkau
b5c1277609 perf: fix build on linux 6.6
- use Makefile.perf to prevent overriding MAKEFLAGS
- fix path to PKG_CONFIG
- link libstdc++ statically (only used for demangling)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-04-01 21:23:45 +08:00
aiamadeus
917b787887 ipq60xx: rework cpufreq support
Some cost down devices like jdc
do not have the pmic chips.
2024-03-31 22:35:21 +08:00
Beginner
bcd9f26694
kernel: bump 6.1 to 6.1.83 (#12036)
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.83

Manually rebased:
  mediatek/patches-6.1/100-dts-update-mt7622-rfb1.patch
  generic/pending-6.1/737-07-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch
2024-03-29 10:21:13 +08:00
Beginner
f56c9ece3c
kernel: bump 6.6 to 6.6.23 (#12034) 2024-03-29 00:26:13 +08:00
coolsnowwolf
3e5300b8ee sunxi: port sunxi_get_soc_chipid / sunxi_get_serial from SDK 2024-03-28 18:10:09 +08:00
coolsnowwolf
0d1280a187 uboot-sunxi: add support for H618 x98h 2024-03-28 18:00:02 +08:00
coolsnowwolf
5c5b7af071 uboot-sunxi: add ac200/ac300 with internal eth phy support 2024-03-28 17:56:26 +08:00
Hauke Mehrtens
3f061d4220 libnl-tiny: update to latest git HEAD
d433990 Make struct nla_policy and struct nlattr const

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-03-27 22:58:12 +08:00
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?=
19c63babfe iwinfo: update to latest git HEAD
Adds MediaTek MT7916AN and Cypress CYW43455 (Raspberry Pi 5) devices.

a34977c devices: add device id for Cypress CYW43455
3eb34df devices: add device id for MediaTek MT7916AN

This contains an ABI change, increase the ABI version too.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-03-27 22:54:32 +08:00
coolsnowwolf
b479194652 vsftpd-alt: Pass TARGET_CPPFLAGS 2024-03-26 04:05:39 +08:00
coolsnowwolf
c7b64067f2 vsftpd: fix compilation with musl 1.2.4 2024-03-26 02:06:41 +08:00
coolsnowwolf
86abbb7834 generic: 6.6: add missing kconfig 2024-03-25 22:15:06 +08:00
aiamadeus
af6fdbd097 rockchip: add kernel 6.6 support 2024-03-24 17:00:19 +08:00
aiamadeus
38ed25d038 rockchip: use upstream rfkill patches 2024-03-24 16:56:22 +08:00
aiamadeus
2a4194fa4b mediatek: add Nokia EA0326GMP support 2024-03-22 19:50:10 +08:00
aiamadeus
4af62c65cb generic: 6.1: backport AXP PMIC support 2024-03-22 19:38:15 +08:00
sKyissKy
36e6d2962f
ramips : fix zte e8820s upgrade (#12021) 2024-03-21 21:25:10 +08:00
coolsnowwolf
1dce308893 quectel-cm: update to version 1.6.5 2024-03-21 20:02:02 +08:00
coolsnowwolf
68253688d8 quectel_MHI: add support Linux Kernel 6.1+ 2024-03-21 19:50:43 +08:00
aiamadeus
9d50fcccf0 sunxi: h616: cpufreq and thermal support 2024-03-20 20:28:26 +08:00
aiamadeus
f69a1db025 sunxi: add support for Orange Pi Zero 3 2024-03-20 20:25:26 +08:00
AmadeusGhost
b0516a441f target: 5.15/6.1: fix broken patches
Fixes: c336930 ("kernel: bump 6.1 to 6.1.80")
2024-03-19 20:38:05 +08:00
AmadeusGhost
0716d8c540 rockchip: refresh kernel 6.1 config 2024-03-19 20:15:40 +08:00
pc.xue
a4880e2ffa
strace: bump to version 6.6 (#12012)
Fixes: #12011
2024-03-18 15:06:01 +08:00
Beginner
a30f300333
kernel: bump 6.6 to 6.6.22 (#12003) 2024-03-17 18:20:51 +08:00
Beginner
1d96ca70bf
kernel: bump 6.1 to 6.1.82 (#12002) 2024-03-17 18:15:42 +08:00
Beginner
524175abb0
kernel: bump 5.4 to 5.4.272 (#12007) 2024-03-17 15:30:06 +08:00
Beginner
78375ff400
kernel: bump 5.10 to 5.10.213 (#12006) 2024-03-17 15:25:09 +08:00
Beginner
5f3d8d4647
kernel: bump 5.15 to 5.15.152 (#12005) 2024-03-17 15:20:10 +08:00
Daniel Golle
4fb3ef8364 uboot-mediatek: update to version 2023.07.02
Release 2023.07 got tagged wrongly and replaced by follow-up release
2023.07.02.

Now using upstream DTS for BPi-R3.
Removed two patches which made it upstream, refreshed the rest.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-03-16 20:39:45 +08:00
Daniel Golle
d95acb11e0 arm-trusted-firmware-mediatek: update to sources of 2023-07-24
Use updated Trusted Firmware-A sources from MediaTek, now stacked
on top of the ARM Trusted Firmware-A v2.9 release.
Add builds for the newly added MT7988 SoC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-03-16 20:36:52 +08:00
coolsnowwolf
3b5f54d82f generic: 6.6: revert genetlink: remove userhdr from struct genl_info 2024-03-15 14:24:06 +08:00
coolsnowwolf
5fea82cd1e generic: 6.6: revert 6.5 deprecated API support for backport 6.1 2024-03-15 03:23:30 +08:00
coolsnowwolf
722f169265 kernel: crypto: fix geniv build as a separate module for 5.4 2024-03-15 03:19:19 +08:00
aiamadeus
9a345491df generic: 6.1: backport AXP313a PMIC support 2024-03-14 22:00:14 +08:00
coolsnowwolf
df237c7e3f generic: add missing kernel 6.6 patches 2024-03-14 11:24:09 +08:00
coolsnowwolf
6f205863c1 modules: fixes build for x86 platform 2024-03-13 16:03:53 +08:00
aiamadeus
58147ef0f6 kernel/modules: sync from upstream source 2024-03-13 10:26:08 +08:00
Beginner-Go
3089e0e022 kernel: refresh all 6.6 patches (#11979)
Fixes:  #11978
2024-03-12 18:39:10 +08:00
coolsnowwolf
6eba666e73 target: move motorcomm driver to generic 2024-03-12 18:35:50 +08:00
coolsnowwolf
ce6d48a35d generic: sync kernel 6.6 from upstream 2024-03-12 15:15:28 +08:00
Beginner
bc21d2c7d6
x86: fix build on kernel 5.10.211 (#11972) 2024-03-11 18:08:15 +08:00
Missing
a4bb24ad80
package: add ipip6 support (#11970)
Add IPIP6(RFC2473) support.
2024-03-11 10:08:38 +08:00
coolsnowwolf
525b77c08b sunxi: add kernel 6.1 support 2024-03-09 21:01:07 +08:00
coolsnowwolf
6b306de18b uboot-sunxi: bump to version 2024.01 2024-03-09 20:57:39 +08:00
Beginner
2923d86419
kernel: bump 5.15 to 5.15.151 (#11958) 2024-03-08 10:18:19 +08:00
Beginner
8c403eca0e
kernel: bump 5.10 to 5.10.212 (#11961) 2024-03-08 10:16:26 +08:00
Beginner
651cda2805
kernel: bump 6.1 to 6.1.81 (#11955) 2024-03-07 20:28:14 +08:00
Beginner
50d484f3b1
kernel: bump 6.6 to 6.6.21 (#11954) 2024-03-07 20:26:23 +08:00
coolsnowwolf
85291c2a25 kernel: modules: remove dsmark support
Fixes: #11952
2024-03-06 23:18:53 +08:00
coolsnowwolf
262c581ece ramips: add support for Huasifei WS1208V2 2024-03-06 00:38:22 +08:00
coolsnowwolf
20239689fd rockchip: rename LYT T68M eth ports to lanx 2024-03-05 22:40:04 +08:00
coolsnowwolf
de9f57fc50 rockchip: stmmac: add devname configuration from OF 2024-03-05 18:14:47 +08:00
coolsnowwolf
892b843ec5 r8125: add support for reading devname configuration from dts OF 2024-03-05 18:11:59 +08:00
coolsnowwolf
4de28071b2 Revert "kernel: dsmark support in kernel 5.4/5.10"
This reverts commit 6c3044be09.
2024-03-05 18:09:02 +08:00
coolsnowwolf
6ff88a72c7 rockchip: add reset gpio button for T68M 2024-03-04 15:30:18 +08:00
coolsnowwolf
6c3044be09 kernel: dsmark support in kernel 5.4/5.10 2024-03-04 12:41:42 +08:00
Hauke Mehrtens
4e9456453d kernel: Remove dsmark support
dsmark support was removed in kernel 5.15.150 and 6.1.80.
Remove it from the kmod package as well.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-03-04 10:36:28 +08:00
coolsnowwolf
e612846e1b target: generic: fixes dst_release issue 2024-03-04 10:32:59 +08:00
coolsnowwolf
f903cc8970 target: generic: fix xt_FLOWOFFLOAD patches
Fixes: #11939, #11943
2024-03-03 15:53:49 +08:00
Beginner
d75705cfc4
kernel: bump 5.15 to 5.15.150 (#11938) 2024-03-03 00:10:26 +08:00
Beginner
256ab6f77f
kernel: bump 5.4 to 5.4.270 (#11942) 2024-03-03 00:01:06 +08:00
Beginner
c33693071d
kernel: bump 6.1 to 6.1.80 (#11934)
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.80

Manually rebased:
	rockchip/patches-6.1/102-net-phy-realtek-RTL8211-add-LED-configuration-from-OF.patch

Build system: x86/64
2024-03-02 16:55:46 +08:00
Beginner
ca1355ce87
kernel: bump 6.6 to 6.6.19 (#11933) 2024-03-02 15:25:33 +08:00
aiamadeus
e15446b4ce ipq60xx: add support for CMIOT AX18 2024-02-29 22:00:06 +08:00
coolsnowwolf
08ebc6e104 kernel: add support for mem2mem devices 2024-02-28 22:06:42 +08:00
coolsnowwolf
aef5c79f19 bcm27xx: add wireless support for Raspberry Pi 5 2024-02-28 14:19:49 +08:00
Mieczyslaw Nalewaj
05390b546e kernel: support for RTL8367C/S switch
From driver point of view no differance between rtl8367b and rtl8367s
if it connected through EXT2 (rgmii only).
So this trivial patch add some identification and initialization only.
SGMII/HSGMII mode for EXT1 is not implemented for the sake of patch
clairity.

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
2024-02-27 22:00:14 +08:00
coolsnowwolf
06b4e7d34f package: bump up broadcom firmware 2024-02-26 21:38:13 +08:00
coolsnowwolf
92238a38e6 bcm27xx: switch to kernel v6.1
This patch adds support for Raspberry Pi 5.
2024-02-26 21:23:45 +08:00
Beginner
5945bf489f
kernel: bump 5.15 to 5.15.149 (#11915) 2024-02-25 00:10:19 +08:00
Beginner
5373f82d2c
kernel: bump 5.10 to 5.10.210 (#11914) 2024-02-25 00:06:04 +08:00
Beginner
4bd8570032
kernel: bump 5.4 to 5.4.269 (#11913) 2024-02-25 00:01:17 +08:00
Beginner
560cae946c
kernel: bump 6.6 to 6.6.18 (#11917) 2024-02-24 23:08:41 +08:00
Beginner
14468698a1
kernel: bump 6.1 to 6.1.79 (#11916) 2024-02-24 23:00:03 +08:00
Daniel Golle
5a1eaf2a0b mediatek: improve mt7981.dtsi
* re-factor WED components to boot fine also on limited loaders
 * add LEDs of integrated GE PHY

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-23 22:52:15 +08:00
Daniel Golle
40bd975f27 mediatek: filogic: improve pinctrl drivers
Set correct pull-type data and add additional uart groups for MT7981.
Assign functions to configure pin bias for MT7986.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-23 22:50:03 +08:00
Daniel Golle
eeae80a9d0 mediatek: replace hack for MaxLinear 2.5G PHY
Replace hack with proper patch also for Linux 5.15.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-22 23:06:24 +08:00
Daniel Golle
02c78e823a mediatek: dts: mt7988a: remove boottrap hack
The PHY driver now uses regmap created from pio syscon, we no longer
need the boottrap device.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-22 23:05:11 +08:00
coolsnowwolf
a61217134d kmod-crypto-sha512: fix kernel 6.6 support 2024-02-21 14:41:41 +08:00
coolsnowwolf
ca76a0ba65 qualcommax: ipq60xx: fixes boot issues 2024-02-20 20:20:10 +08:00
coolsnowwolf
1c57996f6f target: enable crypto-sha512 by default 2024-02-20 00:44:02 +08:00
coolsnowwolf
7f7562ee7c grub2: fix EFI support for armvirt 2024-02-20 00:18:02 +08:00
Christian Marangi
586df29178 kernel-build.mk: add support for compiling only DTS
Add support for compiling DTS for the selected target. This can be
useful for testing if the DTS correctly compile and doesn't produce any
error.

This adds a new make target. To compile only DTS use:

make target/linux/dtb

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-02-19 23:30:11 +08:00
Janusz Dziedzic
eaa0b4f0c3 linux-firmware: intel: add BE200 wifi firmware
Add option to install Intel BE200 firmware
required by iwlwifi driver and Wifi7 hardware.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2024-02-19 23:23:24 +08:00
coolsnowwolf
2948e7995a qualcommax: ipq60xx: add Redmi AX5 JDCloud support 2024-02-19 16:07:47 +08:00
coolsnowwolf
2229a47aee qualcommax: ipq60xx: add ZN M2 support 2024-02-19 15:35:33 +08:00
coolsnowwolf
98184c52b9 qualcommax: ipq60xx: add Xiaomi RM1800 (aka AX5) support 2024-02-19 15:00:00 +08:00
Beginner
0ea4b64304
kernel: bump 6.6 to 6.6.17 (#11895) 2024-02-17 19:30:11 +08:00
Beginner
6255b11d57
kernel: bump 6.1 to 6.1.78 (#11894) 2024-02-17 19:28:03 +08:00
Tony91590
735ea0d11e
mediatek: filogic: set special upgrade for Asus AX4200 (#11893) 2024-02-16 22:40:15 +08:00
Daniel Golle
87fe8bb382 mediatek: re-add missing patch for Linux 6.1
The patch was wrongly tagged as being part of Linux 6.0 even though it
was only committed with Linux 6.2 and hence needs to be backported for
Linux 6.1.

Fixes: fa79baf4a6 ("generic: copy backport, hack, pending patch and config from 5.15 to 6.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-15 23:05:35 +08:00
Daniel Golle
d6bd2cab60 mediatek: re-add dropped properties on BPi-R3
Unfortunately some device tree properties have slipped under the table
when switching from our downstream device tree.

Bring back 3W power for SFP cages and restore thermal trip points to
make sense again.

Fixes: 7a0ec001ff ("mediatek: sync MT7986 device trees with upstream")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-15 22:56:36 +08:00
Daniel Golle
12c2bc20d1 mediatek: use backported Ethernet PHY driver also for 5.15
Backport in-SoC Gigabit Ethernet PHY driver instead of carrying the
driver in files-5.15.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-14 22:51:25 +08:00
Daniel Golle
a7509fafb9 mediatek: dts: mt7988a: wire-up mediatek,pio for PHY LEDs
The PHY driver needs to read a register containing the values of the
bootstrap pins (which happen to be the PHY LEDs) to determine the LED
polarities. Allow regmap access to first pinctrl bank by adding the
'syscon' compatible, and reference the pinctrl in the MDIO bus where
the PHY driver will look for it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-14 22:46:26 +08:00
Daniel Golle
ebbf939276 mediatek: expose testing Linux 6.1 testing kernel
Set KERNEL_TESTING_PATCHVER:=6.1 to allow building all subtargets with
Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-13 22:11:05 +08:00
Daniel Golle
f2be6935f8 mediatek: adapt kernel configuration for Linux 6.1
Update kernel configuration to build Linux 6.1 for all subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-13 22:09:10 +08:00
Daniel Golle
1eef526cb9 mediatek: copy config-5.15 to config-6.1 for all subtargets
To ease review, first copy all subtargets' kernel config-5.15 to the
to-be-adapted config-6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-12 22:54:20 +08:00
Daniel Golle
e4165bcd1d mediatek: prepare old rtk switch driver for use with Linux 6.1
The old RealTek RTL8367S switch driver which is used for some MT7622
devices needs to be modified to no longer free the GPIO after reset
has completed.
This is due to Linux 5.19 removing devm_gpio_free via commit
2b038e786f83 ("gpiolib: devres: Get rid of unused devm_gpio_free()")

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-12 22:51:59 +08:00
Daniel Golle
a47cff2bc4 mediatek: use DEVICE_DTC_FLAGS and drop DTC_FLAGS
The MT7986 RFB was intended to use device tree overlays and for that
reason modified DTC_FLAGS. zyxel_ex5601-t0-stock later on probably
copied it from there. Both boards do not actually use device tree
overlays, so remove setting DTC_FLAGS from both.

The BPi-R3 does use device tree overlays, use DEVICE_DTC_FLAGS to give
it an extra 4kb of padding for overlays to be applied.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:10:55 +08:00
Daniel Golle
5f201f97e8 mediatek: use DEVICE_DTC_FLAGS for BPi-R64
Make sure there is an extra 4kb of padding to apply device tree overlays
on the BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:09:27 +08:00
Daniel Golle
2d309fec97 image: introduce DEVICE_DTC_FLAGS and DEVICE_DTCO_FLAGS
Handle compiling device tree overlay blobs separate to allow for
overlays being compiled with different parameters, mostly to safe
space.
Allow defining DEVICE_DTC_FLAGS and DEVICE_DTCO_FLAGS as per-device
parameters to be passed to dtc. Previously some boards directly used
DTC_FLAGS in their build recipe which then also affected other boards.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:07:11 +08:00
Daniel Golle
b018b4df31 mediatek: set new compat version if booted on R64 and R3
If the board comes up with OpenWrt that means that the bootloader is
recent enough and knows about the new device tree overlays.

Using /etc/board.d/ is not enough in this case because it doesn't
overwrite existing configuration which may exist (and is fine to exist)
if the user updated with 'sysupgrade -F *.itb' and has kept
configuration. They would still need to manually set compat_version
even though the fact that the bootloader env has been updated can be
implied by the fact that the system has started.

Hence we can always set compat_version=1.1 for those two boards using
uci-defaults.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-11 23:05:20 +08:00
Daniel Golle
4115f464ae generic: use only first element in bootconf for uImage.FIT
Now that it is possible to load several device tree overlays by
appending their config names to bootconf the uImage.FIT partition
parser need to discard everything after the first '#' character in
bootconf when looking up the config node to be used.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-10 22:55:04 +08:00
Daniel Golle
9f86d11f16 kernel: update FIT partition parser to new property name
The commit "uboot-mediatek: replace patch with accepted commit" changed
the name of the boot configuration property from 'bootconf' to
'u-boot,bootconf'. Reflect this change in the FIT partition parser.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-10 22:52:26 +08:00
Daniel Golle
801b8fdb85 mediatek: adapt files and patches for Linux 6.1
With Linux 6.1 many of our downstream patches and out-of-tree files
can be removed or at least replaced by backported upstream commits.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[fix CMDLINE_OVERRIDE for arm64]
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2024-02-09 21:06:36 +08:00
Daniel Golle
69ebf02aa6 mediatek: copy patches and files for Linux 6.1
First step only copies patches-5.15 and files-5.15 to
patches-6.1 and files-6.1 respectively.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-09 21:02:10 +08:00
Daniel Golle
1dbf719902 mediatek: sync MT7986 device trees with upstream
Sync device tree files for MT7986 boards with what landed in upstream
Linux tree to easy maintainance and also allow for a smooth update to
Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-08 21:21:12 +08:00
Daniel Golle
db27068259 kernel: generic: improve FIT partition parser
* only map filesystems configured in 'loadables'
 * allow mapping more than one filesystem (e.g. customization/branding
   or localization in addition to rootfs)
 * small cleaning here and there

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-08 20:56:37 +08:00
arrio464
24e2cfc64f
upx: bump to v4.2.2 (#11878) 2024-02-07 19:41:57 +08:00
Beginner
0d84afc31a
kernel: bump 6.6 to 6.6.16 (#11875) 2024-02-07 12:07:27 +08:00
Beginner
2e862778a3
kernel: bump 6.1 to 6.1.77 (#11874) 2024-02-07 12:02:03 +08:00
Daniel Golle
0e8b0cf63d image: improve uImage.FIT device tree overlay support
Instead of generating full config nodes incl. kernel, generate minimal
config nodes for device tree overlays to be applied to the main config.
In this way, multiple device tree overlays can be applied more easily.
While at it change filenames to upstream style, ie. use dtso and dtbo
suffix for device tree overlays.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-06 13:38:35 +08:00
Daniel Golle
b87a11fc43 kernel: generic: use chosen bootconf in FIT partition parser
If the selected boot configuration is stored by U-Boot in '/chosen'
node as 'bootconf' attribute, use that configuration to resolve the
block device used as rootfs. Fall back to use the default configuration
in case 'bootconf' is not present.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-05 23:00:35 +08:00
Daniel Golle
9072333533 generic: deny write to uImage.FIT sub-image partitions
Set policy bit to force read-only mode on uImage.FIT filesystem
sub-images mapped as block partitions by the FIT partition parser.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-05 22:58:59 +08:00
Daniel Golle
9ea2a9923a mediatek: use updated device tree overlay mechanism for BPi-R64
Use new device tree overlay mechanism for the BananaPi BPi-R64 board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-04 22:54:40 +08:00
Daniel Golle
faded141e2 uboot-mediatek: adapt BPi-R3 and BPi-R64 to new device tree overlay
Update bootloader environment for BPi-R3 and BPi-R64 to adapt to new
device tree overlay mechanism now that support for multiple device
tree overlays has been added.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-04 22:50:57 +08:00
coolsnowwolf
eb3e9ad2e3 mediatek: filogic: add support for CMCC RAX3000M (NAND and eMMC version) 2024-02-03 21:31:05 +08:00
aiamadeus
6606bb39b6 mediatek: add support for ABT ASR3000 2024-02-03 15:10:15 +08:00
Ivan Pavlov
64f24a2334 openssl: update to 3.0.13
Major changes between OpenSSL 3.0.12 and OpenSSL 3.0.13 [30 Jan 2024]

  * Fixed PKCS12 Decoding crashes
    ([CVE-2024-0727])
  * Fixed Excessive time spent checking invalid RSA public keys
    ([CVE-2023-6237])
  * Fixed POLY1305 MAC implementation corrupting vector registers on PowerPC
    CPUs which support PowerISA 2.07
    ([CVE-2023-6129])
  * Fix excessive time spent in DH check / generation with large Q parameter
    value ([CVE-2023-5678])

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2024-02-03 15:03:01 +08:00
coolsnowwolf
9ccbfda2bb Version update to R24.2.2 2024-02-02 22:26:03 +08:00
Beginner
458735dec7
kernel: bump 6.6 to 6.6.15 (#11857) 2024-02-02 11:01:16 +08:00
Beginner
e3811adc69
kernel: bump 6.1 to 6.1.76 (#11858) 2024-02-02 11:00:06 +08:00
Daniel Golle
d1f7b7d26d kernel: modules: package MT7986 audio drivers
Packages the audio drivers for the MediaTek MT7986 SoC used with
Wolfson WM8960 codec.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-01 22:19:58 +08:00
Daniel Golle
e930707404 kernel: modules: break-out WM8960 codec module
Package codec module for WM8960 in its own package to be used by more
than one target.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-02-01 22:15:16 +08:00
Arimune
299db83def
Add support for Marvell 88W8897 SDIO (#11853) 2024-01-31 12:26:54 +08:00
aiamadeus
2843c0b911 gpio-button-hotplug: fix probe failed 2024-01-31 11:20:35 +08:00
aiamadeus
e0ea643c5b ipq60xx: add 1.5GHz CPU frequency 2024-01-31 11:18:11 +08:00
aiamadeus
6c52d1ded1 ipq60xx: add GL.iNet GL-AX1800 support 2024-01-31 00:30:15 +08:00
coolsnowwolf
e4dedaf402 Add support to build qualcommax image 2024-01-30 18:04:25 +08:00
coolsnowwolf
5a74937732 ath11k-firmware: add ipq6018 support 2024-01-30 17:50:32 +08:00
coolsnowwolf
b7fcf33b05 ipq60xx: rename target to qualcommax 2024-01-30 17:30:36 +08:00
coolsnowwolf
8fcf7f0915 ipq807x: rename target to qualcommax 2024-01-30 11:38:39 +08:00
coolsnowwolf
cabbb92abd mac80211: ath11k: add ipq60xx support 2024-01-29 21:50:11 +08:00
coolsnowwolf
8bad26fbd3 package: support qualcommax target 2024-01-29 21:30:23 +08:00
coolsnowwolf
2feb51efeb Fix k3-firmware dependencies 2024-01-29 21:24:06 +08:00
coolsnowwolf
8a89f464cb x86: fix sysupgrade failure 2024-01-28 16:09:53 +08:00
coolsnowwolf
7fd1b241b4 Fix photonicat-firmware dependencies 2024-01-28 15:40:16 +08:00
Beginner
053f193d01
kernel: bump 6.1 to 6.1.75 (#11830) 2024-01-27 08:03:21 +08:00
Beginner
ab07e6a93e
kernel: bump 5.4 to 5.4.268 (#11834) 2024-01-27 08:02:23 +08:00
Beginner
edb87675dd
kernel: bump 5.15 to 5.15.148 (#11832) 2024-01-27 08:01:24 +08:00
Beginner
a96f1c3ec1
kernel: bump 5.10 to 5.10.209 (#11833) 2024-01-27 08:00:35 +08:00
coolsnowwolf
87b840818c mt76: add linux kernel 6.6 support 2024-01-26 17:58:35 +08:00
coolsnowwolf
460dc30390 rockchip: add photonicat-firmware for photonicat wireless 2024-01-26 17:42:01 +08:00
coolsnowwolf
4b0ca23c81 kernel: refresh kernel 6.6 config 2024-01-26 13:13:56 +08:00
aakkll
781ce8d148
kernel: bump 6.6 to 6.6.14 (#11827)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2024-01-26 12:42:34 +08:00
coolsnowwolf
14e928eeaf modules: fix usb-net support for kernel 6.6 2024-01-25 20:29:27 +08:00
coolsnowwolf
e7298575b9 modules: fix nfs and ksmbd build with kernel 6.6 2024-01-25 20:17:05 +08:00
coolsnowwolf
6022ecc6bc modules: fix nls.mk support for linux 6.6 2024-01-25 20:00:54 +08:00
coolsnowwolf
9745339664 x86: add linux kernel 6.6 support 2024-01-25 12:02:56 +08:00
coolsnowwolf
7515f84eae ipq806x: switch to kernel 5.10 2024-01-24 15:25:36 +08:00
coolsnowwolf
b23965cfb7 linux-firmware: update to 20231211 2024-01-24 15:08:25 +08:00
Beginner
a5823d43b1
kernel: bump 6.6 to 6.6.13 (#11817) 2024-01-23 00:30:12 +08:00
Beginner
b15250f0b3
kernel: bump 5.10 to 5.10.208 (#11815) 2024-01-23 00:20:07 +08:00
coolsnowwolf
1975f13219 umbim/uqmi: sync with upstream 2024-01-22 19:28:44 +08:00
coolsnowwolf
311b20a4cd uqmi: fix build with arm64 in GCC11 2024-01-22 14:39:21 +08:00
HHJLKK
ce91432bb0
mediatek: add support for IMOU LC-HX3001 (#11812) 2024-01-21 16:00:17 +08:00
CheWei Chien
64ed808de5 kernel: add kmod-leds-lp5562 and lp55xx-common
Add kernel module for lp5562 LED driver.
The kmod-leds-lp5562 depends on kmod-leds-lp55xx-common.

Signed-off-by: CheWei Chien <chewei.chien@wnc.com.tw>
2024-01-21 15:00:34 +08:00
coolsnowwolf
627477a4f7 toolchain: gdb: fix optional python support 2024-01-20 21:43:17 +08:00
GaoJinpei
9219eb1d1d
uqmi: fix build errors (#11801) 2024-01-18 17:40:58 +08:00
coolsnowwolf
ab582e396e
Update README.md for Phytium 2024-01-18 15:18:55 +08:00
HunZI
a462d2b757
target: add phytium support (#11798)
* target: add phytium support

* kernel/video: add phytium platform ARM GPU support

* config: add EFI support to phytium armv8

* target: phytium: remove rtl8821cs driver

* target: phytium: refresh dts
2024-01-18 15:16:24 +08:00
John Audia
03b416d21f kernel: bump 5.15 to 5.15.147
Manually rebased:
	generic/backport-5.15/005-v5.17-01-Kbuild-use-Wdeclaration-after-statement.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-01-18 11:05:16 +08:00
Christian Marangi
390d8c540e generic: 6.1: backport FIELD_PREP_CONST patch
Backport FIELD_PREP_CONST patch needed for at803x backport patches to
correctly compile and work.

This MACRO is needed to treat values derived from FIELD_PREP usage as
const to be used by switch case or other needed usage.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-01-18 11:00:57 +08:00
Christian Marangi
386201a323 generic: 6.1: renumber MediaTek SGMII PCS patch
Renumber MediaTek SGMII PCS patch to make space for upcoming at803x
backport patches.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-01-18 10:58:12 +08:00
Chen Minqiang
93fc272fcb kernel: ksmbd: only v2 leases handle the directory
This backport a fix for ksmbd.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2024-01-18 10:56:14 +08:00
Miles Poupart
5ed3a14e0d
bpf-headers: Fix download URL with kernel 6.1 (#11794)
This fixes the download of the kernel 5.15 for the bpf-headers when
kernel 6.1 is build for the target.

Even if kernel 6.1 was selected for the target we still use kernel 5.15
for the bpf-headers. The download script tried to download the 5.15
kernel from the 6.x directory on kernel,org and this failed. Define
PKG_SOURCE_URL based on PKG_PATCHVER and not KERNEL_BASE like done in
kernel.mk.

Without this change it tries to download the kernel from this URL:
https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-5.15.129.tar.xz

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-01-17 08:09:51 +08:00
aakkll
eb030b2124
kernel: bump 5.4 to 5.4.267 (#11795) 2024-01-17 01:28:41 +08:00
coolsnowwolf
9d7e32349c kernel: bump 6.1 to 6.1.73 2024-01-16 23:00:01 +08:00
Miles Poupart
19dba8a52e
dwarves: bump to 1.25 (#11793)
* dwarves: bump to 1.25

* tools: update elf.h

OpenWrt contains a 2012 copy of glibc's elf.h, which predates the
introduction of some newer architectures like Arm64 and RISC-V.

Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile
(when virtualization/KVM is enabled) which requires EM_AARCH64 to be
defined.

arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf':
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64'
  undeclared (first use in this function); did you mean 'EM_IA_64'?
  289 |  assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u");
      |                                           ^~~~~~~~~~

Update the copy of elf.h from the latest glibc to fix this.

Compile-tested: ath79, armvirt, mpc85xx, x86
Run-tested: armvirt

Signed-off-by: Mathew McBride <matt@traverse.com.au>

---------

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Co-authored-by: Mathew McBride <matt@traverse.com.au>
2024-01-16 22:48:52 +08:00
coolsnowwolf
32a89b611e generic: fix kernel 6.1 FLOWOFFLOAD for iptables support 2024-01-16 22:28:12 +08:00
coolsnowwolf
e302ace38d generic: refresh xt_FLOWOFFLOAD patch with new API 2024-01-15 17:40:44 +08:00
aakkll
cac1207d80 kernel: bump 6.1 to 6.1.72 (#11769) 2024-01-15 17:29:43 +08:00
coolsnowwolf
156a1b67dd netsupport.mk: add missing Kconfig for sched 2024-01-15 17:28:00 +08:00
coolsnowwolf
4ad82acf0e revert: package: adds pcre2 to base 2024-01-15 02:43:54 +08:00
coolsnowwolf
766b0bc369 Version update to R24.1.13 2024-01-15 02:37:48 +08:00
coolsnowwolf
1f7b499eb1 Revert "kernel: bump 6.1 to 6.1.72 (#11769)"
This reverts commit 2c67f6832d.
2024-01-15 02:15:50 +08:00
coolsnowwolf
945b472e91
Update README.md loongarch64 info 2024-01-15 01:40:12 +08:00
coolsnowwolf
c2b9dbf31a loongarch64: add wireless support by default 2024-01-15 01:27:42 +08:00
coolsnowwolf
c24837295d mac80211: add loongarch64 and kernle 6.6 support 2024-01-15 01:15:20 +08:00
coolsnowwolf
f1803bc468 loongarch64: fix image build 2024-01-14 23:35:58 +08:00
coolsnowwolf
4fb7370e09 generic: fix loogarch64 kernel modules build 2024-01-14 23:16:29 +08:00
coolsnowwolf
eadf20fda4 toolchain/musl: add loogarch64 support 2024-01-14 22:45:29 +08:00
coolsnowwolf
f4405a9597 tools/zstd: update to 1.5.5 2024-01-14 21:47:34 +08:00
aakkll
2c67f6832d
kernel: bump 6.1 to 6.1.72 (#11769) 2024-01-14 18:08:32 +08:00
coolsnowwolf
6c05d9908c package: fix compilation with musl 1.2.4 2024-01-13 23:21:42 +08:00
coolsnowwolf
b1816c7d0c gpio-button-hotplug: fix kernel 5.4 support 2024-01-13 13:50:40 +08:00
coolsnowwolf
ce521963da package: adds pcre2 to base 2024-01-13 13:43:43 +08:00
coolsnowwolf
648202bb8a e2fsprogs: Update to 1.45.6 2024-01-13 13:23:49 +08:00
coolsnowwolf
87b3c3e105 kernel: bump 5.4 to 5.4.266 2024-01-13 12:57:22 +08:00
coolsnowwolf
bfb12d78cd toolchain/musl: update to 1.2.4 2024-01-12 14:20:18 +08:00
coolsnowwolf
51459ab19e toolchain: gdb: Add optional python support 2024-01-12 13:28:00 +08:00
coolsnowwolf
f426fce6c1 video.mk: add AMD Displaycard (RX580) support for loongarch64 2024-01-12 10:34:28 +08:00
coolsnowwolf
a5a63865ff target: add loongarch64 support 2024-01-12 10:23:48 +08:00
coolsnowwolf
b055b3b409 generic: init linux kernel 6.6 support 2024-01-12 10:18:22 +08:00
coolsnowwolf
c6c5c79e3d target.mk: add GRUB2 EFI support for loongarch64 2024-01-12 10:13:05 +08:00
coolsnowwolf
9c8d196759 toolchain/gcc: add loongarch64 new target 2024-01-11 21:14:49 +08:00
coolsnowwolf
253878b854 include: add loongarch64 new target 2024-01-11 20:56:50 +08:00
coolsnowwolf
4103edf7b6 tools: add util-linux 2024-01-11 20:45:33 +08:00
coolsnowwolf
01edff43e4 gpio-button-hotplug: fix kernel 6.2+ build failure 2024-01-11 20:38:46 +08:00
coolsnowwolf
29c2367cac cryptodev-linux: update to 1.13 2024-01-11 20:36:11 +08:00
coolsnowwolf
7fa5e13df5 openssl: add linux64-loongarch64 into the targets list 2024-01-11 20:31:15 +08:00
coolsnowwolf
39d6ad7040 grub2: add loongarch64 support 2024-01-11 20:18:46 +08:00
coolsnowwolf
df3c79e2b4 toolchain/binutils: switch to version 2.40 by default 2024-01-11 20:12:59 +08:00
coolsnowwolf
c0bfa64daa toolchain: glibc: Update to glibc 2.37 2024-01-11 11:40:01 +08:00
coolsnowwolf
229e5e43f2 binutils: update to 2.41 2024-01-11 11:30:49 +08:00
coolsnowwolf
321f1572f4 toolchain/binutils: add support for version 2.41 2024-01-11 11:27:44 +08:00
coolsnowwolf
be9cb16c86 toolchain: gcc: add support for GCC 13 2024-01-11 11:22:30 +08:00
David Bauer
cbcb695937 mac80211: avoid crashing on invalid band info
Frequent crashes have been observed on MT7916 based platforms. While the
root of these crashes are currently unknown, they happen when decoding
rate information of connected STAs in AP mode. The rate-information is
associated with a band which is not available on the PHY.

Check for this condition in order to avoid crashing the whole system.
This patch should be removed once the roout cause has been found and
fixed.

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-01-10 22:24:11 +08:00
Felix Fietkau
6f40d7387d mediatek: fix BPI-R3 wifi mac address
Setting/clearing bits on the first byte of the mac address causes collisions
when using multiple SSIDs on both PHYs. Change the allocation to alter the
last byte instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-01-10 22:18:51 +08:00
John Audia
135a4e9540 kernel: bump 5.15 to 5.15.146
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.146

All other patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-01-09 22:58:11 +08:00
aiamadeus
89e25b571e mediatek: add missing nmbm for RG-X60 Pro
The original firmware has nmbm enabled.
2024-01-09 22:51:07 +08:00
Ashley Lee
e2a09540eb
mediatek: add support for Ruijie RG-X60 Pro (#11745)
Informations:
- SoC       : MediaTek MT7986A 2.0GHz
- RAM       : DDR3 512MiB (W634GU6QB)
- Flash     : SPI-NAND 128 MiB (W25N01GVZEIG)
- WLAN      : MediaTek MT7986A integration dual-band WiFi 6
  - 2.4 GHz : b/g/n/ax, MIMO 4x4
  - 5 GHz   : a/n/ac/ax, MIMO 4x4
- Ethernet  : 10/100/1000 Mbps x4 (MediaTek MT7531AE)
              2500Mbps x 1 (Realtek RTL8221B-VB-CG)
- UART      : through-hole on PCB
  - [J500] GND, TX, RX, 3.3V (115200n1)
- Buttons   : Mesh, Reset
- LEDs      : 1x Power (Blue)
                  1x Turbo (Purple)
- Power     : 12 VDC, 3 A

About MAC Address:
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| WAN     | 10:82:3D:XX:XX:9E | label     |
| LAN     | 10:82:3D:XX:XX:9F | label+1   |
| WLAN 2g | 10:82:3D:XX:XX:A0 | label+2   |
| WLAN 5g | 10:82:3D:XX:XX:A1 | label+3   |
+---------+-------------------+-----------+

Signed-off-by: Ashley Lee <code@emtips.net>
2024-01-05 18:30:25 +08:00
Daniel Golle
4fa8c8b72f kernel: include MT7988 Ethernet support in Linux 6.1
Import pending patches adding Ethernet support for MT7988 which are
already present in pending-5.15 also to pending-6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-01-03 21:38:29 +08:00
Daniel Golle
7f1d1eed6f kernel: backport MT7988 DSA support for Linux 6.1
Patches adding DSA support for MT7988 have been backported to
Linux 5.15 but not to Linux 6.1. Import backports also to Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-01-03 21:32:57 +08:00
Hex
606b5ae2ee
x86: increase bios boot partition to 1 MiB (#11741) 2023-12-31 12:40:25 +08:00
Daniel Golle
0609f6dbc4 mediatek: use cpufreq fix suggested by MediaTek
Use suggested fix for mediatek-cpufreq, patch will also be sent
upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-12-29 22:30:08 +08:00
Sam Shih
d58209efb8 mediatek: add basic mt7988 device tree support
This add basic device tree support for mediatek MT7988 SoC

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-12-29 22:28:01 +08:00
Sam Shih
bd6b41e301 mediatek: add mt7988 pinctrl driver support
This adds provisional pinctrl driver support for the MediaTek MT7988 SoC.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-12-28 23:28:24 +08:00
Sam Shih
ba49394aee mediatek: add mt7988 clock drivers support
This adds clock drivers for the MediaTek MT7988 SoC

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-12-28 23:26:48 +08:00
Miles Poupart
4a683e0510
kmod-media-core: update kconfig (#11735) 2023-12-25 22:40:15 +08:00
aiamadeus
4d6eb48844 github: update issue and pr template 2023-12-25 22:09:03 +08:00
Beginner
138efb16b4
kernel: bump 5.15 to 5.15.145 (#11733) 2023-12-24 00:25:24 +08:00
Beginner
60707924cc
kernel: bump 5.15 to 5.15.144 (#11728)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2023-12-22 15:47:09 +08:00
Beginner
d0f140b6c3
kernel: bump 5.10 to 5.10.205 (#11730)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2023-12-22 15:43:59 +08:00
Beginner
ccadf36e98
kernel: bump 5.4 to 5.4.265 (#11723) 2023-12-22 10:30:11 +08:00
Beginner
6731232433
kernel: bump 6.1 to 6.1.69 (#11729) 2023-12-22 10:26:57 +08:00
aiamadeus
14fb304fd4 mac80211: refresh all patches
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-12-21 22:15:19 +08:00
aiamadeus
794fa1345e mac80211: ath11k: sync with upstream linux
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-12-21 22:09:13 +08:00
Daniel Golle
46583553b7 base-files: add mmc_get_mac_ascii function
Similar to the *_get_mac_binary function, also split the common parts
off mtd_get_mac_ascii into new get_mac_ascii function and introduce
mmc_get_mac_ascii which uses it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-12-20 23:10:30 +08:00
Martin Schiller
c7ee906425 u-boot.mk: do not force parallel build
Some patched u-boots may have problems with parallel build.
Do not enforce parallel build here so one can set PKG_BUILD_PARALLEL:=0
in the specific u-boot Makefile also before including the u-boot.mk.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2023-12-20 23:06:58 +08:00
lunatickochiya
2baf4cdc28
fibocom_qmi: fixes build error (#11718) 2023-12-19 15:10:25 +08:00
Beginner
ba3c8ab2f3
kernel: bump 5.10 to 5.10.204 (#11721) 2023-12-19 10:30:35 +08:00
Beginner-Go
b36db4e355 kernel: refresh 5.15 patches (#11715) 2023-12-18 22:25:24 +08:00
Beginner
fae6bc8dd8
kernel: refresh 5.10 patches (#11719)
Fixes: #11712
2023-12-18 10:25:13 +08:00
coolsnowwolf
67dcd38678 kernel: bump 5.15 to 5.15.143 2023-12-17 15:38:17 +08:00
HHJLKK
783f460c97
kernel: fixes usb-audio depends (#11713)
Fixes: #11703
2023-12-17 12:25:25 +08:00
aakkll
a316972306
kernel: bump 6.1 to 6.1.68 (#11708) 2023-12-16 12:08:02 +08:00
aakkll
0d2cce288a
kernel: bump 5.4 to 5.4.264 (#11711) 2023-12-16 12:06:10 +08:00
Beginner
37d1429872
kernel: bump 5.10 to 5.10.201 (#11710) 2023-12-16 12:04:17 +08:00
Beginner
3358c91e43
kernel: bump 5.15 to 5.15.142 (#11709) 2023-12-16 12:02:58 +08:00
aiamadeus
1cd3b4e4d0 mediatek: add support for FZS P3 2023-12-15 21:08:13 +08:00
coolsnowwolf
ed7014bfe0 doc: update build dependence 2023-12-13 22:01:28 +08:00
coolsnowwolf
65d8795b3d rockchip: fix kernel 6.1 patch for dfi 2023-12-10 03:00:16 +08:00
coolsnowwolf
3f6bb72ee8 rockchip: add more opp-microvol for new(?) type NanoPi R2S 2023-12-10 02:26:58 +08:00
aakkll
4efca503b9
kernel: bump 5.4 to 5.4.263 (#11695) 2023-12-09 13:09:25 +08:00
aakkll
93443d24b4
kernel: bump 6.1 to 6.1.66 (#11694) 2023-12-09 13:08:34 +08:00
Ikko Eltociear Ashimine
62daffa7a2
docs: add Japanese readme (#11693) 2023-12-08 15:09:24 +08:00
coolsnowwolf
22134ba184 ipq95xx: add initial target support 2023-12-07 22:40:13 +08:00
coolsnowwolf
276ea289ec mediatek: add device pacakges for JDCloud AX6000 2023-12-07 17:34:12 +08:00
coolsnowwolf
09d5ae78b4 mediatek: add support for JDCloud AX6000 2023-12-06 22:08:30 +08:00
Marty Jones
8c95f404aa kernel: backport fixes for realtek r8152
Fixes issues with RTL8156 2.5G USB adapters

- # ethtool eth1
Settings for eth1:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes
- #

- r8152: break the loop when the budget is exhausted
- r8152: Block future register access if register access fails
- r8152: Rename RTL8152_UNPLUG to RTL8152_INACCESSIBLE
- r8152: add vendor/device ID pair for D-Link DUB-E250
- r8152: try to use a normal budget
- r8152: set bp in bulk
- r8152: adjust generic_ocp_write function
- r8152: fix the autosuspend doesn't work
- r8152: Add __GFP_NOWARN to big allocations
- r8152: reduce the control transfer of rtl8152_get_version()
- r8152: remove rtl_vendor_mode function
- r8152: avoid to change cfg for all devices
- r8152: add USB device driver for config selection
- r8152: use napi_gro_frags
- cdc_ether: no need to blacklist any r8152 devices
- cdc_ether: add u-blox 0x1313 composition

Build system: x86_64
Build-tested: bcm2711, rockchip, x86/64
Run-tested: bcm2711/RPi4B, rockchip/nanopi r2s, x86/64

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2023-12-05 22:14:38 +08:00
David Bauer
d7d01fb74d uboot-envtools: fix GL-MT2500 offset
The previous offsets did also work, as they've wrapped back to 0x0.
However, in reality the environment starts at offset 0x0 of the
u-boot-env MMC partition.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-12-04 21:36:56 +08:00
shiyu1314
f3df2a6bd3
meson: auto-repartition for EMMC (#11679) 2023-12-02 16:08:05 +08:00
John Audia
b512ed9bbb x86/64: set CONFIG_NVME_HWMON=y
CONFIG_NVME_HWMON exposes /sys/class/nvme/nvme0/device/hwmon
to allow sensors (and others) to see NVMe drive health
2023-11-29 22:50:03 +08:00
aiamadeus
1c5492a0c4 x86: increase default swiotlb size to 64MB
Since 802.11be is available, increased default swiotlb size from
32 to 64MB to support up to 2x Qualcomm WiFi 6E/7 network cards.
2023-11-29 22:40:45 +08:00
John Audia
91bce87de4 x86: set CONFIG_X86_AMD_PLATFORM_DEVICE
Needed by AMD processors using Carrizo and later chipsets

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-11-28 22:59:02 +08:00
Jitao Lu
fc458fe8c3 linux-firmware: intel: add firmware for AX101
iwlwifi from 6.5 supports API version up to 83, but 81 is the latest one
available from linux-firmware 20230804.

Signed-off-by: Jitao Lu <dianlujitao@gmail.com>
2023-11-28 22:40:22 +08:00
Carter Wang
54d1ca443d uboot-mediatek: Fix ubi command in commands
Fix typo 'ubi remote ...' -> 'ubi remove ...'.

Signed-off-by: Carter Wang <carter.wang@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-27 22:16:05 +08:00
David Bauer
4fa8f64776 mediatek: add support for GL.iNet GL-MT2500
Hardware
--------
SoC:  MediaTek MT7981BA
RAM:  1GB DDR4 (NANYA NT5AD512M16C4-JR)
MMC:  8GB eMMC (Samsung 8GTF4R)
ETH:  1000Base-T LAN (ePHY)
      2500Base-T WAN (MaxLinear GPY211C)
BTN:  1x Reset Button
LED:  System (blue/white)
      VPN (white)
USB:  1x USB-A (USB 3.0)
UART: 115200 8N1 - Pinout on board next to LAN port
      Don't connect 3.3V!

Known Issues
------------
U-Boot vendor recovery does not seem to accept any images, neither
GL.iNet images nor OpenWrt images. Recovery requires serial access!

Installation
------------
Upload the OpenWrt sysupgrade image to the Gl.iNet Web-UI. Make sure to
not retain existing settings.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-27 22:10:03 +08:00
Daniel Golle
16a099f5d6 mediatek: sync MT7988 USXGMII with SDK driver
The USXGMII driver in SDK was heavily refactored, some bugs have been
fixed and it has switched to use phylink_pcs. Follow up with changes
in SDK driver and sync our on-top-of-mainline driver with the SDK
driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:22:37 +08:00
Daniel Golle
4b44ca4957 mediatek: add driver for built-in 2.5G Ethernet PHY
Add driver for the built-in 2.5G Ethernet PHY found in the MT7988 SoC.
To function the PHY also needs firmware files which have not yet been
published via linux-firmware.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:20:03 +08:00
Daniel Golle
cce9d689eb mediatek: update pending SoC Ethernet PHY driver
Update driver for MediaTek's built-in Gigabit Ethernet PHYs which can be
found in the MT7981 and MT7988 SoCs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:18:04 +08:00
Daniel Golle
a4956e53d0 mediatek: fix, clean and unify SD card image generation
Make sure sub-images on the SD card are size-checked, allow
generating SD card without squashfs and/or initramfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-23 22:30:10 +08:00
Daniel Golle
c10f7e39e6 mediatek: mt7623: build SD card without all filesystems
Allow building SD card images without having both initramfs and squashfs
present on the card, just like it has already been done for the mt7622
and filogic subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-23 22:28:55 +08:00
Daniel Golle
0ad15c2b02 mediatek: backport cpufreq changes to support MT7988
Backport cpufreq changes from upstream so that the MediaTek MT7988 SoC
can be supported.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-22 22:59:06 +08:00
Daniel Golle
ac4e3b75ad mediatek: filogic: add driver for Richtek RT5190A regulator
The Richtek RT5190A is used on the MT7988 reference board. Backport and
enable the driver on the filogic subtarget, so we can support cpufreq
on the MT7988 reference board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-22 22:56:08 +08:00
Daniel Golle
36fccf085d generic: mt7530: backport support for the MT7988 built-in switch
Backport commits adding support for the MT7988 built-in switch to the
mt7530 driver.

This change results in the Kconfig symbol NET_DSA_MT7530 to be extended
by NET_DSA_MT7530_MDIO (everything formally covered by NET_DSA_MT7530)
and NET_DSA_MT7530_MMIO (a new driver for the MMIO-connected built-in
switch of the MT7988 SoC).

Select NET_DSA_MT7530_MDIO for all targets previously selecting
NET_DSA_MT7530, with the exception of mediatek/filogic which also
selects NET_DSA_MT7530_MMIO.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:32:40 +08:00
Daniel Golle
40e94fc5fd generic: add support for MediaTek NETSYS v3
In order to support Ethernet on the MT7988 SoC add support for NETSYS v3
as well as new paths and USXGMII SerDes to the mtk_eth_soc driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:20:37 +08:00
coolsnowwolf
de47a6a5c4 rockchip: add uboot-envtools support for T68M 2023-11-20 13:25:09 +08:00
Ilya Katsnelson
a4c684fd02 build: replace true with a custom noop script
`true` might be a shell built-in, or simply not accessible in the hardcoded locations.
Replace it with a custom script that does nothing.

Signed-off-by: Ilya Katsnelson <me@0upti.me>
2023-11-19 22:54:50 +08:00
Daniel Golle
1c4dfe2b19 kernel: add support MeigLink SLM828 modem
Another Qualcomm-based USB-connected modem, offering endpoints
 0 : rndis_host (link to voip subsystem listening on 169.254.5.100)
 1 : rndis_host (?)
 2 : option (?)
 3 : option (at)
 4 : option (at)
 5 : option (?)
 6 : GobiNet (qmi)
 7 : ?

Add support for this modem in rndis_host, option and qmi_wwan driver
which allows the modem to be used with ModemManager.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-19 22:51:46 +08:00
coolsnowwolf
8578eed80e Revert "autocore: unify wifi signal view"
This reverts commit 30783ee204.
2023-11-17 14:28:30 +08:00
coolsnowwolf
b2baa9ea19 treewide: disable GL.iNet’s devices support
This is required by their group admin, since
they can represent the GL.iNet official.
2023-11-17 14:25:01 +08:00
coolsnowwolf
e14b03b6c2 kernel: fix linux 5.4 hash typo
Fixes: #11661
2023-11-14 20:09:47 +08:00
aakkll
d8ad8adc3b
kernel: bump 5.15 to 5.15.138 (#11658)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:47:28 +08:00
aakkll
b9ceecfd2c
kernel: bump 6.1 to 6.1.62 (#11656)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:35:13 +08:00
aakkll
03ef1793db
kernel: bump 5.4 to 5.4.260 (#11657)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:34:53 +08:00
Rani Hod
59e66205ed bcm53xx: build a single device per profile
So far every build of a single bcm53xx Target Profile (it means: when
NOT using CONFIG_TARGET_MULTI_PROFILE) resulted in all target devices
images being built. Now it only builds the one matching selected
profile.

Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Rani Hod <rani.hod@gmail.com>
[rmilecki: update commit subject + body & move PROFILES line]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-12 00:10:31 +08:00
David Bauer
fbaaae5d55 ramips: fix mt7621 kernel compilation
The OF LED configuration patch fails on MT7621, as the necessary headers
were only included for the mediatek subtarget with an additional patch.

Fixes: 242fe8634eba ("generic: add hack for MT753x LED configuration")

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:58:28 +08:00
David Bauer
b8fe2aca01 mediatek: configure TUF-AX4200 LAN LEDs
As we can now configure the switch LED configuration, write the switch
LED configuration values from the vendor firmware to the switch-IC.

Previously, the switch-LEDs did not show any acitvity or link-status
whatsoever.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:57:51 +08:00
David Bauer
bcef100d36 mediatek: apply stock configuration for WAN-LED
Apply the same LED configuration used by the vendor-firmware for the
GPY211 controlled WAN LED in OpenWrt.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:56:29 +08:00
David Bauer
74d0214003 generic: add hack for MT753x LED configuration
This adds a small hack similar to the one used for ar8xxx switches to
read a reg:value map for configuring the LED configuration registers.

This allows OpenWrt to write device-specific LED action as well as blink
configurations. It is unlikely to be accepted upstream, as upstream
plans on integrating their own framework for handling these LEDs.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:55:20 +08:00
David Bauer
39b2d130e5 generic: mt7530: enable PHY configuration using OF
The MT753x switches provide a switch-internal MDIO bus for the embedded
PHYs.

Register a OF sub-node on the switch OF-node for this internal MDIO bus.
This allows to configure the embedded PHYs using device-tree.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:54:04 +08:00
aiamadeus
bc4708a64c r8125: update to 9.012.03-1
Closed: #11646
2023-11-07 22:40:35 +08:00
aiamadeus
3dac5fb33d r8152: update to 2.17.1-3 2023-11-07 22:39:05 +08:00
aiamadeus
a1a1c8a10c r8168: update to 8.052.01 2023-11-07 22:37:05 +08:00
coolsnowwolf
f852316284 mediatek: fix gl-mt6000 wireless 2023-11-06 22:15:40 +08:00
aakkll
2e5b2e92c3
kernel: bump 6.1 to 6.1.61 (#11637)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-05 02:22:20 +08:00
coolsnowwolf
30783ee204 autocore: unify wifi signal view 2023-11-04 15:35:01 +08:00
coolsnowwolf
8a4651f110 mediatek: add led aliases for GL.iNet GL-MT6000 2023-11-04 15:24:57 +08:00
Brian Norris
104c0575ef base-files: Align rootfs_data upgrades to 64KiB on eMMC
Rootfs overlays get created at a ROOTDEV_OVERLAY_ALIGN (64KiB)
alignment after the rootfs, but emmc_do_upgrade() is assuming
it comes at the very next 512-byte sector.

Suggested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(move spaces around, mention fstools' libtoolfs)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-11-04 15:21:58 +08:00
coolsnowwolf
07c7f456d5 Version update to R23.11.11 2023-11-04 14:24:04 +08:00
coolsnowwolf
a3c464f06c mediatek: add default package 2023-11-04 14:23:11 +08:00
zheshifandian
a2c8782d53
mediatek: improve GL-MT6000 support (#11636)
* mediatek: fix sysupgrade for gl-mt6000

* mediatek: add u-boot support for gl-mt6000

* mediatek: fix lan port for gl-mt6000

* mediatek: fix wifi mac for gl-mt6000
2023-11-04 14:19:47 +08:00
Hauke Mehrtens
cd7cbee6b1 kernel: bump 5.10 to 5.10.199
All patches automatically rebased.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-11-03 23:28:39 +08:00
aiamadeus
a8ddfc2e10 mediatek: add Netcore N60 support
Connect to the router using ssh or telnet,
username: useradmin, password is the web
login password of the router.

Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-11-01 22:28:50 +08:00
aiamadeus
6939d662fb mediatek: add TP-Link TL-XTR8488 support
The TP-Link TL-XTR8488 has the same hardware as the
TP-Link TL-XDR6088 except for the wifi and ram part.

RAM: MT40A512M16TB DDR4 1GB
WiFi1: MT7976GN 2.4GHz 4T4R
WiFi2: MT7976AN 5.2GHz 4T4R
WiFi3: MT7915AN 5.8GHz 4T4R

Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-11-01 22:16:26 +08:00
aiamadeus
c8e9d227fd kernel/video: add ARM GPU drivers 2023-10-30 22:54:05 +08:00
Liangbin Lian
fd7b5ec17a kernel: usb-audio remove Kconfig USB_AUDIO
CONFIG_USB_AUDIO is a "USB Audio Gadget" driver, not a usb device driver

CONFIG_USB_AUDIO is "USB Audio support" before linux 2.6

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2023-10-29 23:40:07 +08:00
Luca Barbato
7d7743dade kernel: Enable hwmon for nvme
Expose the temperature sensors as hwmon, it improves the overall
user experience since on tiny boards the nvme can become a substantial
source of heat.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2023-10-29 23:38:15 +08:00
Hauke Mehrtens
aa6a5f292a openssl: update to 3.0.12
Major changes between OpenSSL 3.0.11 and OpenSSL 3.0.12 [24 Oct 2023]
 * Mitigate incorrect resize handling for symmetric cipher keys and IVs. (CVE-2023-5363)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-10-26 23:38:50 +08:00
aakkll
85323635c0
kernel: bump 6.1 to 6.1.60 (#11620) 2023-10-26 10:09:23 +08:00
Rahul Thakur
2d8ac40752 dnsmasq: add support for RA option 31
The option 31 in the RA specifies the DNS search list, the support
to configure this via UCI is missing in case dnsmasq-dhcpv6 is used.

This commit uses the uci option domain (same as is done by odhcpd) to
read and pass the DNS search list to dnsmasq, which is then used by RA.

Hence, with this commit, we are able to configure DNS search list for the
RA messages via the uci config when dnsmsaq-dhcpv6 is used.

Signed-off-by: Rahul Thakur <rahul.thakur@iopsys.eu>
2023-10-24 18:34:01 +08:00
coolsnowwolf
eded1ca5d1 kernel: fix linux 5.4 hash typo 2023-10-24 14:18:42 +08:00
coolsnowwolf
e803f566e5 Version: Celebrate 1024 Programmers Day 2023-10-24 07:40:25 +08:00
coolsnowwolf
6a9018096b kernel: bump version 2023-10-24 07:38:02 +08:00
cjp_jx
d18c930914
autocore/x86: Fixes CPU usage display issue (#11614)
Fix: #11603
2023-10-22 23:10:23 +08:00
coolsnowwolf
0f4df4fa22 kernel: fix kmod-video-core on linux kernel 6.1+ 2023-10-21 22:02:30 +08:00
coolsnowwolf
7af4aa447c kernel: bump 5.15 to 5.15.136 2023-10-21 10:24:44 +08:00
John Audia
05fae0397d kernel: bump 6.1 to 6.1.57
All other patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
2023-10-20 23:09:40 +08:00
John Audia
21c3e8e4a1 kernel: bump 5.15 to 5.15.135
All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-10-20 23:03:30 +08:00
Daniel Golle
64e7a9de3b generic: backport fix for Winbond SPI NAND
Avoid using stack allocated memory for DMA operations.

Fixes: 156c00dedc ("generic: backport Winbond W25N02KV SPI-NAND support")
Fixes: b71c870caa ("generic: 6.1: re-add two Winbond nand fixes")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-10-19 21:58:38 +08:00
Bjørn Mork
d63dcc20b2 generic: 6.1: re-add two Winbond nand fixes
These patches were earlier mislabled as v6.1 and
 therefore dropped. They are in fact from v6.2.

Fixes boot failure on ASUS TUF-AX4200

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2023-10-19 21:57:03 +08:00
coolsnowwolf
b29bd49781 arm-trusted-firmware-rockchip-vendor: update PKG_MIRROR_HASH 2023-10-18 23:16:08 +08:00
coolsnowwolf
8c39e48514 base-files: create empty coremark file
Fixes: #11590
2023-10-16 21:50:53 +08:00
woOzZ2
daacfa7071
base-files: fix OpenWrt with Docker will cause NAT loopback (#11588)
Fixed the problem that even if br-netfilter is disabled in package/kernel/linux/files/sysctl-br-netfilter.conf, NAT loopback will still fail. This applies to OpenWrt with Docker
2023-10-15 23:05:01 -05:00
Hauke Mehrtens
4bb635d3a0 mbedtls: Update to version 2.28.5
This fixes some minor security problems.
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-2.28.5

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-10-15 23:30:08 +08:00
John Audia
f0d72c0be6 config-6.1: disable CONFIG_ARM64_ERRATUM_2966298
Disable new ksym globally as OpenWrt does not have any targets that
use A520 cores.

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
2023-10-15 23:28:27 +08:00
shiyu1314
788fa9127f
meson: Kernel supports docker (#11591) 2023-10-13 13:53:09 +08:00
shiyu1314
55f3d9f530
meson: remove some unnecessary patches (#11584) 2023-10-11 12:16:25 +08:00
shiyu1314
4065f3bb22
meson: fix: Fail to register VCC_CORE regulator (#11583)
Clean up some kernel configurations
2023-10-11 08:18:02 +08:00
AmadeusGhost
f6f51c076b ipq40xx: add back YYeTs LE1 support 2023-10-10 23:54:22 +08:00
AmadeusGhost
7deff88709 ipq40xx: fixes k5.10 boot issue
Fixes: #11530
2023-10-10 23:52:39 +08:00
coolsnowwolf
f0879e3818 kernel: bump 6.1 to 6.1.56 2023-10-09 01:14:35 +08:00
雷耀
36278047cf
rockchip: add support for seewo sv21-rk3568 (#11567) 2023-10-08 10:51:40 +08:00
shiyu1314
597b88e925
meson: bump to 6.1 kernel, drop mesongx (#11570)
Make it into a direct brush package, making it convenient for software to brush into EMMC without the need for SD or USB drive

u-boot: https://github.com/shiyu1314/u-boot-onecloud/releases

SD firmware conversion to direct flash firmware: https://github.com/shiyu1314/openwrt-onecloud

Signed-off-by: Li Xueli <1052672227@qq.com>
2023-10-05 22:00:36 +08:00
coolsnowwolf
e9ca86b670 generic: fix up backport of interconnect teach in kernel 5.15 2023-10-03 12:03:55 +08:00
coolsnowwolf
b0ea62c2c9 Revert "mt76: update to the latest version"
This reverts commit 16005ae688.
2023-10-03 11:39:42 +08:00
lean
16005ae688 mt76: update to the latest version 2023-09-30 17:44:03 +08:00
lean
040575e75f Version update to R23.10.1 2023-09-30 16:48:09 +08:00
lean
979ee6c715 kernel: bump 5.4 to 5.4.257 2023-09-30 16:45:55 +08:00
lean
e09c0f02cf kernel: bump 5.10 to 5.10.197 2023-09-30 16:43:14 +08:00
lean
d2dacaa22a kernel: bump 5.15 to 5.15.133 2023-09-30 16:35:15 +08:00
lean
9f1e059f89 kernel: bump 6.1 to 6.1.55 2023-09-30 16:32:49 +08:00
Ivan Pavlov
f35d972136 openssl: update to 3.0.11
Changes between 3.0.10 and 3.0.11 [19 Sep 2023]
 * Fix POLY1305 MAC implementation corrupting XMM registers on Windows. ([CVE-2023-4807])

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2023-09-29 23:05:58 +08:00
Christian Marangi
f36566e734 generic: add patch for GPON-ONU-34-20BI quirk
Backport patch merged upstream adding quirk for SFP GPON-ONU-34-20BI.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-09-29 23:01:57 +08:00
aiamadeus
8eb70b65a3 rockchip: update GbE led for some board 2023-09-26 23:00:35 +08:00
aiamadeus
d3d38a20cb rockchip: rk3568: sync upstream dts changes
Fixes: #11547
2023-09-26 22:55:22 +08:00
Chen Minqiang
b28274ea5f mediatek: fix the name of buswidth to bus-width
Fix the issue of dts buswidth cannot be applied properly with spi driver.
Fix the name of buswidth to bus-width in dts in order to fit the format
in linux spi kernel so that spi-tx-bus-width & spi-rx-bus-width can be
parsed properly.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2023-09-25 22:00:27 +08:00
AmadeusGhost
02b57804f8 mediatek: add Xiaomi AX3000T support 2023-09-25 21:56:38 +08:00
AmadeusGhost
36bd1e35ad mediatek: filogic: sync upstream dts changes 2023-09-24 22:59:00 +08:00
Patricia Lee
2fdceb465c mediatek: add support for Cetron CT3003
**Hardware specification:**

- SoC: MediaTek MT7981B 2x A53
- Flash: ESMT F50L1G41LB 128MB
- RAM: Nanya NT5CC128M16JR-EK 256MB
- Ethernet: 4 x 10/100/1000 Mbps
- Switch: MediaTek MT7531AE
- WiFi: MediaTek MT7976C
- Button: Reset, Mesh
- Power: DC 12V 1A
- UART: 3.3v, 115200n8

**Flash instructions:**

1. Rename `openwrt-mediatek-filogic-cetron_ct3003-squashfs-factory.bin` to `factory.bin`.
2. Upload the `factory.bin` using the device's Web interface.
3. Click the upgrade button and wait for the process to finish.
4. Access the OpenWrt interface using the same password.
5. Use the 'Restore' function to reset the firmware to its initial state.

**Notes:**

If you plan to recovery the stock firmware in the future, it's advisable
to connect the device via the serial port and enter failsafe mode to
back up all the MTD partitions before proceeding the steps above.

Signed-off-by: Patricia Lee <patricialee320@gmail.com>
2023-09-24 22:51:33 +08:00
Daniel Golle
407fe3d689 mediatek: use existing I2C clock names
PCK and MCK should really be P=PMIC and M=MEM, which means that they
should effectively be CLK_PMIC and CLK_ARB.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-09-23 22:06:51 +08:00
Daniel Golle
cad44d24f7 mediatek: cleanly backport and add fix for I2C driver
Pick accepted patches from upstream Linux tree instead of having to
maintain our slightly different downstream patches.
Import pending patch fixing I2C on MT7981 by making sure all clocks
are enabled before accessing I2C registers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-09-23 22:04:44 +08:00
lean
a462ab958e Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-09-22 19:09:03 +08:00
lean
e8d03d317b rockchip: phy: rockchip-snps-pcie3: update fw when init 2023-09-22 19:08:52 +08:00
sKyissKy
06556882d6
Fix ipq807x qca-nss-ecm bonding error (#11542) 2023-09-22 18:36:37 +08:00
David Bauer
876ee0d189 scripts: use sep-char for hash nodes
U-Boot with enabled secure-boot will not boot images with the
@-character used for hash node-names.

Use the existing separation character configurable for each device.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-09-21 22:38:21 +08:00
zhusir
dd3dddafcf
fix: cpu usage display (#11537) 2023-09-20 19:49:08 +04:00
lean
7a04c52544 Version update to R23.9.18 2023-09-19 18:45:53 +08:00
lean
f56df16317 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-09-17 04:11:21 +08:00
lean
61625a6cf9 openssl: make compatible with v1.1 pkg 2023-09-17 04:11:12 +08:00
aiamadeus
ad98915e76 ipq40xx: try to fixes booting issue
No testing since there is no board.
2023-09-16 19:23:55 +08:00
Hauke Mehrtens
45107fc446 mbedtls: Update to version 2.28.4
This only fixes minor problems.
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.4

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-09-16 19:20:36 +08:00
Daniel Maslowski
7acf8fc20e kernel: decouple 9P virtio from 9P net
General support for 9P is desirable on platforms without virtualization.
This decouples the 9P general networking support for use on more platforms.

Signed-off-by: Daniel Maslowski <info@orangecms.org>
2023-09-15 10:28:14 +08:00
Eneas U de Queiroz
7494eb1618 openssl: bump to 3.0.10
This is a major update to the current LTS version, supported until
2026-09-07.

Changelog:
https://github.com/openssl/openssl/blob/openssl-3.0.10/CHANGES.md

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-09-15 10:25:17 +08:00
coolsnowwolf
a2a0e5b9f6 ipq-wifi: bump to latest git HEAD 2023-09-14 13:55:54 +08:00
coolsnowwolf
eb0d35f0b7 Revert "r8125: bump to version 9.011.00-1"
This reverts commit b570280edf.
2023-09-14 13:35:24 +08:00
coolsnowwolf
f12c5e76d2
Update README.md 2023-09-09 19:45:24 +04:00
lean
34ac92f6cc ipq40xx: switch to kernel 5.10 2023-09-09 23:36:45 +08:00
lean
61d090cddb mediatek: fix build with glinet gl mt6000 2023-09-09 22:41:52 +08:00
lean
77abd0b975 filogic: add support for GL.iNet GL-MT6000 support 2023-09-08 16:33:49 +08:00
Kivinsae Fang
191a5b1ba4
fix: Add the missing content to README_EN (#11520)
* doc: Sync'ed README_EN.md to the latest commit

* fix: Add the missing content to README_EN

---------

Co-authored-by: KKtheGhost <im@kivinsae.com>
2023-09-08 12:20:41 +04:00
aakkll
e4838f140b
kernel: bump 6.1 to 6.1.52 (#11517)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-09-07 10:41:42 +04:00
zhusir
5ae20da72e
fibocom_qmi: fixes build error (#11516)
Fixed #11374
2023-09-06 22:08:03 +08:00
Felix Fietkau
8e4e1a06be mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-09-05 21:36:39 +08:00
好想告诉你
007b9dd0e2
action: remove unused package moby* (#11502) 2023-09-04 10:05:00 +08:00
Hauke Mehrtens
65b9b129d1 linux-firmware: update to 20230804
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-09-03 17:35:30 +08:00
Hauke Mehrtens
4013351243 linux-firmware: Update Intel AX200 and AX210 firmware
This updates the Intel iwlwifi firmware for AX200 and AX210 from version
66 to version 72. Version 72 is the latest version supported by iwlwifi
from kernel 6.1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2023-09-03 17:31:38 +08:00
Hannu Nyman
565ff98e01 scripts/download.pl: remove stale GNOME download sites
Remove stale sites from @GNOME alias:
* remove 2 sites that have stale 3 years old content
* remove 2 sites that have dropped GNOME
* convert 2 sites from FTP to HTTP

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2023-09-02 18:28:38 +08:00
AmadeusGhost
b570280edf r8125: bump to version 9.011.00-1 2023-09-02 18:24:57 +08:00
aakkll
198e536d15
kernel: bump to 5.4.255, 6.1.50 (#11497) 2023-08-31 15:20:11 +08:00
coolsnowwolf
7460dcc802 uboot-rockchip: update rkbin version
Fixes: #11488, #11489
2023-08-27 19:30:22 +08:00
oct-month
1fd443d852
ip60xx: fix build issue (#11486) 2023-08-26 12:14:41 +08:00
John Audia
cfea6db248 kernel: bump 5.15 to 5.15.126
1. Disable unneeded errata Kconfig symbols
2. Update kernel

All patches automatically rebased.
Fixes: #11427, #11451, #11476

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-08-25 21:19:45 +08:00
1582130940
2f7f6cf0c4 ip60xx/ipq807x: Drop upstream patch
Already fixed in upstream kernel (5.10.191/5.15.127)
2023-08-25 21:01:03 +08:00
coolsnowwolf
5eda7bd591 closed-rockchip-vendor: bump to v2023-07-26 2023-08-24 20:15:41 +08:00
coolsnowwolf
97c30dc620 Version update to R23.8.23 2023-08-24 14:29:52 +08:00
coolsnowwolf
7d88ab0e62 kernel: bump version with upstream 2023-08-24 14:27:37 +08:00
晓东
f676db7af3
meson: Onecloud: Fix first USB not available (#11479)
* Fix first USB not available

* Fix first USB not available

* Fix first USB not available
2023-08-23 19:10:10 +08:00
晓东
aa7601b13f
meson: add 5.15 kernel support (#11477) 2023-08-23 15:16:23 +08:00
coolsnowwolf
2f9daaaf34 Revert "update dropbear version (#11467)"
This reverts commit b428d5e6c1.
2023-08-21 17:00:18 +08:00
coolsnowwolf
a653cfbdda Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-08-21 13:36:44 +08:00
coolsnowwolf
b1142d41f2 r8152: fix compatibility with kernel 5.4.251+ 2023-08-21 13:36:36 +08:00
Phoenix
b428d5e6c1
update dropbear version (#11467)
* Update Makefile

* Update dropbear.init
2023-08-21 13:25:45 +08:00
Kivinsae Fang
3eb61cfd0c
doc: added a workaround for non-sensitive fs on WSL/WSL2 (#11465)
Co-authored-by: KKtheGhost <im@kivinsae.com>
2023-08-21 13:24:32 +08:00
Kivinsae Fang
81565cb91f
doc: sync README_EN.md to latest (#11466)
Co-authored-by: KKtheGhost <im@kivinsae.com>
2023-08-20 23:30:25 +08:00
aakkll
38595344c2
kernel: bump to 5.4.254, 6.1.46 (#11460) 2023-08-18 21:08:34 +08:00
coolsnowwolf
c5efeaff69 kernel: bump 5.10 to 5.10.190 2023-08-16 15:46:28 +08:00
Hauke Mehrtens
4fd8d7b7f8 openssl: bump to 1.1.1v
Major changes between OpenSSL 1.1.1u and OpenSSL 1.1.1v [1 Aug 2023]

    o Fix excessive time spent checking DH q parameter value (CVE-2023-3817)
    o Fix DH_check() excessive time with over sized modulus (CVE-2023-3446)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-08-16 15:13:01 +08:00
aakkll
8069a49467
kernel: bump to 5.4.253, 6.1.45 (#11455)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-08-15 22:23:26 +08:00
晓东
4e7c56f9f3
Support emmc for Thunder OneCloud (#11453) 2023-08-15 14:32:55 +08:00
coolsnowwolf
961ee0e81e r8152: fix build with kernel 5.10+ 2023-08-13 11:40:42 +08:00
coolsnowwolf
bdb3b96718 r8152: rework eth hw addr set for kernel 5.4 2023-08-12 22:17:18 +08:00
coolsnowwolf
38bca36d20 mac80211: rework eth hw addr set for kernel 5.4 2023-08-10 19:42:15 +08:00
aakkll
3441bc5588
kernel: bump 5.4 to 5.4.252 (#11436) 2023-08-09 16:25:17 +08:00
aakkll
5f9a1cae43
kernel: bump 6.1 to 6.1.44 (#11435) 2023-08-09 10:03:13 +08:00
coolsnowwolf
20f23ca93b package/wwan: update dependes 2023-08-04 23:51:02 +08:00
aakkll
3882194f9f
kernel: bump 6.1 to 6.1.43 (#11423) 2023-08-03 20:35:26 +08:00
Felix Fietkau
bbebb4beab mac80211: fix mesh fast tx cache issues
Split the cache by tx type in order to avoid packet drop issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-02 21:35:31 +08:00
Felix Fietkau
0d0d065707 mac80211: fix HE issues with AP_VLAN interfaces
Fixes issues with aggregation

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-02 21:32:56 +08:00
Felix Fietkau
965f4854a5 mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-01 20:09:31 +08:00
Christian Marangi
1cf01f7dbf ath10k-ct: add patch fixing compilation warning for debug level
Add patch fixing compilation warning for debug level read.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-08-01 20:02:30 +08:00
aiamadeus
2abe7192ff generic: add more usb modem support 2023-07-31 22:06:00 +08:00
aiamadeus
b9905af673 uboot-rockchip: bump to v2023.07
Drop upstream patches as bug fixed on rk3568.
2023-07-31 22:00:53 +08:00
aakkll
e7e8eb963f
kernel: bump 6.1 to 6.1.42 (#11410) 2023-07-28 08:10:44 +00:00
coolsnowwolf
37eaf33035 autocore-x86: advertise 2.5G/5G link modes for Intel x550 2023-07-26 22:57:19 +08:00
coolsnowwolf
2b743dbff0 kernel: bump version with upstream 2023-07-26 22:41:19 +08:00
aakkll
b828e123c6
kernel: bump to 5.4.249, 6.1.40 (#11404)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-07-26 22:25:00 +08:00
David Bauer
14cc6d5a6d mac80211: partly revert force-mac80211 loss detection
This patch will only force mac80211 loss detection upon ath10k by
masking the driver-specific loss-detection bit.

Ref: commit ed816f6ba8b5 ("mac80211: always use mac80211 loss detection")

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-07-26 21:28:47 +08:00
David Bauer
6c0363e78c mac80211: always use mac80211 loss detection
ath10k does not report excessive loss in case of broken block-ack
sessions. The loss is communicated to the host-os, but ath10k does not
trigger a low-ack events by itself.

The mac80211 framework for loss detection however detects this
circumstance well in case of ath10k. So use it regardless of ath10k's
own loss detection mechanism.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-07-26 21:26:31 +08:00
Robert Marko
64002d3a24 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This introduces support for MBSSID and EMA, adds factory test mode and
some new HTT stats.

Tested-by: Francisco G Luna <frangonlun@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:39:22 +08:00
Robert Marko
b93186df5d mac80211: backport EMA beacon support
Backport EMA beacon support from kernel 6.4.
It is required for MBSSID/EMA suport in ath11k that will follow.

Tested-by: Francisco G Luna <frangonlun@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:38:23 +08:00
Robert Marko
c72c8f58a7 mac80211: backport merged version of A-MSDU mesh patch
This issue was fixed in the final version of
("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces") that was
merged upstream but we have a older version that is using:
memcpy(&payload.eth.h_dest, mesh_addr, 2 * ETH_ALEN);
instead of:
memcpy(&payload.eth, mesh_addr, 2 * ETH_ALEN);

So, lets just backport the merged version of patch to fix the issue.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:37:11 +08:00
aiamadeus
266036e667 rockchip: add h68k/h69k hardware v3 support 2023-07-24 21:38:29 +08:00
Testeera
279cda2a4c
kernel: bump 6.1 to 6.1.39 (#11396)
Link: https://lore.kernel.org/r/20230716194923.861634455@linuxfoundation.org
Link: https://lore.kernel.org/r/20230717185609.886113843@linuxfoundation.org
Link: https://lore.kernel.org/r/20230717201547.359923764@linuxfoundation.org

Signed-off-by: Marty Jones <mj8263788@gmail.com>
Co-authored-by: Marty Jones <mj8263788@gmail.com>
2023-07-20 15:50:19 +08:00
coolsnowwolf
dff0d3553d rockchip: add wireless support for LYT T68M 2023-07-18 15:49:54 +08:00
coolsnowwolf
2bacbb31a5 uboot-rockchip: fix Panther x2 uboot name 2023-07-16 17:59:04 +08:00
Daniel Golle
e7d391d0ba kernel: add two missing symbols in 6.1
Two more new symbols were discovered when building mediatek targets
with CONFIG_ALL_KMODS=y.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-07-15 23:52:02 +08:00
Daniel Golle
a1c87e7c74 kernel: leds-ws2812b: fix build with Linux >= 5.18
The return value of the .remove function pointer has changed from
int to void with Linux 5.18. Use a precompiler macro to allow building
the leds-ws2812b module with both, Linux 5.15 and Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-07-15 23:46:56 +08:00
John Audia
d3e80e6e60 linux-firmware: update to 20230625
Signed-off-by: John Audia <therealgraysky@proton.me>
2023-07-14 22:08:15 +08:00
Davide Fioravanti
f6c316d52e base-files: add minimal mmc support
Added minimal mmc support for helper functions.

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
[replace dd with caldata_dd, moved sysupgrade mmc to orbi]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-07-14 21:59:15 +08:00
Lollipop907
99ef55e814
rockchip: Add support for Codinge Xiaobao NAS-I (#11383) 2023-07-13 09:22:46 +08:00
雷耀
f6bb67f147
rockchip: add new device panther x2 (#11380)
* uboot-rockchip: fix rk3566 support

* rockchip: add support for Panther X2
2023-07-12 13:17:28 +08:00
John Thomson
761b79a272 kernel: fix KernelPackage when all KCONFIG are versioned
If a kernel package was defined where all KCONFIG symbols were dynamic,
and versioned, no FILES would be installed, as the foreach evaluation was
providing the value of the variable defined by the KCONFIG symbol name
including the version test

Fix this by calling the version_filter function on the list of KCONFIG
variable names run through by foreach

Example, kernel 6.1:
KCONFIG:=CONFIG_OLD@lt6.1 CONFIG_NEW@ge6.1
filter-out any KCONFIG settings forced by package:
CONFIG_OLD@lt6.1 CONFIG_NEW@ge6.1
there are dynamic settings, so for each of them,
get the value of the make variable defined by symbol name:
    CONFIG_OLD@lt6.1 is not set
    CONFIG_NEW@ge6.1 is not set
  versus
    CONFIG_OLD is not set
    CONFIG_NEW=m
test if any of these are m, or y
if yes, install files, otherwise, nothing to install

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
2023-07-11 21:54:03 +08:00
Mathew McBride
472c17ae4e linux-firmware: ibt-firmware: install sfi/ddc files for AX210 card
When using an Intel AX210 card, the Bluetooth hci interface failed
to start due to a missing "ibt-0041-0041.sfi" file.

Bluetooth: hci0: Failed to load Intel firmware file intel/ibt-0041-0041.sfi (-2)

A device specific configuration file (DDC) is also required:
Bluetooth: hci0: Found device firmware: intel/ibt-0041-0041.sfi
Bluetooth: hci0: Waiting for firmware download to complete
...
Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0041-0041.ddc
Bluetooth: hci0: Applying Intel DDC parameters completed
Bluetooth: hci0: Firmware timestamp 2023.13 buildtype 1 build 62562

Signed-off-by: Mathew McBride <matt@traverse.com.au>
2023-07-11 21:50:04 +08:00
John Audia
92265caaa7 kernel: modules: fs: adapt for kernel 6.1.36
Acknowledgment to john-tho for the changes to fs.mk to accommodate new paths
introduced in 29429a1f58

Fixes: #11375
Signed-off-by: John Audia <therealgraysky@proton.me>
2023-07-10 22:30:17 +08:00
John Audia
df978f7dd1 kernel: add CONFIG_LOCK_MM_AND_FIND_VMA
6.1.37 introduces a new symbol[1]

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/Kconfig?id=v6.1.37&id2=v6.1.36

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-07-10 22:28:00 +08:00
lean
710fec8fc4 kernel: fix 5.15 outdated patche 2023-07-08 21:10:01 +08:00
lunatickochiya
5a0e9d95e4 generic: 6.1: drop outdated patches 2023-07-08 18:19:16 +08:00
lean
61e557fee9 kernel: bump 5.15 to 5.15.120 2023-07-08 15:58:52 +08:00
lean
56a0d2a24f kernel: bump 6.1 to 6.1.38 2023-07-08 15:56:38 +08:00
coolsnowwolf
bafee3f48c mt76: enable wed wireless acc for filogic target by default 2023-07-07 00:19:58 +08:00
coolsnowwolf
b201c29fa2 Version bumpt to R23.7.7 2023-07-07 00:18:40 +08:00
coolsnowwolf
663be7c70c mediatek: add CETRON CT3003 support 2023-07-05 19:34:20 +08:00
AmadeusGhost
9191c4b139 r8101: update to version 1.038.02 2023-07-04 23:38:10 +08:00
AmadeusGhost
9c0329ad5e rtw88-usb: bump to latest git HEAD
Fixes: #11331
2023-07-04 23:34:05 +08:00
Stalker
8d2d9dd648
add missing ssb and bcma (#11343)
Signed-off-by: xiangfeidexiaohuo <jsjson@163.com>
2023-07-03 17:12:47 +08:00
汐音柠柠
99c73daeae
add python3-setuptools (#11345) 2023-07-03 17:11:01 +08:00
anjue39
642003629f
bcm53xx: 5.4: add missing kconfig (#11341) 2023-07-03 00:54:25 +00:00
anjue39
cf9e26af8e
bcm53xx: add missing kconfig (#11340)
fix crypto/sha1-arm.ko' is missing
2023-07-02 15:26:38 +08:00
coolsnowwolf
a14bb92a80 mediatek: add JCG Q30 (Pro) support 2023-06-30 12:02:12 +08:00
AmadeusGhost
e00aa77d0e rockchip: add support for LYT T68M 2023-06-29 22:01:08 +08:00
AmadeusGhost
fa7f6dd960 rtl8211f: add LED configuration from OF 2023-06-29 21:57:57 +08:00
Jitao Lu
effbf668ad openssl: passing cflags to configure
openssl sets additional cflags in its configuration script. We need to
make it aware of our custom cflags to avoid adding conflicting cflags.

Signed-off-by: Jitao Lu <dianlujitao@gmail.com>
2023-06-28 23:38:20 +08:00
AmadeusGhost
654f7ab462 mediatek: add H3C Magic NX30 Pro support 2023-06-27 23:08:57 +08:00
AmadeusGhost
defd518694 mediatek: add Xiaomi WR30U support 2023-06-27 23:05:18 +08:00
AmadeusGhost
5f59c3dea6 mediatek: add Qihoo 360T7 support 2023-06-27 23:03:09 +08:00
AmadeusGhost
c22e0ea323 generic: fixes 6.1 nf-flow support with fw3
Fixes: #11325
2023-06-26 22:13:26 +08:00
AmadeusGhost
e7bd136138 mediate: filogic: sync upstream dts changes 2023-06-26 22:02:36 +08:00
Christian Marangi
3e35e07760 netfilter: fix typo in nf-socket and nf-tproxy kconfig
Fix a typo where the wrong KCONFIG was used and fix selecting the
correct kernel config option to use these packages.

Fixes: 4f443c885ded ("netfilter: separate packages for kmod-ipt-socket and kmod-ipt-tproxy")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-06-25 20:53:12 +08:00
coolsnowwolf
398eece1d6 generic: sync 6.1 patches from official source
Closed: #11208
2023-06-25 20:38:37 +08:00
sKyissKy
3ef1f5ade3
kernel: add MultiPath TCP kernel config & module (#11298) 2023-06-24 23:10:36 +08:00
Yangyu Chen
981c497ae4 net: phy: realtek: add led-link-select for RTL8221
RTL8221B PHYs will select the different speeds for 3 LEDs to 10M/100M/1G
respectively by default. Some devices like TP-LINK TL-XDR6088/TL-XDR6086
have only one LED connects to the PHY chip LED0. If we didn't change the
default settings, the LED will only blink at 10M speed.

This patch allows configuring LED link select bitmask from DT. And it
has been tested with TP-Link XDR6088 with different DT configurations.

Signed-off-by: Yangyu Chen <cyy@cyyself.name>
2023-06-24 23:00:05 +08:00
Florian Eckert
21364cecb2 base-files: change logging for upgrade on stage2
Remove vn call in favour of v call. This commit serves as preparation
for removing the vn function call.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2023-06-24 22:58:17 +08:00
Daniel Golle
c735c19bf8 mac80211: fix mt7601u firmware path and refresh patches
Import patch fixing the updated firmware path of mt7601u.bin.
Refresh patches while at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-24 22:56:16 +08:00
Daniel Golle
8d33a61407 mediatek: no longer hard-code WAN PHY of Netgear WAX206
The RealTek 2.5G PHY providing the WAN port of the Netgear WAX206 has
previously been hard-coded in the device tree. Now that the PHY can be
probed correctly also via Clause-45 MDIO, use that instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:28:14 +08:00
Daniel Golle
697ea1d8fc generic: net: phy: realtek: detect early version of RTL8221B
Early versions (?) of the RTL8221B PHY cannot be identified in a regular
Clause-45 bus scan as the PHY doesn't report the implemented MMDs
correctly but returns 0 instead.
Implement custom identify function using the PKGID instead of iterating
over the implemented MMDs to work-around this problem.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:27:14 +08:00
Daniel Golle
e0fd382892 kernel: net: phy: realtek: fix NULL pointer dereference
The previous attempt to replace an open coded paged read in the RealTek
Ethernet PHY driver was too naive and resulted in breaking the r8169
PCIe Ethernet driver which also makes use of the RealTek Ethernet PHY
driver.
Fix this by instead of using the (not yet populated) paged operations
rather use rtl821x_write_page and protect the whole paged read operation
using the MDIO bus mutex.

Fixes: 998b973157 ("kernel: net: phy: realtek: improve RealTek 2.5G PHY driver")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:26:18 +08:00
Daniel Golle
664b181256 kernel: net: phy: realtek: improve RealTek 2.5G PHY driver
* use interface mode switching only when operating in C45 mode
   Linux prevents switching the interface mode when using C22 MDIO,
   hence use rate-adapter mode in case the PHY controlled via C22.

 * use phy_read_paged where appropriate

 * use existing generic inline functions to handle 10GbE advertisements
   instead of redundantly defining register macros in realtek.c which
   are not actually vendor-specific.

 * make sure 10GbE advertisement is valid, preventing false-positive
   warning "Downshift occurred from negotiated speed 2.5Gbps to actual
   speed 1Gbps, check cabling!" with some link-partners using 1G mode.

 * Support Link Down Power Saving Mode (ALDPS)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:25:18 +08:00
Daniel Golle
06158f1c7a generic: disable SGMII in-band AN for RealTek 2.5G PHYs
MAC drivers don't use SGMII in-band autonegotiation unless told to do so
in device tree using 'managed = "in-band-status"'. When using MDIO to
access a PHY, in-band-status is unneeded as we have link-status via
MDIO. Switch off SGMII in-band autonegotiation using magic values.

Reported-by: Chen Minqiang <ptpt52@gmail.com>
Reported-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Tested-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:24:18 +08:00
Daniel Golle
b238fdb0b6 generic: use genphy_soft_reset for RealTek 2.5G PHYs
Some vendor bootloaders do weird things with those PHYs which result in
link modes being reported wrongly. Start from a clean sheet by resetting
the PHY.

Reported-by: Yevhen Kolomeiko <jarvis2709@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-23 23:23:20 +08:00
Daniel Golle
bf62addd61 mediatek: mt7981: setup all clocks needed for eMMC
Setup all necessary clocks to get MMC to work on MT7981, similar to
how it is done also on MT7986.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-22 23:26:36 +08:00
Daniel Golle
1edf909182 mediatek: update patch add PWM support for MT7981
Update patch with version submitted upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-22 23:25:01 +08:00
Daniel Golle
911a5f623e mediatek: add support for the GL.iNet GL-MT3000
The MT-3000 is a pocket-sized Wi-Fi 6 router based on MediaTek MT7981.

Specification:
 - SoC: MediaTek MT7981B
 - CPU: 2x 1.3 GHz Cortex-A53
 - Flash: 256 MiB Macronix SPI NAND
 - RAM: 512 MiB Nanya DDR4
 - WLAN: 2.4 GHz, 5 GHz (MediaTek MT7976CN)
 - Ethernet:
    - 1x 10/100/1000 Mbps built-in PHY (LAN)
    - 1x 10/100/1000/2500 Mbps MaxLinear GPY211 PHY (WAN)
 - USB 3.0 port
 - Buttons: 1 button, 1 switch
 - LEDs: 1x light-blue, 1x warm-white
 - Serial console: internal 4-pin header, 115200 8n1
 - PWM controlled fan with tacho
 - Power: 5 VDC, 3 A (USB Type-C)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-21 23:30:02 +08:00
Daniel Golle
4efcefe8de generic: mtk_eth_soc: don't crash if WO firmware is missing
Import patch to prevent crashes in case WO firmware is missing on devices
with only a single frontend (eg. MT7981+MT7976).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-21 23:28:51 +08:00
Daniel Golle
e59909d212 generic: add support for wireless offloading on MT7981
Load appropriate firmware for wireless offloading on MT7981.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-21 23:27:37 +08:00
Daniel Golle
4df739da74 mediatek: sync pinctrl-mt7981 and pinctrl-mt7986 drivers
Now that new pinconf features have been backported sync pinctrl-mt7981
and pinctrl-m7986 with bleeding-edge upstream versions.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-20 23:18:08 +08:00
Daniel Golle
8522798ddf mediatek: backport new pinctrl features
Backport new features for MediaTek pinctrl/pinconf drivers from upstream.
This will serve as the base to improve pinconf bias/pull-up/pull-down on
MT7981 and MT7986, and also prepare for upcoming support for MT7988.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-20 23:16:58 +08:00
Felix Fietkau
a1429324e3 kernel: fix mtk_eth_soc flow accounting for MT7986
This was accidentally dropped when MT7981 support was added

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-06-19 23:15:14 +08:00
Felix Fietkau
17f02fb364 kernel: fix mtk_eth_soc throughput regressions on gigabit PHY ports
Fixes issues on MT7621 and MT7623 switch ports, and PHY ports on all SoC

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-06-19 23:14:37 +08:00
Daniel Golle
4c48c9a80f mediatek: filogic: update kernel config-5.15
Expose thermal-zone as hwmon sensor, remove thermal emulation driver
and add some missing symbols.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-18 22:56:54 +08:00
aakkll
4f0462516a
kernel: bump to 5.4.247, 6.1.34 (#11314)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-06-18 01:07:34 +08:00
Daniel Golle
357222b386 mediatek: broaden filogic target description
The filogic subtarget now also supports MT7981 and will in future
also support MT7988. Reflect that in the target description.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:26:10 +08:00
Daniel Golle
0025044d0a mediatek: add device tree include for the MT7981 SoC
Add mt7981.dtsi so we can start adding MT7981 devices.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:25:33 +08:00
Daniel Golle
60f04d0f6a mediatek: add support for SPI calibration
Newer MediaTek's SoCs need SPI calibration routines for SPI to work
reliably. Import patches for that from MediaTek's SDK.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:24:15 +08:00
Daniel Golle
980c3ada51 mediatek: add PWM support for MT7981 SoC
Add patch to support PWM on the MT7981 SoC.
This patch will also be submitted to upstream Linux soon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:23:20 +08:00
Daniel Golle
d4f04f7995 mediatek: add I2C for MT7981 SoC
Add patch to support I2C on the MT7981 SoC.
This change will also be submitted to upstream Linux soon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:22:12 +08:00
Daniel Golle
8e0a86e6a1 mediatek: simplify MaxLinear GPY PHY driver
The mxl-gpy driver apparently was built in the assumption that SGMII
auto-negotiation is always switched on at the MAC. This may be true for
few rather recent drivers (why?), but certainly isn't for most drivers
unless 'managed = "in-band-status"' is set in device tree. Add patch to
the mediatek target which reduces mxl-gpy to behave more like an
ordinary PHY driver using out-of-band status.

This allows to use these PHYs without rate-adaptation which seems to be
at least partially broken/racy in some revisions of the PHY and/or
internal PHY firmware.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-17 19:21:21 +08:00
Daniel Golle
c75138adae generic: dsa: make use of pcs-mtk-lynxi also for mt7530
The MT7531 switch IC comes with SerDes ports with PCS identical to
what is also used in MediaTek's SoCs. Make use of the shared driver
to ease maintainance and reduce code duplication.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:57:18 +08:00
Daniel Golle
b53177e6c4 generic: backport regmap reg_base and downshift features
Backport new regmap features from Linux 5.18 which are needed to let
mt7530 use pcs-mtk-lynxi.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:56:04 +08:00
Daniel Golle
120e04cd5e generic: mtk_eth_soc: switch to external PCS driver
Backport patch to make use of the new PCS driver in mtk_eth_soc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:55:13 +08:00
Daniel Golle
3903ca066f generic: pcs-mtk-lynxi: add hack to use 2500Base-X without AN
Using 2500Base-T SFP modules e.g. on the BananaPi R3 requires manually
disabling auto-negotiation, e.g. using ethtool. While a proper fix
using SFP quirks is being discussed upstream, bring a work-around to
restore user experience to what it was before the switch to the
dedicated SGMII PCS driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:54:20 +08:00
Daniel Golle
bee8c8a8cf generic: net: pcs: add driver for MediaTek SGMII PCS
Backport dedicated PCS driver for MediaTek LynxI SGMII/SerDes unit.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:53:43 +08:00
Daniel Golle
93e24c37dd generic: mtk_eth_soc: allow setting MDIO clock frequency
Backport patch allowing to set the MDIO bus clock frequency.
By default the MDIO bus clock runs on 2.5 MHz, allow increasing it
up to 25 MHz.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-16 19:52:46 +08:00
Daniel Golle
995f53f723 mediatek: add support for built-in GE PHYs of newer SoCs
MT7981 and the upcoming MT7988 have built-in Gigabit Ethernet PHYs.
While they share some design properties with the PHYs present in
MT753x, they do need calibration data from the SoC's efuse.

Add driver to support them. Upstreaming it is planned, but there are
still some ongoing discussions with MediaTek.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:09:55 +08:00
Daniel Golle
83bdbba5bc generic: backport support for MT7981 Ethernet
Backport support for the MT7981 SoC to mtk_eth_soc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:09:00 +08:00
Daniel Golle
d4339fda71 mediatek: backport pinctrl driver for MT7981 SoC
Backport the pinctrl driver for the MT7981 SoC. The driver has also
been submitted upstream and is part of Linux 6.3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:07:49 +08:00
Daniel Golle
7c648c2ff2 mediatek: backport clk driver for MT7981 SoC
Backport driver for common clocks in MT7981 SoC. The driver has also
been submitted upstream and became part of Linux 6.3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:06:13 +08:00
Daniel Golle
9c394de00d generic: replace mtk_sgmii patches with versions accepted upstream
Replace patches for MediaTek Ethernet driver SGMII/SerDes unit with
their corresponding upstream patches. Not all of the patches in our
tree went upstream as-is, some are slightly different implementations,
and they require the phylink_pcs helpers now made available.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:05:15 +08:00
Daniel Golle
020a90522c generic: backport some phylink helper functions
It isn't feasible to literally backport all upstream phylink_pcs changes
down to Linux 5.15: It's just too many patches, and many downstream
drivers and hacks are likely to break. We are too close to branching off
to risk this, and it's also just too much work.
Instead just add helper functions used by modern PCS drivers while keeping
the original functions instact as well. While this may add a kilobyte or
two of extra kernel size, it has the advantage that we get the best of both
worlds: None of the existing codepaths are touched, but yet we have the
option to backport singular improvements to Ethernet drivers where needed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-15 23:04:22 +08:00
John Audia
86545f1f15 kernel: add CONFIG_DRM_RCAR_USE_LVDS is not set
Added missing symbol.

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-06-14 22:10:58 +08:00
ShireCiel
0606279e9f
X86/64: 6.1: Disable intel ibt to avoid kernel panic (#11311)
If intel ibt enable. It will cause kernel panic
when load "compat.ko" kernel module(a part of cfg80211)

Signed-off-by: Jax Jiang <jax.jiang.007@gmail.com>
2023-06-14 16:15:36 +08:00
Hauke Mehrtens
bcb4ed1466 openssl: bump to 1.1.1u
Major changes between OpenSSL 1.1.1t and OpenSSL 1.1.1u [30 May 2023]

    o Mitigate for very slow `OBJ_obj2txt()` performance with gigantic
      OBJECT IDENTIFIER sub-identities.  (CVE-2023-2650)
    o Fixed documentation of X509_VERIFY_PARAM_add0_policy() (CVE-2023-0466)
    o Fixed handling of invalid certificate policies in leaf certificates
      (CVE-2023-0465)
    o Limited the number of nodes created in a policy tree ([CVE-2023-0464])

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-06-13 23:19:01 +08:00
Zy143L
6f6278dc2b
ramips: add support for NRadio WT6285 (#11304) 2023-06-13 00:10:45 +08:00
Linhui Liu
4b89d5db8b
kernel: bump 5.10 to 5.10.183 (#11301) 2023-06-12 12:08:04 +08:00
Linhui Liu
a8788c3123
kernel: bump 5.15 to 5.15.116 (#11299) 2023-06-12 11:05:43 +08:00
Luiz Angelo Daros de Luca
919d3485d1 kernel: modules: fix mdio-bus-mux description
Simple error during copy/paste

Fixes: 2dbeb607251b ("kernel: add mdio-bus-mux support")
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2023-06-11 23:15:20 +08:00
aakkll
a6053a03f9
kernel: bump to 5.4.246, 6.1.33 (#11296) 2023-06-11 14:38:44 +08:00
sKyissKy
6ad67fdf12 ramips: improve zte e8820s support
Closed: #11292
2023-06-10 15:12:51 +08:00
coolsnowwolf
62d9f8261a README: add RK3588 Release support 2023-06-09 03:22:36 +08:00
coolsnowwolf
b65b15a30e update README.md 2023-06-09 03:08:07 +08:00
Zoltan HERPAI
b8fd566c17 sifiveu: add new target for SiFive U-based boards
RISC-V is a new CPU architecture aimed to be fully free and open. This
target will add support for it, based on 5.15.

Supports running on:
 - HiFive Unleashed - FU540, first generation
 - HiFive Unmatched - FU740, current latest generation, PCIe

SD-card images are generated, where the partitions are required to have
specific type codes. As it is commonplace nowadays, OpenSBI is used as the
first stage, with U-boot following as the proper bootloader.

Specifications:

HiFive Unleashed:
 - CPU: SiFive FU540 quad-core RISC-V (U54, RV64IMAFDC or RV64GC)
 - Memory: 8Gb
 - Ethernet: 1x 10/100/1000
 - Console: via microUSB

HiFive Unmatched:
 - CPU: SiFive FU740 quad-core RISC-V (U74, RV64IMAFDCB or RV64GCB)
 - Memory: 16Gb
 - Ethernet: 1x 10/100/1000
 - USB: 4x USB 3.2
 - PCIe:  - 1x PCIe Gen3 x8
          - 1x M.2 key M (PCIe x4)
          - 1x M.2 Key E (PCIe x1 / USB2.0)
 - Console: via microUSB

Installation:
Standard SD-card installation via dd-ing the generated image to
an SD-card of at least 256Mb.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:53:10 +08:00
Zoltan HERPAI
e5bf447f61 uboot-sifiveu: add bootloader package for SiFive Ux40 boards
Add new package for building bootloader for the SiFive U-series boards. Supported
boards at this stage are the HiFive Unleashed and HiFive Unmatched.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:51:32 +08:00
Zoltan HERPAI
32948caa36 firmware-utils: ptgen: add SiFive-related GUID types
Add patch until it gets accepted in firmware-utils upstream.

The SiFive RISC-V SoCs use two special partition types in the boot process.
As a first step, the ZSBL (zero-stage bootloader) in the CPU looks for a
partition with a GUID of 5B193300-FC78-40CD-8002-E86C45580B47 to load the
first-stage bootloader - which in OpenWrt's case is an SPL image. The FSBL
(SPL) then looks for a partition with a GUID of
2E54B353-1271-4842-806F-E436D6AF6985 to load the SSBL which is usually an
u-boot.

With ptgen already supporting GPT partition creation, add the required GUID
types and name them accordingly to be invoked with the '-T <GPT partition
type>' parameter.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:49:28 +08:00
Zoltan HERPAI
ea24dc735b openssl: add linux-riscv64 into the targets list
Add "linux-riscv64-openwrt" into openssl configurations to enable building
on riscv64.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:47:03 +08:00
Zoltan HERPAI
6b61dd4345 opensbi: add package for RISC-V
OpenSBI is a form of a first-stage bootloader, which initializes
certain parts of an SoC and then passes on control to the second
stage bootloader i.e. an u-boot image.

We're introducing the package with release v1.2, which provides
SBI v0.3 and the SBI SRST extensions which helps to gracefully
reboot/shutdown various HiFive-U SoCs.

Tested on SiFive Unleashed and Unmatched boards.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:45:08 +08:00
Zoltan HERPAI
b52418d1c6 generic: groundwork for RISC-V
Add build infrastructure for RISC-V.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2023-06-08 23:43:19 +08:00
David Yang
c9f287599f build: Allow specifying uImage time
Some U-Boot checks for a specified uImage time and refuses to boot if
mismatched. This patch fixes it by recognizing UIMAGE_TIME parameter.

Signed-off-by: David Yang <mmyangfl@gmail.com>
2023-06-07 21:17:28 +08:00
AmadeusGhost
eff960303d rockchip: sync upstream emmc fixes from k6.4 2023-06-07 21:15:48 +08:00
cnzgray
c120cd1177
sunxi: make use of 'rootfs-part' feature (#11280)
sync with upstream commit.

d05ac928f6
2023-06-06 13:03:43 +08:00
aakkll
ed153bc3e4
kernel: bump to 5.4.245, 6.1.32 (#11279) 2023-06-06 00:38:26 +08:00
Hauke Mehrtens
b8253a8eaf airoha: spi-en7523: Fix compile warning
The set_spi_clock_speed() function is not used, this causes a compile
warning which results in a build error with -WError.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-06-05 23:54:00 +08:00
Ikko Eltociear Ashimine
58145e9906
realtek: fix typo in rtl838x.h (#11273)
Addres -> Address
2023-06-05 11:01:22 +08:00
AmadeusGhost
e56218bff2 ramips: add HT-JSH-0211 support
Replace the boot loader to the breed of K2P.
2023-06-04 23:16:12 +08:00
coolsnowwolf
29cf09f335 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-06-04 16:07:58 +08:00
coolsnowwolf
3e43f9fa10 Version update to R23.6.6 2023-06-04 16:07:50 +08:00
Mathew McBride
028f75ac9a kernel: add mdio-bus-mux support
The MDIO bus multiplexing framework is used by some drivers
such as dwmac-sun8i.

As this is a per-driver requirement, set it to be hidden in the menu.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
2023-06-03 21:53:19 +08:00
Hauke Mehrtens
324be47ffd kernel: Set CONFIG_FRAME_WARN depending on target
This set the CONFIG_FRAME_WARN option depending on some target settings.
It will use the default from the upstream kernel and not the hard coded
value of 1024 now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-06-03 21:50:27 +08:00
ricksuzade-maker
9b3ae943e3
Update netdevices.mk to fix qlogic device support (#11270) 2023-06-02 09:00:49 +08:00
Tony Ambardar
24f841e8b3 kernel: 6.1: add missing CONFIG_TEST_DYNAMIC_DEBUG option
This new option (default N) will generate prompts building with OpenWrt
configs that set CONFIG_KERNEL_DYNAMIC_DEBUG=y. Fix this by adding the
disabled option to the generic config.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-06-01 15:32:23 +08:00
Christian Marangi
df4389a5e1 kernel: fix wrong detection of Linux-Testing-Version in makefile DUMP
When the split was done, the case for testing kernel version wasn't
handled and only the to-be-compiled kernel version details files was
included. This cause the kernel Linux-Testing-Version output from
makefile target DUMP to report only the kernel version without the minor
version (example 6.1 instead of 6.1.29).

This value is expected with the full kernel version and this cause the
dump-target-info.pl script to not correctly identify if a target have a
testing kernel for the kernels calls.

Fix this regression by correctly including the kernel details files if
the target declare support for a testing kernel version.

Fixes: 0765466a42f4 ("kernel: split kernel version to dedicated files")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-06-01 15:29:41 +08:00
aakkll
1858af4e68
kernel: bump to 5.4.244, 6.1.31 (#11265) 2023-05-31 09:03:59 +08:00
Yogi Hermawan
2c0b86e3f2
ramips: fix bolt_bl201 network config (#11263)
To fix error in old devices version
2023-05-30 19:35:53 +08:00
AmadeusGhost
4eb245c4b5 ramips: switch back to kernel 5.4
Fixes: #11222
2023-05-30 15:38:30 +08:00
AmadeusGhost
c993397693 Revert "mt76: drop upstream patches"
Fixes: #11256
2023-05-29 23:50:19 +08:00
Christian 'Ansuel' Marangi
05fce869f4 kernel: modules: make ar8216/8327 modularizable
Make ar8216/8327 swconfig driver modularizable and add
entry to the netdevices.mk kernel modules file.

Fixes: #11250
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
2023-05-29 00:27:19 +08:00
Yogi Hermawan
2f8f4dacf3
ramips: fixes bolt_bl201 support (#11253) 2023-05-28 21:30:48 +08:00
ricksuzade-maker
7cbe26964d
Update netdevices.mk to fix depends (#11252) 2023-05-28 14:12:10 +08:00
Lu jicong
0d1a56f76f generic: refresh 5.15 kernel config
Enable CONFIG_ARM_CRYPTO on these targets.

Fixes: #11247
Signed-off-by: Lu jicong <jiconglu58@gmail.com>
2023-05-28 00:05:02 +08:00
Nick Hainke
8033f13058 nettle: update to 3.9
Changelog:
26cd0222fd/NEWS

Refresh patch:
- 100-portability.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-05-27 23:53:13 +08:00
coolsnowwolf
7aa4a44266 kernel: update linux 6.1 to 6.1.30 2023-05-27 14:38:12 +08:00
John Audia
2524f41b7f x86: disable CONFIG_X86_PLATFORM_DRIVERS_HP
New config option defaulted to N for this bump.

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-05-26 23:39:54 +08:00
AmadeusGhost
b290c66615 kernel/modules: refresh kernel limit judgment
Fixes: #11245
2023-05-26 23:33:56 +08:00
AmadeusGhost
aab8a05684 kernel/modules: sync from official source
This reduces the build bugs and brings more bugs.
2023-05-25 23:29:17 +08:00
coolsnowwolf
eeac3fd81e bcm27xx: sync upstream patches
Fixes: #11243
2023-05-25 22:27:05 +08:00
Christian Marangi
d52eb58fca kernel: modules: adapt for kernel 6.1
Adapt kernel modules to support kernel 6.1.

Fixes: #11210
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-24 22:25:21 +08:00
chaichunyang
a0948d91a1
kernel: refresh 5.15 patches (#11235)
Fixes: cc22efe ("kernel: bump 5.15 to 5.15.112")
Fixes: #11226, #11228
Closed: #11232
2023-05-24 17:15:17 +08:00
ricksuzade-maker
5c93ec63c2
intel-microcode: fix file name (#11233)
Fixes: #11229
2023-05-23 15:06:40 +08:00
zclkkk
3c488e7b98
generic: 5.10: drop upstream patch (#11231)
Fixes: #11227
2023-05-23 10:02:55 +08:00
coolsnowwolf
013f981342 x64: add support to load GuC and HuC firmware for DG1/DG1 Max 2023-05-22 13:16:02 +08:00
coolsnowwolf
7431dcc9ef Revert "shortcut-fe: use tcp_be_liberal (#11188)"
This reverts commit 258cc2154e.
2023-05-22 12:45:34 +08:00
coolsnowwolf
cc22efe713 kernel: bump 5.15 to 5.15.112 2023-05-22 12:05:59 +08:00
coolsnowwolf
39b9f3b633 kernel: bump 5.10 to 5.10.180 2023-05-22 12:04:14 +08:00
coolsnowwolf
016d1d231f kernel: Add iommu_v2 driver for AMD/Intel 2023-05-22 12:01:49 +08:00
coolsnowwolf
79cd677bce Revert "bcm53xx: switch to 5.10"
This reverts commit dc4d37c714.
2023-05-22 11:53:41 +08:00
coolsnowwolf
45a15113ad rockchip: use generate_mac_from_mmc_cid for emmc target 2023-05-22 11:52:50 +08:00
Tiago Gaspar
7e397cd22f kernel: net: add support for kernel tls
Add ktls (Kernel TLS) kmods to enable TLS support
in kernel (allowing TLS offload when the network
card supports it)

Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
(added disabled symbols)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-05-21 23:21:32 +08:00
Christian Lamparter
1c3ef99b52 firmware: intel-microcode: update to 20230512
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-05-21 23:18:18 +08:00
Daniel Golle
fdee542235 generic: fix Macronix SPI-NAND driver
Use scratch buffer for DMA operetations. Passing a pointer to a stack
variable won't work and results in bogus bit flips being reported.

Patch was submitted upstream and is part of Linux 6.3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-20 23:35:14 +08:00
Daniel Golle
b3d39df1af mediatek: bpi-r3: allow up to 3W per SFP module
According to SinoVoip up to 3A @ 3.3V are available for both
SFP modules together. Raise energy limit from 1W (default) to 3W,
however, be aware that using modules consuming more than 1W will
require active cooling!

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-20 23:33:43 +08:00
AmadeusGhost
5b6c90520b mac80211: fixes nl80211 support in kernel 5.4
Run-tested-on: P&W R619AC 128M
Fixes: #11172, #11191
2023-05-19 22:27:54 +08:00
aakkll
d11884d08b
kernel: bump to 5.4.243, 6.1.29 (#11221) 2023-05-19 18:50:11 +08:00
David Bauer
52f16db9e4 iwinfo: update to latest HEAD
c9f5c3f devices: add MediaTek MT7981 WMAC compatible
b3888b2 devices: add compatible strings for Ralink WiSoCs

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-05-18 23:53:21 +08:00
David Bauer
1b65d382b2 mediatek: fix typo
Signed-off-by: David Bauer <mail@david-bauer.net>
2023-05-18 23:50:43 +08:00
Koen Vandeputte
a6f1cc5b59 kernel: add missing symbols in 5.15
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
2023-05-17 13:25:11 +08:00
AmadeusGhost
88c143124a kernel: fixes 5.15/6.1 build error
Sorry for the delay, I was scolded all night
and I could only fix it until now.

Fixes: #11209, #11213, #11214
2023-05-17 01:40:15 +08:00
Daniel Golle
7640b82748 linux-firmware: move firmware file for mt7601u
The firmware file for mt7601u (MediaTek MT7601U Wireless MACs) has
been moved to the mediatek/ folder by commit
 8451c2b1 mt76xx: Move the old Mediatek WiFi firmware to mediatek

Address this by updating the location of the firmware file in our
linux-firmware Makefile generating the mt7601u-firmware package.

All other MediaTek Wi-Fi firmware files are supplied by OpenWrt's
own repository rather than being taken from linux-firmware.

Fixes: d53fe5d9ce ("linux-firmware: update to 20230515")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-16 23:54:37 +08:00
Daniel Golle
d3c7646942 linux-firmware: update to 20230515
Package offloading firmware for MT7981 which has been added to
linux-firmware recently and became available in this release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-16 23:53:02 +08:00
shi JiaY
154993916a mt76: fix filogic target support 2023-05-15 23:28:11 +08:00
Felix Fietkau
50ce7409a3 bridger: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-15 23:25:13 +08:00
Daniel Golle
2cabe4faf4 kernel: backport fix for recently introduced UBI bug
Import commit "ubi: Fix failure attaching when vid_hdr offset equals to
(sub)page size" which did not yet make it to stable upstream Linux trees.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-15 23:22:28 +08:00
AmadeusGhost
1769c5dfa2 rockchip: update mmc aliases for rk3568 boards 2023-05-14 22:58:51 +08:00
AmadeusGhost
9efea60e99 mt76: drop upstream patches 2023-05-14 22:56:12 +08:00
coolsnowwolf
c79f780fca
x86: switch to 6.1 2023-05-13 15:42:45 +08:00
coolsnowwolf
dc4d37c714
bcm53xx: switch to 5.10 2023-05-13 15:38:25 +08:00
coolsnowwolf
572eb1dc9d
kernel: bump 6.1 to 6.1.28 2023-05-13 15:13:38 +08:00
coolsnowwolf
52223ba9d6
rockchip: fix 5.15 pwm pinctrl-names 2023-05-12 14:55:48 +08:00
Felix Fietkau
bcc1a60fe8 kernel: remove unnecessary change from backlog threading fix
Fixes: f1c9bd6f6f41 ("kernel: fix kernel warning and network issue in the backlog threading patch")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-11 23:15:19 +08:00
Felix Fietkau
94eb140716 kernel: fix kernel warning and network issue in the backlog threading patch
Fixes enabling it early during the boot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-11 23:13:29 +08:00
Jan-Niklas Burfeind
d9c821597d sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-05-11 23:10:55 +08:00
Robert Marko
4fc044df14 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This replaces the 160MHz with the upstreamed one, fixes 6GHz only WIPHY
registration, allows SAR usage on WCN6750 and plenty of REO fixes.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-10 22:00:09 +08:00
Kabuli Chana
71a836b056 mwlwifi: update to version 10.3.9.1-20230429
resolve disconnect issue, upstream PR412

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
2023-05-10 21:57:16 +08:00
AmadeusGhost
07ad0eefeb autocore: ethinfo: add dsa display support
Support display any interface name for dsa.
Drop ipq sfp workaround which is not needed.
Add workaround for br* (only this repo needs).
2023-05-09 23:57:26 +08:00
AmadeusGhost
416eefadb9 mtwifi/mt7603e: enable wifi led by default 2023-05-09 23:50:22 +08:00
AmadeusGhost
0f270a2436 ramips: 5.10: add basic dsa offload for mt7621 2023-05-09 00:29:19 +08:00
AmadeusGhost
ef12a97354 ramips: mt7621: add kernel 5.10 support with mtk_hnat 2023-05-08 23:50:09 +08:00
Shiji Yang
0db2337562 ramips: backport mt7621 PCIs initialization delay patch
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Some devices like ZBT WE1326 and ZBT WF3526-P and some Netgear models need
to delay phy port initialization after calling the mt7621_pcie_init_port()
driver function to get into reliable boots for both warm and hard resets.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-05-08 23:38:36 +08:00
Chuanhong Guo
990cd1b3f1 ramips: mt7621: do memory detection on KSEG1
It's reported that current memory detection code occasionally detects
larger memory under some bootloaders.
Current memory detection code tests whether address space wraps around
on KSEG0, which is unreliable because it's cached.

Rewrite memory size detection to perform the same test on KSEG1 instead.
While at it, this patch also does the following two things:
1. use a fixed pattern instead of a random function pointer as the magic
   value.
2. add an additional memory write and a second comparison as part of the
   test to prevent possible smaller memory detection result due to
   leftover values in memory.

Fixes: 6d91ddf517 ("ramips: mt7621: add support for memory detection")
Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2023-05-08 23:35:21 +08:00
zxlhhyccc
258cc2154e
shortcut-fe: use tcp_be_liberal (#11188) 2023-05-07 23:50:45 +08:00
coolsnowwolf
4fbb5202f4 mt76: reseve for kernel 5.4 2023-05-07 02:00:08 +08:00
Daniel Golle
4fc24cc4ad mt76: add support for MT7981
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-06 00:18:36 +08:00
AmadeusGhost
081798a6ff mt76: add back kernel 5.4 support
Also refresh all patches.
2023-05-06 00:16:39 +08:00
coolsnowwolf
22de4c9868 kernel: bump 5.15 to 5.15.110 2023-05-05 13:37:38 +08:00
coolsnowwolf
f953b064c8 generic: 6.1: add MHI SBL callback for ath11k 2023-05-05 13:11:46 +08:00
Robert Marko
6402a2fa03 generic: 5.15: add MHI SBL callback for ath11k
This adds the MHI SBL callback that ath11k will utilize in order to
support multiple PCI cards or AHB+PCI combo which currently does not
work due to QRTR ID-s conflicting.

This is a prerequisite for the mac80211 patch targeting ath11k as it
uses MHI from kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-05 12:38:14 +08:00
Eneas U de Queiroz
4155fca311 openssl: fix variable reference in conffiles
Fix the trivial abscence of $() when assigning engine config files to
the main libopenssl-config package even if the corresponding engines
were not built into the main library.

This is mostly cosmetic, since scripts/ipkg-build tests the file's
presence before it is actually included in the package's conffiles.

Fixes: 30b0351039 "openssl: configure engine packages during install"
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:36:22 +08:00
Eneas U de Queiroz
99a4abd0ff openssl: fix CVE-2023-464 and CVE-2023-465
Apply two patches fixing low-severity vulnerabilities related to
certificate policies validation:

- Excessive Resource Usage Verifying X.509 Policy Constraints
  (CVE-2023-0464)
  Severity: Low
  A security vulnerability has been identified in all supported versions
  of OpenSSL related to the verification of X.509 certificate chains
  that include policy constraints.  Attackers may be able to exploit
  this vulnerability by creating a malicious certificate chain that
  triggers exponential use of computational resources, leading to a
  denial-of-service (DoS) attack on affected systems.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

- Invalid certificate policies in leaf certificates are silently ignored
  (CVE-2023-0465)
  Severity: Low
  Applications that use a non-default option when verifying certificates
  may be vulnerable to an attack from a malicious CA to circumvent
  certain checks.
  Invalid certificate policies in leaf certificates are silently ignored
  by OpenSSL and other certificate policy checks are skipped for that
  certificate.  A malicious CA could use this to deliberately assert
  invalid certificate policies in order to circumvent policy checking on
  the certificate altogether.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

Note: OpenSSL also released a fix for low-severity security advisory
CVE-2023-466.  It is not included here because the fix only changes the
documentation, which is not built nor included in any OpenWrt package.

Due to the low-severity of these issues, there will be not be an
immediate new release of OpenSSL.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:35:32 +08:00
AmadeusGhost
679e2ae168 iwinfo: refresh ralink patch 2023-05-04 17:26:04 +08:00
AmadeusGhost
2b5fdd941c network: sync wireless source code 2023-05-04 17:23:39 +08:00
Felix Fietkau
3167333946 mac80211: update to v6.1.24
Drop patches accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-04 17:20:37 +08:00
AmadeusGhost
26f3634631 rockchip: add h68k/h69k hardware v2 support
Hard-coded PHY id due to hardware problem.
2023-05-01 21:08:28 +08:00
AmadeusGhost
27cc27f2ac rockchip: enable photonicat modem power
Fixes: #10859
2023-05-01 21:05:12 +08:00
coolsnowwolf
7c84256de9 Version update to R23.5.1 2023-04-29 13:18:37 +08:00
aakkll
4f7eb15359
kernel: bump to 5.4.242, 6.1.26 (#11163)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-04-29 13:13:03 +08:00
Felix Fietkau
585c2ca50e kernel: backport fix for a page pool related race condition
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:05:38 +08:00
Felix Fietkau
b204228846 kernel: fix mtk flow offload list corruption issue with l2 flows
The same node was accidentally used for two different lists, causing an
invalid pointer chain.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:03:16 +08:00
Felix Fietkau
28961f404c kernel: add support for threaded network backlog processing
This can improve load balancing by pushing backlog (and RPS) processing
to separate threads, allowing the scheduler to distribute the load.
It can be enabled with: echo 1 > /proc/sys/net/core/backlog_threaded

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:01:34 +08:00
Felix Fietkau
cc968a5b63 kernel: enable conntrack counter updates for iptables xt_FLOWOFFLOAD
Ensures that packet/byte counters in /proc/net/nf_conntrack are updated

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:08:06 +08:00
Felix Fietkau
3a82ee8b05 kernel: fix mediatek ppe flow accounting for mt7622 and older
v1 hardware uses a different enable bit for hardware counters

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:05:25 +08:00
Felix Fietkau
2352fe0f39 kernel: report mediatek ppe flow stats incrementally
Fixes wrong counter values in conntrack stats

Fixes: aa2777145f8d ("kernel: improve mtk ppe flow accounting")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:03:22 +08:00
Felix Fietkau
6fe2a421cc kernel: improve mtk ppe flow accounting
Properly track L2 flows, and ensure that stale data gets cleared

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:01:09 +08:00
Felix Fietkau
c39fd09bc1 mediatek: add kernel code for supporting offloading wlan->eth and wlan->wlan flows
Will be enabled by an upcoming mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:58:23 +08:00
Felix Fietkau
991dd40dbc kernel: update mtk ppe flow accounting patch to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:56:13 +08:00
Felix Fietkau
640d665ce5 kernel: update flow offload fix based on upstream suggestions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:55:06 +08:00
Felix Fietkau
85663da356 kernel: move mediatek flow offload refcount fix and fix a logic error
Move it to pending, since it wasn't actually accepted upstream yet.
Fixes potential issues when doing offload between multiple MACs.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:54:22 +08:00
Felix Fietkau
a213014d18 mediatek: add missing DTS entries for WED on MT7986
Needed to support WLAN offloading

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-25 23:56:21 +08:00
Lorenzo Bianconi
4db1ff2145 mediatek: filogic: move ilm, dlm and cpu_boot in dedicated nodes
This fixes issues with legacy boot loaders that don't process reserved memory
regions outside of system RAM

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-25 23:54:50 +08:00
coolsnowwolf
d86f684586 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-04-24 15:02:41 +08:00
coolsnowwolf
e3e13ed422 target: add EFI support to armvirt 2023-04-24 15:02:30 +08:00
Felix Fietkau
433de917cc mediatek: backport more WED upstream fixes
Fixes hang if the WO firmware can't be loaded

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:05:08 +08:00
Felix Fietkau
55b0ae4d4e kernel: backport upstream mtk_eth_soc fixes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:03:07 +08:00
Felix Fietkau
0807295426 kernel: move accepted mtk_eth_soc patches to generic-backport
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:01:34 +08:00
Felix Fietkau
c9a0d92a3c kernel: fix mtk dsa tag padding
The padding intended to avoid corrupted non-zero padding payload was
accidentally adding too many padding bytes, tripping up some setups.
Fix this by using eth_skb_pad instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-23 23:55:08 +08:00
Felix Fietkau
464d31eaa7 kernel: fix corrupted padding on small packets with mt753x dsa
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-23 23:53:19 +08:00
Andrew Sim
702087ab30 ksmbd: update to latest 3.4.8 release
Changelog: https://github.com/cifsd-team/ksmbd/releases/tag/3.4.8

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2023-04-22 23:54:32 +08:00
billclock
55e6f10375
linux-firmware: add missing files for i915-firmware 2023-04-22 23:32:20 +08:00
John Audia
9d124b9936 kernel: bump 5.15 to 5.15.105
All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3
Run-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-04-21 00:11:35 +08:00
aakkll
0a2b5b6076 kernel: bump to 5.4.241, 6.1.25 2023-04-21 00:09:22 +08:00
Lollipop907
344b7901ab
rockchip: add support for dilusense dlfr100 (#11106)
* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip: add support for dilusense dlfr100

* rockchip: add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* rockchip:add support for dilusense dlfr100

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update rk3399-dlfr100.dts

* Add files via upload
2023-04-20 15:20:52 +08:00
coolsnowwolf
46625ee4ba Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-04-20 15:06:01 +08:00
coolsnowwolf
2fd68feff6 x64: enable x64 CRYPTO_XTS_AES_SYNC support on N5105/N100/N300/AMD Ryzen etc. 2023-04-20 15:05:50 +08:00
littoy
ae5505832e
x86:Add net.ipv4.tcp_collapse_max_bytes option from Cloudflare and CRYPTO_XTS_AES_SYNC (#11128)
* x86: intel 10gen GPU i915 guc patch refresh

* intel-microcode: 3.20230214.1

* x86: add tcp_collapse option support
2023-04-20 15:00:42 +08:00
Hauke Mehrtens
3713f8b5b1 mbedtls: Update to version 2.28.3
This only fixes minor problems.
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.3

The 100-fix-compile.patch patch was merged upstream.
The code style of all files in mbedtls 2.28.3 was changed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-19 23:56:38 +08:00
Glenn Strauss
b06d1b8ec6 mbedtls: x509 crt verify SAN iPAddress
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2023-04-19 23:54:21 +08:00
Nick Hainke
39ee2e1f98 libcap: update to 2.68
Release Notes:
https://sites.google.com/site/fullycapable/release-notes-for-libcap#h.vdh3d47czmle

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-04-18 23:59:16 +08:00
Husky
4bba40608b
uboot-rockchip: revert use of standard boot (#11121) 2023-04-17 23:38:51 +08:00
AmadeusGhost
4647696044 uboot-rockchip: refresh rk3399 defconfig
Fixes: #11118
2023-04-16 23:53:45 +08:00
Husky
64a79c9734
uboot-rockchip: fix python link path (#11117)
Fix: #11101
2023-04-16 10:28:44 +08:00
Robert Marko
0385722fc8 kernel: filter out pahole version
Pahole version is being autodetected during runtime since kernel 5.15.96
via in-kernel scripts/pahole-version.sh so add CONFIG_PAHOLE_VERSION to
kernel filter in order to prevent it from being added to target configs.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-04-15 23:50:12 +08:00
Joe Mullally
65699f26ff kernel: add support for XMC XM25QH64C
The XMC XM25QH64C is a 8MB SPI NOR chip. The patch is verified on TL-WPA8631P v3.
Datasheet available at https://www.xmcwh.com/uploads/442/XM25QH64C.pdf

Signed-off-by: Joe Mullally <jwmullally@gmail.com>
2023-04-15 23:48:46 +08:00
Daniel Golle
4b09a33498 generic: move accepted patch to backport-5.15
The patch adding SFP quirk for MXPD 483II was accepted upstream and
will be part of Linux v6.3:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=ad651d68cee75e9ac20002254c4e5d09ee67a84b

Move the patch from pending-5.15 to backport-5.15.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-04-15 23:45:53 +08:00
AmadeusGhost
61b7a5aa75 Revert "rockchip: rk3568 overclock to 2.2GHz"
This reverts commit c28b7a5625.
2023-04-14 23:54:06 +08:00
AmadeusGhost
36a2481b9a uboot-rockchip: revert to vendor atf
Since rockchip is so closed, we have no choice.
2023-04-14 23:45:12 +08:00
aakkll
8a9cd422ff
kernel: bump 6.1 to 6.1.24 (#11110) 2023-04-14 15:10:41 +08:00
coolsnowwolf
8f42e0d971 firewall: fix firewall reload lock 2023-04-13 17:33:33 +08:00
coolsnowwolf
a4426eb5a4 firewall: fix TCP MSS settings issue 2023-04-12 16:44:19 +08:00
AmadeusGhost
c28b7a5625 rockchip: rk3568 overclock to 2.2GHz
No sense, use at your own risk.
2023-04-12 00:29:13 +08:00
AmadeusGhost
bb084c1d09 uboot-rockchip: bump to v2023.04
For the python problem, just make clean.
Skip the gpio patch due to it may broken boot.
2023-04-12 00:15:03 +08:00
AmadeusGhost
88989f2722 arm-trusted-firmware-rockchip: update to release 2.8
Also added basic rk3568 support from rockchip.
2023-04-12 00:09:22 +08:00
AmadeusGhost
e9553e8101 README: update build dependence 2023-04-11 23:58:53 +08:00
AmadeusGhost
49c46be877 Revert "arm-trusted-firmware-rockchip-vendor: rk3568 atf revert to v1.28"
This reverts commit 1cde7fcb20.
2023-04-11 23:56:14 +08:00
coolsnowwolf
f57ce2a85e rockchip: add USB3.0 phy support for RK3328 2023-04-11 16:36:24 +08:00
AmadeusGhost
e4901141b5 mediatek: add support for TP-Link TL-XDR4288
The TP-Link TL-XDR4288 has the same hardware as the
TP-Link TL-XDR6088 except for the wireless part.

Note: WiFi: MT7976DAN (2.4G 2T2R, 5G 3T3R)

Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-04-09 23:18:51 +08:00
Daniel Golle
4552e6a16c mediatek: introduce KERNEL_LOADADDR to Device/Default template
We need to reset KERNEL_LOADADDR if we use it on a per-device base.
Otherwise the previous value will be kept in case a device doesn't
define KERNEL_LOADADDR and relies on the default.

Move initializing KERNEL_LOADADDR to target/linux/mediatek/image/Makefile,
similar to how it's done also on the ramips target.

This fixes image size related breakage on devices which rely on the
default value of KERNEL_LOADADDR.

While at it use 0x48000000 which is more common than the previous default
0x44000000 for the filogic subtarget.

Fixed: e7c399bee6 ("filogic: add support for ASUS TUF-AX4200")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-04-09 23:16:05 +08:00
David Bauer
98539e91b2 mediatek: make TUF-AX4200 KERNEL simply expanded
The KERNEL variable was recursively expanded, breaking other devices.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-04-09 23:13:06 +08:00
XiaoBinin
0d498429b5
rockchip: fix wan port for nanopi r2c (#11091)
Fixes: #11074
2023-04-08 21:28:32 +08:00
coolsnowwolf
04147dcaf5 linux: fir kernel 6.1 upsteam patch 2023-04-07 19:45:34 +08:00
coolsnowwolf
4ae5efe494 kernel: bump 6.1 to 6.1.23 2023-04-07 14:45:50 +08:00
coolsnowwolf
c41a641c37 rockchip: fix FriendlyArm R5C wan/lan LEDs 2023-04-07 00:23:20 +08:00
coolsnowwolf
5b862342c7 kernel: bump 5.4 to 5.4.240 2023-04-06 23:22:43 +08:00
coolsnowwolf
7b25a55620 Revert "ramips: switch to kernel 5.10"
This reverts commit 977bf86ccd.
2023-04-04 22:53:21 +08:00
Fluxxy
5f8538b5cc
ramips: add support for Bolt BL201 board (#11078)
CPU: MT7620A
RAM: DDR2 64MB
ROM: SPI 16MB
WIFI 5G: MT7612E
2023-04-04 11:38:40 +08:00
zfdx
12e94bfc9c
ramips: kernel 5.10: add mt7620-nand driver(#11076) 2023-04-04 11:35:34 +08:00
Liangbin Lian
e69815120a
package/mt7615d: fix dbdc channel no apply (#11070) 2023-04-03 03:15:01 +08:00
Lollipop907
4cbbcf90ba
rockchip:add sharevdi H3399PC support (#11053)
* add sharevdi h3399pc

* Update Makefile

* Add files via upload

* Add files via upload

* rockchip:add sharevdi h3399pc

* rockchip:add sharevdi h3399pc

* rockchip:add sharevdi h3399pc

* rockchip:add sharevdi h3399pc

* Update rk3399-h3399pc.dts

* Update rk3399-h3399pc.dts

* Fix indentation issues

* merge some patches

* merge some patches

* merge some patches

* merge some patches

* merge some patches

* merge some patches

* merge some patches

* merge some patches

* Update rk3399-h3399pc.dts
2023-04-03 03:13:37 +08:00
aiamadeus
e036c0650f
Merge pull request #11064 from jjm2473/k2p_apcli 2023-04-02 18:30:49 +08:00
jjm2473
674632f6fb package/mt7615d: support apcli bridge eth port 2023-04-02 15:24:04 +08:00
jjm2473
4f19c02b85 package/mt7615d: support client mode on dbdc driver 2023-04-02 10:31:47 +08:00
1054009064
d2a4fb1c89
package/qca: update the download URL (#11055)
Fixes: #11048
2023-04-01 22:06:55 +08:00
zfdx
bad53b1207
ramips: fix HiWIFI R33 WIFI Weak signal (#11051) 2023-04-01 15:17:55 +08:00
coolsnowwolf
72efda15b7 Version update to R23.4.1 2023-03-31 13:49:17 +08:00
coolsnowwolf
854ee73cb6 kernel: bump to 6.1.22 2023-03-31 13:34:43 +08:00
coolsnowwolf
aaa79b3864 autocore: fix 12th/13th P cores count with HT 2023-03-31 12:54:30 +08:00
coolsnowwolf
39461eaf77 linux-firmware: add Intel 12th/13th and N95/N100/N300 video drm GuC and HuC support 2023-03-31 12:44:10 +08:00
coolsnowwolf
7088765b10 x86: add ChangWang AD12 (12th Hydrid) model support 2023-03-30 23:28:24 +08:00
coolsnowwolf
8d5e5226c4 autocore: add Intel 12/13th Hydrid P cores and E cores 2023-03-30 23:13:16 +08:00
coolsnowwolf
0747f72a7f base-files: force remount ext4 rootfs when power-off by accident last time 2023-03-29 18:32:18 +08:00
coolsnowwolf
5969d62e82 rockchip: add kernel 6.1 support for R5C 2023-03-29 18:25:11 +08:00
coolsnowwolf
e0e0e9c9cb rockchip: add FriendlyElec NanoPi R5C support 2023-03-29 18:13:02 +08:00
coolsnowwolf
977bf86ccd ramips: switch to kernel 5.10 2023-03-29 16:53:25 +08:00
Hauke Mehrtens
11a39777bc kernel: kmod-net-rtl8192su: Remove package
The R8712U driver depends on cfg80211. cfg80211 is provided by mac80211
backports, we can not build any in kernel drivers which depend on
cfg80211 which is an out of tree module in OpenWrt.

The cfg80211 dependency was added with kernel 5.9.

We could add rtl8192su to backports and build it from there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-28 23:01:34 +08:00
Felix Fietkau
6b2559f0aa linux-firmware: add mt7986 offload firmware
This is needed for WED support on MT7986.
Enable it by default for the filogic subtarget.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-03-28 23:00:04 +08:00
Quintin Hill
f2e888d0fc linux-firmware: add rtl8761 bluetooth firmware
Realtek bluetooth devices need firmware.  Add packages for some of
these.

Tested on a WNDR3700v4 with rtl8761bu firmware.

Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
2023-03-28 22:58:52 +08:00
Christian Marangi
9b338b090e generic: 5.15: refresh kernel patches
Refresh kernel patches for generic kernel 5.15 due to new backport
version of MGLRU patchset.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-03-27 23:14:03 +08:00
Kazuki H
3020cc8e7d kernel: Update MGLRU patchset
The current patches are old, update them from mainline.
Backports taken from https://github.com/yuzhaogoogle/linux/commits/mglru-5.15

Tested-by: Kazuki H <kazukih0205@gmail.com> #mt7622/Linksys E8450 UBI
Signed-off-by: Kazuki H <kazukih0205@gmail.com>
2023-03-27 23:12:43 +08:00
David Bauer
57ec2f4f11 filogic: add support for ASUS TUF-AX4200
Hardware
--------
SOC:   MediaTek MT7986
RAM:   512MB DDR3
FLASH: 256MB SPI-NAND (Winbond W25N02KV)
WIFI:  Mediatek MT7986 DBDC 802.11ax 2.4/5 GHz
ETH:   MediaTek MT7531 Switch
       MaxLinear GPY211C 2.5 N-Base-T PHY
UART:  3V3 115200 8N1 (Pinout silkscreened / Do not ocnnect VCC)

Installation
------------

1. Download the OpenWrt initramfs image. Copy the image to a TFTP server
   reachable at 192.168.1.66/24. Rename the image to tufax4200.bin.

2. Connect the TFTP server to the AX4200. Conect to the serial console,
   interrupt the autoboot process by pressing '4' when prompted.

3. Download & Boot the OpenWrt initramfs image.

   $ setenv ipaddr 192.168.1.1
   $ setenv serverip 192.168.1.66
   $ tftpboot 0x46000000 tufax4200.bin
   $ bootm 0x46000000

4. Wait for OpenWrt to boot. Transfer the sysupgrade image to the device
   using scp and install using sysupgrade.

   $ sysupgrade -n <path-to-sysupgrade.bin>

Missing features
----------------

 - The LAN port LEDs are driven by the switch but OpenWrt does not
   correctly configure the output.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-03-26 22:18:00 +08:00
David Bauer
edaba11e4b generic: mxl-gpy: allow configuring LED registers
Add a patch to allow modification of the PHY LED configuration. This is
required for boards, where the reset configuration of LED functions is
incompatibe with the usage of the device LEDs.

This is the case for the ASUS TUF-AX4200 Wireless router. It requires
modification of the LED configuration because as the WAN LED on the
front of the device is driven by the PHY. Without patching, it would
only illuminate in case the Link speed is 100 Mbit/s.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-03-26 22:14:05 +08:00
David Bauer
2dff7b910a mediatek: enable bootargs-override for filogic subtarget
The ASUS TUF-AX4200 bootloader adds invalid parameters for the rootfs.
Without overwriting the cmdline, the kernel crashes when trying to
attach the rootfs, as OpenWrt uses a different partition than the vendor
OS.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-03-26 22:12:10 +08:00
David Bauer
fb79a1059d generic: backport Winbond W25N02KV SPI-NAND support
This flash-chip is used on the Asus TUF-AX4200 and TUF-AX6000 routers.

As the filogic target only uses kernel 5.15, skip the 5.10 backport.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-03-26 22:11:35 +08:00
Kyosuke Nekoyashiki
85fc52c36e mac80211: fixes ath10k sdio support 2023-03-25 23:09:00 +08:00
aiamadeus
edcc283381 r8169: add LED configuration from OF 2023-03-25 23:05:16 +08:00
aiamadeus
ae12d2f77b rockchip: refresh kernel 5.15 config
Also fixes: #11019
2023-03-24 22:28:07 +08:00
aiamadeus
45898e59c5 rockchip: add support for HINLINK OPC-H69K 2023-03-24 22:25:08 +08:00
coolsnowwolf
abc7a549ef modules: drop bluetooth btbcm.ko as upstream 2023-03-23 20:02:03 +08:00
lovehackintosh
f4acd500a8
kernel: bump to 5.4.238, 5.10.176, 5.15.104, 6.1.21 (#11026)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-03-23 07:36:05 +00:00
AmadeusGhost
f9f0739a2b rockchip: move common used parts to dtsi for m68s 2023-03-22 23:08:19 +08:00
littoy
e140f67443
add missing glk_guc_70.1.1.bin for intel 10th gpu (#11021) 2023-03-22 20:46:49 +08:00
mleaf
229ba8e4a3
rockchip: add support for EZPRO Mrkaio M68S PLUS (#11020)
Specifications:

  CPU: RK3568B2 up to 2.0GHz
  NPU: 1TOPS
  RAM: 4GB
  Storage: 32G EMMC
  Ethernet: 2x 2.5G ports

Signed-off-by: mleaf <mleaf90@gmail.com>
2023-03-21 14:20:33 +00:00
coolsnowwolf
756cf526a6 bluetooth: fix Broadcom module 2023-03-21 15:26:12 +08:00
aiamadeus
25d3a71cbf r8152: drop local patches 2023-03-20 20:30:45 +08:00
aiamadeus
d72088314d linux-firmware: fixes broken packages 2023-03-20 20:28:13 +08:00
lovehackintosh
89e25b5a13
kernel: bump 5.15 to 5.15.103 (#11017)
Fixes sb commit: 138af4d ("kernel: refresh patch")
2023-03-19 11:31:49 +08:00
lovehackintosh
a76ac2ef41
kernel: bump to 5.4.237, 5.10.175 (#11016)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-03-18 18:08:42 +08:00
aakkll
4bb2f2f4d3
kernel: bump 6.1 to 6.1.20 (#11013) 2023-03-17 10:09:00 +00:00
Albert Xu
d6511c3f65
linux-firmware: fix ax201 firmware version (#11010)
* Adapt:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=494389cbc3b3f080bbe4ee921f1b08eae3b6fdbf
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=3435843535f747e5d68c7b084d234254dcd74f55
2023-03-17 08:27:42 +00:00
coolsnowwolf
57040c4ef2 wwan: add QUECTEL RM500U support 2023-03-16 20:50:05 +08:00
coolsnowwolf
8d64c3310c linux-firmware: add QCA9377 SDIO firmware and board data 2023-03-16 20:40:18 +08:00
骷髅头
138af4d3cf
kernel:refresh patch (#11005)
* kernel: bump 5.15 to 5.15.102

* kernel:refresh patch
2023-03-16 20:33:33 +08:00
骷髅头
53134b2571
kernel: bump 5.15 to 5.15.102 (#11003) 2023-03-16 16:32:42 +08:00
Hauke Mehrtens
5b746b27b3 kernel: kmod-wwan: Add package
This adds the kmod-wwan package. This provides the generic wwan driver
core which is needed for some existing packages.

Currently the drivers/net/wwan/wwan.ko driver is compiled into the
kernel when one of the wwan module is activated, better build it as a
kernel module.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-15 20:00:10 +08:00
Koen Vandeputte
7fc404cec0 kernel: fix missing mhi control devices
Both of these packages depend on CONFIG_WWAN
in the kernel.

Also fix the missing "wwan" subfolder in the path.

This fixes the missing devices in /dev after booting an MHI capable modem.

Fixes: 2519190fec ("kernel: package mhi wwan ctrl driver")
Fixes: 6af46796fa ("kernel: package mhi mbim driver")

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2023-03-15 19:59:21 +08:00
Koen Vandeputte
910a17aca0 kernel: package mhi mbim driver
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2023-03-15 19:59:07 +08:00
Koen Vandeputte
33829fec7e kernel: package mhi wwan ctrl driver
MHI WWAN CTRL allows QCOM-based PCIe modems to expose different modem
control protocols/ports to userspace, including AT, MBIM, QMI, DIAG
and FIREHOSE. These protocols can be accessed directly from userspace
(e.g. AT commands) or via libraries/tools (e.g. libmbim, libqmi, libqcdm)

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2023-03-15 19:58:50 +08:00
Koen Vandeputte
5d3e5c3adb kernel: package mhi network driver
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2023-03-15 19:58:27 +08:00
Hauke Mehrtens
df9d2c9c30 kernel: kmod-phy-ax88796b: Add new PHY
This adds the AX88796B PHY which is needed by the kmod-usb-net-asix
driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-15 19:56:03 +08:00
Hauke Mehrtens
bd50b61c46 kernel: kmod-usb-dwc2-pci: Add new package
Add dwc2_pci kernel module into own kernel package.
The dwc2_pci.ko kernel module was always build when kmod-usb-dwc2
was selected, but it was not packaged.

Add the missing kmod-usb-phy-nop dependency to the kmod-usb-dwc2-pci
package too. The CONFIG_USB_DWC2_PLATFORM option is already gone for
some time.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-15 19:55:48 +08:00
Josef Schlehofer
a71542fc60 kernel: add kmod-usb-net-lan78xx
Add kernel module for Microchip LAN78XX based USB 2 & USB 3
10/100/1000 Ethernet adapters. [1]

This kernel module is required for the Seeed Studio's Mini Router
based on RPI CM4 [2].

[1] <https://cateee.net/lkddb/web-lkddb/USB_LAN78XX.html>
[2] <https://www.seeedstudio.com/Dual-GbE-Carrier-Board-with-4GB-RAM-32GB-eMMC-RPi-CM4-Case-p-5029.html>

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(added kmod-phy-microchip and kmod-fixed-phy dependencies,
rpi3 needs lan78xx but has it built-in)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-03-14 21:25:19 +08:00
Christian Lamparter
2602bc69fe kernel: provide kmod-fixed-phy as separate kmod
Almost all targets have the fixed-phy feature built into the kernel.
One big exception is x86. This caused a problem with the upcoming
LAN78xx usb driver. Hence this patch breaks out the fixed-phy from
of_mdio (which didn't include the .ko) and puts into a separate
module.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-03-14 21:24:01 +08:00
Christian Lamparter
80ac24e6a8 kernel: add kmod-phy-microchip
phy drivers for Microchip's LAN88xx PHYs.
This is needed for the "LAN7801" variant
of the upstream lan78xx usb ethernet driver.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-03-14 21:23:35 +08:00
Miles Poupart
bbd9ecfd95
kernel: bump 6.1 to 6.1.19 (#10995) 2023-03-14 11:41:35 +08:00
Malash
a73aec8f8d
linux-firmware: update to 20230310 (#10993) 2023-03-13 11:05:29 +00:00
Beginner
8443bb1db2 wwan/driver: code alignment 2023-03-13 12:16:02 +08:00
younger
dd7c89aa77
base-files: fixes x86 sysupgrade (#10992)
Fixes: #10986
2023-03-13 00:10:47 +08:00
aiamadeus
4d64db761e rockchip: replace yt8531 patches with upstream 2023-03-12 18:40:31 +08:00
aiamadeus
985fa051b0 kernel: rtl8367b: remove wrong parameter
This is just a workaround to light up the Ethernet port led.
Fixes: 0c40df8 ("ramips: MT7620 add Support HiWiFi R33")
2023-03-12 18:36:12 +08:00
aakkll
1e00936dbf
kernel: bump 6.1 to 6.1.18 (#10987)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-03-12 00:28:23 +08:00
qq57240
8d608bb816
ddns-scripts_dnspod: login with token (#10985) 2023-03-11 09:30:23 +00:00
aakkll
0f03d8c619
kernel: bump 6.1 to 6.1.16 (#10983)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-03-11 11:26:29 +08:00
Tim Harvey
03d0964627 kernel: modules: package Microchip LAN743x PCIe gigE driver
Package the Microchip LAN743x PCIe gigE driver

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2023-03-10 23:19:21 +08:00
Tim Harvey
ea31cc40cd kernel: can: fix MCP251x CAN controller module autoload
Fix autoload module name for can-mcp251x kmod.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2023-03-10 23:18:08 +08:00
Mehdi Ahmadi
831633b517 kernel: add Aquantia AQtion Atlantic 10Gbps Ethernet
Driver support for Aquantia AQtion Atlantic 10Gbps Ethernet NIC
with the AQC107, AQC108 and others chipsets found on:

 - TP-Link: TX401
 - Asus: XG-C100C, ROG Areion 10G NIC
 - & more ...

Signed-off-by: Mehdi Ahmadi <aphorise@gmail.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
[ fix wrong commit author as requested by author itself ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-03-10 23:17:21 +08:00
Robert Marko
e643c1b724 kernel: modules: package Aquantia PHY driver
Package the Aquantia AQR PHY driver as kmod.

This enables using the Aquantia driver with hwmon support on targets where
hwmon is not compiled-in.

Currently, in case when AQR driver is compiled-in but hwmon core is not
hwmon code in AQR driver will not get compiled because of macro
IS_REACHABLE(CONFIG_HWMON) evaluating to false.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-03-09 22:21:25 +08:00
Hauke Mehrtens
fe14f40413 kernel: kmod-phy-smsc: Add new PHY
This adds the SMSC PHY which is needed by the kmod-usb-net-smsc95xx
driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-03-09 22:20:01 +08:00
Rosen Penev
6cb1d7f929 tools/zstd: update to 1.5.4
Mostly performance improvements, as usual.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-09 22:12:19 +08:00
Rosen Penev
411c3c14e7 tools/zstd: build libraries as static
Enables to get rid of rpath hack for all users.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-09 22:11:25 +08:00
Nick Hainke
5bfe3bd9fe iproute2: update to 6.2
Release Notes:
https://lwn.net/Articles/923952/

Refresh patches:
- 110-darwin_fixes.patch
- 115-add-config-xtlibdir.patch
- 140-allow_pfifo_fast.patch
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 155-keep_tirpc_optional.patch
- 170-ip_tiny.patch
- 175-reduce-dynamic-syms.patch
- 180-drop_FAILED_POLICY.patch
- 190-fix-nls-rpath-link.patch
- 195-build_variant_ip_tc.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Remove upstreamed:
- 320-configure-Remove-include-sys-stat.h.patch

While working on it remove AUTORELEASE.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-03-08 21:56:24 +08:00
Nick Hainke
e053d02760 libcap: update to 2.67
Release notes:
https://sites.google.com/site/fullycapable/release-notes-for-libcap#h.o8papfkfh1x9

While working on it, remove $(AUTORELEASE).

Tested-by: Linhui Liu liulinhui36@gmail.com # Xiaomi AX3600
Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-03-08 21:54:12 +08:00
nftbty
c135796fe7
ksmbd: fix build error (#10979) 2023-03-08 10:06:48 +00:00
Rosen Penev
17ef1aa91c ksmbd: update to 3.4.7
Remove upstreamed patches.

Switch to normal tarballs. Codeload recently had a reproducibility issue.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-03-07 22:03:33 +08:00
Tim Harvey
8272d83fcf kernel: fix hwmon-gsc driver
Fix hwmon-gsc driver by replacing out-of-tree hwmon-gsc driver with in-tree
driver that was merged in Linux v5.8:
 - remove the old out-of-tree module
 - add configuration for the in-tree modules

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2023-03-07 22:01:36 +08:00
Tim Harvey
a1738753c9 kernel: add kmod-hwmon-max6642 support
Add package for Maxim MAX6642 i2c based temperature sensor.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2023-03-07 21:57:03 +08:00
Nick Hainke
8832a0b868 kernel: move CONFIG_PAGE_POOL to generic
Move "# CONFIG_PAGE_POOL is not set" to generic.

Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-03-07 21:56:21 +08:00
AmadeusGhost
1ac276866a bluetooth: add more platform support
Fixes: #10775
2023-03-06 23:28:02 +08:00
AmadeusGhost
7f1a60f322 rtw88: add rtl8821ce support
This won't work due to firmware limitations.
2023-03-06 23:20:10 +08:00
AmadeusGhost
bbdbb4e8a8 ramips/mediatek: fixes image format 2023-03-06 23:18:04 +08:00
aiamadeus
82690d6c5a rockchip: sync dts changes from upstream 2023-03-05 22:03:37 +08:00
aiamadeus
63e82f7fb2 bpf-headers: fix package category 2023-03-05 21:50:47 +08:00
coolsnowwolf
f345d0c9a1 Version update to R23.3.3 2023-03-04 10:39:24 +08:00
coolsnowwolf
9378091f42 x86: disable Energy-Efficient Ethernet (EEE) for Intel I225/I226 network dropout issues 2023-03-04 10:38:21 +08:00
coolsnowwolf
18269647e5 kernel: bump 5.15 to 5.15.98 2023-03-04 10:28:39 +08:00
aakkll
84f10c38ce
kernel: bump to 5.4.234, 5.15.97, 6.1.15 (#10959)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-03-04 10:07:21 +08:00
aakkll
d97f82d381
kernel: bump 5.15 to 5.15.96 (#10957) 2023-03-03 11:01:43 +00:00
aakkll
be949a6fed
kernel: bump 5.4 to 5.4.233 (#10955) 2023-03-03 01:55:17 +00:00
zxlhhyccc
c82dd3df02
ipq807x: fix xtr10890 calibration variant (#10954) 2023-03-03 01:54:41 +00:00
coolsnowwolf
4b4ec144ec ramips: reorder Newifi D1/D2 2023-03-02 19:54:08 +08:00
coolsnowwolf
f1edc86983 ramips: oraybox x3a: switch to new hnat driver 2023-03-02 16:15:48 +08:00
coolsnowwolf
4e53878138 wireless-tools: increase max priv ioctl 2023-03-02 15:19:27 +08:00
coolsnowwolf
ac34ab946b ramips: OrayBox X3A switch to mt7615d_dbdc wireless 2023-03-02 13:55:01 +08:00
coolsnowwolf
d5f64cca07 ipq807x: fix Zyxel Armor G5 (NBG7815) 5.15 kernel 2023-03-02 12:57:08 +08:00
Lollipop907
13c63d62db
Add GSM module support for MPC1903 (#10944)
* Update 02_network

* Add GSM Module Support

* fix build fail
2023-03-01 13:28:58 +08:00
coolsnowwolf
b631da75a0 x86: add Intel Ethernet Network Adapter E810 (100GbE) support 2023-03-01 13:22:31 +08:00
coolsnowwolf
41364f5268 ipq807x: Add Zyxel Armor G5 (NBG7815) support 2023-03-01 12:52:55 +08:00
zfdx
977be810c9
generic/5.15: fix swconfig_leds.c build (#10938)
Fixes: ebfa1b9 ("generic: fix swconfig_leds.c in 5.18")
2023-02-28 02:20:55 +00:00
Beginner
78b0142267 luci-proto-3x: move to luci feeds 2023-02-28 10:18:16 +08:00
coolsnowwolf
93f55690ed Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-02-28 00:09:46 +08:00
coolsnowwolf
012f1419de WWAN: add Fibocom linux usb QMI WWAN driver and dial app 2023-02-28 00:09:36 +08:00
qwerttvv
5cf53c1352
fix CI issues (#10937)
dpkg: error processing package grub-efi-amd64-signed (--configure)

https://github.com/coolsnowwolf/lede/actions/runs/4276705033/jobs/7444992777#step:2:1554
2023-02-27 23:35:26 +08:00
1054009064
15d1af2d95
kernel: backport 6.2 patch to fix kernel WARNING issues (#10936) 2023-02-27 21:37:53 +08:00
coolsnowwolf
21fa87f194 rockchip: add Rongpin King3399 wireless AP mode support 2023-02-27 18:02:01 +08:00
coolsnowwolf
971d690caa linux-firmware: add Rongpin King3399 ap6356s firmware 2023-02-27 17:51:24 +08:00
coolsnowwolf
745f6ec773 linux-firmware: add RealTek RTW89 firmware 2023-02-27 15:25:06 +08:00
coolsnowwolf
a2c61871bc iwlwifi: fix build with kernel 6.1 2023-02-26 16:47:48 +08:00
coolsnowwolf
21e254e7da kernel: bump 6.1 to 6.1.14 2023-02-26 16:31:11 +08:00
coolsnowwolf
79aed7f287 quectel_cm_5G: fix comple path error 2023-02-26 16:02:50 +08:00
zfdx
efb9242261
mtwifi/mt7612e: disable set/get_fs by default (#10930) 2023-02-24 11:05:51 +00:00
aakkll
53b83ba81a
kernel: bump to 5.4.232, 6.1.13 (#10922) 2023-02-23 03:02:26 +00:00
Yuan Tao
ccb04d670d base-files: sysfixtime: Fix time on the fake RTC
On some devices the chip has RTC but no battery save time.
This leads back to getting the wrong time
and skipping the check of the last file modification date.

This commit ensures that the file time is checked even
if the RTC exists.
which would ordinarily return an approbiate
system time used for e.g. certificate generation.

Tested-on: NanoPi R2S

Signed-off-by: Yuan Tao <ty@wevs.org>
2023-02-22 23:35:16 +08:00
zfdx123
d519e5fd0d Revert "ramips: ethernet: fix to interrupt handling"
Fixes 7620/7621 transmit timed out issue.
Close: #10920
2023-02-22 23:33:36 +08:00
Marcel Ziswiler
545c2478aa mediatek: add support for Netgear WAX206
Specifications:
* SoC: MediaTek MT7622BV
* RAM: DDR3 512 MiB (Nanya NT5CC256M16ER-EK)
* Flash: SPI-NAND 256 MiB (Toshiba TC58CVG1S3HRAIJ)
* Wi-Fi 2.4/5 GHz 4T4R:
  * 2.4 GHz: MediaTek MT7622BV
  * 5 GHz: MediaTek MT7915AN/MT7975AN
* Ethernet: 4x 10/100/1000 Mbps LAN,
            1x 10/100/1000/2500 Mbps WAN (Realtek RTL8221B PHY)
* Switch: MediaTek MT7531AE
* LEDs/Keys: 8/1 (Power, Internet, LAN1, LAN2, LAN3, LAN4,
             Wifin and Wifia dual-colour LEDs + Reset pin)
* UART: Marked J19 on board VCC GND TX RX, beginning from "1". 3.3v,
        115200n8
* Power: 12 VDC, 2.5 A

Installation:
* Flash the factory image through the stock web interface, or TFTP to
  the bootloader. NMRP can be used to TFTP without opening the case.
* U-Boot allows booting an initramfs image via TFTP as follows:
  setenv ipaddr 192.168.1.1
  setenv serverip 192.168.1.100
  tftpboot openwrt-mediatek-mt7622-netgear_wax206-initramfs-recovery.itb
  bootm

Known Limitations:
* The 2.5G WAN port labeled 'wan' only works for speeds up to 1G at the
  moment. If connected to a multi-gig port the speed has to be manually
  set to 1G/full either for the switch port or in OpenWrt. For example
  add the following to /etc/rc.local to set it on boot:
  /usr/sbin/ethtool -s wan speed 1000 duplex full

Revert to stock firmware:
* Flash the stock firmware to the bootloader using TFTP/NMRP.

References to WAX206 GPL source:
https://www.downloads.netgear.com/files/GPL/WAX206_V1.0.4.0_Source.rar

* openwrt/target/linux/mediatek/dts/mt7622-netgear-wax206.dts
  DTS file for this device.
* openwrt/target/linux/mediatek/image/mt7622.mk
  Image creation code for this device

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
[fix WAN port, adjust partition layout and image creation]
Signed-off-by: Thomas Kupper <thomas.kupper@gmail.com>
2023-02-20 23:29:12 +08:00
Daniel Golle
3732ec0ff1 kernel: import accepted MediaTek Ethernet patches
Import some accepted and pending upstream patches for mtk_eth_soc,
replacing some semantically equivalent local patches and fixing issues
when operating the PCS in 1G SGMII mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-02-20 23:26:40 +08:00
coolsnowwolf
7032f6d8b9 mt76: fix build errors with upsteam version 2023-02-18 20:52:42 +08:00
Felix Fietkau
45b15e953c kernel: add missing optimization for page pool
Improves performance in combination with threaded NAPI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:25:04 +08:00
Felix Fietkau
26db249dbb mt76: import WED related mtk_eth_soc patches
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:24:05 +08:00
Felix Fietkau
80ea885fe3 kernel: make it possible for packages to select page pool support
Will be used by the next mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-17 18:22:48 +08:00
lovehackintosh
c3ac3c9350
kernel: bump 5.10 to 5.10.168 (#10904) 2023-02-16 12:38:17 +00:00
aakkll
a292c0e88e
kernel: bump 6.1 to 6.1.12 (#10900)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-02-16 11:19:40 +08:00
lovehackintosh
5f61ca66c8
kernel: bump to 5.15.94, 6.1.12 (#10901) 2023-02-16 09:28:24 +08:00
coolsnowwolf
f3c8c2a243 Update README.md 2023-02-15 18:26:06 +08:00
Felix Fietkau
7faea8407a kernel: add fix for a page pool related crash on GRO
Needed for upcoming mt76 page pool support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-15 12:09:39 +08:00
Felix Fietkau
5cd7dc1d64 kernel: backport page pool fragment support from v5.15
Required for an upcoming mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-02-15 12:08:22 +08:00
Daniel Golle
47643a2ba9 mediatek: mtk_thermal: replace with upstream patch
Replace local patch adding thermal support for MT7986 with version
accepted upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-02-15 11:55:24 +08:00
AmadeusGhost
470ca53250 mediatek: add support for TP-Link TL-XDR6086/6088
Hardware specification:
  SoC: MediaTek MT7986A 4x A53
  Flash: ESMT F50L1G41LB 128MB
  RAM: ESMT M15T4G16256A 512MB
  Ethernet (Max Speed):
    XDR6086: 1x 2.5G Wan, 1x 2.5G Lan, 1x 1G Lan
    XDR6088: 1x 2.5G Wan, 1x 2.5G Lan, 4x 1G Lan
  WiFi1: MT7976GN 2.4GHz ax 4x4
  WiFi2: MT7976AN 5GHz ax 4x4
  Button: Reset, Wps, Turbo
  USB: 1 x USB 3.2
  Power: DC 12V 4A

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2023-02-14 23:57:22 +08:00
AmadeusGhost
0973fa001a rtw88-usb: remove upstream patches
No functional changes.
2023-02-14 23:53:30 +08:00
AmadeusGhost
58e26ac817 default-settings: drop unneeded file 2023-02-13 23:58:12 +08:00
AmadeusGhost
b80da91037 meson: refresh kernel configuration
No test, just enable CPUFREQ and THERMAL support.
2023-02-13 23:50:15 +08:00
coolsnowwolf
edfb7ec749 kernel: add missing symbol to 5.10 config 2023-02-13 21:00:16 +08:00
John Audia
f2fed1286d openssl: bump to 1.1.1t
Removed upstreamed patch: 010-padlock.patch

Changes between 1.1.1s and 1.1.1t [7 Feb 2023]

  *) Fixed X.400 address type confusion in X.509 GeneralName.

     There is a type confusion vulnerability relating to X.400 address processing
     inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING
     but subsequently interpreted by GENERAL_NAME_cmp as an ASN1_TYPE. This
     vulnerability may allow an attacker who can provide a certificate chain and
     CRL (neither of which need have a valid signature) to pass arbitrary
     pointers to a memcmp call, creating a possible read primitive, subject to
     some constraints. Refer to the advisory for more information. Thanks to
     David Benjamin for discovering this issue. (CVE-2023-0286)

     This issue has been fixed by changing the public header file definition of
     GENERAL_NAME so that x400Address reflects the implementation. It was not
     possible for any existing application to successfully use the existing
     definition; however, if any application references the x400Address field
     (e.g. in dead code), note that the type of this field has changed. There is
     no ABI change.
     [Hugo Landau]

  *) Fixed Use-after-free following BIO_new_NDEF.

     The public API function BIO_new_NDEF is a helper function used for
     streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL
     to support the SMIME, CMS and PKCS7 streaming capabilities, but may also
     be called directly by end user applications.

     The function receives a BIO from the caller, prepends a new BIO_f_asn1
     filter BIO onto the front of it to form a BIO chain, and then returns
     the new head of the BIO chain to the caller. Under certain conditions,
     for example if a CMS recipient public key is invalid, the new filter BIO
     is freed and the function returns a NULL result indicating a failure.
     However, in this case, the BIO chain is not properly cleaned up and the
     BIO passed by the caller still retains internal pointers to the previously
     freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO
     then a use-after-free will occur. This will most likely result in a crash.
     (CVE-2023-0215)
     [Viktor Dukhovni, Matt Caswell]

  *) Fixed Double free after calling PEM_read_bio_ex.

     The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and
     decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload
     data. If the function succeeds then the "name_out", "header" and "data"
     arguments are populated with pointers to buffers containing the relevant
     decoded data. The caller is responsible for freeing those buffers. It is
     possible to construct a PEM file that results in 0 bytes of payload data.
     In this case PEM_read_bio_ex() will return a failure code but will populate
     the header argument with a pointer to a buffer that has already been freed.
     If the caller also frees this buffer then a double free will occur. This
     will most likely lead to a crash.

     The functions PEM_read_bio() and PEM_read() are simple wrappers around
     PEM_read_bio_ex() and therefore these functions are also directly affected.

     These functions are also called indirectly by a number of other OpenSSL
     functions including PEM_X509_INFO_read_bio_ex() and
     SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL
     internal uses of these functions are not vulnerable because the caller does
     not free the header argument if PEM_read_bio_ex() returns a failure code.
     (CVE-2022-4450)
     [Kurt Roeckx, Matt Caswell]

  *) Fixed Timing Oracle in RSA Decryption.

     A timing based side channel exists in the OpenSSL RSA Decryption
     implementation which could be sufficient to recover a plaintext across
     a network in a Bleichenbacher style attack. To achieve a successful
     decryption an attacker would have to be able to send a very large number
     of trial messages for decryption. The vulnerability affects all RSA padding
     modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
     (CVE-2022-4304)
     [Dmitry Belyavsky, Hubert Kario]

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-02-12 11:28:05 +08:00
Michael Pratt
dfcf9963e2 Revert "tools/fakeroot: update to 1.30.1"
This reverts commit 52167feff8ae3fbd02be22dfe6021e7e9c79c599.

Fakeroot 1.30.1 broke building on certain hosts (32-bit archs).

As of 2023-01-10, this was apparently fixed in source code,
however, the version is still 1.30.1 (patch release),
so the old binaries are removed from the repository and replaced,
but the source provided by the repository remains the same.

Furthermore, there are some complicated issues blocking
the "testing" release from being bumped to a 1.30.x version.

Considering all of this, it would likely be better for this package
to follow the "testing" release instead of the "unstable" release,
which is still 1.29-1, so revert to that.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2023-02-12 11:27:41 +08:00
Oleg S
43a6b311c4 mediatek: mt7622: fix rootfs/ubi detection for Xiaomi AX6S
By specifying the flag "denx,fit" for partition "kernel", the kernel
try to find rootfs in the same partition during boot. Reality is that
the placement of rootfs is precisely determined by the name of another
partition -"ubi".
It was also found that on some device (for example devices with NAND
chips), the "Denx search engine" manages to find roots at the end of
partition "kernel", but such partition doesn't exist and is empty
there.

Fix this by removing the "denx,fit" flag from partition "kernel". With
this change the original behavior of searchif rootfs in partition "ubi"
is restored.

Signed-off-by: Oleg S <remittor@gmail.com>
2023-02-12 11:26:36 +08:00
coolsnowwolf
96a2274228 default-settings: add rules to ban Xiaomi APK install DNS redirect 2023-02-11 21:33:41 +08:00
lovehackintosh
e610757c58
kernel: bump to 5.10.167, 5.15.93, 6.1.11 (#10891) 2023-02-10 15:23:29 +08:00
Chen Minqiang
29d85f9b04 wolfssl: fix build with make < 4.2
Inline the preinst.arm-ce script. Support for including was added in
make 4.2 and is not working with older make versions.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2023-02-08 21:58:10 +08:00
Beginner
46f2c7e07f luci-proto-mbim: move to luci feeds 2023-02-08 21:55:36 +08:00
coolsnowwolf
4fe620f842 Revert "rockchip: add FriendlyElec NanoPi R5C support"
This reverts commit 62133a8392.
Closed: #10883, #10890
2023-02-08 21:53:57 +08:00
1054009064
8336b817ec
rockchip: fix cannot stat dtb file (#10885) 2023-02-07 23:14:20 +08:00
aakkll
bb99eaf39c
kernel: bump 5.4 to 5.4.231 (#10881)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-02-07 11:40:27 +08:00
coolsnowwolf
b52193a031 kernel: bump 6.1 to 6.1.10 2023-02-06 18:15:52 +08:00
Nuc
62133a8392
rockchip: add FriendlyElec NanoPi R5C support
* add NanoPi R5C board

* Update armv8.mk

* Delete nanopi-r5c.bootscript

---------

Co-authored-by: coolsnowwolf <31687149+coolsnowwolf@users.noreply.github.com>
2023-02-06 18:03:27 +08:00
lovehackintosh
f1cd5542cf
Openwrt-CI: small cleanup (#10848) 2023-02-06 11:44:57 +08:00
fishg
91bc6bfd32
mt76x2: fix for 6.1 (#10863) 2023-02-05 13:05:48 +08:00
Tsenghan
60178fd03d
Define domain request parameter "Line" as default (#10862)
In Action "DescribeSubDomainRecords", define argument “Line” to the specific "defalut". This is for someone who have two or more same domain names but in different dns request source(ISP), but return more than 1 record will goto print "地址需要修改".  For document of  aliyun API, set a Line parament can solve this issue because most of users just have one ISP for each domain and its value was set as "default".
2023-02-04 21:54:27 +08:00
Beginner
b597493248
wwan/app: code alignment (#10850)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2023-02-04 21:45:21 +08:00
coolsnowwolf
1daa71c005 quectel_QMI_WWAN: port to linux 6.1 support 2023-02-02 23:55:49 +08:00
coolsnowwolf
de25320d7a Version update to R23.2.14 2023-02-02 19:50:19 +08:00
coolsnowwolf
a8b2e68da8 package: add wwan Quectel modem packages and luci 2023-02-02 19:43:57 +08:00
1054009064
f143a15985
ipq807x: add tl-er2260t dts for other device builds in 5.15 (#10846)
Only solves other device builds, doesn't support tl-er2260t running.
2023-02-02 16:39:58 +08:00
coolsnowwolf
27a331a57b autocore: fix sfp unplugged speed display 2023-02-02 12:46:12 +08:00
1054009064
f6d0acb91b
qca-ssdk: refresh patches (#10845)
Fixed patch application failure.

Fixes: 89200af ("bump qca-ssdk nss-dp and ssdk-shell, Add tplink-tl-er2260t basic support (#10777)")
Fixes: #10844
2023-02-02 12:42:41 +08:00
qlugcp
89200afb01
bump qca-ssdk nss-dp and ssdk-shell, Add tplink-tl-er2260t basic support (#10777)
* bump qca-nss-dp and ssdk ssdk-shell to 12.1

* [qca-ssdk] delete 0008 patch as 12.1 version do not need this

* [ipq807x]: Add support for tplink-tl-er2260t(basic)

* remove unused parts in 2260t.dts

* NSS:bump nss-drv64 to 12.1r2 (may affect ipq806x)

* fix nss-dp source_url

* qca-ssdk: refresh ssdk patch
2023-02-02 01:26:55 +08:00
lovehackintosh
26b859543a
kernel: bump to 5.10.166, 5.15.91, 6.1.9 (#10842)
* kernel: bump 5.15 to 5.15.91

* kernel: bump 6.1 to 6.1.9

* kernel: bump 5.10 to 5.10.166
2023-02-01 18:21:28 +08:00
coolsnowwolf
7fea68185c kernel: bump 6.1 to 6.1.9 2023-02-01 17:18:22 +08:00
coolsnowwolf
912696441b rtl8812au-ac: backport linux kernel 6.1 support 2023-01-31 15:06:50 +08:00
coolsnowwolf
fb0c3a7fde rtl8812au-ac: port RTL8812AU/21AU and RTL8814AU Wireless drivers from aircrack-ng 2023-01-31 13:27:15 +08:00
Lollipop907
ff68c93d9b
rockchip:fix build failure and change network for MPC1903 (#10837)
* Update armv8.mk

* Update 02_network
2023-01-31 12:55:50 +08:00
zfdx
0fbb5e9fd3
ramips: hiwifi-r33: fix partition and led (#10836) 2023-01-31 11:40:11 +08:00
骷髅头
e20fa327ec
uqmi:fix build failure (#10831)
ERROR: package/network/utils/uqmi failed to build.
2023-01-29 19:35:47 +08:00
Hugo Chen
7d2c1575be
ci: update upload-artifact (#10824) 2023-01-29 12:20:04 +08:00
xiaotan8
4a50778a19
uqmi: bump to latest git HEAD (#10826) 2023-01-29 12:18:40 +08:00
Nick Hainke
fec4f5df67 kernel: test for kernel version greater 5.13 to fix mmc-spi
The of_mmc_spi.o resource is provider agnostic in kernels greater 5.13
and does not depend anymore on CONFIG_OF.

Fixes: #10769

Suggested-by: John Thomson <git@johnthomson.fastmail.com.au>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-01-27 19:53:09 +08:00
coolsnowwolf
ccc6994445 toolchain/gcc: revert to version 11 by default 2023-01-26 21:15:53 +08:00
zfdx
0c40df89d3
ramips: MT7620 add Support HiWiFi R33(C312B B52) (#10812) 2023-01-26 19:50:31 +08:00
coolsnowwolf
ae14a83450 Revert "elfutils: fix gcc8 compile"
This reverts commit 7df2cabf9a.
2023-01-26 19:49:10 +08:00
coolsnowwolf
7df2cabf9a
elfutils: fix gcc8 compile 2023-01-26 12:29:57 +08:00
coolsnowwolf
1f978b4a5e
linux-firmware: update to 20230117 2023-01-26 12:27:19 +08:00
coolsnowwolf
aa4e4dae34 ipq60xx: disable ath11k wireless temporarily 2023-01-25 20:49:18 +08:00
coolsnowwolf
6ed4335449 igb-intel: drop package 2023-01-25 20:46:54 +08:00
coolsnowwolf
c875033c44 rockchip: fix dts patch for Ariaboard Photonicat 2023-01-25 20:38:08 +08:00
lovehackintosh
51ec2f45a6
treewide: sync with upstream (#10750)
* build: fix incomplete initramfs compression options

Requires: tools/lz4, tools/lzop

complete the wiring so that these options work:
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZO`
* `CONFIG_KERNEL_INITRAMFS_COMPRESSION_LZ4`

Signed-off-by: Tony Butler <spudz76@gmail.com>
[remove blocking dependencies for separate ramdisk, fix lzop options]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* include: sync with upstream

* toolchain/binutils: add support for version 2.40

Release notes:
    https://sourceware.org/pipermail/binutils/2023-January/125671.html

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* toolchain/gcc: switch to version 12 by default

Also fix build error with gcc 12.

* toolchain/nasm: update to 2.16.01

ChangeLog:

 Version 2.16.01

       _This is a documentation update release only._

       (*) Fix the creation of the table of contents in the HTML version of
           the documentation.

 Version 2.16

       (*) Support for the `rdf' format has been discontinued and all the
           RDOFF utilities has been removed.

       (*) The `--reproducible' option now leaves the filename field in the
           COFF object format blank. This was always rather useless since
           it is only 18 characters long; as such debug formats have to
           carry their own filename information anyway.

       (*) Fix handling of MASM-syntax reserved memory (e.g. `dw ?') when
           used in structure definitions.

       (*) The preprocessor now supports functions, which can be less
           verbose and more convenient than the equivalent code implemented
           using directives. See section 4.4.

       (*) Fix the handling of `%00' in the preprocessor.

       (*) Fix incorrect handling of path names affecting error messages,
           dependency generation, and debug format output.

       (*) Support for the RDOFF output format and the RDOFF tools have
           been removed. The RDOFF tools had already been broken since at
           least NASM 2.14. For flat code the ELF output format
           recommended; for segmented code the `obj' (OMF) output format.

       (*) New facility: preprocessor functions. Preprocessor functions,
           which are expanded similarly to single-line macros, can greatly
           simplify code that in the past would have required a lengthy
           list of directives and intermediate macros. See section 4.4.

       (*) Single-line macros can now declare parameters (using a `&&'
           prefix) that creates a quoted string, but does _not_ requote an
           already quoted string. See section 4.2.1.

       (*) Instruction table updated per public information available as of
           November 2022.

       (*) All warnings in the preprocessor have now been assigned warning
           classes. See appendix A.

       (*) Fix the invalid use of `RELA'-type relocations instead of `REL'-
           type relocations when generating DWARF debug information for the
           `elf32' output format.

       (*) Fix the handling `at' in `istruc' when the structure contains
           local labels. See section 5.9.2.

       (*) When assembling with `--reproducible', don't encode the filename
           in the COFF header for the `coff', `win32' or `win64' output
           formats. The COFF header only has space for an 18-character
           filename, which makes this field rather useless in the first
           place. Debug output data, if enabled, is not affected.

       (*) Fix incorrect size calculation when using MASM syntax for non-
           byte reservations (e.g. `dw ?'.)

       (*) Allow forcing an instruction in 64-bit mode to have a (possibly
           redundant) REX prefix, using the syntax `{rex}' as a prefix.

       (*) Add a `{vex}' prefix to enforce VEX (AVX) encoding of an
           instruction, either using the 2- or 3-byte VEX prefixes.

       (*) The `CPU' directive has been augmented to allow control of
           generation of VEX (AVX) versus EVEX (AVX-512) instruction
           formats, see section 7.11.

       (*) Some recent instructions that previously have been only
           available using EVEX encodings are now also encodable using VEX
           (AVX) encodings. For backwards compatibility these encodings are
           not enabled by default, but can be generated either via an
           explicit `{vex}' prefix or by specifying either `CPU LATEVEX' or
           `CPU NOEVEX'; see section 7.11.

       (*) Document the already existing `%unimacro' directive. See section
           4.5.12.

       (*) Fix a code range generation bug in the DWARF debug format
           (incorrect information in the `DW_AT_high_pc' field) for the ELF
           output formats. This bug happened to cancel out with a bug in
           older versions of the GNU binutils linker, but breaks with other
           linkers and updated or other linkers that expect the spec to be
           followed.

       (*) Fix segment symbols with addends, e.g. `jmp _TEXT+10h:0' in
           output formats that support segment relocations, e.g. the `obj'
           format.

       (*) Fix various crashes and hangs on invalid input.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* toolchain: musl: Fix symbol loading in gdb

Fix DT_DEBUG handling on MIPS in musl libc.
With this change gdb will load the symbol files for shared libraries on MIPS too.

This patch was taken from this thread: https://www.openwall.com/lists/musl/2022/01/09/4

Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>

* tools: sync with upstream

* build: fix issues with targets installed via feeds

- fix including modules.mk when a target is being replaced
- fix calling make targets from target/linux

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* package: sync with upstream

Signed-off-by: Tony Butler <spudz76@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: Tony Butler <spudz76@gmail.com>
Co-authored-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Co-authored-by: Felix Fietkau <nbd@nbd.name>
2023-01-25 15:30:35 +08:00
蛋炒饭
44f20dfe69
arm-trusted-firmware-sunxi: Use common trusted-firmware-a.mk (#10804)
Make use of the definitions from trusted-firmware-a.mk to build the
Trusted firmware arm. This fixes the build with binutils 2.39.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-01-25 00:35:49 +08:00
lovehackintosh
7e01fac6fc
kernel: bump to 5.4.230, 5.10.165, 5.15.90 (#10803)
* kernel: bump 5.4 to 5.4.230

* kernel: bump 5.10 to 5.10.165

* kernel: bump 5.15 to 5.15.90
2023-01-25 00:35:11 +08:00
lovehackintosh
0a113ed61b
kernel: bump 6.1 to 6.1.8 (#10802)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-01-24 22:02:12 +08:00
lovehackintosh
02d584f972
layerscape: sync with official source (#10801) 2023-01-24 22:00:53 +08:00
AmadeusGhost
9fe455c514 rockchip: add support for Ariaboard Photonicat
This commit add basic support for Photonicat Board.

Flash into lede:
  Run first: dd if=openwrt-xxx.img of=/dev/mmcblk0
  Then brush the img file to sdcard and insert it,
  the system will boot from above.

Note:
  Since rockchip does not release any code to power up their
  device, disabled emmc for now until we can remove rkbin.
2023-01-24 21:39:13 +08:00
AmadeusGhost
0dc779bf6c rfkill: enable for rockchip by default
This is useful for 4G modem chips. For example,
the Radxa E25 supports insert two modems.
2023-01-24 21:10:37 +08:00
Lollipop907
b77ab3b9ef rockchip: set network for MPC1903 (#10794) 2023-01-23 22:02:03 +08:00
lovehackintosh
c9e74f8630
intel-microcode: update to 20221108 (#10797)
Fixes: #10796
2023-01-23 21:50:08 +08:00
coolsnowwolf
89953ea0eb
ipset: update to 7.17 2023-01-23 13:02:42 +08:00
AmadeusGhost
034b35e9e6 uboot-rockchip: fixes spl mode for rk3568
Give spl more privileges so that it can be used at least.
Fixes: 8dbff7b ("uboot-rockchip: add rk3568 board support")
2023-01-22 22:15:12 +08:00
AmadeusGhost
8d54436f94 rockchip: cleanup device tree files 2023-01-22 22:10:52 +08:00
Lollipop907
ae17e3b40d
Add support for Rocktech MPC1903 (#10779)
* Update Makefile

Add Support For Rocktech MPC1903

* Add support for Rocktech MPC1903

* Add support for Rocktech MPC1903

* Update armv8.mk

* Add support for Rocktech MPC1903

* Add support for Rocktech MPC1903

* Update armv8.mk

* Update rk3399-mpc1903.dts

* Add support for Rocktech MPC1903

* Update rk3399-mpc1903.dts

* Add support for Rocktech MPC1903

* Add support for Rocktech MPC1903

* Update armv8.mk

* Delete mpc1903.bootscript

* Add rk3399-mpc1903.dts

* Add support for Rocktech MPC1903
2023-01-21 14:06:15 +08:00
fishg
2014b59a26
hv: CONFIG_HYPERV_UTILS depends config fix (#10790) 2023-01-20 21:29:38 +08:00
lovehackintosh
37c47e967a
kernel: bump to 5.4.229, 5.10.164, 5.15.89, 6.1.7 (#10785)
* kernel: bump 5.15 to 5.15.89

* kernel: bump 6.1 to 6.1.7

* kernel: bump 5.4 to 5.4.229

* kernel: bump 5.10 to 5.10.164
2023-01-19 14:03:33 +08:00
AmadeusGhost
dd6c384a06 rockchip: increase default cma size to 64MB 2023-01-18 21:00:54 +08:00
Hugo Chen
6ea630b1fd
Update openwrt-ci.yml (#10780)
更新chechout 版本,解决action报nodejs错误
更新apt安装组件,解决libgcc32的问题。
2023-01-18 12:10:39 +08:00
Daniel Golle
ec753a97ff kernel: fix kernel panic in mtk_ppe
The patch that adds support for hw flow-offloading counters on newer
MediaTek SoCs tries to prints acct->packets and acct->bytes in debugfs,
without checking that acct isn't null. This causes a kernel panic when
trying to read /sys/kernel/debug/ppe0/entries on older MediaTek SoCs.
Fix this by adding a check for acct.

Fixes: 9721a42a27 ("kernel: support hw flow-offloading counters on newer MediaTek SoCs")
Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-17 21:22:37 +08:00
Daniel Golle
2b13399bb7 mediatek: filogic: fix sysupgrade on MMC on the BPi-R3
A previous attempt to simplify things went wrong and now sysupgrade
is broken on this device. Fix that.

Fixes: de94587e70 ("mediatek: filogic: don't rely on image preset in flash or sysupgrade")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-17 21:21:32 +08:00
Daniel Golle
55780024d3 mediatek: mt7622: fix sysupgrade on MMC on BPi-R64
A previous attempt to simplify things went wrong and now sysupgrade
is broken on this device. Fix that.

Fixes: d640cbac0e ("mediatek: mt7622: don't rely on existing image for sysupgrade")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-17 21:21:11 +08:00
Daniel Golle
9c56a0617d uboot-mediatek: update to U-Boot 2023.01
Support for MT7981 and MT7986 has been merged, remove patches.
Tested on a couple of MT7986, MT7622 and MT7623 boards.
MIPS builds are untested.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-17 21:19:50 +08:00
Linhui Liu
760b2663b5 tools/mkimage: update to 2023.01
Remove upstreamed patches:
- 020-tools-mtk_image-split-gfh-header-verification-into-a.patch
- 021-tools-mtk_image-split-the-code-of-generating-NAND-he.patch
- 022-tools-mtk_image-add-support-for-nand-headers-used-by.patch

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-01-17 21:15:23 +08:00
AmadeusGhost
d783ca6caa kmod-usb-net-smsc95xx: fix 6.1 dependency
Fixes: #10773
2023-01-16 12:39:31 +08:00
Petr Štetiar
faef3eb816 kernel: usb-net-asix: fix 5.15 dependency
Upstream in commit 34a1dee6bc44 ("net: usb: asix: ax88772: add generic
selftest support") in version 5.14 added dependency on generic selftest
functionality and armvirt/64 when compiled with ALL_KMODS=y reports following:

 Package kmod-usb-net-asix is missing dependencies for the following libraries:
 mdio_devres.ko
 selftests.ko

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2023-01-16 12:35:47 +08:00
Petr Štetiar
d34a06cb58 kernel: netdevices: add generic selftests module
Upstream in commit 3e1e58d64c3d ("net: add generic selftest support") in
version 5.13 added generic selftests module and usb-net-asix already
depends on it, in version 5.18 via commit 1710b52d7c13 ("net: usb:
smsc95xx: add generic selftest support") it will be used by
usb-net-smsc95xx as well.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2023-01-16 12:25:46 +08:00
lovehackintosh
2d986edd56
kernel: bump to 5.10.163, 5.15.88 (#10768) 2023-01-15 11:38:29 +08:00
aakkll
7fde812701
kernel: bump 6.1 to 6.1.6 (#10767)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-01-15 07:00:24 +08:00
1054009064
e8705bc49c
mac80211: ath11k: fix build error (#10766)
Builld-test: ipq807x/mf269
Fixes: bd7fde7 ("mac80211: ath11k: fix monitor bringup")
2023-01-14 20:55:24 +08:00
coolsnowwolf
4f183daa09 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-01-14 16:39:24 +08:00
coolsnowwolf
bd7fde7bb7 mac80211: ath11k: fix monitor bringup 2023-01-14 16:38:56 +08:00
lovehackintosh
68447b4218
kernel: bump 5.15.86 to 5.15.87 (#10764)
Also refresh patches for kernel 6.1.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-01-14 07:49:58 +08:00
coolsnowwolf
e49f3c22b2 x86: swtich kernel to 6.1 by default 2023-01-13 16:37:27 +08:00
coolsnowwolf
f67eeb41c5 kernel: bump 6.1 to 6.1.5 2023-01-13 16:36:32 +08:00
Hauke Mehrtens
6801edd8f4 ksmbd: Fix ZDI-CAN-18259
This fixes a security problem in ksmbd. It currently has the
ZDI-CAN-18259 ID assigned, but no CVE yet.

Backported from:
8824b7af40
cc4f3b5a6a

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-01-12 20:10:09 +08:00
Tim Harvey
72351b3ffa octeontx: add sqaushfs and ramdisk to features
Add squashfs and ramdisk to features as these are commonly used images
for the octeontx.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2023-01-12 20:08:42 +08:00
Andrey Butirsky
9592f13790 base-files: add protocol qmi/mbim support for ucidef_set_interface()
Make it possible to setup default WAN interface for devices with built-in LTE
modems, using QMI or MBIM.

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
Reviewed-by: Lech Perczak <lech.perczak@gmail.com>
2023-01-11 19:40:05 +08:00
Felix Fietkau
2f8864218f base-files: add helper functions for adding wlan device entries to board.json
These will be used to give WLAN PHYs a specific name based on path specified
in board.json. The platform board.d script can assign a specific order based
on available slots (PCIe slots, WMAC device) and device tree configuration.

This helps with maintaining config compatibility in case the device path
changes due to kernel upgrades.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-01-11 19:38:11 +08:00
Vincent Tremblay
99604ea8c8 generic: fix silicon labs spidev bindings
Fix Silicon Labs bindings in the spidev driver

Some bindings for Silicon Labs chips already exists upstream.
These bindings can be found in trivial-devices.yaml.

The existing bindings are using "silabs" instead of "siliconlabs" to
identify the manufacturer.

This commit add two submitted patches for silabs chips and rename the
manufacturer in the different DTS for more coherence.

Signed-off-by: Vincent Tremblay <vincent@vtremblay.dev>
2023-01-10 21:48:59 +08:00
Shiji Yang
1823afb3f0 mt76: add stand-alone MT7622 firmware package
Add a separate firmware package to avoid installing the MT7615 firmware
on all MT7622 target devices by default. Now we only add MT7615 firmware
packages for devices that use MT7615E. This commit also removes the
explicit dependency on kmod-mt7615e to refine the package dependency.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:19:06 +08:00
Shiji Yang
467b9218e6 mt76: add stand-alone MT7915 firmware package
The mt7915e driver supports MT7915, MT7916 and MT7986 chips. And Only
MT7915 series chips need the MT7915 firmware. To save storage, extract
them from the common code package and create a new package to provide
the firmware.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:17:05 +08:00
Shiji Yang
5452b45dd6 mt76: remove unnecessary dependency from mt7915e
The kmod-mt7615-common package does not contain any code that
related to mt7915e Wi-Fi6 driver, so remove it.

Tested on ramips/mt7621: SIM SIMAX1800T

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:15:02 +08:00
lovehackintosh
2751e926a0
iwinfo: backport IPQ8074 and QCNxxxx devices support (#10743)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2023-01-08 19:46:57 +08:00
coolsnowwolf
f977ed010d kernel: bump 6.1 to 6.1.4 2023-01-08 19:38:37 +08:00
Felix Fietkau
be337f9aa3 kernel: fix ethernet regression on mt7986
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-01-07 20:56:12 +08:00
Felix Fietkau
a2ac7bdc18 kernel: mediatek: fix WED offload regression on MT7622
Fix dealing with DSA untagging offload

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-01-07 20:55:31 +08:00
Felix Fietkau
297b6f78ca kernel: mediatek: improve ethernet fix for dealing with small fragments
Replace the workaround on MT7986 with a proper fix. Software workaround is
still needed on older chips.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-01-07 20:54:06 +08:00
Seth David Schoen
a9f98fa1b9 generic: 5.10: backport Treat IPv4 segment's lowest address as unicast
Backport patch from kernel 5.14.

Treat only the highest, not the lowest, IPv4 address within a local
subnet as a broadcast address, as subnets do not need two different
broadcast addresses and networking documentation consistently prefers
the highest address as broadcast.

This patch was merged in upstream net-next tree in May 2021 at

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=94c821c74bf5

This eventually frees up one address per subnet. It matches behavior
suggested in our Internet-Draft, and also the default behavior of OpenBSD
and FreeBSD.

Signed-off-by: Seth David Schoen <schoen@loyalty.org>
2023-01-07 20:53:12 +08:00
ZeaKyX
1e4dd74629
ddns-scripts_aliyun: update script (#10738) 2023-01-06 18:20:03 +08:00
coolsnowwolf
73de9902ed kernel: bump 6.1 to 6.1.3 2023-01-05 20:10:47 +08:00
lovehackintosh
849ae160a5
treewide: sync with upstream (#10720)
* mpc85xx: add support for cpu type 8548

8540 cpu type corresponds to e500v1 core while
8548 cpu type corresponds to e500v2 core

See https://www.nxp.com/products/processors-and-microcontrollers/legacy-mpu-mcus/powerquicc-processors:POWERQUICC_HOME#powerquicc-iii-mpc85xx
and https://www.nxp.com/docs/en/application-note/AN2807.pdf .

Co-authored-by: Josef Schlehofer <josef.schlehofer@nic.cz>
Co-authored-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Šimon Bořek <simon.borek@nic.cz>

* tree-wide: Do not use package librt and libpthread

The libraries libpthread, libdl, libutil, libanl have been integrated
into the libc library in version 2.34. it is not needed to explicitly
link them any more.

Most of the functions have been moved from the librt.so into libc.so
some time ago already.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain/binutils: backport stable patches

Add the patches with real changes from the binutils 2.39 stable branch.
I am not aware that we ran into any of these problems, but I think it is
better to take the existing stable patches.

They were exported like this:
git format-patch binutils-2_39...origin/binutils-2_39-branch
I removed the patches changing the version numbers only.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain/binutils: switch to version 2.39 by default

This was build tested with all core packages on all targets
successfully.

This was run tested on the following systems:
* lantiq/xrx200 musl
* sunxi/cortex53 musl
* x86/64 musl
* x86/64 glibc

Some trusted firmware arm builds needed some fixes to build with
binutils 2.39, this was merged before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* tools: Improve diffability/maintainability

There's no purpose to squish multiple tools into a single line (and
spread those out over multiple lines). It might look 'nice' in certain
conditions, but it's annoying to maintain.

For example, but not limited to:
* adding/removing tools, causes hard to read diffs
* Duplicates are harder to spot
* Sorting can not be (easily?) automated

With this proposed change, the above annoyances go away. Inserting a new
tool can be done with a single line-change-diff, sorting can be done by
any editor (in vi, select, :sort for example) and dupes are much easier
to spot.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

* rules: drop -Wno-error additional flags from default TARGET_CFLAGS

We currently enable -Wno-error=unused-but-set-variable and
-Wno-error=unused-result by default on every compile package.

While this is (relatively) unharmful, we should follow other project
direction and starts enforcing good code quality. For example the linux
kernel recently started to enforce Wall by default and clean code is
mandatory for inclusion.

Drop for good these flags and and make it mandatory to correctly handle
return values at least with a warning log if they are not strictly error
condition.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* bridger: update to the latest version

def7755c459d add missing copyright headers
f68307fd96d7 add hairpin mode support
9ee8f433ba4e nl: do not pass NDA_VLAN with vid=0
978c1f9eed07 add support for the bridge port isolated flag

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Signed-off-by: Šimon Bořek <simon.borek@nic.cz>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: Šimon Bořek <simon.borek@nic.cz>
Co-authored-by: Josef Schlehofer <josef.schlehofer@nic.cz>
Co-authored-by: Pali Rohár <pali@kernel.org>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Olliver Schinagl <oliver@schinagl.nl>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Felix Fietkau <nbd@nbd.name>
2023-01-04 15:41:15 +08:00
AmadeusGhost
fa691af892 kmod-drm-*: fixes depends on x86 with linux 6.1
Fixes: #10721
2023-01-04 12:38:13 +08:00
Markus Stockhausen
0744781758 tools: Add gzip-libdeflate advanced compressor
Several devices provide U-Boot versions with only gzip compressed kernel
support (e.g. Realtek switches). This compression method produces larger
images than lzma. To save space on flash and avoid going the hard way with
lzma-loader we can make use of enhanced gzip tool based on libdeflate
compression library from https://github.com/ebiggers/libdeflate. It
keeps 100% deflate/gzip compatibility while improving compression ratio.
The image can be unpacked by the default inflate routines inside U-Boot.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
[Switched to v1.15 and made it work with cmake]
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Sander Vanheule <sander@svanheule.net>
2023-01-04 12:35:13 +08:00
AmadeusGhost
a20ec5143d r8125: update to version 9.010.01-2 2023-01-03 20:15:41 +08:00
AmadeusGhost
7488a31bb6 rockchip: fixes drm module depends
Also refresh kernel config.
Fixes: #10715
2023-01-03 20:10:31 +08:00
Nick Hainke
fdea921ad5 wolfssl: update to 5.5.4-stable
Remove upstreamed:
- 001-Fix-enable-devcrypto-build-error.patch

Refresh patch:
- 100-disable-hardening-check.patch

Release notes:
https://github.com/wolfSSL/wolfssl/releases/tag/v5.5.4-stable

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-01-02 18:20:08 +08:00
coolsnowwolf
8ab47a669f rockchip: fix NanoPi R2C stmmac phy 2023-01-02 18:16:54 +08:00
lovehackintosh
547fc7765c
kernel: bump 5.15 to 5.15.86 (#10708)
* kernel: bump 5.15 to 5.15.86

Removed upstreamed:
  pending-5.15/101-Use-stddefs.h-instead-of-compiler.h.patch[1]
  ipq60xx/patches-5.15/0171-arm64-dts-qcom-ipq6018-cp01-c1-use-BLSPI1-pins.patch
  ipq806x/patches-5.15/122-01-clk-qcom-clk-krait-fix-wrong-div2-functions.patch[2]
  ipq60xx/patches-5.15/0139-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  ipq60xx/patches-5.15/0005-v5.16-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  ipq807x/patches-5.15/0004-v5.16-arm64-dts-qcom-Correct-QMP-PHY-child-node-name.patch
  bcm27xx/patches-5.15/950-0198-drm-fourcc-Add-packed-10bit-YUV-4-2-0-format.patch[3]

Manually rebased:
  ramips/patches-5.15/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch[4]

Added patch/backported:
  ramips/patches-5.15/107-PCI-mt7621-Add-sentinel-to-quirks-table.patch[5]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.86&id=c160505c9b574b346031fdf2c649d19e7939ca11
2. Cannot find in the stable tree but it is here: a051e10bfc
3. ec1727f89e
4. Quilt gave this output when I applied the patch to rebase it:
% quilt push -f
Applying patch platform/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch
patching file arch/mips/ralink/Kconfig
patching file drivers/pci/controller/Kconfig
patching file drivers/pci/controller/Makefile
patching file drivers/staging/Kconfig
patching file drivers/staging/Makefile
patching file drivers/staging/mt7621-pci/Kconfig
patching file drivers/staging/mt7621-pci/Makefile
patching file drivers/staging/mt7621-pci/TODO
patching file drivers/staging/mt7621-pci/mediatek,mt7621-pci.txt
patching file drivers/staging/mt7621-pci/pci-mt7621.c
Hunk #1 FAILED at 1.
Not deleting file drivers/staging/mt7621-pci/pci-mt7621.c as content differs from patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/staging/mt7621-pci/pci-mt7621.c.rej
patching file drivers/pci/controller/pcie-mt7621.c
Applied patch platform/100-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch (forced; needs refresh)

Upon inspecting drivers/staging/mt7621-pci/pci-mt7621.c.rej, it seems that
the original patch wants to delete drivers/staging/mt7621-pci/pci-mt7621.c
but upstream's version was not an exact match.  I opted to delete that file
and need some feedback.  Was that the correct course of action?

5. Suggestion by hauke: 19098934f9
"This patch is in upstream kernel, but it was backported to the old
staging driver in kernel 5.15."

Build system: x86_64
Build-tested: bcm2711/RPi4B, filogic/xiaomi_redmi-router-ax6000-ubootmod
Run-tested: bcm2711/RPi4B, filogic/xiaomi_redmi-router-ax6000-ubootmod

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* oxnas: sata_oxnas: use ata_link_err

Kernel 5.15.86 has backported ("ata: libata: move ata_{port,link,dev}_dbg
to standard pr_XXX() macros") and this is now causing compilation errors
for oxnas SATA driver due to usage of ata_link_printk().

Upstream has migrated to using the appropriate
ata_link_{err, warn, notice, info} calls a while ago so its not affected.

Lets do the same for oxnas SATA driver and use ata_link_err() instead of
ata_link_printk().

Signed-off-by: Robert Marko <robimarko@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
Co-authored-by: Robert Marko <robimarko@gmail.com>
2023-01-02 14:11:40 +08:00
coolsnowwolf
a9553c7666 Version update to R23.1.1 2023-01-01 16:44:45 +08:00
coolsnowwolf
5d4863cab0 kernel: bump 6.1 to 6.1.2 2023-01-01 16:43:19 +08:00
coolsnowwolf
55ce447162 rockchip: add usb-serial cp210x for HINLINK H66K/H68K 2023-01-01 16:18:44 +08:00
Hauke Mehrtens
2ec379df35 mbedtls: update to version 2.28.2
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.2
This release of Mbed TLS provides bug fixes and minor enhancements. This
release includes fixes for security issues.

Fixes the following CVEs:
* CVE-2022-46393: Fix potential heap buffer overread and overwrite in
DTLS if MBEDTLS_SSL_DTLS_CONNECTION_ID is enabled and
MBEDTLS_SSL_CID_IN_LEN_MAX > 2 * MBEDTLS_SSL_CID_OUT_LEN_MAX.

* CVE-2022-46392: An adversary with access to precise enough information
about memory accesses (typically, an untrusted operating system
attacking a secure enclave) could recover an RSA private key after
observing the victim performing a single private-key operation if the
window size used for the exponentiation was 3 or smaller.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-31 12:19:33 +08:00
Xuefer H
8cf3c42e4e libbsd: fix libpath to not use host path
libpath.so uses host path in ld script causing other packages fail to
cross compile, e.g. perl:
"ld: cannot find /usr/lib/libbsd.so.0.11.6: No such file or directory"

Signed-off-by: Xuefer H <xuefer@gmail.com>
2022-12-31 12:18:19 +08:00
coolsnowwolf
25f88e06fd rockchip: fix hinlink_common target 2022-12-30 13:38:11 +08:00
coolsnowwolf
17b9f3bdf8 fullconenat: Make use of KERNEL_MAKE 2022-12-30 13:30:08 +08:00
AmadeusGhost
c00325af3f rockchip: add support for HINLINK OPC-H66K 2022-12-30 12:56:36 +08:00
AmadeusGhost
526fd6d342 treewide: move some patches into generic 5.15
These patchs are suitable for all targets rather
than a specific target.
2022-12-30 12:39:43 +08:00
Robert Marko
8cf4cee7d1 linux-firmware: disable stripping
It has been brought to my attention that recently added WCN6855 firmware
is broken as it is getting stripped during building due to being 2 ELF
binaries.
I am sure WCN6750 and any other ELF binaries are having the same issue,
so since stripping firmware binaries is clearly unwanted disable it.

Fixes: b4d3694f81f4 ("linux-firmware: package ath11k consumer cards firmware")
Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-12-30 12:36:19 +08:00
Álvaro Fernández Rojas
55eff00b5c bcm27xx: fix BCMGENET kernel config
Revert backported upstream commits 421f8663b3a7 and 8d820bc9d12b, which have
introduced a regression in BCMGENET kconfig that disabled the network driver
for the Raspberry Pi.

Fixes: 0c405bceba11 ("kernel: bump 5.15 to 5.15.85")
Fixes: e9008223268c ("kernel: bump 5.15 to 5.15.84")

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-12-29 11:04:15 +08:00
Robert Marko
b433821272 linux-firmware: ath11k: add symlink for WCN6855 hw2.1
WCN6855 exists in 2 HW revisions, but both use the same FW so upstream
just has a symlink for hw2.1 to hw2.0 that I forgot to make.

Fixes: b4d3694f81f4 ("linux-firmware: package ath11k consumer cards firmware")
Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-12-29 11:03:09 +08:00
Nick Hainke
ec0461a4fe linux-firmware: update to 20221214
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-29 11:02:20 +08:00
coolsnowwolf
8b05e418a2 ath10k-ct: add linux kernel v6.1 api update 2022-12-28 18:22:03 +08:00
Beginner
cc75f3926f
uhttpd: update to latest Git HEAD (#10685)
* uhttpd: update to latest Git HEAD

e3395cd ucode: initialize search path before VM init
8cb3f85 ucode: initialize default library search path
188dea2 utils: accept '?' as path terminator in uh_path_match()
c5eac5d file: support using dynamic script handlers as error pages
290ff88 relay: trigger close if in header read state with pending data
f9db538 ucode: ignore exit exceptions
8ba0b64 cmake: use variables and find_library for dependency

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* uhttpd: use acme hotplug

Reload uhttpd after certificates are renewed with acme.

Reviewed-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Glen Huang <i@glenhuang.com>

* uhttpd: use procd to reload on acme renew

Calling /etc/init.d/uhttpd reload directly in the acme hotplug script
can inadvertently start a stopped instance.

Signed-off-by: Glen Huang <i@glenhuang.com>

* uhttpd: update to latest Git HEAD

2397755 client: fix incorrectly emitting HTTP 413 for certain content lengths

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Glen Huang <i@glenhuang.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Jo-Philipp Wich <jo@mein.io>
Co-authored-by: Glen Huang <i@glenhuang.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-28 02:38:49 +08:00
lovehackintosh
b2eafb1cbc
mt76: refresh patches (#10689)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-28 01:15:34 +08:00
Felix Fietkau
32330e1a15 mt76: update to the latest version
a03ef0aab93e wifi: mt76: mt7921: fix deadlock in mt7921_abort_roc
5b509e80384a wifi: mt76: dma: fix a regression in adding rx buffers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-26 20:50:22 +08:00
lovehackintosh
30955c9f61
dnsmasq: bump to v2.88 (#10683)
Most relevant feature for openwrt in this release, supports dynamically
removing hosts from 'hostsdir' supplied host files.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-12-26 20:40:31 +08:00
AmadeusGhost
81e04f0c85 Revert "mediatek: add support for Netgear WAX206"
This reverts commit e55f584896.
2022-12-25 19:20:26 +08:00
Hauke Mehrtens
cdae37f8fa ramips: Fix drivers/pwm/pwm-mediatek-ramips.c compile
The pwmchip_remove() function returns void now. Fix a compile problem in
the drivers/pwm/pwm-mediatek-ramips.c driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-25 19:13:26 +08:00
Hauke Mehrtens
80d52e735c kernel: Move CONFIG_PWM_IMG and CONFIG_PWM_MEDIATEK to generic configuration
In the build of the ramips/mt76x8 target the user gets asked about these
two configuration options, add them to the generic kernel configuration.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-25 19:12:34 +08:00
Hauke Mehrtens
484a3fd213 kernel: Move CONFIG_DRM_XEN_FRONTEND to generic configuration
The CONFIG_DRM_XEN_FRONTEND configuration symbol is also used by the
layerscape target, move it to the generic kernel configuration.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-25 19:06:40 +08:00
cuiyf5516
5acc56143f
automount: add kmod-fs-ntfs3 (#10671) 2022-12-24 01:26:46 +08:00
Beginner
2292bc3559
n2n: move to packages feeds (#10611)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>

Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-12-24 01:26:21 +08:00
coolsnowwolf
317d92dd3e fstools: fix ntfs3 mount with utf-8 2022-12-23 02:32:52 +08:00
lovehackintosh
d2460dfb82
treewide: sync with upstream (#10658)
* rules: fix broken commitcount on alpine system

To generate commitcount we use grep --max-count. This is not present on
alpine grep and cause wrong generation. Use -m as it's just the short
version of --max-count and more portable.

Fixes: #11200
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* image-commands.mk: Be consistent in command invocation

Most/all other tools use the staging dir prefix, gzip should as well.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Christian Marangi <ansuelsmth@gmail.com>

* image: fix device profile specific COMPILE targets

Commit a01d23e75 ("image: always rebuild kernel loaders")
is a step in the right direction, but exposed some issues
and regressions in the makefile.

Some of the files made by device specific COMPILE targets
start with an "append" command (i.e. >> instead of > redirection)
and if the file already exists, the target file is the
input to itself before the first recipe-specified input.

Fixes: a01d23e75 ("image: always rebuild kernel loaders")
Fixes: a7fb589e8 ("image: always rebuild kernel loaders")
Signed-off-by: Michael Pratt <mcpratt@pm.me>

* trusted-firmware-a.mk: use correct CPE ID

There are 2 different CPE IDs on the NVD website:
cpe:/a:arm:trusted_firmware-a
cpe:/o:arm:arm_trusted_firmware

The ID as currently used in trusted-firmware-a.mk does not exist. The
CPE ID using the arm_trusted_firmware product name only lists a few
records for versions 2.2 and 2.3 on the NVD site. The CPE ID using the
trusted_firmware-a product name lists many more records, and actually
has a CVE linked to it. Therefore, use the CPE ID using the
trusted_firmware-a product name.

Fixes: 104d60fe94ce ("trusted-firmware-a.mk: add PKG_CPE_ID")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

* fritz-tools: fritz_tffs_nand: exclude oob code when disabled

Skip unnecessary stuff if checking the oob data is disabled.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* fritz-tools: fritz_tffs_nand: get rid of struct tffs_sectors

This doesn't help and "[0]" gets in the way of bounds checks.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* fritz-tools: fritz_tffs_nand: cache already read sector ids

This speeds up the tool significantly, especially when using the "-a"
argument.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* iproute2: add missing libbpf dependency

This patch adds libbpf to the dependencies of tc-mod-iptables.

The package tc-mod-iptables is missing libbpf as a dependency,
which leads to the build failure described in bug #9491

    LIBBPF_FORCE=on set, but couldn't find a usable libbpf

The build dependency is already automatically added because some other
packages from iproute2 depend on libbpf, but bpftools has multiple build
variants. With multiple build variants none gets build by default and
the build system will not build bpftools before iproute2.

Fixes: #9491
Signed-off-by: Kien Truong <duckientruong@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* iproute2: update to 6.0.0

Release Notes:
https://lore.kernel.org/netdev/20221004082610.56b04719@hermes.local/t/

Remove upstreamed patch:
- 010-ipstats-Add-param.h-for-musl.patch

Refreshed:
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 155-keep_tirpc_optional.patch
- 170-ip_tiny.patch
- 190-fix-nls-rpath-link.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* iproute2: update to 6.1.0

Announcement:
https://lore.kernel.org/netdev/20221214094130.7b11ec2e@hermes.local/T/#t

Refresh patch:
- 170-ip_tiny.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/xz: update to 5.2.10

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* Revert "Revert "tools/upx: remove (#10622)""

This reverts commit d3e16f203a.

* kernel: Make use of KERNEL_MAKE

Make use of KERNEL_MAKE in kernel packages were easily possible.
This moves some more code to common places and reduces the number of
lines.

It is defined like this:
KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS)
KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: gcc: backport patches to fix build with glibc 2.36

glibc 2.36 changed the definition of enum fsconfig_command, it now
collides with the same definition from sys/mount.h. Remove the include
of linux/fs.h This still compiled with musl too.

This backports a patch which is already in the stable branch of GCC 11
and GCC 12.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: glibc: Update to glibc 2.36

This updates to glibc to version 2.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* tools/llvm: update to 15.0.6

Release Notes:
	https://discourse.llvm.org/t/llvm-15-0-0-release/65099
	https://discourse.llvm.org/t/llvm-15-0-1-released/65380
	https://discourse.llvm.org/t/llvm-15-0-2-released/65695
	https://discourse.llvm.org/t/llvm-15-0-3-released/66036
	https://discourse.llvm.org/t/llvm-15-0-4-released/66337
	https://discourse.llvm.org/t/llvm-15-0-5-release/66616
	https://discourse.llvm.org/t/llvm-15-0-6-released/66899

Remove HOST_BUILD_PARALLEL as it's default now.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Kien Truong <duckientruong@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Olliver Schinagl <oliver@schinagl.nl>
Co-authored-by: Michael Pratt <mcpratt@pm.me>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Andre Heider <a.heider@gmail.com>
Co-authored-by: Kien Truong <duckientruong@gmail.com>
Co-authored-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-23 02:09:34 +08:00
coolsnowwolf
ea6e00d909 rockchip: add wireless support for H68K 2022-12-23 01:51:08 +08:00
coolsnowwolf
e55f584896 mediatek: add support for Netgear WAX206 2022-12-22 23:11:55 +08:00
Jan-Niklas Burfeind
2b9f6d0454 uboot-sunxi: use UUID of bootdev and bootpart
Several sunxi devices come with multiple mmc devices. On such devices,
the mmc device order is unpredictable, so using /dev/mmcblk0p2 as root
device doesn't always work, which results in unbootable devices.

For the Banana Pi BPI-R3 in the mediatek target, this has been solved by
defining aliases for the mmc devices in the DTS. Ideally we would do the
same here, but for sunxi-a64 we already use UUID probing, so let's start
with that (5f2ff607e286 ("uboot-sunxi: a64: allow booting directly from
eMMC")).

Since we're building and including u-boot in each supported device
image, and this method has been proven to work fine for a64, let's just
change the default u-boot env file to do the same.

Fixes: e6d9f6fdff ("sunxi: add support for FriendlyARM NanoPi R1")
Co-authored-by: Karl Palsson <karlp@etactica.com>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
[use UUID in default u-boot env, rewrite commit message]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-22 19:51:46 +08:00
Hauke Mehrtens
6a8f5a5d92 kernel: Add missing kernel configuration options
This fixes compile of the bmips target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-22 19:50:15 +08:00
Hauke Mehrtens
7200044e40 kernel: Reorder kernel configuration options
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-22 19:47:56 +08:00
Christian Marangi
92fbd549a3 generic: fix wrong PTR_ERR use in of net mac address ascii patch
nvmem_cell_read return a pointer error when an error occurs. Currently
we convert the pointer error to an int while the rest of the function
return a void* and expcet an error pointer. Fix this PTR_ERR msuse
fixing compilation warning.

Fixes the following compilation warning:
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address':
net/ethernet/eth.c:547:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  547 |                 return PTR_ERR(mac);
      |                        ^~~~~~~~~~~~
net/ethernet/eth.c: In function 'nvmem_cell_get_mac_address_ascii':
net/ethernet/eth.c:564:24: warning: returning 'long int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
  564 |                 return PTR_ERR(mac_ascii);
      |                        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-12-22 19:45:20 +08:00
Felix Fietkau
98fc706c95 mediatek: filogic: enable maxlinear PHY support
Needed for the 7986 RFB1 board, refresh config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-22 19:43:30 +08:00
Daniel Golle
01a0580c6e mediatek: remove obsolete patch
The patch enabling hardware flow offloading support on the MT7623 SoC
has been merged upstream as of Linux 5.13. Remove our local patch which
wrongly got forward-ported and now actually enables hardware flow
offloading for the MT2701 SoC family (unsupported in OpenWrt).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-22 19:39:29 +08:00
lovehackintosh
c267a13cee
kernel: bump to 5.10.161, 5.15.85, 6.1.1 (#10666)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-22 11:25:10 +08:00
AmadeusGhost
c4be33b792 rockchip: force enable rk3568 msi interrupt
Since the interrupt of RK3568 has hardware bug,
we need a workaround to enable msi interrupt.
Without this, the r8125 will not be stable.
2022-12-21 19:30:24 +08:00
AmadeusGhost
f24975f2c5 rockchip: update rk3568 pcie2x1 dts part
Fixes: #10626
2022-12-21 19:19:14 +08:00
Koen Vandeputte
32d7126c9e kernel: package mhi pci driver
This driver provides MHI PCI controller driver for devices

Fixes: #10660

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2022-12-21 19:15:19 +08:00
Robert Marko
6b10e5f27f linux-firmware: package ath11k consumer cards firmware
Package firmware for ath11k supported QCA consumer cards from linux-firmware.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-12-21 11:59:55 +08:00
Nick Hainke
b5bcdf726d linux-firmware: update to 20221109
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-21 11:56:14 +08:00
coolsnowwolf
d3e16f203a Revert "tools/upx: remove (#10622)"
This reverts commit 71b4500ff3.
2022-12-20 23:14:22 +08:00
lovehackintosh
e32969d6bc
Kernel: bump to 5.4.228, 5.10.160, 5.15.84 (#10656)
* kernel: bump 5.10 to 5.10.160

No patches affected by this update.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.15 to 5.15.84

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.4 to 5.4.228

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-20 23:13:01 +08:00
coolsnowwolf
07423281c6 mt76: update to the latest version 2022-12-20 23:11:06 +08:00
coolsnowwolf
a45ed09431 mac80211: backport some new API from v6.1 2022-12-20 22:38:35 +08:00
coolsnowwolf
6710357cce mac80211: revert to linux 5.15 2022-12-20 14:57:32 +08:00
coolsnowwolf
710cba24d7 nftables: bump version 2022-12-20 11:47:25 +08:00
coolsnowwolf
9c97511b89 mac80211: add ath11k PCI support 2022-12-20 11:43:45 +08:00
coolsnowwolf
6d397cf174 generic: backport API from linux 6.10 for mac80211 v6.1-rc8 2022-12-20 01:18:50 +08:00
coolsnowwolf
3d38995ca2 dnsmasq: fix filter_aaaa option 2022-12-19 23:21:34 +08:00
Albert Xu
b45566e90d
package: Sync with upstream (#10641)
* firmware-utils: bump to git HEAD

Adds support for building TP-Link CPE605v1 factory images

    bd856eff4850 tplink-safeloader: add TP-Link CPE605 v1 Support

Signed-off-by: Sander Vanheule <sander@svanheule.net>

* firmware-utils: fix archive checksum

PKG_SOURCE_DATE was modified after updating PKG_MIRROR_HASH, causing the
latter to change. This results in a warning during builds and rejected
downloads.

Fixes: 232879a7b7f8 ("firmware-utils: bump to git HEAD")
Signed-off-by: Sander Vanheule <sander@svanheule.net>

* libtracefs: update to 1.6.2

378a9dd libtracefs: version 1.6.2
e6daa60 libtracefs: Add unit test to test mounting of tracefs_{tracing,debug}_dir()
32acbbf libtracefs: Have tracefs_{tracing,debug}_dir() mount {tracefs,debugfs} if not mounted

Signed-off-by: Nick Hainke <vincent@systemli.org>

* ethtool: add PKG_CPE_ID

Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* ethtool: update to 6.0

Release Notes:
https://lwn.net/Articles/910841/

Signed-off-by: Nick Hainke <vincent@systemli.org>

* strace: update to 6.1

Release Notes:
https://github.com/strace/strace/releases/tag/v6.1

Signed-off-by: Nick Hainke <vincent@systemli.org>

* trace-cmd: update to v3.1.5

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* libtraceevent: update to 1.7.0

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* libtracefs: update to 1.6.3

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/bash: update to 5.2.15

Update to the latest released version.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/ccache: update to 4.7.4

Release Notes:
    https://ccache.dev/releasenotes.html#_ccache_4_7_3
    https://ccache.dev/releasenotes.html#_ccache_4_7_4

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/libressl: update to 3.7.0

Release notes:
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.0-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.1-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.0-relnotes.txt

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/mpc: update to 1.3.1

Version 1.3.1 new features:
	Bug fix: It is again possible to include mpc.h without including stdio.h.
Version 1.3.0 new features:
    New function: mpc_agm
    New rounding modes "away from zero", indicated by the letter "A" and corresponding to MPFR_RNDA on the designated real or imaginary part.
    New experimental ball arithmetic.
    New experimental function: mpc_eta_fund
    Bug fixes:
        mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
        mpc_pow_fr: sign of zero part of result when the base has up to sign the same real and imaginary part, and the exponent is an even positive integer
        mpc_fma: the returned int value was incorrect in some cases (indicating whether the rounded real/imaginary parts were smaller/equal/greater than the exact values), but the computed complex value was correct.
    Remove the unmaintained Makefile.vc; build files for Visual Studio are maintained independently by Brian Gladman.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* tools/patchelf: update to 0.17.0

Update to the latest released version.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: Sander Vanheule <sander@svanheule.net>
Co-authored-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-19 12:45:05 +08:00
lovehackintosh
bc3e54a83d
tools/sed: Fix handling of symlinks of 128 chars (#10642)
If the absolute path a symlink is pointing to is 128 bytes long sed
failed with an error message like this: "<path>/sedstbU8O: Not a directory"

This fixes a problem building python seen in the build bot.

This patch is on its way into upstream sed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-19 12:44:49 +08:00
lovehackintosh
71b4500ff3
tools/upx: remove (#10622)
upx is already in package/lean/upx
save a bit of compilation time.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-18 22:59:13 +08:00
coolsnowwolf
b0e3285bf0 dnsmasq: set a cachesize default value 8192 2022-12-18 22:52:26 +08:00
AmadeusGhost
d5298b0769 ath10k: add missing 256qam patch 2022-12-18 21:50:14 +08:00
Felix Fietkau
3f8f00b491 mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:33:21 +08:00
Felix Fietkau
0aac47f815 ath9k: add missing dependency on random core
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:32:24 +08:00
Felix Fietkau
bdb6a31ce2 mac80211: update to linux 6.1-rc8
This should help stay in sync with upstream development

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:30:21 +08:00
Felix Fietkau
e8b525f43c mac80211: remove old legacy legacy drivers
Get rid of drivers that are either limited to 802.11b/g or don't even support
cfg80211/mac80211. Most of these are either limited to boards that we don't even
support anymore because of firmware size, or were only used for custom hacks by
a really small number of users in the past.
Let's get rid of those to reduce the maintenance effort and the number of useless
packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 20:25:07 +08:00
AmadeusGhost
82a059873f mediatek: drop useless files 2022-12-18 12:24:30 +08:00
Hauke Mehrtens
61c54ee563 gdb: Do not link against xxhash
libxxhash is now available in the OpenWrt package feed and gdb will link
against it if gdb finds this library. Explicitly deactivate the usage
of xxhash.

This should fix the build of gdb in build bots.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-18 12:20:13 +08:00
Hauke Mehrtens
b533cb3266 kernel: Make KERNEL_MAKEOPTS recursively expanded
KERNEL_MAKEOPTS will get expanded when it is used and not when it is
defined in the kernel.mk file now. This fixes problems finding dependent
kernel modules when it is used by a kernel module package.

Without this change the build of packages which depend on other out of
tree modules failed when they used KERNEL_MAKE because some symbols could
not be found. This happened because KERNEL_MAKE_FLAGS which contains a
"if $(__package_mk)" was  evaluated where KERNEL_MAKEOPTS was defined
and not when the KERNEL_MAKE was used. For packages which included
kernel.mk before package.mk we saw this problem. One workaround
was to use the correct include order and the other one was to not
use KERNEL_MAKE_FLAGS, but copy its content.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-18 12:19:56 +08:00
Furong Xu
2569dc001c mediatek: add LED support for Xiaomi Redmi AX6000
add DT nodes and default package for the LEDs on Redmi AX6000

Signed-off-by: Furong Xu <xfr@outlook.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:24:24 +08:00
Furong Xu
8563a8117b mediatek: enable sel_clk for spi-mt65xx
Without explicitly enabling sel_clk, clk_disable_unused() will disable
it when boot is done, causing CPU hang on SPI1 register access on MT7986.
Explicitly enable sel_clk to make SPI1 functional.

Signed-off-by: Furong Xu <xfr@outlook.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:22:54 +08:00
Chuanhong Guo
599d5ef309 kernel: add driver package for WS2812B LEDs
Two WS2812B (NeoPixel) clones are used in Xiaomi Redmi AX6000 as
indicator lights. Add a driver for controlling it using SPI MOSI.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-17 11:21:23 +08:00
Tony Butler
450a7a3686 kernel: modules/lib-lz4: add lz4hc_compress
enable option `CONFIG_CRYPTO_LZ4HC` to match default kernel config

this only adds the `lz4hc_compress` module, and has no effect on the
`lz4_decompress` module which already supports any flavor

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-17 11:20:09 +08:00
Stijn Tintel
a70fb090cd kernel: add missing symbol to 5.10 config
Kernel 5.10.158 added a prompt for the FUNCTION_ERROR_INJECTION symbol.
This is exposed in builds with CONFIG_KERNEL_KPROBES enabled, causing
those builds to fail due to a missing symbol. Add the symbol to fix
this.

Fixes: 6801c460b6a7 ("kernel: bump 5.10 to 5.10.158")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-17 11:19:05 +08:00
Stijn Tintel
68023f2712 kernel: add missing symbol to 5.15 config
Kernel 5.15.82 added a prompt for the FUNCTION_ERROR_INJECTION symbol.
This is exposed in builds with CONFIG_KERNEL_KPROBES enabled, causing
those builds to fail due to a missing symbol. Add the symbol to fix
this.

Fixes: 68426e54eda4 ("kernel: bump 5.15 to 5.15.82")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-17 11:18:39 +08:00
AmadeusGhost
72d0e2b562 linux-firmware: add rtl8723du-firmware 2022-12-16 12:38:16 +08:00
AmadeusGhost
09c81d9274 rtw88: move usb part out of backport tree
Create a useless driver to avoid affecting the
backport tree.
2022-12-16 12:09:00 +08:00
coolsnowwolf
9364fa6e6c firewall: fix locking issue when running racing condition 2022-12-16 11:32:41 +08:00
Albert Xu
4952f51d17
tools/dosfstools: fix PKG_SOURCE (#10620)
Both mirrors provided in the Makefile only serve gzipped tarballs.

Fixes: #10871
Fixes: 9edfe7dd13d9 ("source: Switch to xz for packages and tools where possible")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-12-15 18:26:27 +08:00
lovehackintosh
7660f97fb6
kernel: bump to 5.4.227, 5.10.159, 5.15.83 (#10619)
* kernel: bump 5.15 to 5.15.83

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: bump 5.10 to 5.10.159

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: bump 5.4 to 5.4.227

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-15 13:14:31 +08:00
coolsnowwolf
afb7eaa4bb dnsmasq: drop mini_ttl option 2022-12-15 13:13:15 +08:00
coolsnowwolf
8c172cc7bf dnsmasq: add support for filter-AAAA/A 2022-12-15 12:18:02 +08:00
coolsnowwolf
a1b503c6ad dnsmasq: add logfacility file to jail mounts 2022-12-15 12:09:41 +08:00
coolsnowwolf
e50a86b90f firewall: set default fullcone to high performance mode 2022-12-15 03:59:10 +08:00
coolsnowwolf
418a674f86 generic: fix linux 6.1 flowoffload support 2022-12-15 03:56:39 +08:00
Hauke Mehrtens
557fbb82b6 kernel: kmod-ipt-ulog: Remove package
The ulog iptables target was removed with kernel 3.17, remove the kernel
and also the iptables package in OpenWrt too.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-15 01:47:28 +08:00
coolsnowwolf
6b480374fd rockchip: fix opc-h68k tf boot fail on some cards 2022-12-15 00:53:32 +08:00
coolsnowwolf
830bc8e815 dnsmasq: bump to v2.8.7 2022-12-15 00:44:58 +08:00
coolsnowwolf
4a5a6e637e silicon: fix kernel target 2022-12-14 18:35:35 +08:00
Hauke Mehrtens
7293fb0e42 kernel: Refresh kernel 5.10
Make the patches apply cleanly again.

Fixes: 8327e0fb72f0 ("kernel: backport the dev_set_threaded export to 5.10")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-14 12:15:23 +08:00
aakkll
a019519831 kernel: refresh linux 6.1 patches 2022-12-14 12:13:24 +08:00
AmadeusGhost
56de4ccd61 treewide: remove kernel 6.0 support 2022-12-14 12:10:38 +08:00
AmadeusGhost
2e543c861a sunxi: add kernel 5.10 support 2022-12-14 12:00:10 +08:00
coolsnowwolf
ede1c194f6 mac80211: backport ath11k in linux kernel 6.1 2022-12-14 05:04:31 +08:00
coolsnowwolf
9185096ac0 Update README.md 2022-12-14 03:15:13 +08:00
Beginner
7eec2d4474
luci-app-qbittorrent-simple: move to luci feeds (#10606)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>

Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-12-14 03:05:47 +08:00
coolsnowwolf
9a103d038b rockchip: fix radxa e25 adc-keys power button support 2022-12-14 02:25:17 +08:00
coolsnowwolf
4212f116b4 mac80211: backports linux 6.1 support 2022-12-14 01:52:15 +08:00
AmadeusGhost
74a3f1191b ksmbd: fixes build on kernel 6.1
Fixes: #10604

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-12-14 00:54:30 +08:00
AmadeusGhost
e6f5ad32af rockchip: add kernel 6.1 support 2022-12-14 00:10:54 +08:00
AmadeusGhost
b4bbdc1e99 rockchip: correct board name for radxa e25 2022-12-13 23:56:22 +08:00
coolsnowwolf
93f840212b kernel: fix build fail with zstd 2022-12-13 22:25:18 +08:00
coolsnowwolf
994a4c48e4 kernel: add linux 6.1 stable release support 2022-12-12 19:29:09 +08:00
AmadeusGhost
3cdf9dc3c3 Revert "kernel: export symbol dev_set_threaded"
This reverts commit ba1f8c931c.
Fixes: #10589, #10593, #10595
2022-12-12 15:09:28 +08:00
Malash
71a7686e61
ath11k-firmware: update latest firmware for wcn6855 (#10572)
* ath11k-firmware: update latest firmware for wcn6855

* don't strip bin files in ath11k firmware
2022-12-12 00:22:04 +08:00
coolsnowwolf
2adae81a9c default-settings: fix password init 2022-12-12 00:19:56 +08:00
Weiping Yang
aa4ef903bd ipq40xx: fix usb driver not loaded for GL-A1300
This patch enables USB support for the GL.iNet GL-A1300
Repair the usb driver startup phase is not loaded

Signed-off-by: Weiping Yang <weiping.yang@gl-inet.com>
2022-12-11 15:28:35 +08:00
Felix Fietkau
177dddfaf2 kernel: backport the dev_set_threaded export to 5.10
Fixes mt76 build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-11 15:17:02 +08:00
Felix Fietkau
efafaab7df kernel: backport mtk_wed.h from 5.15 to 5.10
Fixes mt76 build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-11 15:16:04 +08:00
Felix Fietkau
6725061f86 mt76: update to version 2022-12-01
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-11 15:15:15 +08:00
AmadeusGhost
491b722401 wolfssl: fix build with /dev/crypto 2022-12-11 15:10:48 +08:00
aiamadeus
d86fda2741
Merge pull request #10564 from 1582130940/pull 2022-12-11 08:25:52 +08:00
AmadeusGhost
048637aba2 mtwifi: disable set_fs by default
This fixes various kernel panic issues.
2022-12-10 12:53:10 +08:00
AmadeusGhost
22746824c5 mtwifi: formatted version output
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-12-10 12:50:03 +08:00
AmadeusGhost
0d04d79c71 dnsmasq: replace patches with upstream 2022-12-10 12:36:23 +08:00
AmadeusGhost
73baf54567 download.pl: update and fix some mirrors
Fixes: 3b4c47d ("download.pl: use more Chinese mirrors")
2022-12-10 12:32:24 +08:00
lovehackintosh
7979de9ed9
kernel: bump to 5.4.226, 5.10.158, 5.15.82 (#10573)
* kernel: bump 5.15 to 5.15.82

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: add symbol in generic config for 5.10.157

Add CONFIG_INET_TABLE_PERTURB_ORDER=16 to generic config

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.158

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* kernel: bump 5.4 to 5.4.226

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-09 18:18:58 +08:00
aakkll
419f7c78eb
kernel: bump 6.0 to 6.0.12 (#10567)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-12-09 01:23:41 +08:00
coolsnowwolf
ba51efb27d ath11k-wifi: add Edgecore EAP102 bdf support 2022-12-09 01:23:11 +08:00
Bob Cantor
5052e70674 base-files: wifi: for wifi reconf, scan_wifi after network reload
Commit e8b542960921 included an unintended change and we now call
scan_wifi before a network reload.

Restore the original behaviour and call scan_wifi only after a network
reload.

Fixes: e8b542960921 ("base-files: wifi: tidy up the reconf code")
Signed-off-by: Bob Cantor <bobc@confidesk.com>
2022-12-08 17:41:33 +08:00
Bob Cantor
1688dda0ba base-files: wifi: for wifi up, scan_wifi after network reload
Commit b82cc8071366 included an unintended change and we now call
scan_wifi before a network reload.

Restore the original behaviour and call scan_wifi only after a network
reload.

Fixes: b82cc8071366 ("base-files: wifi: swap the order of some ubus calls")
Signed-off-by: Bob Cantor <bobc@confidesk.com>
2022-12-08 17:41:33 +08:00
Olliver Schinagl
cb419fc847 base-files: Actually set default name
The currently used shell expansion doesn't seem to exist [0] and also
does not work. This surely was not intended, so lets allow default
naming to actually work.

[0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html

Fixes: be09c5a3cd65 ("base-files: add board.d support for bridge device")
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2022-12-08 17:39:42 +08:00
Rucke Teg
fb92a12a00 base-file: remove password aging feature form /etc/shadow
In the default shadow file, as visible in the failsafe mode, the user
root has value of `0` set in  the 3rd field, the date of last password
change. This setting means that the password needs to be changed the
next time the user will log in the system. `dropbear` server is ignoring
this setting but `openssh-server` tries to enforce it and fails in the
failsafe mode because the rootfs is R/O.

Disable the password aging feature for user root by setting the 3rd
filed empty.

Signed-off-by: Rucke Teg <rucketeg@protonmail.com>
2022-12-08 17:38:14 +08:00
Rosen Penev
7c60c21768 base-files: replace fgrep with grep -F
fgrep is deprecated and replaced by grep -F. The latter is used
throughout the tree whereas this is the only usage of the former.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-12-08 17:36:23 +08:00
Paul Spooren
86e7043d56 base-files: fix /tmp/TZ when zoneinfo not installed
The zoneinfo packages are not installed per default so neither
/tmp/localtime nor /tmp/TZ is generated.

This patch mostly reverts the previous fix and instead incooperates a
solution suggested by Jo.

Fixes "base-files: fix zoneinfo support " 8af62ed

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-12-08 17:35:37 +08:00
Rosen Penev
d8f60f0b7f base-files: fix zoneinfo support
The system init script currently sets /tmp/localinfo when zoneinfo is
populated. However, zoneinfo has spaces in it whereas the actual files
have _ instead of spaces. This made the if condition never return true.

Example failure when removing the if condition:

/tmp/localtime -> /usr/share/zoneinfo/America/Los Angeles

This file does not exist. America/Los_Angeles does.

Ran through shfmt -w -ci -bn -sr -s

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-12-08 17:35:37 +08:00
Rafał Miłecki
bf08ffb051 base-files: call "sync" after initial setup
OpenWrt uses a lot of (b)ash scripts for initial setup. This isn't the
best solution as they almost never consider syncing files / data. Still
this is what we have and we need to try living with it.

Without proper syncing OpenWrt can easily get into an inconsistent state
on power cut. It's because:
1. Actual (flash) inode and data writes are not synchronized
2. Data writeback can take up to 30 seconds (dirty_expire_centisecs)
3. ubifs adds extra 5 seconds (dirty_writeback_centisecs) "delay"

Some possible cases (examples) for new files:
1. Power cut during 5 seconds after write() can result in all data loss
2. Power cut happening between 5 and 35 seconds after write() can result
   in empty file (inode flushed after 5 seconds, data flush queued)

Above affects e.g. uci-defaults. After executing some migration script
it may get deleted (whited out) without generated data getting actually
written. Power cut will result in missing data and deleted file.

There are three ways of dealing with that:
1. Rewriting all user-space init to proper C with syncs
2. Trying bash hacks (like creating tmp files & moving them)
3. Adding sync and hoping for no power cut during critical section

This change introduces the last solution that is the simplest. It
reduces time during which things may go wrong from ~35 seconds to
probably less than a second. Of course it applies only to IO operations
performed before /etc/init.d/boot . It's probably the stage when the
most new files get created.

All later changes are usually done using smarter C apps (e.g. busybox or
uci) that creates tmp files and uses rename() that is expected to be
atomic.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2022-12-08 17:32:22 +08:00
lovehackintosh
5a8163e07b
sync with upstream (#10562)
* package: sync with upstream

Removed: package/libs/libselinux/bcm27xx-userland (Already in package/utils/bcm27xx-userland)

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* uclibc++: remove

No package here depends on it. Furthermore, uClibc++ is a fairly buggy
C++ library and seems to be relatively inactive upstream.

It also lacks proper support for modern C++11 features.

The main benefit of it is size: 66.6 KB	vs 287.3 KB on mips24kc. Static
linking and LTO can help bring the size down of packages that need it.

Added warning message to uclibc++.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

* target: sync with upstream

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

* toolchain: gcc: Remove gcc 10.x support

This compiler is old and was never used by default in OpenWrt.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* ucode: update to latest Git HEAD

46d93c9 tests: fixup testcases
4c654df types: adjust double printing format
eac2add compiler: fix bytecode for logical assignments of properties
3903b18 fs: add `realpath()` function
8366102 math: add isnan() function
eef83d3 tests: relax sleep() test
394e901 lib: uc_json(): accept trailing whitespace when parsing strings
1867c8b uloop: terminate parent uloop in task child processes
d2cc003 uci: auto-load package in `ctx.foreach()` and `ctx.get_first()`
6c5ee53 compiler: ensure that arrow functions with block bodies return no value
fdc9b6a compiler: fix `??=`, `||=` and `&&=` logical assignment semantics
88dcca7 add cmake to install requires for debian

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* firewall4: update to latest Git HEAD

700a925 fw4: prevent null access when no ipsets are defined
6443ec7 config: drop input traffic by default
119ee1a ruleset: drop ctstate invalid traffic for masq-enabled zones

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ustream-ssl: update to Git version 2022-12-07

9217ab4 ustream-openssl: Disable renegotiation in TLSv1.2 and earlier
2ce1d48 ci: fix building with i.MX6 SDK
584f1f6 ustream-openssl: wolfSSL: provide detailed information in debug builds
aa8c48e cmake: add a possibility to set library version

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* tools/mpfr: import patch fixing macro bug

Co-authored-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Co-authored-by: Rosen Penev <rosenp@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Jo-Philipp Wich <jo@mein.io>
Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-12-08 14:20:57 +08:00
coolsnowwolf
40e8e1c3a9 Revert "ipq60xx: Add upstream patch for USB Support"
This reverts commit 13d0aa75dc.
2022-12-08 14:19:31 +08:00
coolsnowwolf
13d0aa75dc ipq60xx: Add upstream patch for USB Support 2022-12-08 02:12:24 +08:00
coolsnowwolf
2c391cb203 autocore: improve x86 index display 2022-12-08 01:32:30 +08:00
coolsnowwolf
4a372f56c2 x86: add support for iKoolCore R1 (eth1/2/3 for LAN, eth0 for WAN) 2022-12-08 01:26:02 +08:00
coolsnowwolf
91cf34988c Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-12-08 01:10:15 +08:00
coolsnowwolf
5bfb6e66ac x86: improve sysinfo handling of special values 2022-12-08 01:10:02 +08:00
Hannu Nyman
1b3dc82996 tools/cmake: update to 3.25.1
Update cmake to version 3.25.1

* refresh patches

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-12-08 00:09:10 +08:00
Tony Butler
7c61e2491e build: add gzip to prereq-build.mk
gzip has never been checked for, a system without it would be rare, fix
it anyway

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-08 00:06:20 +08:00
Tony Butler
95ee1c7be9 build: images: squashfs: add help, fix description
add help text for `TARGET_SQUASHFS_BLOCK_SIZE` to match the only valid
settings accepted by `mksquashfs4` ("block size not power of two or not
between 4096 and 1Mbyte") thus for this setting in "KB", the set:
  `4, 8, 16, 32, 64, 128, 256, 512, 1024`

replace `squashfs-lzma` with `squashfs` in the description for
`TARGET_ROOTFS_SQUASHFS` because it has various compressions, and not
just lzma as it did in the past

cosmetic change with no functional effect

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-08 00:05:23 +08:00
Hauke Mehrtens
17e7a58be0 kernel: ca8210: Fix crash by zero initializing data
This fixes crashes at bootup on pistachio.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-08 00:03:13 +08:00
Hauke Mehrtens
ba9d2a90c9 e2fsprogs: Fix CVE-2022-1304
This fixes CVE-2022-1304:
An out-of-bounds read/write vulnerability was found in e2fsprogs 1.46.5.
This issue leads to a segmentation fault and possibly arbitrary code
execution via a specially crafted filesystem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-08 00:02:17 +08:00
Daniel Golle
cd447c0218 mediatek: mt7623: build mt6577_auxadc driver into kernel
Set CONFIG_MT6577_AUXADC=y as otherwise reading temperature of the
thermal-zone doesn't work on MT7623 (it does work fine without this
driver on MT7622 and MT7986).

Fixes: f2ae4e2f8c ("mediatek: clean up platform kernel modules")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-07 23:28:03 +08:00
Daniel Golle
67942ac692 trusted-firmware-a.mk: fix build with binutils 2.39
Starting from version 2.39 binutils now warns about sections with rwx
permissions. While this is generally desirable it breaks building
ARM TrustedFirmware-A bl2 which treats warnings as errors.
Disable the warning/error for now to fix build.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-07 23:27:15 +08:00
Daniel Golle
e26baac89c build: make sure that $(STAGING_DIR_IMAGE) exists
Call 'mkdir -p $(STAGING_DIR_IMAGE)' before trying to store files in
this potentially non-existing folder.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-12-07 23:26:19 +08:00
lovehackintosh
7468945d5b
kernel: bump 5.10 to 5.10.157 (#10561)
Manually rebased:
	backport-5.10/610-v5.13-32-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch
	hack-5.10/645-netfilter-connmark-introduce-set-dscpmark.patch[1]

All other patches automatically rebased

1. Rebase by Kevin 'ldir' Darbyshire-Bryant<ldir@darbyshire-bryant.me.uk>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-06 18:01:43 +08:00
lovehackintosh
944341aaf2
kernel: bump 6.0 to 6.0.11 (#10556)
Manually rebased:
	hack-6.0/645-netfilter-connmark-introduce-set-dscpmark.patch[1]

All other patches automatically rebased

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-06 15:02:11 +08:00
lovehackintosh
a653ef540f
kernel: bump 5.15 to 5.15.81 (#10554)
* kernel: bump 5.15 to 5.15.81

Manually rebased:
	backport-5.15/715-v6.0-net-ethernet-mtk_eth_soc-add-the-capability-to-run-m.patch
	hack-5.15/645-netfilter-connmark-introduce-set-dscpmark.patch[1]

All other patches automatically rebased

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-12-06 15:01:21 +08:00
coolsnowwolf
456cf0c5b3 Version update to R22.12.1 2022-12-06 00:27:13 +08:00
coolsnowwolf
193db6f186 network: add brcm fullcone support from ASUS Merlin kernel 4.19 2022-12-06 00:26:03 +08:00
aiamadeus
cb6d8ad182
Merge pull request #10550 from 1582130940/pull 2022-12-05 18:01:01 +08:00
Boris Krasnovskiy
2ebe2ee1b8 ustream-ssl: prevent unused crypto lib dependencies from being compiled
Prevented unused crypto lib dependencies from being compiled

Signed-off-by: Boris Krasnovskiy <borkra@gmail.com>
2022-12-05 16:00:20 +08:00
Petr Štetiar
963ba0d467 ncurses: add package CPE ID
Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

Suggested-by: Steffen Pfendtner <s.pfendtner@ads-tec.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-12-05 15:59:20 +08:00
Nick Hainke
c961e51371 libunwind: update to 1.6.2
Remove upstreamed:
- 001-Don-t-force-exec_prefix-lib64-libdir-on-ppc64.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:58:56 +08:00
Stijn Tintel
6cfe1fbeb9 libunwind: add ppc64 support
Backport an upstream patch to make libunwind build on ppc64, and add
powerpc64 to the dependencies.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-12-05 15:58:56 +08:00
Nick Hainke
d6139fe976 libtool: update to 2.4.7
Changes:
6d7ce133 version 2.4.7
b4a37606 NEWS: roll-back manually filled NEWS versioning
33615a45 NEWS: fill entries for past commits
f5eb6f11 libltdl: bump libltdl.la version-info.
28fbcb6a libtool: correct linter syntax complaints in M4
7e69e441 gnulib: update submodule to new repository.
2dc7dad7 maint: update copyrights across project.
b55b1cc8 libtool: Do not pass '-pthread' to Solaris linker.
960a33e4 docs: manually recording dependencies in Automake
78652682 tests: remove deprecated old-ltdl-iface.at test.
f51eddf0 * libtool: Bump M4 serial versions and add missing AC_PROG_SED to ltdl.m4
ccc878dd libtool: replace raw invocations of sed with $SED
5df7dd49 libtool: add support for MidnightBSD
8f4bdbda libtool: powerpc 10.5 detection without a deployment target
9e8c8825 libtool: support macOS 11
0904164d libtool: correct m4 quoting in sed expression
da2e3527 libtool: replace some references to /usr/bin/file and /bin/sh
1b74d784 libtool: Add -Wa,* link-mode flag for assembler pass-thru
86d71e86 libtool: Pass -Xassembler flag and arguments to compiler
fc7779d7 maint: update Bootstrap git module
0c1bc69d maint: update copyrights across project.
28fb394f maint: update AUTHORS, copyright date.
b9b44533 bootstrap: use $gnulib_clone_since
544fc0e2 maint: update bootstrap, gnulib, copyright dates
b88cebd5 maint: update bootstrap, gnulib, copyright dates
99bd0948 libtool: add icl.exe support
6ca5e224 docs: typo in 'win32-dll' description
1bfb11a4 libtool: quote 'cd' command in shipped relink_command
722b6af0 doc: fix typos in --mode=install invocations
350082b6 libtool: exit verbosely for fatal configure problems
792b6807 maint: update copyright years
f003a1f9 libltdl: handle ENOMEM in lt_dlloader_remove()
08c5524f bootstrap: use the upstream repo as git module
a938703c libtool: set file_list_spec to '@' on OS/2
f10e22c2 tests: fix $objdir hardcoding check with CFLAGS=-g3
f9970d99 libtool: pass through -fuse-ld flags
d7c8d3b4 m4/libtool.m4: FreeBSD elftoolchain strip support
807cbd63 libtoolize: exec automake and autoconf only with --help
40bc0628 edit-readme-alpha: generate the "stable" README properly
b89a47ea maint: fix for 'make sc_immutable_NEWS' hints
bb8e7b4a maint: update copyright years
b5d44b84 libltdl: handle ENOMEM sooner
5944fdcc gl: minor typo fixes
49856679 gl-tests: dash && option-parser test fix
a5c64665 libtool: fix GCC/clang linking with -fsanitize=*
ae816ace gl-tests: make the failure more readable
d15b3214 m4/libtool.m4: export AIX TLS symbols
aabc46ac gl/tests: new tests for options-parser
dc8bd92d gl/funclib.sh: func_quotefast_eval & tilde fix
a3c6e99c syntax-check: fix sed syntax errors
f323f10d gl/tests: new tests for func_quote* family
ed4f739f check: enable gnulib's testsuite
9187e9a2 funclib: refactor quoting methods a bit
16dbc070 libtool: optimizing options-parser hooks
32f0df98 libtool: mitigate the $sed_quote_subst slowdown
b7b6ec33 gnulib: sync with upstream
5859cc50 maint: relax 'sc_prohibit_test_dollar' check
418129bc ARFLAGS: use 'cr' instead of 'cru' by default
4335de1d libool.m4: add ARFLAGS variable
0f842177 maint: put newline after 'Subject' in ChangeLog
03ec5f49 gnulib: sync with upstream
351a88fe libtoolize: fix infinite recursion in m4
de7b2cb2 bootstrap: fix race in temporary Makefile
702a97fb libtool: fix GCC linking with -specs=*
4ff16210 maint: demote myself from maintainer to former maintainer.
c12d38e4 maint: post-release administrivia

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:58:28 +08:00
Nick Hainke
fde47411c0 libnl: add PKG_CPE_ID
Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:57:33 +08:00
Nick Hainke
44c51f5505 libnl: update to 3.7.0
Changes:
1bb4162 libnl-3.7.0 release
897ec9c route: act: Allow full set of actions on gact,skbedit,mirred
00e46f1 Use print() function in both Python 2 and Python 3
083c1b6 sriov: fix setting ce_mask when parsing VF stat counter
2e9a4f7 Fix typos and errors
cc87ad2 changelog: update URL to git history
bde0b4c changelog: fix typos in ChangeLog
44988e6 route: format recently added code with clang-format
df6e38b route/act: add NAT action
7304c42 route: format recently added code with clang-format
f8eb218 cls: flower: extend flower API
e5dc111 flower: use correct attribute when filling out flags
df6058c tests: merge branch 'th/test-link'
9772c1d tests: add unit tests for creating links
4713b76 github: run unit tests several times and directly
8025547 github: export NLTST_SEED_RAND= to randomize unit tests
7efeca2 tests: add test utils
f6f4d36 tests: reformat unit test files with clang-format
135a706 utils: add _NL_AUTO_DEFINE_FCN_STRUCT() macro
0ea11be utils: add _nl_thread_local macro
9b04936 route: fix crash caused by parse_multipath() by wrong free()
2effffe route/link: Set the cache ops when cloning a link
5ecd56c route/link: add lock around rtnl_link_af_ops_put()
e1a077a route/link: avoid accessing af_ops after af_free() in rtnl_link_set_family()
3f4f1dd xfrm/sa: fix reference counters of sa selector addresses
d3c783f all: merge branch 'th/coverity-fixes'
23a75c5 xfrm: fix uninitalized variables in build_xfrm_ae_message()
d52dbcb route: fix check for NULL in nh_encap_dump()
1f61096 route/qdisc/mqprio: fix bufferoverflow and argument checking in rtnl_qdisc_mqprio_set_*()
f918c3a route/sriov: fix buffer overflow in rtnl_link_sriov_parse_vflist()
d4c7972 all: fix "-Wformat" warnings for nl_dump*()
6b2f238 netlink/utils.h: mark nl_dump() with __attribute__((format(printf,a,b)))
d3bd278 netlink/utils.h: add internal _nl_attribute_printf macro for public headers
a30b26d socket: workaround undefined behavior coverity warning in generate_local_port()
8acf6d5 nl-pktloc-lookup: fix buffer overflow when printing alignment
bf3585f route/link/sriov: fix initializing vlans in rtnl_link_sriov_clone()
dd06d22 route/qdisc/netem: fix bogus "%" in format string netem_dump_details()
f50a802 route/u32: fix u32_dump_details() to print data
fa79ee3 link/vrf: avoid coverity warning in rtnl_link_vrf_set_tableid() about CONSTANT_EXPRESSION_RESULT
31380f8 utils: suppress coverity warning in nl_cli_load_module() about leaked handle
aa398b5 route/ip6vti,ip6gre: fix printing invalid data in ip6{vti,gre}_dump_details()
40683cc netlink/private: add internal helper utils
6615dc0 route/link: workaround coverity warning about leak in rtnl_link_set_type()
ff5ef61 all: avoid coverity warnings about assigning variable but not using it
f58a3c0 route/mdb: check parser error in mdb_msg_parser() for nested MDBA_MDB attribute
46506d3 route/mdb: add and use rtnl_mdb_entry_free() internal helper method
46e85d2 route/mdb: fix leak in mdb_msg_parser()
b0641dd route/mdb: add _nl_auto_rtnl_mdb cleanup macro
d544105 route/mdb: fix buffer overflow in mdb_msg_parser()
4d12b63 tests: silently ignore EACCES for setting uid_map for test namespace
ec712a4 tests: cleanup unshare_user() and use _nltst_fclose()
85e3c5d tests: add _assert_nltst_netns() helper
39e4d8d github: test out-of-tree build and "--disable-static"
d63e473 github: build documentation in CI test
fa7f97f build: avoid building check-direct with --disable-static
8c741a7 tools: fix aborting on failure in "tools/build_release.sh" script
e2aa409 doc: fix markup error in "doc/route.txt"
4f3b4f9 doc: fix python2-ism in "doc/resolve-asciidoc-refs.py"

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:57:33 +08:00
Nick Hainke
174f3b3626 libnfnetlink: add PKG_CPE_ID
Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:57:05 +08:00
Nick Hainke
775c17bc35 libmnl: add PKG_CPE_ID
Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:56:49 +08:00
Nick Hainke
22414c41b5 elfutils: update to 1.88
Release Notes:
https://sourceware.org/pipermail/elfutils-devel/2022q4/005561.html

Refresh patches:
- 003-libintl-compatibility.patch
- 100-musl-compat.patch
- 101-no-fts.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:54:21 +08:00
Andrey Erokhin
9fc7db0684 gpio-button-hotplug: fix data race
bh_event_add_var can be called by multiple threads concurrently,
so it shall not use a static char buffer

Signed-off-by: Andrey Erokhin <a.erokhin@inango-systems.com>
2022-12-05 15:52:57 +08:00
Nick Hainke
244dbb0b6b tools/xz: update to 5.2.9
Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-12-05 15:49:57 +08:00
Tony Butler
4eb9eebd05 build: config: cleanup impossible dependency logic
some config `depends on` lines contained outdated kernel version checks
that can no longer happen and had become non-operational; clean them up

cosmetic change with no functional effect

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-05 15:49:52 +08:00
Aleksander Jan Bajkowski
6c544582dd mediatek: mt7623: disable swconfig
The mt7623 subtarget supports 2 devices:
 * Bananapi BPi-R2 (added in 1f068588efddf0175e954ffc07ec8478bddd52c7, 7762c07c88980cff85ec20c12f18cd172260e9d9),
 * UniElec U7623-02 (added in 4def81f30f2e89eeecc6ec06e3091f1dd6b3c3d9).

Both devices support DSA from the beginning, thus
swconfig can be safely disabled.

In the past, the subtarget mt7623 also supported
the mt7623 reference board. This board originally
supported swconfig, and was later converted to DSA
(64175ffb7911f5fcd3907df09fdb9bfab53ee641) and then dropped (1ab81bf02d750c9a2a447dbf4fdb323921f291d7).

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-12-04 23:55:11 +08:00
Aleksander Jan Bajkowski
72e2de9e64 mediatek: mt7623: refresh config
This was done by executing these command:
$ time make kernel_oldconfig CONFIG_TARGET=subtarget

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-12-04 23:54:44 +08:00
Senis John
7654ca0114 ramips: add support for HiWiFi HC5611
CPU: MediaTek MT7628AN @ 575 MHz
Flash: 16 MB
RAM: 128 MB
Ethernet: 10/100Mbps x 1
Wlan: 300 Mbps
USB: USB 2.0 x 1
LED: red/green x 1
Button: reset x 1

1. Open https://www.hiwifi.wtf/, Get Cloud token and unlock ssh
2. Upload the openwrt firmware to the router via SCP
3. Login the router via SSH
4. Run `mtd -r write path_to_firmware.bin firmware`

I have tested on my device.
- The LED will display RED on power-on, After system start completed, trun GREEN
- Reset button working now. Long press after 5s will reset factory. Short press less 1s will reboot the device
- USB can working under official u-boot

Signed-off-by: Senis John <thank243@gmail.com>
2022-12-04 23:48:43 +08:00
Kien Truong
e2578b7d82 rockchip: enable watchdog driver
Enable Synopsys DesignWare watchdog driver for rockchip device

Tested on NanoPi R2S

Signed-off-by: Kien Truong <duckientruong@gmail.com>
2022-12-04 23:47:29 +08:00
AmadeusGhost
276348a4e4 upx: fixes build with gcc 11
Fixes: #10540
Fixes: a5c9813 ("upx: witch to the release version")
2022-12-03 18:42:15 +08:00
AmadeusGhost
5fc98f62c4 rockchip: backport yt8531s driver from net-next
Fixes: #10497
2022-12-03 18:39:04 +08:00
coolsnowwolf
0e72b739ca ramips: HATLab GateBoard-One using gen_image_generic.sh to gen image 2022-12-02 22:09:35 +08:00
AmadeusGhost
a5c98133c2 upx: witch to the release version
There is no reason to use a date to download source.
2022-12-02 21:18:16 +08:00
AmadeusGhost
c1d76d3b25 rockchip: opc-h68k: add sata support 2022-12-02 21:16:35 +08:00
AmadeusGhost
ae96f27ccb ramips: fixes kernel 5.4 mt76 build error
Fixes: #10537
2022-12-02 21:09:47 +08:00
coolsnowwolf
31a2de36ab ramips: fix HATLab GateBoard-One Support 2022-12-01 14:05:27 +08:00
AmadeusGhost
2173f1c0ea mt76: fixes kernel 5.4 build error
Fixes: #10524
2022-11-30 17:40:29 +08:00
AmadeusGhost
db62eea63c iwinfo: backport MT7986 related commit 2022-11-30 17:01:36 +08:00
AmadeusGhost
ecf4e9e890 rockchip: backport Amlogic S905 emmc fixes
Fixes: #10471
2022-11-30 16:59:20 +08:00
coolsnowwolf
a9671e8543 rockchip: 5.15: backport yt8521 driver from upstream kernel v6.2 2022-11-30 15:23:53 +08:00
Albert Xu
b1a02a7a64
Revert "r8101: update to 1.038.02" (#10523)
Fix: #10522
2022-11-29 22:40:22 +08:00
Albert Xu
55bcd01c6c
r8168: Drop 020-5.18-support (#10518)
* Fix build error, 8.051.02 no longer needs this patch
2022-11-29 01:10:37 +08:00
Albert Xu
4bb063214f
package: Update realtek ethernet driver (#10516)
* wolfssl: fix Config.in typo

Fix simple typo `/crytpo/crypto/` in a description string

Signed-off-by: Tony Butler <spudz76@gmail.com>

* r8101: Update to 1.038.02

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* r8152: Update to 2.16.3.20220914

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* r8168: Update to 8.051.02

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Signed-off-by: Tony Butler <spudz76@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Co-authored-by: Tony Butler <spudz76@gmail.com>
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-28 16:24:07 +08:00
coolsnowwolf
697c2aea28 mt76: update firmware for MT7986 2022-11-28 13:44:37 +08:00
coolsnowwolf
7d63a39b97 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-11-28 13:13:52 +08:00
Nick Hainke
be5f3b28b0 wolfssl: update to v5.5.3
Remove "200-ecc-rng.patch" because it was upstramed by:
e2566bab21
Refreshed "100-disable-hardening-check.patch".

Fixes CVE 2022-42905.

Release Notes:
- https://github.com/wolfSSL/wolfssl/releases/tag/v5.5.2-stable
- https://github.com/wolfSSL/wolfssl/releases/tag/v5.5.3-stable

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-28 10:54:05 +08:00
Nick Hainke
185c4ea8c0 ipset: update to 7.16
Release Notes:
https://lore.kernel.org/netfilter-devel/d65fe5d8-d5ea-ef7-102d-aa1d15bb4d69@netfilter.org/T/#u

Patch "0001-lib-ipset-fix-printf-warning.patch" replaced upstream by:
http://git.netfilter.org/ipset/commit/?id=e39e3466d2d38cdfe83447f391b550e607bc3ce8

Remove upstreamed:
- 0002-Fix-IPv6-sets-nftables-translation.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-28 10:52:44 +08:00
Rosen Penev
62461731d7 nls.mk: fixup cmake packages
Instead of manually overriding every cmake package that uses iconv or
gettext's paths, add the prefix in here so that at least FindIconv.cmake
works. Fixes compilation with BUILD_NLS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-11-28 10:50:28 +08:00
LGA1150
6bc640d84d ramips: add JD-Cloud router support 2022-11-27 12:01:29 +08:00
AmadeusGhost
85220a12d3 Revert "mediatek: add LED support for Xiaomi Redmi Router AX6000"
This reverts commit 6fb280ac46.
2022-11-27 11:58:39 +08:00
coolsnowwolf
f235862fb6 luci-app-mosdns: move to feeds 2022-11-27 02:02:59 +08:00
coolsnowwolf
b1e4d3d413 kernel: add WED rx support for mediatek on mt76 with MT7986 and MT7915 2022-11-27 01:49:13 +08:00
coolsnowwolf
da4a9aaee0 pacakge: add mosdns and luci-app-mosdns from sbwml 2022-11-27 00:37:12 +08:00
lovehackintosh
21bab22afa
kernel: bump 5.15 to 5.15.80 (#10506)
Manually rebase:
   pending-5.15/330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
   ath79/patches-5.15/910-unaligned_access_hacks.patch

All other patches automatically rebased

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-11-26 23:39:10 +08:00
lovehackintosh
07df792ae7
kernel: bump 6.0 to 6.0.10 (#10505)
Manually rebase:
   pending-6.0/330-MIPS-kexec-Accept-command-line-parameters-from-users.patch

All other patches automatically rebased

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-11-26 22:41:11 +08:00
lovehackintosh
e787ad1a4b
kernel: bump 5.10 to 5.10.156 (#10498)
Manually rebased: ath79/patches-5.10/910-unaligned_access_hacks.patch

All other patches automatically rebased.

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-11-26 18:07:27 +08:00
Linhui Liu
0b241584b5 kernel: bump 5.4 to 5.4.225
All patches automatically rebased.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-11-26 18:06:25 +08:00
lovehackintosh
fc33fa6e5f
tools/mpfr: update to 4.1.1 (#10502)
Changes:
- Bug fixes
- Improved manual formatting

Refresh patches:
- 001-only_src.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-11-26 18:05:47 +08:00
coolsnowwolf
3c220e5c59 Update feeds.conf.default 2022-11-26 12:42:37 +08:00
coolsnowwolf
bf2528d9b5 iwinfo: add hardware id for MT7922 devices support 2022-11-25 15:26:02 +08:00
coolsnowwolf
4d5470d13b Revert "x86: fix Bintel's ZHITAI Ti Plus 5000 fw bug"
This reverts commit 857a955f1e.
2022-11-25 15:18:41 +08:00
sdf8057
1156d23750
ipq807x: disable br-nf after qca-nss-ecm start (#10488)
qca-nss-ecm启动之后会开启网桥ipv4/ipv6的包过滤导致NAT loopback不可用。再次关闭网桥包过滤,以解决NAT loopback不可用的问题。
2022-11-25 03:00:18 +08:00
coolsnowwolf
e9e7e64a1f Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-11-25 02:59:56 +08:00
coolsnowwolf
857a955f1e x86: fix Bintel's ZHITAI Ti Plus 5000 fw bug 2022-11-25 02:59:14 +08:00
AmadeusGhost
1f9c2a3e1f rockchip: 5.15: add missing kernel config 2022-11-24 20:05:56 +08:00
Christian Marangi
2c83210409 generic: 5.15: add missing PAGE_POOL_STATS config
Add new PAGE_POOL_STATS config backported for the mtk offload patches.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-11-24 20:02:06 +08:00
Rafał Miłecki
667b8a7613 kernel: add CONFIG_NVMEM_U_BOOT_ENV symbol to configs
This fixes:
  U-Boot environment variables support (NVMEM_U_BOOT_ENV) [N/m/y/?] (NEW)

Fixes: 34cf310435044 ("kernel: backport U-Boot environment data NVMEM driver")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-11-24 20:01:21 +08:00
coolsnowwolf
d1bed1ba23 ipq60xx: add 360_v6 ath11k wifi BDF 2022-11-23 22:21:27 +08:00
coolsnowwolf
2612e362b6 ath11k-wifi: add board bdf files package 2022-11-23 22:07:11 +08:00
coolsnowwolf
8a0982186e kernel: sysctl: update nf_ct_expect settings for fullcone nat mode 2 2022-11-23 18:34:51 +08:00
coolsnowwolf
9e3f3a90e4 Revert "dnsmasq: bump to v2.87"
This reverts commit c5b0c71a92.
2022-11-23 18:28:26 +08:00
coolsnowwolf
8d2bd3273c
x86: add kmod-tg3 by default 2022-11-23 17:20:15 +08:00
lovehackintosh
1d0708842f
upx: fix hash (#10479)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-11-22 20:59:36 +08:00
sdf8057
4badcf31c7
fix ntpd path problem (#10478) 2022-11-22 20:45:25 +08:00
Albert Xu
9cd6f162e9
tools/patch: apply patch for EACCES on xattr copy (#10469)
When compiling OpenWRT on a compressed btrfs volume the build fails in
libtool.
The file `libltdl/config/ltmain.m4sh` from `libtool-2.4.2.tar.xz` is
missing write permissions, therefore patch falls back to copying the
file and patching that. During this patch tries to preserve all file
attribute on the new copy.
However the attribute `btrfs.compression` is privileged and btrfs return
EACCES.
While patch ignores multiple other error codes during the copy of xattr
copy it is not prepared for EACCES and aborts.

EACCES should be ignored the same way as the other errors.

Build log:
```
...
Applying ./patches/000-relocatable.patch using plaintext:
patching file libltdl/config/general.m4sh
patching file libtoolize.in
patching file libtoolize.m4sh
patching file libltdl/m4/libtool.m4

Applying ./patches/100-libdir-fixes.patch using plaintext:
patching file libltdl/config/ltmain.m4sh
File libltdl/config/ltmain.sh is read-only; trying to patch anyway
patching file libltdl/config/ltmain.sh
patch: setting attribute btrfs.compression for btrfs.compression: Permission denied
Patch failed!  Please fix ./patches/100-libdir-fixes.patch!
```

Link: https://lists.gnu.org/archive/html/bug-patch/2022-11/msg00000.html
Co-authored-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2022-11-21 21:08:31 +08:00
coolsnowwolf
58692d5c98 kernel: sysctl: update nf_ct settings for fullcone nat 2022-11-20 22:14:41 +08:00
Aleksander Jan Bajkowski
e5bf907be5 kernel: backport tso for asix driver
Performance comparison (iperf3, mtu 1500):
Before: 53.9 Mbps
After: 87.9 Mbps

The tests were performed on a BT Home Hub 5A router.
The iperf3 server was running on the router, the client
on the host.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-11-20 20:24:27 +08:00
Uwe Kleine-König
75d2934a6f kernel: add kmod-hwmon-sht3x support
The driver supports the temperature and humidity sensors chips SHT3x and
STS3x by Sensirion.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
2022-11-20 20:23:34 +08:00
Pawel Dembicki
334012492f kernel: add missing symbol in generic config
Found during work on qoriq target.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[improve commit message, remove from target configs]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-11-20 20:22:30 +08:00
Albert Xu
3c707a2ef8
firmware: Sync with upstream (#10459)
* firmware: intel-microcode: update to 20220809

Debian's changelog by Henrique de Moraes Holschuh <hmh@debian.org>:

  * New upstream microcode datafile 20220809
    * Fixes INTEL-SA-00657, CVE-2022-21233
      Stale data from APIC leaks SGX memory (AEPIC leak)
    * Fixes unspecified errata (functional issues) on Xeon Scalable
    * Updated Microcodes:
      sig 0x00050653, pf_mask 0x97, 2022-03-14, rev 0x100015e, size 34816
      sig 0x00050654, pf_mask 0xb7, 2022-03-08, rev 0x2006e05, size 44032
      sig 0x000606a6, pf_mask 0x87, 2022-04-07, rev 0xd000375, size 293888
      sig 0x000706a1, pf_mask 0x01, 2022-03-23, rev 0x003c, size 75776
      sig 0x000706a8, pf_mask 0x01, 2022-03-23, rev 0x0020, size 75776
      sig 0x000706e5, pf_mask 0x80, 2022-03-17, rev 0x00b2, size 112640
      sig 0x000806c2, pf_mask 0xc2, 2022-03-19, rev 0x0028, size 97280
      sig 0x000806d1, pf_mask 0xc2, 2022-03-28, rev 0x0040, size 102400
      sig 0x00090672, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064
      sig 0x00090675, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064
      sig 0x000906a3, pf_mask 0x80, 2022-06-15, rev 0x0421, size 216064
      sig 0x000906a4, pf_mask 0x80, 2022-06-15, rev 0x0421, size 216064
      sig 0x000a0671, pf_mask 0x02, 2022-03-17, rev 0x0054, size 103424
      sig 0x000b06f2, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064
      sig 0x000b06f5, pf_mask 0x03, 2022-06-07, rev 0x0022, size 216064

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>

* bcm27xx-gpu-fw: update to latest version

Multiple firmware fixes needed for kernel updates.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* bcm27xx-gpu-fw: update to latest version

Latest GPU FW contains multiple fixes and improvements.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* bcm63xx-cfe: update to the latest master

e5050f3 linksys: ea9500-v2: add cferam file

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

* nat46: fix translation of ICMP protocols parameter problem and unreachable

9b3a819 nat46-core: Fix translation of ICMP protocols parameter problem and unreachable (#27)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* nat46: update to latest git HEAD

1fdf2a3 Fix kernel panic due to device deletion (#29)
e7b48d1 add the mutex lock for create/delete/config/insert nat46 devices to fix nat46 module crash issues. (#28)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* nat46: update to latest git HEAD

d9bc161 nat46-core: Fix typo since day one (#31)
840e235 Fix coverity issues observed so far (#30)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* nat46: update to git HEAD

95ca1c3 nat46-core: ignore IPv4 options when translating packets
39778c2 add a module argument to ignore TOS translate for IPv4
9a36ee1 add a module argument to ignore TOS translate for IPv4
79190a8 add a module argument to ignore TOS translate for IPv4

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* mwlwifi: fix 5.15 kernel support

Fix compilation and usage under kernel 5.15 for the mwlwifi driver.

For detailed description of changes, check individual patches.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>

* rtl8812au-ct: Fix compile

Replace the extern inline with a static inline. With extern inline the
compiler will generate the function in all compile units including this
file which breaks linking later.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Christian Lamparter <chunkeey@gmail.com>
Co-authored-by: Álvaro Fernández Rojas <noltari@gmail.com>
Co-authored-by: Rafał Miłecki <rafal@milecki.pl>
Co-authored-by: Hans Dedecker <dedeckeh@gmail.com>
Co-authored-by: Robert Marko <robert.marko@sartura.hr>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-20 01:09:37 +08:00
lovehackintosh
75d227e14f
include: sync with upstream (#10454)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-11-19 18:03:18 +08:00
coolsnowwolf
c5b0c71a92 dnsmasq: bump to v2.87 2022-11-19 15:23:46 +08:00
coolsnowwolf
6f77eb8769 mt76: add mt7922 firmware 2022-11-19 04:01:48 +08:00
coolsnowwolf
128c5d20dd ath10k-ct: update to 2022-05-13 2022-11-19 03:48:26 +08:00
coolsnowwolf
6fb280ac46 mediatek: add LED support for Xiaomi Redmi Router AX6000 2022-11-18 19:51:59 +08:00
coolsnowwolf
a01f34b7be mediatek: fix mt7981 clk clock support 2022-11-18 03:36:57 +08:00
coolsnowwolf
cce06e82a4 mediatek: add filogic 820 (MT7981) subtarget support 2022-11-18 03:03:21 +08:00
Daniel Golle
38462122bd kernel: modules: package Marvell gigE PHY driver
Some copper SFP modules come with Marvell's 88E1xxx PHY and need this
module to function. Package it, so users can easily install this PHY
driver and use e.g. FINISAR CORP. FCLF-8521-3-HC SFP.

Without marvell PHY driver:
sfp sfp2: module FINISAR CORP.    FCLF-8521-3-HC   rev A    sn XXXXXXX          dc XXXXXX
mt7530 mdio-bus:1f sfp2: validation with support 0000000,00000000,00000000 failed: -22
sfp sfp2: sfp_add_phy failed: -22

With marvell PHY driver:
sfp sfp2: module FINISAR CORP.    FCLF-8521-3-HC   rev A    sn XXXXXXX          dc XXXXXX
mt7530 mdio-bus:1f sfp2: switched to inband/sgmii link mode
mt7530 mdio-bus:1f sfp2: PHY [i2c:sfp2:16] driver [Marvell 88E1111] (irq=POLL)
mt7530 mdio-bus:1f sfp2: Link is Up - 1Gbps/Full - flow control rx/tx

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-18 01:35:52 +08:00
Daniel Golle
dfd0df2c6b uboot-mediatek: optimize MMC erase
Fix mmc_write_vol hush script used by many boards to avoid timeouts on
slow SD cards:
Instead of erasing a complete partition, only erase blocks for the
to-be-written image when writing to MMC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-18 01:33:31 +08:00
lovehackintosh
3d8184bdf3
tools: update versions (#10444)
* tools/xz: update to 5.2.8

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/sed: update to 4.9

Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2022-11/msg00001.html

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/bash: update to 5.2.9

Update to latest release.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/llvm: update to 15.0.0

Release Notes:
https://discourse.llvm.org/t/llvm-15-0-0-release/65099

Signed-off-by: Nick Hainke <vincent@systemli.org>

Signed-off-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-11-17 23:56:34 +08:00
lovehackintosh
c052e55f49
kernel: bump 5.15 to 5.15.79 (#10441)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-17 23:56:17 +08:00
lovehackintosh
9543671fe5
kernel: bump 5.10 to 5.10.155 (#10443)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-17 23:56:01 +08:00
Albert Xu
5e0279bb55
libnetfilter-conntrack: bump to 1.0.9 (#10442)
* libnetfilter-conntrack: bump to 1.0.9

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Jo-Philipp Wich <jo@mein.io>

* libnetfilter-conntrack: backport patch fixing compilation with 5.15

Backport patch fixing compilation with 5.15 and musl provided by Robert Marko

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-11-17 23:55:29 +08:00
coolsnowwolf
d3a96f1bd5 ipq60xx: sync patches from upstream 2022-11-17 18:23:03 +08:00
coolsnowwolf
00db463826 Update README.md 2022-11-17 17:39:05 +08:00
edwardostara
32633277da
netsupport.mk: fix rxrpc dependence 2022-11-17 17:11:47 +08:00
coolsnowwolf
5080fb656a ipq6000: add usb3 DT description 2022-11-17 16:38:23 +08:00
aakkll
805cff4080
kernel: bump 6.0 to 6.0.9 (#10429) 2022-11-17 11:35:41 +08:00
coolsnowwolf
6533370814 ipq60xx: add Qihoo 360v6 wireless support 2022-11-16 22:25:49 +08:00
AmadeusGhost
524dfad990 mac80211/ath10k: add sdio chip support 2022-11-15 19:30:17 +08:00
coolsnowwolf
2c52782fd1 mt76: backport changed IEEE80211_MAX_AMPDU_BUF define 2022-11-15 00:34:58 +08:00
Nick Hainke
ddf2366cf4 mediatek: replace mt7986 watchdog assert patch with upstream
Replace "920-watchdog-add-mt7986-assert.patch" with upstreamed
- 920-v5.16-watchdog-mtk-add-disable_wdt_extrst-support.patch
- 921-v5.19-watchdog-mtk_wdt-mt7986-Add-toprgu-reset-controller.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-14 18:23:05 +08:00
Nick Hainke
1bba21463c mediatek: mt7629: add tag to upstreamed patches
The patches were upstreamed.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-14 18:22:37 +08:00
Nick Hainke
c725219406 mediatek: add tag for upstreamed patches
The patches were upstreamed.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-14 18:22:13 +08:00
Nick Hainke
0569656184 mediatek: mt7986: add tag to upstreamed patches
The patch "210-pinctrl-mediatek-add-support-for-MT7986-SoC.patch" and
"212-clk-mediatek-add-mt7986-clock-support.patch" are upstreamed.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-14 18:21:19 +08:00
Nick Hainke
bef1844645 mediatek: mt7622: add tag to upstreamed patches
The patches "191-arm64-dts-mt7622-specify-the-L2-cache-topology.patch"
and "192-arm64-dts-mt7622-specify-the-number-of-DMA-requests.patch" are
upstreamed to 5.19.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-11-14 18:18:14 +08:00
Aleksander Jan Bajkowski
0e6a364d29 mediatek: filogic: disable swconfig
This subtarget supports 3 devices:
 * Bananapi BPi-R3 (added in a96382c1bb204698cd43e82193877c10e4b63027),
 * MediaTek MTK7986 rfba AP (added in cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf),
 * MediaTek MTK7986 rfbb AP (added in cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf).

This subtarget supports DSA from the beginning. It looks like CONFIG_SWCONFIG
was copied from another config when the subtarget was created.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-11-14 18:17:17 +08:00
Aleksander Jan Bajkowski
60e14b312e mediatek: filogic: refresh config
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-11-14 18:16:57 +08:00
coolsnowwolf
4a69c8aac3 ramips: fix Beeline SmartBox TURBO+ support 2022-11-13 20:22:27 +08:00
coolsnowwolf
27ed0acf3b libpcap: enable remote capture support 2022-11-13 20:09:51 +08:00
coolsnowwolf
1770fdd319 mt76: add EHT 1K aggregation definitions backport 2022-11-13 19:50:36 +08:00
Hauke Mehrtens
0583068db1 kernel: Refresh generic patches
This patch was out of sync.

Fixes: 1673b7dca384 ("kernel: backport fixes for MediaTek Ethernet driver")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-12 19:08:04 +08:00
Felix Fietkau
2eda60e12f mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-11-12 19:07:42 +08:00
Daniel Golle
b0b044caa7 kernel: backport fixes for MediaTek Ethernet driver
Backport patches from net-next which fix possible memory and resource
leaks in the error codepaths of WED initialization.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-12 19:03:12 +08:00
Daniel Golle
713fe846c3 kernel: support hw flow-offloading counters on newer MediaTek SoCs
The packet processing engine (PPE) found in newer ARM-based MediaTek
SoCs provides packet and byte counters for offloaded streams.
Import pending patch reading and using those counters.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-12 19:02:31 +08:00
Daniel Golle
9cdd779550 mediatek: consider adc_oe thermal calibration value in efuse
The use of the adc_oe value stored in the efuse has been dropped in
MediaTek's SDK during a recent refactorization of the temperature
calculation formula. Don't ignore this offset value and again include
it in raw-to-deg-celsius calculation.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-11-12 19:00:34 +08:00
AmadeusGhost
fced2da821 ramips: fixes typo error in kang
Fixes: 9a383de4af
Closed: #10408
2022-11-11 16:25:25 +08:00
lovehackintosh
b48712a226
kernel: bump 5.4 to 5.14.224 (#10406)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-11 08:00:59 +00:00
lovehackintosh
46e6f98ffe
kernel: bump 6.0 to 6.0.8 (#10401)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-11 04:06:36 +00:00
lovehackintosh
23e2006907
kernel: bump 5.15 to 5.15.78 (#10403)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-11 04:06:12 +00:00
lovehackintosh
b8bdcd7170
kernel: bump 5.10 to 5.10.154 (#10404)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-11 04:05:26 +00:00
AmadeusGhost
2a88c41d9d r8125: upate to version 9.010.01-1 2022-11-11 11:40:47 +08:00
Andrew Powers-Holmes
6cad41f780 mt76: add firmware package for mt7916
Add kernel package 'mt7916-firmware' with firmware files for MT7916E devices.

These share the same driver as the MT7915 chipset, but use their own firmware.

Tested using a pair of AsiaRF AW7916-NPD cards.

Signed-off-by: Andrew Powers-Holmes <aholmes@omnom.net>
2022-11-11 11:32:54 +08:00
Langhua Ye
5a154a16b6 kernel: add support for XMC XM25QH128C
The XMC XM25QH128C is a 16MB SPI NOR chip.
The patch is verified on Ruijie RG-EW3200GX PRO.
Datasheet available at https://www.xmcwh.com/uploads/435/XM25QH128C.pdf

Signed-off-by: Langhua Ye <y1248289414@outlook.com>
2022-11-11 11:30:22 +08:00
coolsnowwolf
fa3d7997cb ipq40xx: add support for GL.iNet GL-A1300 2022-11-10 19:49:49 +08:00
Albert Xu
0079447c6f
packages: libusb: add package 'fxload' (from libusb examples)
The 'fxload' tool contained in the examples provided with libusb is
actually useful and turns out to be the only way to load firmware into
some rather ancient EZ-USB microcontrollers made by Cypress (formerly
Anchor Chips).
The original 'fxload' tool from hotplug-linux has been abandonned long
ago and requires usbfs to be mounted in /proc/bus/usb/ (like it was in
Linux 2.4...).
Hence the best option is to package the modern 'fxload' from the libusb
examples which (unsurprisingly) uses libusb and works on modern
systems.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2022-11-10 07:08:56 +00:00
AmadeusGhost
f14fbd6e0d mac80211: fixes build on kernel 6.0 2022-11-09 19:40:00 +08:00
AmadeusGhost
bb0d430546 rockchip: add support for Radxa ROCK Pi E25 2022-11-09 19:38:22 +08:00
AmadeusGhost
4c889ca6f7 Revert "kernel: add support for rtl88x2bu driver"
This reverts commit bbed88c876.
This driver is useless. Closed: #10359
2022-11-09 19:15:58 +08:00
lovehackintosh
a18b6cfebd
build: add support for python3.11 and higher (#10392)
python3.11 is out but fails to run the makefile currently
this supports python versions from 3.6 to 3.99 with the python3 binary
it also checks specifically for 3.11 as it is the latest version out

Signed-off-by: Oscar Molnar <oscar@tymscar.com>
2022-11-09 04:21:18 +00:00
coolsnowwolf
5ae0cbf784
Update README.md 2022-11-08 17:36:11 +08:00
coolsnowwolf
646ed35108 ipq60xx: add network setting and sysupgrade for 360v6 2022-11-08 17:21:17 +08:00
coolsnowwolf
2a4ccbe41f ipq60xx: splite Qihoo 360v6 dts file 2022-11-08 16:50:31 +08:00
ty
39ed1b72cb
procd: ujail upgrade patch for latest version (#10384)
Fix: #10382
2022-11-07 05:28:55 +00:00
ty
3ff8b3e253
procd: ujail static-linked binary (#10381)
ref: openwrt/openwrt#10933
2022-11-07 09:54:23 +08:00
lovehackintosh
297447302a
tools: update versions and sync with upstream (#10380)
* expat: update to 2.5.0

Fixes CVE-2022-43680.

Changes:
https://github.com/libexpat/libexpat/blob/R_2_5_0/expat/Changes

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/ccache: update to 4.7

Release Notes:
https://ccache.dev/releasenotes.html#_ccache_4_7

Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>

* tools/ccache: update to 4.7.1

Release Notes:
https://ccache.dev/releasenotes.html#_ccache_4_7_1

Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>

* tools/ccache: update to 4.7.2

Release Notes:
https://ccache.dev/releasenotes.html#_ccache_4_7_2

Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>

* tools/mtools: update to 4.0.42

Release Notes:
https://lists.gnu.org/archive/html/info-mtools/2022-10/msg00000.html

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/mtd-utils: update to 2.1.5

Release Notes:
https://lore.kernel.org/buildroot/c0992bbb-9487-9a51-ea9f-39cf074b61ec@sigma-star.at/

Refresh patches:
- 130-lzma_jffs2.patch
- 320-mkfs.jffs2-SOURCE_DATE_EPOCH.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/elfutils: update to 1.88

Release Notes:
https://sourceware.org/pipermail/elfutils-devel/2022q4/005561.html

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/fakeroot: update to 1.30.1

Release Notes:
https://tracker.debian.org/news/1381350/accepted-fakeroot-1301-1-source-into-unstable/

Refresh patches:
- 600-macOS.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* cmake: update to 3.24.3

Release Notes:
https://cmake.org/cmake/help/latest/release/3.24.html

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/ninja: update to 1.11.1

Release Notes:
https://github.com/ninja-build/ninja/releases/tag/v1.11.1

Refresh patches:
- 100-make_jobserver_support.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools: add option BUILD_ALL_HOST_TOOLS to compile all host tools

Add option to compile all host tools even if not needed.
This can be useful to prepare a universal precompiled host tools
archive to use in another buildroot and speedup compilation.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Raihaan Shouhell <raihaanhimself@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
2022-11-07 09:54:08 +08:00
Hauke Mehrtens
345e5e51eb busybox: awk: fix use after free (CVE-2022-30065)
This backports a commit which fixes a use after free bug in awk.

CVE-2022-30065 description:
A use-after-free in Busybox 1.35-x's awk applet leads to denial of
service and possibly code execution when processing a crafted awk
pattern in the copyvar function.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-06 19:20:10 +08:00
Hauke Mehrtens
81a3a0ff39 dnsmasq: Backport DHCPv6 server fix (CVE-2022-0934)
This backports a commit from upstream dnsmasq to fix CVE-2022-0934.

CVE-2022-0934 description:
A single-byte, non-arbitrary write/use-after-free flaw was found in
dnsmasq. This flaw allows an attacker who sends a crafted packet
processed by dnsmasq, potentially causing a denial of service.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-06 19:19:31 +08:00
Shiji Yang
f130866870 ramips: improve compatibility for Youku YK-L2 and YK-L1 series
Add UIMAGE_NAME and UIMAGE_MAGIC to allow users to directly install
initramfs-kernel.bin from the stock firmware Web UI. At the same time,
this change makes it possible to boot OpenWrt with the official u-boot.

Notice:
Since the stock firmware is based on OpenWrt and the configuration
will be retained by default during the upgrade process, so we must use
initramfs-kernel.bin to do a initial installation. After the system
restarts, install sysupgrade.bin and do not retain any configuration.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2022-11-06 19:18:05 +08:00
Shiji Yang
fe03f34e50 ramips: add support for Youku X2
Specifications:
  SOC:      MT7620AN + MT7612EN
  RAM:      128 MiB DDR2
  Flash:    16 MiB (Winbond W25Q28FVFG)
  WLAN:     2.4G + 5G
  LAN:      LAN ports *2
  WAN:      WAN port *1
  USB:      USB2.0 *1
  SD Card:  MicroSD *1
  Buttons:  Reset *1
  LEDs: ethernet *3, system, usb, wlan2g, wlan5g

MAC Address:
  use        address               source
  label      54:36:9b:xx:xx:ac     lan
  lan        54:36:9b:xx:xx:ac     factory.0x0028
  wan        54:36:9b:xx:xx:ad     factory.0x002e
  wlan2g     54:36:9b:xx:xx:ae     factory.0x0004
  wlan5g     54:36:9b:xx:xx:af     factory.0x8004

Installation:
1. Apply initramfs-kernel.bin in stock firmware Web UI.
2. Install sysupgrade.bin on OpenWrt and do not retain any configuration.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2022-11-06 19:17:38 +08:00
John Audia
b3904f9a41 openssl: bump to 1.1.1s
Changes between 1.1.1r and 1.1.1s [1 Nov 2022]

  *) Fixed a regression introduced in 1.1.1r version not refreshing the
     certificate data to be signed before signing the certificate.
     [Gibeom Gwon]

 Changes between 1.1.1q and 1.1.1r [11 Oct 2022]

  *) Fixed the linux-mips64 Configure target which was missing the
     SIXTY_FOUR_BIT bn_ops flag. This was causing heap corruption on that
     platform.
     [Adam Joseph]

  *) Fixed a strict aliasing problem in bn_nist. Clang-14 optimisation was
     causing incorrect results in some cases as a result.
     [Paul Dale]

  *) Fixed SSL_pending() and SSL_has_pending() with DTLS which were failing to
     report correct results in some cases
     [Matt Caswell]

  *) Fixed a regression introduced in 1.1.1o for re-signing certificates with
     different key sizes
     [Todd Short]

  *) Added the loongarch64 target
     [Shi Pujin]

  *) Fixed a DRBG seed propagation thread safety issue
     [Bernd Edlinger]

  *) Fixed a memory leak in tls13_generate_secret
     [Bernd Edlinger]

  *) Fixed reported performance degradation on aarch64. Restored the
     implementation prior to commit 2621751 ("aes/asm/aesv8-armx.pl: avoid
     32-bit lane assignment in CTR mode") for 64bit targets only, since it is
     reportedly 2-17% slower and the silicon errata only affects 32bit targets.
     The new algorithm is still used for 32 bit targets.
     [Bernd Edlinger]

  *) Added a missing header for memcmp that caused compilation failure on some
     platforms
     [Gregor Jasny]

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-11-06 19:12:31 +08:00
lovehackintosh
6d2ba007d7
kernel: bump 5.10 to 5.10.153 (#10377)
Manually rebased:
  bcm53xx/patches-5.10/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
  lantiq/patches-5.10/0028-NET-lantiq-various-etop-fixes.patch

All other patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-11-05 21:57:35 +08:00
lovehackintosh
1c46edde16
kernel: bump 5.4 to 5.4.223 (#10376)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-05 21:57:17 +08:00
Albert Xu
670de0994f
generic: add DUAL_READ flag to EON EN25Q128 (#10368)
Add DUAL_READ flag to EON EN25Q128 as from documentation it's supported.
While at it also rework the patch and add a commit description.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
2022-11-05 21:57:04 +08:00
sKyissKy
31589464e3
netsupport.mk: add MultiPath TCP modules (#10358) 2022-11-05 21:56:38 +08:00
lovehackintosh
c026408fae
kernel: bump 5.15 to 5.15.77 (#10369)
Manually rebased:
   bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch
   bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch
   bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch
   bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
   lantiq/patches-5.15/0028-NET-lantiq-various-etop-fixes.patch

All other patches automatically rebased

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: John Audia <therealgraysky@proton.me>
2022-11-05 07:25:09 +00:00
aakkll
316e63374b
kernel: bump 6.0 to 6.0.7 (#10364) 2022-11-04 02:30:06 +00:00
coolsnowwolf
cbaa0134cd kernel: 5.15: fix mediatek usb module change 2022-11-03 16:34:11 +08:00
coolsnowwolf
44d01897be ipq60xx: add UBI FIT image for Linksys MR7350 2022-11-02 15:41:33 +08:00
coolsnowwolf
5a51b97527 ipq60xx: add linksys MR7350 sysupgrade support 2022-11-02 15:38:13 +08:00
coolsnowwolf
d217d053f4 kernel: bump 5.4 to 5.4.222 2022-11-02 15:21:15 +08:00
coolsnowwolf
d56243a44a uboot-envtools: add Xiaomi Redmi Router AX6000 support 2022-11-02 14:30:11 +08:00
coolsnowwolf
bbed88c876 kernel: add support for rtl88x2bu driver 2022-11-02 14:22:47 +08:00
coolsnowwolf
f3fda01ec8 ipq807x: add MPILIB for kernel 5.15 2022-11-02 12:50:06 +08:00
coolsnowwolf
365a6d03c2 ipq807x: add CONFIG_CRYPTO for kernel 5.15 2022-11-02 12:46:02 +08:00
1054009064
f118cbd66e
ipq807x: fix kernel 5.15 support for mf269 (#10354) 2022-11-02 12:21:00 +08:00
coolsnowwolf
3765b2938c ipq807x: fix kernel 5.15 cpufreq support 2022-11-01 22:08:09 +08:00
Albert Xu
7d3a3ade9c
kernel: Drop mark apcs_alias0_core_clk as critical (#10349)
* Upstream has introduced this change https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/apss-ipq6018.c?h=v5.15.76&id=8e556f5573684b3d4126a4fea88141ee56a407ab
2022-11-01 21:24:57 +08:00
Jianhui Zhao
f397e64fe0
feed: add a new feed for oui (#10347)
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2022-11-01 21:24:09 +08:00
coolsnowwolf
2da3923be4 Version update to R22.11.11 2022-11-01 13:52:25 +08:00
lovehackintosh
02617e159d
kernel: bump 5.10 to 5.10.152 (#10341)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-01 02:06:45 +00:00
lovehackintosh
8431ab6ee7
kernel: bump 5.4 to 5.4.221 (#10342)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-01 02:02:19 +00:00
John Audia
392e39710a kernel: bump 5.15 to 5.15.76
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:22:08 +08:00
John Audia
c6fa37ad45 rockchip: armv8: add CONFIG_ARM64_ERRATUM_1742098
5.15.76 introduces a new symbol that applies Cortex-A72 SoCs so enable it[1].

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/arm64/Kconfig?id=v5.15.76&id2=v5.15.75

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:21:05 +08:00
John Audia
17977e1d31 mvebu: cortexa72: add CONFIG_ARM64_ERRATUM_1742098
5.15.76 introduces a new symbol that applies Cortex-A72 SoCs so enable it[1].

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/arm64/Kconfig?id=v5.15.76&id2=v5.15.75

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:19:47 +08:00
John Audia
b77a2a6c23 kernel: add # CONFIG_ARM64_ERRATUM_2441007 symbol
Introduced with 5.15.75.[1]

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/arm64/Kconfig?id=v5.15.75&id2=v5.15.74

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:19:27 +08:00
John Audia
0f57706836 kernel: add # CONFIG_ARM64_ERRATUM_1742098
Introduced with 5.15.76[1]

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/arm64/Kconfig?id=v5.15.76&id2=v5.15.75

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:17:40 +08:00
John Audia
b1cb49652b kernel: bump 5.15 to 5.15.75
Removed upstreamed:
   bcm27xx/patches-5.15/950-0446-drm-vc4-Fix-timings-for-VEC-modes.patch[1]

Manually rebased:
   patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch
   bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch
   bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch
   bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch

All other patches automatically rebased

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.75&id=2810061452f9b748b096ad023d318690ca519aa3

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-10-31 19:13:52 +08:00
John Audia
084986676a kernel: bump 5.10 to 5.10.150
Manually rebased:
  bcm53xx/patches-5.10/180-usb-xhci-add-support-for-performing-fake-doorbell.patch

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
[Move gro_skip in 680-NET-skip-GRO-for-foreign-MAC-addresses.patch to old position]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-10-31 19:11:03 +08:00
aakkll
be4cffd589
kernel: bump 6.0 to 6.0.6 (#10333)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-10-30 17:50:58 +08:00
Daniel Golle
10f2bed40e mediatek: mt7622: kernel config fixes
* remove orphaned Kconfig symbol now that CONFIG_IIO is no longer
   selected after commit ef8b935c95 ("mediatek: clean up mt7622 kernel config")

 * select UBI fast-map feature to decrease boot time and keep the
   number of spare blocks required in sync with U-Boot's expectations
   (we got fast-map enabled in U-Boot)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:33:49 +08:00
Daniel Golle
16a3a9cd7a mediatek: filogic: consolidate adc '32k' clock
Add dependency to '32k' ADC clock so it is always enabled for thermal
and raw access to ADC values. This allows to remove the patch for the
ADC driver and reduce the patch adding thermal support for MT7986 to
only add the new efuse layout and temperature decoding for V3.

Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:33:04 +08:00
Daniel Golle
62cb5a2617 mediatek: clean up platform kernel modules
Remove kmod-sdhci-mtk as the mtk-sd driver is built-in anyway for the
relevant subtargets in order to support mounting rootfs from eMMC or
SD card.

Add kmod-iio-mt6577-auxadc to support reading the raw values from the
auxadc unit used as in-SoC thermal sensor. This driver was previously
built-in, but as thermal itself works well without it there is no use
for it in every day use of a device. Build the module to still allow
access to the raw values for those who need it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:32:23 +08:00
Daniel Golle
8b7bd596df kernel: modules: iio: create and use AddDepends
Just like for other subsystems, create a reusable AddDepends call.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:28:02 +08:00
Daniel Golle
38bffdd012 uboot-envtools: mediatek/mt7622: don't rely on mapped rootfs
Similar to the implementation for the BPi-R3 use the same logic also
for determining the device to look for the U-Boot environment of the
BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:24:22 +08:00
Daniel Golle
fa94fd470b mediatek: mt7622: don't rely on existing image for sysupgrade
Don't reply on mapped rootfs partition but rather just take what ever
has been set to the kernel cmdline root= parameter as a hint to decide
which media to install sysupgrade to on the BananaPi BPi-R64.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:24:00 +08:00
Daniel Golle
76fc27e5e3 mediatek: update pending and rename merged patch
Add patch headers and description for pending patch.
Add version tag to patch already merged upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-29 21:23:01 +08:00
1054009064
d05fbef769
mac80211: backport security fixes (#10324)
* mac80211: backport security fixes

This mainly affects scanning and beacon parsing, especially with MBSSID enabled

Fixes: CVE-2022-41674
Fixes: CVE-2022-42719
Fixes: CVE-2022-42720
Fixes: CVE-2022-42721
Fixes: CVE-2022-42722
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 26f400210d6b3780fcc0deb89b9741837df9c8b8)

* mac80211: refresh patches

355-wifi-cfg80211-fix-BSS-refcounting-bugs.patch - 5a52384a51

Co-authored-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: 1054009064 <1054009064@users.noreply.github.com>
2022-10-28 15:17:13 +08:00
coolsnowwolf
99b245df33 ipq60xx: remove generic backport qcom smem patch 2022-10-28 11:51:46 +08:00
coolsnowwolf
8e68a5d788 ipq60xx: add CMIOT-AX18/ZN-M2 support 2022-10-28 11:43:33 +08:00
coolsnowwolf
e9f105edda image-commands: add missing qsdk-ipq-factory-mmc 2022-10-28 11:26:30 +08:00
coolsnowwolf
d574ac301c Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-10-28 11:25:48 +08:00
coolsnowwolf
a56ccddcb6 grub2: bump version 2022-10-28 11:25:34 +08:00
aakkll
9993b32257
kernel: bump 6.0 to 6.0.5 (#10319)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-10-27 00:42:06 +08:00
Christian Marangi
ea7c4d14b0 generic: 5.15: backport smempart parser fixup patch with EPROBE_DEFER error
Backport patch from kernel 5.15 that mute error on EPROBE_DEFER with
smempart parser.

This parser require the smem device to be probed first and currently it
may happen that mtd gets probed before the smem device causing an error
on the smempart parser. This error may be confusing and should be muted.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:35:24 +08:00
Christian Marangi
d4dc60f453 generic: 5.15: backport qcom smem patch for reserved-space support
In new kernel version from 5.16, smem node can be declared directly in
the reserved-space node. Upstream ipq806x (and to-be-merged) ipq807x
allign to this new implementation. Backport this patch to kernel 5.15 to
fix support for smem parser for ipq806x target.

Fixes: 88bf6525251f ("ipq806x: 5.15: replace dtsi patches with upstream version")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:35:16 +08:00
Christian Marangi
537bff96a7 generic: 5.15: move not backport patch to pending dir
Move patch wrongly placed in backport dir to pending dir as they still
didn't got merged upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:31:12 +08:00
Christian Marangi
1c7eb3d702 generic: 5.15: move MGLRU patches from pending to backport
Move MGLRU patches from pending to backport as they got merged upstream.
These are direct porting from one of the dev so it's better to just move
than trying to backport them again from upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:30:50 +08:00
Christian Marangi
3cc43d223e generic: 5.15: move mvebu aardvark patch from pending to backport
Move mvebu aardvark patch from pending to backport as they got merged
upstream.
One additional patch is needed as a later fixup for it.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:30:11 +08:00
Christian Marangi
50285c1d2f generic: 5.15: move ZTE MF286D modem patch from pending to backport
Move ZTE MF286D modem patch from pending to backport as it was merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:28:43 +08:00
Christian Marangi
e5093b77f9 generic: 5.15: move bluetooth mt79 usb id patch from pending to backport
Move bluetooth mt79 usb id patch from pending to backport as it got
merged upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:27:56 +08:00
Christian Marangi
b1293c0968 generic: 5.15: move mtk eth soc patch from pending to backport
Move mtk eth soc patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:27:39 +08:00
Christian Marangi
eab77aadec generic: 5.15: move sfp HALNy patch from pending to backport
Move sfp HALNy patch from pending to backport as they got merged
upstream. The patch was reordered and one was squashed in the upstream
variant.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:27:14 +08:00
Christian Marangi
2c0a7ea60d generic: 5.15: move pending xtx nand patch from pending to backport
Move pending xtx nand patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:26:55 +08:00
Christian Marangi
f7ccf2d477 generic: 5.15: move dtc drop interrupt check from pending to backport
Move dtc drop interrupto check from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:26:36 +08:00
Christian Marangi
120330dea2 generic: 5.15: move MIPS cpuinfo patch from pending to backport
Move MIPS cpuinfo patch from pending to backport as it got merged
upstream.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-10-26 22:26:12 +08:00
ty
063f51c242
autosamba: fixes compatible with samba4 (#10315)
Fix: coolsnowwolf/lede#10314
2022-10-25 12:40:31 +08:00
AmadeusGhost
613e76c9e0 Revert "autocore: ethinfo: rewritten in lua"
This reverts commit 4f056f8ef3.
Fixes: #10180, #10251
2022-10-25 12:38:39 +08:00
AmadeusGhost
51dccebbdc autocore-arm: update config for filogic 2022-10-25 11:42:00 +08:00
AmadeusGhost
3c294bd503 treewide: remove support of kernel 5.19 2022-10-25 10:55:54 +08:00
Andre Heider
bdd016c403 mac80211: fix masking nested A-MSDU support for mesh
CONFIG_MAC80211_MESH isn't defined for this package, rendering the patch
useless. Match protecting the access of sta_info.mesh with the very same
define declaring it.

Fixes 45109f69a6 "mac80211: fix compile error when mesh is disabled"
Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-10-25 10:30:06 +08:00
Shiji Yang
ac359a8b64 ramips: add missing WAN LED for Xiaomi Mi Router 4A / 4C
The blue WAN LED connected to GPIO37 is missing, so re-add it.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2022-10-25 10:29:02 +08:00
coolsnowwolf
92bdfb61ce Revert "Revert "toolchain: gcc: improve patch handling by introducing major version""
This reverts commit 779ed7d9a0.
2022-10-24 14:29:05 +08:00
Nick Hainke
c86da866ca ksmbd: update to 3.4.6
Release Announcement:
https://github.com/cifsd-team/ksmbd/releases/tag/3.4.6

Remove upstreamed:
- 10-fix-build-on-kernel-5.15.52-or-higher.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-24 11:40:22 +08:00
Nick Hainke
1778c590d5 linux-firmware: update to 20221012
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-24 11:36:34 +08:00
Daniel Golle
29413bac28 tools/mkimage: bring back removed patches
Patches for mtk_image supporting newer SoCs have been dropped in the
process of updating mkimage to U-Boot 2022.10. While it is true that
the patches have been merged upstream a while ago, they were not merged
in time to be part of the U-Boot 2022.10 release.
See also commit 537b423d9f ("uboot-mediatek: update to U-Boot 2022.10")
which explicitly mentions that.

Fixes: 6e245777bd ("tools/mkimage: update to 2022.10")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-24 11:35:41 +08:00
coolsnowwolf
79a5a327ae Revert "tools/upx: update to 3.96"
This reverts commit 4f0a5bdc7b.
2022-10-24 10:06:30 +08:00
aiamadeus
144c1fb2f3
Merge pull request #10310 from lovehackintosh/bump-tools 2022-10-23 22:28:06 +08:00
Liu Linhui
e95c5bc7f1 tools: sync with upstream
remove mm-macros because it's not needed

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-23 12:43:07 +08:00
Rosen Penev
038c141696 tools/cpio: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:40:42 +08:00
Rosen Penev
15d88af106 tools: add Host/Uninstall where possible
This cleans staging_dir when calling tool/x/clean.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-23 12:39:00 +08:00
Linhui Liu
ff473e4495 tools/zstd: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:33:29 +08:00
Nick Hainke
893b5022d9 tools/zlib: update to 1.2.13
Switch to "https github.com" for downloading source files.

Release Announcements:
https://github.com/madler/zlib/releases/tag/v1.2.13

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:32:40 +08:00
Linhui Liu
5c04a547c8 tools/zip: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:31:14 +08:00
Nick Hainke
e83a16d318 tools/xz: update to 5.2.7
Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:30:01 +08:00
Liu Linhui
4f0a5bdc7b tools/upx: update to 3.96
Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-23 12:29:34 +08:00
Linhui Liu
6dbbf0b3b3 tools/squashfskit4: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:28:48 +08:00
Rosen Penev
faa12f02c9 tools/sparse: update to 0.6.4
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-23 12:27:30 +08:00
Nick Hainke
c84f949a9f tools/mtools: update to 4.0.41
Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00011.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:26:39 +08:00
Linhui Liu
e813d7dc4e tools/mm-macros: remove
this is in the codebase because of libsigc++, which is not in the codebase anymore.
Neither in base nor in packages. It doesn't seem to be needed by
anything else either. GNOME packages have transitioned to using meson,
which does not use m4 files.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:24:56 +08:00
Nick Hainke
e5ea551257 tools/mkimage: update to 2022.10
Remove upstreamed patches:
- 020-tools-mtk_image-split-gfh-header-verification-into-a.patch
- 021-tools-mtk_image-split-the-code-of-generating-NAND-he.patch
- 022-tools-mtk_image-add-support-for-nand-headers-used-by.patch

Refreshed manually:
- 030-allow-to-use-different-magic.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:20:38 +08:00
Linhui Liu
fe40a5e5bb tools/meson: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:19:36 +08:00
Nick Hainke
0fe111a083 tools/genext2fs: update to 1.5.0
Update to latest version.

Remove patches:
- 100-c99_scanf.patch
- 200-autoconf.patch
- 300-blocksize-creator.patch
- 400-byteswap_fix.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:16:22 +08:00
Nick Hainke
2e5852e1c7 tools/expat: switch to tar.xz to save bandwidth
The tar.xz download is a bit smaller. Use this download to save traffic.

Suggested-by: hardfalcon
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:14:53 +08:00
Nick Hainke
d62f2337c9 tools/dwarves: update to 1.24
Release Notes:
https://lwn.net/Articles/905738/

Switch to https "fedorapeople.org"-mirror. Use $(AUTORELEASE).

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:07:38 +08:00
Linhui Liu
e2ff325ada tools/cmake: sync with upstream
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-23 12:06:27 +08:00
Nick Hainke
82c468d257 tools/bc: update to 1.07.1
Changes:
  Fixed ibase extension causing problems for read()
  Fixed parallel make problem.

Remove the "003-bc-fix-hang.patch" because the hang is fixed upstream.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:03:09 +08:00
Nick Hainke
7832ed2e86 tools/bash: update to 5.2
Release Notes:
https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00056.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-23 12:01:46 +08:00
coolsnowwolf
779ed7d9a0 Revert "toolchain: gcc: improve patch handling by introducing major version"
This reverts commit b51a15b3e8.
2022-10-22 23:34:09 +08:00
mk-qi
2a9196062b
iwlwifi: edit package/firmware/linux-firmware/intel.mk for support inter-ax201 (#10303) 2022-10-22 22:23:19 +08:00
lovehackintosh
e19b441cc0
libselinux: sync with upstream (#10300)
Fixes: #10294
2022-10-22 13:31:19 +00:00
lovehackintosh
4fef020048
kernel: bump 6.0 to 6.0.3 (#10299)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-22 13:29:51 +00:00
Albert Xu
6c4e5d7b47
scripts/download.pl: Make the download tool configurable (#10291)
* rules.mk: Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk

Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better
place than exporting it in the global rules.mk makefile.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* scripts/download.pl: Make the download tool configurable

Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* scripts/download.pl: Pass aria2 config in ENV only

The aria2c command tries to load config from
${XDG_CONFIG_HOME:-${HOME}/.config}/aria2/aria2.conf by default,
which may result unexpected behavior.

As a replacement, people can use environment variable ARIA2C_OPTIONS
to custom arguments passed to aria2c like curl and wget below.
Including --conf-path=/path/to/config.conf in ARIA2C_OPTIONS can
also set a custom config file path easily if needed.

Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Zhang Hua <zhanghuadedn@gmail.com>
2022-10-21 12:47:28 +08:00
Hugo Yuan
bc34ef9154
rockchip: Add Rongpin King3399 support (#10292) 2022-10-21 12:47:10 +08:00
KumaTea
b0d39f5588
kernel: mtd: add en25qx128a spi nor support 2022-10-21 01:35:17 +08:00
aiamadeus
6ed97d50b6
Merge pull request #10285 from lovehackintosh/sync 2022-10-21 01:28:28 +08:00
Petr Štetiar
9a3a81345b toolchain: musl: disable crypt size hack by default
Enable this option and thus re-include crypt() support for the SHA256,
SHA512 and Blowfish ciphers on all devices. According to commit
9365745f8e7b ("musl: add a hack to remove unused crypt() algorithms,
saves ~14k after lzma") it should add about ~14k to the resulting image,
which seems to be a reasonable size increase for consistent crypt()
support.

Decided to not remove this hack completely as it might be still useful
for people trying to fit custom images onto smaller devices and the
patch is rather simple so we can afford to keep it for now.

References: https://github.com/openwrt/openwrt/pull/1331
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-10-20 10:38:20 +08:00
Nick Hainke
b51a15b3e8 toolchain: gcc: improve patch handling by introducing major version
Every minor version bump of a major version will result in a huge patch
diff because of the moving of all the patches from version e.g. 11.2.0 to
11.3.0. This commit only use the major version for the patch folders to
differentiate between the different gcc versions. This will significantly
improve the reviewing of the smaller version bump patches and help to see
what really changed in a minor version bump.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-20 10:16:19 +08:00
Paul Spooren
1a60b45162 build: remove GCC9 support
gcc9 was never used within a release and the development branch is
already on version 10, no need to keep this in tree.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
2022-10-20 09:45:21 +08:00
Paul Spooren
5b43ebc046 build: remove GCC7 support
The development branch is now on version 10, we shouldn't drag to many
old versions and therefore drop at least 7.x.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
2022-10-20 09:25:06 +08:00
Felix Fietkau
4bb64420f8 toolchain/binutils: remove old versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-20 09:15:16 +08:00
lovehackintosh
3b4c47d068
download.pl: use more Chinese mirrors (#10281)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-19 21:57:49 +08:00
coolsnowwolf
b47dc84523 build: move Build/copy-file to image-commands.mk 2022-10-19 21:57:13 +08:00
coolsnowwolf
06fa03cb43 mt76: add MediaTek Filogic 630 (MT7916) support 2022-10-19 21:06:13 +08:00
coolsnowwolf
1fcad6d3b1 build: switch default target to x64 2022-10-19 20:42:58 +08:00
coolsnowwolf
66d86d2371 scripts: sync with upstream 2022-10-19 20:39:19 +08:00
coolsnowwolf
80b72c1cc6 wireless-regdb: unlock WIFI6E channel and txpower 2022-10-19 20:14:00 +08:00
coolsnowwolf
8130834aff rockchip: add rockchip-crypto support for rk3568/rk3588 2022-10-19 20:03:59 +08:00
lovehackintosh
4c72b166f7
toolchain: glibc: Update to glibc 2.35 (#10276)
This updates to glibc to version 2.35.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-10-19 15:56:10 +08:00
lovehackintosh
17ae188737
kernel: bump 5.10 to 5.10.149 (#10278)
No patches required modification.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-10-19 15:55:47 +08:00
lovehackintosh
12987a4398
Kernel: bump 5.4 to 5.4.219 (#10279)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-19 15:55:34 +08:00
lovehackintosh
8ec6c444f8
rockchip: fix Makefile format (#10275)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-19 15:55:22 +08:00
Daniel Golle
acb79816cd uboot-envtools: mediatek_filogic: fix BPi-R3 when no OS is installed
Fix accessing the environment in case no OS is installed on the flash
media selected for boot as this is possible when booting initramfs.
In case of relying on the device specified to be mounted as rootfs to
be present, rather just use the kernel cmdline 'root' variable as a
hint to decide where to read/write the U-Boot environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:22:26 +08:00
Daniel Golle
04737cae7c mediatek: filogic: don't rely on image preset in flash or sysupgrade
Instead of trying to figure out the actual root device, just use the
kernel 'root' cmdline parameter as a hint to decide which device to
flash to.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:22:07 +08:00
Daniel Golle
69adcb2fa1 mediatek: filogic: use UBI fast map to speed up boot
Use UBI fast map feature to avoid scanning the whole flash on each
boot which takes several seconds.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:21:17 +08:00
Daniel Golle
072de63901 mediatek: don't break auxadc without 32k clk
Make the newly added 32k clock optional for the auxadc driver also used
on pre-filogic platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:20:35 +08:00
Daniel Golle
67017451e4 uboot-mediatek: update to U-Boot 2022.10
Remove patches adding support for MT7621 which have been merged upsteam.
Patches for MT7981 and MT7986 have been merged too, but not in time to
be included in the 2022.10 release, so we have to keep carrying them
until the 2023.01 release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:18:56 +08:00
coolsnowwolf
147061e637 ath11k: enable ethernet offload by default 2022-10-18 13:56:43 +08:00
coolsnowwolf
0421b51933 ipq60xx: add ath11k-firmware-ipq6018 2022-10-18 13:56:12 +08:00
coolsnowwolf
e2f7ac1e87 mtd: enable linksys bootcount support for ip60xx 2022-10-18 13:43:26 +08:00
coolsnowwolf
f270095939 uboot-envtools: add Linksys MR7350 uboot env support 2022-10-18 13:41:45 +08:00
coolsnowwolf
3eddaf9e60 ipq60xx: add Linksys MR7350 support 2022-10-18 13:38:14 +08:00
AmadeusGhost
60facd3138 rockchip: enable support for opc-h68k 2022-10-18 11:25:34 +08:00
AmadeusGhost
2a911a7e00 rockchip: add yt8531c driver from net-next 2022-10-18 11:20:51 +08:00
AmadeusGhost
b98efa18fd rockchip: fixes drm module dependencies 2022-10-18 11:19:09 +08:00
AmadeusGhost
7ff615dafc rockchip: add kernel 6.0 support 2022-10-18 11:15:29 +08:00
AmadeusGhost
8f3829bd9e generic: add missing config for kernel 6.0 2022-10-18 11:01:14 +08:00
AmadeusGhost
ca7f48be37 rockchip: remove kernel 5.19 support
Also removed some bugly drivers.
2022-10-18 10:50:11 +08:00
Bruno Umuarama
1f89c35a40 mediatek: mt7623: fix thermal zone
Raising the temperatures for passive and active trips. @VA1DER
proposed at issue 9396 to remove passive trip. This commit relates to
his suggestion.

Without this patch. the CPU will be throttled all the way down to 98MHz
if the temperature rises even a degree above the trip point, and it was
further discovered that if the internal temperature of the device is
above the first trip point temperature when it boots then it will start
in a throttled state and even
$ echo disabled > /sys/class/thermal/thermal_zone0/mode
will have no effect.

The patch increases the passive trip point and active cooling map. The
throttling temperature will then be at 77°C and 82°C, which is still a
low enough temperature for ARM devices to not be in the real danger
zone, and gives some operational headroom.

Signed-off-by: Bruno Umuarama <anonimou_eu@hotmail.com>
2022-10-17 23:25:07 +08:00
Felix Fietkau
4aa78063c6 mediatek: clean up mt7622 kernel config
Remove a few unused options to reduce kernel size

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:24:32 +08:00
Felix Fietkau
484da47262 kernel: add missing lockdep config symbols for 5.15
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:23:23 +08:00
Felix Fietkau
9e90121e2c kernel: remove target specific CONFIG_IKCONFIG lines
Use generic configuration for this feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:22:35 +08:00
Daniel Golle
181d7a1d88 mediatek: filogic: set correct PWM clock and clean thermal zone
* set correct clocks for PWM to work.
 * MT7986 PWM does have the 26MHz-clock-select, set that in patch
 * drop useless 'passive' trip point in thermal zone
 * extend pwm-fan to have 3 active operating points
 * set reasonable trip points in thermal zone
 * invert pwm-fan operating points and set shorter period to allow
   less noisy operation of the PWM fan of the BPi-R3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-17 23:20:28 +08:00
Felix Fietkau
2d6da7e23b build: add support for passing C preprocessor flags for DTS builds
Useful for adding #ifdefs based on build system provided definitions, or
for adding extra include paths

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:18:56 +08:00
coolsnowwolf
518f59ad64 generic: enable MGLRU support for Linux 6.0 2022-10-17 10:28:21 +08:00
lovehackintosh
37c134045b
kernel: bump 5.15 to 5.15.74 (#10263)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-16 15:15:29 +00:00
lovehackintosh
cbd593078d
Kernel: bump 5.4 to 5.4.218 (#10262)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-16 15:15:06 +00:00
coolsnowwolf
9f74489df6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-10-16 02:16:15 +08:00
coolsnowwolf
351d4bb63b kernel: backport MGLRU to linux 6.0 for Tianling Shen 2022-10-16 02:16:00 +08:00
lovehackintosh
f4570f4598
Kernel: bump 5.10 to 5.10.148 (#10259)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-15 12:25:19 +00:00
coolsnowwolf
415a25a683 kernel: bump 5.19 to 5.19.16 2022-10-15 18:12:00 +08:00
coolsnowwolf
56b20ca1ca kernel: bump 6.0 to 6.0.2 2022-10-15 18:10:39 +08:00
coolsnowwolf
4e5666234c x86: add rts5139 patch for 5.15/5.19/6.0 2022-10-15 00:52:25 +08:00
coolsnowwolf
9c28cbaf04 x86: move rts5139 driver to geneic 2022-10-14 14:32:27 +08:00
coolsnowwolf
496cf229fc x86: switch test kernel to 6.0 2022-10-14 14:25:19 +08:00
coolsnowwolf
9df30a2e36 kernel: fix linux 6.0 drm support 2022-10-14 14:10:12 +08:00
coolsnowwolf
677b831c3d kernel: add linux 6.0 stable release support 2022-10-14 12:33:52 +08:00
aakkll
0a4a1af37f
kernel: bump 5.19 to 5.19.15 (#10247)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-10-12 23:49:44 +08:00
coolsnowwolf
256f38fd4b Update README.md 2022-10-12 00:46:48 +08:00
coolsnowwolf
5c42490cf1 x86: add Realtek USB 2.0 card readers boot support for ChangWang CW56-58 2022-10-10 23:21:49 +08:00
ZeaKyX
f833707a78
github workflows: avoid skipping (#10243) 2022-10-10 17:14:05 +08:00
coolsnowwolf
b1b6cd41bb Version update to R22.10.10 2022-10-10 17:11:56 +08:00
coolsnowwolf
0dec08d9e2 x86: add amd Ryzen APU vage/rdna gpu support 2022-10-10 17:06:54 +08:00
coolsnowwolf
311c9aabf5 x86: add support for AMD Zen CPU temperature sensor 2022-10-10 15:10:15 +08:00
Daniel Golle
d4c760d9ce mediatek: filogic: enable thermal, I2C and PWM of the BPi-R3
Setup thermal zone, select pins and enabled drivers for I2C (on 26-pin
GPIO bank) and PWM (1x fan and 1x GPIO bank).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-08 11:16:04 +08:00
Daniel Golle
c99fce459b mediatek: filogic: add support for hw i2c, pwm and thermal
Add support for hardware I2C and PWM units found in the Filogic SoCs
as well as the CPU thermal support.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-08 11:15:15 +08:00
AmadeusGhost
3929a9889f kernel/5.4: backport mtd parser for Sercomm parts
Fixes: #10143
2022-10-07 12:36:53 +08:00
Daniel Cousens
b5bb491bc3 build: prefer HTTPS if available (for packages)
Changes PKG_SOURCE_URL's for arptables, bsdiff, dnsmasq,
fortify-headers, ipset, ipset-dns, libaudit, libpcap, libressl,
lua, lua5.3, tcpdump and valgrind, to HTTPS

Signed-off-by: Daniel Cousens <github@dcousens.com>
2022-10-07 12:33:08 +08:00
coolsnowwolf
46121523c9 iptables: add iptables-mod-socket 2022-10-06 16:01:36 +08:00
lovehackintosh
6d2b34758c
kernel: bump 5.19 to 5.19.14 (#10228)
* kernel: bump 5.19 to 5.19.13

All patches automatically rebased

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

* kernel: bump 5.19 to 5.19.14

All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-06 15:27:38 +08:00
lovehackintosh
bffd77b6d9
kernel: bump 5.15 to 5.15.72 (#10230)
Removed upstreamed:
generic/pending-5.15/722-net-mt7531-only-do-PLL-once-after-the-reset.patch

All other patches automatically rebased.

Signen-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-06 10:55:42 +08:00
lovehackintosh
832a08ef65
kernel: bump 5.10 to 5.10.147 (#10231)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-06 10:54:03 +08:00
lovehackintosh
3a1e4116fd
kernel: bump 5.4 to 5.4.216 (#10232)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-06 10:53:27 +08:00
Koen Vandeputte
60dc2c9b7c mac80211: fix compile error when mesh is disabled
This fixes following compile error seen when
building mac80211 with mesh disabled:

.../backports-5.15.58-1/net/mac80211/agg-rx.c: In function 'ieee80211_send_addba_resp':
...backports-5.15.58-1/net/mac80211/agg-rx.c:255:17: error: 'struct sta_info' has no member named 'mesh'
  255 |         if (!sta->mesh)
      |                 ^~

sta_info.h shows this item as being optional based on flags:

	struct mesh_sta *mesh;

Guard the check to fix this.

Fixes: f96744ba6b ("mac80211: mask nested A-MSDU support for mesh")
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
2022-10-05 11:38:10 +08:00
David Bauer
758af54df2 mac80211: mask nested A-MSDU support for mesh
mac80211 incorrectly processes A-MSDUs contained in A-MPDU frames. This
results in dropped packets and severely impacted throughput.

As a workaround, don't indicate support for A-MSDUs contained in
A-MPDUs. This improves throughput over mesh links by factor 10.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-10-04 11:37:15 +08:00
Daniel Golle
eb0b70bf52 mediatek: add support t-phy settings from efuse on MT7986
Import patches from mtk-openwrt-feeds (MTK SDK) to support reading
t-phy settings affecting PCIe as well as USB2 and USB3 from efuse.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-04 11:32:23 +08:00
Daniel Golle
e4e20c700c mediatek: filogic: add efuse layout to mt7986a.dtsi
efuse is used to store board-specific settings of some of the in-SoC
peripherals. Add it to device tree, so it gets probed on boot and can
be accessed by other drivers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-04 11:31:34 +08:00
Daniel Golle
7f66edbb96 mediatek: add patch allowing 1-byte wide access to efuse
Allow byte-wise access to mtk-efuse as some drivers require that.
Patch imported from mtk-openwrt-feeds (MTK SDK).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-04 11:30:06 +08:00
Mark King
e0afff0ccd ramips: enable LZMA loader to fix Linksys RE6500 boot
At some point after 21.02.3 and before 22.03.0, the size limits of the
Linksys RE6500 were reached and prevent booting from the 22.03.0 release
or builds of current SNAPSHOT. This patch allows builds of master to boot
again and has been tested on my device.

Signed-off-by: Mark King <mark@vemek.co>
2022-10-04 11:29:05 +08:00
Daniel Golle
2a0953e837 rpcd: reload rpcd on installation of rpcd-mod-*
When installing additional rpcd modules, a restart of rpcd is required.
This often confuses users as even after installing rpcd-mod-rpcsys the
relevant ubus objects are still missing until rpcd has been reloaded
(or the system has been rebooted, obviously).
Let rpcd-mod-* reload rpcd as post-install action.

Fixes: #10220

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-04 11:27:07 +08:00
Christian 'Ansuel' Marangi
10f73c2bd0 uhttpd: update to latest Git HEAD
d59d732 client: fix compilation error with GCC 12
51283f9 fix compiler uninitialized variable

Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
2022-10-02 21:21:07 +08:00
Christian 'Ansuel' Marangi
eebc453ef4 rpcd: update to latest Git HEAD
1c48257 iwinfo: fix compilation error with GCC 12

[remove extra change in Makefile]
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
2022-10-02 20:16:19 +08:00
Stijn Tintel
7e5bd6ff3d procd: bump to git HEAD
0ee8e73 trigger: use uloop_timeout_remaining64

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-10-02 20:15:21 +08:00
Stijn Tintel
6c46842920 libubox: bump to git HEAD
123e976 uloop: restore return type of uloop_timeout_remaining
 3344157 uloop: add uloop_timeout_remaining64
 c87d3e1 lua/uloop: use uloop_timeout_remaining64
 c86a894 uloop: deprecate uloop_timeout_remaining

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-10-02 19:56:34 +08:00
AmadeusGhost
1775dd181c libnl-tiny: update to the latest version
c42d890 build static library
28c44ca genl_family: explicitly null terminate
                     strncpy destination buffer
2022-10-02 16:32:58 +08:00
Felix Fietkau
784361332e mt76: update to the latest version
e4fa68a9b3b3 linux-firmware: update firmware for MT7921 WiFi device
60fcf08fe659 linux-firmware: update firmware for MT7921 WiFi device
9d601f4eee8f linux-firmware: update firmware for MT7922 WiFi device
e49b6063fb4b wifi: mt76: move mt76_rate_power from core to mt76x02 driver code
3f27f6adb1ab wifi: mt76: mt76x02: simplify struct mt76x02_rate_power
c07f3d2d5ede wifi: mt76: mt7921: fix antenna signal are way off in monitor mode
9059a5de3bd0 wifi: mt76: Remove unused inline function mt76_wcid_mask_test()
d75f15ddeb90 wifi: mt76: mt7915: fix bounds checking for tx-free-done command
06df7e689294 wifi: mt76: mt7915: reserve 8 bits for the index of rf registers
ad3d0f8db00b wifi: mt76: mt7915: rework eeprom tx paths and streams init
66065073177b wifi: mt76: mt7915: deal with special variant of mt7916
b0114a0abb57 wifi: mt76: mt7915: rework testmode tx antenna setting
6dee964e1f36 wifi: mt76: connac: introduce mt76_connac_spe_idx()
48c116d92939 wifi: mt76: mt7915: add spatial extension index support
db6db4ded0fd wifi: mt76: mt7915: set correct antenna for radar detection on MT7915D
2b8f56a72d76 wifi: mt76: mt7915: fix mt7915_mac_set_timing()
d554a02554db wifi: mt76: mt7915: move wed init routines in mmio.c
61ce40e65852 wifi: mt76: mt7915: enable wed for mt7986 chipset
584a96ec4a0f wifi: mt76: mt7915: enable wed for mt7986-wmac chipset
172d68b6253d mt76: mt76x02: fix vht rate power array overrun
72b87836d368 Revert "mt76: use IEEE80211_OFFLOAD_ENCAP_ENABLED instead of MT_DRV_AMSDU_OFFLOAD"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-02 11:53:30 +08:00
Rosen Penev
945d239880 tools: fix firmware-utils depends
When firmware-utils was converted to use cmake, the dependency was not
updated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-02 11:50:24 +08:00
coolsnowwolf
7626542dcb
netfilter.mk : add ip6table mangle depend 2022-10-01 23:50:32 +08:00
lovehackintosh
b6fe6e2b7f
Revert "tools/meson: update to 0.63.1" (#10214)
This reverts commit 5fcaadd8ce.
2022-10-01 23:19:13 +08:00
aiamadeus
f1df38e318
Merge pull request #10212 from lovehackintosh/bump-tools
tools: update version
2022-10-01 19:06:50 +08:00
Nick Hainke
5fcaadd8ce tools/meson: update to 0.63.1
Release Notes:
- 0.62.0 https://mesonbuild.com/Release-notes-for-0-62-0.html
- 0.63.0 https://mesonbuild.com/Release-notes-for-0-63-0.html
- (other notes are not available)

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 18:01:15 +08:00
Nick Hainke
691daa9b19 tools/expat: update to 2.4.9
Fixes CVE-2022-40674.

Release Notes:
https://github.com/libexpat/libexpat/blob/R_2_4_9/expat/Changes

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 17:59:48 +08:00
Nick Hainke
679d7fc869 ccache: update to 4.6.3
Release Notes:
https://ccache.dev/releasenotes.html#_ccache_4_6_3

Refresh patch:
- 100-honour-copts.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 12:57:51 +08:00
Rosen Penev
5cffb6d72e toolchain/gdb: fix expat location
GDB is not finding tools/expat. This fixes it. Move it up with the other
tools.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 12:55:29 +08:00
Nick Hainke
05b84eea32 toolchain: gdb: update to 12.1
Release Notes:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-12.1-release

Refreshed patch:
- 120-fix-compile-flag-mismatch.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 12:18:11 +08:00
Rosen Penev
2e662a430d tools/zstd: update to 1.5.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 12:04:40 +08:00
Petr Štetiar
92c3861504 tools/zlib: bump to latest stable release 1.2.12 (CVE-2018-25032)
List of changes since previous release from 2018 is quite long:

 * Fix crc32.c to compile local functions only if used.
 * Check for cc masquerading as gcc or clang in configure.
 * Remove destructive aspects of make distclean.
 * Separate out address sanitizing from warnings in configure.
 * Eliminate use of ULL constants.
 * Add fallthrough comments for gcc.
 * Clean up minizip to reduce warnings for testing.
 * Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner)
 * minizip warning fix if MAXU32 already defined. (gvollant)
 * Replace black/white with allow/block. (theresa-m)
 * Fix indentation in minizip's zip.c.
 * Improve portability of contrib/minizip.
 * Correct typo in blast.c.
 * Change macro name in inflate.c to avoid collision in VxWorks.
 * Clarify gz* function interfaces, referring to parameter names.
 * Fix error in comment on the polynomial representation of a byte.
 * Fix memory leak on error in gzlog.c.
 * Avoid adding empty gzip member after gzflush with Z_FINISH.
 * Explicitly note that the 32-bit check values are 32 bits.
 * Use ARM crc32 instructions if the ARM architecture has them.
 * Add use of the ARMv8 crc32 instructions when requested.
 * Correct comment in crc32.c.
 * Don't bother computing check value after successful inflateSync().
 * Use atomic test and set, if available, for dynamic CRC tables.
 * Speed up software CRC-32 computation by a factor of 1.5 to 3.
 * Add crc32_combine_gen() and crc32_combine_op() for fast combines.
 * Add tables for crc32_combine(), to speed it up by a factor of 200.
 * Fix the zran.c example to work on a multiple-member gzip file.
 * Add gznorm.c example, which normalizes gzip files.
 * Show all the codes for the maximum tables size in enough.c.
 * Clarify that prefix codes are counted in enough.c.
 * Use inline function instead of macro for index in enough.c.
 * Clean up code style in enough.c, update version.
 * Use a macro for the printf format of big_t in enough.c.
 * Use a structure to make globals in enough.c evident.
 * Assure that the number of bits for deflatePrime() is valid.
 * Fix a bug that can crash deflate on some input when using Z_FIXED.
 * Correct the initialization requirements for deflateInit2().
 * Emphasize the need to continue decompressing gzip members.
 * Add legal disclaimer to README.
 * Fix deflateEnd() to not report an error at start of raw deflate.
 * Remove old assembler code in which bugs have manifested.
 * Make the names in functions declarations identical to definitions.
 * Avoid an undefined behavior of memcpy() in _tr_stored_block().
 * Avoid undefined behaviors of memcpy() in gz*printf().
 * Avoid an undefined behavior of memcpy() in gzappend().
 * Avoid the use of ptrdiff_t.
 * Handle case where inflateSync used when header never processed.
 * Don't compute check value for raw inflate if asked to validate.
 * Add address checking in clang to -w option of configure.
 * Return an error if the gzputs string length can't fit in an int.
 * Small speedup to inflate [psumbera].
 * Update use of errno for newer Windows CE versions.
 * Avoid some conversion warnings in gzread.c and gzwrite.c.
 * Have Makefile return non-zero error code on test failure.
 * Avoid a conversion error in gzseek when off_t type too small.
 * Fix CLEAR_HASH macro to be usable as a single statement.
 * Fix bug when window full in deflate_stored().
 * Limit hash table inserts after switch from stored deflate.
 * Permit a deflateParams() parameter change as soon as possible.
 * Cygwin does not have _wopen(), so do not create gzopen_w() there.

Removed 006-fix-compressor-crash-on-certain-inputs.patch which was
hotfix for CVE-2018-25032 and is now included in this release.

This release is not available on @SF (yet?) so the sources are now
pulled from GitHub.

Fixes: CVE-2018-25032
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-10-01 10:03:52 +08:00
Rosen Penev
93e000793c tools/sstrip: update to 3.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Nick Hainke
66d826b673 tools/pkgconf: update to 1.9.3
Release Notes:
https://github.com/pkgconf/pkgconf/blob/pkgconf-1.9.3/NEWS

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 10:03:52 +08:00
Leonardo Mörlein
f7ede33571 pkg-config: always use correct path for pkg-config.real
Before this commit, it was assumed that pkg-config.real is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. The command failed with

    Makefile:15: *** No libnl-tiny development libraries found!.  Stop.
    make[1]: Leaving directory

since pkg-config of the host system was used.

After the commit, the package is built sucessfully.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
2022-10-01 10:03:52 +08:00
Andre Heider
79e195e238 tools/pkgconf: add PKG_CONFIG_EXTRAARGS for additional arguments
This can be used my the OpenWrt build system to pass additional
arguments when required.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-10-01 10:03:52 +08:00
Rosen Penev
99889b80ff tools/pkgconf: update to 1.8.0
Switch to compiling with meson for faster and more reliable compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Hauke Mehrtens
7253aa9167 tools: mtd-utils: Update to version 2.1.4
Update to most recent version of mtd-utils and sync with version from
package folder.

Use a https download server instead of ftp.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-10-01 10:03:52 +08:00
Rosen Penev
0d9e6dbf2f tools/mklibs: update to 0.1.45
Refresh 2to3 patch. Upstream partially did this against some older
python version. This is still needed.

Refreshed other patches to be python3 safe.

Remove uClibc patches as only musl is present now.

Refresh others.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Rosen Penev
b54f862f65 tools/meson: update to 0.61.5
Mostly backports by a Red Hat employee as 0.62 and newer demands Python
3.7+. Same reason 0.61 is kept here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Rosen Penev
2bd980e6f1 tools/meson: update to 0.61.4
Override python to use the one in host instead of hostpkg. There's no
need to use the latter.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Daniel Golle
e7830e9385 firmware-utils: update to git HEAD
0c92b20 iptime-crc32: add support for A6004MX

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-01 10:03:52 +08:00
Nick Hainke
3b1616b2e7 tools/fakeroot: update to 1.29
Release Notes:
8dd9e34a2e

Refresh patches:
- 400-alpine-libc.musl-fix.patch
- 600-macOS.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 10:03:52 +08:00
Rosen Penev
226a0f1b6d tools/fakeroot: update to 1.28
Refreshed patches.

Upstream says there's only a bugfix for GNU Hurd.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Felix Fietkau
505b520fb8 tools/fakeroot: restore macos bugfix that was dropped during the last update
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-01 10:03:52 +08:00
Nick Hainke
b807468841 tools/expat: update to 2.4.8
Release Notes:
https://github.com/libexpat/libexpat/blob/R_2_4_8/expat/Changes

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 10:03:52 +08:00
Rosen Penev
fb01bc0ba1 tools/expat: update to 2.4.7
Mostly a bug fix to the bug fix to CVE-2022-25236

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Hauke Mehrtens
d54e6e9dd5 tools: e2fsprogs: Update to version 1.46.5
Update to most recent version of e2fsprogs and sync with version from
package folder.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-10-01 10:03:52 +08:00
Paul Spooren
e1e3f68dcf tools: SOURCE_DATE_EPOCH handling for mkfs.fat
Backport upstream patch to have reproducible FAT signatures.
This should enable reproducibility for x86 EFI images.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-10-01 10:03:52 +08:00
Rosen Penev
92a45442a5 tools/dosfstools: update to 4.2
Remove upstream backport.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Rosen Penev
2f0c140d8a tools/ccache: update to 4.6
Full changelog: https://ccache.dev/releasenotes.html#_ccache_4_6

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-10-01 10:03:52 +08:00
Nick Hainke
3dddac5e5f tools/bc: add PKG_CPE_ID
Add CPE ID for tracking CVEs.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 10:03:52 +08:00
Nick Hainke
b6d5db383a tools/bc: update to 1.07
Update to latest version. Replace mirror with @GNU/bc.

Manually refresh:
- 001-no_doc.patch

Add patch found here:
26f275502d
as 002-fix-libmath.patch to fix compilation.

Add another patch found here:
55b26eda94
as 003-bc-fix-hang.patch to prevent a hang when building the kernel.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-01 10:03:52 +08:00
lovehackintosh
56bf33b686
kernel: bump 5.15 to 5.15.71 (#10203)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-01 01:33:09 +08:00
lovehackintosh
13ac208389
kernel: bump 5.10 to 5.10.146 (#10204)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-01 01:31:38 +08:00
lovehackintosh
236af7db50
kernel: bump 5.4 to 5.4.215 (#10205)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-01 01:30:36 +08:00
AmadeusGhost
35f20da58d rockchip: rock3a: fixes pcie3 support 2022-09-30 22:32:09 +08:00
Felix Fietkau
dde7a41246 kernel: move ubnt ledbar driver to a separate package
Simplifies the tree by removing a non-upstream kernel patch
and related kconfig symbols.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-30 22:26:36 +08:00
Felix Fietkau
2dcfcb852e kernel: fold lzma debloat patch into the patch adding the code
Reduces the number of hack patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-30 22:25:38 +08:00
Felix Fietkau
4b6fd08298 kernel: remove hack patch, move kirkwood specific kmods to target modules.mk
Tweaking the KCONFIG line of kmod-ata-marvell-sata makes the hack patch
unnecessary

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-30 21:35:47 +08:00
coolsnowwolf
2becaf8682 rockchip: add gic MSI DMA workaround for FastRhino R66S/R68S from Flippy 2022-09-30 11:47:42 +08:00
Petr Štetiar
ba39377afb wolfssl: refresh patches
So they're tidy and apply cleanly.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-30 11:30:48 +08:00
Petr Štetiar
89994968e9 wolfssl: fix TLSv1.3 RCE in uhttpd by using latest 5.5.1-stable release
Fixes denial of service attack and buffer overflow against TLS 1.3
servers using session ticket resumption. When built with
--enable-session-ticket and making use of TLS 1.3 server code in
wolfSSL, there is the possibility of a malicious client to craft a
malformed second ClientHello packet that causes the server to crash.

This issue is limited to when using both --enable-session-ticket and TLS
1.3 on the server side. Users with TLS 1.3 servers, and having
--enable-session-ticket, should update to the latest version of wolfSSL.

Thanks to Max at Trail of Bits for the report and "LORIA, INRIA, France"
for research on tlspuffin.

Complete release notes https://github.com/wolfSSL/wolfssl/releases/tag/v5.5.1-stable

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-30 11:30:27 +08:00
Daniel Golle
6d5501f71d kernel: mtk_ppe: use MTK_FOE_STATE_INVALID instead of *_UNBIND
Instead of dropping *fix-typo-in-__mtk_foe_entry.patch which effectively
means keeping the (also wrong) assignment of MTK_FOE_STATE_BIND, rather
use MTK_FOE_STATE_INVALID as that works well on both older (NETSYS_V1)
and newer (NETSYS_V2) MediaTek SoCs.

Suggested-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-30 11:29:56 +08:00
aiamadeus
e56df4ccf9
Merge pull request #10198 from lovehackintosh/fix-grep 2022-09-30 11:16:28 +08:00
Chris Osgood
0ebf194069 build: fix warnings from grep
Fixes build warnings when using newer versions of grep.

Signed-off-by: Chris Osgood <chris_github@functionalfuture.com>
Tested-by: Georgi Valkov <gvalkov@gmail.com>
2022-09-29 21:14:57 +08:00
Nick Hainke
e2eda24e21 Makefile: fix stray \ warnings with grep-3.8
We simply grep for "/usr". So no need for "-E" or "\/". Furthermore, in
the new grep versions this creates warnings.

As written in the grep-3.8 announcement:
  Regular expressions with stray backslashes now cause warnings, as
  their unspecified behavior can lead to unexpected results.
  For example, '\a' and 'a' are not always equivalent
  <https://bugs.gnu.org/39678>.

Fixes warnings in the form of:
  grep: warning: stray \ before /

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-09-29 21:13:01 +08:00
Rosen Penev
a1825db93b Makefile: replace head call with grep's -m
head is not necessary here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-09-29 21:08:31 +08:00
aakkll
2b67b80839
kernel: bump 5.19 to 5.19.12 (#10192)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-29 12:04:02 +08:00
Beginner
936b8f9589
ppp: use modprobe in place of insmod (#10191)
This will prevent `module is already loaded` lines from
appearing in the logs when a PPP connection is reconnecting

Signed-off-by: Manas Sambhus <manas.sambhus+github@gmail.com>

Signed-off-by: Manas Sambhus <manas.sambhus+github@gmail.com>
Co-authored-by: Manas Sambhus <manas.sambhus+github@gmail.com>
2022-09-29 00:00:39 +08:00
coolsnowwolf
5463662206
Update README.md 2022-09-28 19:47:22 +08:00
KumaTea
ce6c012ca9
Add aria2 to deps (#10188) 2022-09-28 10:59:40 +08:00
Daniel Golle
eb9b0042b3 kernel: rename upstreamed patches and import fixes
Move and rename patches which were merged upstream and import follow-up
fixes for MediaTek Ethernet offloading features on MT7622 and Filogic
platforms. Remove patch
793-net-ethernet-mtk_eth_soc-fix-typo-in-__mtk_foe_entry.patch
which breaks hardware flow offloading on MT7622, it will be reverted
upstream as well.

Fixes: c93c5365c0 ("kernel: pick patches for MediaTek Ethernet from linux-next")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-28 00:33:34 +08:00
Daniel Golle
6818018899 linux-firmware: package MediaTek MT792[12] Bluetooth firmware
btusb fails to start on MT792[12] hardware without the appropriate
firmware being loaded first:
[    9.750285] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin failed with error -2
[    9.765723] bluetooth hci0: Falling back to sysfs fallback for: mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin

Package firmware for MediaTek MT792[12] Bluetooth from linux-firmware.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-28 00:33:02 +08:00
Daniel Golle
8dfec81997 kernel: modules: bluetooth: include support for MediaTek USB
Enable MediaTek protocol in btusb module to support e.g. the Bluetooth
part of the MT7921K NGFF/M.2 module.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-28 00:32:11 +08:00
Daniel Golle
b124296a7e kernel: backport MediaTek USB Bluetooth additions
Backport commits from linux.git adding support for various MT7921
Bluetooth USB IDs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-28 00:31:22 +08:00
Daniel Golle
1969e2c390 mediatek: build USB XHCI support as module
Instead of always including the XHCI driver in the kernel on all
MediaTek boards, selectively include the kernel module only on boards
which actually make use of USB functionality.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-28 00:29:46 +08:00
Eneas U de Queiroz
d741ca1319 wolfssl: prefer regular libwolfssl over cpu-crypto
Rename libwolfssl-cpu-crypto to libwolfsslcpu-crypto so that the
regular libwolfssl version comes first when running:
opkg install libwolfssl

Normally, if the package name matches the opkg parameter, that package
is preferred.  However, for libraries, the ABI version string is
appended to the package official name, and the short name won't match.
Failing a name match, the candidate packages are sorted in alphabetical
order, and a dash will come before any number.  So in order to prefer
the original library, the dash should be removed from the alternative
library.

Fixes: c3e7d86d2b (wolfssl: add libwolfssl-cpu-crypto package)
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-09-28 00:27:11 +08:00
Eneas U de Queiroz
cc1e79df1c wolfssl: ABI version shouldn't depend on benchmark
Move CONFIG_PACKAGE_libwolfssl-benchmark from the top of
PKG_CONFIG_DEPENDS to after PKG_ABI_VERSION is set.

This avoids changing the ABI version hash whether the bnechmark package
package is selected or not.

Fixes: 05df135cac (wolfssl: Rebuild when libwolfssl-benchmark gets changes)
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-09-28 00:26:46 +08:00
Christian Marangi
03a0395eb2 scripts/download.pl: fix support for aria2c download tool on macos
Currently we use /dev/shm to place aria2c tmp file. This is not present
on macos. Use the openwrt tmp directory instead of the linux-only
/dev/shm to save compatibility with more os.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-09-27 16:58:32 +08:00
Christian Marangi
5ae6c9be69 scripts/download.pl: fix mirrors regression for curl and wget
With the introduction of aria2c support, curl and wget no longer try to
download the file from mirrors. Fix this regression by emptying the
remaining mirrors list only when aria2c is used.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-09-27 16:57:59 +08:00
Christian Marangi
b0ea2f3b0a scripts/download.pl: fix whitespace in mirror urls and drop for
Fix whitespace in mirror urls and replace for loop with join+map logic.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-09-27 16:57:30 +08:00
Bradford Zhang
320adae6f6 download.pl: add aria2c support
Use aria2c download tool by default on package download if available in
the system.
aria2c permits to use multiple mirrors and may improve download speed on
special context where servers are hard to reach.

Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Bradford Zhang <zyc@zyc.name>
[ fix wrong var in the script and improve commit description ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-09-27 16:56:58 +08:00
Petr Štetiar
331a9f6589 scripts/download.pl: fix downloads with wget
Several users of wget for downloads (curl is not available in the
system) have reported broken download functionality:

 wget --tries=5 --timeout=20 --output-document=-  https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.142.tar.xz
 http://: Invalid host name.

Thats all happening due to '' was passed as an argument, which got later
expanded to http://.

In the context of a list constructor '' is not nothing, it is an empty
string element.  So fix it by using () as it will yield "nothing" and
thus not introduce an empty string element.

Fixes: #10692
Fixes: 90c6e3aedf16 ("scripts: always check certificates")
Signed-off-by: Jo-Philipp Wich <jo@mein.io> [shellwords() -> ()]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-27 16:56:13 +08:00
Petr Štetiar
62b20da0b1 scripts/download.pl: silence can't exec curl warning
When running build in verbose mode `make V=s` we can see a lot of
following warnings when curl is not available in the system:

 Can't exec "curl": No such file or directory at scripts/download.pl line 77.

So lets fix it by redirecting of the stderr to null hole.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-27 16:55:42 +08:00
Josh Roys
06fc719231 scripts: always check certificates
Remove flags from wget and curl instructing them to ignore bad server
certificates. Although other mechanisms can protect against malicious
modifications of downloads, other vectors of attack may be available
to an adversary.

TLS certificate verification can be disabled by turning oof the
"Enable TLS certificate verification during package download" option
enabled by default in the "Global build settings" in "make menuconfig"

Signed-off-by: Josh Roys <roysjosh@gmail.com>
[ add additional info on how to disable this option ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-09-27 16:54:52 +08:00
AmadeusGhost
558ac14171 mediaTek: drop unused pins for redmi ax6000 2022-09-26 16:37:53 +08:00
Daniel Golle
08a9eb94b1 kernel: pick patches for MediaTek Ethernet from linux-next
Pick patches with several fixes and improvements, preparation for
upcoming WED (TX) [1] as well as basic XDP support [2] with MediaTek's
Filogic SoCs to the mtk_eth_soc driver.

Also pick follow-up patch fixing Ethernet on MT7621 [3].

Tested on Bananapi BPi-R3 (MT7986), Bananapi BPi-R64 (MT7622),
Bananapi BPi-R2 (MT7623), MikroTik RouterBoard M11G (MT7621).

[1]: https://patchwork.kernel.org/project/netdevbpf/list/?series=662108&state=*
[2]: https://patchwork.kernel.org/project/netdevbpf/list/?series=675368&state=*
     (the first part of the series adding wed nodes to mt7986a.dtsi was
      applied to the copy of mt7986a.dtsi in our tree)
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=5e69163d3b9931098922b3fc2f8e786af8c1f37e

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-26 16:35:29 +08:00
Daniel Golle
5844b77bad kernel: mt7530: add support for in-band managed link
Add support for in-band managed link status to support SFP cage
connected to port 5 of the MT7531 switch on the Bananapi BPi-R3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-26 16:33:04 +08:00
Daniel Golle
8a3e2d34a2 kernel: mtk_sgmii: re-organize PCS link status reporting
Don't report speed in case link is down.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-26 16:32:36 +08:00
Rafał Miłecki
f2dd752bf2 kernel: backport U-Boot environment data NVMEM driver
It parses U-Boot env data into NVMEM cells.
Fixes: 978bfe3 ("kernel: replace downstream get_mtd_device_by_node()
implementation"), #10177, #10178

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-09-26 16:31:29 +08:00
lovehackintosh
98a38cf20a
kernel: bump 5.19 to 5.19.11 (#10172)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-25 16:35:12 +08:00
lovehackintosh
34c08ba1da
kernel: bump 5.10 to 5.10.145 (#10173)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-25 16:35:00 +08:00
lovehackintosh
4d84789cdd
kernel: bump 5.15 to 5.15.70 (#10174)
Manually rebased:
hack-5.15/780-usb-net-MeigLink_modem_support.patch

Removed upstreamed:
mpc85xx/patches-5.15/110-gpio-mpc8xxx-Fix-support-for-IRQ_TYPE_LEVEL_LOW-flow.patch

All other patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-25 16:34:49 +08:00
AmadeusGhost
2b5dd9ff0f meson: add support for Thunder OneCloud
The device tree file is from armbian/build/tree/master/patch/kernel/archive/
meson-5.18 (Author: hzyitc). Swipe into the sd card or u disk to boot.
2022-09-25 16:21:21 +08:00
AmadeusGhost
947b99eeb7 meson: fixes support for Amlogic S805
1. Fixes CPU and regulator boot problems
2. Enable CPUFREQ, I2C, RTC and THERMAL support
3. Disabled annoying debug logs, refresh kconfig
4. Fix compilation failure due to wrong kconfig

Fixes: #10042

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-09-25 16:16:26 +08:00
lovehackintosh
6fc2d00f25
kernel: bump 5.4 to 5.4.214 (#10170)
Manually rebased:
 generic/hack-5.4/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
 ipq806x/patches-5.4/0063-2-tsens-support-configurable-interrupts.patch
 layerscape/patches-5.4/301-arch-0008-arm-add-new-non-shareable-ioremap.patch
 layerscape/patches-5.4/820-usb-0009-usb-dwc3-Add-workaround-for-host-mode-VBUS-glitch-wh.patch
 layerscape/patches-5.4/801-audio-0008-Revert-ASoC-Remove-dev_err-usage-after-platform_get_.patch
 octeon/patches-5.4/700-allocate_interface_by_label.patch

All other patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-09-24 12:09:08 +08:00
aakkll
f777bcac76
kernel: bump 5.19 to 5.19.10 (#10168)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-23 13:52:30 +08:00
lean
19c9fb9439 kernel: bump 5.15 to 5.15.69 2022-09-23 01:14:09 +08:00
lean
978bfe37bd kernel: replace downstream get_mtd_device_by_node() implementation 2022-09-22 19:29:52 +08:00
lean
9ee64a9f38 e2guardian: fix gcc11 compile error 2022-09-22 13:41:34 +08:00
Sergey V. Lobanov
d0460e6b92 iucode-tool: fix host-compile on macos and non-x86 linux
iucode-tool/host is used by intel-microcode to manipulate with
microcode.bin file. iucode-tool requires cpuid.h at compile time
for autodection feature, but non-x86 build hosts does not have
this header file (e.g. ubuntu 20.04 aarch64) or this header
generates compile time error (#error macro) (e.g. macos arm64).

This patch provides compat cpuid.h to build iucode-tool/host on
non-x86 linux hosts and macos. CPU autodectection is not required
for intel-microcode package build so compat cpuid.h is ok for
OpenWrt purposes.

glibc and argp lib are not present in macos so iucode-tool/host
build fails. This patch adds argp-standalone/host as build
dependency if host os is macos.

Generated ucode (intel-microcode package) is exactly the same on
Linux x86_64 (Ubuntu 20.04), Linux aarch64 (Ubuntu 20.04) and
Darwin arm64 (MacOS 11.6) build hosts.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-09-22 13:37:04 +08:00
lean
4f056f8ef3 autocore: ethinfo: rewritten in lua 2022-09-21 18:12:59 +08:00
zhangguanzhang
ac7d6a4778
umbim: fixes build with gcc 11 (#10163)
Fixes: https://github.com/coolsnowwolf/lede/issues/10126
2022-09-21 13:10:23 +08:00
AmadeusGhost
a7a5b42f8a rockchip: replace patches with upstream 2022-09-20 20:20:53 +08:00
Michael Pratt
e623e8cd60 tools/cmake: fix download url with make variables
Use a make variable pattern for the url
so that only one version number needs to be changed
when version is bumped.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-09-20 20:18:18 +08:00
Felix Fietkau
9676f90040 kernel: backport MTK ethernet/WLAN offload fixes
Fixes issues with offloading to WED, especially with VLAN bridges involved

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-20 20:16:26 +08:00
Chuanhong Guo
525b01ad91 mediatek: build ubnt-ledbar as a module
The config for LEDS_UBNT_LEDBAR doesn't stay in mt7629 kconfig because
of its I2C dependency. Build it as a module and let buildroot handle
this config option instead.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-09-20 20:15:43 +08:00
naoki66
c910efbac4
system.ntp.enable_server default (#10158) 2022-09-20 19:50:09 +08:00
AmadeusGhost
32aea04c4c mediatek: sync upstream source code
Fixes: #10156
2022-09-19 22:00:03 +08:00
Chuanhong Guo
3a90d86a78 kernel: 5.15: add support for ESMT F50x1G41LB
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-09-19 21:54:35 +08:00
Daniel Golle
c5d67f13f0 mediatek: fix sysupgrade on MTK7986 rfba AP
A line in platform.sh was accidentally removed when adding support
for the Bananapi BPi-R3.
Re-add it to fix sysupgrade on the MTK7986 rfba AP.

Fixes: a96382c1bb ("mediatek: add support for Bananapi BPi-R3")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:52:54 +08:00
Daniel Golle
4983058f5f mediatek: filogic: use WPS button instead of RST on BPi-R3
The GPIO used for the RST button is also used for PCIe-CLKREQ signal.
Hence it cannot be used as button signal if PCIe is also used.
Wire up WPS button to serve as KEY_RESTART in Linux and "reset" button
in U-Boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:50:39 +08:00
Daniel Golle
fad0b7b5c8 mediatek: bpi-r64: make initramfs/recovery optional
Only include recovery image in SD card image generated for the
BananaPi BPi-R64 if building with CONFIG_TARGET_ROOTFS_INITRAMFS
This allows to build images larger than 32 MB (the limit for
initramfs/recovery image) by deselecting initramfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:43:07 +08:00
Daniel Golle
d3f45415a2 mediatek: bpi-r3: make initramfs/recovery optional
Only include recovery image in SD card image generated for the
BananaPi BPi-R3 if building with CONFIG_TARGET_ROOTFS_INITRAMFS.
This allows to build images larger than 32 MB (the limit for
initramfs/recovery image) by deselecting initramfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:40:18 +08:00
Daniel Golle
54950ebefb uboot-mediatek: replace patches with updated versions
Weijie Gao has submitted an updated version of the patchset adding
support for MT7986 and MT7981 to U-Boot. Use that v2 patchset.

Changes of v2:
- Add cpu driver for print_cpuinfo()
- Fix NULL pointer dereference in mtk_image
  (was already fixed in OpenWrt)
- Fix coding style
- Minor changes

https://patchwork.ozlabs.org/project/uboot/list/?series=316148

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:36:40 +08:00
Daniel Golle
fa84a35840 mediatek: add support for Bananapi BPi-R3
The Bananapi BPi-R3 is a development router board built around the
MediaTek Filogic 830 (MT7986A) SoC.
The board can boot either from microSD, SPI-NAND, SPI-NOR or eMMC.
Only either SPI-NAND or SPI-NOR can be used at the same time, also only
either microSD or eMMC can be used. The various storage options can be
selected using small SMD switches on the board.

Specs:
 * MediaTek MT7986A (Filogic 830) 4x ARM Cortex A53
 * 4T4R 2.4G 802.11bgnax (MT7975N)
 * 4T4R 5G 802.11anac/ax (MT7975P)
 * 2 GB DDR4 RAM
 * 8 GB eMMC
 * 128 MB SPI-NAND flash
 * 32 MB SPI-NOR flash
 * on-board MT7531 GbE switch
 * 2x SFP+ (1 GbE / 2.5 GbE)
 * 5x GbE network port
 * miniPCIe slot (only USB 2.0 connected)
 * uSIM slot (connected to miniPCIe interface)
 * M.2 KEY-E PCIe interface (PCIe x2)
 * microSD card interface
 * 26 PIN GPIO

Hardware details: https://wiki.banana-pi.org/Banana_Pi_BPI-R3

Working:
 * all 4 boot methods incl. installation via U-Boot, sysupgrade, ...
 * copper LAN and WAN ports
 * SFP1 (connected to gmac1, eth1 in Linux)
 * WiFi
 * LEDs
 * Buttons
 * PSTORE/ramoops based dual-boot

Not Working (missing driver features):
 * SFP2 (connected to MT7531 switch)

Untested:
 * M.2/NGFF slot (PCIe x2)
 * mPCIe slot (USB 2.0 + SIM)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:34:49 +08:00
Daniel Golle
0584843979 uboot-envtools: add support for Bananapi BPi-R3
Create new mediatek_filogic file and add entries for environment on
MMC, UBI and NOR for the Bananapi BPi-R3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:29:42 +08:00
Daniel Golle
dcab6a3663 uboot-mediatek: add support for Bananapi BPi-R3
The Bananapi BPi-R3 board can boot from eMMC, SD card, SPI-NAND and
SPI-NOR, depending on the position of switches controlling the BOOTSEL
bootstrap pins as we as hard-wired chip-select lines. The position of the
chip-select switch SW6 decides whether either SD card or eMMC can be
accessed, SW5 selects either SPI-NAND or SPI-NOR.

Generate U-Boot for all 4 boot options. The SD card version allows
installation to SPI-NAND and SPI-NOR (eMMC cannot be accessed
simultanously with the SD card), the SPI-NAND version allows installation
to eMMC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:29:25 +08:00
Daniel Golle
a4a0faa748 generic: 5.15: get uImage.FIT partition parser ready
Prepare uImage.FIT partition parser for Linux 5.15

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-09-19 21:26:27 +08:00
Daniel Golle
967902aff5 uboot-mediatek: no compression means IH_COMP_NONE
Treat missing compression node in FIT image as IH_COMP_NONE.
This is implicentely already happening in most places, but for now
was still triggering an annoying warning about initramfs compression
being obsolete despite compression note being absent.
Fix this.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:23:41 +08:00
Daniel Golle
af68e43f0e uboot-mediatek: mt7986: add generic reset button support
Allow resetting environment to default values when defined button
exists in device tree.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:23:04 +08:00
Daniel Golle
3abe3dd5e8 uboot-mediatek: mt7986: support PSTORE/ramoops
Assign reserved memory for PSTORE/ramoops for the MT7986 SoC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:22:42 +08:00
Daniel Golle
fa440f78f0 uboot-mediatek: additions from MTK SDK
* updated SNAND/SNFI driver brings support for MT7981
 * add support for MediaTek NAND Memory bad Block Management (NMBM)
   (not used for any boards atm, but could be useful in future)
 * wire up NMBM support for MT7622, MT7629, MT7981 and MT7986
 * replace some local patches with updated version from SDK
 * bring some legacy precompiler symbols which haven't been converted
   into Kconfig symbols in U-Boot 2022.07, remove when bumbping to
   U-Boot 2022.10:
   100-28-include-configs-mt7986-h-from-SDK.patch

Source: https://github.com/mtk-openwrt/u-boot
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:22:21 +08:00
Daniel Golle
c9ead0cf50 uboot-mediatek: add support for MT798x platforms
Import pending patches to support the upcoming Filogic platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-19 21:21:56 +08:00
AmadeusGhost
3d0e662aae uboot-mediatek: sync upstream source 2022-09-19 21:20:35 +08:00
AmadeusGhost
8a353822ed Revert "kernel: bump 5.4 to 5.4.211"
This reverts commit 548ac73c5b.
2022-09-19 21:01:08 +08:00
lean
86eb0f2e34 autocore-arm: disable wireless port info show 2022-09-18 21:42:25 +08:00
Sungbo Eo
7901118997 mac80211: rt2x00: fix typo
Add missing semicolon and refresh patches.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2022-09-18 21:30:20 +08:00
lean
4f4d410217 rpcd: fixed rpcd ubus sock path 2022-09-18 19:01:50 +08:00
Felix Fietkau
e78c4bfffe mt76: update to the latest version
94eb0bc1374d wifi: mt76: testmode: use random payload for tx packets
f8ece810002b wifi: mt76: add rx_check callback for usb devices
67fbdb7bed90 wifi: mt76: mt7921e: fix race issue between reset and suspend/resume
a9b09dd2715f wifi: mt76: mt7921s: fix race issue between reset and suspend/resume
ee3eb0d6d52e wifi: mt76: mt7921u: fix race issue between reset and suspend/resume
9706ccef5447 wifi: mt76: mt7921u: remove unnecessary MT76_STATE_SUSPEND
74a29eb4f714 wifi: mt76: mt7921: move mt7921_rx_check and mt7921_queue_rx_skb in mac.c
f49e06c4cfce wifi: mt76: sdio: fix the deadlock caused by sdio->stat_work
322656141fa4 wifi: mt76: sdio: poll sta stat when device transmits data
dee0a3cbfb03 wifi: mt76: mt7915: fix an uninitialized variable bug
9dd7be2c5164 wifi: mt76: mt7921: fix use after free in mt7921_acpi_read()
0ad02c9a4512 wifi: mt76: sdio: add rx_check callback for sdio devices
fe85e5ccbaca wifi: mt76: sdio: fix transmitting packet hangs
206c7ebd7464 wifi: mt76: mt7615: add mt7615_mutex_acquire/release in mt7615_sta_set_decap_offload
bf79f5d73e4f wifi: mt76: mt7915: fix possible unaligned access in mt7915_mac_add_twt_setup
c4132ab0bea2 wifi: mt76: connac: fix possible unaligned access in mt76_connac_mcu_add_nested_tlv
52eec74986cf wifi: mt76: mt7663s: add rx_check callback
019ef069e754 wifi: mt76: mt76_usb.mt76u_mcu.burst is always false remove related code
0a392ca03db8 wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap
fbb3554b6236 wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_sta_set_decap_offload
b55a4eb2ee21 wifi: mt76: mt7921: fix the firmware version report
2d72c9a74011 wifi: mt76: move move mt76_sta_stats to mt76_wcid
873365b06c5c wifi: mt76: add PPDU based TxS support for WED device
0c64a80a61c2 wifi: mt76: connac: fix in comment
d11f971a452e wifi: mt76: mt7921: get rid of the false positive reset
2ac22300c7ac wifi: mt76: mt7915: fix mcs value in ht mode
5e45533e4ba2 wifi: mt76: fix uninitialized pointer in mt7921_mac_fill_rx
e06376af21dd wifi: mt76: mt7915: do not check state before configuring implicit beamform
0c0bda4aea05 wifi: mt76: mt7921: reset msta->airtime_ac while clearing up hw value
cddc4b43ea93 wifi: mt76: mt7921e: fix rmmod crash in driver reload test
ebbd68842ee0 wifi: mt76: mt7921: introduce Country Location Control support
763a1d90133b wifi: mt76: mt7921e: fix random fw download fail

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-18 15:29:13 +08:00
Eneas U de Queiroz
05e6276e00 wolfssl: add libwolfssl-cpu-crypto package
libwolfssl-cpu-crypto is a variant of libwolfssl with support for
cryptographic CPU instructions on x86_64 and aarch64.

On aarch64, wolfSSL does not perform run-time detection, so the library
will crash when the AES functions are called.  A preinst script attempts
to check for support by querying /proc/cpuinfo, if installed in a
running system.  When building an image, the script will check the
DISTRIB_TARGET value in /etc/openwrt_release, and will abort
installation if target is bcm27xx.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-09-18 15:28:30 +08:00
lovehackintosh
6281d9ef47
tools/cmake: update to 3.24.2 (#10146)
Release Notes:
https://www.kitware.com/cmake-3-24-2-is-available-for-download/

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-09-18 15:01:17 +08:00
lean
39534aa38f x86: backport I226 support for kernel 5.4 2022-09-17 23:54:23 +08:00
lean
790f6e67a7 bcm53xx: update NVMEM driver for NVRAM 2022-09-17 19:14:10 +08:00
lean
5428ab1b70 kernel: bump 5.15 to 5.15.68 2022-09-17 18:22:20 +08:00
lean
939da784e3 linux-firmware: update to 20220913 2022-09-17 18:14:13 +08:00
lean
aee55b2e97 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-09-17 17:45:26 +08:00
lean
548ac73c5b kernel: bump 5.4 to 5.4.211 2022-09-17 17:45:16 +08:00
lovehackintosh
4d3f1a6e78
kernel: bump 5.10 to 5.10.143 (#10138)
* kernel: bump 5.10 to 5.10.143

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: refresh 5.10 patches

All patches automatically rebased.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-09-17 17:32:05 +08:00
lean
40de02bf81 bcm53xx: switch to kernel 5.4 2022-09-17 13:30:22 +08:00
AmadeusGhost
176c77d7ee autocore-arm: add filogic subtarget support 2022-09-16 22:50:09 +08:00
lean
83903ede7b bcm53xx: PHICOMM K3 add k3screenctrl by default 2022-09-16 02:33:11 +08:00
lean
0b9571cf20 Config.in: disable LLVM default building 2022-09-16 02:23:58 +08:00
lean
a9b138ae00 x86: add Aquantia AQtion 5/2.5GbE USB-to-Ethernet by default 2022-09-16 02:19:40 +08:00
aakkll
84c7916464
kernel: bump 5.19 to 5.19.9 (#10125)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-16 02:10:53 +08:00
lean
0e7c277d03 rockchip: fix NanoPi R4SE has unique MAC address when boot from emmc 2022-09-16 02:10:11 +08:00
Rui Salvaterra
62ef304e67 kernel: add and enable MGLRU for Linux 5.15
Backport a preliminary version of Yu Zhao's multi-generational LRU, for
improved memory management. Refresh the patches while at it.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-09-15 15:29:45 +08:00
David Bauer
a5dada15ce rockchip: ensure NanoPi R4S has unique MAC address
Ensure the MAC address for all NanoPi R4S boards is assigned unique for
each board.

FriendlyElec ship two versions of the R4S: The standard as well as the
enterprise edition with only the enterprise edition including the EEPROM
chip that stores the unique MAC address.

In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S in case the EEPROM chip is not
present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R4S#Differences_Between_R4S_Standard_Version_.26_R4S_Enterprise_Version

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-09-15 15:23:34 +08:00
AmadeusGhost
58ccac858b Revert "rockchip: default smp tune on"
This reverts commit 518cd6a5c5.
2022-09-15 15:20:13 +08:00
骷髅头
b030e9103a
uboot-rockchip:fix r4se uboot sd card not bootable (#10117)
* uboot-rockchip:fix r4se uboot sd card not bootable

this will cause uboot to fail to load the sd card at startup, and uboot can recognize emmc

* rockchip:fix r4se system loading prompt led

* add the previous one

* fix
2022-09-15 14:05:50 +08:00
lean
61d68ec9b2 bridger: add bridge forwarding accelerator for target 2022-09-15 13:42:02 +08:00
lean
fabfc44859 bpftools: update to standalone bpftools + libbpf, use the latest version 2022-09-15 12:11:45 +08:00
HunZI
a8c7197cf1
cmake.mk: fix for install llvm-bdf (#10109) 2022-09-14 22:38:59 +08:00
lean
4a2ff4b1c6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-09-14 10:29:10 +08:00
lean
11b4453dca netfilter.mk: fix kmod-nf-log6 conflict with kmod-ip6tables 2022-09-14 10:26:49 +08:00
骷髅头
d418fa80b4
rockchip:fix r5s led not bright and add nvme driver (#10108)
* rockchip:modify the correct name of the led

* rockchip:r5s nvme driver enabled by default
2022-09-14 01:42:46 +08:00
lean
bd8bd60f4d Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-09-14 01:19:14 +08:00
lean
1003232a70 ipq807x: fix nss ecm support in kernel 5.15 2022-09-14 01:19:04 +08:00
Jiaxun Yang
b9ca497b9f
ath11k-firmware: Add missing board-2.bin for QCA6390 (#10106)
board-2.bin is mandatory for ath11k to work with QCA6390.
2022-09-14 00:50:32 +08:00
lean
30c3448606 qca-nss-drv-64: revert to QSDK 11.4 2022-09-13 21:31:21 +08:00
lean
64099b947a qca-ssdk: revert to QSDK 11.4 2022-09-13 21:11:00 +08:00
lean
4ae038fae6 nss-firmware: update to 12.1 fw 2022-09-13 20:08:09 +08:00
lean
d0e78ded01 kernel: bump 5.15 to 5.15.67 2022-09-13 19:25:12 +08:00
lean
cebb316d0f kernel: bump 5.15 to 5.15.65 2022-09-13 19:18:21 +08:00
lean
e438377b24 ipq807x: fix mf269 dts 2022-09-13 19:08:25 +08:00
lean
4da63f1fef ipq807x: fix patch for building 2022-09-13 18:57:15 +08:00
lean
518cd6a5c5 rockchip: default smp tune on 2022-09-13 17:03:53 +08:00
lean
0f103f7e83 cmake.mk: sync with upstream 2022-09-13 16:46:46 +08:00
lean
79d9040c5c ipq60xx: add dma arm64 api patch 2022-09-13 15:19:06 +08:00
lean
f66cf9d38c ipq807x: add kernel 5.15 support 2022-09-13 10:45:32 +08:00
lean
c07f003c89 ipq807x: add nss ecm support from QSDK12 for 5.10 2022-09-13 10:34:59 +08:00
lean
ea55ecee06 mediatek: add Xiaomi Redmi Router AX6000 support 2022-09-13 00:52:35 +08:00
lean
64e592e2d1 netfilter.mk: fix nft-socket and nft-tproxy depend 2022-09-13 00:24:50 +08:00
John Audia
d91aa7cef1 kernel: add # CONFIG_ARM64_ERRATUM_2441009 symbol
No current targets are ARMv9 or Cortex-A510 so comment the new symbol.[1]

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-09-13 00:18:17 +08:00
Petr Štetiar
bcfa26c0c6 tools: remove xxd package
It shouldn't be needed anymore as we've now `scripts/xxdi.pl`, which
should be self contained and fully compatible `xxd -i` replacement.

Fixes: #10555
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-13 00:08:53 +08:00
Petr Štetiar
a025d16dfb build: provide xxd -i with scripts/xxdi.pl
Dependency on xxd was added in commit c4dd2441e787 ("tools: add xxd
(from vim)") as U-Boot requires xxd to create the default environment
from an external file.

Later in commit 2b94aac7a128 ("tools: xxd: use more convenient source
tarball"), xxd from another source was used instead, but that source is
currently unavailable, so let's fix it by using simple xxdi.pl Perl
script instead.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-13 00:07:40 +08:00
Petr Štetiar
fa4dc514ee scripts: xxdi.pl: add xxd -i compat mode
So it can serve as a standalone drop in replacement for xxd utility used
currently mostly in U-Boot packages with `xxd -i` mode which outputs C
include file style, with aim for byte to byte identical output, so the
eventual difference in the generated output is easily spottable.

Fixes: #10555
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Jo-Philipp Wich <jo@mein.io> [perl-fu]
2022-09-13 00:07:13 +08:00
Jo-Philipp Wich
5fc18bd177 scripts: xxdi.pl: remove File::Slurp dependency
In order to make it more portable.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-13 00:06:57 +08:00
Petr Štetiar
27881dcb32 scripts: add xxdi.pl
xxdi.pl is a Perl script that implements vim's 'xxd -i' mode so that
packages do not have to use all of vim just to get this functionality.

References: #10555
Source: 97a6bd5cee/xxdi.pl
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-09-13 00:06:20 +08:00
lean
fc1df36dc1 qca-nss-ecm-64: rework for ipq807x 5.15 support 2022-09-12 19:51:54 +08:00
lean
88c0fe5c1a ipq60xx: add nss ecm kernel support for 5.15 2022-09-12 19:18:41 +08:00
lean
3da5d6fffd qca-nss-drv-64: add kernel 5.15 support 2022-09-12 18:58:21 +08:00
lean
7b0b726436 ipq60xx: add qihoo 360v6 factory ubi support 2022-09-12 14:23:44 +08:00
lean
76351e33bf qca-nss-dp: add kernel 5.15 support 2022-09-12 14:06:04 +08:00
lean
ddc3641e5b qca-ssdk: add kernel 5.15 support 2022-09-12 13:48:20 +08:00
lean
771d6973ac ipq60xx: fix kernel 5.15 dts support 2022-09-12 04:35:31 +08:00
lean
ea54bd7ca1 ipq60xx: add Qihoo 360v6 AX1800 support 2022-09-12 04:29:38 +08:00
lean
07a92bc1db qca-ssdk: Support ipq60xx target 2022-09-12 03:49:57 +08:00
lean
163022ea32 ath11k: enable ipq60xx target dependency 2022-09-12 03:44:59 +08:00
lean
9c0a73385d kernel: netfilter: Add nf_tproxy_ipv{4,6} and nf_socket_ipv{4,6} 2022-09-12 02:58:55 +08:00
Beginner
931b793a06
kernel: bump 5.10 to 5.10.142 (#10084)
* kernel: bump 5.10 to 5.10.139

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.141

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.142

All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: refresh 5.10 patches

Manual rebase:
  target/linux/generic/hack-5.10/953-net-patch-linux-kernel-to-support-shortcut-fe.patch

Build system: x86_64
Build-tested: x86_64
Run-tested: x86_64

Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-09-12 01:25:26 +08:00
lean
168828486e dnsmasq: add patch for DHCPv6 to honor IPv6 address on MAC address 2022-09-12 01:24:33 +08:00
lean
e101ec4903 toolchain: Use GCC 8 by default for mips target 2022-09-11 13:08:49 +08:00
lean
d7b9bb3d95 ntfs3-mount: drop ntfs3-oot 2022-09-11 03:38:41 +08:00
lean
2b04e06a1c fs: port ntfs3 from kernel 5.19 to 5.10 2022-09-11 03:36:58 +08:00
lean
915d5814dd fs: port ntfs3 from kernel 5.19 to 5.4 2022-09-11 03:34:53 +08:00
Beginner
985cc94b09
toolchain/gcc: GCC12 sync upstream (#10080) 2022-09-11 02:32:11 +08:00
Malash
43f8817298
ath11k-firmware: WCN6855: fix firmware link (#10078) 2022-09-10 21:39:35 +08:00
lovehackintosh
64b3d5a061
kernel: fixes build error and refresh 5.15 patches (#10074)
Manually rebased:
  target/linux/generic/hack-5.15/953-net-patch-linux-kernel-to-support-shortcut-fe.patch

All other patches automatically rebased.

Build system: x86_64
Fixes: #10071 

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-09-10 18:18:08 +08:00
lean
0321612a81 kernel: bump 5.15 to 5.15.64 2022-09-10 01:34:26 +08:00
lean
5e282f08c5 samba36: fix autoshare CVE 2022-09-10 01:27:31 +08:00
lean
2055072417 autosamba: use samba4 bydefault 2022-09-10 01:22:51 +08:00
lean
0b861c7d99 toolchain: binutils: add support for version 2.39 2022-09-10 01:20:19 +08:00
lean
dc9c784945 toolchain: add support for GCC 12 typo 2022-09-09 21:18:58 +08:00
lean
f4e3702e7d mbedtls: refresh patches 2022-09-09 21:12:05 +08:00
lean
3e6a4852da samba36: bump version 2022-09-09 11:59:53 +08:00
lean
9e2144f153 toolchain/gcc: switch to version 11 by default 2022-09-09 11:40:29 +08:00
lean
3060ad304a toolchain: binutils: add support for version 2.39 2022-09-09 10:46:55 +08:00
lean
5ff54a6ef0 toolchain: bump GCC 12 to 12.2.0 2022-09-09 10:41:18 +08:00
lean
8d99ff426f toolchain: bump GCC 11 to 11.3.0 2022-09-09 10:38:32 +08:00
aakkll
261968b99c
kernel: bump 5.19 to 5.19.8 (#10068)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-08 23:36:40 +08:00
lean
66b4ca12bf mbedtls: refresh patches 2022-09-08 21:40:55 +08:00
Felix Fietkau
49e382d368 mt76: update to the latest version
d70546462b7b mt76: fix 5 GHz connection regression on mt76x0/mt76x2

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-08 14:25:12 +08:00
Daniel Golle
2209b3f08b mediatek: remove redundant patch
The patch 921-mt7986-add-mmc-support.patch introduced by commit
dabcaac443 ("mediatek: add mt7986 soc support to the target") has never
been applied in a way that it would have any effect as it actually
created a file target/linux/generic/patches-5.15/... in the kernel tree
and was probably a patch intended to be applied to openwrt.git instead
of being put into kernel patches folder as a file.

As an upstream commit from vanilla Linux also adding support for MT7986
to the mtk-sd driver has already been included we can remove that old
patch.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-08 14:24:15 +08:00
Daniel Golle
9c18ffb15a arm-trusted-firmware-tools: update to v2.7
Update host build of fiptool and use the new python sptool.py instead
of the previous sptool executable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-08 14:23:45 +08:00
Daniel Golle
56f5844c81 kernel: mtk_eth_soc: fix hw hash reporting for MT7986
Import patch from Linux 6.0.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-08 14:22:05 +08:00
Daniel Golle
868087e0e8 kernel: fix mvneta Ethernet after generic phylink validate
Import patches from Linux v5.16 and v5.17 to get 2500Base-X SFP working
again with mvneta driver after the generic phylink validate backport.

Fixes: aab466f422 ("kernel: backport generic phylink validate")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-08 14:20:11 +08:00
lean
56bbba703c ethtool: update to 5.19 2022-09-07 14:11:06 +08:00
Daniel Golle
6eaf356bd0 kernel: rework Huawei-compatible OEM SFP GE-T
This patch was added in 09b086eecaa545cf7f30bc7e394a32751e25db65
("kernel: add quirk for Huawei-compatible OEM SFP GE-T"). Add patch
title, description and SoB to follow OpenWrt's developer guide for
working patches to prepare it for being sent upstream. This patch
should be discussed with Russell King and merged to Linux kernel.

Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-07 02:19:26 +08:00
Josef Schlehofer
9c7f429f22 kernel: add support for HALNy HL-GSFP and other related fixes
It was reported on Turris forum [1] that HALNy HL-GSFP module does not
work as it should with kernel 5.15. Russell King prepared this patch
series, which fixes broken SFP module to work.

Compile and run tested with Turris Omnia.

[1] https://forum.turris.cz/t/hbl-turrisos-6-0-alpha2-halny-hl-gsfp-sfp-gpon-stick-problems/17547

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-09-07 02:18:31 +08:00
AmadeusGhost
1e398a0e9f Revert "ramips: disable wlan nat as workaround"
This reverts commit 2d2f20e386.
2022-09-07 02:18:09 +08:00
coolsnowwolf
2d2f20e386
ramips: disable wlan hnat as workaround 2022-09-06 15:35:48 +08:00
aakkll
ccf92add04
kernel: bump 5.19 to 5.19.7 (#10059)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-06 15:20:42 +08:00
AmadeusGhost
6bdfad193b linux-firmware: rtl8821: renamed to rtl8821ce
Described as the hardware it supports.
2022-09-05 23:25:03 +08:00
AmadeusGhost
39c57aca18 Revert "ramips: mt7621-dts: mux phy0/4 to gmac1"
This reverts commit a28334d8b8.
Closed: #10050, #10053
2022-09-05 23:20:51 +08:00
syb999
a3b880a4e8
ramips: add support for C-Life XG1 [WIFI6] (#10057)
CPU: MediaTek MT7621AT
  Flash: Micron MT29F2G08ABAGAWP 128M
  RAM: 256 M
  WiFi: MT7915 2.4/5 GHz 2T2R
  Ethernet: 10/100/1000 Mbps x3
  LED: Status (red / blue / white / green / purple / cyan)
  USB: 2.0 x 1
  ZigBee/BlueTooth
  USB Audio: iec958 x 1
  Button: Reset
  Power: DC 12V,1.5A

开启ssh方法:
  打开网页:192.168.10.1,用户路由器底面标注的用户名密码完成登陆。
  然后打开网页:http://192.168.10.1/cgi-bin/luci/admin/mtk/console,在命令行中输入以下命令:
  echo -en "root\nroot\n" | passwd
  然后打开网页:http://192.168.10.1/cgi-bin/luci/pti/ssh_open
  即可ssh登陆192.168.10.1,用户名root,密码root

刷入openwrt:

开启ssh后,上传breed-mt7621-xiaomi-r3g.bin到路由器/tmp目录。
然后使用下面命令刷入breed:
mtd -r write /tmp/breed-mt7621-xiaomi-r3g.bin Bootloader
等待机器重启,等1分钟断开电源。
按住C-Life XG1机身正面的圆形IoT按钮(gpio 18),通电就能进入breed刷机.
2022-09-04 18:30:18 +08:00
lean
fb1fce9d28 rockchip: enable hwrng in kernel 5.19 2022-09-03 22:38:37 +08:00
lean
dd1fae2f20 rockchip: fix NanoPi R4SE in 5.15 2022-09-03 22:36:37 +08:00
lean
061af71d44 rockchip: add kernel 5.19 support 2022-09-03 22:25:36 +08:00
mefer
7f1871672f tools: xxd: fix source URL
No working http, only https
2022-09-03 11:41:12 +08:00
Ivan Pavlov
baa5741a53 wolfssl: bump to 5.5.0
Remove upstreamed: 101-update-sp_rand_prime-s-preprocessor-gating-to-match.patch

Some low severity vulnerabilities fixed
OpenVPN compatibility fixed (broken in 5.4.0)
Other fixes && improvements

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2022-09-03 11:28:03 +08:00
Daniel Golle
8bc40a873f kernel: fix DSA mac_select_pcs backport
Backport commit from Linux 5.18 fixing phylink with DSA drivers which
do not provide mac_select_pcs yet.

Fixes: aab466f422 ("kernel: backport generic phylink validate")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-03 11:25:32 +08:00
Daniel Golle
046cf2c8f7 arm-trusted-firmware-mediatek: update to sources of 2022-08-31
Drop downstream patches which have been replaced with equivalent
upstream changes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-03 11:23:45 +08:00
Daniel Golle
967e9f5d66 kernel: add pending mtk_sgmii and phy improvements from @lynxis
Add pending patches from Alexander 'lynxis' Couzens which are required
for RealTek NBase-T PHYs or SFP+ cages to work when connected to the
SGMII interface provided by recent MediaTek SoCs [1].
The patches for MT753x fix link speed limitation on CPU ports observed
by many users which is due to reset being carried out wrongly [2].

[1]: https://patchwork.kernel.org/project/netdevbpf/list/?series=669488&state=*
[2]: https://patchwork.kernel.org/project/netdevbpf/list/?series=669486&state=*

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-03 11:23:20 +08:00
Daniel Golle
888e3c35a7 kernel: backport generic phylink validate
Backport generic phylink validate series and make use of it for
mtk_eth_soc Ethernet driver as well as mt7530 DSA driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-03 11:22:49 +08:00
Josef Schlehofer
b18bb3efbf kernel: fix typo for tegra crypto-sha1 module
Fixes: e889489bedfd2830411bd0cf6564b8272aa9c254 ("kernel: build
arm/neon-optimized sha1/512 modules")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-09-02 11:58:38 +08:00
padavanonly
b8588061ba ramips: mt7621: fix transparent proxy issue 2022-09-02 11:57:27 +08:00
AmadeusGhost
a083aab5ef uboot-rockchip: fixes rk3328 build error
Fixes: #10037, #10038
2022-09-02 11:53:45 +08:00
lean
c06859e50f rockchip: enable hwrng for R66S/R68S 2022-09-02 02:40:00 +08:00
lean
d6f75eefa1 rockchip: add support for firefly station-p2 board 2022-09-02 02:13:41 +08:00
lean
780869012b uboot-rockchip: add support for firefly station-p2 board 2022-09-02 01:40:40 +08:00
lean
4860a8b285 Update README.md 2022-09-02 01:31:43 +08:00
aakkll
5d87cf5616
kernel: refresh 5.19 patch (#10033)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-09-02 01:23:58 +08:00
lean
3e0b3b94e6 update README.md 2022-09-01 18:46:55 +08:00
lean
0303ac3d38 x86: backport Intel GUC support for N5105/N6005 in kernel 5.15 2022-09-01 18:38:35 +08:00
lean
6bf0fbd526 rockchip:fix nanopi-r4s mac address again 2022-09-01 14:55:14 +08:00
lean
3226f7cfab Version update to R22.9.1 2022-09-01 14:31:09 +08:00
lean
bd241073fd update README.md 2022-09-01 14:04:39 +08:00
AmadeusGhost
b477a0b702 rockchip: add support for FastRhino R66S/R68S
For R68S, flash in as follows:
  dd if=openwrt-rockchip-armv8-fastrhino_r68s-ext4-sysupgrade.img
     of=/dev/mmcblk0
2022-09-01 12:01:21 +08:00
AmadeusGhost
6aaf68d8f5 rockchip: add basic support for HINLINK OPC-H68K 2022-09-01 11:59:31 +08:00
AmadeusGhost
7f8e3bf68c rockchip: add support for EZPRO Mrkaio M68S 2022-09-01 11:57:14 +08:00
AmadeusGhost
5115f2bc1d rockchip: backport support for Radxa ROCK3 A
Also enabled pcie on this board.
2022-09-01 11:56:02 +08:00
AmadeusGhost
c9dfab16d3 uboot-rockchip: don't hardcore USB_OHCI_NEW options
This will only make things complicated.
2022-09-01 11:51:00 +08:00
AmadeusGhost
695be791b2 rockchip: 5.15: fixes motorcomm driver build error 2022-09-01 11:49:38 +08:00
AmadeusGhost
8cb632045f rockchip: 5.15: introduce rk3568 support
Due to the missing ATF for normally boot, there are still
a lot of bugs on this platform. At the same time, the GMAC
driver also lacks a part.
2022-09-01 11:43:00 +08:00
AmadeusGhost
22d08ddd3d rockchip: revert to origin defaults
The current target code is too chaotic, the patches are
messy and disorderly, and there are still many duplicate
code. Pack it back to half a year ago.
2022-09-01 11:28:49 +08:00
AmadeusGhost
b5b402cd07 Revert "rockchip: backport rk3568 support to kernel 5.10"
This reverts commit cb3ea4bf55.
2022-09-01 11:25:13 +08:00
lean
44275af49f x86: add new missing symbol 2022-09-01 00:07:21 +08:00
lean
109c4fc947 kernel: bump 5.19 to 5.19.6 2022-08-31 23:51:09 +08:00
QiuSimons
cb3ea4bf55
rockchip: backport rk3568 support to kernel 5.10 (#10025) 2022-08-31 20:24:42 +08:00
Hyy2001X
bf98ce65fe
linux-firmware: fix Intel GUC firmware support for N5105/N6005 (#10027)
N5105/6005 的 GUC 最新固件应为 ehl_guc_70.1.1.bin
root@OpenWrt[x86_64]:~# dmesg | grep i915
[   15.782124] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/icl_dmc_ver1_09.bin (v1.9)
[   15.807568] i915 0000:00:02.0: [drm] GuC firmware i915/ehl_guc_70.1.1.bin version 70.1
[   15.808411] i915 0000:00:02.0: [drm] HuC firmware i915/ehl_huc_9.0.0.bin version 9.0
[   15.824779] i915 0000:00:02.0: [drm] HuC authenticated
[   15.825842] i915 0000:00:02.0: [drm] GuC submission enabled
[   15.826473] i915 0000:00:02.0: [drm] GuC SLPC disabled
[   15.842051] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[   15.955659] fbcon: i915drmfb (fb0) is primary device
[   15.995663] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
2022-08-31 20:15:18 +08:00
lean
bcc2e4ab19 linux-firmware: add Intel GUC firmware support for N5105/N6005 2022-08-31 01:46:53 +08:00
Aes64X
b5541f15fd
Intel GUC: add UHD 630/750 support (#10023)
* Update Makefile

* Update intel.mk

* Delete 992-enable-intel-guc.patch

* Update intel.mk
2022-08-31 01:31:55 +08:00
lean
471ed020e7 x86: enable intel idle driver on x64 2022-08-30 17:19:06 +08:00
lean
451fc0189f x86: load HuC firmware by default for Intel gen9+ 2022-08-30 16:25:01 +08:00
lean
40e3a3f754 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-30 15:38:56 +08:00
Hauke Mehrtens
0e14f14765 mbedtls: update to version 2.28.1
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.1
This release of Mbed TLS provides bug fixes and minor enhancements. This
release includes fixes for security issues.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-30 12:10:25 +08:00
Alex
4e90e9afc8 github workflows: security hardening
This PR adds explicit permissions section to workflows. This is a security
best practice because by default workflows run with extended set of permissions
(except from on: pull_request from external forks). By specifying any permission
explicitly all others are set to none. By using the principle of least privilege
the damage a compromised workflow can do (because of an injection or compromised
third party tool or action) is restricted. It is recommended to have most strict
permissions on the top level and grant write permissions on job level case by case.
2022-08-30 12:08:21 +08:00
AmadeusGhost
1ccc3bfd54 ramips: mt7621: fixes dsa hnat support 2022-08-30 12:01:08 +08:00
?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?=
a28334d8b8 ramips: mt7621-dts: mux phy0/4 to gmac1
Mux the MT7530 switch's phy0/4 to the SoC's gmac1 on devices where RGMII2
pins are available. This achieves 2 Gbps total bandwidth to the CPU using
the second RGMII.

The ports called "wan" are muxed where possible. On a minority of devices,
this is not possible. Those cases:

mt7621_ampedwireless_ally-r1900k.dts: lan3
mt7621_ubnt_edgerouter-x.dts: eth0
mt7621_gnubee_gb-pc1.dts: ethblue
mt7621_linksys_re6500.dts: lan1
mt7621_netgear_wac104.dts: lan4
mt7621_tplink_eap235-wall-v1.dts: lan0
mt7621_tplink_eap615-wall-v1.dts: lan0
mt7621_ubnt_usw-flex.dts: lan1

The "wan" port is just what the vendor designated on the board/plastic
chasis of the device. On a technical level, there is no difference between
a lan and wan port on MT7621AT, MT7621DAT and MT7621ST SoCs. Prefer
connecting to WAN via the port described above for these devices to benefit
the feature brought with this patch.

mt7621_d-team_newifi-d2.dts cannot benefit this feature, although it looks
like it should, because the rgmii2 pins are wired to unused components.

Tested on a range of devices documented on the GitHub PR.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:48:07 +08:00
Arınç ÜNAL
9483e6d8a9 ramips: mt7621-dts: do not claim rgmii2 group as gpio for certain devices
These devices do not use rgmii2 as gpio, therefore remove rgmii2 pin group
from state-default. Remove overwriting the ethernet node for these devices.

Move claiming the rgmii2 group from mt7621_zyxel_nwa-ax.dtsi to
mt7621_zyxel_nwa50ax.dts as it's only the latter using rgmii2 pins as gpio.

Remove duplicate ethernet overwrite from mt7621_tplink_archer-x6-v3.dtsi.

Claim rgmii2 group as gpio on mt7621_bolt_arion.dts as it uses an rgmii2
pin, 26, as gpio.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:47:15 +08:00
Arınç ÜNAL
a9d71837e9 ramips: fix GB-PC1 and GB-PC2 device support
Change switch port labels to ethblack & ethblue.
Change lan1 & lan2 LEDs to ethblack_act & ethblue_act and fix GPIO pins.
Add the external phy with ethyellow label on the GB-PC2 devicetree.
Do not claim rgmii2 as gpio, it's used for ethernet with rgmii2 function.
Enable ICPlus PHY driver for IP1001 which GB-PC2 has got.
Update interface name and change netdev function.
Enable lzma compression to make up for the increased size of the kernel.
Make spi flash bindings on par with mainline Linux to fix read errors.

Tested on GB-PC2 by Petr.

Tested-by: Petr Louda <petr.louda@outlook.cz>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-08-30 11:46:22 +08:00
David Bauer
29706161e3 ramips: fix missing NVMEM subsystem
MAC address retrieval was switched to more generic upstream (5.13) NVMEM
based solution in commit 06bb4a5018cd ("ramips: convert mtd-mac-address
to nvmem implementation") , but NVMEM subsystem wasn't enabled in the
kernel, so fix it now.

Fixes: 06bb4a5018cd ("ramips: convert mtd-mac-address to nvmem implementation")
Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [commit message]
2022-08-30 11:45:06 +08:00
aakkll
1d2998c2ae kernel: bump 5.19 to 5.19.5 2022-08-30 11:42:30 +08:00
lean
d63a4cb792 mt76: mt7921e: add firmware for mt7922 devices 2022-08-30 11:40:42 +08:00
lean
fc76404440 kernel: bump 5.19 to 5.19.5 2022-08-30 00:26:28 +08:00
QiuSimons
3bb3b633eb
rockchip: fix kernel 5.10 build error (#10017) 2022-08-29 21:43:49 +08:00
lean
ef5585ee83 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-29 21:40:36 +08:00
Hauke Mehrtens
ddb8181fef wolfssl: Rebuild when libwolfssl-benchmark gets changes
This forces a rebuild of the wolfssl package when the
libwolfssl-benchmark OpenWrt package gets activated or deactivated.
Without this change the wolfssl build will fail when it compiled without
libwolfssl-benchmark before and it gets activated for the next build.

Fixes: 18fd12edb810 ("wolfssl: add benchmark utility")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-29 11:39:30 +08:00
Daniel Golle
0ef0d66cb9 kernel: enable inside secure driver for MediaTek platforms
Older MT7623 ARMv7 SoC as well as new Filogic platforms come with
inside-secure,safexcel-eip97 units. Enable them in DTS and select the
driver kernel module by default on those platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:39:05 +08:00
Eneas U de Queiroz
3635ad2c08 mediatek: remove crypto-hw-mtk package
The MediaTek's Crypto Engine module is only available for mt7623, in
which case it is built into the kernel.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-08-29 11:38:47 +08:00
Felix Fietkau
ea13fe5a40 mt76: add mt7986 wmac support
Add firmware package for MT7986 and enable WMAC support in the driver

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-08-29 11:36:27 +08:00
Felix Fietkau
d5b2eb6cdc mediatek: add filogic subtarget
Initially this covers MT7986 only, but it will later be expanded to cover other
Filogic branded platforms by MediaTek

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:36:06 +08:00
Sam Shih
a4478fb400 mediatek: add mt7986 soc support to the target
It will be supported by the new filogic subtarget

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:35:05 +08:00
Daniel Golle
a86cabf4c2 uboot-mediatek: add support for compressed BL3/FIP image
MediaTek's ARM Trusted Firmware v2.7+ allows the images inside a FIP
structure to be compressed. Make use of that for boards with NOR flash.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:28:25 +08:00
Daniel Golle
2ab51c530a arm-trusted-firmware-mediatek: update to v2.7+ from MediaTek
The updated sources bring support for the MT798x Filogic SoC family.

Add builds for MT7986 with most supported storage types, each for DDR3
and DDR4 configurations.

A better solution for skipping bad blocks on SPI-NAND connected via the
SNFI interface has been implemented upstream, so drop local patch.
Add pending patches [1] and [2] to fix boot on existing MT7622 boards.

Tested on BananaPi BPi-R64 (SDMMC, eMMC, SPI-NAND), Linksys E8450 and
Ubiquiti UniFi 6 LR as well as upcoming Bananapi BPi-R3 board for which
support will be added in future patches.

[1]: https://github.com/mtk-openwrt/arm-trusted-firmware/pulls/#3
[2]: https://github.com/mtk-openwrt/arm-trusted-firmware/pulls/#4

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:24:17 +08:00
Daniel Golle
746a5e8ad6 arm-trusted-firmware-mediatek: remove no longer needed Configure step
As anyway only the default is called now we can as well also just remove
the override for Build/Configure.

Fixes: e2cffbb805 ("arm-trusted-firmware-mediatek: update to 2021-03-10")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:24:10 +08:00
Daniel Golle
2efe9343ca trusted-firmware-a.mk: pass DTC path similar to u-boot.mk
Instead of relying on dtc being provided by the build host use the
dtc from $(LINUX_DIR) similar to how it's done also in u-boot.mk.
For this to work kernel.mk now needs to be included before
trusted-firmware-a.mk, add this include to all affected packages.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:20:19 +08:00
Daniel Golle
37cc0d3f3e tools: mkimage: Add support for MediaTek MT798x
Import pending patches for mtk_image to support BootROM headers of
newer MediaTek SoCs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-29 11:16:54 +08:00
lean
f8015dd5e9 mt76: mt7921e: add firmware for mt7922 wifi6e devices for Ryan 2022-08-29 01:11:02 +08:00
lean
f14f4820b4 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-29 01:09:36 +08:00
aodzip
3302e26e94 ramips/mt7621: Add HATLab GateBoard-One Support
Signed-off-by: Aodzip <aodzip@gmail.com>
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2022-08-28 15:50:27 +08:00
lean
87f72815e8 uboot-rockchip: add HINLINK OPC-H68K support 2022-08-28 11:25:59 +08:00
Daniel Golle
ea9e965d33 kernel: add quirk for Huawei-compatible OEM SFP GE-T
Ignore TX_FAULT signal on certain cheap copper/TP gigabit Ethernet SFP
modules.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-28 10:54:23 +08:00
Vladimir Markovets
dded495ebf kernel: backport workaround for Realtek RTL8672 and RTL9601C chips
Adds support for GPON SFP modules based on the Realtek RTL8672 and
RTL9601C chips, including but not limited to:
* V-SOL V2801F
* C-Data FD511GX-RM0
* OPTON GP801R
* BAUDCOM BD-1234-SFM
* CPGOS03-0490 v2.0
* Ubiquiti U-Fiber Instant
* EXOT EGS1

Signed-off-by: Vladimir Markovets <abam_a@yahoo.com>
2022-08-28 10:53:54 +08:00
lean
685a4f1071 mfd: rk808: Add reboot support to rk808.c 2022-08-27 12:22:17 +08:00
lean
b1e8d12da9 mt76: update to the latest version 2022-08-27 03:38:00 +08:00
lean
e6fbfd9404 rockchip: fix Firefly Station P2 sata support 2022-08-27 03:17:09 +08:00
lean
98318a2627 rockchip: add r66s vop support 2022-08-27 03:16:31 +08:00
lean
24d685c904 rockchip: fix r66s gpio-regulator error 2022-08-27 02:48:10 +08:00
lean
c9572764f3 kernel: fix linux 5.19 shortcut-sfe kernel panic issue 2022-08-27 02:06:24 +08:00
lean
93a9f06c4c rockchip: backport rk3568 support to kernel 5.15 from immortalwrt 2022-08-27 00:51:54 +08:00
benihi
6670876f72
kernel: 5.10: refresh all patches (#10005)
Rmove:
target/linux/ipq807x/patches-5.10/147-clk-ipq8074-defer-from-disabling-gcc_sleep_clk_src.patch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.138&id=6b90ab952401bd6c1a321dcfc0e0df080f2bc905

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-08-26 21:11:29 +08:00
benihi
3e87e5f41d
kernel: 5.15: fix bug in patch format (#10006)
Signed-off-by: José Hwong <josehwong@hotmail.com>

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-08-26 21:09:32 +08:00
lovehackintosh
ec3a9bd8ac
kernel: bump 5.15 to 5.15.63 (#9999)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-08-26 13:11:25 +08:00
lovehackintosh
c48c51cc37
kernel: bump 5.10 to 5.10.138 (#9998)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-08-26 13:10:58 +08:00
1054009064
80ea9d5bbf
hostapd: fix this patch to cause some wireless driver DFS detection (#9997) 2022-08-25 23:45:01 +08:00
aakkll
abd4c51b2e
kernel: bump 5.19 to 5.19.4 (#9995)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-25 22:23:31 +08:00
lovehackintosh
013282f696
kernel: bump 5.15 to 5.15.62 (#9994)
Runtime tested on turris-omnia and glinet-b1300.

Tested-by: John Audia <therealgraysky@proton.me> [bcm2711/RPi4B, mt7622/RT3200]
Signed-off-by: Petr Štetiar <ynezz@true.cz>

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Co-authored-by: Petr Štetiar <ynezz@true.cz>
2022-08-25 22:22:58 +08:00
lean
f71276d16f ath11k: add wcn685x wifi6e ap mode and firmware support 2022-08-25 11:20:24 +08:00
lean
d496bf88a4 mac80211: fix ath10k 5.19 support 2022-08-25 02:55:42 +08:00
lean
c5fdfb9edb rockchip: add sdhi pinctrl for nanopi5 2022-08-25 02:10:35 +08:00
benihi
cd264e8258
ipq807x: fixes build error and refresh 5.10 patches (#9991)
adjusted:
target/linux/ipq807x/patches-5.10/125-ipq8074-gcc-Added-support-for-NSS-clocks.patch
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=b28ebe7d2f10e5ca574be3d4188a744674e8e0d5
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=e2330494f0f8f168ae5bd17df01cb61363593c46

removed:
target/linux/ipq807x/patches-5.10/128-qcom-clk-ipq8074-fix-port-6-clock-issue-for-1G.patch
target/linux/ipq807x/patches-5.10/129-clk-qcom-ipq8074-Add-NSS-PORT-clocks-frequencies.patch
target/linux/ipq807x/patches-5.10/130-clk-qcom-ipq8074-change-freq-table-for-port5_tx_clk_.patch
https://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/clk/qcom/gcc-ipq8074.c?h=v5.10.137&id=b83af7b4ec1d1c54de7d7115c9e0b4c3d60fdc47

Signed-off-by: José Hwong <josehwong@hotmail.com>

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-08-24 19:45:26 +08:00
lovehackintosh
8943750549
kernel: bump 5.10 to 5.10.137 (#9990)
All other patches automagically rebased.

Signed-off-by: Petr Štetiar <ynezz@true.cz>

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Co-authored-by: Petr Štetiar <ynezz@true.cz>
2022-08-24 13:20:32 +08:00
Nick Hainke
7987b04159 elfutils: update to 0.187
Changes:
debuginfod: Support -C option for connection thread pooling.

debuginfod-client: Negative cache file are now zero sized instead of
                   no-permission files.

addr2line: The -A, --absolute option, which shows file names including
           the full compilation directory is now the default.  To get the
           old behavior use the new option --relative.

readelf, elflint: Recognize FDO Packaging Metadata ELF notes

libdw, debuginfo-client: Load libcurl lazily only when files need to
                         be fetched remotely. libcurl is now never
                         loaded when DEBUGINFOD_URLS is unset. And when
                         DEBUGINFOD_URLS is set, libcurl is only loaded
                         when the debuginfod_begin function is called.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-24 11:01:37 +08:00
Hauke Mehrtens
2666c29799 tools: elfutils: Update to version 0.187
Update to most recent version of elfutils and sync with version from
package folder.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-24 11:01:16 +08:00
Stijn Tintel
70571fb6dc tools/elfutils: drop HOST_BUILD_DEPENDS
This is only effective for host build of normal packages, not tools.

Fixes: ad79b9271949 ("elfutils: move host build to tools")
Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-08-24 10:59:25 +08:00
Stijn Tintel
0dc61a0d37 tools/elfutils: only build required components
Building all of the components results in strip being installed in
staging_dir/host/bin. This strip binary will take precedence over
binutils strip that is installed in the toolchain directory.

This will not work on host systems that do not have libdw installed, as
we do not set HOST_LDFLAGS to override rpath to staging_dir/host/lib.
However, rather than overriding rpath, we should just avoid using
elfutils strip entirely.

Override the SUBDIRS variable in the Makefile to only build and install
the libraries we require for dwarves and frr.

Fixes the following build failure in toolchain/gdb:
strip: error while loading shared libraries: libdw.so.1: cannot open shared object file: No such file or directory

Fixes: ad79b9271949 ("elfutils: move host build to tools")
Reported-by: Dominick Grift <dominick.grift@defensec.nl>
Reported-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-08-24 10:58:46 +08:00
Stijn Tintel
75c72b7920 tools/elfutils: depend on m4
Some buildbots fail to build elfutils due to m4 being missing. Add m4 as
a dependency for elfutils to fix this.

Fixes: ad79b9271949 ("elfutils: move host build to tools")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-08-24 10:57:42 +08:00
Tony Ambardar
68e802c1b9 tools/dwarves: add host package
dwarves is a set of tools that use the debugging information inserted in
ELF binaries by compilers such as GCC. Utilities in the dwarves suite
include pahole, which can be used to find alignment holes in structs and
classes, and also extracts other information such as CPU cacheline
alignment, helping pack those structures to achieve more cache hits.

These tools are also used to encode and read the BTF type information
format used with the bpf syscall, making this a Linux build dependency
when using kernel BTF information.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
[bump to 1.23, add elfutils dep, drop host lib usage, drop cmake release
target, use RM macro]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-08-24 10:57:28 +08:00
Stijn Tintel
4f70247621 elfutils: move host build to tools
The upcoming dwarves host package requires elfutils. As dependencies for
tools must exist in tools, we need to move elfutils host build there.

As there is at least one package that depends on this, and there is no
proper way to create such dependency in the build system, build it
unconditionally when not building on macOS.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-08-24 10:56:09 +08:00
Felix Fietkau
9d2215976c tools: build bash on macOS and use it for ipkg-build
On macOS, system binaries silently drop the environment variables for injecting
extra shared libraries (used by fakeroot). This is done for security reasons.
Work around this by building bash from source, so that it gets an ad-hoc signature
and does not have these restrictions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-08-24 10:53:47 +08:00
Rosen Penev
7ad3d04a03 elfutils: fix host compilation with Alpine Linux
intl is not included in libc, disable it as is done with the target
package.

argp is also not included. Add build depends for argp-standalone.

fts is also not included. Add build depends for musl-fts.

Disable shared libraries to avoid having to manually add rpath.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-08-24 10:50:26 +08:00
Sergey V. Lobanov
009ca51099 argp-standalone: add host-compile ability
This patch adds host-compile ability to argp-standalone for build
hosts without glibc and argp lib, e.g. MacOS.

iucode-tool/host can not be built on MacOS due to lack of argp.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-08-24 10:47:42 +08:00
Nick Hainke
1490a1a001 tools/cmake: update to 3.24.1
Update cmake to newest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-24 10:41:21 +08:00
Rosen Penev
bcd3daf54f tools/cmake: update to 3.22.3
Seems to be mostly pthread fixes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-08-24 10:40:10 +08:00
Nick Hainke
606b06891f tools/isl: update to 0.25
Update isl to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-24 10:38:35 +08:00
Nick Hainke
22db5865d9 tools/xz: update to 5.2.6
This update contains a security fix to xzgrep (CVE-2022-1271,
ZDI-CAN-16587). Release notes:
https://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;hb=HEAD

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-24 10:38:15 +08:00
Daniel Golle
547bdeb71e arm-trusted-firmware-mediatek: skip bad blocks on SPI-NAND (SNFI)
Add patch to skip bad blocks when reading from SPI-NAND. This is needed
in case erase block(s) early in the flash inside the FIP area are bad
and hence need to be skipped in order to be able to boot on such damaged
chips.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-23 22:57:31 +08:00
Sultan Alsawaf
944cb3db09 mac80211: parse the correct set of HE capabilities for AP mode
It is common for 802.11ax NICs to support more than just AP mode, which
results in there being a distinct set of HE capabilities for each mode. As
(bad) luck would have it, iw prints out info for each HE mode in sequential
order according to `enum nl80211_iftype`, and AP mode isn't always first.

As a result, the wrong set of HE capabilities can be parsed if an AP NIC
supports station (managed) mode or any other mode preceding AP mode, since
only the first set of HE capabilities printed by iw is parsed from awk's
output.

This has a noticeable impact on beamforming for example, since managed mode
usually doesn't have beamformer capabilities enabled, while AP mode does.
Hostapd won't be set up with the configs to enable beamformer capabilities
in this scenario, causing hostapd to disable beamforming to HE stations
even when it's supported by the AP.

Always parse the correct set of HE capabilities for AP mode to fix this.
This is achieved by trimming all of iw's output prior to the AP mode
capabilities, which ensures that the first set of HE capabilities are
always for AP mode.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2022-08-23 22:54:48 +08:00
Joerg Werner
4449335e91 hostapd: fix WPA3 enterprise keys and ciphers
WPA3 enterprise requires group_mgmt_cipher=BIP-GMAC-256 and if 802.11r is
active also wpa_key_mgmt FT-EAP-SHA384. This commit also requires
corresponding changes in netifd.

Signed-off-by: Joerg Werner <schreibubi@gmail.com>
2022-08-23 22:52:32 +08:00
AmadeusGhost
8b7bdd4f51 vsftpd-alt: fix compilation with glibc
Fixes: #9987
2022-08-23 21:30:18 +08:00
zxlhhyccc
2c2ebde06c
r8101: fixes download link/hash (#9988) 2022-08-23 19:55:09 +08:00
NueXini
eb7c6f49eb
r8101: fix PKG_SOURCE_URL (#9986) 2022-08-23 14:42:49 +08:00
Christian Marangi
b42a41acbe ipq806x: add missing scaling_available_frequencies for dedicated cpufreq
Add missing scaling_available_frequencies sysfs entry for dedicated
cpufreq driver.
This sysfs entry is not standard and each cpufreq driver needs to
provide it and declare it in the cpufreq driver struct attr.

Fixes: 5dbbefcbccc0 ("ipq806x: introduce dedicated krait cpufreq")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-08-23 10:27:01 +08:00
aakkll
a36ce8009b
kernel: bump 5.19 to 5.19.3 (#9983)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-22 18:40:03 +08:00
lean
a5133362ed hostapd: make LAR-friendly AP mode for AX200/AX210 2022-08-22 15:31:20 +08:00
QiuSimons
1d5b6faacf
cleanup: Remove upstreamed patch (#9982) 2022-08-22 15:15:09 +08:00
AmadeusGhost
89cea59694 rockchip: drop all ugly phy hack code
These junk code breaks other phy drivers, just remove it.
2022-08-21 15:18:14 +08:00
QiuSimons
db339677de
rockchip: add Radxa ROCK3 Model A dummy dts for build (#9972) 2022-08-21 13:48:32 +08:00
骷髅头
2a7ec01066
rockchip:supplement r5s missing symbols (#9975) 2022-08-21 13:48:16 +08:00
lean
d7e1c7befd rockchip: add Radxa ROCK3 Model A board support 2022-08-20 02:22:16 +08:00
lean
5ae7088669 uboot-rockchip: add RK3568 Radxa ROCK 3A board support 2022-08-20 02:14:11 +08:00
lean
619e8ade0c linux-firmware: add RTL8811/8821CU firmware 2022-08-20 02:07:31 +08:00
lean
b889ab8789 rockchip: fix stmmc mdio with JLSEMI JL2XX1_PHY 2022-08-20 00:27:15 +08:00
lean
af98ec260b r8125: add led configuration from OF support 2022-08-19 19:39:37 +08:00
lean
a4b74ce3fe x86: add XiaoMa M12 12th J6412/J6413 CPU with I226 support 2022-08-19 00:17:45 +08:00
lean
8b581837f0 mac80211: add rtl8821cu chipset support in rtw88 2022-08-18 23:44:47 +08:00
AmadeusGhost
956f36403a r8101: remove duplicate code 2022-08-18 10:08:09 +08:00
Hauke Mehrtens
af9ce82e10 iproute2: Fix KERNEL_INCLUDE in SDK
In the SDK the folder $(LINUX_DIR)/user_headers/include does not exist,
but it more or less contains the same content as
$(LINUX_DIR)/include/uapi which also exists in the SDK.

Since iproute2 commit 1d819dcc741e ("configure: fix parsing issue on
include_dir option") it checks if this folder exists and aborts the
build if it does not exists.
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=1d819dcc741e25958190e31f8186c940713fa0a8

With this commit the KERNEL_INCLUDE variable points to a valid folder
with the kernel include headers. I am not sure if they are actually
needed because the build worked before even with an invalid path.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-18 10:05:19 +08:00
benihi
4bb5934fee
kernel: 5.19: refresh patches (#9966)
Delete: target/linux/rockchip/patches-5.19/0039-drm-rockchip-vop-Don-t-crash-for-invalid-duplicate_s.patch [1]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.19.y&id=4d8f078e12a8e038ffb9bbb91c5603d6b53ff532
2022-08-18 02:15:32 +08:00
lean
3c0774cf8f mt76: mt7921e: fix crash in chip reset fail on rockchip 5.19 kernel 2022-08-17 23:45:26 +08:00
lean
85c2ce64c5 mt76: add 5.19 kernel support 2022-08-17 23:38:06 +08:00
lean
5c200342a7 kernel: bump 5.19 to 5.19.2 2022-08-17 23:21:20 +08:00
umarizulkifli
155fd1750e
package: add realtek r8101 driver (#9964)
* add: r8101

* update: Makefile

* update: v1.037.01

* update: v1.037.01
2022-08-17 22:38:44 +08:00
QiuSimons
8c6a57905b
rockchip: add NanoPi R5S dummy dts for build (#9961) 2022-08-17 22:37:33 +08:00
aiamadeus
7e274cbde2
Merge pull request #9938 from breakings/iproute2 2022-08-16 15:28:47 +08:00
AmadeusGhost
3c6c5fac6c rtl8821cu: drop broken package
Doesn't have these usb wireless network cards, but did a simple test
on rtl8852be, it turns out that the rtl driver is completely rubbish
and is no longer usable.
2022-08-16 15:22:20 +08:00
benihi
41f59a6c2e
kernel: modules: cleanup 5.18 (#9946) 2022-08-16 10:54:57 +08:00
lean
9a166932f3 mac80211: add rt2x00 5.19 kernel support 2022-08-15 02:36:59 +08:00
aakkll
347559c17a
kernel: refresh 5.19 patch (#9943)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-14 23:35:01 +08:00
aakkll
1c9fcd0a66
kernel: refresh 5.15 patch (#9944)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-14 23:33:10 +08:00
littoy
c2f62b1779
rockchip: set rockchip_setup_macs for NanoPi R5S
Co-authored-by: fishg <1423545+fishg@users.noreply.github.com>
2022-08-14 16:37:26 +08:00
coolsnowwolf
dd4bbf675c rockchip: add FriendlyElec NanoPi R5S support 2022-08-14 06:53:39 +00:00
Nick Hainke
a350a1cea5 iproute2: shrink ip-tiny size by disabling features
With the 5.18 and 5.19 update ip-tiny grows in size. Remove some
features bringing it back to the size before 5.18.

Remove
- Identifier-locator addressing (ila)
- MACsec Device Configuration (macsec)
- Multicast Routing Cache Management (mroute)
- mrule
- Virtual Routing and Forwarding (vrf)
- Segment Routing (sr)

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-14 10:03:50 +08:00
Nick Hainke
56d38a961a iproute2: update to 5.19.0
Add patch:
- 105-ipstats-Define-MIN-function-to-fix-undefined-referen.patch

Refreshed:
- 170-ip_tiny.patch
- 195-build_variant_ip_tc.patch

Changes:
deb48554 v5.19.0
f8decf82 bpf_glue: include errno.h
71178ae0 rdma: update uapi/ib_user_verbs.h
96594fd2 vdpa: update uapi headers from 5.19-rc7
30c7b77f Revert "uapi: add vdpa.h"
c5433c4b ip neigh: Fix memory leak when doing 'get'
2cb76253 mptcp: Fix memory leak when getting limits
afdbb020 mptcp: Fix memory leak when doing 'endpoint show'
6db01afd bridge: Fix memory leak when doing 'fdb get'
1d540336 ip address: Fix memory leak when specifying device
325f706b uapi: add virtio_ring.h
291898c5 uapi: add vdpa.h
6e2fb804 uapi: update bpf.h
329fda18 ip: Fix size_columns() invocation that passes a 32-bit quantity
2a00a4b1 man: tc-fq_codel: add drop_batch
6bf5abef uapi: update mptcp.h
02410392 ip: Fix size_columns() for very large values
ed243312 man: tc-ct.8: fix example
2bb37e90 l2tp: fix typo in AF_INET6 checksum JSON print
855edb3d man: tc-fq_codel: Fix a typo.
4044a453 tc: declaration hides parameter
a44a7918 genl: fix duplicate include guard
703f2de6 uapi: change name for zerocopy sendfile in tls
248ad98e uapi: update socket.h
11e41a63 ip: Convert non-constant initializers to macros
8d3977ef Update kernel headers
5a1ad9f8 man: ip-stats.8: Describe groups xstats, xstats_slave and afstats
d9976d67 ipstats: Expose bond stats in ipstats
36e10429 ipstats: Expose bridge stats in ipstats
79f5ad95 iplink_bridge: Split bridge_print_stats_attr()
1247ed51 ipstats: Add groups "xstats", "xstats_slave"
c6900b79 ipstats: Add a third level of stats hierarchy, a "suite"
2ed73b9a iplink: Add JSON support to MPLS stats formatter
5ed8fd9d ipstats: Add a group "afstats", subgroup "mpls"
dff392fd iplink: Publish a function to format MPLS stats
72623b73 iplink: Fix formatting of MPLS stats
ce41750f ip: ipstats: Do not assume length of response attribute payload
40b50f15 bridge: vni: add support for stats dumping
c7f12a15 ip: iplink_vxlan: add support to set vnifiltering flag on vxlan device
45cd32f9 bridge: vxlan device vnifilter support
837294e4 libbpf: Remove use of bpf_map_is_offload_neutral
64e5ed77 libbpf: Remove use of bpf_program__set_priv and bpf_program__priv
ba6519cb libbpf: Use bpf_object__load instead of bpf_object__load_xattr
a6eb654d f_flower: add number of vlans man entry
5788732e f_flower: Check args with num_of_vlans
5ba31bcf f_flower: Add num of vlans parameter
b28eb051 man: Add man pages for the "stats" functions
a05a27c0 ipmonitor: Add monitoring support for stats events
0f1fd40c ipstats: Add offload subgroup "l3_stats"
179030fa ipstats: Add offload subgroup "hw_stats_info"
af5e7955 ipstats: Add a group "offload", subgroup "cpu_hit"
0517a2fd ipstats: Add a group "link"
df0b2c6d ipstats: Add a shell of "show" command
82f6444f ipstats: Add a "set" command
54d82b06 ip: Add a new family of commands, "stats"
5520cf16 ip: Publish functions for stats formatting
a463d6b1 libnetlink: Add filtering to rtnl_statsdump_req_filter()
38ae12d3 devlink: introduce -[he]x cmdline option to allow dumping numbers in hex format
bba95837 Update kernel headers
f6559bea ip-link: put types on man page in alphabetic order
ee53174b ip/iplink_virt_wifi: add support for virt_wifi

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-14 10:03:50 +08:00
Nick Hainke
64d52cbde8 iproute2: update to 5.18.0
The ip-tiny size grows from 124k (5.17.0) to 128k (5.18.0).

The update introduces a commit "configure: add check_libtirpc()" that
introduces a check for libtirpc. However, if libtirpc is already in the
staging directory due to an other dependency the check yields that the
library is installed and should be used resulting in failures like:

  Package ss is missing dependencies for the following libraries:
  libtirpc.so.3

To fix it add a patch making libtirpc optional again and setting it
"HAVE_TIRPC=n":
- 155-keep_tirpc_optional.patch

Fix patches:
- 130-no_netem_tipc_dcb_man_vdpa.patch

Refresh patches:
- 140-keep_libmnl_optional.patch
- 150-keep_libcap_optional.patch
- 180-drop_FAILED_POLICY.patch
- 200-drop_libbsd_dependency.patch

Changes:
6474b7c8 v5.18.0
4429a6c9 tipc: fix keylen check
6b6979b9 iplink: remove GSO_MAX_SIZE definition
19c3e009 doc: fix 'infact' --> 'in fact' typo
ed706c78 man: fix some typos
03589beb man: devlink-region: fix typo in example
b84fc332 tc: em_u32: fix offset parsing
b6d17086 uapi: update of virtio_ids
17bf51b7 libbpf: Remove use of bpf_map_is_offload_neutral
fa305925 libbpf: Remove use of bpf_program__set_priv and bpf_program__priv
9e0057b4 libbpf: Use bpf_object__load instead of bpf_object__load_xattr
e81fd551 devlink: fix "devlink health dump" command without arg
6f3b5843 man: use quote instead of acute accent
42d351fa man: 'allow to' -> 'allow one to'
d8a7a0f4 uapi: upstream update to stddef.h
5b2ff061 uapi: update from 5.18-rc1
292509f9 ss: remove an implicit dependency on rpcinfo
1ee309a4 configure: add check_libtirpc()
41848100 ip/geneve: add support for IFLA_GENEVE_INNER_PROTO_INHERIT
28add137 f_flower: Implement gtp options support
b25599c5 ip: GTP support in ip link
e4880869 man: bridge: document per-port mcast_router settings
9e82e828 bridge: support for controlling mcast_router per port
f1d18e2e Update kernel headers
8130653d vdpa: Update man page with added support to configure max vq pair
56eb8bf4 vdpa: Support reading device features
16482fd4 vdpa: Support for configuring max VQ pairs for a device
bd91c764 vdpa: Allow for printing negotiated features of a device
2d1954c8 vdpa: Remove unsupported command line option
93fb6810 Makefile: move HAVE_MNL check to top-level Makefile
2dee2101 man: ip-link: whitespace fixes to odd line breaks mid sentence
609b90aa man: ip-link: mention bridge port's default mcast_flood state
b1c3ad84 man: ip-link: document new bcast_flood flag on bridge ports
c354a434 ip: iplink_bridge_slave: support for broadcast flooding
909f0d51 man: bridge: add missing closing " in bridge show mdb
3b681cf9 man: bridge: document new bcast_flood flag for bridge ports
a6c848eb bridge: support for controlling flooding of broadcast per port
8acb5247 ip/batadv: allow to specify RA when creating link
0431d8e8 Import batman_adv.h header from last kernel sync point
239bfd45 Revert "configure: Allow command line override of toolchain"
a93c90c7 tc: separate action print for filter and action dump
d9977eaf bpf: Remove use of bpf_create_map_xattr
ac4e0913 bpf: Export bpf syscall wrapper
873bb975 bpf_glue: Remove use of bpf_load_program from libbpf
5e17b715 ss: display advertised TCP receive window and out-of-order counter
712ec66e tc: bash-completion: Add profinet and ethercat to procotol completion list
75061b35 lib: add profinet and ethercat as link layer protocol names
0a685b98 man8/ip-link.8: add locked port feature description and cmd syntax
d4fe3673 man8/bridge.8: add locked port feature description and cmd syntax
092af16b ip: iplink_bridge_slave: add locked port flag support
0e51a185 bridge: link: add command to set port in locked mode
04a0077d Update kernel headers
386ae64c configure: Allow command line override of toolchain
bea92cb0 mptcp: add port support for setting flags
2dbc6c90 mptcp: add fullmesh support for setting flags
5fb6bda0 mptcp: add fullmesh check for adding address
9831202f bond: add ns_ip6_target option
e8fd4d4b devlink: Remove strtouint8_t in favor of get_u8
2688abf0 devlink: Remove strtouint16_t in favor of get_u16
95c03f40 devlink: Remove strtouint32_t in favor of get_u32
7cb0e24d devlink: Remove strtouint64_t in favor of get_u64
7848f6bb Update kernel headers
4f015972 f_flower: fix indentation for enc_key_id and u32
25a9c4fa tunnel: Fix missing space after local/remote print
ff14875e Update documentation
8908cb25 Add support for the IOAM insertion frequency
cd24451e Update kernel headers
e4ba36f7 iplink: add ip-link documentation
5d57e130 iplink: add gro_max_size attribute handling
721435dc tc: u32: add json support in `print_raw`, `print_ipv4`, `print_ipv6`
c733722b tc: u32: add support for json output
5f44590d tc/f_flower: fix indentation
9948b6cb tc_util: fix breakage from clang changes
f4cd4f12 tc: add skip_hw and skip_sw to control action offload
ba5ac984 json_print: suppress clang format warning
bf71c8f2 libbpf: fix clang warning about format non-literal
5632cf69 tunnel: fix clang warning
c0248878 tipc: fix clang warning about empty format string
371c13e8 can: fix clang warning
8d27eee5 ipl2tp: fix clang warning
560d2336 tc_util: fix clang warning in print_masked_type
b2450e46 flower: fix clang warnings
4e27d538 netem: fix clang warnings
9d5e29e6 utils: add format attribute
343c4f52 tc: add format attribute to tc_print_rate

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-14 10:03:50 +08:00
Nick Hainke
917589b8ed iproute2: update to 5.17.0
Remove backports:
- 0001-lib-fix-ax25.h-include-for-musl.patch

Changes:
4c424dfd v5.17.0
7846496b link_xfrm: if_id must be non zero
eed4bb1a testsuite: link xfrm delete no if_id test
ac0a54b2 rdma: make RES_PID and RES_KERN_NAME alternative to each other
885e281e uapi: update vdpa.h
19c0def1 ipaddress: remove 'label' compatibility with Linux-2.0 net aliases
1808f002 lib/fs: fix memory leak in get_task_name()
62c0700c uapi: update magic.h
c8d9d925 rdma: Fix the logic to print unsigned int.
a42dfaa4 Revert "rdma: Fix res_print_uint() and add res_print_u64()"
9d0badec rdma: Fix res_print_uint() and add res_print_u64()
86a1452b uapi: update to xfrm.h
09c6a3d2 bridge: Remove vlan listing from `bridge link`
e4fda259 bridge: Fix error string typo
cc143bda lnstat: fix strdup leak in -w argument parsing
90bbf861 iplink_can: print_usage: typo fix, add missing spaces
1b5c7414 dcb: Fix error reporting when accessing "dcb app"
a38d305d tc: fix duplicate fall-through
f8beda6e libnetlink: fix socket leak in rtnl_open_byproto()
7f70eb2a tc_util: Fix parsing action control with space and slash
29da83f8 iprule: Allow option dsfield in 'ip rule show'
07012a1f ss: use freecon() instead of free() when appropriate
03b4de0b man: Fix a typo in the flag documentation of ip address
924f6b4a dcb: app: Add missing "dcb app show dev X default-prio"
5c9571bc uapi: update kernel headers from 5.17-rc1
d542543b tc/action: print error to stderr
52370c61 mptcp: add id check for deleting address
c556f577 dcb: Rewrite array-formatting code to not cause warnings with Clang
0dc5da8e f_flower: fix checkpatch warnings
ffbcb246 netem: fix checkpatch warnings
8bced38a lib: fix ax25.h include for musl
e27bb8e5 uapi: add missing virtio headers
26ff0afa uapi: add missing rose and ax25 files
eb4206ec q_cake: allow changing to diffserv3
db530529 iplink_can: add ctrlmode_{supported,_static} to the "--details --json" output
ac2e9148 Update kernel headers
bb4cc9cc rdma: Don't allocate sparse array
b8767168 rdma: Limit copy data by the destination size
167e33f3 vdpa: Enable user to set mtu of the vdpa device
384938f9 vdpa: Enable user to set mac address of vdpa device
a311f0c4 vdpa: Enable user to query vdpa device config layout
9d8882d5 vdpa: Update kernel headers
5cb7ec0c Update kernel headers and import virtio_net
26113360 mptcp: add support for changing the backup flag
4b301b87 tc: Add support for ce_threshold_value/mask in fq_codel
99d09ee9 bond: add arp_missed_max option
432cb06b mptcp: add support for fullmesh flag
2d777dfe Update kernel headers
a21458fc vdpa: Remove duplicate vdpa UAPI header file

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-14 10:03:50 +08:00
Nick Hainke
fa409c126a iproute2: update to 5.16.0
Import patch:
- 0001-lib-fix-ax25.h-include-for-musl.patch

Refreshed patches:
- 100-configure.patch
- 130-no_netem_tipc_dcb_man_vdpa.patch
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 170-ip_tiny.patch
- 190-fix-nls-rpath-link.patch
- 195-build_variant_ip_tc.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Size ip-full (mips_24kc):
- 176K	ip-full_5.16.0-1_mips_24kc.ipk
- 172K	ip-full_5.15.0-2_mips_24kc.ipk

Size ip-tiny (mips_24kc):
- 124K	ip-tiny_5.16.0-1_mips_24kc.ipk
- 124K	ip-tiny_5.15.0-2_mips_24kc.ipk

Changes:
ade99e20 v5.16.0
1225e307 testsuite: Fix tc/vlan.t test
4734fdb9 uapi: update to mptcp.h
c04e45d0 lib/bpf: fix verbose flag when using libbpf
73590d95 tc: flower: Fix buffer overflow on large labels
3f77bc62 uapi: update to if_ether.h
5f8bb902 ip/ipnexthop: fix unsigned overflow in parse_nh_group_type_res()
3184de37 lib/bpf_legacy: remove always-true check
79026c12 rdma: update uapi headers
fa58de9b vdpa: align uapi headers
be31c264 lnstat: fix buffer overflow in header output
0e949725 tc/m_vlan: fix print_vlan() conditional on TCA_VLAN_ACT_PUSH_ETH
9bd5ab0f mptcp: fix JSON output when dumping endpoints by id
a787d9ae man: tc-u32: Fix page to match new firstfrag behavior
af96c7b5 Fix some typos detected by Lintian in manpages
35c81b18 uapi: update vdpa.h
0c263d7c iplink_can: add new CAN FD bittiming parameters: Transmitter Delay Compensation (TDC)
0f7bb8d8 iplink_can: print brp and dbrp bittiming variables
67f3c7a5 iplink_can: use PRINT_ANY to factorize code and fix signedness
fd5e958c iplink_can: code refactoring of print_ctrlmode()
8316df6e iplink_can: fix configuration ranges in print_usage() and add unit
6e15d27a ip: add AMT support
9cae1de5 Import amt.h
258e350c Update kernel headers
047e9ae5 devlink: Fix cmd_dev_param_set() to check configuration mode
9e009e78 ip, neigh: Add NTF_EXT_MANAGED support
040e5252 ip, neigh: Add missing NTF_USE support
c76a3849 ip, neigh: Fix up spacing in netlink dump
76b30805 xfrm: enable to manage default policies
95cd2a62 iplink: enable to specify index when changing netns
cee0cf84 configure: add the --libdir option
0ee1950b configure: add the --prefix option
4b8bca5f configure: support --param=value style
99245d17 configure: simplify options parsing
c330d097 configure: fix parsing issue with more than one value per option
48c379bc configure: fix parsing issue on libbpf_dir option
1d819dcc configure: fix parsing issue on include_dir option
19ba785f rdma: Add optional-counters set/unset support
7d5cb70e rdma: Add stat "mode" support
d480cb71 rdma: Update uapi headers
e4ca6a49 Update kernel headers
a31e7b79 mptcp: cleanup include section.
41020eb0 Update documentation
8fb522cd Add support for IOAM encap modes
b840c620 ip: nexthop: keep cache netlink socket open
b9017435 devlink: print maximum number of snapshots if available
6448ed37 Update kernel headers
7ca868a7 ip: nexthop: add print_cache_nexthop which prints and manages the nh cache
5d5dc549 ip: route: print and cache detailed nexthop information when requested
cb3d18c2 ip: nexthop: add a helper which retrieves and prints cached nh entry
60a97030 ip: nexthop: add cache helpers
53d7c43b ip: nexthop: factor out ipnh_get_id rtnl talk into a helper
a2ca4312 ip: nexthop: factor out print_nexthop's nh entry printing
945c26db ip: nexthop: parse attributes into nh entry structure before printing
7ec1cee6 ip: nexthop: add nh entry structure
60a7515b ip: nexthop: split print_nh_res_group into parse and print parts
cfb0a872 ip: nexthop: add resilient group structure
371e889d ip: export print_rta_gateway version which outputs prepared gateway string
f7278996 ip: print_rta_if takes ifindex as device argument instead of attribute
e2cc9840 ROSE: Print decoded addresses rather than hex numbers.
26c5782f ROSE: Add rose_ntop implementation.
fd4c1c81 NETROM: Print decoded addresses rather than hex numbers.
c63b769a NETROM: Add netrom_ntop implementation.
399ae00a AX.25: Print decoded addresses rather than hex numbers.
3a92669b AX.25: Add ax25_ntop implementation.
ebbb7017 lib: bpf_legacy: add prog name, load time, uid and btf id in prog info dump
0431e1e7 ip: Support filter links/neighs with no master
12b3d6a2 man: ip-macsec: fix gcm-aes-256 formatting issue
ae895504 bridge: vlan: add support for mcast_router option
12fbe3e4 bridge: vlan: set vlan option attributes while parsing
db28c944 Update kernel headers
6d676ad9 ip: rewrite routel in python
1eaebad2 ip: remove routef script
adddf30c ip: remove ifcfg script
2c811088 ip: remove old rtpr script
72222cd4 bridge: vlan: add support for dumping router ports
7ad5505b bridge: vlan: add global mcast_querier option
061da2e2 bridge: vlan: add global mcast_startup_query_interval option
60dcd5c3 bridge: vlan: add global mcast_query_response_interval option
0e4cfa03 bridge: vlan: add global mcast_query_interval option
ebcee09c bridge: vlan: add global mcast_querier_interval option
3ae784f5 bridge: vlan: add global mcast_membership_interval option
2b6cc38d bridge: vlan: add global mcast_last_member_interval option
7cc7dbf4 bridge: vlan: add global mcast_startup_query_count option
3399c075 bridge: vlan: add global mcast_last_member_count option
a8d7212a bridge: vlan: add global mcast_mld_version option
29fada0f bridge: vlan: add global mcast_igmp_version option
1f608d59 bridge: vlan: add global mcast_snooping option
dee5eb05 bridge: vlan: add support to set global vlan options
ecf6d8b4 bridge: vlan: add support for vlan filtering when dumping options
720f8613 bridge: vlan: add support to show global vlan options
d3a961a9 bridge: vlan: skip unknown attributes when printing options
312e22fe bridge: vlan: factor out vlan option printing
d2eecb9d ip: bridge: add support for mcast_vlan_snooping
ebaa603b ip/bond: add lacp active support
8d6134b2 Update kernel headers
51d8fc70 ip/tunnel: always print all known attributes
71ba9c18 ipioam6: use print_nl instead of print_null
e7841194 tc/skbmod: Introduce SKBMOD_F_ECN option
78832863 IOAM man8
32f4969d New IOAM6 encap type for routes
29098125 Add, show, link, remove IOAM namespaces and schemas
e53f4cd5 Import ioam6 uapi headers
236696e5 Update kernel headers
cf866f0a ipneigh: add support to print brief output of neigh cache in tabular format

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-14 10:03:50 +08:00
Hauke Mehrtens
f586b91cb8 iproute2: Remove libxtables from some tc variants
This adds the new tc-bpf variant and removes libxtables dependency from
the tc-tiny variant. The tc-full variant stays like before and contains
everything.

This allows to use tc without libxtables.

The variants have the following sizes:
root@OpenWrt:/# ls -al /usr/libexec/tc-*
-rwxr-xr-x    1 root     root        282453 Mar  1 21:55 /usr/libexec/tc-bpf
-rwxr-xr-x    1 root     root        282533 Mar  1 21:55 /usr/libexec/tc-full
-rwxr-xr-x    1 root     root        266037 Mar  1 21:55 /usr/libexec/tc-tiny

They are linking the following shared libraries:
root@OpenWrt:/# ldd /usr/libexec/tc-tiny
        /lib/ld-musl-mips-sf.so.1 (0x77d6e000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d4a000)
        libc.so => /lib/ld-musl-mips-sf.so.1 (0x77d6e000)
root@OpenWrt:/# ldd /usr/libexec/tc-bpf
        /lib/ld-musl-mips-sf.so.1 (0x77da6000)
        libbpf.so.0 => /usr/lib/libbpf.so.0 (0x77d60000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0x77d3e000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d1a000)
        libc.so => /lib/ld-musl-mips-sf.so.1 (0x77da6000)
        libz.so.1 => /usr/lib/libz.so.1 (0x77cf6000)
root@OpenWrt:/# ldd /usr/libexec/tc-full
        /lib/ld-musl-mips-sf.so.1 (0x77de8000)
        libbpf.so.0 => /usr/lib/libbpf.so.0 (0x77da2000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0x77d80000)
        libxtables.so.12 => /usr/lib/libxtables.so.12 (0x77d66000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d42000)
        libc.so => /lib/ld-musl-mips-sf.so.1 (0x77de8000)
        libz.so.1 => /usr/lib/libz.so.1 (0x77d1e000)

This is based on a patch from Tiago Gaspar.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-14 10:03:50 +08:00
coolsnowwolf
5ca4955cff kernel: remove linux 5.18 support 2022-08-13 09:48:21 +00:00
coolsnowwolf
e1a16f2718 rockchip: add dummy dts for build 2022-08-13 09:43:30 +00:00
coolsnowwolf
ae6810abe1 mac80211: fix brcm patch 5.15 support 2022-08-13 08:58:04 +00:00
coolsnowwolf
21b5bb211e x86: revert kmod-igb-intel to kmod-igb 2022-08-13 08:35:47 +00:00
lean
2672ddeec5 rtl8821cu: fix _rtw_memcpy for kernel 5.19 2022-08-13 10:45:02 +08:00
benihi
48585ff50b
rtl8821cu: update to 2022-04-09 (#9929)
* rtl8821cu: update to 2022-04-09

* rtl8821cu: patches: Buildfix for Linux 5.18

Co-authored-by: Butterfly <gokhanlnx@gmail.com>
2022-08-13 10:16:33 +08:00
coolsnowwolf
084bf632ae mac80211: fix 5.18/5.19 brcm patch 2022-08-12 13:24:13 +00:00
coolsnowwolf
e9a10023af rockchip: adjust default DMA coherent_pool to 2MiB 2022-08-12 11:09:56 +00:00
coolsnowwolf
07c6d87fb0 rockchip: move dts to files folder 2022-08-12 10:52:13 +00:00
coolsnowwolf
601c972128 rockchip: reorder r66s/p2 eth ports 2022-08-12 02:38:46 +00:00
coolsnowwolf
0b6bc3b05b rockchip: add smp tune for fastrhino r66s 2022-08-12 02:33:42 +00:00
John Audia
6a5774c12a kernel: bump 5.10 to 5.10.136
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-08-12 10:09:41 +08:00
John Audia
6b6f1111fa kernel: bump 5.15 to 5.15.60
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-08-12 10:08:39 +08:00
benihi
b17921cb77
ipq807x: add default packages about nss (#9920)
Add qca-nss-drv-bridge-mgr-64 and kmod-qca-nss-drv-vlan-mgr-64.
2022-08-12 09:06:39 +08:00
coolsnowwolf
1cde7fcb20 arm-trusted-firmware-rockchip-vendor: rk3568 atf revert to v1.28 2022-08-11 15:26:18 +00:00
coolsnowwolf
59586a8354 rockchip: add kmod-ata-ahci-platform for Firefly Station P2 2022-08-11 15:08:59 +00:00
coolsnowwolf
43a63dec23 kernel: bump 5.19 to 5.19.1 2022-08-11 14:58:09 +00:00
coolsnowwolf
3c1fb2f6a8 rockchip: disable UHS modes for R66S 2022-08-11 14:50:55 +00:00
coolsnowwolf
ac7310fe3c rockchip: fix NanoPi R4S soft-reboot on some SD card 2022-08-11 14:42:32 +00:00
coolsnowwolf
ac0d4f4edc rockchip: set initial signal voltage on power off 2022-08-11 14:37:45 +00:00
Hugo Yuan
83c2394ea1
mac80211: fix compile error (#9917) 2022-08-11 19:31:22 +08:00
huangjf
3264f70ca0 rockchip: station-p2: reorder eth 2022-08-11 06:33:54 +00:00
huangjf
797a067e82 rockchip: add support for firefly station-p2 board 2022-08-11 06:33:26 +00:00
huangjf
6e97cb9f95 mac80211: broadcom: set default y to sdio for rockchip soc 2022-08-11 06:33:03 +00:00
huangjf
941cf93ab5 mac80211: broadcom: add kmod-mac80211 supported 2022-08-11 06:32:25 +00:00
coolsnowwolf
af1f124ef6 mac80211: fix set wifi macaddr to zero 2022-08-11 01:01:23 +00:00
coolsnowwolf
fb9d9f6dd9 linux-firmware: add ap6275s sdio firmware for rockchip target 2022-08-11 00:56:36 +00:00
coolsnowwolf
f66ea169c0 mac80211: brcm: backport APIs to support kernel 5.18+ 2022-08-11 00:54:46 +00:00
coolsnowwolf
f6c1512c10 target: add Amlogic S805 and S9xxx SoCs init support 2022-08-11 00:35:58 +00:00
coolsnowwolf
114bd4f332 uboot-rockchip: add fastrhino r66s support 2022-08-10 09:40:11 +00:00
breakings
ab90f4fe97
kernel: mdio-devres: fix of-mdio dependency (#9912)
armvirt/64 when compiled with ALL_KMODS=y reports following:

 Package kmod-mdio-devres is missing dependencies for the following libraries:
 of_mdio.ko

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-10 15:33:08 +08:00
breakings
0edc2efdb0
kernel: modules: fix kmod-mdio-devres dependency for 5.15 (#9911)
Fix:
Package kmod-mdio-devres is missing dependencies for the following libraries:
 of_mdio.ko
Package kmod-of-mdio is missing dependencies for the following libraries:
 fwnode_mdio.ko

Co-authored-by: breakings <breakingstop@gmail.com>
2022-08-10 13:32:15 +08:00
breakings
17fea87fec
armvirt: copy config files from 5.10 (#9910)
* armvirt: copy config files from 5.10

Copy config files from 5.10.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>

* armvirt: refresh 5.15 config

This was done by executing these commands:
$ make kernel_oldconfig CONFIG_TARGET=subtarget
$ make kernel_oldconfig CONFIG_TARGET=subtarget_platform

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>

* armvirt: move common symbols from subtarget to target config

These new symbols are common for all subtargets and
can be moved into target config.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>

Co-authored-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-08-10 13:01:30 +08:00
breakings
bb83b78e9e
armvirt: refresh 5.10 config (#9908)
This was done by executing these commands:
$ make kernel_oldconfig CONFIG_TARGET=subtarget
$ make kernel_oldconfig CONFIG_TARGET=subtarget_platform

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>

Co-authored-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-08-10 13:01:12 +08:00
breakings
7d8ea657c6
armvirt: enable MMIO_CMDLINE_DEVICES for firecracker support (#9907)
This Kernel option allows to run OpenWrt witin a `firecracker` micro VM.

Firecracker is a KVM-based tool for superfast booting VMs on x86_64 and
aarch64. It makes rootfs available to the guest as a virtio-mmio device
and passes its address via the kernel cmdline. A kernel without
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES will not recognize the rootfs
virtio-mmio device.

Suggested-by: Packet Please <pktpls@systemli.org>
Signed-off-by: Paul Spooren <mail@aparcar.org>

Co-authored-by: Paul Spooren <mail@aparcar.org>
2022-08-10 13:00:47 +08:00
breakings
6d08efd7fa
armvirt: switch to Kernel 5.10 (#9906)
* armvirt: switch to Kernel 5.10

Armvirt is a development and testing platform and should therefore use
the latest OpenWrt Kernel by default.

Tested via qemu.

Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Yousong Zhou <yszhou4tech@gmail.com>

Signed-off-by: Paul Spooren <mail@aparcar.org>

* armvirt: add 5.15 as testing kernel

Add 5.15 as testing kernel.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>

Co-authored-by: Paul Spooren <mail@aparcar.org>
Co-authored-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2022-08-10 13:00:22 +08:00
coolsnowwolf
34c8edcddc rockchip: switch kernel version to 5.19 2022-08-10 04:21:00 +00:00
coolsnowwolf
595bf71b39 rockchip: add FastRhino R66S support in kernel 5.19 2022-08-10 04:19:14 +00:00
Petr Štetiar
27befb47d9 zlib: backport null dereference fix
The curl developers found test case that crashed in their testing when
using zlib patched against CVE-2022-37434, same patch we've backported
in commit 7df6795d4c25 ("zlib: backport fix for heap-based buffer
over-read (CVE-2022-37434)"). So we need to backport following patch in
order to fix issue introduced in that previous CVE-2022-37434 fix.

References: https://github.com/curl/curl/issues/9271
Fixes: 7df6795d4c25 ("zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-10 11:06:52 +08:00
Reto Schneider
1463a9598f ramips: mt7628: fix memory controller reset bit
According to MediaTek MT7688 Datasheet v1.4, as well as the MT7628
counterpart, the memory controller reset bit (MC_RST) is 10, not 20.
Reset bit 20 is used for for UART 2 (UART2_RST).

Please note: Due to the lack of hardware, I was not able to test this
change.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2022-08-10 11:05:05 +08:00
Jiaxun Yang
665970a97d ramips: mt7530: Implement set_port_link
set_port_link is required by swconfig to setup link mode.
Here we implemented set_port_link by touching MII PHY registers.
For autoneg enabled case, we set advertise registers to let
autoneg reach the target mode and then retrigger autoneg. For
non autoneg case, we set BMCR register to force PHY enter
desired mode.

This patch have been tested on both MT7620 and MT7621.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
2022-08-09 11:21:28 +08:00
Koen Vandeputte
9d7fe3f316 kernel: add missing 5.15 symbols
Found while testing various platforms

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2022-08-09 11:20:42 +08:00
cuiyf5516
09eb2e90cd
uboot-rockchip: refresh rk3328 rkbin verdor atf (#9903) 2022-08-08 23:51:35 +08:00
coolsnowwolf
f1b4ddefd4 target: add silicon mk place holder 2022-08-08 10:16:13 +00:00
coolsnowwolf
8dbff7b4f8 uboot-rockchip: add rk3568 board support 2022-08-08 09:25:58 +00:00
coolsnowwolf
13b92d9b2b arm-trusted-firmware-rockchip-vendor: add rk3568/rk3588 rkbin verdor atf 2022-08-08 06:18:05 +00:00
coolsnowwolf
d05a98ba99 arm-trusted-firmware-rockchip-vendor: bump to v2022-08-01 2022-08-08 03:38:29 +00:00
coolsnowwolf
40548d8a95 phy: update RK3568 rockchip-snps-pcie3 fw when init 2022-08-08 02:53:04 +00:00
Petr Štetiar
0efde5c7f7 zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)
zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow
in inflate in inflate.c via a large gzip header extra field. NOTE: only
applications that call inflateGetHeader are affected. Some common
applications bundle the affected zlib source code but may be unable to
call inflateGetHeader.

Fixes: CVE-2022-37434
References: https://github.com/ivd38/zlib_overflow
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-08 10:28:17 +08:00
Petr Štetiar
17c7b4cbe0 generic: 5.15: disable CONFIG_DEBUG_INFO_REDUCED symbol
This came up during build testing of mvebu/cortexa9 target with 5.15
kernel.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-08 10:27:52 +08:00
coolsnowwolf
bbdcf9095c target: add Apple Silicon SoC platform (M1/M2) family init support 2022-08-07 03:58:27 +00:00
coolsnowwolf
960844ee21 x86: add kmod-i915-gvt package 2022-08-06 16:49:16 +00:00
coolsnowwolf
1ed3597b92 x86: add suuport for Intel gen 11/12/13th GPU GVT-g capability 2022-08-06 16:46:59 +00:00
aakkll
3c316115f9
kernel: bump 5.18 to 5.18.16 (#9892)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:23:26 +08:00
aakkll
dad62d5fb5
kernel: bump 5.15 to 5.15.59 (#9891)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:23:05 +08:00
aakkll
e99155a6e1
kernel: refresh 5.19 patch (#9890)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:22:41 +08:00
cuiyf5516
2e53ea6741
rockchip: 5.19: disable ntfs option (#9889) 2022-08-06 00:21:54 +08:00
coolsnowwolf
f861ce8a61 rockchip: refresh 5.19 patch 2022-08-05 06:38:54 +00:00
lean
766e12fcd5 rockchip: add kernel 5.19 support 2022-08-05 12:00:06 +08:00
lovehackintosh
cabbef2b4e
kernel: bump 5.10 to 5.10.135 (#9887)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-08-05 11:19:25 +08:00
coolsnowwolf
bda5611e48
ntfs3-mount : add support kernel 5.19 2022-08-05 11:18:08 +08:00
coolsnowwolf
3f09969e86 kernel: refresh RTL 5.19 patch 2022-08-04 19:47:00 +00:00
coolsnowwolf
729dcd5bca linux-atm: add kernel 5.19 support 2022-08-04 19:13:26 +00:00
coolsnowwolf
ba6dc2427f r8168: add kernel 5.19 support 2022-08-04 17:53:43 +00:00
coolsnowwolf
07adaa5beb r8152: add kernel 5.19 support 2022-08-04 17:49:52 +00:00
coolsnowwolf
84f9ec62e2 r8125: add kernel 5.19 support 2022-08-04 17:30:38 +00:00
lean
6c96f8dc92 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-05 00:36:25 +08:00
lean
785fe8dbb8 x86: fix 5.19 modules.mk 2022-08-05 00:36:00 +08:00
coolsnowwolf
cfc113b29f
Update README.md 2022-08-04 21:23:28 +08:00
lean
962a1027cc x86: switch test kernel to 5.19 2022-08-04 21:11:02 +08:00
lean
a50ffe87c6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-04 19:36:24 +08:00
lean
db9659b5db Version update to R22.8.2 2022-08-04 19:36:06 +08:00
coolsnowwolf
1258152bd7
Update README.md 2022-08-04 19:33:49 +08:00
lean
15df97d309 Update README.md 2022-08-04 19:32:08 +08:00
lean
94f7c18695 linux: fix 5.19 patch build error 2022-08-04 19:19:25 +08:00
Nick Hainke
690ee8c181 libcap: update to 2.65
Changes:
a47d86d Up the release version to 2.65
fc99e56 Include more signatures in pgp.keys.asc.
52288cc Close out this comment in the go/Makefile
eb0f1df Prevent 'capsh --user=xxx --' from generating a bash error.
9a95791 Improve documentation for cap_get_pid and cap_reset_ambient.
21d08b0 Fix syntax error in DEBUG protected setcap.c code.
9425048 More useful captree usage string and man page.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:44 +08:00
Nick Hainke
fab893c9d6 libcap: update to 2.64
Changes:
38cfa2e Up the release version to 2.64
7617af6 Avoid a deadlock in forked psx thread exit.
fc029cb Include LIBCAP_{MAJOR,MINOR} #define's in sys/capability.h
ceaa591 Clarify how the cap_get_pid() argument is interpreted.
15cacf2 Fix prctl return code/errno handling in libcap.
aae9374 Be explicit about CGO_ENABLED=1 for compare-cap build.
66a8a14 psx: free allocated memory at exit.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:15 +08:00
Nick Hainke
e96002e392 mtools: update to 4.0.40
Changes:
- Remove libbsd dependency
- Better compatibility with legacy platforms such as AT&T UnixPC
- Upgraded to autoconf 2.71

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:15:23 +08:00
Mark Mentovai
985365da45 libmnl: fix build when bash is not located at /bin/bash
This fixes the libmnl build on macOS, which ships with an outdated bash
at /bin/bash. During the OpenWrt build, a modern host bash is built and
made available at staging_dir/host/bin/bash, which is present before
/bin/bash in the build's PATH.

This is similar to 8f7ce3aa6dda, presently appearing at
package/kernel/mac80211/patches/build/001-fix_build.patch.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
2022-08-03 10:33:16 +08:00
Michael Pratt
d785fd9dfd tools/libressl: disable assembly code for all hosts
This SSL library is for hosts only
and not shipped as a build product,
therefore its performance quality (speed) is not critical.

Assembly code is broken in LibreSSL for some x86_64 hosts (part of git history)
and for some RISC host archs like armv7l, aarch64, powerpc, ppc64, etc...
so let's just disable it for all hosts.

For example, this fixes an instance on ARM hosts
where the host Python 3 builds broken modules which link to LibreSSL,
even with patches that enable LibreSSL support
with the import error "unexpected reloc type 3".

Ref: a395563f6 ("build: fix libressl build on x32 (amd64ilp32) host ")
Suggested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-08-03 10:32:18 +08:00
Michael Pratt
7c5cabd24b tools/libressl: ensure PIC-only object compilation
Line up configure arguments for cleaner git diff and editing and grepping.

LibreSSL must be built with PIC, and has the flags for it already in CFLAGS.
Add the configure option native to LibreSSL to use only PIC in objects,
which further enforces that each object in the library has the PIC flag
to prevent a mixture of PIC / non-PIC objects within it.

Ref: 96a940308 ("tools: libressl: always build as PIC")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-08-03 10:31:38 +08:00
Stalker
975e0f70ca
Fix modules in kernel 5.19 (#9883)
Signed-off-by: xiangfeidexiaohuo <jsjson@163.com>
2022-08-02 13:38:52 +08:00
Sander Vanheule
b2b3669458 tools: bump 7z package to 22.01
Version 22.00 of 7z causes build failures on systems using GCC 12 with
the following error:

    ../../../../C/LzmaEnc.c: In function 'LzmaEnc_CodeOneMemBlock':
    ../../../../C/LzmaEnc.c:2996:19: error: storing the address of local
    variable 'outStream' in '*p.rc.outStream' [-Werror=dangling-pointer=]
     2996 |   p->rc.outStream = &outStream.vt;
          |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    ../../../../C/LzmaEnc.c:2979:28: note: 'outStream' declared here
     2979 |   CLzmaEnc_SeqOutStreamBuf outStream;
          |                            ^~~~~~~~~
    ../../../../C/LzmaEnc.c:2979:28: note: 'pp' declared here

Upgrade to version 22.01 which contains the required fix.

Fixes: 5fcc6f0f1942 ("tools: add 7z host package")
Suggested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-08-02 10:03:45 +08:00
John Audia
bb2079b959 wolfssl: fix math library build
Apply upstream patch[1] to fix breakage around math libraries.
This can likely be removed when 5.5.0-stable is tagged and released.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

1. https://github.com/wolfSSL/wolfssl/pull/5390

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-08-02 10:01:15 +08:00
Eneas U de Queiroz
90e8e6fac8 wolfssl: bump to 5.4.0
This version fixes two vulnerabilities:
-CVE-2022-34293[high]: Potential for DTLS DoS attack
-[medium]: Ciphertext side channel attack on ECC and DH operations.

The patch fixing x86 aesni build has been merged upstream.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-08-02 10:00:57 +08:00
lean
afd4fa3eb0 kernel: update 5.19 new hashsum dl 2022-08-01 19:04:47 +08:00
lean
b5da81b795 kernel: update 5.19 new hashsum dl 2022-08-01 19:02:08 +08:00
lean
de2e28cdc5 kernel: add linux 5.19 stable release support 2022-08-01 15:55:28 +08:00
cuiyf5516
1202e11678
rockchip: 5.18: diable ntfs option (#9875)
Fixes: #9872
2022-08-01 09:59:06 +08:00
Daniel Golle
8457bf1691 kernel: add kmod-nvme package
Add driver for NVM Express block devices, ie. PCIe connected SSDs.

Targets which allow booting from NVMe (x86, maybe some mvebu boards come
to mind) should have it built-in, so rootfs can be mounted from there.
For targets without NVMe support in bootloader or BIOS/firmware it's
sufficient to provide the kernel module package.

On targets having the NVMe driver built-in the resulting kmod package
is an empty dummy. In any case, depending on or installing kmod-nvme
results in driver support being available (either because it was already
built-in or because the relevant kernel modules are added and loaded).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-08-01 09:55:20 +08:00
Jo-Philipp Wich
f690041682 wolfssl: make shared again
Disable the usage of target specific CPU crypto instructions by default
to allow the package being shared again. Since WolfSSL does not offer
a stable ABI or a long term support version suitable for OpenWrt release
timeframes, we're forced to frequently update it which is greatly
complicated by the package being nonshared.

People who want or need CPU crypto instruction support can enable it in
menuconfig while building custom images for the few platforms that support
them.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-08-01 09:54:36 +08:00
Beginner
a735627a66
kernel: bump 5.10 to 5.10.134 (#9868)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-07-31 13:25:41 +08:00
aakkll
d8e34160b8
kernel: bump 5.18 to 5.18.15 (#9859)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-30 10:17:58 +08:00
aakkll
25ff31a63c
kernel: bump 5.15 to 5.15.58 (#9860)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-30 10:17:48 +08:00
Christian Lamparter
005c491b27 ipq806x: Archer VR2600: fix switch ports numbering
The order of LAN ports shown in Luci is reversed compared to what is
written on the case of the device.  Fix the order so that they match.

Fixes: #10275
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-29 10:10:36 +08:00
Daniel Golle
3fefe3270f firmware-utils: update to git HEAD
4f8d03d mkh3cimg: add image tool for H3C devices
 2483fe7 mkh3cvfs: add filesystem tool for H3C devices

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-07-29 10:07:31 +08:00
Jan Hoffmann
720c074dee tools: add 7z host package
Add the 7zr command line tool, which is a version of the 7z application
that only supports 7z archives.

7z is one of the two compression formats supported in H3C firmware
images (the alternative would be ARJ).

(Alternatively, the 7zr command line tool could also be built from a
current version of the public-domain LZMA SDK. That would require
repackaging the source package, as it is only provided in 7z format.)

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-07-29 10:05:18 +08:00
benihi
94306d3827
ramips: 5.4: fix build error (#9849)
- modify "mt7621_nand.c" newlines to "LF"

- add "mt7621_nand.c" patches for kernel 5.4
2022-07-28 13:46:25 +08:00
lovehackintosh
70bf186a84
ramips: 5.4: fixes nand patches (#9848)
Fixes: #9847
2022-07-28 10:05:40 +08:00
lovehackintosh
7ad9516bf1
kernel: bump 5.10 to 5.10.133 (#9845) 2022-07-27 23:51:57 +08:00
lovehackintosh
d677e6a664
ramips: move mt7621_nand driver to files and sync with upstream (#9844) 2022-07-27 23:51:19 +08:00
AmadeusGhost
3211a973de rockchip: drop most ugly hack code
Delete these ugly hack code until someone who
make money with this don't be so perfunctory.
2022-07-25 10:57:31 +08:00
Hauke Mehrtens
c7ce44ab41 wolfssl: Do not activate HW acceleration on armvirt by default
The armvirt target is also used to run OpenWrt in lxc on other targets
like a Raspberry Pi. If we set WOLFSSL_HAS_CPU_CRYPTO by default the
wolfssl binray is only working when the CPU supports the hardware crypto
extension.

Some targets like the Raspberry Pi do not support the ARM CPU crypto
extension, compile wolfssl without it by default. It is still possible
to activate it in custom builds.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-25 10:10:05 +08:00
Martin Blumenstingl
2dff07154d generic: 5.15: Disable more config symbols
These came up while trying to build the lantiq target with Linux 5.15.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2022-07-25 10:09:27 +08:00
Andre Heider
42df44c830 tools/libressl: bump to v3.5.3
This includes API additions required for u-boot v2022.07 and Python 3.10.

https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.1-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.2-relnotes.txt
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.3-relnotes.txt

Signed-off-by: Andre Heider <a.heider@gmail.com>
2022-07-25 10:08:39 +08:00
骷髅头
eb3ebc4fc0
rockchip:add doornet2 lpddr4 4gb (#9817)
* 添加DN2 LPDDR4 4GB

* 添加DN2 LPDDR4 4GB

* rockchip: Complement missing configuration for other kernels

Co-authored-by: hejiawencc <hjw0415@outlook.com>
2022-07-24 15:43:55 +08:00
aakkll
d43bee457c
kernel: bump 5.18 to 5.18.14 (#9823)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-23 23:40:03 +08:00
aakkll
4ad9acd2f0
kernel: bump 5.15 to 5.15.57 (#9824)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-23 23:39:52 +08:00
aakkll
8852b7bb51
kernel: bump 5.15 to 5.15.56 (#9816)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-22 18:13:08 +08:00
aakkll
bb63dd2d5b
kernel: bump 5.18 to 5.18.13 (#9818)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-22 18:12:53 +08:00
lean
7af074fd1d Revert "uboot-rockchip:doornet2 detaches from evb rk (#9812)"
This reverts commit cdad02d028.
2022-07-21 16:58:40 +08:00
骷髅头
cdad02d028
uboot-rockchip:doornet2 detaches from evb rk (#9812)
* add CONFIG_TARGET_DOORNET2_RK3399=y

* uboot-rockchip:doornet2 out of evb rk patch

* uboot-rockchip:cancel doornet2 to use rkbin

* Update armv8.mk

* rockchip:add  kernel5.15 rk3399-nanopi-r4se.dts

* rockchip:add kernel 5.18 rk3399-nanopi-r4se
2022-07-21 16:12:52 +08:00
lean
ebfa1b93b7 generic: fix swconfig_leds.c in 5.18 2022-07-21 15:10:56 +08:00
lovehackintosh
340fe78011
kernel: bump 5.10 to 5.10.131 (#9807) 2022-07-21 10:00:21 +08:00
José Hwong
9053b90d40
kernel: backport upstream mtk_eth_soc patches (#9809)
* kernel: move mtk flow offload patches to backport-5.15

They were accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* kernel: backport upstream mtk_eth_soc patches

Includes MT7986 ethernet support

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2022-07-21 09:45:51 +08:00
Rafał Miłecki
f1b8180c5a kernel: switch back 5.15 to fw_devlink=permissive
Kernel switching to fw_devlink=on as default broke probing some devices.
Revert it until we get a proper fix.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-07-20 17:47:48 +08:00
Catalin Toda
64d53bd4b6 kernel: netconsole: add network console logging support
Accessing the console on many devices is difficult.
netconsole eases debugging on devices that crash
after the network is up.

Reference to the netconsole documentation in upstream Linux:
<https://www.kernel.org/doc/html/latest/networking/netconsole.html>
|
|netconsole=[+][src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]
|
| where
|  +            if present, enable extended console support
|  src-port     source for UDP packets (defaults to 6665)
|  src-ip       source IP to use (interface address)
|  dev          network interface (eth0)
|  tgt-port     port for logging agent (6666)
|  tgt-ip       IP address for logging agent
|  tgt-macaddr  ethernet MAC address for logging agent (broadcast)

OpenWrt specific notes:

OpenWrt's device userspace scripts are attaching the network
interface (i.e. eth0) to a (virtual) bridge (br-lan) device.
This will cause netconsole to report:
|network logging stopped on interface eth0 as it is joining a master device
(and unfortunately the traffic/logs to stop at this point)

As a workaround, the netconsole module can be manually loaded
again after the bridge has been setup with:

 insmod netconsole netconsole=@/br-lan,@192.168.1.x/MA:C...

One way of catching errors before the handoff, try to
append the /etc/modules.conf file with the following extra line:
 options netconsole netconsole=@/eth0,@192.168.1.x/MA:C...

and install the kmod-netconsole (=y) into the base image.

Signed-off-by: Catalin Toda <catalinii@yahoo.com>
(Added commit message from PR, added links to documentation)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-20 17:45:24 +08:00
Christian Lamparter
9f1069a59d sdk: add spidev-test to the bundle of userspace sources
moves and extends the current facilities, which have been
added some time ago for the the usbip utility, to support
more utilites that are shipped with the Linux kernel tree
to the SDK.

this allows to drop all the hand-waving and code for
failed previous attempts to mitigate the SDK build failures.

Fixes: bdaaf66e28bd ("utils/spidev_test: build package directly from Linux")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-20 17:42:22 +08:00
Felix Fietkau
14f31f2a2b kernel: backport mtk wlan flow offloading fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-07-20 17:41:06 +08:00
Rosen Penev
51f606ec99 mbedtls: build with PIC
Fixes compilation with GCC12 and dependent packages for some reason.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-20 17:38:06 +08:00
lean
6d79ece4c2 modules: fix 5.18 vxlan support 2022-07-19 14:51:16 +08:00
lean
41a400d5f8 Revert "wolfssl: bump to 5.4.0 (#9795)"
This reverts commit 1399c99229.
2022-07-19 12:57:50 +08:00
Beginner
1399c99229
wolfssl: bump to 5.4.0 (#9795)
This version fixes two vulnerabilities:
-CVE-2022-34293[high]: Potential for DTLS DoS attack
-[medium]: Ciphertext side channel attack on ECC and DH operations.

The patch fixing x86 aesni build has been merged upstream.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-07-19 01:28:42 +08:00
lean
2347b04b60 luci-app-qbittorrent-simple: add luci for qbittorrent simple UI 2022-07-18 14:04:35 +08:00
lean
c5f12bf7aa rockchip: add crypto-hw-rockchip drivers for RK3328/RK3399 2022-07-18 13:27:05 +08:00
lean
4348784a58 rockchip: switch to kernel 5.18 2022-07-18 11:37:26 +08:00
lean
4f98c23f5e r8125: remove uneeded 5.18 support patch 2022-07-18 11:19:05 +08:00
lean
2082f4604a r8125: bump to 9.009.02 2022-07-18 11:09:45 +08:00
Beginner
8bb65fc710
n2n: dynamic link to libcap (#9779)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-18 00:12:24 +08:00
zhusir
ce12ca653e
Update fast-classifier.c (#9777)
Fix #9767
2022-07-17 17:03:35 +08:00
Christian Lamparter
79b5e1dd51 module/firmware: remove intersil PRISM54 support
the legacy driver was dropped in linux 5.14-rc3:
commit d249ff28b1d8 ("intersil: remove obsolete prism54 wireless driver")

Quoting Lukas Bulwahn:
"p54 replaces prism54 so users should be unaffected."

Reported-by: Marius Dinu <m95d+git@psihoexpert.ro>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:17:41 +08:00
Christian Lamparter
3adfa2ab8d utils/spidev_test: side-step build-system woes
The spidev_test is build in phase2 even though it should be disabled.
My best guess is that we hit the same issue that I had with nu801.
The build-system thinks it's a tool that is necessary for
building the kernel.

In this case, the same fix (adding a dependency on the presence of
the module) could work in this case as well?

Fixes: bdaaf66e28bd ("utils/spidev_test: build package directly from Linux")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:17:02 +08:00
Christian Lamparter
2d293367e9 linux-firmware: Update to version 20220610
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:16:16 +08:00
Christian Lamparter
1e3364ba5d firmware: intel-microcode: update to 20220510
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-07-17 00:15:36 +08:00
骷髅头
b506b2ae67
rockchip: fix rk3399 pppoe error in kernel 5.18 2022-07-16 17:28:21 +08:00
aakkll
9626ed9a75
kernel: bump 5.18 to 5.18.12 (#9763)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-16 17:26:45 +08:00
aakkll
47cdfb8b61
kernel: bump 5.15 to 5.15.55 (#9764)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-16 17:26:33 +08:00
Leonardo Mörlein
7dd7a8f966 automake: always use correct path for aclocal.real
Before this commit, it was assumed that aclocal.real is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. The command failed with:

    /home/.../openwrt/staging_dir/host/bin/aclocal: line 2: aclocal.real: command not found
    autoreconf: /home/.../openwrt/staging_dir/host/bin/aclocal failed with exit status: 127

After the commit, the package is built sucessfully.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
2022-07-15 10:05:30 +08:00
Christian Marangi
7ab29b6797 generic: fix warning orphan section from module exports in aarch64
kernel linux now have 2 different export.h include, one from
linux/export.h and one from asm-generic/export.h

While most of our target user linux/export.h, aarch64 based target use
asm-generic/export.h that is not patched with the changes of
221-module_exports.

Patch also this additional header to fix multiple

aarch64-openwrt-linux-musl-ld: warning: orphan section `__ksymtab_strings' from `arch/arm64/kernel/head.o' being placed in section `__ksymtab_strings'

warning during kernel compilation.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-07-15 10:04:32 +08:00
Florian Eckert
799f57e650 target/linux/pending-5.15: rename patches
The consecutive number 483 is assigned twice.
This change fixes this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-07-15 10:02:50 +08:00
Felix Fietkau
999b221cbe tools/coreutils: enable ginstall utility
For some reason, current coreutils version installed on x86 macOS via homebrew
have a bug, where at least the cc1 binary from gcc gets corrupted during install
to the staging dir.
Using the install utility from tools/coreutils fixes this

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-07-15 10:01:30 +08:00
Felix Fietkau
d78e81a1cb tools/coreutils: build chown
On ARM macOS, injecting extra shared libraries does not work for system
binaries. This causes fakeroot to fail for chown calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-07-15 10:00:39 +08:00
Piotr Dymacz
466b3cd2be generic: 5.15: add missing symbols
These were found during work on new device support under the
imx/cortexa7 target.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-07-15 09:57:06 +08:00
骷髅头
43e6cd5592
Update rk3328-nanopi-r2c.dts (#9756) 2022-07-14 21:46:49 +08:00
lean
f876224408 crypto.mk : add backport config 2022-07-14 15:47:10 +08:00
lean
9ae4851e10 autocore: fix arm eth port seq 2022-07-14 15:08:46 +08:00
lean
6293b61db6 netfilter.mk : backport kernel config 2022-07-14 15:04:47 +08:00
lean
e66a94a8d8 rockchip: refresh Kconfig 2022-07-14 00:41:52 +08:00
aakkll
e22356ad36
kernel: bump 5.15 to 5.15.54 (#9749) 2022-07-14 00:16:41 +08:00
aakkll
c73b2f4e4c
kernel: 5.18: refresh patches (#9748) 2022-07-14 00:16:30 +08:00
Tianling Shen
8b24921ba0
igb-intel: fix typo error (#9751)
`CONFLICT` -> `CONFLICTS`.

Fixes: 471976c7d9 ("igb-intel: mark conflict with kmod-igb")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-14 00:16:15 +08:00
lean
7d04525dda igb-intel: using KERNEL_MAKE compile 2022-07-13 23:44:49 +08:00
Tianling Shen
471976c7d9
igb-intel: mark conflict with kmod-igb (#9750)
Fixes: #9742

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-13 23:37:03 +08:00
lean
7dbca99078 Update README for uboot-rockchip 2022-07-13 23:35:49 +08:00
Tianling Shen
bd522ba3a1
uboot-rockchip: remove prebuilt of-platdata (#9747)
With this change you need have swig and libpython3-dev installed on
your host, which should be done already.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-13 23:30:37 +08:00
lean
9a3ab942b0 kernel: bump 5.18 to 5.18.11 2022-07-12 23:13:57 +08:00
lean
30db07f4f4 rockchip: add luci-app-diskman packpage by default 2022-07-12 22:51:09 +08:00
lean
53686de196 uboot-rockchip: add support for FriendlyElec NanoPi R4SE emmc boot 2022-07-12 22:46:00 +08:00
lean
006ac00cf4 rockchip: add support for FriendlyElec NanoPi R4SE with 32GB emmc 2022-07-12 21:06:43 +08:00
lean
faf4476659 kernel: Make QMI Helpers user selectable in 5.18 2022-07-12 18:54:05 +08:00
lean
5d92792d40 mt76: update to the latest version 2022-07-12 11:51:06 +08:00
lean
b6a99d33e1 uboot-rockchip: bump to v2022.07 RTM release 2022-07-12 11:09:47 +08:00
lean
61cc2108f4 x86: resolve kmod-igb 2022-07-12 01:11:37 +08:00
lean
cffd2740e8 x86: use kmod-igb-intel from vendor 2022-07-11 18:54:57 +08:00
骷髅头
6c814308f5
rockchip: fix motorcomm-yt85xx phys in kernel 5.18
* rockchip:fix motorcomm-yt85xx+phys

* Rename 278-add-driver-for-Motorcomm-YT85xx+PHYs.patch to 258-add-driver-for-Motorcomm-YT85xx+PHYs.patch
2022-07-11 17:55:09 +08:00
lean
b8a02059f4 ramips: disable MT7621 overclock 2022-07-11 17:17:23 +08:00
lean
75cb0e6495 rockchip: add RK3568 bootscript 2022-07-11 17:12:48 +08:00
lean
c50a2c3261 uboot-rockchip: update with 2022.07-rc2 to support RK3566/RK3568 2022-07-11 16:42:10 +08:00
lean
954990d137 kmod-ata-ahci-platform: add rockchip RK3566/RK3568 sata support 2022-07-11 14:45:48 +08:00
AmadeusGhost
2a7c05f0d4 ipq40xx: improve support for AC1200
This commit introduces various fixes for it.
Also renamed this device to avoid confusion.
2022-07-11 12:08:49 +08:00
AmadeusGhost
e4d5e7769b Revert "arm-trusted-firmware-rockchip-vendor: add RK3566/RK3568 support"
The rk356x SoC does not have Rockchip miniloader at all.
However, it has following features (hope you can enjoy):
 -- Support boot Android format image only
 -- Support gpt/misc compulsory verification
 -- Full-closed binary and uboot can't ntr it

This reverts commit 2c340abaf1.
2022-07-11 12:03:14 +08:00
lean
86ea102156 mac80211: add rtl8723bs for kernel 5.18 support for Ryan 2022-07-11 02:43:03 +08:00
lean
beb34205ed mkimage: fix segfault on MacOS arm64 M1/M2 2022-07-11 02:21:47 +08:00
Beginner
9e550e488a
wolfssl: WOLFSSL_HAS_WPAS requires WOLFSSL_HAS_DH (#9735)
Without this, WOLFSSL_HAS_DH can be disabled even if WOLFSSL_HAS_WPAS is
enabled, resulting in an "Anonymous suite requires DH" error when trying
to compile wolfssl.

Signed-off-by: Pascal Ernster <git@hardfalcon.net>
Reviewed-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Pascal Ernster <git@hardfalcon.net>
2022-07-11 00:56:13 +08:00
Beginner
4497dbb9b5
r8168: fix typo error (#9734)
Switched to use KERNEL_MAKE while at it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-11 00:46:35 +08:00
lean
ae8709dce7 igb-intel: add igb oot version from Intel to support 82575/82576/82580/I350/I354/I210/I211 2022-07-10 18:13:31 +08:00
lean
870bae6520 usb net: fix usb-net-asix in 5.18 2022-07-10 17:54:49 +08:00
lean
f350b11ff2 fs: fix ntfs3 in kernel 5.18 2022-07-10 17:51:38 +08:00
lean
53951abdef kernel: 5.18: refresh patches 2022-07-10 17:49:04 +08:00
lean
31dacf9899 ramips: fix wifi issue with hnatv1 2022-07-10 15:48:26 +08:00
lean
14e109d0b9 mt76: bypass warnings being treated as errors 2022-07-09 19:37:51 +08:00
lean
c6734e6cdb mac80211: backport APIs to support kernel 5.18 2022-07-09 19:19:54 +08:00
骷髅头
a46ef13742
rockchip:update 5.18 clk patch (#9724)
* Add files via upload

* Update 900-arm-boot-add-dts-files.patch

* Create rk3399-nanopi4-opp.dtsi

* Create 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Rename 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch to 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Update 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Create 902-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch

* Add files via upload

* Update config-5.18

* Add files via upload

* Update rk3328-doornet1.dts

* Update rk3328-orangepi-r1-plus-lts.dts
2022-07-09 18:11:50 +08:00
lean
53a5cc6385 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-07-09 16:28:28 +08:00
lean
d638ccd10a kmod-fs-cifs: fix dependence in 5.18 2022-07-09 16:28:20 +08:00
骷髅头
0952fcbcd8
rockchip:add-kernel5.18-rk3399-overclock-to-2.2-1.8-GHz (#9722)
* Add files via upload

* Update 900-arm-boot-add-dts-files.patch

* Create rk3399-nanopi4-opp.dtsi

* Create 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Rename 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch to 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch

* Update 901-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch
2022-07-09 16:19:47 +08:00
lean
2c340abaf1 arm-trusted-firmware-rockchip-vendor: add RK3566/RK3568 support 2022-07-09 15:53:09 +08:00
lean
f847ef6a20 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-07-09 13:19:12 +08:00
lean
6182b802e9 rockchip: add RK35xx target description 2022-07-09 13:19:05 +08:00
骷髅头
691504ff4b
rockchip:supplement 5.18 to compile other devices normally (#9718)
* Add files via upload

* Update 900-arm-boot-add-dts-files.patch
2022-07-09 13:00:17 +08:00
lean
1553dbd7cc rockchip: add dts boot files patch for kernel 5.18 2022-07-09 12:03:55 +08:00
lean
4bdaa1567e rockchip: refresh dts files 2022-07-09 11:16:17 +08:00
aakkll
54ed3a93f8
kernel: bump 5.15 to 5.15.53 (#9715)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-09 02:43:26 +08:00
lean
57af03bad2 rockchip: add RK3568 support in kernel 5.18 2022-07-09 02:39:39 +08:00
lean
91dd328375 config: rockchip: increase default kernel size to 32MB 2022-07-09 01:08:40 +08:00
aakkll
bb92ec6dfc
kernel: 5.18: refresh patches (#9714)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-09 01:05:05 +08:00
lean
b98a711f82 x86: bnx2x 2.5G SGMII patch for 5.18 2022-07-09 01:03:00 +08:00
lean
4a65613b43 kernel: fix tpm modules in kernel 5.18 2022-07-09 00:58:37 +08:00
lean
a6893cf1b8 shortcut-fe: disable sfe ecm autoload 2022-07-09 00:49:45 +08:00
lean
3490ed59c0 shortcut-fe: fix unload sfe ecm 2022-07-08 23:00:40 +08:00
lean
9adb995019 kernel: port dma buf for kernel 5.18 DRM support 2022-07-08 22:28:07 +08:00
lean
4865875187 r8168: add kernel 5.18 support 2022-07-08 20:28:09 +08:00
lean
71124f92a6 r8125: add kernel 5.18 support 2022-07-08 19:51:58 +08:00
lean
519e147e76 kernel: add linux 5.18 support for x86/x64 2022-07-08 19:21:32 +08:00
lean
b01b487f95 ramips: disabled whnat as workaround 2022-07-08 15:59:41 +08:00
lean
63434c83c9 mac80211: improve ath10k encap/vht/thermal support 2022-07-08 14:45:00 +08:00
lean
22dbef3fbb Revert "Revert "ramips: improve MT7621 clock""
This reverts commit ac5f5dcd28.
2022-07-08 14:30:07 +08:00
lean
ef8b8224b9 ramips: fix mi cr660x wan mac 2022-07-08 13:23:25 +08:00
lean
00522a1d86 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-07-08 12:44:50 +08:00
lean
66d19a4e36 mac80211: bump to 5.15.33-1 2022-07-08 12:44:37 +08:00
Dustin Lundquist
d12eff3e86 openssl: bump to 1.1.1q
Changes between 1.1.1p and 1.1.1q [5 Jul 2022]

  *) AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised
     implementation would not encrypt the entirety of the data under some
     circumstances.  This could reveal sixteen bytes of data that was
     preexisting in the memory that wasn't written.  In the special case of
     "in place" encryption, sixteen bytes of the plaintext would be revealed.

     Since OpenSSL does not support OCB based cipher suites for TLS and DTLS,
     they are both unaffected.
     (CVE-2022-2097)
     [Alex Chernyakhovsky, David Benjamin, Alejandro Sedeño]

Signed-off-by: Dustin Lundquist <dustin@null-ptr.net>
2022-07-08 11:54:44 +08:00
Eneas U de Queiroz
ac229e6396 wolfssl: re-enable AES-NI by default for x86_64
Apply an upstream patch that removes unnecessary CFLAGs, avoiding
generation of incompatible code.

Commit 0bd536723303ccd178e289690d073740c928bb34 is reverted so the
accelerated version builds by default on x86_64.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-07-08 11:53:36 +08:00
Ivan Maslov
91143f1d7a toolchaini/gcc: fix libstdc++ dual abi model
libstdcxx-dual-abi needs to be enabled to actually support C++11 ABI.
Enable the config flag to also permit support of .NET 6 development on
OpenWrt.

Signed-off-by: Ivan Maslov <avenger_msoft@mail.ru>
[ reword commit description and title ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2022-07-08 11:51:23 +08:00
Ronny Kotzschmar
628ef82714 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>
2022-07-08 11:50:20 +08:00
AmadeusGhost
ac5f5dcd28 Revert "ramips: improve MT7621 clock"
This reverts commit 003eb67e86.
This may cause some devices to fail to boot, close: #9711
2022-07-08 11:26:41 +08:00
lean
82118ca885 ramips: add Mediatek EIP93 Crypto driver for MT7621 2022-07-08 11:07:52 +08:00
lean
4e0fd76789 ramips: mi cr660x: switch to new hnat driver 2022-07-08 03:45:37 +08:00
lean
003eb67e86 ramips: improve MT7621 clock 2022-07-08 01:18:08 +08:00
TonyTeng22
9629eee027
Add device support: Prafly_m8621t Marvell 88F6281 based on LCE patch (Modified by Jerry Yang) (#9708)
* add kirkwood-m8621t.dts

model = "Prafly m8621t";
	compatible = "Prafly,m8621t", "cloudengines,pogoe02", "marvell,kirkwood-88f6281","marvell,kirkwood";

* Update 02_network

Prafly,m8621t)
	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
	;;

* Update Makefile to support Prafly_m8621t

define Device/Prafly_m8621t
  DEVICE_VENDOR := Prafly
  DEVICE_MODEL := m8621t
  DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-switch-mvswe61xxx kmod-ata-core kmod-mmc kmod-mvsdio kmod-usb2
  KERNEL_INSTALL := 1
  SUPPORTED_DEVICES += m8621t
endef
TARGET_DEVICES += Prafly_m8621t
2022-07-07 18:11:01 +08:00
lean
40ef30cf91 Version Update to R22.7.7 2022-07-07 17:49:44 +08:00
Hauke Mehrtens
8f979860f0 kernel: Remove kmod-crypto-lib-blake2s
Delete the crypto-lib-blake2s kmod package, as BLAKE2s is now built-in.

Fixes: be0639063a70 ("kernel: bump 5.4 to 5.4.203")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-07 16:10:07 +08:00
Hauke Mehrtens
120b3835f3 kernel: backport wireguard blake2s patch
This patch was backported to kernel 5.4.200, but without the wireguard
change, because wireguard is not available in upstream kernel 5.4.
This adds the missing changes for wireguard too.

Fixes: be0639063a70 ("kernel: bump 5.4 to 5.4.203")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-07 16:06:26 +08:00
Ritaro Takenaka
f82314362f kernel: check dst of flow offloading table
Flow offload dst can become invalid after the route cache is created.
dst_check() in packet path is necessary to prevent packet drop.

Signed-off-by: Ritaro Takenaka <ritarot634@gmail.com>
2022-07-07 16:05:24 +08:00
Hauke Mehrtens
5adf0dcafc kernel: bump 5.4 to 5.4.203
Merged upstream:
 bcm27xx/patches-5.4/950-1014-Revert-mailbox-avoid-timer-start-from-callback.patch
 generic/backport-5.4/080-wireguard-0021-crypto-blake2s-generic-C-library-implementation-and-.patch

Manually adapted:
 layerscape/patches-5.4/801-audio-0005-Revert-ASoC-fsl_sai-Add-support-for-SAI-new-version.patch
 oxnas/patches-5.4/100-oxnas-clk-plla-pllb.patch

Compile-tested: lantiq/xrx200
Run-tested: lantiq/xrx200

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-07-07 16:02:32 +08:00
Beginner
6fdba51a25
libnl: update to 3.6.0 (#9699)
* libnl: cleanup makefile

- Add PKG_LICENSE_FILES.
- Use SPDX.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* libnl: update to 3.6.0

Remove upstreamed patch:
- 100-build-add-Libs.private-field-in-libnl-pkg-config-file.patch

cacaa5f libnl-3.6.0 release
855c02f route/mdb: merge branch 'troglobit:mdb-dump-fixes'
930fc11 route/mdb: add support for MAC multicast entries
2d68caf route/mdb: add missing detils and stats dump callbacks
d9ed99b nl-monitor: support for setting libnl debug level
4c41e0d nl-monitor: add missing --help to long_opts[]
7e96356 Check validation type against end of enum
4e153bc route/link: add VLAN bridge binding flag
b7256d3 github: build unit tests also with "clang"
8111933 route: assert that "rtnl_link_info_ops" refcount does not drop below zero
4f5c846 lib: merge branch 'th/object-clone-fixes'
d23fb81 lib: make nl_object_clone() out-of-memory safe
7f7452c route: fix ref counting for l_info_ops and io_clone()
620d024 route: drop unnecessary oo_clone() implementation from netconf
93a02eb netfilter: make log-msg,queue-msg setters robust against ENOMEM
23902d0 xfrm/sa: clone user_offload in xfrm_sa_clone()
29e5092 xfrm/sa: style cleanup xfrm_sa_clone()
14a9ebc utils: add internal _nl_memdup() helper
2e0d7f8 lib: add rtnl_link_info_ops_get() and take lock for rtnl_link_info_ops's io_refcnt
e884286 lib: include <netlink-private/utils.h> in <netlink-private/netlink.h>
7d43191 tests: merge branch 'th/tests-netns'
a7bbdab tests: add unit test for nl_object_clone() and nl_object_diff()
fdb0121 tests: add new "netns" test suite
9102872 tests: add fixture/teardown for tests to run in separate netns
9a42798 tests: cleanup creating test suites
1fc3e07 tests: refactor tests and add n-test-util helper library
7a3d6e2 netlink: add _NL_N_ELEMENTS() macro
3da4f7d netlink: add _nl_streq()/_nl_streq0() helper
1ad8555 netlink: add _nl_auto_nl_socket cleanup macro
c8a5729 lib: add _nl_close() helper
80868e6 clang-format: add ".clang-format" from linux kernel
2782ed3 github: build tests with "-std=gnu11"
af59b9a github: split tests in separate steps
c8f7902 build: add "check-progs" make target to build unit tests
23b4d33 route/cls: add TCA_FLOWER_KEY_VLAN_ETH_TYPE to "flower_policy" policy
1f8dc89 route/cls: return -NLE_INVAL in case rtnl_tc_data_peek() fails
ef5f3eb route/cls: merge branch 'westermo:cls-flower'
c385c84 route/cls: no need to copy simple fields in flower_clone()
79217d8 route/cls: make output pointers in rtnl_flower_get_{src,dst}_mac() optional
64e0836 route/cls: adjust whitspace/indentation
5ac9ce3 route/cls: use SPDX-License-Identifier
1a1c4e5 route/cls: reorder fields in "struct rtnl_flower" and adjust indentation
ef46de1 route/cls: add flower classifier
f0aad20 route: merge branch 'pugo:master'
d0cfecc route: make argument of rtnl_link_can_set_{bittiming,data_bittiming}() const
6a92268 route: add rtnl_link_can_set_data_bittiming_const()
841553b route: drop bitrate,sample-point getters/setters from can link
37998f7 route: rename rtnl_link_can_get_data_bt_const() to rtnl_link_can_get_data_bittiming_const()
96d3a6b route: fix adding rtnl_link_can_* symbols to symbol file
881e329 route: fix indentation
37c10ef route/link: add CAN FD support
d56bf73 route/mdb: merge branch 'rubensfig:mdb'
e0b2406 route/mdb: drop setting ifindex in mdb_clone()
d78a6eb route/mdb: minor cleanup in "mdb.c"
57a6d51 route/mdb: drop extra MDB attributes and rework mdb_compare()
0b44562 route/mdb: hide rtnl_mdb_entry_alloc() from public API
1c65ff7 route/mdb: reorder fields in "rtnl_mdb_entry" for tighther packing
1ac5403 route/mdb: use nl_list_for_each_entry_safe() for destroying list in mdb_free_data()
92035e2 route/mdb: cleanup mdb.h header
6237621 build: sort file names in Makefile.am
0ec6c6c mdb: support bridge multicast database notification
c980034 route/cls: merge branch 'westermo:classifier-api-extension'
a694c33 route/cls: rename rtnl_cls_get{,_by_prio}() API to rtnl_cls_find_by{handle,prio}()
88a5138 route/cls: allow fetching of classifiers from cache
90577b5 route: merge branch 'TummyFish:master'
299f61a license: use SPDX license identifiers and drop license comments
05a540d ip6vti: Add fwmark API
41e4365 ip6gre: Add fwmark API
ebc7df3 sit: Add fwmark API
8e1da8e ipip: Add fwmark API
bda19be ip6_tnl: Add fwmark API
cdc6c0f ipvti: Add fwmark API
2995710 ipgre: Add fwmark API
d9dc6c2 ip6vti: Add IPv6 VTI support
be86170 license: use SPDX license identifiers and drop license comments
919d9c6 route: merge branch 'westermo:fib-lookup'
1ff9b38 route/route: don't report failure when we receive a route in rtnl_route_lookup()
53bc27e route/route: support FIB lookups using rtnl
ed76b9a build: sort files in Makefile.am
46b22c1 route/link: merge branch 'westermo:team-support'
586a6b6 build: fix new symbols in "libnl-route-3.sym"
831f125 route/link: add support for team device
6c59580 route/link: Move LINK_ATTR_IFNAME to a proper location
f77cd25 route/netconf: full API export
f59f443 build: add Libs.private field in libnl pkg-config file
b3333e0 route/qdisc: allow fetching qdiscs by their kind
9a39188 netlink: merge branch 'michael-dev:feature/nflog-vlan-v3'
a93fc5f nflog: add recent missing symbols to "libnl-nf-3.sym"
7b4df53 nflog: add missing symbols to "libnl-nf-3.sym"
8266436 nflog:add conntrack flag and enable flags for nflog
246904d nflog: add CT support
59fc1d7 nflog: add mac_header support
c268c48 nflog: add vlan attribute
2548468 refresh linux/netfilter/nfnetlink_log.h with linux 5.4
4edffbd route/link: Add IPv6 GRE support
5d69587 route: add global sectin in "libnl-route-3.sym"
d0cf3a9 neigh: support to add fdb entry
3bf0a9c cls:u32: fix u32_clone() function
3147d86 route:tc: fix rtnl_tc_clone() calling to_clone() and add comment
c027e54 route:cls: fix dangling pointers in to_clone() implementations
47c04fb route:act: drop unnecessary implementations for to_clone()
79f7c9d tests: add test for cloning cls:u32 object
b1caff8 github: run unit tests under valgrind
38b3be3 tests: cleanup tests and avoid leaks
c2b94b9 lib: add more _nl_auto* cleanup macros
1f05e5a tests: replace libcheck's fail_if() macro by ck_assert*()
6341d89 log: fix typo in dumping msg
bfee88b route: fix memory leak of l_info_ops in link_msg_parser()
431ba83 route: merge branch 'qbdwlr:mplsPR'
cc680d4 route: add accessors for setting/getting ENCAP_MPLS attributes
efe8aad route: remove incorrect nl_addr_valid() from rtnl_route_nh_set_newdst(), etc.
0688bc6 netfilter/ct: fix use of reply/orig for conntrack requests
5d92516 route: don't use internal bit mask constants in NLA_PUT in can_put_attrs()
6fe9418 lib: fix descriptions for nl_cache_pickup()/nl_cache_pickup_checkdup()
d0d91c7 route: merge branch 't0mmmy90:check-if-nh-exists-while-updating-ipv6-multipath-route'
28a652b route: fix duplicate check for next hop for IPv6 multipath routes
03bfd2f route: check if nh exists while updating route
92c9237 ci: add github-actions
3d1fb00 tests/check-addr: replace deprecated fail_if() macro from libcheck with ck_assert_msg()
d9cad53 xfrm: fix naming consistency in xfrmnl_sp_get_curlifetime()
c0e82db cli: Add C++ linkage support
000a3bd yyerror: update to POSIX standard
f865a99 xfrm: merge branch 'spellingmistake:master'
0306ae2 xfrm: fix libnl-xfrm-3.sym linker versioning
8950194 xfrm: ensure minlen in policy for XFRMA_OFFLOAD_DEV
c8f33a4 xfrm: Add support for xfrm user offloading
b6cc13d Supporting Hardware offload capability for MACsec
39944c6 route/link: check calloc() return value
12cc0aa zero stack allocated memory in xfrmnl_build_sa_delete_request
5f39502 merge branch 'bengal/coverity'
26f342d route/qdisc: handle error of calloc()
d1a151e route/qdisc: fix memory leak in netem.c
aa092d1 route/link: fix copy-paste error in geneve.c
30552e8 route/cls: fix cgroup's clone() function
764c30a route: let route/link join RTNLGRP_IPV6_IFINFO mcast group
b24e833 doc: update link to mscgen-filter
0b5d17d addr: merge branch 'lcrestez-dn:dadfailed'
30924e7 tests: Add test for rtnl_addr_flags2str
5c05c75 addr: Add address flag `dadfailed`
2abeec8 xfrm: remove superfluous xfrm_userpolicy_id from dump request
5611487 lib/trivial: whitespace
ab015e1 lib: merge branch 'th/object-identical-fix'
36b0894 lib: allow to compare incomplete objects in nl_object_identical()
5020077 lib: let nl_object_identical() declare the same object as identical
406ebc8 lib: fix using right compare mask in nl_object_diff64()
8637c70 lib/trivial fix indentation
4be6062 route/link: avoid cloning link policy in link_msg_parser()
ba3c51c route/link: fix link_msg_parser() for using the af_ops of the link family
f9d0181 lib: use proper int type for id attributes in nl_object_identical()
68b3431 lib: fix documentation of nl_cache_dump_filter to have @params optional
2375cde lib: fix spelling errors in "netlink/handlers.h"
3faf26c gitignore: fix ignoring check-direct build artifacts
47fb1c0 xfrm: remove superfluous xfrm_usersa_id from dump request
846d288 travis: install "check" in travis
d64a0ec route: convert non-leading tabs to spaces in "include/netlink/route/link.h"
aaefd92 route: add test for valid content of map_stat_id_from_IPSTATS_MIB_v2 array
bab9e77 route/link: add RTNL_LINK_REASM_OVERLAPS stat
bae11ec tests: add "check-direct" test
2d50b04 route: add "netlink-private/route/utils.h" header
9a52b3d gitignore: merge all gitignore files in top level directory
4c5f2d6 merge branch 'th/license-comment-cleanup'
2d3e690 license: update "doc/COPYING" license text
1389188 license: add SPDX license identifer to "configure.ac" files
503aa5e license: fix and add SPDX license identifiers and drop license comments
4333aef license: cleanup copyright comments
956635b license: fix SPDX license identifier for nl-auto.h
5614b4c lib: merge branch 'th/cleanup-errout'
17e09aa rtnl/route: use cleanup attribute in "lib/route/link.c"
b50be8f rtnl/route: use cleanup attribute in "lib/route/route_obj.c"
fca338b rtnl/route: fix NLE_NOMEM handling in parse_multipath()
2957d8f rtnl/link: fix leaking rtnl_link_af_ops in link_msg_parser()
77b4f68 rtnl/route: only consider negative error codes as error
6870ece lib: cleanup nla_parse() to return early on error
a858a0b lib: use _nl_strncpy*() instead of plain strncpy()
018c694 lib: cleanup _nl_strncpy_assert()
e97b990 lib: rename _nl_strncpy() to _nl_strncpy_assert()
5ffbc6f lib: add _NL_RETURN_*() helper macros
abb7391 lib: add "include/netlink-private/nl-auto.h" header
ecd15bc lib: add _nl_assert_not_reached()
9cc38dc lib/route: adjust coding style
01ea9a6 route/link: Check for null pointer in macvlan

Signed-off-by: Nick Hainke <vincent@systemli.org>

Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-07-06 23:53:33 +08:00
Beginner
d366b58c3f
n2n: fix setup route (#9703)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-06 20:59:44 +08:00
Beginner
0ddd0df10f
wolfssl: add config flag for Curve448 (#9698)
This enables building WolfSSL with Curve448, which can be used by
Strongswan. This has been tested on a Linksys E8450, running OpenWrt
22.03-rc4.

This allows parity with OpenSSL, which already supports Curve448 in
OpenWrt 21.02.

Fixes openwrt/packages#18812.

Signed-off-by: Joel Low <joel@joelsplace.sg>

Co-authored-by: Joel Low <joel@joelsplace.sg>
2022-07-06 02:36:59 +08:00
AmadeusGhost
a78577fbd0 ksmbd: fixes build on kernel 5.15.52+
Fixes: #9691, #9695
2022-07-05 15:19:00 +08:00
aakkll
5f2e5ff67d
kernel: bump 5.15 to 5.15.52 (#9687)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-03 17:45:04 +08:00
Felix Fietkau
706040d51a mt76: update to the latest version
c07f45927839 firmware: update mt7622 firmware to version 20220630
af406a2d1c36 mt76: do not use skb_set_queue_mapping for internal purposes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-07-03 10:40:39 +08:00
aakkll
60086c7f44
kernel: bump 5.15 to 5.15.51 (#9678)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-07-01 19:31:03 +08:00
Beginner
886a9fd300
n2n_v2: upgrade to v3 (#9675)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Co-authored-by: He Cheng <57560866+hecheng337@users.noreply.github.com>
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-07-01 01:22:41 +08:00
José Hwong
80125b864a
ipq807x: 5.10: refresh patches (#9674)
Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-07-01 00:36:14 +08:00
John Audia
e62f84b2f0 kernel: bump 5.10 to 5.10.127
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-06-30 15:59:17 +08:00
John Audia
052aed9938 kernel: bump 5.10 to 5.10.126
No patches rebased, just checksum update for this refresh.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-06-30 15:57:57 +08:00
Konstantin Demin
77cb37224b dropbear: cherry-pick upstream commit 544f28a0
Resolves #10081

Reported-By: Chen Minqiang <ptpt52@gmail.com>
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
2022-06-30 15:56:18 +08:00
Sander Vanheule
0760499e1a kernel: backport RTL8211F clkout-disable patch
In Linux v5.14 an extra feature was introduced for the RTL8211F phy,
allowing to disable a clock output from the phy. Part of that patch is to
always (soft) reset the phy upon initialisation.

This phy reset is required to have a working ethernet on the TP-Link
EAP225-Outdoor v3 and EAP225 v4 after a reboot. Otherwise the ethernet
port will only function properly on cold boots.

Tested-by: Andre Klärner <kandre@ak-online.be> # EAP225-Outdoor v3
Tested-by: Sven Hauer <sven.hauer+github@uniku.de> # EAP225 v4
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-06-30 15:55:13 +08:00
Beginner
4096dc7e66
firmware-utils: bump to git HEAD (#9667)
The support-list partition for the EAP225-V3 board ID became larger than
the allocated size, resulting in factory image generation for the
EAP225-Outdoor v3 and EAP225 v3 to fail. The make directive
Build/tplink-safeloader ignores this failure however, resulting in a
seemingly successful build with empty factory images.

Included changes:
    e609c5d75186 tplink-safeloader: drop unqualified EAP225-V3 IDs

Signed-off-by: Sander Vanheule <sander@svanheule.net>

Co-authored-by: Sander Vanheule <sander@svanheule.net>
2022-06-30 00:14:16 +08:00
Beginner
a1b36a1bd9
wolfssl: disable AES-NI by default for x86_64 (#9653)
WolfSSL is crashing with an illegal opcode in some x86_64 CPUs that have
AES instructions but lack other extensions that are used by WolfSSL
when AES-NI is enabled.

Disable the option by default for now until the issue is properly fixed.
People can enable them in a custom build if they are sure it will work
for them.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-06-29 18:20:39 +08:00
Beginner
ddc2b246d7
kernel: bump 5.10 to 5.10.125 (#9656)
* kernel: bump 5.10 to 5.10.121

Manually rebased:
    oxnas/patches-5.10/100-oxnas-clk-plla-pllb.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.122

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.123

No patches required a rebase, just updated checksum.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.124

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.125

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-06-27 17:02:35 +08:00
Beginner
d559805258
ethtool: update to 5.18 (#9654)
9eabf30 Release version 5.18.
2b3ddcb ethtool: fec: Change the prompt string to adapt to current situations
d660dde pretty: add missing message descriptions for rings
aaeb16a pretty: support u8 enumerated types
6b320b8 rings: add support to set/get cqe size
41fddc0 update UAPI header copies
42e6c28 help: fix alignment of rx-buf-len parameter
e1d0a19 ethtool.8: Fix typo in man page
37f0586 Release version 5.17.
8c2984c strset: do not put a pointer to a local variable to nlctx
8fd02a2 ioctl: add the memory free operation after send_ioctl call fails
b9f25ea ethtool: Add support for OSFP transceiver modules
6e79542 features: add --json support
5ed5ce5 Merge branch 'next' into  master
b90abbb man: document recently added parameters
51a9312 tunables: add support to get/set tx copybreak buf size
a081c2a rings: add support to set/get rx buf len
d699bab Merge branch 'master' into next
52db6b9 Merge branch 'review/module-extstate' into next
6407b52 monitor: add option for --show-module/--set-module
1f35786 ethtool: Add transceiver module extended state
2d4c5b7 ethtool: Add ability to control transceiver modules' power mode
005908b Update UAPI header copies

Signed-off-by: Nick Hainke <vincent@systemli.org>

Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-06-27 17:02:06 +08:00
Beginner
05b2e34d23
firmware-utils: bump to git HEAD (#9652)
* firmware-utils: bump to git HEAD

05fd700 tplink-safeloader: TP-Link RE650 v2 support

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* firmware-utils: bump to git HEAD

Includes image support for new TP-Link devices:

  ddc3e00e314d tplink-safeloader: add TP-Link EAP265 HD support
  ceea1a7fe56e tplink-safeloader: add TP-Link Deco M4R v1 and v2 support

Signed-off-by: Sander Vanheule <sander@svanheule.net>

* firmware-utils: bump to git HEAD

Fixes an out of bounds issue, adds support for TP-Link safeloader images
with non-default partition names, and adds image generation support for:
  - TP-Link Archer A6 v2 (EU)
  - TP-Link EAP225 v4
  - TP-Link EAP225-Outdoor v3

365458e00ed7 tplink-safeloader: join EAP225-V3 compatible devices
0277810d353d tplink-safeloader: fix chunked support-list prints
a64f89c66318 tplink-safeloader: Patch to handle partitions with alternate names.
07f78f071075 firmware-utils: tplink-safeloader: add support for Archer A6 v2 (EU)
49ea62160d21 tplink-safeloader: fix alphabetical order

Signed-off-by: Sander Vanheule <sander@svanheule.net>

* firmware-utils: bump to git HEAD

Fixes the safeloader model identifiers for EAP225-Outdoor v1/v3 devices.

1e3d47292b2e tplink-safeloader: fix EAP225-Outdoor model IDs
9563fe8e78cb tplink-safeloader: add regionless EAP225-V3 IDs

Signed-off-by: Sander Vanheule <sander@svanheule.net>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Sander Vanheule <sander@svanheule.net>
2022-06-27 17:01:53 +08:00
AmadeusGhost
fc46806f59 openssl: bump to 1.1.1p
Fixes: CVE-2022-2068, defined as moderate severity.
2022-06-27 13:18:37 +08:00
lean
69f0ac32c1 rockchip: add generate mac script support for multiple mmcblk devices 2022-06-27 10:04:07 +08:00
AmadeusGhost
d5fdefb31a ksmbd: fixes build on kernel 5.4
Fixes: 01aef11 ("ksmbd: add out-of-tree module")
Fixes: 94e2af1 ("ksmbd: update to 3.4.5")
Fixes: #9648
2022-06-26 14:01:51 +08:00
aakkll
6adba088c0
kernel: bump 5.15 to 5.15.50 (#9649) 2022-06-26 13:56:24 +08:00
Felix Fietkau
def6de0a2e mt76: update to the latest version
1696f9eb8b40 mt76: mt7915: do not copy ieee80211_ops pointer in mt7915_mmio_probe
a4db5869d660 mt76: mt7915: update mpdu density in 6g capability
500c18014d95 mt76: mt7915: add sta_rec with EXTRA_INFO_NEW for the first time only
3ef66fc7c714 mt76: do not check the ccmp pn for ONLY_MONITOR frame
dd682eead016 mt76: mt7915: update the maximum size of beacon offload
4fb991f2c997 mt76: mt7615: add sta_rec with EXTRA_INFO_NEW for the first time only
ba39ed3b44f1 mt76: mt76x02: improve reliability of the beacon hang check
fd8211cf7c59 mt76: mt7921: sync with updated patch
f2edd340ddb4 mt76: allow receiving frames with invalid CCMP PN via monitor interfaces
b6e865e2cc70 mt76: mt7615: fix throughput regression on DFS channels

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-06-25 16:36:15 +08:00
Arınç ÜNAL
5d8d544aa9 ramips: mt7621-dts: fix claiming rgmii2 pin group for EdgeRouter X SFP
For a TX->TX connected external phy to transmit/receive data, the rgmii2
pin group needs to be claimed with gpio function, at least for EdgeRouter X
SFP. We already claim the pin group under the pinctrl node with gpio
function on the gpio node on mt7621_ubnt_edgerouter-x.dtsi.

However, we should claim a pin group under its consumer node. It's the
ethernet node in this case, which we already claim the rgmii2 pin group
under it on mt7621.dtsi. Therefore, set the function as gpio on the rgmii2
node for EdgeRouter X SFP and get rid of claiming the rgmii2 pin group
under the pinctrl node. With this change, we also get to remove a
definition from mt7621_ubnt_edgerouter-x.dtsi which is specific to
EdgeRouter X SFP.

This change is tested on an EdgeRouter X SFP.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-06-25 16:35:12 +08:00
Beginner
94e2af1bcc
ksmbd: update to 3.4.5 (#9497)
Major changes are:

Add support for smbd-direct multi-desctriptor.
Add support for dkms.
Add support for key exchange.
Fix seveal bugs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Co-authored-by: Rosen Penev <rosenp@gmail.com>
2022-06-23 13:27:22 +08:00
aakkll
04d870e468
kernel: bump 5.15 to 5.15.49 (#9633)
* kernel: bump 5.15 to 5.15.49

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

* kernel: 5.15: x86-64: enable CONFIG_SLS
2022-06-23 13:27:11 +08:00
Beginner
fbf4b5d231
mt76: update to the latest version (#9634)
4554ee652caf mt76: mt7921: fix warning Using plain integer as NULL pointer
a3f1d6ccf3ca mt76: mt7921: add missing bh-disable around rx napi schedule
9aeca2a5ce47 mt76: mt7921: get rid of mt7921_mcu_exit
fee8a5911c76 mt76: connac: move shared fw structures in connac module
db4d784ae7ba mt76: mt7921: move fw toggle in mt7921_load_firmware
16ab6bf49556 mt76: connac: move mt76_connac2_load_ram in connac module
29fd748801c6 mt76: connac: move mt76_connac2_load_patch in connac module
051c68d18214 mt76: mt7663: rely on mt76_connac2_fw_trailer
d6ae3505ac6c mt76: enable the VHT extended NSS BW feature
488a5ccc9762 mt76: mt7921: rely on mt76_dev in mt7921_mac_write_txwi signature
934029bb93e2 mt76: mt7915: rely on mt76_dev in mt7915_mac_write_txwi signature
ecefae4c7d72 mt76: connac: move mac connac2 defs in mt76_connac2_mac.h
b5eecc841df8 mt76: connac: move connac2_mac_write_txwi in mt76_connac module
012e619a07b9 mt76: connac: move mt76_connac2_mac_add_txs_skb in connac module
1b492be795ea mt76: mt7921: not support beacon offload disable command
f1f46d3b4b19 mt76: mt7921: fix command timeout in AP stop period
cae61112ef1d mt76: connac: move HE radiotap parsing in connac module
487674062643 mt76: connac: move mt76_connac2_reverse_frag0_hdr_trans in mt76-connac module
649bdc4983c4 mt76: connac: move mt76_connac2_mac_fill_rx_rate in connac module
cb75aaa39252 mt76: mt7921s: remove unnecessary goto in mt7921s_mcu_drv_pmctrl
e0eaf66eaebb mt76: mt7615: do not update pm stats in case of error
f8d125b4ea30 mt76: mt7921: do not update pm states in case of error
6329a834907e mt76: mt7921s: fix possible sdio deadlock in command fail
8a04f1b04662 mt76: mt7921: fix aggregation subframes setting to HE max
e52283439094 mt76: mt7915: disable UL MU-MIMO for mt7915
fd3958970e3d mt76: mt7921: enlarge maximum VHT MPDU length to 11454
18df38fe77f7 mt76: mt7915: get rid of unnecessary new line in mt7915_mac_write_txwi
149e95f5d7a6 mt76: connac: move mt76_connac_fw_txp in common module
899d192e8a79 mt76: move mt7615_txp_ptr in mt76_connac module
7184f0a6f6a5 mt76: connac: move mt76_connac_tx_free in shared code
c42d45278fa5 mt76: connac: move mt76_connac_tx_complete_skb in shared code
0993f4ef96f8 mt76: connac: move mt76_connac_write_hw_txp in shared code
467960fab791 mt76: connac: move mt7615_txp_skb_unmap in common code
2e758064b085 mt76: mt7915: rely on mt76_connac_tx_free
2065a7901671 mt76: move mcu_txd/mcu_rxd structures in shared code
576c1b7c472b mt76: move mt76_connac2_mcu_fill_message in mt76_connac module
7275f7758090 mt76: mt7915: fix incorrect testmode ipg on band 1 caused by wmm_idx

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2022-06-23 13:26:38 +08:00
nanchuci
1c4829d56a
ramips: add mt7615_dbdc driver 80211k 80211v 80211r 80211w and wps support
* 增加mt7615_dbdc闭源驱动对80211k 80211v 80211r 80211w的支持

* 增加对mtkiappd的支持
2022-06-23 13:26:03 +08:00
AmadeusGhost
1512bd83a2 r8152: update to 2.16.1 2022-06-21 23:50:17 +08:00
AmadeusGhost
d021d2437b r8125: update to 9.009.01-1 2022-06-21 15:40:15 +08:00
Stalker
06066a637c
rockchip: fix drm for 5.15 (#9618)
Signed-off-by: xiangfeidexiaohuo <jsjson@163.com>
2022-06-20 02:30:41 +08:00
Beginner
e77c602db5
wolfssl: sync upstream (#9496)
* wolfssl: don't change ABI because of hw crypto

Enabling different hardware crypto acceleration should not change the
library ABI.  Add them to PKG_CONFIG_DEPENDS after the ABI version hash
has been computed.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

* wolfssl: add benchmark utility

This packages the wolfssl benchmark utility.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

* wolfssl: enable CPU crypto instructions

This enables AES & SHA CPU instructions for compatible armv8, and x86_64
architectures.  Add this to the hardware acceleration choice, since they
can't be enabled at the same time.

The package was marked non-shared, since the arm CPUs may or may not
have crypto extensions enabled based on licensing; bcm27xx does not
enable them.  There is no run-time detection of this for arm.

NOTE:
Should this be backported to a release branch, it must be done shortly
before a new minor release, because the change to nonshared will remove
libwolfssl from the shared packages, but the nonshared are only built in
a subsequent release!

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

* wolfssl: set nonshared flag global

libwolfssl-benchmark should NOT be compiled as nonshared but
currently there is a bug where, on buildbot stage2, the package
is recompiled to build libwolfssl-benchmark and the dependency
change to the new libwolfssl version.
Each dependant package will now depend on the new wolfssl package
instead of the one previously on stage1 that has a different package
HASH.

Set the nonshared PKGFLAGS global while this gets investigated
and eventually fixed.

Fixes: 0a2edc2714dc ("wolfssl: enable CPU crypto instructions")
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>

* Revert "wolfssl: set nonshared flag global"

This reverts commit e0cc5b9b3ae65113f0e0dd9249dae4776b65c503.
A better and correct solution was found.

Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>

* wolfssl: make WOLFSSL_HAS_OPENVPN default to y

Openvpn forces CONFIG_WOLFSSL_HAS_OPENVPN=y.  When the phase1 bots build
the now non-shared package, openvpn will not be selected, and WolfSSL
will be built without it.  Then phase2 bots have CONFIG_ALL=y, which
will select openvpn and force CONFIG_WOLFSSL_HAS_OPENVPN=y.  This
changes the version hash, causing dependency failures, as shared
packages expect the phase2 hash.

Fixes: #9738

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Co-authored-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
2022-06-19 02:08:50 +08:00
Beginner
0938576424
tools/ninja: update to 1.11.0 (#9608)
Updated patchset to latest.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Co-authored-by: Rosen Penev <rosenp@gmail.com>
2022-06-19 02:08:31 +08:00
Beginner
363b0c8faf
r8168: bump to 8.050.03 (#9609)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-06-19 02:08:21 +08:00
lean
f01d99d612 Revert "rockchip: kernel switch to 5.10"
This reverts commit a056909dc2.
2022-06-18 00:34:04 +08:00
José Hwong
a0cac9a6d1
kernel: bump 5.4 to 5.4.199 (#9601)
Removed:
target/linux/bcm27xx/patches-5.4/950-1014-Revert-mailbox-avoid-timer-start-from-callback.patch [1]

[1]6d8b9f574b

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-06-18 00:30:30 +08:00
AmadeusGhost
8c76a6f498 ramips: mt7621/network: drop mtwifi hack 2022-06-18 00:16:36 +08:00
AmadeusGhost
d41530dba8 ramips: jcg q20: drop ubootmod version 2022-06-18 00:13:26 +08:00
AmadeusGhost
c78af7bc21 ramips: jcg y2: switch to new hnat driver 2022-06-18 00:12:35 +08:00
AmadeusGhost
f46c60443c ramips: mi ac2100: switch to new hnat driver 2022-06-18 00:11:39 +08:00
AmadeusGhost
0eed36f2ea ramips: gehua ghl: switch to new hnat driver 2022-06-18 00:09:13 +08:00
AmadeusGhost
b31fe9b0f6 ramips: c5/k2p: switch to new hnat driver 2022-06-18 00:08:10 +08:00
AmadeusGhost
58accb6699 ramips: msg1500 x.00: switch to new hnat driver 2022-06-18 00:07:03 +08:00
AmadeusGhost
2be7428fbd ramips: newifi-d2: switch to new hnat driver 2022-06-18 00:06:24 +08:00
MeIsReallyBa
9cd22dd829 ramips: mt7621: improve hnat driver support 2022-06-17 23:56:22 +08:00
AmadeusGhost
590517f040 ramips: mt7621: add both gsw/dsa hnat support
Signed-off-by: meisreallyba <meisreallyba@gmail.com>
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2022-06-17 23:55:14 +08:00
AmadeusGhost
c85b4ebbc1 ramips: mt7621: switch to new ethernet driver 2022-06-17 23:54:46 +08:00
AmadeusGhost
177dd50bc6 ramips: add MediaTek Vendor Ethernet driver 2022-06-17 23:54:24 +08:00
aakkll
f6f103b1cb
kernel: bump 5.15 to 5.15.48 (#9592)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-06-16 22:53:16 +08:00
Aviana Cruz
dc771a1c11 ramips: decrease SPI frequency for Phicomm K2P
Some K2P comes with the worse boards with GD25Q128 (may be A2), which
only works with 50MHz frequency and less. Reduce spi frequency so that
these routers can boot.
remove m25p,fast-read because it isn't needed for 50MHz SPI.

Signed-off-by: Aviana Cruz <gwencroft@proton.me>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-06-16 15:01:02 +08:00
lean
23f225e841 Verison Update to R22.6.16 2022-06-15 23:05:59 +08:00
aakkll
d77de26442
kernel: bump 5.15 to 5.15.47 (#9582)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-06-15 23:04:26 +08:00
AmadeusGhost
6e6f0cfa4c gpio-nct5104d: simplified makefile 2022-06-15 22:50:05 +08:00
John Audia
c5351b2e56 kernel: bump 5.10 to 5.10.120
All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800, x86/64

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-06-15 22:24:24 +08:00
John Audia
56dd091b41 kernel: bump 5.10 to 5.10.119
Delete the crypto-lib-blake2s kmod package, as BLAKE2s is now built-in.
Patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800, x86/64

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-06-15 22:22:53 +08:00
John Audia
aba1f6e072 kernel: bump 5.10 to 5.10.118
Removed upstreamed:
    generic-backport/774-v5.15-1-igc-remove-_I_PHY_ID-checking.patch
    generic-backport/774-v5.15-2-igc-remove-phy-type-checking.patch

All patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-06-15 22:20:57 +08:00
google-you-ok?
972c8aed91
kernel:rockchip:phy add JLSemi jl2xxx driver (#9563)
* drv-net-phy-add-JLSemi-jl2xxx-driver

* drv-net-phy-add-JLSemi-jl2xxx-driver

* drv-net-phy-add-JLSemi-jl2xxx-driver

* Enable JL201 config

* Enable JL201 config

* Enable JL201 config

* change default driver

Since the mac80211 driver cannot turn on the wireless, it can only be turned off by default.
2022-06-14 02:23:49 +08:00
Chen Yijun
54a3998646
add support for XR21V141x usb serial chip (#9514) 2022-06-12 03:29:12 +08:00
aakkll
76a4c855a2
kernel: bump 5.15 to 5.15.46 (#9504)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-06-09 23:18:30 +08:00
lean
2bd9325289 Update README.md 2022-06-08 23:34:39 +08:00
Suysker
03b8c9a652
n2n_v2: improve dhcp support (#9498)
* Update n2n_v2.config

* Update n2n_v2.init
2022-06-08 13:09:40 +08:00
aakkll
df4850bfc4
kernel: 5.15: refresh patches (#9499) 2022-06-08 13:08:19 +08:00
lean
a056909dc2 rockchip: kernel switch to 5.10 2022-06-07 19:40:18 +08:00
lean
1cb98d7be6 shortcut-fe: fix tcp_no_window_check api with kernel 5.15.43+ 2022-06-07 19:05:57 +08:00
Rui Salvaterra
7b60931f79 kernel: bump 5.15 to 5.15.45
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-06-07 14:36:58 +08:00
AmadeusGhost
ee7d9cff62 Revert "kernel: bump 5.15 to 5.15.44 (#9457)"
This reverts commit 91b3516, fixes: #9483
2022-06-07 14:35:37 +08:00
IRN-Kawakaze
13002e60cb
build: fix ldconfig executable error in python (#9490)
See: https://github.com/openwrt/openwrt/pull/4736
2022-06-07 14:03:30 +08:00
Suysker
ad18adbf5c
n2n: v3: fixes init script (#9488) 2022-06-07 10:15:29 +08:00
Tianling Shen
8ca1319fa3
dnsmasq: enable cache by default (#9484)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-06-06 11:50:34 +08:00
aakkll
91b3516ba1
kernel: bump 5.15 to 5.15.44 (#9457)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-06-04 23:25:35 +08:00
AmadeusGhost
98f703f4b1 r8168: refresh patches
Fixes: #9480
2022-06-04 23:09:33 +08:00
AmadeusGhost
78b1611182 r8168: update to 8.050.02 2022-06-04 18:09:42 +08:00
lean
9fdd43d6ed generic: 5.15: revert sysctl_no_window_check 2022-06-04 00:16:27 +08:00
Felix Fietkau
49ccd16f2f mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-06-03 12:32:37 +08:00
Felix Fietkau
e78e4dcf22 mac80211: add a bug fix for a rare crash
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-06-03 12:27:41 +08:00
Felix Fietkau
5264273007 kernel: fix crashes in bridge offload code
- fix an issues when accessing the port pointer of an expired/invalid fdb entry

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-06-03 12:26:55 +08:00
Christian 'Ansuel' Marangi
de633a7ab0 generic: 5.15: fix panic on tcp_no_window_check set with interface up
The current reworked version cause kernel panic when the value is changes and
an interface is up. Following the tcp_be_liberal impelementation,
reimplement this to permit a safe change of this value without any
panic.
This has been tested with a QSDK package where tcp_no_window_check is used.

Fixes: 92fb51bc9881 ("generic: 5.15: standardize tcp_no_window_check pending patch")
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
2022-06-03 12:25:42 +08:00
lean
2a33e979c8 kernel: fix kernel 5.15 FLOWOFFLOAD patch 2022-06-02 11:00:35 +08:00
lean
2b57a426cb kernel: backport flow offload fixes 2022-05-31 23:00:41 +08:00
lean
434154fd97 Revert "Revert "kernel: bump 5.15 to 5.15.43 (#9440)""
This reverts commit 6c2e9050b4.
2022-05-31 22:58:09 +08:00
lean
89547e1fce Revert "Revert "kernel: bump 5.15 to 5.15.42 (#9439)""
This reverts commit cdc5007358.
2022-05-31 22:57:58 +08:00
Arınç ÜNAL
bcfcad5a03 ramips: mt7621-dts: add pinctrl properties for ethernet
Add the missing pinctrl properties on the ethernet node.
GMAC1 will start working with this change.

Link: https://lore.kernel.org/netdev/83a35aa3-6cb8-2bc4-2ff4-64278bbcd8c8@arinc9.com/

Overwrite pinctrl-0 property without rgmii2_pins on devicetrees which use
the rgmii2 pins as GPIO (22 - 33).

Give gpio function to rgmii2 pin group on mt7621_tplink_archer-x6-v3.dtsi
which uses GPIO 28.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
[Rebase to current source code]
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-05-30 00:05:18 +08:00
Arınç ÜNAL
5478c9ba40 ramips: mt7621-dts: enable flow control on port@6
Flow control needs to be enabled on both sides to work.
It is already enabled on gmac0, enable it on port@6 too.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Tested-by: Sungbo Eo <mans0n@gorani.run>
2022-05-30 00:03:09 +08:00
Arınç ÜNAL
1f58a419c3 ramips: mt7621-dts: fix switch@1f warnings
Remove reg property from ports node to fix this warning:

Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name

Another warning surfaces afterwards. Remove #address-cells and #size-cells
from switch@1f node to fix this warning:

Warning (avoid_unnecessary_addr_size): /ethernet@1e100000/mdio-bus/switch@1f: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
2022-05-30 00:02:50 +08:00
Sergio Paracuellos
3db20586a2 ramips: mt7621-dts: properly organize pcie node
Device tree pcie node for this SoC is using different
styles in its different properties. Hence properly
unify them to be able to write a a proper yaml schema
documentation.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210505121736.6459-11-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:56:15 +08:00
Sergio Paracuellos
140eb0f99a ramips: mt7621-dts: add missing device_type in pcie root ports
According to the YAML schema 'pci-bus.yaml' the 'device_type'
property is mandatory for all pcie root ports. Hence add it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210506170742.28196-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:56:01 +08:00
Sergio Paracuellos
436cfda73b ramips: mt7621-dts: remove 'bug-range' property
Property 'bus-range' when values are the default are
not necessary to be defined. Hence, remove all of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210506170742.28196-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:55:37 +08:00
Sergio Paracuellos
16f0b2d843 ramips: mt7621-dts: use standard 'syscon' string
Both 'memc' and 'sysc' nodes are not using 'syscon'
as a node string which is the standard one to be used.
Update both of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210505132154.8263-3-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:55:21 +08:00
Sergio Paracuellos
4ec4b8e5e0 ramips: mt7621-dts: properly define 'cpc' and 'mc' nodes
'cpc' and 'mc' nodes correspond with the MIPS 'Cluster Power Controller'
and 'MIPS Common Device Memory Map' which are present in some MIPS related
boards. There is already bindings documentation for these two located in:
- Documentation/devicetree/bindings/power/mti,mips-cpc.yaml
- Documentation/devicetree/bindings/bus/mti,mips-cdmm.yaml

Hence, properly update compatible strings and align nodes with already
mainlined bindings documentation. Also, move their definition to a proper
place since both of them are not related with the palmbus at all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211002060706.30511-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:55:06 +08:00
Sergio Paracuellos
8fe4b3ad8d ramips: mt7621-dts: change some node hex addresses to lower case
Hexadecimal addresses in device tree must be defined using lower case.
There are some of them that are still in upper case. Change them all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211017070656.12654-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:54:48 +08:00
Sergio Paracuellos
78cbbce7b6 ramips: mt7621-dts: make use of 'IRQ_TYPE_LEVEL_HIGH' instead of magic numbers
Nodes 'gdma' and 'hsdma' are using magic number '4' in interrupts property.
Use 'IRQ_TYPE_LEVEL_HIGH' instead to align with the rest of the nodes in
the file.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211019102915.15409-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-29 23:54:34 +08:00
AmadeusGhost
95b3b801e0 fullconenat: move to network 2022-05-28 00:28:44 +08:00
AmadeusGhost
fda63a952c target.mk: remove oc dependencies by default
Obviously we don't need to select these by default.
This reverts commit f061029ed1.
2022-05-28 00:25:51 +08:00
lean
cdc5007358 Revert "kernel: bump 5.15 to 5.15.42 (#9439)"
This reverts commit b5cdd73cb4.
2022-05-26 17:12:07 +08:00
lean
6c2e9050b4 Revert "kernel: bump 5.15 to 5.15.43 (#9440)"
This reverts commit d4cadadb49.
2022-05-26 17:11:57 +08:00
aakkll
d4cadadb49
kernel: bump 5.15 to 5.15.43 (#9440)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-26 01:06:43 +08:00
Hugo Yuan
f2cae55d40
qca_ath10k.mk sync with upstream (#9438) 2022-05-25 22:05:12 +08:00
aakkll
b5cdd73cb4
kernel: bump 5.15 to 5.15.42 (#9439)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-25 22:03:53 +08:00
AmadeusGhost
d5dc513703 ramips: newifi-d2: fix default internet led 2022-05-24 15:23:12 +08:00
AmadeusGhost
fc044f23f2 mtk-eip93: update to latest git HEAD 2022-05-24 15:19:14 +08:00
TonyTeng22
4132115fc2
kirkwood: add support for Surfilter Net110 88F6281 (#9433) 2022-05-24 11:10:56 +08:00
Beginner
b4cef7fb1d
ucode: update to latest Git HEAD (#9421)
* ucode: update to latest Git HEAD

e14b099 syntax: implement support for ES6 template literals
111cf06 vm: stop executing bytecode on return of nested calls

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: fix PKG_MIRROR_HASH

Fixes: 0400774a10 ("ucode: update to latest Git HEAD")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: reorder BuildPackage calls

Ensure that the libucode recipe is processed before the ucode one in
order to reliably encode the ABI version into ucode's libucode dependency.

Fixes: #9788
Ref: https://forum.openwrt.org/t/fw4-wont-start-after-upgrade/126308
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: update to latest Git HEAD

081871e compiler: fix segmentation fault on compiling unexpected unary expressions
090b426 fs: avoid input buffering with small limits in fs.readfile()
8da140f lib: introduce hexenc() and hexdec()
9a72423 Update README.md

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-05-23 19:30:06 +08:00
José Hwong
1d13f2881c
kernel: bump 5.10 to 5.10.117 (#9419)
Remove:
target/linux/generic/backport-5.10/890-v5.19-net-sfp-Add-tx-fault-workaround-for-Huawei-MA5671A-SFP-ON.patch [1]
target/linux/generic/backport-5.10/900-regulator-consumer-Add-missing-stubs-to-regulator-co.patch [2]

[1] 3abbfac1ab
[2] a71658c7db

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-05-23 15:27:10 +08:00
aakkll
1787300141
kernel: bump 5.15 to 5.15.41 (#9412)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-20 13:20:52 +08:00
José Hwong
bc45671c00
kernel: bump 5.4 to 5.4.195 (#9408)
* kernel: bump 5.4 to 5.4.194

Signed-off-by: José Hwong <josehwong@hotmail.com>

* kernel: bump 5.4 to 5.4.195

Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-05-19 12:36:33 +08:00
Beginner
6c6f4d159f
kernel: Add missing devm_regulator_get_exclusive() (#9411)
This backports a patch from Linux 5.10.116 to fix a compile problem
introduced in 5.10.114.

drivers/usb/phy/phy-generic.c could not find
devm_regulator_get_exclusive().

Fixes: #9410
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-05-19 10:09:52 +08:00
Beginner
bbabd70e44
kernel: bump 5.10 to 5.10.115 (#9405)
* kernel: bump 5.10 to 5.10.114

All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>

* kernel: bump 5.10 to 5.10.115

Removed upstreamed:
  backport-5.10/850-v5.17-0004-PCI-aardvark-Clear-all-MSIs-at-setup.patch
  pending-5.10/850-0002-PCI-aardvark-Fix-reading-MSI-interrupt-number.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-05-18 14:28:29 +08:00
Beginner
46e5c437a8
wolfssl: bump to v5.3.0-stable (#9404)
This is mostly a bug fix release, including two that were already
patched here:
- 300-fix-SSL_get_verify_result-regression.patch
- 400-wolfcrypt-src-port-devcrypto-devcrypto_aes.c-remove-.patch

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-05-18 14:28:13 +08:00
aakkll
664d5cee72
kernel: bump 5.15 to 5.15.40 (#9399)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-17 19:19:39 +08:00
Beginner
39b67eaf58
util-linux: update to 2.38 (#9402)
* util-linux: add lsns

lsns lists system namespaces

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

* util-linux: update to 2.38

Various fixes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Co-authored-by: Oskari Rauta <oskari.rauta@gmail.com>
Co-authored-by: Rosen Penev <rosenp@gmail.com>
2022-05-17 19:19:09 +08:00
Eneas U de Queiroz
c4b3927bdc openssl: bump to 1.1.1o
This release comes with a security fix related to c_rehash.  OpenWrt
does not ship or use it, so it was not affected by the bug.

There is a fix for a possible crash in ERR_load_strings() when
configured with no-err, which OpenWrt does by default.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-05-17 00:08:09 +08:00
Christian Lamparter
43286b0af7 linux-firmware: Update to version 20220509
git log --pretty=oneline --abbrev-commit 20220411..20220509 (sorted)

amdgpu:
480d6c2 amdgpu: update dcn_3_1_6_dmcub firmware
b4994be amdgpu: update gc_10_3_7_rlc firmware
61eb408 amdgpu: update psp_13_0_8 firmware
fcf9d8c amdgpu: update yellow carp DMCUB firmware

ath10k:
73743b8 ath10k: QCA4019 hw1.0: update board-2.bin
6ad0930 ath10k: QCA6174 hw3.0: update board-2.bin
729bd7f ath10k: QCA6174 hw3.0: update firmware-6.bin to WLAN.RM.4.4.1-00288-QCARMSWPZ-1
9fce09f ath10k: QCA9888 hw2.0: update board-2.bin
b155d85 ath10k: QCA9888 hw2.0: update firmware-5.bin to 10.4-3.9.0.2-00156
44b8aee ath10k: QCA9984 hw1.0: update board-2.bin
4ad3bd3 ath10k: QCA9984 hw1.0: update firmware-5.bin to 10.4-3.9.0.2-00156
1962cba ath10k: QCA99X0 hw2.0: add board-2.bin

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-05-17 00:06:34 +08:00
José Hwong
ad67dcb784
kernel: bump 5.4 to 5.4.193 (#9393)
Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-05-16 01:41:30 +08:00
aakkll
a7446d2806
kernel: bump 5.15 to 5.15.39 (#9389)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-13 14:28:19 +08:00
José Hwong
0b8b34215f
kernel: bump 5.4 to 5.4.192 (#9386)
Signed-off-by: José Hwong <josehwong@hotmail.com>
2022-05-11 12:38:55 +08:00
aakkll
3516c9aa8a
kernel: bump 5.15 to 5.15.38 (#9378)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-09 22:25:14 +08:00
AmadeusGhost
6a5775c5cd ipq806x: rac2v1a: fixes button does not work issue 2022-05-09 16:35:25 +08:00
AmadeusGhost
5f75284ecd Revert "rockchip: add subtarget rk356x init support"
This reverts commit bbfc031f1c.
This part is identical to armv8 generic, remove redundant code.
2022-05-09 16:29:32 +08:00
José Hwong
77625481a6
ipq807x: refresh 5.10 patches (#9376)
Remove target/linux/ipq807x/patches-5.10/100-clk-qcom-ipq8074-fix-PCI-E-clock-oops.patch
2022-05-08 23:50:19 +08:00
lean
3efcb21ecc target.mk: add new cortex-a55 type 2022-05-06 21:12:39 +08:00
lean
59f95e73bc rockchip: add rk356x.mk 2022-05-06 21:08:14 +08:00
lean
f061029ed1 target: add some default package 2022-05-06 20:42:45 +08:00
lean
7d3173b5dd Version update to R22.5.5 2022-05-06 20:28:35 +08:00
Robert Marko
5943c67afc kernel: 5.15: add missing symbol
CONFIG_QCOM_SPMI_ADC_TM5 gets uncovered while building IPQ40xx with 5.15.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2022-05-06 20:27:38 +08:00
José Hwong
520a3705dc
ath11k-firmware: update to latest version (#9357)
Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>
2022-05-06 18:09:25 +08:00
lean
bbfc031f1c rockchip: add subtarget rk356x init support 2022-05-06 18:07:24 +08:00
Beginner
4ddd124ec8
kernel: bump 5.10 to 5.10.113 (#9341)
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-05-05 01:03:34 +08:00
lean
80a98e5f79 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-05-05 01:03:13 +08:00
lean
71632794c1 kernel: fix Huawei MA5671A tx-fault with a Marvell mv88e6085 switch 2022-05-05 01:03:03 +08:00
aakkll
ae2f2a3b37
kernel: bump 5.15 to 5.15.37 (#9343)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-05-04 02:43:26 +08:00
Beginner
5dba0b8be5
r8125: bump to 9.009.00 (#9342)
Switched to GitHub codeload.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-03 15:43:40 +08:00
lean
30dc6d34b0 change routing feed to custom 2022-04-30 19:22:35 +08:00
José Hwong
d5622e3534
kernel: bump 5.4 to 5.4.191 (#9329)
Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>
2022-04-29 22:56:09 +08:00
aakkll
28faa95120
kernel: bump 5.15 to 5.15.36 (#9325)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-04-29 22:55:38 +08:00
Beginner
ce2fb409e0
kernel: bump 5.10 to 5.10.112 (#9311)
* kernel: x86: remove an upstreamed patch

012-pcengines-apu2-detect-apuv4-board.patch is upstream since Linux 5.5 [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.5&id=3d00da1de3ea36ba44f4a7ba76c8c8b16f98204b

Acked-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.112

Manually rebased:
  ath79/patches-5.10/901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
Co-authored-by: John Audia <graysky@archlinux.us>
2022-04-25 19:18:22 +08:00
lean
8b348caf85 openssl-qat: fix openssl-qat build 2022-04-25 19:02:30 +08:00
lean
97a9335e8b quickassist-c3xxx:fix quickassist-c3xxx build 2022-04-25 19:01:44 +08:00
lean
ca4dc08690 mtk-eip93: fix build with kernel 5.15 2022-04-25 18:57:38 +08:00
Josef Schlehofer
9aee739a16 cypress-firmware: update it to version 5.4.18-2021_0812
- Binary files were renamed to cyfmac from brcmfmac, but the files needs
  to be on the router with the previous naming

[    6.656165] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.665182] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.bin failed with error -2
[    6.674928] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.bin

- Cypress were acquired by Infineon Technologies
Thus change the project URL and switch to download files from their
GitHub repository. This is much better than the previous solution, which
requires finding new threads on their community forum about new driver
updates, and it will be necessary to change the URL each time.

Unfortunately, it seems that there is not published changelog, but
according to this forum thread [1], be careful by opening the link from
solution since it contains ending bracket ), it brings fixes for various
security vulnerabilities, which were fixed in 7_45_234.

Fixes:
- FragAttacks
- Kr00k

Also add LICENSE file

Run tested on Seeedstudio router powered by Raspberry Pi 4 CM with
package cypress-firmware-43455-sdio.

Before:
root@OpenWrt:~# dmesg | grep 'Firmware: BCM4345/6'
[    6.895050] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:20:01 version 7.45.206 (r725000 CY) FWID 01-febaba43

After:
root@OpenWrt:~# dmesg | grep 'Firmware: BCM4345/6'
[    6.829805] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:03:20 version 7.45.234 (4ca95bb CY) FWID 01-996384e2

[1] https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Outdated-brcmfmac-firmware-for-Raspberry-Pi-4-in-OpenWrt-21-02-1/m-p/331593#M2269

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-04-25 16:39:16 +08:00
Janpieter Sollie
48975fd1aa rtl8812au-ct: update driver to be ready for 5.15
update rtl8812au-ct driver to be ready for 5.15 Linux.

Signed-off-by: Janpieter Sollie <janpieter.sollie@edpnet.be>
[added commit message from PR with changes, added tag to subject]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-04-25 16:38:16 +08:00
lean
829e76aaee wolfssl: ensure that a change in crypto support rebuild the package 2022-04-24 19:25:18 +08:00
ricksuzade-maker
0b36250f46
Update openssl-qat version to 0.6.12 (#9296) 2022-04-22 22:50:56 +08:00
ricksuzade-maker
9287b511dd
Fix Intel QAT Driver download url (#9295)
Fix Intel® QuickAssist Technology Driver download url
2022-04-22 22:50:41 +08:00
ricksuzade-maker
3a2c790a9f
Update eudev to 3.2.10 (#9297) 2022-04-22 22:50:27 +08:00
lean
2a91c72458 mt76: update to the latest version 2022-04-21 23:36:43 +08:00
lean
cb609bce6c ramips: Xiaomi Mi Router 4A Gigabit Edition boot issue 2022-04-21 23:29:02 +08:00
lean
70ca3376d0 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-04-21 23:23:35 +08:00
lean
2a6826d77f wolfssl: fix devcrypto patch 2022-04-21 23:23:27 +08:00
José Hwong
07fa9114d6
kernel: bump 5.4 to 5.4.190 (#9287)
* kernel: bump 5.4 to 5.4.189

Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>

* kernel: bump 5.4 to 5.4.190

Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>
2022-04-21 22:41:18 +08:00
lean
83b7bdb9c2 package: add upx hostbuild package 2022-04-21 16:16:10 +08:00
lean
7acca53f88 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-04-21 02:16:49 +08:00
lean
6a7ad84644 ipq807x: fix QNAP 301w 10G phy autneg at boot 2022-04-21 02:16:41 +08:00
everything411
5654a17092
fix mtk mt7603e and mt7615d driver build error for kernel >= 5.15 (#9275)
* fix mtk mt7603e and mt7615d driver build error for kernel version >= 5.15

no longer do get_fs and set_fs when build for kernel >= 5.15 for mt7603e and mt7615d driver.
for new kernels, get_fs and set_fs is removed from kernel source,
in mt7603e and mt7615d driver, kernel_write and kernel_read is used for newer kernel versions,
and the two functions do not need get_fs and set_fs trick, so we can remove them safely.

* use "help" instead of "---help---" in mt7603e Kconfig
2022-04-21 01:29:50 +08:00
lean
8a72970418 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-04-20 20:23:35 +08:00
lean
6d04c019c5 wolfssl: enable CPU crypto on ARMv8 (exclude bcm27xx) and x86-64 2022-04-20 20:23:08 +08:00
aakkll
0bfab825ab
kernel: bump 5.15 to 5.15.35 (#9282)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-04-20 19:46:36 +08:00
lean
535f8ec1f0 x64: add Intel® QuickAssist Technology openssl crypto hardware accel suuport (C2558 and C3558 SOC) 2022-04-20 15:32:30 +08:00
Dawneng
13aa14c64b
firewall3: fix the hash value (#9277) 2022-04-19 23:00:51 +08:00
Beginner
5f81e28989
linux-firmware: Update to version 20220411 (#9269)
The following files used in OpenWrt changed:
 amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
 amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam19h.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/aldebaran_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/arcturus_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/beige_goby_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/cyan_skillfish2_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/cyan_skillfish2_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/cyan_skillfish2_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/cyan_skillfish2_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/cyan_skillfish2_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/dcn_3_1_6_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/dimgrey_cavefish_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/gc_10_3_7_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/green_sardine_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi10_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_sdma1.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi12_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi14_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi14_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi14_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi14_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/navi14_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/navy_flounder_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/picasso_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/psp_13_0_8_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/psp_13_0_8_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/psp_13_0_8_toc.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven2_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/raven_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/renoir_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/sdma_5_2_7.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_dmcub.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_sdma.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_smc.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_sos.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_ta.bin
 amdgpu-firmware/lib/firmware/amdgpu/sienna_cichlid_vcn.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/vangogh_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega10_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega12_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/vega20_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_asd.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_ce.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_me.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_mec.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_mec2.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_pfp.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_rlc.bin
 amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_ta.bin
 ibt-firmware/lib/firmware/intel/ibt-hw-37.8.10-fw-22.50.19.14.f.bseq
 iwlwifi-firmware-ax210/lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm
 iwlwifi-firmware-iwl9260/lib/firmware/iwlwifi-9260-th-b0-jf-b0-46.ucode
 iwlwifi-firmware-iwl9000/lib/firmware/iwlwifi-9000-pu-b0-jf-b0-46.ucode

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-04-18 12:03:00 +08:00
Beginner
c015f9b542
kernel: bump 5.10 to 5.10.111 (#9259)
Removed upstreamed:
  pending-5.10/850-0003-PCI-aardvark-Fix-support-for-MSI-interrupts.patch
  apm821xx/patches-5.10/150-ata-sata_dwc_460ex-Fix-crash-due-to-OOB-write.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-04-17 13:21:27 +08:00
AmadeusGhost
af54dc279a qca-mcs: drop ugly hack 2022-04-16 22:56:28 +08:00
AmadeusGhost
98e022298d qca-ssdk: refresh patches 2022-04-16 22:54:13 +08:00
lean
27ca5b00c8 target: add some default kmod pacakges 2022-04-15 23:05:55 +08:00
breakings
1e354e4699
firewall3: bump to latest git HEAD (#9253)
4cd7d4f Revert "firewall3: support table load on access on Linux 5.15+"
50979cc firewall3: remove unnecessary fw3_has_table

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-04-15 19:32:19 +08:00
AmadeusGhost
7581661eb8 README: add missing build dependencies
Closed: #9213
Also fix all markdown formatting issues.
2022-04-15 19:05:39 +08:00
aakkll
ad34521be6
kernel: bump 5.15 to 5.15.34 (#9252)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-04-14 20:38:40 +08:00
breakings
b6dfa17e4e
toolchain: musl: Update to version 1.2.3 (#9241)
Changes:
new features:
- qsort_r function (POSIX-future)
- pthread_getname_np extension function
- hard float on SPE FPU for powerpc-sf
- SEEK_DATA and SEEK_HOLE exposed in unistd.h (Linux extensions)

compatibility:
- free now preserves errno (POSIX-future requirement)
- setjmp is declared explicitly with returns_twice for non-GCC compilers
- macro version of isascii is no longer defined for C++
- dynamic linker now tolerates zero-length LOAD segments
- epoll_[p]wait is now a cancellation point
- pwd/grp functions no longer fail on systems without AF_UNIX support
- POSIX TZ parsing is stricter to allow more names to fallback to files
- NULL is now defined as nullptr when used in C++11 or later
- gettext now accepts null pointer as argument

bugs fixed:
- old regression in wcwidth of Hangul combining (vowel/final) letters
- duplocale used wrong malloc when malloc was replaced (1.2.2 regression)
- fmaf rounded wrong on archs without FE_TOWARDZERO (all softfloat archs)
- popen didn't honor requirement not to leak other popen pipe fds to child
- aligned_alloc and variants crashed on allocation failure
- dl_iterate_phdr reported incorrect module TLS pointers
- mishandling of some inputs in acoshf and expm1f and functions using them
- potentially wrong-sign zero in cproj functions at infinity
- multiple bugs in legacy function cuserid
- minor posix_spawn file actions API conformance issues
- pthread_setname_np fd leak
- out-of-bound read in zoneinfo handling with distant-past times
- out-of-tree builds lacked generated debug cfi for x86 asm

arch-specific bugs fixed:
- powerpc (32-bit) struct shmid_ds layout was wrong for some fields
- time64 struct layout was wrong in sound ioctl fallback (32-bit archs)

In addition it contains the following improvements:
* protect stack canary from leak via read-as-string by zeroing second byte
* fix excessively slow TLS performance on some mips models

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-04-14 10:20:20 +08:00
breakings
866c0bd91a
busybox: Fix snprintf arguments in lock (#9239)
* busybox: fix busybox lock applet pidstr buffer overflow

Kernel setting `/proc/sys/kernel/pid_max` can be set up to 4194304 (7
digits) which will cause buffer overflow in busbox lock patch, this
often happens when running in a rootfs container environment.
This commit enlarges `pidstr` to 12 bytes to ensure a sufficient buffer
for pid number and an additional char '\n'.

Signed-off-by: Qichao Zhang <njuzhangqichao@gmail.com>

* busybox: Fix snprintf arguments in lock

The first argument for snprintf is the buffer and the 2. one is the
size. Fix the order. This broke the lock application.

Fixes: 34567750db2c ("busybox: fix busybox lock applet pidstr buffer overflow")
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Qichao Zhang <njuzhangqichao@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-04-14 10:18:09 +08:00
breakings
f55a0fe8a4
dropbear: bump to 2022.82 (#9226)
- update dropbear to latest stable 2022.82;
  for the changes see https://matt.ucc.asn.au/dropbear/CHANGES
- use $(AUTORELEASE) in PKG_RELEASE
- use https for all uris
- refresh all patches
- rewrite patches:
  - 100-pubkey_path.patch
  - 130-ssh_ignore_x_args.patch

binary/pkg size changes:
- ath79/generic, mips:
  - binary: 215112 -> 219228 (+4116)
  - pkg: 111914 -> 113404 (+1490)
- ath79/tiny, mips:
  - binary: 172501 -> 172485 (-16)
  - pkg: 89871 -> 90904 (+1033)

Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>

Co-authored-by: Konstantin Demin <rockdrilla@gmail.com>
2022-04-14 10:15:14 +08:00
Eneas U de Queiroz
940200d607 mediatek/mt7622: enable accelerated crypto drivers
Use ARMv8 Crypto Extensions for AES, ghash and sha256.

This results in a 16 times speed gain in speed for aes-128-ctr, 17x in
aes-128-gcm, and 9 times in sha256.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-04-13 16:45:47 +08:00
lean
863f34aa0e kernel : 5.10: backport NFSv4_2 SSC helper commit 2022-04-13 16:38:51 +08:00
lean
7226b23eab kernel:refresh debloat dma buf patch for linux 5.10 2022-04-13 16:34:33 +08:00
breakings
a4c6d18ad9
libnfnetlink: update to 1.0.2 (#9229)
Changes:

c63f193 bump version to 1.0.2
3cffa84 libnfnetlink: Check getsockname() return code
90ba679 include: Silence gcc warning in linux_list.h
bb4f6c8 Make it clear that this library is deprecated
e46569c Minimally resurrect doxygen documentation
5087de4 libnfnetlink: hide private symbols
62ca426 autogen: don't convert __u16 to u_int16_t
efa1d8e src: Use stdint types everywhere
7a1a07c include: Sync with kernel headers
7633f0c libnfnetlink: initialize attribute padding to resolve valgrind warnings
94b68f3 configure: uclinux is also linux
617fe82 src: get source code license header in sync with current licensing terms
97a3960 build: resolve automake-1.12 warnings

Removed the patch 100-missing_include.patch, libnfnetlink compiles fine
with musl without this patch.

Signed-off-by: Nick Hainke <vincent@systemli.org>

Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-04-13 16:30:17 +08:00
breakings
5cfe35f276
libmnl: update to 1.0.5 (#9228)
Changes:

Duncan Roe (5):
      nlmsg: Fix a missing doxygen section trailer
      build: doc: "make" builds & installs a full set of man pages
      build: doc: get rid of the need for manual updating of Makefile
      build: If doxygen is not available, be sure to report "doxygen: no" to ./configure
      src: doc: Fix messed-up Netlink message batch diagram

Fernando Fernandez Mancera (1):
      src: fix doxygen function documentation

Florian Westphal (1):
      libmnl: zero attribute padding

Guillaume Nault (1):
      callback: mark cb_ctl_array 'const' in mnl_cb_run2()

Kylie McClain (1):
      examples: nfct-daemon: Fix test building on musl libc

Laura Garcia Liebana (4):
      examples: add arp cache dump example
      examples: fix neigh max attributes
      examples: fix print line format
      examples: reduce LOCs during neigh attributes validation

Pablo Neira Ayuso (3):
      doxygen: remove EXPORT_SYMBOL from the output
      include: add MNL_SOCKET_DUMP_SIZE definition
      build: libmnl 1.0.5 release

Petr Vorel (1):
      examples: Add rtnl-addr-add.c

Stephen Hemminger (1):
      examples: rtnl-addr-dump: fix typo

igo95862 (1):
      doxygen: Fixed link to the git source tree on the website.

Signed-off-by: Nick Hainke <vincent@systemli.org>

Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-04-13 16:29:45 +08:00
lean
6f4e5befda Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-04-12 12:59:09 +08:00
lean
d39dbc33c3 mt7622: fix pppoe hw flow offload 2022-04-12 12:59:02 +08:00
breakings
500ccda8fc
wolfssl: bump to 5.2.0 (#9240)
Fixes two high-severity vulnerabilities:

- CVE-2022-25640: A TLS v1.3 server who requires mutual authentication
  can be bypassed.  If a malicious client does not send the
  certificate_verify message a client can connect without presenting a
  certificate even if the server requires one.

- CVE-2022-25638: A TLS v1.3 client attempting to authenticate a TLS
  v1.3 server can have its certificate heck bypassed. If the sig_algo in
  the certificate_verify message is different than the certificate
  message checking may be bypassed.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-04-12 12:02:05 +08:00
breakings
8b40102d46
ucode: update to latest Git HEAD (#9230)
33f1e0b treewide: move json-c compat shims into internal header file
e0e9431 vm: move unhandled exception reporting out of `uc_vm_execute_chunk()`
2b59140 vm: fix callframe double free on unhanded exceptions
7d7e950 main: abort when failing to load a preload library
1032a67 lib: let `json()` accept input objects implementing `read()` method
5ee68d5 fs: implement `fs.readfile()` and `fs.writefile()`
df6b861 ci: debian: change path before attempting to invoke Git operations
dfaf05a ci: debian: automatically update changelog from Git tag
34f3c45 ci: fix YAML syntax of Debian workflow
e956bcf fs: fix off-by-one in fs.dirname() function
6fc4b6c .gitignore: fix overmatching patterns, blacklist cram .venv
7c2e082 build: remove legacy json-c check
77942af build: add polyfills for older libjson-c versions
0b4aaa3 CI: build Debian package
f404285 debian: Add package definition
a37f654 types: fix escape sequence encoding of high byte values in JSON strings
aae5312 Update README.md
8134e25 build: fix symlink install target
87c7296 treewide: replace some leftover "utpl" occurrences, update .gitignore
7d27ad5 build: only stage ucc symlink if compile support is enabled
171402f lib: add date and time related functions
8b5dc60 lib: provide API function to obtain stdlib function implementations
eb0d2f1 main: turn ucode into multicall executable
28ee7e1 uloop: add support for tasks
753dea9 CI: build on macOS
668c5c0 lib: add argument position support (`%m$`) to `sprintf()` and `printf()`
ab46fdf treewide: remove legacy json-c include directives
b8f49b1 tests: 21_regex_literals: generalize syntax error test case
fd2e5e7 tests: 16_sort: fix logic flaw exposed on OS X
2c71bf2 tests: run_tests.sh: pass dummy value to `-T` flag
55c4a90 lib: disallow zero padding for %s formats
0d05cb5 tests: run_tests.sh: use greadlink if available
271e520 resolv: make OS X compatible
d13c320 fs: avoid Linux specific sys/sysmacros.h include on OS X
33397a3 uloop: use execvp() on OS X
bafdc8f lib: add naive sigtimedwait() stub for OS X
ada1585 build: consolidate CMakeLists.txt and cover OS X deviations
befbb69 include: add OS X compatible endian.h header
49838a8 include: rename include guards to avoid clashes with system headers
91f65de nl80211: add missing attributes and correct some attribute flags
b4a1fd5 lib: adjust require(), render() and include() raw mode semantics
4618807 main: rework CLI frontend
73dcd78 lib: fix potential integer underflow on empty render output
c402551 vm: fix crash on object literals with non-string computed properties
efe8a02 syntax: support add new operators
078d686 ubus: add event support
6c66c83 ubus: refactor error and argument handling
1cb04f9 ubus: add object publishing, notify and subscribe support
0e85974 uloop: clear errno before integer conversion attempts
05bd7ed types: treat resource type prototypes as GC roots
a2a26ca lib: introduce uloop binding
6b6d01f vm: release this context on exception in managed method call
1af23a9 tests: fix proto() testcase
4ce69a8 fs: implement access(), mkstemp(), file.flush() and proc.flush()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-04-12 11:26:17 +08:00
José Hwong
aa3f8bc738
kernel-5.10: fix offset and fuzz for patches (#9238)
Fixed "generic" and "ipq807x" sections.

Signed-off-by: José Hwong <88561480+JoseCoW@users.noreply.github.com>
2022-04-12 11:24:00 +08:00
lean
a1f0402204 kmod-fs-nfs:refresh depends 2022-04-12 11:20:55 +08:00
lean
8c0824b971 generic: backport wireless ethernet dispatch for kernel 5.4 2022-04-12 11:20:07 +08:00
lean
cff9b8fc73 ramips: fix hwnat WED 2022-04-11 15:53:18 +08:00
aakkll
7b72c0d67d
kernel: bump 5.15 to 5.15.33 (#9224)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-04-11 14:35:37 +08:00
lean
526b4f3339 ipq807x: add qca-nss-drv-bridge-mgr and qca-nss-drv-vlan-mgr 2022-04-11 14:04:33 +08:00
lean
cc057b5fb7 ipq807x : Add NSS bridge-mgr support 2022-04-11 13:54:55 +08:00
lean
db580cfe63 ipq807x: refresh 5.10 patches 2022-04-11 13:00:44 +08:00
lean
f93cd5e516 mediatek: use wpad-openssl replace of wolfssl version 2022-04-11 12:49:24 +08:00
lean
aa0101a649 kernel: bump 5.10 to 5.10.110 2022-04-11 12:47:31 +08:00
lean
4ae5d37ca1 mediatek: add patches for MT7622 WED (wireless ethernet dispatch) 2022-04-11 11:58:21 +08:00
lean
a5f299d925 Revert "kernel: bump 5.10 to 5.10.110 (#9214)"
This reverts commit 4d545eaed7.
2022-04-10 16:32:25 +08:00
lean
d31af3b114 Revert "kernel: bump 5.15 to 5.15.33 (#9215)"
This reverts commit 26844a297a.
2022-04-10 16:31:49 +08:00
Beginner
26844a297a
kernel: bump 5.15 to 5.15.33 (#9215)
Deleted (upstreamed):
generic/backport-5.15/350-v5.18-MIPS-pgalloc-fix-memory-leak-caused-by-pgd_free.patch [1]
generic/backport-5.15/730-v5.16-hv-utils-add-PTP_1588_CLOCK-to-Kconfig-to-fix-build.patch [2]
generic/pending-5.15/850-0014-PCI-aardvark-Fix-reading-PCI_EXP_RTSTA_PME-bit-on-em.patch [3]
generic/pending-5.15/850-0002-PCI-aardvark-Fix-reading-MSI-interrupt-number.patch [4]

Manually rebased:
generic/pending-5.15/850-0002-PCI-aardvark-Fix-reading-MSI-interrupt-number.patch
ramips/patches-5.15/710-at803x.patch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.33&id=d29cda15cab086d82d692de016f7249545d4b6b4
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.33&id=d5aad7d63b1b5c1f3c4b69e12c05e7c7d196fae8
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.33&id=ed750e22e44366e264bcdf7b1cf0713f08f7980a
[4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.33&id=0fe94b84c43cfea867e1721606185e8686d7d32f

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
[Refresh patches again]
[Remove generic/pending-5.15/850-0002-PCI-aardvark-Fix-reading-MSI-interrupt-number.patch]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-04-10 14:49:00 +08:00
Beginner
4d545eaed7
kernel: bump 5.10 to 5.10.110 (#9214)
Removed upstreamed:
  generic/backport-5.10/350-v5.18-MIPS-pgalloc-fix-memory-leak-caused-by-pgd_free.patch
  generic/pending-5.10/850-0014-PCI-aardvark-Fix-reading-PCI_EXP_RTSTA_PME-bit-on-em.patch
  ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch

All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200
Compile-/run-tested: ath79/generic (Archer C7 v2).

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-04-10 14:48:51 +08:00
lean
4b0c64e913 target: add kmod-inet-diag by default 2022-04-10 02:04:40 +08:00
ShireCiel
7f9ae85220
mt76: mt7921: Add AP mode support 2022-04-09 23:44:11 +08:00
Junle Fong
847a60f53b
mediatek: add kernel 5.10 missing patch
* update config-5.4 for ramips > mt76x8.

update kernel config file.

* mediatek: fix patches
2022-04-07 23:37:19 +08:00
zhouF96
98eeb48d70
Add basic support for TL-XTR10890 (#9202)
* kernel: add module for  bcm574xx 575xx serials

kernel: add module for bnxt_en Linux driver for the 
Broadcom NetXtreme-C/NetXtreme-E 
BCM573xx, BCM574xx, BCM575xx, NetXtreme-S BCM5880x
(up to 200 Gbps) Ethernet Network Controllers and Broadcom Nitro
BCM58700 4-port 1/2.5/10 Gbps Ethernet Network Controller.

* reapply bcm578xx sfp 2.5g patch

* add basic tplink-xtr10890 support

* update 10890dts and add to platform.sh

* update 10890 dts to try boot qcn9074

* revert qca-ssdk to original version
2022-04-07 22:49:43 +08:00
lean
72a2df6a81 mhi: Add support for forced PM resume 2022-04-07 19:01:10 +08:00
lean
d7780d7360 mhi: use irq_flags if controller driver configures it 2022-04-07 18:38:21 +08:00
lean
89e39d8809 toolchain: add llvm-bpf 2022-04-07 01:01:05 +08:00
lean
6cb6036c50 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-04-07 00:06:18 +08:00
Felix Fietkau
f718c03a32 bridger: add bridge forwarding accelerator
This package uses BPF to create a fast path which improves bridging performance
by bypassing the bridge layer. It also supports creating tc offload rules for
hardware that supports it.
Hardware offload support can be used with MT7622 + MT7915 once it is merged

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-04-07 00:06:09 +08:00
Beginner
7da8ae4ef4
grub2: add missing license (#9196)
The PKG_LICENSE field was missing.
While at it, normalize the Makefile a bit.

Signed-off-by: Paul Spooren <mail@aparcar.org>

Co-authored-by: Paul Spooren <mail@aparcar.org>
2022-04-06 15:10:03 +08:00
lean
3cab5d38e9 netifd: revert to 2021-06-04 2022-04-06 01:06:20 +08:00
Chen Yijun
956d8303f3
Add Support for HLK-7621 Router Designed By Me (#9194)
* add support for hilink_hlk-7621a

* add dts of mt7621_hilink_hlk-7621a
2022-04-05 22:38:50 +08:00
JoseCoW
1838504b1c
hostapd: add BSS CCA support (#9187)
This adds the pending support for the BSS color collision handling.

This way drivers that implement CCA can on the fly change the BSS color
ID once a collision is detected.

Signed-off-by: Robert Marko <robimarko@gmail.com>

Co-authored-by: Robert Marko <robimarko@gmail.com>
2022-04-05 00:58:43 +08:00
JoseCoW
08a6577256
mac80211: add random BSS color setting (#9188)
Using BSS coloring is one way of improving performance on 802.11ax
radios, currently its only enabled by users adding he_bss_color to their
wireless UCI config.

This made sense as one could easily get BSS color collision as BSS color
range is 1-63.

Hostapd now has a way of dealing with BSS color collisions so we can just
assign a integer in the 1-63 range randomly if one is not set by users.

Signed-off-by: Robert Marko <robimarko@gmail.com>

Co-authored-by: Robert Marko <robimarko@gmail.com>
2022-04-05 00:58:22 +08:00
lean
be8077f517 ipq807x: fix wireless reload after reboot 2022-04-04 00:01:44 +08:00
lean
8f2b0b86b1 netifd: bump to version 2022-02-20 2022-04-03 19:12:12 +08:00
lean
b8c337abe5 ath79: add kernel 5.15 support 2022-04-03 13:34:55 +08:00
lean
91d301c03b mediatek: add kernel 5.15 support 2022-04-03 13:29:14 +08:00
lean
6135e15ba4 ramips: add kernel 5.15 support 2022-04-03 13:27:24 +08:00
lean
0cc75fbbb7 automount: skip some partition 2022-04-03 13:24:18 +08:00
lean
e449c765d6 kernel: refresh 5.15 patches and config 2022-04-03 13:03:13 +08:00
Bobby
f5307dff2a
index.html: DHCP client list re-order 2022-04-03 12:47:40 +08:00
lean
6482d2270c backport-5.15: refresh patches 2022-04-03 12:44:52 +08:00
lean
8ee8d8cf46 mac80211: fix ath11k kernel 5.15 support 2022-04-03 01:03:27 +08:00
lean
3530c1b73f mac80211: fix ath11k support for IPQ target 2022-04-03 00:53:56 +08:00
lean
ba1f8c931c kernel: export symbol dev_set_threaded 2022-04-03 00:16:52 +08:00
lean
e368d184b3 Version update to R22.4.1 2022-04-02 21:35:05 +08:00
Liam Luo
a77cc5f1ed
ipq806x: Norton 518: fix interface definition (#9171) 2022-04-02 01:15:55 +08:00
AmadeusGhost
3186d2e169 qca-nss-gmac: fixes nvmem patches 2022-04-01 12:26:18 +08:00
Felix Fietkau
f5a661247d mt76: update to the latest version
eed44048ca57 Revert "mt76: dma: reduce lock contention in mt76_dma_tx_cleanup"

Closed: #9168

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-04-01 11:39:44 +08:00
lean
d17bbf492d Revert "busybox: fix busybox lock applet pidstr buffer overflow (#9163)"
This reverts commit e9c3781bb9.
2022-04-01 10:19:02 +08:00
lean
624a9f9703 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-03-31 17:50:41 +08:00
lean
80799ea19e ramips/mediatek: enable threaded NAPI in the ethernet driver 2022-03-31 17:50:26 +08:00
Beginner
19a9562040
kernel: bump 5.10 to 5.10.109 (#9162)
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-03-31 16:48:20 +08:00
Beginner
e9c3781bb9
busybox: fix busybox lock applet pidstr buffer overflow (#9163)
Kernel setting `/proc/sys/kernel/pid_max` can be set up to 4194304 (7
digits) which will cause buffer overflow in busbox lock patch, this
often happens when running in a rootfs container environment.
This commit enlarges `pidstr` to 12 bytes to ensure a sufficient buffer
for pid number and an additional char '\n'.

Signed-off-by: Qichao Zhang <njuzhangqichao@gmail.com>

Co-authored-by: Qichao Zhang <njuzhangqichao@gmail.com>
2022-03-31 16:48:06 +08:00
lean
fdce1eab21 qca-nss-gmac: fix of_get_mac_address 2022-03-31 16:43:47 +08:00
lean
d0183630ee qca-nss-dp: fix of_get_mac_address 2022-03-31 16:16:51 +08:00
lean
e1a6ec5e0a qca-ssdk: disable stack protector for GCC10+ 2022-03-31 16:13:45 +08:00
lean
b663bd117f ipq807x: fix QNAP 301w 10G phy support 2022-03-31 16:08:22 +08:00
lean
409997d01c ipq807x: backport support for nvmem 2022-03-31 16:06:06 +08:00
lean
bcbc73b584 ipq806x: backport support for nvmem 2022-03-31 14:39:11 +08:00
JoseCoW
6371d6313d
kernel: bump 5.4 to 5.4.188 (#9159)
Signed-off-by: JoseCoW <88561480+JoseCoW@users.noreply.github.com>
2022-03-31 13:33:25 +08:00
AmadeusGhost
2297f089da ramips: fixes ethernet driver build error
Fixes: #9153
2022-03-30 20:18:09 +08:00
Daniel Golle
065be5b18a kirkwood: import patch to fix build and refresh patches
kirkwood build broke due to missing include needed for ETH_ALEN.
Add patch (sent upstream as well) to address that.
Refresh patches for 5.4 and 5.10.

Fixes: #9154, #9155

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-03-30 20:15:18 +08:00
Ansuel Smith
7a7f9d647d treewide: backport support for nvmem on non platform devices 2022-03-30 00:33:40 +08:00
Hauke Mehrtens
5ac4c8546c libnl-tiny: update to the latest version
Fixes: #9149, #9150

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-03-30 00:32:00 +08:00
aakkll
fc527f12dc
kernel: bump 5.15 to 5.15.32 (#9143)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-03-29 15:14:09 +08:00
lean
85f1abdc82 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-03-29 15:11:07 +08:00
lean
dc678ac1bf ucl: add Apple M1 configsub fix 2022-03-29 15:10:52 +08:00
AmadeusGhost
951d51d0d4 ath10k-ct/mt76: bump to latest 5.15 git HEAD 2022-03-29 15:09:55 +08:00
AmadeusGhost
cc60132004 mac80211: update to 5.15.8-1
Fixes: #9065, #9083, #9091
2022-03-29 15:09:20 +08:00
AmadeusGhost
fd9fd12bc2 generic/5.15: remove unused patches
Closed: #8669
2022-03-29 15:08:59 +08:00
David Bauer
a152752dc0 hostapd: update to v2.10
Upstreamed patches:
020-mesh-make-forwarding-configurable.patch
e6db1bc5da3fd7d5f4dba24aa102543b4749912f
550-WNM-allow-specifying-dialog-token.patch
979f19716539362f8ce60a77bf1b88fdcf5ba8e5
720-ACS-fix-channel-100-frequency.patch
2341585c349231af00cdef8d51458df01bc6965f
741-proxyarp-fix-compilation-with-Hotspot-2.0-disabled.patch
08bdf4f90de61a84ed8f4dd918272dd9d36e2e1f

Compile-tested: wpad-wolfssl hostapd-openssl
Run-tested: ath79-generic

Signed-off-by: David Bauer <mail@david-bauer.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-29 15:08:46 +08:00
Hauke Mehrtens
5f2c6e129a iw: Update to version 5.16
Revert a commit to allow providing CFLAGS and LIBS from OpenWrt package
Makefile.

This downgrades the nl80211.h to kernel 5.15 and removes
FILS_CRYPTO_OFFLOAD. This is needed to make it compatible
with our patched mac80211 from kernel 5.15

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-03-29 15:08:31 +08:00
coolsnowwolf
1a86fc3711
Update README.md 2022-03-28 21:36:42 +08:00
coolsnowwolf
48940453d3
Update README.md 2022-03-28 21:03:57 +08:00
coolsnowwolf
622042153e
Update README.md 2022-03-28 20:39:24 +08:00
coolsnowwolf
f575f2151f
Update README.md 2022-03-28 20:18:40 +08:00
coolsnowwolf
f56e4b855b
READEME: add macOS host build support 2022-03-28 20:13:47 +08:00
coolsnowwolf
6b0eeff9d9
uci: macOS 12 host build support with GCC11 installed 2022-03-28 14:13:31 +08:00
Beginner
6d687a132e
luci-app-ipsec-server: move to luci feeds (#9130) 2022-03-26 09:36:39 +08:00
Beginner
5a916c954d
openwrt-keyring: add OpenWrt 22.03 GPG/usign keys (#9128)
62471e693b4f usign: add 22.03 release build public key
 70817cffc905 gpg: add OpenWrt 22.03 signing key

Signed-off-by: Petr Štetiar <ynezz@true.cz>

Co-authored-by: Petr Štetiar <ynezz@true.cz>
2022-03-25 23:00:09 +08:00
lean
5a1f106a03 kernel: fix asn1-encoder KCONFIG 2022-03-25 15:31:45 +08:00
lean
f1252b9a5b ath79: disable ARRIS SBR-AC1750 GPIO-Watchdog 2022-03-25 15:19:14 +08:00
Beginner
2d5cf9fc18
openssl: move engine.mk to INCLUDE_DIR (#9127)
engine.mk is supposed to be included by engine packages, but it will not
be present in the SDK in the same place as in the main repository.

Move it to include/openssl-engine.mk to avoid this.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-03-25 15:03:58 +08:00
lean
aa422c5375 ramips/mediatek: enable threaded NAPI in the ethernet driver 2022-03-24 14:22:05 +08:00
aakkll
3755e9c978
kernel: bump 5.10 to 5.10.108 (#9122)
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-03-24 01:00:46 +08:00
JoseCoW
84b3c270d3
kernel: bump 5.4 to 5.4.187 (#9121)
Signed-off-by: JoseCoW <88561480+JoseCoW@users.noreply.github.com>
2022-03-24 01:00:37 +08:00
aakkll
a3f70fd357
kernel: bump 5.15 to 5.15.31 (#9118)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-03-23 22:07:46 +08:00
lean
6e54b12c58 update README.md 2022-03-23 12:04:03 +08:00
lean
04a6c950be toolchain: add gcc support for Apple M1/M1 Max/M1 Ultra as host build system 2022-03-22 23:33:44 +08:00
lean
679ae72af7 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-03-21 14:30:17 +08:00
Beginner
3d11522eff
ncurses: update to 6.3 (#9104)
* ncurses: add tmux terminfo

They're preferred terminal descriptions for tmux, with additional support to
some special characters and italic fonts. More info can be found at:
https://github.com/tmux/tmux/wiki/FAQ

Fixes: FS#3404

Signed-off-by: Jitao Lu <dianlujitao@gmail.com>

* ncurses: update to 6.3

release notes: https://invisible-island.net/ncurses/announce-6.3.html

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>

Co-authored-by: Jitao Lu <dianlujitao@gmail.com>
Co-authored-by: Huangbin Zhan <zhanhb88@gmail.com>
2022-03-21 14:11:03 +08:00
Beginner
c0491fe7aa
kernel: bump 5.10 to 5.10.107 (#9105)
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-03-21 14:10:43 +08:00
JoseCoW
c672ca8ab3
kernel: bump 5.4 to 5.4.186 (#9107)
Signed-off-by: JoseCoW <88561480+JoseCoW@users.noreply.github.com>
2022-03-21 11:16:37 +08:00
Beginner
0525218347
kernel: bump 5.15 to 5.15.30 (#9100)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-03-20 13:01:34 +08:00
Beginner
3d9022f163
kernel: bump 5.10 to 5.10.106 (#9101)
* kernel: bump 5.10 to 5.10.105

Updated default config with new sym (CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY=y).

Manually rebased:
    generic/hack-5.10/220-arm-gc_sections.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.10 to 5.10.106

All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-03-20 13:01:21 +08:00
Beginner
21c5e89a4f
r8125: bump to 9.008.00 (#9092)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-19 19:43:51 +08:00
JoseCoW
29c2daa886
net: ethernet:drop duplicate patches (#9098)
重复的如下:

ee9e153105/target/linux/generic/backport-5.10/610-v5.13-54-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L3-L10)

a5d4d89136/target/linux/generic/pending-5.10/701-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L3-L10)

---

ee9e153105/target/linux/generic/backport-5.10/610-v5.13-54-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L11-L22)

a5d4d89136/target/linux/generic/pending-5.10/701-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L11-L22)

---

ee9e153105/target/linux/generic/backport-5.10/610-v5.13-54-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L23-L37)

a5d4d89136/target/linux/generic/pending-5.10/701-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L23-L37)

---

ee9e153105/target/linux/generic/backport-5.10/610-v5.13-54-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L68-L77)

a5d4d89136/target/linux/generic/pending-5.10/701-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L38-L47)

---

ee9e153105/target/linux/generic/backport-5.10/610-v5.13-54-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L78-L95)

a5d4d89136/target/linux/generic/pending-5.10/701-net-ethernet-mtk_eth_soc-add-ipv6-flow-offloading-support.patch (L48-L65)
2022-03-19 19:43:16 +08:00
libinanshu
bcd68eb73f
Fix ntfs3-oot hash value (#9084) 2022-03-18 09:44:08 +08:00
lean
eadcd3bf15 kernel: fix 5.10 ipv6-flow-offloading patch 2022-03-17 23:22:33 +08:00
JoseCoW
a44076d63c
Fix offset for some patches of kernel-5.4 (#9085) 2022-03-17 23:12:46 +08:00
aakkll
f92cfbbd3e
kernel: bump 5.15 to 5.15.29 (#9078)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-03-17 16:02:27 +08:00
JoseCoW
f684871135
kernel: bump 5.4 to 5.4.185 (#9080)
* kernel: bump 5.4 to 5.4.184

* kernel: bump 5.4 to 5.4.185
2022-03-17 16:01:57 +08:00
breakings
62d205a746
openssl: bump to 1.1.1n (#9079)
This is a bugfix release. Changelog:

  *) Fixed a bug in the BN_mod_sqrt() function that can cause it to loop
     forever for non-prime moduli. (CVE-2022-0778)

  *) Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK
     (RFC 5489) to the list of ciphersuites providing Perfect Forward
     Secrecy as required by SECLEVEL >= 3.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>

Co-authored-by: Martin Schiller <ms@dev.tdt.de>
2022-03-17 16:01:43 +08:00
AmadeusGhost
d2b51b86ac ipq806x: SURF G-NAT200: enable nss support 2022-03-17 10:38:11 +08:00
Martin Schiller
14dec1662c openssl: bump to 1.1.1n
This is a bugfix release. Changelog:

  *) Fixed a bug in the BN_mod_sqrt() function that can cause it to loop
     forever for non-prime moduli. (CVE-2022-0778)

  *) Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK
     (RFC 5489) to the list of ciphersuites providing Perfect Forward
     Secrecy as required by SECLEVEL >= 3.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2022-03-17 10:35:35 +08:00
lean
94888557b3 ath10k-ct: refresh patches for backport 5.10 2022-03-16 20:31:06 +08:00
lean
f54f20cda0 ath10k-ct: update version to fix DFS for VHT160 2022-03-16 20:12:59 +08:00
lean
a5d4d89136 net: ethernet: mtk_eth_soc: add ipv6 flow offload support 2022-03-16 13:37:25 +08:00
lean
9a383de4af ramips: add support for OrayBox X3A 2022-03-16 13:32:29 +08:00
lean
db50d6e23f ipq806x: remove 5.10 patches 2022-03-16 01:50:37 +08:00
lean
a96390e2e7 kernel: backport fix for initializing skb->cb in the bridge code to 5.4 2022-03-16 01:40:05 +08:00
lean
3bd126860b linux-firmware: Update to version 20220209 2022-03-16 01:38:21 +08:00
lean
fd400b80ab kernel: kmod-fs-virtiofs: add Virtiofs filesystem support 2022-03-16 01:25:20 +08:00
lean
c9da824ac8 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-03-14 14:45:28 +08:00
lean
98d59732a1 mediatek: add mt7986b (Filogic 830) init support 2022-03-14 14:45:07 +08:00
Beginner
390145de88
kernel: bump 5.10 to 5.10.104 (#9036)
All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-03-14 14:36:21 +08:00
google-you-ok?
608b9d15b6
rockchip:fix nanopi-r4s mac address (#9059)
* Update 02_network

* Update 007-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch

* Update 007-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch

* Update 010-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch
2022-03-14 14:03:39 +08:00
Tianling Shen
b44fe03968
kernel/modules: add kmod-inet-diag package (#9066)
Add option to compile kmod-inet-diag, support for INET (TCP, DCCP, etc)
socket monitoring interface used by native Linux tools such as ss.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-14 14:01:57 +08:00
lean
d4ac948b46 x86: backport Intel I225-V (Stepping B3) driver from 5.15 to 5.4 2022-03-12 15:29:20 +08:00
lean
f585832ebb Version update to R22.3.13 2022-03-12 15:27:10 +08:00
lean
bbde8efa10 kernel: fix tty driver missing function for kernel 5.15 2022-03-12 01:43:09 +08:00
lean
c78e255f56 kernel: fix 5.15.28 patch error 2022-03-12 01:41:16 +08:00
aakkll
eafca6ea73
kernel: bump 5.15 to 5.15.28 (#9053)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-03-12 01:09:33 +08:00
Felix Fietkau
7586b4b308 build: change PYTHON to python3
On recent macOS, /usr/bin/python3 is a wrapper that finds the right python executable
It checks argv[0] to determine if python2 or python3 should be called. Always execute
it as python3 to ensure it calls the right version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-03-10 08:56:14 +08:00
lean
bd965b8708 rockchip: add ondemond gov 2022-03-09 20:46:12 +08:00
lean
038ab6255d rockchip: improver usb wifi detect for Ryan 2022-03-09 19:08:47 +08:00
lean
7af03c8483 rockchip: fix patch miss typo 2022-03-09 17:36:13 +08:00
lean
1c8e6f658e Revert "Revert "r8152: drop patch (#8455)" (#9034)"
This reverts commit 4c659ce3c0.
2022-03-09 17:27:28 +08:00
aakkll
c82ca10450
kernel: bump 5.15 to 5.15.27 (#9035)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-03-09 16:02:17 +08:00
jimjimbco
4c659ce3c0
Revert "r8152: drop patch (#8455)" (#9034)
This reverts commit 252bd55b5f.
2022-03-09 13:12:15 +08:00
zxlhhyccc
937e5a4a09
luci-app-ipsec-server: adapter luci-theme-openwrt-2020 theme (#9021) 2022-03-08 11:21:35 +08:00
lean
0cc907daf4 pacakge: add luci-app-ipsec-server 2022-03-07 20:29:29 +08:00
lean
a9bc7fad5b rockchip: default switch kernel to 5.15 2022-03-06 23:26:30 +08:00
lean
bb42d6d224 kernel:fix module_supported_device macro for kernel 5.15 2022-03-06 23:22:42 +08:00
google-you-ok?
e7d9312102
uboot-rockchip: Fix doornet1dts (#9003)
* uboot-rockchip: Fix doornet1dts

The dts refers to the official website uboot startup parameters
`arch/arm/mach-rockchip/rk3328/rk3328.c`---Fix boot order parameters,It is helpful for other devices to start emmc and sd normally

* Update 104-rockchip-rk3328-Add-support-for-EmbedFire-DoorNet1.patch
2022-03-05 10:10:45 +08:00
lean
4a8985e5e8 automount: use ntfs3-mount replace of antfs-mount 2022-03-04 13:11:22 +08:00
lean
29884ccce1 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-03-04 13:09:52 +08:00
Rui Salvaterra
0f1905de35 kernel: bump 5.10 to 5.10.103
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-03-03 16:23:21 +00:00
google-you-ok?
7a988e46cf
rockchip:fix doornet device parsing error resulting in missing compilation (#8994)
* Update armv8.mk

* rockchip:fix device tree custom parsing error

* rockchip:fix device tree custom parsing error

* rockchip:add doornet1-add-rk3328-dmc-relate-node

* rockchip:fix device tree custom parsing error

* rockchip:refresh add device dtb configuration

* Add files via upload

* rockchip:add 1.5 second delay mode for ethernet

* rockchip:add 1.5 second delay mode for ethernet

* Update 205-rockchip-rk3399-Add-support-for-EmbedFire-DoorNet2.patch

* Update 205-rockchip-rk3399-Add-support-for-EmbedFire-DoorNet2.patch

* Update armv8.mk

* Delete 808-arm64-dts-doornet1-add-rk3328-dmc-relate-node.patch

* Update armv8.mk
2022-03-04 00:06:46 +08:00
SiYao Mo
05e206921e rockchip: missing config to use r8168 2022-03-03 15:31:03 +00:00
Rosen Penev
f854419656 tools/fakeroot: update to 1.27
Remove macOS stuff. Upstream has fixed it in the same way.

Add SOL_TCP define. Taken from elsewhere in the code.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:13:57 +00:00
Felix Fietkau
737959d3b7 tools/fakeroot: fix unresolved symbols on arm64 macOS
The $INODE64 symbol variants are not present, since the base system
always uses 64-bit file offsets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-03-03 11:13:48 +00:00
Sergey V. Lobanov
2fcd8db668 tools/fakeroot: fix build on MacOS arm64
Added patch for MacOS without 32 bit inodes support
(__DARWIN_ONLY_64_BIT_INO_T is true)

This patch based on discussion https://github.com/archmac/bootstrap/issues/4

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-03-03 11:13:27 +00:00
Felix Fietkau
2c5d9f0a55 tools/fakeroot: explicitly pass CPP variable
For some reason, the generated configure script fails to properly set up
the internal preprocessor command variable, causing the host OS check for
Darwin to fail after the last update.
Explicitly setting CPP fixes this issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-03-03 11:13:20 +00:00
Felix Fietkau
796fd9c0d7 tools/fakeroot: fix build error on macOS
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-03-03 11:13:11 +00:00
Rosen Penev
0d27397119 tools/fakeroot: update to 1.26
Remove upstreamed patches. Refresh other.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:12:42 +00:00
Rosen Penev
a2846e5838 tools/tar: update to 1.34
Refresh patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:09:43 +00:00
Rosen Penev
4ff4c1f5fd tools/mtools: update to 4.0.37
No changelog is available.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:08:35 +00:00
Rosen Penev
dc49e9cf9d tools/mtools: update to 4.0.35
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:08:28 +00:00
Rosen Penev
7d4741a5a3 tools/findutils: update to 4.9.0
Add compilation fix for Ubuntu 20.04. Provided by upstream maintainer:

https://github.com/openwrt/packages/issues/17912#issuecomment-1046726426

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:07:21 +00:00
Kevin Darbyshire-Bryant
da2fb9c546 tools/findutils: fix build on macos
Use same fix as homebrew:

https://github.com/Homebrew/homebrew-core/pull/69761

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-03-03 11:07:13 +00:00
Rosen Penev
56660f4cb9 tools/findutils: update to 4.8.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:07:05 +00:00
Rosen Penev
648b653d66 tools/e2fsprogs: update to 1.46.4
Refresh patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:06:23 +00:00
Rosen Penev
2a0cff821f tools/e2fsprogs: update to 1.46.2
Fix wrong FPIC flag to fix compilation under sparc64

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:06:16 +00:00
Rosen Penev
0c75a8aaec tools/bison: update to 3.8.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:04:47 +00:00
Rosen Penev
1b8c19d95a tools/bison: update to 3.8.1
Remove upstreamed patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:04:39 +00:00
Rosen Penev
cc72381156 tools/bison: update to 3.7.6
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-03 11:04:32 +00:00
Paul Spooren
ba003bdf27 dante: move to packages.git
Rather than maintaining it in core, move it to packages.git where it's
maintained by a community.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-03-03 11:01:25 +00:00
msylgj
bf8516cf5d r8168: add support for kernel over 5.10 2022-03-03 10:19:42 +00:00
Rosen Penev
31ab807088 tools/expat: update to 2.4.6
Switched to CMake for faster compilation and greater parallel
friendliness.

Added CMake options from the packages feed.

This release fixes various CVEs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-02 17:03:15 +00:00
Rosen Penev
66d5921a52 tools/cmake: update to 3.22.2
Mostly random Python 3.10 fixes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-02 16:59:49 +00:00
Rosen Penev
237fe5bf85 tools/ccache: update to 4.5.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-02 16:59:37 +00:00
Rosen Penev
9ae0f60bbf tools/autoconf-archive: update to 2021.02.19
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-02 16:59:10 +00:00
Beginner-Go
50ad8ab612 kernel: bump 5.15 to 5.15.26
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-03-02 16:57:21 +00:00
Florian Eckert
971d60ec50 ipset: update to 7.15
Update to the latest upstream version. In this version there is a new
tool with which you can convert ipsets into nftables sets. Since we are
now using nftables as default firewall, this could be a useful tool for
porting ipsets to nftables sets.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-03-02 16:23:51 +00:00
John Audia
2f2e7bec8e kernel: bump 5.10 to 5.10.102
Removed upstreamed:
	bcm4908/patches-5.10/180-i2c-brcmstb-fix-support-for-DSL-and-CM-variants.patch[1]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.102&id=f333c1916fd6b55900029bf8f918cc00009e2111

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>
2022-03-02 16:22:07 +00:00
John Audia
fbd027c5da kernel: bump 5.10 to 5.10.101
Removed upstreamed:
  pending-5.10/841-USB-serial-option-add-ZTE-MF286D-modem.patch[1]
  bcm27xx/950-0592-drm-vc4-Allow-DBLCLK-modes-even-if-horz-timing-is-od.patch[2]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.101&id=7113440a36c741efd7c76e3d70b3634100120cdb
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.101&id=21c890ca8eaecea06cabb92be2a53a6f26f56383

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>
2022-03-02 16:21:51 +00:00
AmadeusGhost
4d5770a6cf ipq807x: zte mf269: optimize related code
Since this part will not be accepted by upstream.
2022-03-02 23:56:27 +08:00
AmadeusGhost
edbd8d2e98 ipq807x: drop all xiaomi devices support
我只是执行者,有问题请找 “Redmi ax6 机友会”(522966467)里面的群主
和陈超(269806631)等狗管理和伪君子反馈。

I'm just an executor. If you have any questions, please contact the
group owner and Chen Chao (269806631) management and hypocrites in
the "Redmi ax6 Friends Club" (522966467) for feedback.

私はただの遺言執行者です。ご不明な点がございましたら、グループのオ
ーナーである Chen Chao(269806631)や、「Redmi ax6 Friends Club」
(522966467)の他のマネージャーや偽善者にお問い合わせください。

Unanimous approval from the entire development team.

Ref: https://t.me/chenchao_rip/4

Cc: lean <coolsnowwolf@gmail.com>
Cc: asushugo <429632952@163.com>
CC: CN_SZTL <cnsztl@immortalwrt.org>
Cc: AmadeusGhost <amadeus@immortalwrt.org>
2022-03-02 23:35:16 +08:00
W_Y_CPP
e8cb010cec kernel: fix build for mt7621 with kernel 5.10 2022-03-01 18:21:12 +00:00
lean
20a437026a mt76: fix build with kernel 5.15 2022-03-01 23:04:58 +08:00
lean
68da7390fb rockchip: add workaroud for usb wlan up at firstboot 2022-03-01 22:44:19 +08:00
lean
caf69dd94b mt76: fix build with kernel 5.15 2022-03-01 19:37:04 +08:00
lean
5f0ddf4823 rockchip: switch kernel to 5.10 2022-03-01 19:36:08 +08:00
unifreq
71263b95a1
Fix 613-netfilter_optional_tcp_window_check.patch (#8970)
* Fixed a bug that could crash the kernel, and limit the value of the sysctl variable: net.netfilter.nf_conntrack_tcp_no_window_check to 0 or 1.

* Fix pending-5.15/613-netfilter_optional_tcp_window_check.patch
2022-03-01 11:07:38 +08:00
unifreq
2d15f51c44
Fixed a bug that could crash the kernel, and limit the value of the sysctl variable: net.netfilter.nf_conntrack_tcp_no_window_check to 0 or 1. (#8967) 2022-03-01 00:29:49 +08:00
W_Y_CPP
7e7f062de9 mtk-eip93: fix build error 2022-02-28 13:59:44 +00:00
Stijn Tintel
e7d20f5a4e firmware-utils: bump to git HEAD
002cfaf firmware-utils: fix compilation with macOS

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-02-28 13:53:12 +00:00
AmadeusGhost
da34b3a2fb Revert "rockchip:fix rk3399 build with kernel 5.15"
This reverts commit f449543c7f.
2022-02-28 12:39:50 +08:00
AmadeusGhost
3ff761aa6d Revert "rockchip: fix build rk3328 with kernel 5.15"
This reverts commit 60bd44abab.
Fixes: copied messy commit 2923e80 ("rockchip: add support for
FriendlyARM NanoPi NEO3")
2022-02-28 12:38:06 +08:00
AmadeusGhost
c4b18f8948 mtk-eip93: fixes download hash
Fixes: #8952
2022-02-28 12:25:52 +08:00
aakkll
6fc2927f14
libcryptopp: update to 8.5.0 (#8960)
Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2022-02-28 01:36:52 +08:00
Stijn Tintel
f6c30c9f9d firmware-utils: bump to git HEAD
706e9cc tplink-safeloader: support for Archer A6 v3 JP
  497726b firmware-utils: support checksum for AVM fritzbox wasp SOCs
  2ca6462 iptime-crc32: add support for AX8004M
  57d0e31 tplink-safeloader: TP-Link EAP615-Wall v1 support
  8a8da19 tplink-safeloader: add TL-WPA8631P v3 support
  eea4ee7 tplink-safeloader: add TP-Link Archer A9 v6 support

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-02-27 16:02:29 +00:00
breakings
dba822744b mbedtls: refresh patches 2022-02-27 07:11:59 +00:00
Christian Lamparter
96d010e808 firmware: intel-microcode: update to 20220207
Debians' changelog by Henrique de Moraes Holschuh <hmh@debian.org>:

* upstream changelog: new upstream datafile 20220207
    * Mitigates (*only* when loaded from UEFI firmware through the FIT)
      CVE-2021-0146, INTEL-SA-00528: VT-d privilege escalation through
      debug port, on Pentium, Celeron and Atom processors with signatures
      0x506c9, 0x506ca, 0x506f1, 0x706a1, 0x706a8
      https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/issues/57#issuecomment-1036363145
    * Mitigates CVE-2021-0127, INTEL-SA-00532: an unexpected code breakpoint
      may cause a system hang, on many processors.
    * Mitigates CVE-2021-0145, INTEL-SA-00561: information disclosure due
      to improper sanitization of shared resources (fast-store forward
      predictor), on many processors.
    * Mitigates CVE-2021-33120, INTEL-SA-00589: out-of-bounds read on some
      Atom Processors may allow information disclosure or denial of service
      via network access.
    * Fixes critical errata (functional issues) on many processors
    * Adds a MSR switch to enable RAPL filtering (default off, once enabled
      it can only be disabled by poweroff or reboot).  Useful to protect
      SGX and other threads from side-channel info leak.  Improves the
      mitigation for CVE-2020-8694, CVE-2020-8695, INTEL-SA-00389 on many
      processors.
    * Disables TSX in more processor models.
    * Fixes issue with WBINDV on multi-socket (server) systems which could
      cause resets and unpredictable system behavior.
    * Adds a MSR switch to 10th and 11th-gen (Ice Lake, Tiger Lake, Rocket
      Lake) processors, to control a fix for (hopefully rare) unpredictable
      processor behavior when HyperThreading is enabled.  This MSR switch
      is enabled by default on *server* processors.  On other processors,
      it needs to be explicitly enabled by an updated UEFI/BIOS (with added
      configuration logic).  An updated operating system kernel might also
      be able to enable it.  When enabled, this fix can impact performance.
    * Updated Microcodes:
      sig 0x000306f2, pf_mask 0x6f, 2021-08-11, rev 0x0049, size 38912
      sig 0x000306f4, pf_mask 0x80, 2021-05-24, rev 0x001a, size 23552
      sig 0x000406e3, pf_mask 0xc0, 2021-04-28, rev 0x00ec, size 105472
      sig 0x00050653, pf_mask 0x97, 2021-05-26, rev 0x100015c, size 34816
      sig 0x00050654, pf_mask 0xb7, 2021-06-16, rev 0x2006c0a, size 43008
      sig 0x00050656, pf_mask 0xbf, 2021-08-13, rev 0x400320a, size 35840
      sig 0x00050657, pf_mask 0xbf, 2021-08-13, rev 0x500320a, size 36864
      sig 0x0005065b, pf_mask 0xbf, 2021-06-04, rev 0x7002402, size 28672
      sig 0x00050663, pf_mask 0x10, 2021-06-12, rev 0x700001c, size 28672
      sig 0x00050664, pf_mask 0x10, 2021-06-12, rev 0xf00001a, size 27648
      sig 0x00050665, pf_mask 0x10, 2021-09-18, rev 0xe000014, size 23552
      sig 0x000506c9, pf_mask 0x03, 2021-05-10, rev 0x0046, size 17408
      sig 0x000506ca, pf_mask 0x03, 2021-05-10, rev 0x0024, size 16384
      sig 0x000506e3, pf_mask 0x36, 2021-04-29, rev 0x00ec, size 108544
      sig 0x000506f1, pf_mask 0x01, 2021-05-10, rev 0x0036, size 11264
      sig 0x000606a6, pf_mask 0x87, 2021-12-03, rev 0xd000331, size 291840
      sig 0x000706a1, pf_mask 0x01, 2021-05-10, rev 0x0038, size 74752
      sig 0x000706a8, pf_mask 0x01, 2021-05-10, rev 0x001c, size 75776
      sig 0x000706e5, pf_mask 0x80, 2021-05-26, rev 0x00a8, size 110592
      sig 0x000806a1, pf_mask 0x10, 2021-09-02, rev 0x002d, size 34816
      sig 0x000806c1, pf_mask 0x80, 2021-08-06, rev 0x009a, size 109568
      sig 0x000806c2, pf_mask 0xc2, 2021-07-16, rev 0x0022, size 96256
      sig 0x000806d1, pf_mask 0xc2, 2021-07-16, rev 0x003c, size 101376
      sig 0x000806e9, pf_mask 0x10, 2021-04-28, rev 0x00ec, size 104448
      sig 0x000806e9, pf_mask 0xc0, 2021-04-28, rev 0x00ec, size 104448
      sig 0x000806ea, pf_mask 0xc0, 2021-04-28, rev 0x00ec, size 103424
      sig 0x000806eb, pf_mask 0xd0, 2021-04-28, rev 0x00ec, size 104448
      sig 0x000806ec, pf_mask 0x94, 2021-04-28, rev 0x00ec, size 104448
      sig 0x00090661, pf_mask 0x01, 2021-09-21, rev 0x0015, size 20480
      sig 0x000906c0, pf_mask 0x01, 2021-08-09, rev 0x2400001f, size 20480
      sig 0x000906e9, pf_mask 0x2a, 2021-04-29, rev 0x00ec, size 106496
      sig 0x000906ea, pf_mask 0x22, 2021-04-28, rev 0x00ec, size 102400
      sig 0x000906eb, pf_mask 0x02, 2021-04-28, rev 0x00ec, size 104448
      sig 0x000906ec, pf_mask 0x22, 2021-04-28, rev 0x00ec, size 103424
      sig 0x000906ed, pf_mask 0x22, 2021-04-28, rev 0x00ec, size 103424
      sig 0x000a0652, pf_mask 0x20, 2021-04-28, rev 0x00ec, size 93184
      sig 0x000a0653, pf_mask 0x22, 2021-04-28, rev 0x00ec, size 94208
      sig 0x000a0655, pf_mask 0x22, 2021-04-28, rev 0x00ee, size 94208
      sig 0x000a0660, pf_mask 0x80, 2021-04-28, rev 0x00ea, size 94208
      sig 0x000a0661, pf_mask 0x80, 2021-04-29, rev 0x00ec, size 93184
      sig 0x000a0671, pf_mask 0x02, 2021-08-29, rev 0x0050, size 102400
    * Removed Microcodes:
      sig 0x00080664, pf_mask 0x01, 2021-02-17, rev 0xb00000f, size 130048
      sig 0x00080665, pf_mask 0x01, 2021-02-17, rev 0xb00000f, size 130048
  * update .gitignore and debian/.gitignore.
    Add some missing items from .gitignore and debian/.gitignore.
  * ucode-blacklist: do not late-load 0x406e3 and 0x506e3.
    When the BIOS microcode is older than revision 0x7f (and perhaps in some
    other cases as well), the latest microcode updates for 0x406e3 and
    0x506e3 must be applied using the early update method.  Otherwise, the
    system might hang.  Also: there must not be any other intermediate
    microcode update attempts [other than the one done by the BIOS itself],
    either.  It must go from the BIOS microcode update directly to the
    latest microcode update.
  * source: update symlinks to reflect id of the latest release, 20220207

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-02-27 06:27:32 +00:00
Tan Zien
3a1917b543 firmware: intel-microcode: update to 20210608
intel-microcode (3.20210608.2)

  * Correct INTEL-SA-00442 CVE id to CVE-2020-24489 in changelog and
    debian/changelog (3.20210608.1).

intel-microcode (3.20210608.1)

  * New upstream microcode datafile 20210608 (closes: #989615)
    * Implements mitigations for CVE-2020-24511 CVE-2020-24512
      (INTEL-SA-00464), information leakage through shared resources,
      and timing discrepancy sidechannels
    * Implements mitigations for CVE-2020-24513 (INTEL-SA-00465),
      Domain-bypass transient execution vulnerability in some Intel Atom
      Processors, affects Intel SGX.
    * Implements mitigations for CVE-2020-24489 (INTEL-SA-00442), Intel
      VT-d privilege escalation
    * Fixes critical errata on several processors
    * New Microcodes:
      sig 0x00050655, pf_mask 0xb7, 2018-11-16, rev 0x3000010, size 47104
      sig 0x000606a5, pf_mask 0x87, 2021-03-08, rev 0xc0002f0, size 283648
      sig 0x000606a6, pf_mask 0x87, 2021-04-25, rev 0xd0002a0, size 283648
      sig 0x00080664, pf_mask 0x01, 2021-02-17, rev 0xb00000f, size 130048
      sig 0x00080665, pf_mask 0x01, 2021-02-17, rev 0xb00000f, size 130048
      sig 0x000806c1, pf_mask 0x80, 2021-03-31, rev 0x0088, size 109568
      sig 0x000806c2, pf_mask 0xc2, 2021-04-07, rev 0x0016, size 94208
      sig 0x000806d1, pf_mask 0xc2, 2021-04-23, rev 0x002c, size 99328
      sig 0x00090661, pf_mask 0x01, 2021-02-04, rev 0x0011, size 19456
      sig 0x000906c0, pf_mask 0x01, 2021-03-23, rev 0x001d, size 19456
      sig 0x000a0671, pf_mask 0x02, 2021-04-11, rev 0x0040, size 100352
    * Updated Microcodes:
      sig 0x000306f2, pf_mask 0x6f, 2021-01-27, rev 0x0046, size 34816
      sig 0x000306f4, pf_mask 0x80, 2021-02-05, rev 0x0019, size 19456
      sig 0x000406e3, pf_mask 0xc0, 2021-01-25, rev 0x00ea, size 105472
      sig 0x000406f1, pf_mask 0xef, 2021-02-06, rev 0xb00003e, size 31744
      sig 0x00050653, pf_mask 0x97, 2021-03-08, rev 0x100015b, size 34816
      sig 0x00050654, pf_mask 0xb7, 2021-03-08, rev 0x2006b06, size 36864
      sig 0x00050656, pf_mask 0xbf, 2021-03-08, rev 0x4003102, size 30720
      sig 0x00050657, pf_mask 0xbf, 2021-03-08, rev 0x5003102, size 30720
      sig 0x0005065b, pf_mask 0xbf, 2021-04-23, rev 0x7002302, size 27648
      sig 0x00050663, pf_mask 0x10, 2021-02-04, rev 0x700001b, size 24576
      sig 0x00050664, pf_mask 0x10, 2021-02-04, rev 0xf000019, size 24576
      sig 0x00050665, pf_mask 0x10, 2021-02-04, rev 0xe000012, size 19456
      sig 0x000506c9, pf_mask 0x03, 2020-10-23, rev 0x0044, size 17408
      sig 0x000506ca, pf_mask 0x03, 2020-10-23, rev 0x0020, size 15360
      sig 0x000506e3, pf_mask 0x36, 2021-01-25, rev 0x00ea, size 105472
      sig 0x000506f1, pf_mask 0x01, 2020-10-23, rev 0x0034, size 11264
      sig 0x000706a1, pf_mask 0x01, 2020-10-23, rev 0x0036, size 74752
      sig 0x000706a8, pf_mask 0x01, 2020-10-23, rev 0x001a, size 75776
      sig 0x000706e5, pf_mask 0x80, 2020-11-01, rev 0x00a6, size 110592
      sig 0x000806a1, pf_mask 0x10, 2020-11-06, rev 0x002a, size 32768
      sig 0x000806e9, pf_mask 0x10, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000806e9, pf_mask 0xc0, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000806ea, pf_mask 0xc0, 2021-01-06, rev 0x00ea, size 103424
      sig 0x000806eb, pf_mask 0xd0, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000806ec, pf_mask 0x94, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000906e9, pf_mask 0x2a, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000906ea, pf_mask 0x22, 2021-01-05, rev 0x00ea, size 102400
      sig 0x000906eb, pf_mask 0x02, 2021-01-05, rev 0x00ea, size 104448
      sig 0x000906ec, pf_mask 0x22, 2021-01-05, rev 0x00ea, size 103424
      sig 0x000906ed, pf_mask 0x22, 2021-01-05, rev 0x00ea, size 103424
      sig 0x000a0652, pf_mask 0x20, 2021-02-07, rev 0x00ea, size 93184
      sig 0x000a0653, pf_mask 0x22, 2021-03-08, rev 0x00ea, size 94208
      sig 0x000a0655, pf_mask 0x22, 2021-03-08, rev 0x00ec, size 94208
      sig 0x000a0660, pf_mask 0x80, 2020-12-08, rev 0x00e8, size 94208
      sig 0x000a0661, pf_mask 0x80, 2021-02-07, rev 0x00ea, size 93184
  * source: update symlinks to reflect id of the latest release, 20210608

intel-microcode (3.20210216.1)

  * New upstream microcode datafile 20210216
    * Mitigates an issue on Skylake Server (H0/M0/U0), Xeon-D 21xx,
      and Cascade Lake Server (B0/B1) when using an active JTAG
      agent like In Target Probe (ITP), Direct Connect Interface
      (DCI) or a Baseboard Management Controller (BMC) to take the
      CPU JTAG/TAP out of reset and then returning it to reset.
    * This issue is related to the INTEL-SA-00381 mitigation.
    * Updated Microcodes:
      sig 0x00050654, pf_mask 0xb7, 2020-12-31, rev 0x2006a0a, size 36864
      sig 0x00050656, pf_mask 0xbf, 2020-12-31, rev 0x4003006, size 53248
      sig 0x00050657, pf_mask 0xbf, 2020-12-31, rev 0x5003006, size 53248
  * source: update symlinks to reflect id of the latest release, 20210216

intel-microcode (3.20201118.1)

  * New upstream microcode datafile 20201118
    * Removes a faulty microcode update from release 2020-11-10 for Tiger Lake
      processors.  Note that Debian already had removed this specific falty
      microcode update on the 3.20201110.1 release
    * Add a microcode update for the Pentium Silver N/J5xxx and Celeron
      N/J4xxx which didn't make it to release 20201110, fixing security issues
      (INTEL-SA-00381, INTEL-SA-00389)
    * Updated Microcodes:
      sig 0x000706a1, pf_mask 0x01, 2020-06-09, rev 0x0034, size 74752
    * Removed Microcodes:
      sig 0x000806c1, pf_mask 0x80, 2020-10-02, rev 0x0068, size 107520

intel-microcode (3.20201110.1)

  * New upstream microcode datafile 20201110 (closes: #974533)
    * Implements mitigation for CVE-2020-8696 and CVE-2020-8698,
      aka INTEL-SA-00381: AVX register information leakage;
      Fast-Forward store predictor information leakage
    * Implements mitigation for CVE-2020-8695, Intel SGX information
      disclosure via RAPL, aka INTEL-SA-00389
    * Fixes critical errata on several processor models
    * Reintroduces SRBDS mitigations(CVE-2020-0543, INTEL-SA-00320)
      for Skylake-U/Y, Skylake Xeon E3
    * New Microcodes
      sig 0x0005065b, pf_mask 0xbf, 2020-08-20, rev 0x700001e, size 27648
      sig 0x000806a1, pf_mask 0x10, 2020-06-26, rev 0x0028, size 32768
      sig 0x000806c1, pf_mask 0x80, 2020-10-02, rev 0x0068, size 107520
      sig 0x000a0652, pf_mask 0x20, 2020-07-08, rev 0x00e0, size 93184
      sig 0x000a0653, pf_mask 0x22, 2020-07-08, rev 0x00e0, size 94208
      sig 0x000a0655, pf_mask 0x22, 2020-07-08, rev 0x00e0, size 93184
      sig 0x000a0661, pf_mask 0x80, 2020-07-02, rev 0x00e0, size 93184
    * Updated Microcodes
      sig 0x000306f2, pf_mask 0x6f, 2020-05-27, rev 0x0044, size 34816
      sig 0x000406e3, pf_mask 0xc0, 2020-07-14, rev 0x00e2, size 105472
      sig 0x00050653, pf_mask 0x97, 2020-06-18, rev 0x1000159, size 33792
      sig 0x00050654, pf_mask 0xb7, 2020-06-16, rev 0x2006a08, size 35840
      sig 0x00050656, pf_mask 0xbf, 2020-06-18, rev 0x4003003, size 52224
      sig 0x00050657, pf_mask 0xbf, 2020-06-18, rev 0x5003003, size 52224
      sig 0x000506c9, pf_mask 0x03, 2020-02-27, rev 0x0040, size 17408
      sig 0x000506ca, pf_mask 0x03, 2020-02-27, rev 0x001e, size 15360
      sig 0x000506e3, pf_mask 0x36, 2020-07-14, rev 0x00e2, size 105472
      sig 0x000706a8, pf_mask 0x01, 2020-06-09, rev 0x0018, size 75776
      sig 0x000706e5, pf_mask 0x80, 2020-07-30, rev 0x00a0, size 109568
      sig 0x000806e9, pf_mask 0x10, 2020-05-27, rev 0x00de, size 104448
      sig 0x000806e9, pf_mask 0xc0, 2020-05-27, rev 0x00de, size 104448
      sig 0x000806ea, pf_mask 0xc0, 2020-06-17, rev 0x00e0, size 104448
      sig 0x000806eb, pf_mask 0xd0, 2020-06-03, rev 0x00de, size 104448
      sig 0x000806ec, pf_mask 0x94, 2020-05-18, rev 0x00de, size 104448
      sig 0x000906e9, pf_mask 0x2a, 2020-05-26, rev 0x00de, size 104448
      sig 0x000906ea, pf_mask 0x22, 2020-05-25, rev 0x00de, size 103424
      sig 0x000906eb, pf_mask 0x02, 2020-05-25, rev 0x00de, size 104448
      sig 0x000906ec, pf_mask 0x22, 2020-06-03, rev 0x00de, size 103424
      sig 0x000906ed, pf_mask 0x22, 2020-05-24, rev 0x00de, size 103424
      sig 0x000a0660, pf_mask 0x80, 2020-07-08, rev 0x00e0, size 94208
  * 0x806c1: remove the new Tiger Lake update: causes hang on cold/warm boot
    https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/issues/44
    INTEL-SA-00381 AND INTEL-SA-00389 MITIGATIONS ARE THEREFORE NOT INSTALLED
    FOR 0x806c1 TIGER LAKE PROCESSORS by this package update.  Contact your
    system vendor for a firmware update, or wait fo a possible fix in a future
    Intel microcode release.
  * source: update symlinks to reflect id of the latest release, 20201110
  * source: ship new upstream documentation (security.md, releasenote.md)

Signed-off-by: Tan Zien <nabsdh9@gmail.com>
[used different .tar.xz source, but with the same content]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-02-27 06:27:24 +00:00
Lucian Cristian
0250a1e604 mbedtls: update to 2.28.0 LTS branch
<https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.0>
"Mbed TLS 2.28 is a long-time support branch.
It will be supported with bug-fixes and security
fixes until end of 2024."

<https://github.com/ARMmbed/mbedtls/blob/development/BRANCHES.md>
"Currently, the only supported LTS branch is: mbedtls-2.28.
For a short time we also have the previous LTS, which has
recently ended its support period, mbedtls-2.16.
This branch will move into the archive namespace around the
time of the next release."

this will also add support for uacme ualpn support.

size changes
221586 libmbedtls12_2.28.0-1_mips_24kc.ipk
182742 libmbedtls12_2.16.12-1_mips_24kc.ipk

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(remark about 2.16's EOS, slightly reworded)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-02-27 06:25:36 +00:00
lean
a927c5679a kernel: enable Marvell FastLinQ 41xxx SR-IOV 2022-02-27 13:31:25 +08:00
lean
9b1a3e1cf8 kernel: add Marvell FastLinQ 41xxx 10/25/40/100Gb Ethernet NIC device support 2022-02-27 12:34:43 +08:00
Beginner
98375d3b03
toolchain/gdb: Update to version 11.2 (#8955)
* toolchain: gdb: Update to version 11.1

The removed patch was already applied upstream.

gdb now mandatory depends on gmp, tell configure where to find it
explicitly. We already build gmp in the tools directory for gcc. Also
make it use mpfr and mpc as we also build both of them.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: gdb: Update to version 11.2

This is a minor corrective release over GDB 11.1, fixing the following issues:
* PR sim/28302 (gdb fails to build with glibc 2.34)
* PR build/28318 (std::thread support configure check does not use CXX_DIALECT)
* PR gdb/28405 (arm-none-eabi: internal-error: ptid_t remote_target::select_thread_for_ambiguous_stop_reply(const target_waitstatus*): Assertion `first_resumed_thread != nullptr' failed)
* PR tui/28483 ([gdb/tui] breakpoint creation not displayed)
* PR build/28555 (uclibc compile failure since commit 4655f8509fd44e6efabefa373650d9982ff37fd6)
* PR rust/28637 (Rust characters will be encoded using DW_ATE_UTF)
* PR gdb/28758 (GDB 11 doesn't work correctly on binaries with a SHT_RELR (.relr.dyn) section)
* PR gdb/28785 (Support SHT_RELR (.relr.dyn) section)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-27 01:50:24 +08:00
Beginner
a36b8f395c
gdb: Update gdb to version 11.2 (#8954)
* gdb: update to 10.2

Replace some OpenWrt patches with openembedded ones for easier
maintainability. Remove several outdated ones as well.

Replace PKG_RELEASE with AUTORELEASE to avoid manual bumps.

Remove !arc dependency as it is supported upstream now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* gdb: Update to version 11.1

GDB 11.1 now depends on gmp.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* gdb: Add explicit patch to libgmp

Without giving the patch gdb does not compile on Arch Linux.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* gdb: Make only full gdb depend on libgmp

libgmp is only needed for the full gdb and not for the gdbserver
application.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* gdb: Update gdb to version 11.2

This is a minor corrective release over GDB 11.1, fixing the following issues:
* PR sim/28302 (gdb fails to build with glibc 2.34)
* PR build/28318 (std::thread support configure check does not use CXX_DIALECT)
* PR gdb/28405 (arm-none-eabi: internal-error: ptid_t remote_target::select_thread_for_ambiguous_stop_reply(const target_waitstatus*): Assertion `first_resumed_thread != nullptr' failed)
* PR tui/28483 ([gdb/tui] breakpoint creation not displayed)
* PR build/28555 (uclibc compile failure since commit 4655f8509fd44e6efabefa373650d9982ff37fd6)
* PR rust/28637 (Rust characters will be encoded using DW_ATE_UTF)
* PR gdb/28758 (GDB 11 doesn't work correctly on binaries with a SHT_RELR (.relr.dyn) section)
* PR gdb/28785 (Support SHT_RELR (.relr.dyn) section)

The sizes of the ipk changed on mips 24Kc like this:
2285775 gdb_11.1-3_mips_24kc.ipk
2287441 gdb_11.2-4_mips_24kc.ipk
191828 gdbserver_11.1-3_mips_24kc.ipk
191811 gdbserver_11.2-4_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Rosen Penev <rosenp@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-27 01:50:07 +08:00
Beginner
a19b93409b
util-linux: sync upstream (#8953)
* util-linux: Add taskset

This adds the taskset application from util Linux.
It is already built, but not packaged yet.

Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>

* util-linux: add lslocks

This change adds the "lslocks" utility from util-linux.

Signed-off-by: Roman Azarenko <roman.azarenko@iopsys.eu>

* util-linux: Do not build raw any more.

The man page of the raw tool does not build because the disk-utils/raw.8
file is missing. It looks like it should be in the tar.xz file we
download, but it is missing.

We do not package the raw tool, so this is not a problem.

This fixes the following build error:
No rule to make target 'disk-utils/raw.8', needed by 'all-am'.  Stop.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* util-linux: Update to version 2.37.3

This release fixes two security mount(8) and umount(8) issues:

CVE-2021-3996
    Improper UID check in libmount allows an unprivileged user to unmount FUSE
    filesystems of users with similar UID.

CVE-2021-3995
    This issue is related to parsing the /proc/self/mountinfo file allows an
    unprivileged user to unmount other user's filesystems that are either
    world-writable themselves or mounted in a world-writable directory.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* util-linux: package ipcs command

Add a package for util-linux' ipcs command, to show information about
System V inter-process communication facilities.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Co-authored-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Co-authored-by: Roman Azarenko <roman.azarenko@iopsys.eu>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-02-27 01:35:53 +08:00
Hauke Mehrtens
016fee65f6 strace: Update to version 5.16
The sizes of the ipk changed on MIPS 24Kc like this:
289764 strace_5.14-1_mips_24kc.ipk
310899 strace_5.16-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-26 17:26:24 +00:00
Hauke Mehrtens
25db0a999b strace: Update to version 5.14
Explicitly deactivate libselinux, otherwise we get a hard dependency to
libselinux.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-26 17:26:17 +00:00
Rosen Penev
a4faa703b9 strace: remove code coverage makefile var
It relies on a custom ax_code_coverage.m4 file included with strace.
Unfortunately, this conflicts with the one included with
autoconf-macros. Instead of creating a huge patch to fix it, just remove
the variable as code coverage is not used here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-26 17:26:10 +00:00
Beginner-Go
4a4649e04a tools/cmake: sync upstream 2022-02-26 17:14:39 +00:00
Rosen Penev
1874e4100b tools/cmake: add MAKE config variable
Makes sure that Ninja from staging_dir is used and nowhere else.

Reported by reproducible builds project. Builds have been failing ever
since tools/cmake started using Ninja.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-26 16:10:51 +00:00
Rosen Penev
9e37c1c701 tools/meson: update to 0.61.2
Seems to be minor bugfixes with Cygwin and Windows.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-26 16:10:01 +00:00
Rosen Penev
e5209944e1 tools/meson: update to 0.61.1
Changelog:

backend_startup_project
Add a man page backend to refman
extract_objects() supports generated sources
Python 3.6 support will be dropped in the next release
Warning if check kwarg of run_command is missing
meson rewrite can modify extra_files
meson rewrite target <target> info outputs target's extra_files
Visual Studio 2022 backend
Support for CMake <3.14 is now deprecated for CMake subprojects
Added support for sccache
install_symlink function

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-26 16:09:31 +00:00
Petr Štetiar
d652a2f370 usbmode: update to version 2022-02-24
* usbmode: add config #0 and delay before actual config

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-02-26 16:07:31 +00:00
Vladislav Grigoryev
830009b72d jsonfilter: update makefile url
Specify URL as PKG_SOURCE_URL in the jsonfilter Makefile.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2022-02-26 16:06:57 +00:00
Eneas U de Queiroz
c98027d936 scripts/diffconfig.sh: ensure config/conf is built
diffconfig.sh runs ./scripts/config/conf, but it does not get built
with 'make {menu,x,n}config.  Call 'make ./scripts/config/conf' to
ensure it's been built before running it, aborting in case of failure.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>[removed Fixes: due revert]
2022-02-26 16:06:10 +00:00
lean
2923e808b2 rockchip: add support for FriendlyARM NanoPi NEO3 2022-02-26 21:03:54 +08:00
lean
f449543c7f rockchip:fix rk3399 build with kernel 5.15 2022-02-26 19:09:49 +08:00
lean
1c96c4ace0 mac80211: fix complie with kernel 5.15 2022-02-26 19:08:42 +08:00
Rosen Penev
3ea7ae24c6 tools/quilt: update to 0.67
- Call pager with original LANG environment variable
  - Consistently complain early if no series file is found
  - Fix handling of symbolic links by several commands
  - Tighten the patch format parsing
  - Reuse the shell (performance)
  - Document the series file format further
  - Document that quilt loads /etc/quilt.quiltrc
  - configure: Make stat configurable
  - series: Minor optimizations
  - setup: Don't obey the settings of any englobing .pc
  - setup: Default to fast mode
  - quilt.el: Fix documentation of quilt-pc-directory
  - quilt.el: Load /etc/quilt.quiltrc if ~/.quiltrc doesn't exist
  - quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is set

Refresh patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[add changelog]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-26 05:48:55 +00:00
Jax Jiang
dd0b95dbde x86: grub2: search for the "kernel" filesystem on all disks
Previously, grub2 was hardcoded to always look on "hd0" for the
kernel.

This works well when the system only had a single disk.
But if there was a second disk/stick present, it may have look
on the wrong drive because of enumeration races.

This patch utilizes grub2 search function to look for a filesystem
with the label "kernel". This works thanks to existing setup in
scripts/gen_image_generic.sh. Which sets the "kernel" label on
both the fat and ext4 filesystem variants.

Signed-off-by: Jax Jiang <jax.jiang.007@gmail.com>
Suggested-by: Alberto Bursi <bobafetthotmail@gmail.com> (MX100 WA)
(word wrapped, slightly rewritten commit message, removed MX100 WA)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-02-26 05:46:11 +00:00
Beginner-Go
a61a59795b Revert "grub: x86 efi add search module for better find boot partition on multiple disk"
This reverts commit 8b97425415.
2022-02-26 05:45:54 +00:00
W_Y_CPP
77251e963f kernel/rtl8821cu: update to 2021-11-14 2022-02-26 05:29:06 +00:00
lean
71d7ad88c5 ksmbd: bump version 2022-02-25 23:37:37 +08:00
lean
35ae8c152e Revert "base-file: remove password aging feature form /etc/shadow"
This reverts commit ae7f2dbf40.
2022-02-25 23:17:10 +08:00
lean
fd9249dacb x86: switch to kernel 5.15 2022-02-25 18:16:18 +08:00
lean
020b3d2c64 kernel:add support shortcut-fe for 5.15 2022-02-25 18:15:14 +08:00
lean
60bd44abab rockchip: fix build rk3328 with kernel 5.15 2022-02-25 17:57:15 +08:00
lean
8512311f80 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-02-25 17:45:57 +08:00
lean
7514169118 kernel: fix conntrack multiple registrant 2022-02-25 17:45:50 +08:00
AmadeusGhost
eb2644d09a rockchip: disable unsupported devices by default
Since users only want to use the latest test kernel,
disable unverifiable devices to compile properly.

Closed: #8934
2022-02-25 16:08:20 +08:00
Rucke Teg
ae7f2dbf40 base-file: remove password aging feature form /etc/shadow
In the default shadow file, as visible in the failsafe mode, the user
root has value of `0` set in  the 3rd field, the date of last password
change. This setting means that the password needs to be changed the
next time the user will log in the system. `dropbear` server is ignoring
this setting but `openssh-server` tries to enforce it and fails in the
failsafe mode because the rootfs is R/O.

Disable the password aging feature for user root by setting the 3rd
filed empty.

Signed-off-by: Rucke Teg <rucketeg@protonmail.com>
2022-02-24 17:18:43 +00:00
Paul Spooren
aa02426e64 tools: use https for bc mirrors
All mirrors offer encrypted downloads, use it.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-24 17:18:35 +00:00
Petr Štetiar
901e5f17ee Revert "scripts/diffconfig.sh: ensure config/conf is built"
This reverts commit c0849c1d9c17ba96a37b67363b5551c065e9f50d as it seems
to introduce regression in config.buildinfo files produced at least by
buildbots:

 $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2
 make[3]: Entering directory '/builder/shared-workdir/build'
 make[3]: Leaving directory '/builder/shared-workdir/build'

References: https://github.com/openwrt/openwrt/issues/9297#issuecomment-1049719381
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-02-24 17:18:24 +00:00
JoseCoW
a430d48900
kernel: bump 5.15 to 5.15.25 (#8929) 2022-02-24 17:55:56 +08:00
AmadeusGhost
2788b735c3 rockchip: add basic kernel 5.15 support 2022-02-24 11:24:27 +08:00
AmadeusGhost
9eb5e1cd47 mtk-eip93: drop local source code 2022-02-24 11:21:35 +08:00
AmadeusGhost
888d463137 gitignore: sync upstream source 2022-02-24 11:20:06 +08:00
Chen Minqiang
29d4ee71ed ramips: 5.10: ralink-eth support mt7621
Fixes: #8925

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2022-02-24 11:18:18 +08:00
Petr Štetiar
9c7d8a7542 wolfssl: fix API breakage of SSL_get_verify_result
Backport fix for API breakage of SSL_get_verify_result() introduced in
v5.1.1-stable.  In v4.8.1-stable SSL_get_verify_result() used to return
X509_V_OK when used on LE powered sites or other sites utilizing
relaxed/alternative cert chain validation feature. After an update to
v5.1.1-stable that API calls started returning X509_V_ERR_INVALID_CA
error and thus rendered all such connection attempts imposible:

 $ docker run -it openwrt/rootfs:x86_64-21.02.2 sh -c "wget https://letsencrypt.org"
 Downloading 'https://letsencrypt.org'
 Connecting to 18.159.128.50:443
 Connection error: Invalid SSL certificate

Fixes: #9283
References: https://github.com/wolfSSL/wolfssl/issues/4879
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-02-23 16:46:15 +00:00
Eneas U de Queiroz
21b2b731f6 scripts/diffconfig.sh: ensure config/conf is built
diffconfig.sh runs ./scripts/config/conf, but it does not get built
with 'make {menu,x,n}config.  Call 'make ./scripts/config/conf' to
ensure it's been built befpre running it.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-02-22 16:28:31 +00:00
Eneas U de Queiroz
9d77bd7666 openssl: configure engines with uci
This uses uci to configure engines, by generating a list of enabled
engines in /var/etc/ssl/engines.cnf from engines configured in
/etc/config/openssl:

    config engine 'devcrypto'
            option enabled '1'

Currently the only options implemented are 'enabled', which defaults to
true and enables the named engine, and the 'force' option, that enables
the engine even if the init script thinks the engine does not exist.

The existence test is to check for either a configuration file
/etc/ssl/engines.cnf.d/%ENGINE%.cnf, or a shared object file
/usr/lib/engines-1.1/%ENGINE%.so.

The engine list is generated by an init script which is set to run after
'log' because it informs the engines being enabled or skipped.  It
should run before any service using OpenSSL as the crypto library,
otherwise the service will not use any engine.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-02-22 16:28:15 +00:00
Eneas U de Queiroz
f0c39b86ed openssl: configure engine packages during install
This enables an engine during its package's installation, by adding it
to the engines list in /etc/ssl/engines.cnf.d/engines.cnf.

The engine build system was reworked, with the addition of an engine.mk
file that groups some of the engine packages' definitions, and could be
used by out of tree engines as well.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-02-22 16:28:15 +00:00
Eneas U de Queiroz
05c6de1e57 openssl: config engines in /etc/ssl/engines.cnf.d
This changes the configuration of engines from the global openssl.cnf to
files in the /etc/ssl/engines.cnf.d directory.  The engines.cnf file has
the list of enabled engines, while each engine has its own configuration
file installed under /etc/ssl/engines.cnf.d.

Patches were refreshed with --zero-commit.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-02-22 16:28:15 +00:00
Rosen Penev
01aef11d13 ksmbd: add out-of-tree module
ksmbd is an upstream linux alternative to Samba which is lighterweight
and more performant, especially on underpowered devices.

Moving it here from the packages feed as it is now an upstream kernel
module. Also easier to update as version updates can be coordinated better

The next LTS kernel (5.15) has this included. A depend on kernel < 5.15
will need to be added later.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-20 16:15:52 +00:00
Rosen Penev
00770ec576 linux/modules: split up oid_registry
This will be needed by ksmbd in a following commit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-20 16:15:27 +00:00
Rosen Penev
b43fc18ec0 target/linux: add help text to kernel config
These options will be used for ksmbd. Once kernel 5.15
makes it in, this patch can go away.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-20 15:54:23 +00:00
Ross Shen
e2df1a2d9b
add dnsmasq-filter-aaaa+https+unknown.patch (#8909)
1. patch for dnsmasq-2.86 based on https://github.com/rozahp/dnsmasq
2. compatible with mini-ttl.patch
2022-02-20 16:04:59 +08:00
ricksuzade-maker
b4a6d7f974
kernel: fix kmod-usb-net-smsc95xx deppends (#8912) 2022-02-20 12:00:11 +08:00
lean
2cef640d52 ipq807x: nss overclock to 1.7Ghz 2022-02-19 09:59:00 +08:00
lean
5018cf2c17 ipq807x: fix AQR PHY patches API 2022-02-19 09:39:58 +08:00
lean
0862f3d2be ipq807x: add support for Aquantia AQR113C 2022-02-19 02:06:22 +08:00
lean
e4b3e57456 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-02-19 00:49:25 +08:00
lean
17a3111035 ipq807x: add uboot-envtools 2022-02-19 00:49:17 +08:00
Helmi Amirudin
a45b0fa8a0
kmod-drm-vc4: fix drm-vc4 depends (#8902)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-18 21:32:59 +08:00
AmadeusGhost
87f4435271 ipq807x: zte mf269: repair usb not working
However, this type-c port is usb2.0.

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-02-18 21:00:43 +08:00
AmadeusGhost
5fa050c878 ipq60xx: remove simple copy from ipq807x target
The target is in an incomplete state and will not receive
kernel 5.10 support, please wait for support on the 5.15.
2022-02-18 20:51:58 +08:00
AmadeusGhost
03f90cdbd7 generic: 5.15: add missing kernel config
Found when compiling rockchip target 5.15 kernel.
2022-02-18 20:24:43 +08:00
lean
3e0c58146d Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-02-18 12:17:29 +08:00
lean
06fcdca1bb kernel:fix komd-mmc-spi build with kernel 5.15 2022-02-18 12:17:18 +08:00
google-you-ok?
2b9548669a
rockchip:Fix doornet2 device tree (#8897)
* Rockchip:Fix dtsi of doornet2

phy:
Modify phy timing;The manufacturer's board requires two timing modes: 125m and 25m ---stmmac_mdio.c  stmmac_main.c
Among them, stmmac_main.c is added with 1.5 reset, and the compilation of other devices is not affected
emmc:
In emmc hs400 mode, the performance test effect is the same as hs200, so it is safer to reduce hs200

* Rockchip:Add doornet2 to overclock to 2.2GHz/1.8GHz

* Create 105-rockchip-rk3399-Add-support-for-EmbedFire-DoorNet2.patch

Modify the startup method: SD starts first, which is convenient for saving bricks. If there is no system in SD, it will automatically jump to the next emmc boot

* Update with kernel 5.4

* Update 992-rockchip-rk3399-overclock-to-2.2-1.8-GHz-for-NanoPi4.patch
2022-02-18 11:45:13 +08:00
lean
c1e11cd718 fullconenat: fix avoid replacing existing notifier on 5.15 2022-02-17 23:24:55 +08:00
lean
1ddc25f6f0 fullconenat: fix package hash 2022-02-17 23:20:12 +08:00
lean
a30eae452e ipq806x: enable NSS Multicast Snooping Support 2022-02-16 17:39:01 +08:00
lean
74583a01e0 Revert "qca-nss-ecm: add support for macvlan interface acceleration"
This reverts commit 29c93682aa.
2022-02-16 17:25:45 +08:00
lean
29c93682aa qca-nss-ecm: add support for macvlan interface acceleration 2022-02-16 14:41:12 +08:00
lean
7da518b715 qca-nss-ecm: add qca-mcs support 2022-02-16 14:38:19 +08:00
lean
46d220669a qca-mcs: add support for QCA NSS multicast snooping driver 2022-02-16 14:33:49 +08:00
lean
9604aa4723 mac80211: agg-tx: refactor sending addba 2022-02-16 13:50:00 +08:00
lean
c73ec736a9 kernel:fix kmod-vfio-mdev build with kernel 5.15 2022-02-16 13:48:26 +08:00
lean
d99d23d0ae Revert "feeds: use git-src-full to allow Git versioning"
This reverts commit 0bae9cf0e1.
2022-02-16 13:47:04 +08:00
Beginner
cc9ce1dbb5
package/lean: move to luci feeds (#8882) 2022-02-15 21:37:40 +08:00
Paul Spooren
0bae9cf0e1 feeds: use git-src-full to allow Git versioning
Both $(AUTORELEASE) and $(PKG_SRC_VERSION) (from luci.git) use the Git
log to determine releases and package timestamps.

Feeds are shallow cloned by default, resulting in an incomplete Git log
and therefore different local package versions than offered upstream.

This commits sets the default feeds to use `src-git-full` to solve that.

Add fixes from "2b1d92f: scripts/feeds: silence git warning by selecting
pull style" to `src-git-full`

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-02-15 08:34:08 +00:00
ricksuzade-maker
cac4857b21
kernel: fix kmod-phylink missing depends (#8885)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-15 16:17:55 +08:00
Rafał Miłecki
d1dc1cdb12 dtc: support printing binary data with fdtget
It's needed for extracting binary images.

Cc: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-02-14 19:16:01 +00:00
Rafał Miłecki
8fd61d6e01 dtc: import package for dtc & fdt from packages feed
fdt* utils are needed by targets that use U-Boot FIT images for
sysupgrade. It includes all recent BCM4908 SoC routers as Broadcom
switched from CFE to U-Boot.

fdtget is required for extracting images (bootfs & rootfs) from
Broadcom's ITB. Extracted images can be then flashed to UBI volumes.

sysupgrade is core functionality so it needs dtc as part of base code
base.

Cc: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-02-14 19:15:19 +00:00
lean
db70aeede7 dnsmasq: fix a lot of domains to a single ipset option crashes dnsmasq 2022-02-14 14:02:29 +08:00
lean
42e5e0dff8 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-02-14 12:57:28 +08:00
lean
2805c232c0 kernel:fix komd-drm missing files 2022-02-14 12:57:21 +08:00
Beginner
f03efb5e0a
csstidy: update to latest Git HEAD (#8871)
Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-02-14 12:41:09 +08:00
AmadeusGhost
8f6139bf16
package/lean: move to package feeds (#8872) 2022-02-14 00:25:55 +08:00
Beginner
d8a93f2311
qBittorrent-static: cleanup makefile 2022-02-13 15:56:41 +08:00
Beginner
14b53f3e79
qttools: cleanup makefile 2022-02-13 15:55:08 +08:00
Beginner
b17a9e83ad
uugamebooster: cleanup makefile 2022-02-13 15:51:41 +08:00
Beginner
a5d2dcab5a
verysync: cleanup makefile 2022-02-13 15:47:46 +08:00
Beginner
de1de1b55e
aliyundrive-webdav: fix typo error 2022-02-13 15:43:34 +08:00
Beginner
edc9e5d733
ddns-scripts_aliyun: cleanup makefile 2022-02-13 15:40:30 +08:00
Beginner
330392e0a7
ddns-scripts_dnspod: cleanup makefile 2022-02-13 15:30:23 +08:00
Beginner
a73ad80ea1
frp: fix typo error 2022-02-13 15:16:45 +08:00
Beginner
9629865c68
k3wifi: cleanup makefile 2022-02-13 15:14:06 +08:00
Beginner
eab899f8bc
adbyby: cleanup makefile 2022-02-13 15:05:26 +08:00
Beginner
b6f156d607
dsmboot: cleanup makefile 2022-02-13 15:01:50 +08:00
Beginner-Go
cb9cbed4a7 Revert "kernel: add a fast path for the bridge code"
This reverts commit c9039bd28a.
2022-02-13 05:20:25 +00:00
Felix Fietkau
c9039bd28a kernel: add a fast path for the bridge code
This caches flows between MAC addresses on separate ports, including their VLAN
in order to bypass the normal bridge forwarding code.
In my test on MT7622, this reduces LAN->WLAN bridging CPU usage by 6-10%,
potentially even more on weaker platforms

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-02-13 05:15:57 +00:00
Hauke Mehrtens
b1279a744a tcpdump: Fix CVE-2018-16301
This fixes the following security problem:
The command-line argument parser in tcpdump before 4.99.0 has a buffer
overflow in tcpdump.c:read_infile(). To trigger this vulnerability the
attacker needs to create a 4GB file on the local filesystem and to
specify the file name as the value of the -F command-line argument of
tcpdump.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-13 05:07:55 +00:00
Jo-Philipp Wich
e3e5dfc2bd ucode: update to latest Git HEAD
a29bad9 compiler: fix patchlist corruption on switch statement syntax errors
86f0662 lib: change `ord()` to always return single byte value
116a8ce vallist: fix storing/retrieving short strings with 8bit byte value

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-13 05:06:49 +00:00
Beginner
0b6c2504a7
aliyundrive-webdav: update to 1.2.3 (#8870)
Co-authored-by: messense <messense@icloud.com>
2022-02-12 23:31:56 +08:00
Beginner
a5d8e2ab20
luci-app-frps: fix log option (#8868)
Co-authored-by: W_Y_CPP <34025388+WYC-2020@users.noreply.github.com>
2022-02-12 20:45:23 +08:00
lean
181b4de02d x86: add support for NVIDIA Cuda Video Cards DRM 2022-02-12 20:38:22 +08:00
lean
8ed8283ef0 x86: add kmod-drm-i915 2022-02-12 20:34:48 +08:00
lean
70e33824b9 x86: improve Intel gen 11/12th GPU i915 and GVT-g capability 2022-02-12 20:29:20 +08:00
lean
70185ec7ba fullconenat: fix range_size calculation 2022-02-12 20:16:56 +08:00
lean
49d5063ee3 ipq60xx: add WF HR6001 support 2022-02-12 19:41:23 +08:00
aakkll
adab80e656
toolchain/glibc: sync upstream (#8866)
* glibc: update to latest 2.33 HEAD (bug 28011)

b5711025bc x86_64: Remove unneeded static PIE check for undefined weak diagnostic
edfd11197e wordexp: handle overflow in positional parameter number (bug 28011)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* glibc: update to latest 2.33 HEAD (bug 28213)

9b01145592 MIPS: Setup errno for {f,l,}xstat
9c676ef514 RISC-V: Update rv64 ULPs
c6cadbf83a linux: Remove shmmax check from tst-sysvshm-linux
22d37364ae librt: add test (bug 28213)
27a78fd712 librt: fix NULL pointer dereference (bug 28213)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* toolchain: glibc: Update to version 2.34

glibc version 2.34 does not provide versioned shared libraries any more,
it only provides shared libraries using the ABI version. Do not try to
copy them any more.

The functions from libpthread and librt were integrated into the main
binary, the libpthread.so and librt.so are only used for backwards
compatibility any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: glibc: Increase minimum kernel version to 5.4

Increase the minimum kernel version needed by the glibc compiled for
OpenWrt to version 5.4. With this setting the glibc build will remove
all code needed to support older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: glibc: Enable --enable-bind-now

Enable --enable-bind-now when CONFIG_PKG_RELRO_FULL is set. This option
is activated by default. This will enable full RELRO protection.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* glibc: update to 2.34 HEAD

72123e1b56 NEWS: Add a bug entry for BZ #28755
08beb3a3f4 x86: Fix __wcsncmp_evex in strcmp-evex.S [BZ# 28755]
b50d5b746c x86: Fix __wcsncmp_avx2 in strcmp-avx2.S [BZ# 28755]
1b9cd6a721 NEWS: add bug entry for BZ #28769 and BZ #28770
3438bbca90 Linux: Detect user namespace support in io/tst-getcwd-smallbuff
d084965adc realpath: Avoid overwriting preexisting error (CVE-2021-3998)
472e799a5f getcwd: Set errno to ERANGE for size == 1 (CVE-2021-3999)
8c8a71c85f tst-realpath-toolong: Fix hurd build
f7a79879c0 realpath: Set errno to ENAMETOOLONG for result larger than PATH_MAX [BZ #28770]
73c362840c stdlib: Fix formatting of tests list in Makefile
269eb9d930 stdlib: Sort tests in Makefile
062ff490c1 support: Add helpers to create paths longer than PATH_MAX
82b1acd9de powerpc: Fix unrecognized instruction errors with recent binutils
1d401d1fcc x86: use default cache size if it cannot be determined [BZ #28784]
6890b8a3ae CVE-2022-23218: Buffer overflow in sunrpc svcunix_create (bug 28768)
1081f1d3dd sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542)
7b5d433fd0 CVE-2022-23219: Buffer overflow in sunrpc clnt_create for "unix" (bug 22542)
5575daae50 socket: Add the __sockaddr_un_set function
03e6e02e6a Disable debuginfod in printer tests [BZ #28757]
705f1e4606 Update syscall lists for Linux 5.16
2fe2af88ab i386: Remove broken CAN_USE_REGISTER_ASM_EBP (bug 28771)
73558ffe84 Update syscall lists for Linux 5.15
e64235ff42 powerpc: Fix unrecognized instruction errors with recent GCC

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

* toolchain: glibc: Remove patch for ARC700

The ARC700 target was renoved, this patch is not needed any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hans Dedecker <dedeckeh@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-12 12:41:46 +08:00
aakkll
f814c21b11
kernel: bump 5.15 to 5.15.23 (#8863)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-02-12 12:35:15 +08:00
aakkll
e1d837d773
bcm27xx: refresh patches (#8865) 2022-02-12 12:35:03 +08:00
aakkll
259dcdbfea
toolchain: binutils: add support for version 2.38 (#8864)
While at it, also fix the download.xs4all.nl and add ftp.gnu.org to the GNU
mirrors, as it seems to be updated faster.

Deleted (upstreamed):
600-Close_the_file_descriptor.patch [1]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5a98fb7513b559e20dfebdbaa2a471afda3b4742

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-02-12 12:34:51 +08:00
Beginner
447f665f63
kernel: bump 5.10 to 5.10.100 (#8867)
* kernel: bump 5.10 to 5.10.99

Had to update generic defconfig (make kernel_menuconfig CONFIG_TARGET=generic)
for this bump, but since that only modifies the target defined in .config,
and since that target also needed to be updated for unrelated reasons, manually
propagated the newly added symbol to the generic config.

Removed upstreamed:
    pending-5.10/860-Revert-ASoC-mediatek-Check-for-error-clk-pointer.patch[1]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.99&id=080f371d984e8039c66db87f3c54804b0d172329

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.10 to 5.10.100

All patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, mt7622/RT3200
Run-tested: bcm2711/RPi4B, mt7622/RT3200

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-02-12 12:34:14 +08:00
AmadeusGhost
aafe115cda
ipq806x: add support for SURF G-NAT200 (#8810)
Hardware specs:
  SoC: Qualcomm IPQ8064
  RAM: 1GB DDR3
  SPI: 32MB S25FL256S
  NAND: 512MB S34MS04G2 (unused)
  Ethernet: 5x 10/100/1000 Mbps QCA8337
  LED: internet, usb, sata
  Button: Reset
  USB: 1 x 3.0

Installation:
  Interrupt U-Boot, tftpboot initramfs image,
  than sysupgrade to openwrt.

Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-02-11 15:07:09 +08:00
Beginner
f266a8a3cb
baidupcs-web: bump to latest git HEAD (#8858) 2022-02-11 15:06:46 +08:00
Beginner
4372b6e1e1
kernel: add miss console config for kernel 5.15 (#8859)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-11 15:06:35 +08:00
Beginner
5384d96c50
ucode: update to latest Git HEAD (#8849)
a317c17 compiler: fix incorrect loop break targets

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-02-09 23:51:50 +08:00
Beginner
a55219d051
bcm27xx: remove obsolete patches (#8851)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-09 23:51:13 +08:00
lean
b411b69a1d Version update to R22.2.2 2022-02-09 23:50:37 +08:00
lean
8b97425415 grub: x86 efi add search module for better find boot partition on multiple disk 2022-02-09 21:32:14 +08:00
Beginner
52d4ac36ef
luci-app-frpc: fix not save config (#8839)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-09 09:36:37 +08:00
Beginner
57f538e8c5
luci-app-openvpn-server: fix not start (#8840)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-02-09 09:36:18 +08:00
Beginner
2e4d21137f
kernel: bump 5.15 to 5.15.22 (#8844) 2022-02-09 09:35:40 +08:00
Beginner
e8fc0b0c21
ucode: update to latest Git HEAD (#8838)
* ucode: update to latest Git HEAD

929c862 vm: fix toplevel function call protocol
8f34d70 fs: fix chown() and rename() error return values
03ca445 tests: disable fuzz tests for now
3b1be3d types: mark further GC roots
d49af4e types: fix comparison of differently signed integers
c79ff39 types: handle conversion errors when dealing with negative error indexes
3315b1f types: allow negative array indexes
d5b25f9 treewide: harmonize function naming
cc4ce8d module: remove unused defines
f5d7526 examples: add libucode usage examples
559eff2 types, vm: adjust GC api
e5e7e62 treewide: move header files into dedicated directory
ff6168a build: install header files
7e6ce0f main: introduce new flag `-x` to allow disabling specific functions
b1817b3 vm: fix invalid memory access on GC'ing uninitialized VM context
498fe87 main: refactor option parsing and VM setup
ff52440 treewide: consolidate typedef naming
1d60418 vm: add API to control trace mode
48f33ad vm: make root exception handler configurable
0f69f09 vm: fix invalid memory access on toplevel function calls
6bcc318 vm: fix handling exceptions in top-level function calls
4ae0568 lib, vm: reimplement exit() as exception type
2f77657 vm: extend API to allow returning result value from VM execution
111645a vm: remove module preloading logic
38ff6de main: preload modules ourselves
d5bc223 vm: add uc_vm_invoke() helper
ef0baf1 vm: cosmetic fix for outputting exceptions without source context
b11a2fa vm: move global scope allocation into uc_vm_init()
900b2a3 vm: add getter and setter for vm globals scope
0179576 lib: rename uc_add_proto_functions() to uc_add_functions()
98b9c84 lib: expose stdlib function array
1adfba0 treewide: eliminate dead code and unused functions
3974e71 treewide: replace a number of unnecessary type casts
bf85226 treewide: move ressource type registry into vm instance
e2b3d2e build: split into libucode and ucode cli
dad8f3a types: properly deal with circular data in GC mark phase
62dbd64 lexer: rename UT_ prefixed constants to UC_
bc8e465 types: fix wrong assert() on tearing down object trees
853b9f1 vm: fix potential invalid memory access in uc_vm_get_error_context()
6f05cdd lib: fix refcount imbalance in uc_require_path()
96f140b lib, vm: ensure that require() compiles modules only once
df5db5f compiler: don't segfault on invalid declaration expressions
a97c7a1 lexer: transition into EOF state on unrecognized character
2a838d1 compiler: improve mapping of binary operator tokens to instructions
9872f65 vm: add support for I_LE and I_GE instructions
4e410c3 treewide: let uc_cmp() use instruction instead of token numbers
ce6081d lexer, vm: reorder token and instruction numbers
234a4f6 lib: implement b64enc() and b64dec() functions
856a0c0 lib: only consider context of calling function for callbacks
86fb130 lib: implement min() and max() functions
3e893e6 lib: pass-through "this" context to library function callbacks
42de7ab lib: implement `sourcepath()` function
05c80a7 lib: fix negative uc_index() return value on 32bit systems
9874562 lexer: implement raw code mode
3b665c8 lexer: drop value union from keyword table
44354cf lexer, compiler: separate TK_BOOL token into TK_TRUE and TK_FALSE tokens
5879bdf syntax: drop Infinity and NaN keywords
d4edadc lib: rename uc_lib_init() to uc_load_stdlib()
d81bad7 main, lib: move allocation of globals object into lib function
c4f4b38 main: simplify REQUIRE_SEARCH_PATH initialization
54ca3aa types: fix uninitialized memory on setting non-contiguous array indexes
cbc0d78 build: let require search patch default to CMAKE_INSTALL_PREFIX
5714705 syntax: introduce `const` support
ed32c42 compiler, lexer: add NO_LEGACY define to disable legacy syntax features
ff6811f syntax: implement `delete` as proper operator
5803d86 lib: implement wildcard() function
dfb7379 fs: implement chmod(), chown(), rename() and glob() functions
1ddf5b6 lexer: skip interpreter line in any source buffer
9951a00 build: lower minimum required CMake version to v3.13
7b81ab2 main: expose argv as global ARGV array to ucode scripts
7283a70 tests: rename misnamed testcases for consistency
3f80116 compiler: fix local for-loop initializer variable declarations
f20b56f compiler: properly parse slashes in parenthesized division expressions
5c4e1ea lib: implement regexp(), a function to construct regexp instances at runtime
e546bba lib: implement render(), an include variant capturing output in a string
0cb10c6 vm: implement mechanism to change output file descriptor
eb8a64d lib: fix uc_sort()
f1ffc9f vm: truncate long values after 60 chars in trace output
850612f compiler: properly handle break/continue in nested scopes
f0a9875 compiler: properly handle keyword in parenthesized property access expression
1660433 compiler: fix stack mismatch on compiling `use strict` statements
a36e0df syntax: implement support for 'use strict' pragma
827a34a vm, compiler: get rid of unused struct members
594cdf3 lib: implement assert()
c4d1648 lib: add support for pretty printing JSON to printf() and sprintf()
f2eaea3 lib: gracefully handle truncated format strings in uc_printf_common()
02629b8 lexer: fix infinite loop on parsing unterminated comments
2bc9bac lexer: fix infinite loop on parsing unterminated expression blocks
f73e201 lexer: fix infinite loop when parsing regexp literal at EOF
86b4863 compiler: fix segfault on parsing invalid pre/post increment expressions
0e24509 lib: fix reporting source context lines at EOF
e66b2ad compiler, lexer: improve lexical state handling
e29b574 lib: fix uc_split() quirks
64eec7f treewide: ISO C / pedantic compliance
4af803d build: output error messages on test failures
9ef693e vm: improve context for early errors
6def9fc tests: pass ucode library path through environment
d5dd183 treewide: address various sign-compare warnings
28825ac types: support creating ressource values without associated type
9c5106a types: fix potential memory leaks and null pointer accesses
c51934a types: fix potential leak of key in ucv_object_add()
7b28727 main: fix ineffective EOF check in parse()
4cf897c lib: uc_system(): fix invalid free() of non-heap memory
35af4ba treewide: rework internal data type system
f2c4b79 treewide: fix issues reported by clang code analyzer
93ededb tests: allow executing run_tests.sh from any directory
0e4a387 Add initial GitLab and GitHub CI support
df73b25 tests: add more tests
41d33d0 tests: custom: return exit code if tests fails
1c548a6 cmake: do not output binaries into lib directory
2b59097 tests: create custom tests from current tests cases
8039361 main: provide just binary name in help output
778e4f7 lexer: fix incomplete struct initializers
502ecdc cmake: enable extra compiler checks
3c2aeff cmake: fix includes and libraries
617a114 cmake: make 3.0 minimum version
f360350 lib: implement sleep(ms) function
7f0ff91 lib: allow parsing non-array, non-object value in json()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: update to latest Git HEAD

0f022aa lib: increase refcount when returning cached module instance
c9e68bb lib: introduce resolver library
9041e24 lib: fix uninitialized memory access on handling %J string formats
4ee06d8 syntax: introduce optional chaining operators
ce4a7d9 vm: reset callframes before invoking unhandled exception handler
218e822 vm: clear exception information before calling managed code functions
5b908bd ubus: properly handle signed 64bit values too
e43b751 ubus: fix handling signed 16bit and 32bit integers
137428f nl80211: fix issues spotted by static code analyzer
b9d4f61 nl80211: treat signal attr values as signed integers
9a7c355 nl80211: expose sta_info attributes
bb358d9 lib: introduce Linux 802.11 netlink binding
914f54c types: fix invalid memory access on setting non-contiguous array indexes
631f00d main: fix leaking module name when processing -m flag
e55188b compiler: properly handle jumps to offset 0
98c4147 tests: support specifying cmdline args in testcase files
64e4f68 types: fix formatting escape sequences for 8 bit chars
dd86e1d rtnl: automatically derive message family from certain address attrs
74fdb97 rtnl: expose IPv4 and IPv6 devconfig information
7fa1008 rtnl: allow reply nla payloads to be smaller than headsize
cbae3cb lib: introduce Linux route netlink binding
e6dd389 ci: adjust build prereqs for GitHub as well
07ae165 ci: add libnl-tiny to prereqs

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: add temporary fix for integer formatting on 32bit systems

The ucode VM always passes 64bit integer values to sprintf implementation
while the `%d` format expects 32bit integers on 32bit platforms, leading
to incorrect formatting results.

Temporarily solve the issue by casting the numeric argument to int until
a more thorough fix arrives with the next update.

Fixes: FS#4234
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: update to latest Git HEAD

c6dae42 LICENSE: add ISC license file
402f603 lib: introduce struct library
dcb6ffd struct: fix PowerPC specific compiler pragma name
a0512ea treewide: fix typo in exported function names and types
eaaaf88 nl80211: fix wiphy dump reply merge logic
e6efadb fs: add utility functions
54ef6c0 nl80211: fix premature netlink reply receive abort
07802f3 syntax: disallow keywords in object property shorthand notation
3489b75 vm: support object property access on resource value types
dc8027c types: consider resource prototypes when marking reachable objects
5680fab treewide: fix upvalue reference type name
0d29b25 treewide: fix "resource" misspellings
99fdafd vm: introduce value registry
66f7c00 ubus: add support for async requests
5c77dd5 fs: implement fdopen(), file.fileno() and proc.fileno()
b605dbf treewide: rework numeric value handling
599d233 vallist: store double values in a platform neutral manner
5bb9ab7 struct: reuse double packing routines from core
2fd7ab5 vm: optimize string concatenation
eafa321 lib: implement uniq() function
6b2e79a types: add initial infrastructure for function serialization
725bb75 compiler, vm: use a program wide constant list
6c2caf9 source: refactor source file handling
371ba45 program: implement support for precompiling source files
3578afe build: support building without compile capabilities
61d0a34 lib: replace usages of vasprintf() with xvasprintf()
03b6a8e syntax: drop legacy syntax support
01132db lib: fix %J string formats with precision specifier
3f44c42 lib: rework format string handling
a1b3c5d struct: implement `*` format, fix invalid memory accesses
34a04a2 run_tests.sh: fix exitcode evaluation
abe38e7 run_tests.sh: add ability to define environment variables for testcases
04fa2ba tests: reorganize testcase files
6a55d10 lib: fix exists() error return value
aa860a3 vm: fix `null` loose equality/inequality checks
3f6d199 vallist: uc_number_parse(): parse empty strings as `0`, not `NaN`
ddc5aa7 vm: fix NaN strict equality tests

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

* ucode: update to latest Git HEAD

11adf0c source: convert source objects into proper uc_value_t type
3a49192 treewide: rework function memory model
7edad5c tests: add functional tests for builtin functions
d5003fd lib: fix leaking tokener in uc_json() on parse exception
5d0ecd9 lib: fix infinite loop on empty regexp matches in uc_replace()
3ad57f1 lib: fix infinite loop on empty regexp matches in uc_match()
32d596d lib: fix infinite loop on empty regexp matches in uc_split()
3e3f38d vm: ensure consistent trace output between gcc and clang compiled ucode
3600ded vm: fix leaking function value on call exception
3059295 vm: NULL-initialize pointer to make cppcheck happy
98e59bf source: zero-initialize conversion union to make cppcheck happy
7a65c14 run_tests.sh: change workdir to testcase directory during execution
afec8d7 run_tests.sh: support placing supplemental testcase files
3ada6e0 run_tests.sh: always treat outputs as text data
2cb627f program: rename bytecode load/write functions, track path of executed file
1094ffa lib: fix memory leak in uc_require_ucode()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-02-09 09:35:05 +08:00
Beginner
0baa3ca219
uhttpd: update to latest Git HEAD (#8832)
* uhttpd: make organization (O=) of the cert configurable via uci

Make the organization (O=) of the cert configurable via uci. If not
configured, use a combination of "OpenWrt" and an unique id like it was
done before.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>

* uhttpd: add config option for json_script

Add a config option for json_script instead of unconditionally including
all json files in /etc/uhttpd in every uhttpd instance. This makes it
possible to configure a single instance with an unconditional redirect,
which currently renders all other uhttpd instances unusable.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Felix Fietkau <nbd@nbd.name>

* uhttpd: update to latest Git HEAD

2f8b136 main: fix leaking -p/-s argument values
881fd3b ucode: adjust to latest ucode api
8b2868e file: specify UTF-8 as charset for dirlists, add option to override
3a5bd84 main: add ucode options to help text
16aa142 examples: add ucode handler example
3ceccd0 ucode: add ucode plugin support
f0f1406 examples: add example Lua handler script
9e87095 listen: avoid invalid memory access

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Martin Schiller <ms@dev.tdt.de>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2022-02-08 12:32:05 +08:00
aakkll
1d4d8f5889
kernel: bump 5.15 to 5.15.21 (#8830)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-02-08 12:31:24 +08:00
aakkll
609f4c8ed7
kernel: bump 5.10 to 5.10.98 (#8835)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-02-08 12:30:22 +08:00
Beginner
ddb8d35652
e2fsprogs: Update to version 1.46.5 (#8816)
The sizes of the ipk changed on MIPS 24Kc like this:
  8788 badblocks_1.45.6-2_mips_24kc.ipk
  8861 badblocks_1.46.5-1_mips_24kc.ipk

  3652 chattr_1.45.6-2_mips_24kc.ipk
  3657 chattr_1.46.5-1_mips_24kc.ipk

 58128 debugfs_1.45.6-2_mips_24kc.ipk
 60279 debugfs_1.46.5-1_mips_24kc.ipk

  8551 dumpe2fs_1.45.6-2_mips_24kc.ipk
  8567 dumpe2fs_1.46.5-1_mips_24kc.ipk

  4797 e2freefrag_1.45.6-2_mips_24kc.ipk
  4791 e2freefrag_1.46.5-1_mips_24kc.ipk

159790 e2fsprogs_1.45.6-2_mips_24kc.ipk
168212 e2fsprogs_1.46.5-1_mips_24kc.ipk

  7083 e4crypt_1.45.6-2_mips_24kc.ipk
  7134 e4crypt_1.46.5-1_mips_24kc.ipk

  5749 filefrag_1.45.6-2_mips_24kc.ipk
  6233 filefrag_1.46.5-1_mips_24kc.ipk

  4361 libcomerr0_1.45.6-2_mips_24kc.ipk
  4355 libcomerr0_1.46.5-1_mips_24kc.ipk

168040 libext2fs2_1.45.6-2_mips_24kc.ipk
174209 libext2fs2_1.46.5-1_mips_24kc.ipk

  8514 libss2_1.45.6-2_mips_24kc.ipk
  8613 libss2_1.46.5-1_mips_24kc.ipk

  3148 lsattr_1.45.6-2_mips_24kc.ipk
  3227 lsattr_1.46.5-1_mips_24kc.ipk

 22530 resize2fs_1.45.6-2_mips_24kc.ipk
 22909 resize2fs_1.46.5-1_mips_24kc.ipk

 33315 tune2fs_1.45.6-2_mips_24kc.ipk
 34511 tune2fs_1.46.5-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-08 12:29:53 +08:00
Beginner
8bc3d58645
mbedtls: Update to version 2.16.12 (#8819)
This fixes the following security problems:
* Zeroize several intermediate variables used to calculate the expected
  value when verifying a MAC or AEAD tag. This hardens the library in
  case the value leaks through a memory disclosure vulnerability. For
  example, a memory disclosure vulnerability could have allowed a
  man-in-the-middle to inject fake ciphertext into a DTLS connection.
* Fix a double-free that happened after mbedtls_ssl_set_session() or
  mbedtls_ssl_get_session() failed with MBEDTLS_ERR_SSL_ALLOC_FAILED
  (out of memory). After that, calling mbedtls_ssl_session_free()
  and mbedtls_ssl_free() would cause an internal session buffer to
  be free()'d twice. CVE-2021-44732

The sizes of the ipk changed on MIPS 24Kc like this:
182454 libmbedtls12_2.16.11-2_mips_24kc.ipk
182742 libmbedtls12_2.16.12-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-05 21:08:46 +08:00
Beginner
d99cf8e6dd
ustream-ssl: update to Git version 2022-01-16 (#8826)
868fd88 ustream-openssl: wolfSSL: Add compatibility for wolfssl >= 5.0

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-05 21:08:30 +08:00
Beginner
b69728f07d
wolfssl: update to 5.1.1-stable (#8817)
* libs/wolfssl: add SAN (Subject Alternative Name) support

x509v3 SAN extension is required to generate a certificate compatible with
chromium-based web browsers (version >58)

It can be disabled via unsetting CONFIG_WOLFSSL_ALT_NAMES

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

* wolfssl: update to 5.1.1-stable

Bump from 4.8.1-stable to 5.1.1-stable

Detailed release notes: https://github.com/wolfSSL/wolfssl/releases

Upstreamed patches:
001-Maths-x86-asm-change-asm-snippets-to-get-compiling.patch -
 fa8f23284d
002-Update-macro-guard-on-SHA256-transform-call.patch -
 f447e4c1fa

Refreshed patches:
100-disable-hardening-check.patch
200-ecc-rng.patch

CFLAG -DWOLFSSL_ALT_CERT_CHAINS replaced to --enable-altcertchains
configure option

The size of the ipk changed on aarch64 like this:
491341 libwolfssl4.8.1.31258522_4.8.1-stable-7_aarch64_cortex-a53.ipk
520322 libwolfssl5.1.1.31258522_5.1.1-stable-1_aarch64_cortex-a53.ipk

Tested-by: Alozxy <alozxy@users.noreply.github.com>
Acked-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

Co-authored-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-04 10:52:39 +08:00
Beginner
2f173fb366
aliyundrive-webdav: update to 1.2.1 (#8801)
Co-authored-by: messense <messense@icloud.com>
2022-02-03 01:50:45 +08:00
Beginner
601d2e00af
ethtool: Update to version 5.16 (#8815)
795f420 cmis: Rename CMIS parsing functions
369b43a cmis: Initialize CMIS memory map
da16288 cmis: Use memory map during parsing
6acaeb9 cmis: Consolidate code between IOCTL and netlink paths
d7d15f7 sff-8636: Rename SFF-8636 parsing functions
4230597 sff-8636: Initialize SFF-8636 memory map
b74c040 sff-8636: Use memory map during parsing
799572f sff-8636: Consolidate code between IOCTL and netlink paths
9fdf45c sff-8079: Split SFF-8079 parsing function
2ccda25 netlink: eeprom: Export a function to request an EEPROM page
86792db cmis: Request specific pages for parsing in netlink path
6e2b32a sff-8636: Request specific pages for parsing in netlink path
c2170d4 sff-8079: Request specific pages for parsing in netlink path
9538f38 netlink: eeprom: Defer page requests to individual parsers
664586e Merge branch 'review/next/module-mem-map' into master
50fdaec ethtool: Set mask correctly for dumping advertised FEC modes
c5e7133 cable-test: Fix premature process termination
73091cd sff-8636: Use an SFF-8636 specific define for maximum number of channels
837c166 sff-common: Move OFFSET_TO_U16_PTR() to common header file
8658852 cmis: Initialize Page 02h in memory map
27b42a9 cmis: Initialize Banked Page 11h in memory map
340d88e cmis: Parse and print diagnostic information
eae6a99 cmis: Print Module State and Fault Cause
82012f2 cmis: Print Module-Level Controls
d7b1007 sff-8636: Print Power set and Power override bits
429f2fc Merge branch 'review/cmis-diag' into master
32457a9 monitor: do not show duplicate options in help text
c01963e Release version 5.16.

The sizes of the ipk changed on MIPS 24Kc like this:
34317 ethtool_5.15-1_mips_24kc.ipk
34311 ethtool_5.16-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-03 01:50:17 +08:00
Beginner
a6e15d01e9
libcap: Update to version 2.63 (#8818)
The sizes of the ipk changed on MIPS 24Kc like this:
11248 libcap_2.51-1_mips_24kc.ipk
14461 libcap_2.63-1_mips_24kc.ipk

18864 libcap-bin_2.51-1_mips_24kc.ipk
20576 libcap-bin_2.63-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-03 01:49:18 +08:00
Beginner
8b13dd239d
kernel: bump 5.10 to 5.10.96 (#8813)
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-02-02 16:47:59 +08:00
Beginner
84f98a7f2f
bcm63xx: Remove patch already in Linux stable (#8814)
Remove the 434-nand-brcmnand-fix-OOB-R-W-with-Hamming-ECC.patch, it was
already applied to Linux 5.10.37 and is not needed any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-02 16:47:41 +08:00
Beginner
253548a3ce
kernel: bump 5.15 to 5.15.19 (#8811)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-02-02 12:01:36 +08:00
Beginner
308842ef19
shellsync: cleanup package (#8812)
Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2022-02-02 12:01:01 +08:00
likanchen
4d99aba7a6
fix missing depends for kmod-bnxt-en (#8808)
fix missing depends for kmod-bnxt-en
2022-02-01 18:30:08 +08:00
likanchen
87bf8ce506
fix missing depends for multimedia-input (#8809)
fix missing depends for multimedia-input
2022-02-01 18:29:49 +08:00
YanxingLiu
aca19312bf
remove an already patched patch (#8806)
Co-authored-by: YanxingLiu <liuyanxing98@foxmail.com>
2022-02-01 10:50:41 +08:00
Beginner
a749bb4d11
firmware-utils: bump to git HEAD (#8804)
* firmware-utils: update to git HEAD of 2022-01-28

 6c95945 ptgen: add Chromium OS kernel partition support
 8e7274e cros-vbutil: add Chrome OS vboot kernel-signing utility

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* firmware-utils: bump to git HEAD

0c15cad iptime-naspkg: add image header tool for ipTIME NAS series
872c87c iptime-crc32: add image header tool for new ipTIME models

Signed-off-by: Sungbo Eo <mans0n@gorani.run>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
Co-authored-by: Sungbo Eo <mans0n@gorani.run>
2022-02-01 07:24:39 +08:00
Beginner
b7eec4a358
kernel: Fix compile warning (#8803)
This fixes the following compile warning:
  CC      init/do_mounts.o
init/do_mounts.c:478:19: warning: 'mount_ubi_rootfs' defined but not used [-Wunused-function]
  478 | static int __init mount_ubi_rootfs(void)
      |                   ^~~~~~~~~~~~~~~~

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-02-01 07:24:15 +08:00
Beginner
607edf0293
kernel: bump 5.15 to 5.15.18 (#8805)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2022-02-01 07:22:52 +08:00
Beginner
370188bfdd
kernel: bump 5.10 to 5.10.95 (#8800)
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-02-01 07:22:40 +08:00
Beginner
91329fa107
kernel: bump 5.4 to 5.4.175 (#8799)
All patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-02-01 07:22:27 +08:00
Chuanhong Guo
85a81556f9 kernel: 5.10: drop broken-flash-reset patch
Flash accessing instruction templates are determined during probe since
v5.6 for spimem-dirmap support in spi-nor driver in upstream commit:
df5c21002cf4 ("mtd: spi-nor: use spi-mem dirmap API")
As a result, changing bus_width on the fly doesn't work anymore and this
patch will cause executing spi-mem ops with 3-byte address on 16-32M
flash area.
We can't easily revert that behavioral change upstream so drop the patch
to prevent u-boot and eeprom from being erased.

Fixes: b10d604459("kernel: add linux 5.10 support")
Reported-by: Frank Di Matteo <dimatto@foxmail.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-01-30 23:50:17 +08:00
Beginner
787da62e7f
kernel: bump 5.15 to 5.15.17 (#8780)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-01-28 01:53:29 +08:00
Beginner
eb73efcd3f
kernel: bump 5.10 to 5.10.94 (#8782)
Deleted (upstreamed):
bcm27xx/patches-5.10/950-0669-drm-vc4-hdmi-Make-sure-the-device-is-powered-with-CE.patch [1]
bcm27xx/patches-5.10/950-0672-drm-vc4-hdmi-Move-initial-register-read-after-pm_run.patch [1]
gemini/patches-5.10/0003-ARM-dts-gemini-NAS4220-B-fis-index-block-with-128-Ki.patch [2]

Manually rebased:
bcm27xx/patches-5.10/950-0675-drm-vc4-hdmi-Drop-devm-interrupt-handler-for-CEC-int.patch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.94&id=55b10b88ac8654fc2f31518aa349a2e643b37f18
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.94&id=958a8819d41420d7a74ed922a09cacc0ba3a4218

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-28 01:53:17 +08:00
Beginner
2c0e1acdee
kernel: bump 5.4 to 5.4.174 (#8783)
Removed upstreamed patches:
  layerscape/patches-5.4/302-dts-0083-arm64-ls1028a-qds-correct-bus-of-rtc.patch[1]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.174&id=65816c1034769e714edb70f59a33bc5472d9e55f

Build system: x86_64
Build-tested: ramips/mt7621

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-01-28 01:53:03 +08:00
fengying0347
94e7b85e4a rockchip: add support for Motorcomm YT8531(S) PHY
Fixes: #8719, #8763
2022-01-25 12:29:51 +08:00
zxlhhyccc
b535638922
luci-app-turboacc: Optimized the dns cache stop action (#8744)
The actual script dnscache-while.sh is still in the process after the DNS cache stops. This optimization completely stops the script and the DNS cache process
2022-01-23 21:42:41 +08:00
aakkll
0ce82c9f14
kernel: bump 5.4 to 5.4.173 (#8746) 2022-01-23 21:42:02 +08:00
Baka
8e073bfc85
bnx2x 2.5G SGMII patch (#8745)
bnx2x 2.5G SGMII patch for BCM5771x/578xx 10/20-Gigabit NIC
2022-01-23 21:41:52 +08:00
Beginner
43fd83c659
bcm27xx: remove patches (#8756)
fixed: https://github.com/coolsnowwolf/lede/issues/8755
2022-01-23 21:41:36 +08:00
Beginner
95f5440b13
kernel: bump 5.15 to 5.15.16 (#8737) 2022-01-21 11:14:25 +08:00
Beginner
a793de5142
kernel: bump 5.10 to 5.10.93 (#8738)
No patches required rebasing.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-21 11:14:10 +08:00
Hauke Mehrtens
798465a3a7 firmware-utils: update to latest master
d885b49 tplink-safeloader: support Archer C6v3.0 (BR)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-01-19 18:40:16 +08:00
Matthias Schiffer
3899c2e5fe firmware-utils: update to latest master
84dbf8ee49f5 tplink-safeloader: fix Archer A7v5 factory flashing from vendor fw > v1.1.x

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2022-01-19 18:39:57 +08:00
Rafał Miłecki
bdcb92ba1c firmware-utils: bump to the latest master
56e8e19 otrx: support TRX from stdin when extracting
a37ccaf otrx: support unsorted partitions offsets
1fa145e otrx: extract shared code opening & parsing TRX format
0fbc135 oseama: support extracting entity to stdout
58c9d5d oseama: allow reading from stdin
4ecefda otrx: allow validating TRX from stdin
cf01e69 otrx: avoid unneeded fseek() when calculating CRC32
fa35379 tplink-safeloader: add EAP225 v1 support
f4d1263 build, cmake: switch OPENSSL_CRYPTO_LIBRARY -> OPENSSL_CRYPTO_LIBRARIES
cd3f6ee build, cmake: add quotes for FW_UTIL variable arguments

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-01-19 18:39:24 +08:00
Adrian Schmutzler
6f781ff142 firmware-utils: bump to latest git HEAD
7073760 ramips: add support for TP-Link RE305 v3
86739f2 Add more missing include for byte swap operations

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2022-01-19 18:38:31 +08:00
Beginner
ddb86302d0
kernel: bump 5.10 to 5.10.92 (#8714)
Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-17 22:31:40 +08:00
Beginner
5053e5cdf6
bcm53xx: revert patches (#8717)
fixed: https://github.com/coolsnowwolf/lede/issues/8712
2022-01-17 22:31:27 +08:00
aakkll
7d5abea3bd
k5.15.15 (#8709)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-01-17 06:32:24 +08:00
Beginner
4b5868756d
kernel: bump 5.4 to 5.4.172 (#8711)
All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-01-17 06:31:25 +08:00
蛋炒饭
99821b115c
qBittorrent: bump to v4.4.0 (#8702)
* qBittorrent: bump to v4.4.0
* qBittorrent-static: bump to v4.4.0_v1.2.15
2022-01-16 14:01:17 +08:00
lean
482845f0de Revert "luci-app-qbittorrent: change x64 default use dynamic build"
This reverts commit c5917936b1.
2022-01-16 09:58:05 +08:00
Beginner
522855254c
kernel: bump 5.4 to 5.4.171 (#8697)
* kernel: bump 5.4 to 5.4.165

All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621*

*FS#4149 affects me so I had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e
in order to downgrade to 2.35.1

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.4 to 5.4.166

All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621*

*FS#4149 affects me so I had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e
in order to downgrade to 2.35.1

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.4 to 5.4.167

All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621*

*FS#4149 affects me so I had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e
in order to downgrade to 2.35.1

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.4 to 5.4.169

All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621*

*Had to revert 7f1edbd in order to build due to FS#4149

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.4 to 5.4.170

All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621

Signed-off-by: John Audia <graysky@archlinux.us>

* kernel: bump 5.4 to 5.4.171

All patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2022-01-16 09:56:16 +08:00
lean
ada52a0ef8 Revert "kernel: add net-conntrack-events-support-multiple-registrant for 5.15"
This reverts commit a30c8b9436.
2022-01-15 13:54:10 +08:00
lean
a30c8b9436 kernel: add net-conntrack-events-support-multiple-registrant for 5.15 2022-01-15 11:18:23 +08:00
Beginner
72154bce76
kernel: split kernel version to dedicated files (#8692)
Move the kernel versions and hash to dedicated files.
This makes kernel bump quicker and fix some annoying
problem with rebasing when multiple kernel bump are proposed.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[Rebased on top of current master]
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Ansuel Smith <ansuelsmth@gmail.com>
2022-01-15 10:40:27 +08:00
AmadeusGhost
1e5e01caf0
shortcut-fe-cm: fixes unknown symbol issues (#8460) 2022-01-14 18:47:14 +08:00
aakkll
47266d39f7
busybox: update to 1.35.0 (#8389)
* Revert "busybox: update to 1.33.2 bugfix release (#8386)"

This reverts commit a6f79ace50.

* busybox: fix compilation with GCC 10

When compiling busybox with GCC 10 and CONFIG_PKG_ASLR_PIE_ALL=y, there
are hundreds of errors like:

relocation R_MIPS16_26 against `xzalloc' cannot be used when making a
shared object; recompile with -fPIC

Simply solve this by no longer disabling PKG_ASLR_PIE, so that $(FPIC)
is properly added to the CFLAGS and LDFLAGS.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

* busybox: update to version 1.34.0

Update busybox to version 1.34.0

* Remove upstreamed patches (205, 530, 540)

* Remove one old patch that does not apply any more. (203)
  That was originally introduced in 2008 with 563d23459,
  but does not apply after busybox restructuring with
  https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?h=1_34_stable&id=e6007c4911c3ea26925f9473b9f156a692585f30
  and
  https://git.busybox.net/busybox/commit/networking/udhcp/dhcpc.c?h=1_34_stable&id=1c7253726fcbab09917f143f0b703efbd2df55c3

* Refresh config and patches.

* Backport upstream fixes for
   - MIPS compilation breakage and
   - process substitution regression

Config refresh:

Refresh commands, run after busybox is first built once:

cd utils/busybox/
cd config/
../convert_menuconfig.pl ../../../../build_dir/target-aarch64_cortex-a53_musl/busybox-default/busybox-1.34.0
cd ..
./convert_defaults.pl < ../../../build_dir/target-aarch64_cortex-a53_musl/busybox-default/busybox-1.34.0/.config > Config-defaults.in

Manual edits needed afterward:

* Config-defaults.in:  OpenWrt config symbol IPV6 logic applied to
  BUSYBOX_DEFAULT_FEATURE_IPV6
* Config-defaults.in:  OpenWrt configTARGET_bcm53xx logic applied to
  BUSYBOX_DEFAULT_TRUNCATE (commit 547f1ec)
* Config-defaults.in:  OpenWrt logic applied to
  BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD (commit dc92917)
  BUSYBOX_DEFAULT_UDHCPC_DEFAULT_INTERFACE (just "")
* config/editors/Config.in: Add USE_GLIBC dependency to
  BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH (commit f141090)
* config/shell/Config.in : change at "Options common to all shells"  the symbol
  SHELL_ASH  -->  BUSYBOX_CONFIG_SHELL_ASH
   (discussion in http://lists.openwrt.org/pipermail/openwrt-devel/2021-January/033140.html
     Apparently our script does not see the hidden option while
     prepending config options with "BUSYBOX_CONFIG_" which leads to a
     missed dependency when the options are later evaluated.)
* Edit Config.in files by adding quotes to sourced items in
  config/Config.in, config/networking/Config.in and config/util-linux/Config.in (commit 1da014f)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

* busybox: update to 1.34.1

Update busybox to version 1.34.1, which is a minor
maintenance release. It contains just the two post-1.34.0
upstream patches that we earlier backported plus a few fixes
to awk.

* Remove the two backported upstream patches that are
  now unnecessary.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

* busybox: fix compatibility with BUSYBOX_CONFIG_INSTALL_NO_USR

Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

* busybox: update to 1.35.0

Update busybox to 1.35.0

* refresh patches

Config refresh:

Refresh commands, run after busybox is first built once:

cd package/utils/busybox/config/
../convert_menuconfig.pl ../../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.35.0
cd ..
./convert_defaults.pl ../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.35.0/.config > Config-defaults.in

Manual edits needed after config refresh:

* Config-defaults.in: OpenWrt config symbol IPV6 logic applied to
  BUSYBOX_DEFAULT_FEATURE_IPV6

* Config-defaults.in: OpenWrt configTARGET_bcm53xx logic applied to
  BUSYBOX_DEFAULT_TRUNCATE (commit 547f1ec)

* Config-defaults.in: OpenWrt logic applied to
  BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD (commit dc92917)

* config/editors/Config.in: Add USE_GLIBC dependency to
  BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH (commit f141090)

* config/shell/Config.in : change at "Options common to all shells" the symbol
  SHELL_ASH --> BUSYBOX_CONFIG_SHELL_ASH
  (discussion in http://lists.openwrt.org/pipermail/openwrt-devel/2021-January/033140.html
  Apparently our script does not see the hidden option while
  prepending config options with "BUSYBOX_CONFIG_" which leads to a
  missed dependency when the options are later evaluated.)

* Edit Config.in files by adding quotes to sourced items in
  config/Config.in, config/networking/Config.in and config/util-linux/Config.in (commit 1da014f)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Hannu Nyman <hannu.nyman@iki.fi>
Co-authored-by: Marius Dinu <m95d+git@psihoexpert.ro>
2022-01-14 12:15:24 +08:00
Beginner
fc6eba0ef3
aliyundrive-webdav: update to 1.1.1 (#8679)
Co-authored-by: messense <messense@icloud.com>
2022-01-13 23:25:18 +08:00
aakkll
9524be6a11
kernel: bump 5.10 to 5.10.91 (#8678)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-13 10:11:31 +08:00
aakkll
175074dbba
kernel: bump 5.10 to 5.10.90 (#8646)
Add and enable a new kconfig knob to disable unprivileged eBPF by default.

Patches automatically rebased.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-12 18:31:19 +08:00
aakkll
281327352d
firewall: update to latest HEAD (#8666)
0f16ea5 options.c: add DSCP code LE Least Effort
24ba465 firewall3: remove redundant syn check
df1306a firewall3: fix locking issue
3624c37 firewall3: support table load on access on Linux 5.15+

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>

Co-authored-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2022-01-12 13:24:59 +08:00
aakkll
0497bf2ee8
luci-app-jd-dailybonus: sync upstream (#8647)
Co-authored-by: jerrykuku <jerrykuku@qq.com>
2022-01-12 13:24:16 +08:00
aakkll
d63edcce3b
luci-app-serverchan: update ipv4.list (#8648)
Co-authored-by: tty228 <33397881+tty228@users.noreply.github.com>
2022-01-12 13:24:00 +08:00
aakkll
7222de0754
luci-app-pushbot: sync upstream (#8649)
Co-authored-by: zzsj0928 <69092025+zzsj0928@users.noreply.github.com>
2022-01-12 13:23:39 +08:00
AmadeusGhost
a32407cdaf ipq60xx: disable build for unsupported devices 2022-01-11 11:32:40 +08:00
AmadeusGhost
e800d72e66 Revert "binutils: sync upstream"
This reverts commit 5afa82e64f.
2022-01-11 11:31:45 +08:00
Stefan Lippers-Hollmann
6bf9926780 x86: improve sysinfo handling of dummy values
Fall back to using board_vendor and board_name, if known dummy values
are used for sys_vendor and product_name.

Examples:
	To be filled by O.E.M.:To be filled by O.E.M.
-->	INTEL Corporation:ChiefRiver

	System manufacturer:System Product Name
-->	ASUSTeK COMPUTER INC.:P8H77-M PRO

	To Be Filled By O.E.M.:To Be Filled By O.E.M.
-->	ASRock:Q1900DC-ITX

	Gigabyte Technology Co., Ltd.:To be filled by O.E.M.
-->	Gigabyte Technology Co., Ltd.:H77M-D3H

	empty:empty
-->	TYAN Computer Corporation:TYAN Toledo i3210W/i3200R S5211

	To Be Filled By O.E.M.:To Be Filled By O.E.M.
-->	ASRock:H77 Pro4-M

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
2022-01-11 11:25:15 +08:00
aakkll
b0c25b7d38
elfutils: sync upstream (#8652)
* elfutils: enable host build

frr 8.0 needs host libelf dev
add option for host build
tested on x86, ramips, kirkwood

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[changed commit author's email]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>

* elfutils: update to 0.186

Upstreamed patches (deleted):
0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch -
 https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=8382833a257b57b0d288be07d2d5e7af6c102869
110-no-cdefs.patch -
 https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=d390548df1942e98a1d836269a5e41ba52e121f1

Auto-refreshed:
006-Fix-build-on-aarch64-musl.patch
101-no-fts.patch

Manually updated and refreshed:
005-build_only_libs.patch
003-libintl-compatibility.patch
100-musl-compat.patch

Disabled _obstack_free check (via configure vars)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

* elfutils: Add missing musl-fts dependency

libdw depends on libfts.so when building with the musl-libc library, add
this missing dependency.

Fixes: 6835ea13f0fa ("elfutils: update to 0.186")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Co-authored-by: Lucian Cristian <lucian.cristian@gmail.com>
Co-authored-by: Sergey V. Lobanov <sergey@lobanov.in>
Co-authored-by: Florian Fainelli <f.fainelli@gmail.com>
2022-01-10 16:57:52 +08:00
aakkll
5afa82e64f
toolchain/binutils: sync upstream (#8661)
* toolchain/binutils: switch to version 2.36.1 by default

Runtime-tested on:
* ath79
* bcm27xx/bcm2708
* bcm27xx/bcm2709
* bcm27xx/bcm2711
* mvebu/cortexa53
* octeon
* realtek
* x86/64

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain/binutils: switch to version 2.37 by default

Compile tests:
* all

Runtime tests:
* ipq806x/generic
* lantiq/mt7621
* lantiq/xrx200
* x86/64

Signed-off-by: Paul Spooren <mail@aparcar.org>
Tested-by: Paul Spooren <mail@aparcar.org>
Tested-by: Rosen Penev <rosenp@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Ansuel Smith <ansuelsmth@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Paul Spooren <mail@aparcar.org>

* toolchain/binutils: v2.37 Close the file descriptor if there is no archive fd

This fixes the following build error:
/home/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /home/sergey/openwrt2/build_dir/target-aarch64_cortex-a53_musl/node-v14.18.2/out/Release/obj.target/tools/v8_gypfiles/libv8_base_without_compiler.a: error adding symbols: malformed archive
collect2: error: ld returned 1 exit status

It's a bad error handling related to -EMFILE (too many open files). nodejs is probably just very close to open file limit.

https://sourceware.org/bugzilla/show_bug.cgi?id=28138
https://github.com/nodejs/node/issues/39452

https://github.com/openwrt/packages/issues/17496
https://github.com/openwrt/packages/issues/16729
https://github.com/openwrt/packages/issues/17164

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
[Take full patch from 2.37 branch and refresh]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Paul Spooren <mail@aparcar.org>
Co-authored-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2022-01-10 16:57:37 +08:00
aakkll
4e2155b05d
binutils: sync upstream (#8660)
* binutils: Update to version 2.37

This matches the version used in the toolchain.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* binutils: fix compiling with arch-based distros

Arch Linux users have encountered problems with packages that have a dependency on binutils. This error happens when libtool is doing:
  libtool: relink: ...
So change PKG_FIXUP to "patch-libtool".

Fixes error in the form of:
  libtool: install: error: relink `libctf.la' with the above command
           before installing it

Upstream Bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=28545

OpenWrt Bug:
https://bugs.openwrt.org/index.php?do=details&task_id=4149

Acked-by: John Audia <graysky@archlinux.us>
Signed-off-by: Nick Hainke <vincent@systemli.org>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-01-10 16:57:24 +08:00
aakkll
c01c9b96b1
utils/mdadm: fix build on hosts without /run dir (#8651)
CHECK_RUN_DIR=0 must be a part of MAKE_FLAGS, not MAKE_VARS, otherwise
it is not possible to compile mdadm on host without /run dir.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

Co-authored-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-10 16:56:47 +08:00
Li2nOnline
58467b6c6e
luci-app-kodexplorer: sync to my upstream (#8657) 2022-01-10 16:56:30 +08:00
zhouF96
60e2759031
Apply BCM578xx sfp2.5g patch to test 5.15 kernel (#8615)
* kernel: add module for  bcm574xx 575xx serials

kernel: add module for bnxt_en Linux driver for the 
Broadcom NetXtreme-C/NetXtreme-E 
BCM573xx, BCM574xx, BCM575xx, NetXtreme-S BCM5880x
(up to 200 Gbps) Ethernet Network Controllers and Broadcom Nitro
BCM58700 4-port 1/2.5/10 Gbps Ethernet Network Controller.

* reapply bcm578xx sfp 2.5g patch
2022-01-08 15:00:46 +08:00
小甲哥
67da0a5372
n2n: remove unsupported -s param (#8644) 2022-01-08 11:10:12 +08:00
AmadeusGhost
8aba1a4072 x86: 5.15: refresh kernel patches 2022-01-08 11:06:56 +08:00
Marty Jones
99a33ec8d8 linux-firmware: add new package r8152-firmware
Linux upstream commit 9370f2d05a
add load firmware file through request_firmware,this affect the
nanopi r2s and some USB adapters in kernel 5.10 with this error:
'r8152 4-1:1.0: unable to load firmware patch rtl_nic/rtl8153b-2.fw'
This patch split the USB NIC firmware files from r8169 firmware,
and adds r8152-firmware to r8152 driver.
Add kmod-usb-net-cdc-ncm to support RTL8156A and RTL8156B 2.5G ethernet
adapters supported since v5.13-rc1.
195aae321c

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2022-01-08 11:01:16 +08:00
Glenn Strauss
2bfce1389a mbedtls: enable session tickets
session tickets are a feature of TLSv1.2 and require less memory
and overhead on the server than does managing a session cache

Building mbedtls with support for session tickets will allow the
feature to be used with lighttpd-1.4.56 and later.

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2022-01-08 11:00:18 +08:00
AmadeusGhost
3cfb23d0c8 ntfs3-oot: fixes patches push by mistake
Fixes: d000d8c ("ntfs3-oot: compact with upstream kernel")
2022-01-07 11:21:27 +08:00
AmadeusGhost
75193fa45c kernel : 5.10: backport NFSv4_2 SSC helper commit
This allows kmod-fs-nfs-ssc to compile on both 5.10 and 5.15 kernel.
2022-01-07 11:18:11 +08:00
AmadeusGhost
3c1b417e8f Revert "kmod-fs-nfs: adjust depends again"
This reverts commit d9316c5814.
2022-01-07 11:16:06 +08:00
AmadeusGhost
44c6f8502f Revert "fw3: add a hack to revert register tables implementation in 5.15"
This reverts commit e105008c7d.
Fixes: #8617
2022-01-06 16:31:04 +08:00
AmadeusGhost
da49909910 ntfs3-mount: fixes mounting issues
Fixes: #8612
2022-01-06 16:28:05 +08:00
AmadeusGhost
d000d8cb9a ntntfs3-oot: compact with upstream kernel 2022-01-06 16:24:31 +08:00
AmadeusGhost
d9316c5814 kmod-fs-nfs: adjust depends again
Fixes: #8621
2022-01-06 16:21:30 +08:00
Piotr Dymacz
762ed37e19 uboot-imx: set BUILD_SUBTARGET to 'cortexa9'
All currently supported devices belong to the imx/cortexa9 subtarget.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 10:00:25 +08:00
Piotr Dymacz
b4ee2613e0 uboot-envtools: move imx to imx_cortexa9
Subtarget-specific files under 'uboot-envtools' package are supported
since 6f3a05ebb0 ("uboot-envtools: support uci-default config also per
subtargets").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 09:59:59 +08:00
Piotr Dymacz
c9451f29f3 uboot-imx6: rename to 'uboot-imx'
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 09:59:13 +08:00
Piotr Dymacz
7135adeb6b uboot-envtools: rename 'imx6' to 'imx'
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 09:58:31 +08:00
Piotr Dymacz
df2e050cc4 kobs-ng: update dependencies after 'imx6' -> 'imx' rename
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 09:58:02 +08:00
Piotr Dymacz
f1a9b91fd4 kernel: update dependencies after 'imx6' -> 'imx' rename
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2022-01-06 09:57:20 +08:00
lean
ee9e153105 mtk_eth_soc: add missing ipv6 flow offload support for 5.10 2022-01-05 19:25:24 +08:00
lean
40222caccd target: imx6 rename to imx 2022-01-05 19:08:23 +08:00
Hauke Mehrtens
a859ab9ac0 sunxi: Use rtl8723bu-firmware instead of rtl8723bs-firmware
The firmware for the rtl8723bs chip is now included in the
rtl8723bu-firmware package.

Fixes: 397dfe4a97e6 ("linux-firmware: Update to version 20121216")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-01-05 11:24:26 +08:00
AmadeusGhost
d35b0161d0 kmod-fs-nfs-common: fix build on 5.15
Fixes: #8599
2022-01-05 11:21:48 +08:00
AmadeusGhost
c6edc4c192 kmod-fs-ntfs3: update dependence
Fixes: #8600, #8601, #8605
2022-01-05 10:29:30 +08:00
lean
dced95e705 x86: add brand display for R86S etc. 2022-01-04 23:52:49 +08:00
AmadeusGhost
9ba612191d kmod-switch-bcm53xx: fixes build on kernel 5.15
Fixes: #8583, #8586
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2022-01-04 16:54:20 +08:00
AmadeusGhost
af9ddeb7c9 kmod-usb-net-asix: fix build on kernel 5.15
Fixes: #8584
2022-01-04 16:49:20 +08:00
AmadeusGhost
cf8d67a3e3 automount: fix ntfs-mount on kernel 5.15 2022-01-04 16:45:45 +08:00
AmadeusGhost
e841c2c2cd ntfs3-mount: re-enabled on kernel 5.15 2022-01-04 16:43:47 +08:00
lean
1bf58b7e18 automount: revert to antfs-mount for 5.4/5.10 2022-01-03 15:15:11 +08:00
Beginner
f85cd5c8c7
kernel: bump 5.10 to 5.10.89 (#8589)
Deleted (upstreamed):
bcm27xx/patches-5.10/950-0186-pinctrl-bcm2835-Change-init-order-for-gpio-hogs.patch [1]
sunxi/patches-5.10/103-arm64-dts-allwinner-orangepi-zero-plus-fix-PHY-mo.patch [2]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.89&id=ba696b470839d70c6b8290c1f798bac7fb2a584c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.89&id=93a957bbf46ceb224b959de61fe85cfc6f71b6c7

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-01-03 13:06:25 +08:00
Beginner
9d4eae4a8e
ipt2socks microsocks: cleanup makefile (#8578)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-01-03 12:50:04 +08:00
Beginner
53227ee36a
tools/cmake: update to version 3.22.1 (#8579)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>

Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-01-03 12:49:09 +08:00
Beginner
24b49256a4
pdns-alt: refresh patches (#8587)
Co-authored-by: W_Y_CPP <383152993@qq.com>
2022-01-03 12:48:45 +08:00
lean
86b2e8ab49 kernel 5.15: fix AQR PHY ID patch 2022-01-02 21:50:32 +08:00
lean
e105008c7d fw3: add a hack to revert register tables implementation by torvalds in 5.15 2022-01-02 21:39:26 +08:00
lean
e38193fbab x86: make 32bit available in 5.15 2022-01-02 21:26:15 +08:00
Beginner
6c07b5cd72
openssl: bump to 1.1.1m (#8573)
This is a bugfix release.  Changelog:

  *) Avoid loading of a dynamic engine twice.
  *) Fixed building on Debian with kfreebsd kernels
  *) Prioritise DANE TLSA issuer certs over peer certs
  *) Fixed random API for MacOS prior to 10.12

Patches were refreshed.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>

Co-authored-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-01-02 17:23:58 +08:00
lean
c17e5fb4fd ipq807x: add missing symbol for QNAP 301w 2022-01-02 17:20:38 +08:00
lean
cc7063de8c ipq807x: add QNAP 301w (AX WIFI router with 4 1G and 2 10G ports) support 2022-01-02 12:24:33 +08:00
lean
5e4693f2ac k3screenctrl: fix PHICOMM K3 screen display off 2022-01-02 12:07:07 +08:00
lean
7b75725731 ntfs3-oot: disable on 5.15 2022-01-01 13:34:47 +08:00
lean
012d1ef0ef automount: add kmod-ntfs3 for 5.15 support 2022-01-01 13:31:28 +08:00
lean
772c5d2c8b kmod: add highspeed ntfs3 fs driver for 5.15 2022-01-01 13:29:20 +08:00
lean
23d753e060 wireguard: add support for 5.15 2022-01-01 13:13:48 +08:00
Beginner
ae4bace648
pdnsd-alt: fix kernel 5.15 build error (#8557)
Co-authored-by: SiYao Mo <msylgj@vip.qq.com>
2022-01-01 10:43:56 +08:00
lean
74b38ca2bf automount: replace antfs with ntfs3-oot 2021-12-31 16:05:40 +08:00
lean
8efdb24e81 mac80211: fix typo error 2021-12-31 14:46:23 +08:00
lean
8b87e9022f linux: fix asn1-encoder.ko 2021-12-31 14:31:10 +08:00
lean
011c015a6f ath10k: provide a build variant for small RAM devices 2021-12-31 11:50:34 +08:00
Christian Lamparter
440bb2bf81 linux-firmware: amd: consolidate amd's linux-firmware entries
this patch consolidates the amd64-microcode
(moved to linux-firmware.git, previously this was an extra
debian source package download), amdgpu and radeon firmwares
into a shared "amd" makefile.

With the upcoming 20211216 linux-firmware bump,
this will include a microcode update for ZEN 3 CPUs.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-12-31 10:43:27 +08:00
Hauke Mehrtens
7cba3a967b linux-firmware: Update to version 20121216
The rtl8723bs firmware was removed and a symlink to the rtl8723bu
firmware was created like it is done in upstream linux-firmware.

The following OpenWrt packages are changing:
* amdgpu-firmware: Multiple updates and new files
* ar3k-firmware: Multiple updates and new files
* ath10k-firmware-qca6174: Updated ath10k/QCA6174/hw3.0/board-2.bin
* bnx2x-firmware: Added bnx2x-e1-7.13.21.0.fw, bnx2x-e1h-7.13.21.0.fw and bnx2x-e2-7.13.21.0.fw
* iwlwifi-firmware-iwl8260c: Updated iwlwifi-8000C-36.ucode
* iwlwifi-firmware-iwl8265: Updated iwlwifi-8265-36.ucode
* iwlwifi-firmware-iwl9000: Updated iwlwifi-9000-pu-b0-jf-b0-46.ucode
* iwlwifi-firmware-iwl9260: Updated iwlwifi-9260-th-b0-jf-b0-46.ucode
* r8169-firmware: Updated rtl8153c-1.fw
* rtl8723bs-firmware: removed
* rtl8723bu-firmware: Added rtlwifi/rtl8723bs_nic.bin symlink
* rtl8822ce-firmware: Updated rtw8822c_fw.bin

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-12-31 10:41:36 +08:00
Javier Marcet
33a4c251a2 base-files: upgrade: fix efi partitions size calculation
We were missing (not using) the last sector of each partition,
compared with the output of gparted.

Signed-off-by: Javier Marcet <javier@marcet.info>
[moved the dot]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-12-31 10:40:40 +08:00
lean
77123eb4a4 kmod: re-add bnxt-en support 2021-12-31 10:29:05 +08:00
lean
93965c3bd4 kmod: fix kmod-fs-nfs missing dependencies 2021-12-31 10:12:04 +08:00
lean
c70ad2cd30 kernel: bump to 5.15.12 2021-12-31 01:07:59 +08:00
lean
773f94ca05 package:ntfs3 rename to ntfs3-oot 2021-12-31 00:45:36 +08:00
lean
b143589cf2 x86: improve sysinfo handling manufacturer like R86S etc. 2021-12-31 00:38:25 +08:00
lean
bcad74fa27 linux-firmware: add Intel GPU firmware files 2021-12-31 00:14:48 +08:00
lean
8d13d0a14c x86: add test version 5.15 2021-12-30 22:42:54 +08:00
lean
373d0aa212 Version update to R22.1.1 2021-12-30 20:08:51 +08:00
lean
01426ea8a0 x86: add linux kernel 5.15 support 2021-12-30 20:06:47 +08:00
lean
f1ac700efb ipq60xx: fix GL-AX1800 nand partition to avoid brick uboot 2021-12-30 17:51:46 +08:00
lean
75d9cc7272 fullconenat: fix compile error on Linux 5.15 2021-12-30 17:45:14 +08:00
lean
fc0f5e35b1 kernel: init linux kernel 5.15 support 2021-12-30 17:39:24 +08:00
Saxon
0be42d529b
UnblockNeteaseMusic: add local VIP and repair failure to replace 320K music source (#8538) 2021-12-29 02:41:56 +08:00
Beginner
1649b53b2b
tcpdump: libpcap: Remove http://www.us.tcpdump.org mirror (#8527)
The http://www.us.tcpdump.org mirror will go offline soon, only use the
normal download URL.

Reported-by: Denis Ovsienko <denis@ovsienko.info>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-12-28 10:35:35 +08:00
Beginner
781c800ce7
kernel: bump 5.10 to 5.10.88 (#8511)
Deleted (upstreamed):
mpc85xx/patches-5.10/002-powerpc-85xx-fix-oops-when-CONFIG_FSL_PMC-n.patch [1]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.88&id=151ffac3ac277ad7c2a5f201b566b56d97ed3a99

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-12-28 10:34:58 +08:00
AmadeusGhost
53c6795843 ipq807x: drop unsupported devices for orphan 2021-12-28 09:58:20 +08:00
lean
bb269d3df3 x86: switch to kernel 5.10 2021-12-27 16:58:49 +08:00
Saxon
f55d623079
UnblockNeteaseMusic: Bug Fix (#8524)
* UnblockNeteaseMusic: Change Redirect source

* Fix UnblockNeteaseMusic Version display error

* Fix UnblockNeteaseMusic update error

* Bump luci-app-unblockmusic PKG_RELEASE
2021-12-27 15:53:33 +08:00
Beginner
9f09554986
go-aliyundrive-webdav: update to 1.1.1 (#8523) 2021-12-26 01:24:45 +08:00
Beginner
c68d427fd1
aliyundrive-webdav: update to 1.1.0 (#8512)
Co-authored-by: messense <messense@icloud.com>
2021-12-26 01:24:35 +08:00
Beginner
f687033810
openssl: add ppc64 support (#8510)
Backport an upstream patch that adds support for ELFv2 ABI on big endian
ppc64. As musl only supports ELFv2 ABI on ppc64 regardless of
endianness, this is required to be able to build OpenSSL for ppc64be.

Modify our targets patch to add linux-powerpc64-openwrt, which will use
the linux64v2 perlasm scheme. This will probably break the combination
ppc64 with glibc, but as we really only want to support musl, this
shouldn't be a problem.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-12-24 15:00:31 +08:00
Beginner
1ba0b9f626
luci-app-baidupcs-web: Fix UCI is incorrect in the system log (#8515)
daemon.notice procd: /etc/rc.d/S90baidupcs-web: uci: Entry not found

Co-authored-by: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
2021-12-24 14:59:31 +08:00
lean
ad4916ff3f Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-12-23 00:40:24 +08:00
lean
c98f0b933e x86: init support for R86S network 2021-12-23 00:40:01 +08:00
aakkll
960a1b41d7
tools/mkimage: update to 2021.10 (#8481)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: Huangbin Zhan <zhanhb88@gmail.com>
2021-12-22 23:30:34 +08:00
Beginner
6445677afd
UnblockNeteaseMusic: bump to latest git HEAD (#8494) 2021-12-22 23:30:07 +08:00
He Cheng
6bc3781e62
luci-app-frpc: remove data type restriction of http_proxy (#8495) 2021-12-22 23:29:52 +08:00
木四水
01042589af
Add Support For OrangePi R1 Plus LTS (#8498) 2021-12-22 23:29:37 +08:00
AmadeusGhost
f07434ac6d rockchip: fixes module build error on 5.10
Fixes: #8484
2021-12-20 10:37:23 +08:00
Paul Spooren
353374ba04 build: prereq detect Python 3.10 for python3 binary
While the binary `python3.10` is correctly detected by the build system
the default `python3` binary is currently not detected if pointing to a
Python 3.10 installation.

Fix this by extending the grep regex.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-12-20 10:29:32 +08:00
Marcin Juszkiewicz
aa26cd69f8 prereq-build: recognize Python 3.10
Fedora 35 contains Python 3.10 as default version. Make use of it.
Fixes: #8456

Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
[fix commit subject]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-12-20 10:29:08 +08:00
Andre Heider
a74921fa77 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.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-12-20 10:26:32 +08:00
Beginner
9cfbc21464
luci-app-kodexplorer: update php8 deps (#8445)
deps update to php8 and nginx-ssl

Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-18 10:50:04 +08:00
Beginner
dbf54e83c3
dnsproxy: move package feeds (#8443)
from: 15098f4fcd
2021-12-18 10:49:47 +08:00
Boos4721
d5a1c39071
kernel: bump 5.10 to 5.10.87 (#8459)
* kernel: bump 5.10 to 5.10.86

Signed-off-by: boos4721 <3.1415926535boos@gmail.com>

* kernel: bump 5.10 to 5.10.87

Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
2021-12-18 10:49:25 +08:00
lean
ea5c0f0079 dpdk: add meson fix 2021-12-17 18:12:05 +08:00
lean
4702133800 dpdk: bump version 2021-12-17 18:09:10 +08:00
lean
5dbb1c0822 cmake: bump version 2021-12-17 17:18:40 +08:00
lean
cb6f72ed43 Revert "kernel: bump 5.4 to 5.4.165 (#8448)"
This reverts commit a8490915d3.
2021-12-17 17:16:42 +08:00
Beginner
a8490915d3
kernel: bump 5.4 to 5.4.165 (#8448)
All patches automatically rebased.

Build system: x86_64
Build-tested: ramips/mt7621*

*FS#4149 affects me so I had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e
in order to downgrade to 2.35.1

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-12-17 15:21:49 +08:00
Beginner
252bd55b5f
r8152: drop patch (#8455) 2021-12-17 15:21:25 +08:00
lean
ccf791cbd5 UnblockNeteaseMusic-Go: update to git lastest version 2021-12-17 14:06:59 +08:00
lean
09ebce5131 tools: add meson 2021-12-17 14:03:54 +08:00
Boos4721
0cadba2d40
kernel: bump 5.10 to 5.10.85 (#8434)
Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
2021-12-16 12:55:51 +08:00
AmadeusGhost
95afa84a8e
n2n: update to 3.0 (#8390) 2021-12-16 12:54:28 +08:00
ZhenYu
6e5aaa7b3d
CI: fix 'alternatives for my.cnf' problem (#8436)
* CI: fix alternatives for my.cnf problem

* CI: expand more compilation space
2021-12-16 12:54:14 +08:00
Beginner
9f16277f3e
r8152: Update to 2.15.20211119 (#8447)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-16 12:53:31 +08:00
AmadeusGhost
aa70c1a3cb luci-app-turboacc: fixes hwnat judgment on mediatek 2021-12-16 09:25:08 +08:00
AmadeusGhost
07054c38a8 Revert "luci-app-cifs-mounts: fix the URL to mounts (#8345)"
This reverts commit 647505ec81.
This is incorrect on luci 18.06.

Reported-by: GitHub user flyhong666
2021-12-16 09:23:21 +08:00
Shane Synan
be692b5939 ipq806x: revert SDC clock changes for NBG6817 MMC
Revert the SDC "CLK_SET_RATE_GATE" changes to the SDC clock regulator
structures.

See https://elinux.org/images/b/b8/Elc2013_Clement.pdf
> if ((clk->flags & CLK_SET_RATE_GATE) && clk->prepare_count) {
>
> For this particular clock, setting its rate is possible only if the
> clock is ungated (not yet prepared)

This fixes the MMC failing to initialize on newer ZyXEL NBG6817
hardware revisions with Kingston MMC.  Older revisions should
hopefully be unaffected.

Check MMC hardware details with:
cd /sys/block/mmcblk0/device/ && \
  tail -v cid date name manfid fwrev hwrev oemid rev

Known problematic MMC names (broken before this commit):
* M62704 (dated 12/2018) via myself
* M62704 (dated 11/2018) via Drake Stefani

Known unaffected MMC names (already working without this commit):
* S10004 (dated 12/2015) via slh

Now, the MMC properly initializes and later switches to high speed.

Thanks to:
* Ansuel for maintaining/help with the IPQ806x platform, kernel code
* slh for additional debugging and suggestions
* dwfreed for confirming newer MMC details, clock frequency
* robimarko for device driver debug printing help, clock debugging
* Drake for testing and confirmation with their own newer NBG6817
...and anyone else I missed!

Signed-off-by: Shane Synan <digitalcircuit36939@gmail.com>
Tested-by: Shane Synan <digitalcircuit36939@gmail.com>
2021-12-16 09:22:06 +08:00
lxhao61
1c63672349
luci-app-softethervpn: correct download link for Mac OS (#8444) 2021-12-15 23:29:13 +08:00
Junle Fong
77fe3c1a3c
ramips: mt76x8: add missing config (#8440)
update kernel config file.
2021-12-15 15:38:10 +08:00
lxhao61
79796a0bf4
luci-app-softethervpn: correct the link of SoftEtherVPN Manager (#8439) 2021-12-15 10:20:25 +08:00
Josef Schlehofer
093f822043
luci-app-softethervpn: update provided links for SoftEtherVPN clients (#8435)
I updated the link for downloading Windows client to download the latest
currently available version instead of using beta version, which is not
good to use in production.

Also, the macOS link led to the OpenVPN server, which was wrong. It should
be a client. It was updated to the latest version as well.
2021-12-15 00:10:16 +08:00
ntlf9t
b57240d4ce
r8125: turn on multi-queue support and turn off ASPM (#8433)
开启RTL8125B的多队列支持和关闭ASPM
2021-12-14 20:30:09 +08:00
ntlf9t
ab8bdce1c2
Update easymesh (#8416)
修复丢失的lan配置
2021-12-12 01:25:54 +08:00
Boos4721
1e368cb085
kernel: bump 5.10 to 5.10.84 (#8411)
Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
2021-12-10 23:47:33 +08:00
ntlf9t
841b4bb650
luci-app-easymesh: update to v1.9 (#8409) 2021-12-10 09:00:09 +08:00
lean
06b8f98e25 ipq60xx: add GL.iNet AX1800 init support 2021-12-09 17:23:11 +08:00
AmadeusGhost
5c40fcd80e ipq806x: update some script paths 2021-12-09 10:25:20 +08:00
Chen Minqiang
2652e567f5 ramips: add mt7620-nand driver for NAND flash
This add the mt7620-nand driver and enable nand ubifs for
mt7620 subtarget, closed: #8097, #8402, #8405

Fixes: 3625a730 ("ramips: switch to kernel 5.10")

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2021-12-09 10:20:09 +08:00
aakkll
7d11f9ad7a
x86: added support to generate VHDX images (#8399)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: Oldřich Jedlička <oldium.pro@gmail.com>
2021-12-08 16:10:18 +08:00
aakkll
2972a0502d
base-files: add eMMC sysupgrade support (#8400)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: Enrico Mioso <mrkiko.rs@gmail.com>
2021-12-08 16:09:15 +08:00
AmadeusGhost
4bdb51efa0 ramips: JCG Q20: add pbboot mod version
Add the missing part, fixes: #8391
2021-12-06 15:09:07 +08:00
AmadeusGhost
f8a982515a Revert "Add JCG Q10 PRO(the same as JCG Q20) with CR660x pb-boot support, change switch to swconfig from DSA. (#8391)"
This reverts commit 83b646937f. Since
it is exactly the same, there is no need to add as a new device.
2021-12-06 14:45:18 +08:00
dsanke
83b646937f
Add JCG Q10 PRO(the same as JCG Q20) with CR660x pb-boot support, change switch to swconfig from DSA. (#8391) 2021-12-06 13:55:01 +08:00
lean
0b002d6c22 ipq60xx: add new target initial support 2021-12-06 13:50:45 +08:00
lean
c5917936b1 luci-app-qbittorrent: change x64 default use dynamic build 2021-12-05 19:24:12 +08:00
lean
2598209e44 libtorrent: bump to 1.2.15 2021-12-05 19:21:06 +08:00
lean
ff1bcf8da9 x86: add lspci and lsusb tools 2021-12-05 18:29:10 +08:00
aakkll
a6f79ace50
busybox: update to 1.33.2 bugfix release (#8386)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2021-12-05 18:22:36 +08:00
lxhao61
5d0ad9332a
Update Makefile (#8383) 2021-12-05 18:22:20 +08:00
Liam Luo
549eea3251
ramips: add support for RAISECOM MSG1500 Z.00 (#8385)
Hardware:
  SoC: MediaTek MT7621AT
  Flash: SPI NOR 16MB
  RAM: DDR3 64MB
  2.4GHz: MT7603EN bgn 2x2
  5GHz: MT7612EN nac 2x2
  Ethernet: 1 x WAN and 4 x LAN
  USB: 1 x 3.0
  Button: Reset, WPS

Note: the flash memory capacity is only 64MB.
      You may need to uncheck some options to ensure normal startup.

Signed-off-by: LINGJP <lonelyjskj@gmail.com>
2021-12-05 18:21:56 +08:00
lean
37828c4b47 mediatek: Add support for Xiaomi Redmi Router AX6S 2021-12-03 12:25:39 +08:00
Beginner
0cd887f7b5
kernel: bump 5.10 to 5.10.83 (#8374)
Removed upstreamed:
    bcm53xx/patches-5.10/033-v5.16-0024-ARM-dts-BCM5301X-Fix-I2C-controller-interrupt.patch[1]
    bcm53xx/patches-5.10/033-v5.16-0025-ARM-dts-BCM5301X-Add-interrupt-properties-to-GPIO-no.patch[2]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.83&id=b2cd6fdcbe0a5cb44e4610a08cc58261d494a885
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.83&id=9db1d4a3c2700e1cc84c3d61199411d75c2a3ec6

Build system: x86_64*
Build-tested: bcm2711/RPi4B, ipq806x/R7800†
Run-tested: bcm2711/RPi4B, ipq806x/R7800†

* Had to revert 7c99085bd69742f66207d61e9f2da5ec4f8f9d2f in order to build
  (latest bump of ca-certificates)

† Had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e in order to build
  (binutils 2.37, https://bugs.openwrt.org/index.php?do=details&task_id=4149)

Signed-off-by: graysky <graysky@archlinux.us>

Co-authored-by: graysky <graysky@archlinux.us>
2021-12-03 12:10:21 +08:00
AmadeusGhost
006ca1d9b4
r8125: update to 9.007.01 (#8380) 2021-12-03 12:10:06 +08:00
aakkll
0bc4089e81
go-aliyundrive-webdav: update to 1.0.20 (#8373)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2021-12-02 22:45:21 +08:00
ntlf9t
d4fbc4959b
Bypassing the HH3K up to 2.5Gbps using a BCM578xx (#8377)
https://www.dslreports.com/forum/r32230041-Internet-Bypassing-the-HH3K-up-to-2-5Gbps-using-a-BCM57810S-NIC
2021-12-02 22:24:37 +08:00
zhouF96
52689b9a0f
kernel: add module for bcm574xx 575xx serials (#8369)
kernel: add module for bnxt_en Linux driver for the 
Broadcom NetXtreme-C/NetXtreme-E 
BCM573xx, BCM574xx, BCM575xx, NetXtreme-S BCM5880x
(up to 200 Gbps) Ethernet Network Controllers and Broadcom Nitro
BCM58700 4-port 1/2.5/10 Gbps Ethernet Network Controller.
2021-12-01 18:41:59 +08:00
AmadeusGhost
525d69c5d7 uugamebooster: add default conffiles 2021-11-30 10:38:58 +08:00
Rosen Penev
8fc090abcb tools/libressl: update to 3.4.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-11-30 10:18:55 +08:00
Rosen Penev
304c55713a tools/libressl: update to 3.3.4
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-11-30 10:18:28 +08:00
Rosen Penev
b7995944fa tools/libressl: update to 3.3.3
Fix wrong FPIC variable usage. Fixes compilation under sparc64 host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-11-30 10:18:03 +08:00
Ivan Pavlov
f571a6bf66 tools/libtool: update to 2.4.2
Refresh patches.
Remove upstreamed: 001-fix-func_append.patch

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2021-11-30 10:08:31 +08:00
Beginner
647505ec81
luci-app-cifs-mounts: fix the URL to mounts (#8345)
Co-authored-by: klever1988 <56048681+klever1988@users.noreply.github.com>
2021-11-30 01:22:29 +08:00
Beginner
899ff7b21a
rclone: add missing pkginfo (#8351)
Co-authored-by: Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-30 01:22:17 +08:00
Beginner
6ca9a1b1a8
treewide: fix http/https protocol on some packages (#8350)
Not tested, but this shouldn't affect anything.

Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2021-11-30 01:22:04 +08:00
Beginner
d259439b3b
UnblockNeteaseMusic: bump to latest git HEAD (#8353) 2021-11-30 01:21:35 +08:00
Stan Grishin
c15d7bc773 wolfssl: enable ECC Curve 25519 by default
Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-11-30 00:38:22 +08:00
Ivan Pavlov
63388d9b69 wolfssl: fix compile when enable-devcrypto is set
fixing linking error when --enable-devcrypto=yes
fixes: 7d92bb050961 wolfssl: update to 4.8.1-stable

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2021-11-30 00:37:43 +08:00
Andre Heider
fea265b6a0 wolfssl: remove --enable-sha512 configure switch
It's the default anyway and this just looks confusing, as if it wasn't.

Switch to AUTORELEASE while at it.

The binary size is unchanged.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-11-30 00:37:10 +08:00
Andre Heider
1fe5c9fb40 wolfssl: always build with --enable-reproducible-build
This gates out anything that might introduce semantically frivolous jitter,
maximizing chance of identical object files.

The binary size shrinks by 8kb:
1244352 staging_dir/target-mipsel_24kc_musl/usr/lib/libwolfssl.so.4.8.1.39c36f2f
1236160 staging_dir/target-mipsel_24kc_musl/usr/lib/libwolfssl.so.4.8.1.39c36f2f

Signed-off-by: Andre Heider <a.heider@gmail.com>
2021-11-30 00:36:25 +08:00
Andre Heider
05e99f51e4 wolfssl: build with WOLFSSL_ALT_CERT_CHAINS
"Alternate certification chains, as oppossed to requiring full chain
validataion. Certificate validation behavior is relaxed, similar to
openssl and browsers. Only the peer certificate must validate to a trusted
certificate. Without this, all certificates sent by a peer must be
used in the trust chain or the connection will be rejected."

This fixes e.g. uclient-fetch and curl connecting to servers using a Let's
Encrypt certificate which are cross-signed by the now expired
DST Root CA X3, see [0].

This is the recommended solution from upstream [1].

The binary size increases by ~12.3kb:
1236160 staging_dir/target-mipsel_24kc_musl/usr/lib/libwolfssl.so.4.8.1.39c36f2f
1248704 staging_dir/target-mipsel_24kc_musl/usr/lib/libwolfssl.so.4.8.1.39c36f2f

[0] https://github.com/openwrt/packages/issues/16674
[1] https://github.com/wolfSSL/wolfssl/issues/4443#issuecomment-934926793

Signed-off-by: Andre Heider <a.heider@gmail.com>
[bump PKG_RELEASE]
Signed-off-by: David Bauer <mail@david-bauer.net>
2021-11-30 00:36:03 +08:00
Ivan Pavlov
09b49156bf wolfssl: update to 4.8.1-stable
Changes from 4.7.0:
  Fix one high (OCSP verification issue) and two low vulnerabilities
  Improve compatibility layer
  Other improvements and fixes

For detailed changes refer to https://github.com/wolfSSL/wolfssl/releases

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
2021-11-30 00:35:31 +08:00
AmadeusGhost
b9e4f343a2 Revert "fix mtkwifi iface down after restart br-lan as workaround"
This reverts commit ab08f8306e
due to it did not fix any problems.
2021-11-30 00:28:32 +08:00
AmadeusGhost
fc1b9acad3 Revert "import luci-app-diskman and luci-app-diskman from lisaac"
This reverts commit dbf4b59e8e.
2021-11-30 00:18:27 +08:00
lean
bb3d86eb9a x86: add BCM57414 BNX2X driver 2021-11-29 18:51:19 +08:00
lean
fa06c2a99e Version update to R21.12.1 2021-11-29 18:20:11 +08:00
lean
2672bfdc9d x86: add new packages 2021-11-29 18:19:00 +08:00
lean
dbf4b59e8e import luci-app-diskman and luci-app-diskman from lisaac 2021-11-29 17:57:58 +08:00
lean
431a8f0e2c x86: change target package 2021-11-29 16:46:19 +08:00
lean
e0b8803b71 autosamba: skip mount /boot on x86 2021-11-29 16:13:03 +08:00
aakkll
a5559680e1
iproute2: update to 5.15 (#8321)
from https://git.kernel.org/pub/scm/network/iproute2/iproute2.git

changes since 5.14.0:

ad3a118f rdma: Fix SRQ resource tracking information json
7a235a10 man: devlink-port: fix pfnum for devlink port add
229eaba5 uapi: pickup fix for xfrm ABI breakage
a500c5ac lib/bpf: fix map-in-map creation without prepopulation
7c032cac man: devlink-port: remove extra .br
04ee8e6f man: devlink-port: fix style
14802d84 man: devlink-port: fix the devlink port add synopsis
897772a7 cmd: use spaces instead of tabs for usage indentation
e7a98a96 mptcp: unbreak JSON endpoint list
2f5825cb lib: bpf_legacy: fix bpffs mount when /sys/fs/bpf exists
d756c08a tc/f_flower: fix port range parsing
92e32f77 uapi: updates from 5.15-rc1
e7e0e2ce iptuntap: fix multi-queue flag display
deef844b man: ip-link: remove double of
a3272b93 configure: restore backward compatibility
ceba5930 tree-wide: fix some typos found by Lintian
7a705242 ip: remove leftovers from IPX and DECnet
8ab1834e uapi: update headers from 5.15 merge
6d0d35ba ip/bond: add lacp active support
926ad641 Update kernel headers
c730bd0b ip/tunnel: always print all known attributes
df8912ed ipioam6: use print_nl instead of print_null
7e7270bb tc/skbmod: Introduce SKBMOD_F_ECN option
86c596ed IOAM man8
2d83c710 New IOAM6 encap type for routes
f0b3808a Add, show, link, remove IOAM namespaces and schemas
acbdef93 Import ioam6 uapi headers
2d6fa30b Update kernel headers
508ad89c ipneigh: add support to print brief output of neigh cache in tabular format

* update patch 170-ip_tiny.patch to accomodate ioam.

Signed-off-by: Russell Senior <russell@personaltelco.net>

Co-authored-by: Russell Senior <russell@personaltelco.net>
2021-11-29 13:15:59 +08:00
NagaseKouichi
31146a592c
uugamebooster: bump to v2.18.2 (#8335) 2021-11-29 10:20:54 +08:00
lean
cbbb438afb ramips: add missing symbols for mt7620 2021-11-28 01:48:48 +08:00
Beginner
80bb1fbd20
luci-app-frps: add open page link (#8331)
Co-authored-by: zxlhhyccc <45259624+zxlhhyccc@users.noreply.github.com>
2021-11-28 00:41:07 +08:00
Hugo Yuan
5efd70f89f
ipq806x: Add Norton 518 support (#8330) 2021-11-27 18:15:26 +08:00
aakkll
aeb1792a4c
kernel: bump 5.4 to 5.4.162 (#8318)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-27 18:14:55 +08:00
Hugo Yuan
010702bc1a
base-file: Add mmc support (#8329) 2021-11-27 18:14:36 +08:00
Beginner
31fc43272d
kernel: bump 5.10 to 5.10.82 (#8303)
* kernel: bump 5.10 to 5.10.81

Manually rebased:
    octeontx/patches-5.10/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch

All other patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Build system: x86_64
Build-tested: bcm2711/RPi4B, ipq806x/R7800
Run-tested: bcm2711/RPi4B, ipq806x/R7800

* kernel: bump 5.10 to 5.10.82

Removed upstreamed:
    bcm53xx/patches-5.10/033-v5.16-0014-ARM-dts-NSP-Fix-mpcore-mmc-node-names.patch

Manually rebased:
    ipq806x/patches-5.10/086-ipq8064-fix-duplicate-node.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-27 03:02:35 +08:00
Beginner
226be6c0b7
luci-app-vlmcsd: adjust input box (#8316) 2021-11-27 03:02:19 +08:00
Beginner
c2ed5616ef
luci-app-frps: fix status bar (#8315) 2021-11-26 18:19:23 +08:00
Beginner
f07303d327
luci-app-kodexplorer: revert some code (#8314) 2021-11-26 17:12:46 +08:00
Beginner
ce23910647
dnsproxy: update to 0.39.12 (#8309) 2021-11-26 07:12:14 +08:00
Hugo Yuan
19a764717d
ipq806x: fix compile error (#8311) 2021-11-26 07:11:53 +08:00
Beginner
f0ff6b98d6
aliyundrive-webdav: update to 1.0.0 (#8301)
Co-authored-by: messense <messense@icloud.com>
2021-11-24 14:39:51 +08:00
aakkll
835ed78fc3
kernel: bump 5.4 to 5.4.161 (#8294)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-24 14:38:23 +08:00
hejiawencc
9bce8084a0
rockchip: fix rk3399 DoorNet2 emmc clk (#8295) 2021-11-24 14:37:30 +08:00
Beginner
238eb30fa0
dnsmasq: fix ismounted check (#8300)
Fix the return value, shell return codes should be 0 to indicate success
(i.e. mount point found), 1 should be failure (i.e. mount point not-found).

Fixes: ac4e8aa ("dnsmasq: fix more dnsmasq jail issues")
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>

Co-authored-by: Oldřich Jedlička <oldium.pro@gmail.com>
2021-11-24 14:37:04 +08:00
Rosy Song
3b9dc892cb ppp: don't start ppp with IPv6 support if ipv6 is not supported
Fixes: #8286

Signed-off-by: Rosy Song <rosysong@rosinson.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2021-11-24 14:03:24 +08:00
SiYao Mo
a7d417c90d luci-app-arpbind: fix init doesn't work
Fixes: #8298
2021-11-24 13:56:17 +08:00
Beginner
96776d7d0b
ethtool: update to version 5.15 (#8289)
cef54c4 Release version 5.15.
23beb39 update UAPI header copies
fd7db64 netlink: settings: Correct duplicate condition
88892ec Merge branch 'review/module-fixes-2-v2'
79cb4ab sff-8636: Remove extra blank lines
128e97c sff-8636: Convert if statement to switch-case
7ff603b sff-8636: Fix incorrect function name
86e9784 sff-8636: Remove incorrect comment
001aecd cmis: Correct comment
1bad83c cmis: Fix wrong define name
2c2fa88 cmis: Fix CLEI code parsing
d007b49 Merge branch 'review/module-fixes' into master
a7431bc netlink: eeprom: Fix compilation when pretty dump is disabled
d02409c ethtool: Fix compilation warning when pretty dump is disabled
2ddb1a1 netlink: eeprom: Fallback to IOCTL when a complete hex/raw dump is requested
7e153a7 cmis: Fix invalid memory access in IOCTL path
769a50e sff-8636: Fix parsing of Page 03h in IOCTL path

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

Co-authored-by: Hans Dedecker <dedeckeh@gmail.com>
2021-11-22 01:15:03 +08:00
Beginner
fce2887380
kernel: bump 5.4 to 5.4.159 (#8255)
Manually rebased:
    generic-backport/850-v5.13-usb-ehci-add-spurious-flag-to-disable-overcurrent-ch.patch

All other patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-22 01:14:50 +08:00
Beginner
95f915abf1
luci-app: tidy up code (#8277)
1.文件尾部添加换行并删除多余的换行

2.整理代码,看起来更直观

3.更正文件的权限

4.将一些文件的CR LF末行符全部转为LF
2021-11-21 14:48:21 +08:00
Beginner
3c36b75de5
dnsproxy: Update to 0.39.11 (#8281) 2021-11-21 14:42:35 +08:00
Beginner
86de1e7158
UnblockNeteaseMusic: bump to latest git HEAD (#8276) 2021-11-20 01:43:04 +08:00
Beginner
56de0725a4
kernel: bump 5.10 to 5.10.80 (#8280)
Deleted (upstreamed):
ath79/patches-5.10/921-serial-core-add-support-for-boot-console-with-arbitr.patch [1]
bcm53xx/patches-5.10/033-v5.15-0012-ARM-dts-BCM5301X-Fix-memory-nodes-names.patch [2]
lantiq/patches-5.10/0016-mtd-rawnand-xway-Keep-the-driver-compatible-with-on-.patch [3]
lantiq/patches-5.10/0110-MIPS-lantiq-dma-add-small-delay-after-reset.patch [4]
lantiq/patches-5.10/0111-MIPS-lantiq-dma-reset-correct-number-of-channel.patch [5]
lantiq/patches-5.10/0112-MIPS-lantiq-dma-fix-burst-length-for-DEU.patch [6]

Manually rebased:
ipq806x/patches-5.10/0065-arm-override-compiler-flags.patch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=47462c5e600fbaffd755cd13dedd80d04e41ff83
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=2fde76df1885a6bec04317e457121326070450eb
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=9b366f5221d8aa64b22f35be137a5749326444ce
[4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=5af57ce8a6155fe3e4270d28d171abf8903bebc0
[5] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=b92a5df2c7adc79a57481445f67de0c1c716581f
[6] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=6b72caabc47011d03f44064452b2c65e8ed18326

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-11-20 01:41:26 +08:00
Chiyuki Kagura
95a749a925
uugamebooster: bump to v2.18.0 (#8273) 2021-11-18 17:26:36 +08:00
Beginner
495fe886a3
luci-app-accesscontrol: tidy up code (#8241) 2021-11-16 20:33:55 +08:00
lean
ab08f8306e fix mtkwifi iface down after restart br-lan as workaround 2021-11-16 20:30:11 +08:00
lean
e3fdf4d8f6 ppp: bump to 2.4.9 2021-11-16 18:05:30 +08:00
Beginner
9e8387f5bb
dnsmasq: sync upstream (#8245)
* dnsmasq: add ubus acl to allow calls to hotplug.tftp object

dnsmasq may call hotplug.dhcp, hotplug.neigh and hotplug.tftp.
Only the first two callees were listed in the ACL, so add missing
hotplug.tftp.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* dnsmasq: fix the dynamic dns object names patch

We can't use booleans, since we're not including stdbool.h. Use integers
instead.

Fixes: 0b79e7c01e ("dnsmasq: generate the dns object name dynamically")

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-11-16 16:19:06 +08:00
Beginner
298dfb71b8
luci-app-openvpn-server: tidy up luci (#8217) 2021-11-16 16:18:46 +08:00
Beginner
f31188e2f2
luci-app-softethervpn: tidy up luci (#8214) 2021-11-16 16:18:33 +08:00
AmadeusGhost
156a636522 rockchip: apply patches for GuangMiao G4C
Only God knows how to soft reset it.
2021-11-15 13:19:01 +08:00
Chen Minqiang
e38d76d36e umbim: fixup ipv6 address and gateway for pd 2021-11-15 09:16:22 +08:00
Howard Chu
0470e2a73d umbim: Fix typos, PIN check, IP config
Add pdptype param, for selecting IPv4, IPv6, or IPv4v6
Fix check for required PIN, only pin1 (SIM pin) matters
Get IP config directly from modem, no need for DHCP
Fix return value from proto_mbim_setup()

Signed-off-by: Howard Chu <hyc@symas.com>
2021-11-15 09:15:45 +08:00
Beginner
e3373ca72e
luci-app-nps: tidy up luci (#8218) 2021-11-14 23:21:23 +08:00
Beginner
2e5f50cde9
kernel: bump 5.10 to 5.10.79 (#8246)
Manually rebased:
generic/backport-5.10/810-v5.13-usb-ehci-add-spurious-flag-to-disable-overcurrent-ch.patch

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-11-14 23:14:51 +08:00
hubbylei
bde47d3529
Update cpuinfo (#8250)
Fix errors in scripts
2021-11-13 21:30:01 +08:00
Beginner
894cba13b1 toolchain/musl: update to 1.2.2
Closed: #7989, #8108, #8199
2021-11-13 01:17:10 +08:00
AmadeusGhost
144217fada qBittorrent-static: fix download failure issue
Fixes: a623e3b ("qbittorrent: bump to v4.3.8")
Closed: #8209
2021-11-13 00:37:29 +08:00
AmadeusGhost
9991d3dd69 ipq-wifi: drop useless files
Fixes: d76ef71 ("ipq40xx: Add ZTE MF263 support")
2021-11-13 00:34:30 +08:00
i=菜鸡一批
2c139883e4
Make up the ipq temperature (#8244)
* Make up the ipq temperature

* Update cpuinfo

* 给bcm27xx加个温度吧。
2021-11-13 00:17:35 +08:00
Beginner
49f943873f
pdnsd-alt: cleanup Makefile (#8236)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-12 16:35:50 +08:00
Beginner
ea3e9f2fe1
dns2socks: cleanup Makefile (#8237)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-12 16:35:38 +08:00
i=菜鸡一批
e65535d3cf
rockchip:rk3399 increases the frequency of complete information of the big core (#8232)
* Update cpuinfo

* Add files via upload

Co-authored-by: KLT007 <84753324+KLT007@users.noreply.github.com>
2021-11-11 18:09:46 +08:00
Beginner
5390702074
aliyundrive-webdav: update to 0.5.5 (#8225)
Co-authored-by: messense <messense@icloud.com>
2021-11-11 09:26:34 +08:00
Beginner
2d8602fd87
luci-app-go-aliyundrive-webdav: sync upstream (#8228) 2021-11-11 09:26:25 +08:00
hejiawencc
7addb7e937
rockchip: add support for Embedfire DoorNet2 (#8226) 2021-11-11 09:26:13 +08:00
Beginner
ed74889e7e
dnsmasq: generate the dns object name dynamically (#8227)
Fixes an issue with running multiple dnsmasq instances

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2021-11-11 09:22:18 +08:00
Beginner
e2307cd837
luci-app-xlnetacc: tidy up code (#8196) 2021-11-10 15:45:29 +08:00
Beginner
fed785d92f
luci-app-unblockmusic: tidy up code (#8197) 2021-11-10 15:44:55 +08:00
Beginner
38162e62b3
dnsmasq: sync upstream (#8212)
* dnsmasq: add support for monitoring and modifying dns lookup results via ubus

The monitoring functionality will be used for dns rule support in qosify

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* dnsmasq: add match_tag for --dhcp-host

A set of tags can be specified for --dhcp-host option to restrict the
assignment to the requests which match all the tags.

Example usage:

config vendorclass
        option networkid 'udhcp'
        option vendorclass 'udhcp'

config host
        option mac '*:*:*:*:*:*'
        list match_tag 'switch.10'
        list match_tag 'udhcp'
        option ip '192.168.25.10'

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
Co-authored-by: Paul Fertser <fercerpav@gmail.com>
2021-11-10 15:42:48 +08:00
Beginner
3425c80725
dnsproxy: update to 0.39.10 (#8211) 2021-11-10 15:41:44 +08:00
Beginner
0ed591b402
luci-app-frpc: tidy up code (#8168) 2021-11-10 15:34:23 +08:00
Beginner
ac2d41bd27
luci-app-vlmcsd: fix fatch (#8223)
Co-authored-by: EnnawYang <6705663+EnnawYang@users.noreply.github.com>
2021-11-10 15:33:26 +08:00
zxlhhyccc
04d5160fa8
go-aliyundrive-webdav:Update to v1.0.15 (#8203) 2021-11-09 08:06:48 +08:00
Beginner
b442cc508b
kernel: bump 5.4 to 5.4.158 (#8207)
All patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-09 08:06:15 +08:00
Beginner
937f01bea2
go-aliyundrive-webdav: update to 1.0.14 (#8186) 2021-11-08 13:16:35 +08:00
Beginner
f5ecabe9e7
rclone: update to 1.57.0 (#8169)
Co-authored-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-08 13:10:40 +08:00
Beginner
127cb57051
aliyundrive-webdav: update to 0.5.4 (#8195)
Co-authored-by: messense <messense@icloud.com>
2021-11-08 13:10:23 +08:00
lean
0f25fd18ee rockchip: swtich kernel to 5.4 2021-11-08 13:07:33 +08:00
lean
0977610352 rockchip: add support for HuaKe GuangMiao G4C by AmadeusGhost 2021-11-08 12:55:54 +08:00
14771 changed files with 1694250 additions and 1413116 deletions

View File

@ -1,20 +0,0 @@
反馈bug/问题模板,提建议请删除
## 1.关于你要提交的问题
Q是否搜索了issue (使用 "x" 选择)
* [ ] 没有类似的issue
## 2. 详细叙述
### (1) 具体问题
A
### (2) 路由器型号和固件版本
A
### (3) 详细日志
A

32
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: 问题描述
description: 反馈问题模板
body:
- type: textarea
id: description
attributes:
label: 详细叙述
description: 详细叙述问题
validations:
required: true
- type: checkboxes
id: duplicate_issue
attributes:
label: 重复 issue
description: 是否搜索了 issues
options:
- label: 没有类似的 issue
required: true
- type: input
id: model_name
attributes:
label: 具体型号
description: 硬件型号
validations:
required: true
- type: textarea
id: details_log
attributes:
label: 详细日志
description: make V=s -j1 时的问题日志
validations:
required: true

6
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,6 @@
---
blank_issues_enabled: false
contact_links:
- name: discussion
url: https://github.com/coolsnowwolf/lede/discussions
about: Please ask and answer questions here.

View File

@ -1,2 +1,4 @@
Q你知道这是`pull request`吗?(使用 "x" 选择) # Pull Request 规则,创建时请删除
* [ ] 我知道
- 禁止有关 "GitHub Actions" 的提交
- 禁止使用 users.noreply.github.com 提交

View File

@ -10,39 +10,37 @@ name: OpenWrt-CI
on: on:
schedule: schedule:
- cron: 0 20 * * * - cron: 0 20 * * *
release:
types: [published] permissions:
contents: read
jobs: jobs:
build_openwrt: build_openwrt:
name: Build OpenWrt firmware name: Build OpenWrt Firmware
runs-on: ubuntu-latest runs-on: ubuntu-22.04
if: github.event.repository.owner.id == github.event.sender.id
steps: steps:
- name: Space cleanup and Initialization environment
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
- name: Space cleanup
env: env:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
run: | run: |
docker rmi `docker images -q` docker rmi `docker images -q`
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d sudo -E rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d /usr/local/lib/android
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* android* sudo -E apt-mark hold grub-efi-amd64-signed
sudo -E apt-get update sudo -E apt update
sudo -E apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler antlr3 gperf swig sudo -E apt -y purge azure-cli* docker* ghc* zulu* llvm* firefox google* dotnet* powershell* openjdk* mysql* php* mongodb* dotnet* snap*
sudo -E apt-get -y autoremove --purge sudo -E apt -y full-upgrade
sudo -E apt-get clean sudo -E apt -y install ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext genisoimage git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev libssl-dev libtool llvm lrzsz msmtp ninja-build p7zip p7zip-full patch pkgconf python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
sudo -E systemctl daemon-reload
sudo -E apt -y autoremove --purge
sudo -E apt clean
sudo -E timedatectl set-timezone "Asia/Shanghai"
df -h - name: Checkout OpenWrt
uses: actions/checkout@v4
- name: Update feeds - name: Update feeds
run: | run: |
@ -53,10 +51,8 @@ jobs:
- name: Generate configuration file - name: Generate configuration file
run: make defconfig run: make defconfig
- name: Make download - name: Download packages
run: | run: make download -j16
make download -j8
find dl -size -1024c -exec rm -f {} \;
- name: Compile firmware - name: Compile firmware
run: | run: |
@ -72,38 +68,26 @@ jobs:
- name: Prepare artifact - name: Prepare artifact
run: | run: |
mkdir -p ./artifact/firmware
mkdir -p ./artifact/package mkdir -p ./artifact/package
mkdir -p ./artifact/buildinfo mkdir -p ./artifact/buildinfo
rm -rf $(find ./bin/targets/ -type d -name "packages") rm -rf $(find ./bin/targets/ -type d -name "packages")
cp -rf $(find ./bin/targets/ -type f) ./artifact/firmware/
cp -rf $(find ./bin/packages/ -type f -name "*.ipk") ./artifact/package/ cp -rf $(find ./bin/packages/ -type f -name "*.ipk") ./artifact/package/
cp -rf $(find ./bin/targets/ -type f -name "*.buildinfo" -o -name "*.manifest") ./artifact/buildinfo/ cp -rf $(find ./bin/targets/ -type f -name "*.buildinfo" -o -name "*.manifest") ./artifact/buildinfo/
- name: Deliver buildinfo - name: Upload buildinfo
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: OpenWrt_buildinfo name: OpenWrt_buildinfo
path: ./artifact/buildinfo/ path: ./artifact/buildinfo/
- name: Deliver package - name: Upload package
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: OpenWrt_package name: OpenWrt_package
path: ./artifact/package/ path: ./artifact/package/
- name: Deliver firmware - name: Upload firmware
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: OpenWrt_firmware name: OpenWrt_firmware
path: ./bin/targets/ path: ./bin/targets/
- name: Upload release asset
if: github.event == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.YOURTOKEN }}
file: ./artifact/firmware/*
tag: ${{ github.ref }}
file_glob: true

65
.gitignore vendored
View File

@ -1,33 +1,32 @@
*.o *.o
.DS_Store .DS_Store
.*.swp .*.swp
/env /env
/dl /dl
/.config /.config
/.config.old /.config.old
/bin /bin
/build_dir /build_dir
/staging_dir /staging_dir
/tmp /tmp
/logs /logs
/feeds /feeds
/feeds.conf /feeds.conf
/files /files
/overlay /overlay
/package/feeds /package/feeds
/package/openwrt-packages /package/openwrt-packages
key-build* /*.patch
*.orig key-build*
*.rej *.orig
*~ *.rej
.#* *~
*# .#*
.emacs.desktop* *#
TAGS*~ .emacs.desktop*
git-src TAGS*~
.git-credentials git-src
/*.log .project
.project .cproject
.cproject .ccache
.ccache .vscode*
.vscode*

View File

@ -2,10 +2,10 @@
# #
# Copyright (C) 2006-2013 OpenWrt.org # Copyright (C) 2006-2013 OpenWrt.org
mainmenu "OpenWrt Configuration" mainmenu "LEDE Configuration"
config MODULES config MODULES
option modules modules
bool bool
default y default y
@ -13,6 +13,14 @@ config HAVE_DOT_CONFIG
bool bool
default y default y
HOST_OS := $(shell, uname)
config HOST_OS_LINUX
def_bool $(shell, ./config/check-uname.sh Linux)
config HOST_OS_MACOS
def_bool $(shell, ./config/check-uname.sh Darwin)
source "target/Config.in" source "target/Config.in"
source "config/Config-images.in" source "config/Config-images.in"

View File

@ -10,12 +10,14 @@ export TOPDIR LC_ALL LANG TZ
empty:= empty:=
space:= $(empty) $(empty) space:= $(empty) $(empty)
$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt directory must not include any spaces)) $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the LEDE directory must not include any spaces))
world: world:
DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1) DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -e '/usr' -e '/nix/store' -m 1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
export ORIG_PATH:=$(if $(ORIG_PATH),$(ORIG_PATH),$(PATH))
export PATH:=$(if $(STAGING_DIR),$(abspath $(STAGING_DIR)/../host/bin),$(TOPDIR)/staging_dir/host/bin):$(PATH)
ifneq ($(OPENWRT_BUILD),1) ifneq ($(OPENWRT_BUILD),1)
_SINGLE=export MAKEFLAGS=$(space); _SINGLE=export MAKEFLAGS=$(space);
@ -38,7 +40,10 @@ else
include tools/Makefile include tools/Makefile
include toolchain/Makefile include toolchain/Makefile
$(toolchain/stamp-compile): $(tools/stamp-compile) # Include the test suite Makefile if it exists
-include tests/Makefile
$(toolchain/stamp-compile): $(tools/stamp-compile) $(if $(CONFIG_BUILDBOT),toolchain_rebuild_check)
$(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared $(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared
$(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup) $(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup)
$(package/stamp-install): $(package/stamp-compile) $(package/stamp-install): $(package/stamp-compile)
@ -50,14 +55,23 @@ printdb:
prepare: $(target/stamp-compile) prepare: $(target/stamp-compile)
clean: FORCE _clean: FORCE
rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(BUILD_LOG_DIR) $(TOPDIR)/staging_dir/packages rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(TOPDIR)/staging_dir/packages
dirclean: clean clean: _clean
rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/host $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN) rm -rf $(BUILD_LOG_DIR)
targetclean: _clean
rm -rf $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN)
dirclean: targetclean clean
rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(BUILD_DIR_BASE)/host
rm -rf $(TMP_DIR) rm -rf $(TMP_DIR)
$(MAKE) -C $(TOPDIR)/scripts/config clean $(MAKE) -C $(TOPDIR)/scripts/config clean
toolchain_rebuild_check:
$(SCRIPT_DIR)/check-toolchain-clean.sh
cacheclean: cacheclean:
ifneq ($(CONFIG_CCACHE),) ifneq ($(CONFIG_CCACHE),)
$(STAGING_DIR_HOST)/bin/ccache -C $(STAGING_DIR_HOST)/bin/ccache -C

65
README
View File

@ -1,65 +0,0 @@
Welcome to Lean's git source of OpenWrt and packages
中文:如何编译自己需要的 OpenWrt 固件
注意:
1. 不要用 root 用户进行编译!!!
2. 国内用户编译前最好准备好梯子
3. 默认登陆IP 192.168.1.1, 密码 password
编译命令如下:
1. 首先装好 Ubuntu 64bit推荐 Ubuntu 14 LTS x64
2. 命令行输入 sudo apt-get update ,然后输入
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib linux-libc-dev:i386
3. git clone https://github.com/coolsnowwolf/lede 命令下载好源代码,然后 cd lede 进入目录
4. ./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
5. 最后选好你要的路由,输入 make -j1 V=s -j1 后面是线程数。第一次编译推荐用单线程,国内请尽量全局科学上网)即可开始编译你要的固件了。
本套代码保证肯定可以编译成功。里面包括了 R9 所有源代码,包括 IPK 的。
你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!
特别提示:
1.源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;
2.如有技术问题需要讨论,欢迎加入 QQ 讨论群OP共享技术交流群 ,号码 297253733 ,加群链接: 点击链接加入群聊【OP共享技术交流群】https://jq.qq.com/?_wv=1027&k=5yCRuXL
3. 想学习OpenWrt开发但是摸不着门道自学没毅力基础太差怕太难学不会跟着佐大学OpenWrt开发入门培训班助你能学有所成
报名地址http://forgotfun.org/2018/04/openwrt-training-2018.html
去广告订阅地址默认内置来自以下源,如有去广告的误杀漏杀问题可以到这里报告:
https://github.com/privacy-protection-tools/anti-AD
Please use "make menuconfig" to choose your preferred
configuration for the toolchain and firmware.
You need gcc, binutils, bzip2, flex, python3.5+, perl, make, find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers installed.
Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.
Use "make menuconfig" to configure your image.
Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain,
the kernel and all choosen applications.
To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.
Note: Addition Lean's private package source code in ./package/lean directory. Use it under GPL v3.
GPLv3 is compatible with more licenses than GPLv2: it allows you to make combinations with code that has specific kinds of additional requirements that are not in GPLv3 itself. Section 7 has more information about this, including the list of additional requirements that are permitted.

183
README.md
View File

@ -1,99 +1,178 @@
欢迎来到Lean的Openwrt源码仓库 # 欢迎来到 Lean 的 LEDE 源码仓库
=
[English](./README_EN.md) 为国产龙芯 LOONGSON SoC loongarch64 / 飞腾 Phytium 腾锐 D2000 系列架构添加支持
如何编译自己需要的 OpenWrt 固件 I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
-
注意: ## 官方讨论群
-
1. **不**要用 **root** 用户进行编译!!! 如有技术问题需要讨论或者交流,欢迎加入以下群:
1. QQ 讨论群Op 固件技术研究群,号码 891659613加群链接[点击加入](https://qm.qq.com/q/IMa6Yf2SgC "Op固件技术研究群")
2. TG 讨论群OP 编译官方大群,加群链接:[点击加入](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")
## 软路由 ArmSoM Sige 系列介绍
ArmSoM-Sige 系列:软路由、单板计算机、小型服务器与智能家居的全能之选。
[商品介绍页面 - ArmSom 品牌店](https://shop518100695.taobao.com/)
购买链接:
[![sige1-zh](doc/sige-zh.jpg)](https://item.taobao.com/item.htm?id=721197662185)
## 注意
1. **不要用 root 用户进行编译**
2. 国内用户编译前最好准备好梯子 2. 国内用户编译前最好准备好梯子
3. 默认登陆IP 192.168.1.1 密码 password 3. 默认登陆IP 192.168.1.1 密码 password
## 编译命令
编译命令如下: 1. 首先装好 Linux 系统,推荐 Debian 或 Ubuntu LTS
-
1. 首先装好 Ubuntu 64bit推荐 Ubuntu 20.04 LTS x64
2. 命令行输入 `sudo apt-get update` ,然后输入 2. 安装编译依赖
`
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync
`
3. 使用 `git clone https://github.com/coolsnowwolf/lede` 命令下载好源代码,然后 `cd lede` 进入目录 ```bash
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext \
genisoimage git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev \
libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev \
libreadline-dev libssl-dev libtool llvm lrzsz msmtp ninja-build p7zip p7zip-full patch pkgconf \
python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion \
swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
```
4. ```bash 3. 下载源代码,更新 feeds 并选择配置
```bash
git clone https://github.com/coolsnowwolf/lede
cd lede
./scripts/feeds update -a ./scripts/feeds update -a
./scripts/feeds install -a ./scripts/feeds install -a
make menuconfig make menuconfig
``` ```
5. `make -j8 download V=s` 下载dl库国内请尽量全局科学上网 4. 下载 dl 库,编译固件
-j 后面是线程数,第一次编译推荐用单线程)
6. 输入 `make -j1 V=s` -j1 后面是线程数。第一次编译推荐用单线程)即可开始编译你要的固件了。 ```bash
make download -j8
make V=s -j1
```
本套代码保证肯定可以编译成功。里面包括了 R21 所有源代码,包括 IPK 的。 本套代码保证肯定可以编译成功。里面包括了 R24 所有源代码,包括 IPK 的。
你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作! 你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!
=
二次编译: 二次编译:
```bash ```bash
cd lede cd lede
git pull git pull
./scripts/feeds update -a && ./scripts/feeds install -a ./scripts/feeds update -a
./scripts/feeds install -a
make defconfig make defconfig
make -j8 download make download -j8
make -j$(($(nproc) + 1)) V=s make V=s -j$(nproc)
``` ```
如果需要重新配置: 如果需要重新配置:
```bash ```bash
rm -rf ./tmp && rm -rf .config rm -rf .config
make menuconfig make menuconfig
make -j$(($(nproc) + 1)) V=s make V=s -j$(nproc)
``` ```
编译完成后输出路径bin/targets 编译完成后输出路径bin/targets
如果你使用WSL或WSL2进行编译 ### 使用 WSL/WSL2 进行编译
------
由于wsl的PATH路径中包含带有空格的Windows路径有可能会导致编译失败请在将make -j1 V=s或make -j$(($(nproc) + 1)) V=s改为 由于 WSL 的 PATH 中包含带有空格的 Windows 路径,有可能会导致编译失败,请在 `make` 前面加上:
首次编译:
```bash ```bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j1 V=s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
```
二次编译:
```bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j$(($(nproc) + 1)) V=s
``` ```
特别提示: 由于默认情况下,装载到 WSL 发行版的 NTFS 格式的驱动器将不区分大小写,因此大概率在 WSL/WSL2 的编译检查中会返回以下错误:
------
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;
2. 如有技术问题需要讨论,欢迎加入 QQ 讨论群: OP 共享技术交流群 ,号码 297253733 ,加群链接: 点击链接加入群聊【 OP 共享技术交流群】:[点击加入](https://jq.qq.com/?_wv=1027&k=5yCRuXL "OP共享技术交流群") ```txt
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
```
3. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成 一个比较简洁的解决方法是,在 `git clone` 前先创建 Repository 目录,并为其启用大小写敏感:
```powershell
# 以管理员身份打开终端
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path>
PS > git clone https://github.com/coolsnowwolf/lede <your_local_lede_path>
```
> 对已经 `git clone` 完成的项目目录执行 `fsutil.exe` 命令无法生效,大小写敏感只对新增的文件变更有效。
### macOS 原生系统进行编译
1. 在 AppStore 中安装 Xcode
2. 安装 Homebrew
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
3. 使用 Homebrew 安装工具链、依赖与基础软件包:
```bash
brew unlink awk
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
brew install gcc@11
```
4. 然后输入以下命令,添加到系统环境变量中:
- intel 芯片的 mac
```bash
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
- apple 芯片的 mac
```zsh
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
5. 重新加载一下 shell 启动文件 `source ~/.bashrc`,然后输入 `bash` 进入 bash shell就可以和 Linux 一样正常编译了
## 特别提示
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒,安全干净才是固件应该做到的。
2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成
报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名") 报名地址:[点击报名](http://forgotfun.org/2018/04/openwrt-training-2018.html "报名")
## 软路由介绍 3. QCA IPQ60xx 开源仓库地址:<https://github.com/coolsnowwolf/openwrt-gl-ax1800>
友情推荐不恰饭:如果你在寻找一个低功耗小体积性能不错的 x86 / x64 路由器,我个人建议可以考虑
小马v1 的铝合金版本 ( N3710 4千兆)[页面介绍](https://item.taobao.com/item.htm?spm=a230r.1.14.20.144c763fRkK0VZ&id=561126544764 " 小马v1 的铝合金版本")
![xm1](doc/xm5.jpg) 4. 存档版本仓库地址:<https://github.com/coolsnowwolf/openwrt>
![xm2](doc/xm6.jpg)
## 捐贈 ## 捐贈
如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善 如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善
### 支付宝 ![star](doc/star.png)
![alipay](doc/alipay_donate.jpg)
### 微信
![wechat](doc/wechat_donate.jpg)

View File

@ -1,88 +1,201 @@
Welcome to Lean's git source of OpenWrt and packages # Welcome to Lean's git source of OpenWrt and packages
=
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
How to build your Openwrt firmware.
- ## Official Channels
Note:
-- If you have technical questions for discussion or sharing, feel free to join the following channels:
1. DO **NOT** USE **root** USER FOR COMPILING!!!
1. QQ Group: *OpenWRT Firmware Technical Research Group*, Group Number is `891659613`.
2. Users within China should prepare proxy before building. Join the group: [Link](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群").
- [Click to download QQ client](https://im.qq.com/pcqq).
3. Web admin panel default IP is 192.168.1.1 and default password is "password".
2. Telegram Group: *OpenWRT Firmware Technical Research Group*.
Let's start! Join the group: [Link](https://t.me/JhKgAA6Hx1 "OP 编译官方大群").
---
1. First, install Ubuntu 64bit (Ubuntu 20.04 LTS x86 is recommended). ## ArmSoM Sige Board Series Introduction
2. Run `sudo apt-get update` in the terminal, and then run ArmSoM-Sige Series: Your All-in-One Powerhouse for Soft Routing, SBCs, Mini Servers, and Home Automation.
`
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync [ArmSoM Store](https://www.aliexpress.com/store/1102800175)
`
Buy Link
3. Run `git clone https://github.com/coolsnowwolf/lede` to clone the source code, and then `cd lede` to enter the directory [![sige1-en](doc/sige-en.jpg)](https://aliexpress.com/item/3256807356692995.html)
4. ```bash ## Notice
./scripts/feeds update -a
./scripts/feeds install -a 1. **Never compile OpenWRT as `root`**
make menuconfig 2. If you are living in mainland China, please make sure you could visit the **REAL** Internet.
``` 3. Default login IP is `192.168.1.1`, password is `password`.
5. Run `make -j8 download V=s` to download libraries and dependencies (user in China should use global proxy when possible) ## How to Compile
6. Run `make -j1 V=s` (integer following -j is the thread count, single-thread is recommended for the first build) to start building your firmware. 1. Install a Linux distribution, Debian or Ubuntu LTS is recommended.
This source code is promised to be compiled successfully. 2. Install dependencies:
You can use this source code freely, but please link this GitHub repository when redistributing. Thank you for your cooperation! ```bash
= sudo apt update -y
sudo apt full-upgrade -y
Rebuild: sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
```bash bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext \
cd lede git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
git pull libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
./scripts/feeds update -a && ./scripts/feeds install -a libssl-dev libtool llvm lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 \
make defconfig python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
make -j8 download uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
make -j$(($(nproc) + 1)) V=s ```
```
3. Clone the source code, update `feeds` and configure:
If reconfiguration is need:
```bash ```bash
rm -rf ./tmp && rm -rf .config git clone https://github.com/coolsnowwolf/lede
make menuconfig cd lede
make -j$(($(nproc) + 1)) V=s ./scripts/feeds update -a
``` ./scripts/feeds install -a
make menuconfig
Build result will be produced to `bin/targets` directory. ```
Special tips: 4. Download libraries and compile firmware
------ > (`-j` is the thread count, single-thread is recommended for the first build):
1. This source code doesn't contain any backdoors or close source applications that can monitor/capture your HTTPS traffic, SSL is the final castle of cyber security. Safety is what a firmware should achieve.
```bash
2. If you have any technical problem, you may join the QQ discussion group: 297253733, link: click [here](https://jq.qq.com/?_wv=1027&k=5yCRuXL) make download -j8
make V=s -j1
3. Want to learn OpenWrt development but don't know how? Can't motivate yourself for self-learning? Not enough fundamental knowledge? Learn OpenWrt development with Mr. Zuo through his Beginner OpenWrt Training Course. Click [here](http://forgotfun.org/2018/04/openwrt-training-2018.html) to register. ```
## Router Recommendation These commands are supposed to compile the source code successfully.
Not Sponsored: If you are finding a low power consumption, small and performance promising x86/x64 router, I personally recommend the All source code of R23 is included, including IPK.
EZPROv1 Alumium Edition (N3710 4000M): [Details](https://item.taobao.com/item.htm?spm=a230r.1.14.20.144c763fRkK0VZ&id=561126544764)
You can use this source code freely, but please link this GitHub repository when redistributing.
![xm1](doc/xm5.jpg) Thank you for your cooperation!
![xm2](doc/xm6.jpg)
Rebuild:
## Donation
```bash
If this project does help you, please consider donating to support the development of this project. cd lede
git pull
### Alipay ./scripts/feeds update -a
./scripts/feeds install -a
![alipay](doc/alipay_donate.jpg) make defconfig
make download -j8
### WeChat make V=s -j$(nproc)
```
![wechat](doc/wechat_donate.jpg)
If reconfiguration is need:
## Note: Addition Lean's private package source code in `./package/lean` directory. Use it under GPL v3.
```bash
## GPLv3 is compatible with more licenses than GPLv2: it allows you to make combinations with code that has specific kinds of additional requirements that are not in GPLv3 itself. Section 7 has more information about this, including the list of additional requirements that are permitted. rm -rf ./tmp && rm -rf .config
make menuconfig
make V=s -j$(nproc)
```
Build artifacts will be outputted to `bin/targets` directory.
### If you are using WSL/WSL2 as your build environment
WSL's `PATH` potentially contain Windows paths with spaces, which may cause compilation failure.
Please add the following lines to your local environment profiles before compiling:
```bash
# Update and reload your profile, ~/.bashrc for example.
cat << EOF >> ~/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
EOF
source ~/.bashrc
```
NTFS-formatted drives mounted to a WSL distribution will be case-insensitive by default.
This will cause the following error when compiling in WSL/WSL2:
```txt
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
```
A simple solution is to create a case-sensitive directory for the repository before `git clone`:
```powershell
# Open a terminal as administrator
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
# Clone this repository to the case-sensitive directory <your_local_lede_path>
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
```
> For directories that have already been `git clone`, `fsutil.exe` will not take effect.
> Case sensitivity will only be enabled for new changes in the directory.
### macOS Compilation
1. Install Xcode from AppStore
2. Install Homebrew:
```bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
3. Install toolchain, dependencies and packages with Homebrew:
```bash
brew unlink awk
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
brew install gcc@11
```
4. Update your system environment:
- mac with intel chip
```bash
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
- mac with apple chip
```zsh
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
5. Reload your shell profile `source ~/.bashrc && bash`, then you can compile normally like Linux.
## Declaration
1. This source code doesn't contain any backdoors or closed source applications that can monitor/capture your HTTPS traffic. SSL security is the final castle of cyber security. Safety is what a firmware should do.
2. Want to learn OpenWRT development but don't know how to start? Can't motivate yourself for self-learning? Do not have enough fundamental knowledge? Learn OpenWRT development with Mr. Zuo through his Beginner OpenWRT Training Course. Click [here](http://forgotfun.org/2018/04/openwrt-training-2018.html) to register.
3. QCA IPQ60xx open source repository: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
4. OpenWRT Archive repository: <https://github.com/coolsnowwolf/openwrt>
## Introduction to Software Routers
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
(Introduction page - Yingku Technology (support AliPay Huabei)):
[Pre-sale link](https://item.taobao.com/item.htm?ft=t&id=719159813003)
<div align="left">
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
<img src="doc/r1.jpg" width = "600" alt="" align=center />
</a>
</div>
<br>
## Donation
If this project did helped you, please consider donating to support the development of this project.
<div align="left">
<img src="./doc/star.png" width = "400" alt="" align=center />
</div>
<br>

191
README_JA.md Normal file
View File

@ -0,0 +1,191 @@
# OpenWrt とパッケージの Lean の git ソースへようこそ
I18N: [English](README_EN.md) | [简体中文](README.md) | [日本語](README_JA.md)
## 公式チャンネル
ディスカッションや共有したい技術的な質問がある場合は、以下のチャンネルにお気軽にご参加ください:
1. QQ グループ: *OpenWRT ファームウェア技術研究グループ*、グループ番号は `891659613` です。
グループに参加する: [リンク](https://jq.qq.com/?_wv=1027&k=XL8SK5aC "Op固件技术研究群")。
- [クリックして QQ クライアントをダウンロードする](https://im.qq.com/pcqq)。
2. Telegram グループ: *OpenWRT ファームウェア技術研究グループ*。グループに参加する: [リンク](https://t.me/JhKgAA6Hx1 "OP 编译官方大群")。
## 注意
1. **OpenWRT を決して `root` としてコンパイルしないこと**
2. 中国本土にお住まいの方は、ぜひ **REAL** インターネットをご覧ください。
3. デフォルトのログイン IP は `192.168.1.1` で、パスワードは `password` です。
## コンパイル方法
1. Linuxディストリビューションをインストールし、Debian または Ubuntu LTS を推奨します。
2. 依存関係をインストールする:
```bash
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
libssl-dev libtool llvm lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python3 \
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
```
3. ソースコードをクローンし、`feeds` を更新し、設定する:
```bash
git clone https://github.com/coolsnowwolf/lede
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
```
4. ライブラリのダウンロードとファームウェアのコンパイル
> (`-j` はスレッドカウント、最初のビルドはシングルスレッドを推奨):
```bash
make download -j8
make V=s -j1
```
これらのコマンドは、ソースコードを正常にコンパイルするためのものです。
R23 のソースコードは IPK を含めてすべて含まれています。
このソースコードはご自由にお使いいただけますが、再配布の際はこの GitHub リポジトリをリンクしてください。
ご協力ありがとうございました!
リビルド:
```bash
cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)
```
再設定が必要な場合:
```bash
rm -rf ./tmp && rm -rf .config
make menuconfig
make V=s -j$(nproc)
```
ビルドの成果物は `bin/targets` ディレクトリに出力されます。
### WSL/WSL2 をビルド環境として使用している場合
WSL の `PATH` には、Windows のパスが空白で含まれている可能性があり、コンパイルに失敗することがあります。
コンパイルする前に、ローカルの環境プロファイルに以下の行を追加してください:
```bash
# 例えば、~/.bashrc などのプロファイルを更新した後、再読み込みを行う。
cat << EOF >> ~/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
EOF
source ~/.bashrc
```
WSL ディストリビューションにマウントされた NTFS フォーマットのドライブは、デフォルトで大文字と小文字が区別されません。
このため、WSL/WSL2 でコンパイルすると、次のようなエラーが発生します:
```txt
Build dependency: OpenWrt can only be built on a case-sensitive filesystem
```
単純な解決策は、`git clone` の前に大文字小文字を区別してリポジトリ用のディレクトリを作成することです:
```powershell
# 管理者としてターミナルを開く
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
# 大文字と小文字を区別して、このリポジトリを <your_local_lede_path> ディレクトリにクローンする
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>
```
> すでに `git clone` されたディレクトリでは、`fsutil.exe` は有効になりません。
> 大文字小文字の区別はディレクトリの新しい変更に対してのみ有効になります。
### macOS コンパイル
1. AppStore から Xcode をインストールする
2. Homebrew をインストールする:
```bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
3. Homebrew でツールチェーン、依存関係、パッケージをインストールする:
```bash
brew unlink awk
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
brew install gcc@11
```
4. システム環境のアップデート:
- MacのIntelシリコンバージョン
```bash
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
- MacのAppleシリコンバージョン
```zsh
echo 'export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
```
5. シェルプロファイル `source ~/.bashrc && bash` を再読み込みすれば、Linux のように普通にコンパイルできます。
## 宣言
1. このソースコードには、HTTPS トラフィックを監視キャプチャできるバックドアやクローズドソースアプリケーションは含まれていません。SSL セキュリティはサイバーセキュリティの最後の城です。安全性はファームウェアがすべきことです。
2. OpenWRT の開発を学びたいが、何から始めたらいいかわからないですか?自己学習のモチベーションが上がらない?基礎知識が足りない?ズオ氏の初心者 OpenWRT トレーニングコースで一緒に OpenWRT 開発を学びましょう。お申し込みは[こちら](http://forgotfun.org/2018/04/openwrt-training-2018.html)をクリックしてください。
3. QCA IPQ60xx オープンソースリポジトリ: <https://github.com/coolsnowwolf/openwrt-gl-ax1800>
4. OpenWRT アーカイブリポジトリ: <https://github.com/coolsnowwolf/openwrt>
## ソフトウェアルーター入門
Yingku R2 - N95/N300 Mini Four-Network HomeLab Server
(紹介ページ - Yingku Technology (support AliPay Huabei)):
[先行販売リンク](https://item.taobao.com/item.htm?ft=t&id=719159813003)
<div align="left">
<a href="https://item.taobao.com/item.htm?ft=t&id=719159813003">
<img src="doc/r1.jpg" width = "600" alt="" align=center />
</a>
</div>
<br>
## 寄付
このプロジェクトがあなたのお役に立てたのであれば、このプロジェクトの発展を支援するための寄付をご検討ください。
<div align="left">
<img src="./doc/star.png" width = "400" alt="" align=center />
</div>
<br>

View File

@ -5,7 +5,6 @@
config EXPERIMENTAL config EXPERIMENTAL
bool "Enable experimental features by default" bool "Enable experimental features by default"
default n
help help
Set this option to build with latest bleeding edge features Set this option to build with latest bleeding edge features
which may or may not work as expected. which may or may not work as expected.
@ -14,19 +13,27 @@ config EXPERIMENTAL
positive and negative). But do so only if you know how to positive and negative). But do so only if you know how to
recover your device in case of flashing potentially non-working recover your device in case of flashing potentially non-working
firmware. firmware.
If you plan to use this build in production, say NO! If you plan to use this build in production, say NO!
menu "Global build settings" menu "Global build settings"
config JSON_OVERVIEW_IMAGE_INFO config JSON_OVERVIEW_IMAGE_INFO
bool "Create JSON info file overview per target" bool "Create JSON info file overview per target"
default BUILDBOT default y
help help
Create a JSON info file called profiles.json in the target Create a JSON info file called profiles.json in the target
directory containing machine readable list of built profiles directory containing machine readable list of built profiles
and resulting images. and resulting images.
config JSON_CYCLONEDX_SBOM
bool "Create CycloneDX SBOM JSON"
default BUILDBOT
help
Create a JSON files *.bom.cdx.json in the build
directory containing Software Bill Of Materials in CycloneDX
format.
config ALL_NONSHARED config ALL_NONSHARED
bool "Select all target specific packages by default" bool "Select all target specific packages by default"
select ALL_KMODS select ALL_KMODS
@ -42,7 +49,6 @@ menu "Global build settings"
config BUILDBOT config BUILDBOT
bool "Set build defaults for automatic builds (e.g. via buildbot)" bool "Set build defaults for automatic builds (e.g. via buildbot)"
default n
help help
This option changes several defaults to be more suitable for This option changes several defaults to be more suitable for
automatic builds. This includes the following changes: automatic builds. This includes the following changes:
@ -58,6 +64,15 @@ menu "Global build settings"
bool "Enable signature checking in opkg" bool "Enable signature checking in opkg"
default SIGNED_PACKAGES default SIGNED_PACKAGES
config DOWNLOAD_CHECK_CERTIFICATE
bool "Enable TLS certificate verification during package download"
default y
config USE_APK
imply PACKAGE_apk-mbedtls
bool "Use APK instead of OPKG to build distribution (BROKEN)"
depends on BROKEN
comment "General build options" comment "General build options"
config TESTING_KERNEL config TESTING_KERNEL
@ -71,10 +86,8 @@ menu "Global build settings"
config DISPLAY_SUPPORT config DISPLAY_SUPPORT
bool "Show packages that require graphics support (local or remote)" bool "Show packages that require graphics support (local or remote)"
default n
config BUILD_PATENTED config BUILD_PATENTED
default n
bool "Compile with support for patented functionality" bool "Compile with support for patented functionality"
help help
When this option is disabled, software which provides patented functionality When this option is disabled, software which provides patented functionality
@ -82,7 +95,6 @@ menu "Global build settings"
functionality, this optional support will get disabled for this package. functionality, this optional support will get disabled for this package.
config BUILD_NLS config BUILD_NLS
default n
bool "Compile with full language support" bool "Compile with full language support"
help help
When this option is enabled, packages are built with the full versions of When this option is enabled, packages are built with the full versions of
@ -96,7 +108,6 @@ menu "Global build settings"
config CLEAN_IPKG config CLEAN_IPKG
bool bool
prompt "Remove ipkg/opkg status data files in final images" prompt "Remove ipkg/opkg status data files in final images"
default n
help help
This removes all ipkg/opkg status data files from the target directory This removes all ipkg/opkg status data files from the target directory
before building the root filesystem. before building the root filesystem.
@ -104,14 +115,13 @@ menu "Global build settings"
config IPK_FILES_CHECKSUMS config IPK_FILES_CHECKSUMS
bool bool
prompt "Record files checksums in package metadata" prompt "Record files checksums in package metadata"
default n depends on !USE_APK
help help
This makes file checksums part of package metadata. It increases size This makes file checksums part of package metadata. It increases size
but provides you with pkg_check command to check for flash coruptions. but provides you with pkg_check command to check for flash corruptions.
config INCLUDE_CONFIG config INCLUDE_CONFIG
bool "Include build configuration in firmware" if DEVEL bool "Include build configuration in firmware" if DEVEL
default n
help help
If enabled, buildinfo files will be stored in /etc/build.* of firmware. If enabled, buildinfo files will be stored in /etc/build.* of firmware.
@ -145,22 +155,44 @@ menu "Global build settings"
config DEBUG config DEBUG
bool bool
prompt "Compile packages with debugging info" prompt "Compile packages with debugging info"
default n
help help
Adds -g3 to the CFLAGS. Adds -g3 to the CFLAGS.
config IPV6 config USE_GC_SECTIONS
bool bool
prompt "Enable IPv6 support in packages" prompt "Dead code and data elimination for all packages (EXPERIMENTAL)"
default y
help help
Enables IPv6 support in kernel (builtin) and packages. Places functions and data items into its own sections to use the linker's
garbage collection capabilites.
Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-gc-sections
config USE_LTO
bool
prompt "Use the link-time optimizer for all packages (EXPERIMENTAL)"
help
Adds LTO flags to the CFLAGS and LDFLAGS.
Packages can choose to opt-out via setting PKG_BUILD_FLAGS:=no-lto
config MOLD
depends on (aarch64 || arm || i386 || i686 || m68k || powerpc || powerpc64 || sh4 || x86_64)
depends on !GCC_USE_VERSION_11
def_bool $(shell, ./config/check-hostcxx.sh 10 2 12)
config USE_MOLD
bool
prompt "Use the mold linker for all packages"
depends on MOLD
help
Link packages with mold, a modern linker
Packages can opt-out via setting PKG_BUILD_FLAGS:=no-mold
config IPV6
def_bool y
comment "Stripping options" comment "Stripping options"
choice choice
prompt "Binary stripping method" prompt "Binary stripping method"
default USE_STRIP if EXTERNAL_TOOLCHAIN
default USE_STRIP if USE_GLIBC default USE_STRIP if USE_GLIBC
default USE_SSTRIP default USE_SSTRIP
help help
@ -177,7 +209,6 @@ menu "Global build settings"
help help
This will install binaries stripped using strip from binutils. This will install binaries stripped using strip from binutils.
config USE_SSTRIP config USE_SSTRIP
bool "sstrip" bool "sstrip"
depends on !USE_GLIBC depends on !USE_GLIBC
@ -194,16 +225,16 @@ menu "Global build settings"
help help
Specifies arguments passed to the strip command when stripping binaries. Specifies arguments passed to the strip command when stripping binaries.
config SSTRIP_ARGS config SSTRIP_DISCARD_TRAILING_ZEROES
string bool "Strip trailing zero bytes"
prompt "Sstrip arguments" depends on USE_SSTRIP && !USE_MOLD
depends on USE_SSTRIP default y
default "-z"
help help
Specifies arguments passed to the sstrip command when stripping binaries. Use sstrip's -z option to discard trailing zero bytes
config STRIP_KERNEL_EXPORTS config STRIP_KERNEL_EXPORTS
bool "Strip unnecessary exports from the kernel image" bool "Strip unnecessary exports from the kernel image"
depends on BROKEN
help help
Reduces kernel size by stripping unused kernel exports from the kernel Reduces kernel size by stripping unused kernel exports from the kernel
image. Note that this might make the kernel incompatible with any kernel image. Note that this might make the kernel incompatible with any kernel
@ -217,20 +248,6 @@ menu "Global build settings"
make the system libraries incompatible with most of the packages that are make the system libraries incompatible with most of the packages that are
not selected during the build process. not selected during the build process.
choice
prompt "Preferred standard C++ library"
default USE_LIBSTDCXX if USE_GLIBC
default USE_UCLIBCXX
help
Select the preferred standard C++ library for all packages that support this.
config USE_UCLIBCXX
bool "uClibc++"
config USE_LIBSTDCXX
bool "libstdc++"
endchoice
comment "Hardening build options" comment "Hardening build options"
config PKG_CHECK_FORMAT_SECURITY config PKG_CHECK_FORMAT_SECURITY
@ -279,10 +296,22 @@ menu "Global build settings"
Enable GCC Stack Smashing Protection (SSP) for userspace applications Enable GCC Stack Smashing Protection (SSP) for userspace applications
config PKG_CC_STACKPROTECTOR_NONE config PKG_CC_STACKPROTECTOR_NONE
bool "None" bool "None"
help
No stack smashing protection.
config PKG_CC_STACKPROTECTOR_REGULAR config PKG_CC_STACKPROTECTOR_REGULAR
bool "Regular" bool "Regular"
help
Protects functions with vulnerable objects.
This includes functions with buffers larger than 8 bytes or calls to alloca.
config PKG_CC_STACKPROTECTOR_STRONG config PKG_CC_STACKPROTECTOR_STRONG
bool "Strong" bool "Strong"
help
Like Regular, but also protects functions with
local arrays or references to local frame addresses.
config PKG_CC_STACKPROTECTOR_ALL
bool "All"
help
Protects all functions.
endchoice endchoice
choice choice
@ -292,10 +321,18 @@ menu "Global build settings"
Enable GCC Stack-Smashing Protection (SSP) for the kernel Enable GCC Stack-Smashing Protection (SSP) for the kernel
config KERNEL_CC_STACKPROTECTOR_NONE config KERNEL_CC_STACKPROTECTOR_NONE
bool "None" bool "None"
help
No stack smashing protection.
config KERNEL_CC_STACKPROTECTOR_REGULAR config KERNEL_CC_STACKPROTECTOR_REGULAR
bool "Regular" bool "Regular"
help
Protects functions with vulnerable objects.
This includes functions with buffers larger than 8 bytes or calls to alloca.
config KERNEL_CC_STACKPROTECTOR_STRONG config KERNEL_CC_STACKPROTECTOR_STRONG
bool "Strong" bool "Strong"
help
Like Regular, but also protects functions with
local arrays or references to local frame addresses.
endchoice endchoice
config KERNEL_STACKPROTECTOR config KERNEL_STACKPROTECTOR
@ -386,4 +423,16 @@ menu "Global build settings"
endchoice endchoice
config SECCOMP
bool "Enable SECCOMP"
select KERNEL_SECCOMP
select PACKAGE_procd-seccomp
depends on (aarch64 || arm || armeb || mips || mipsel || mips64 || mips64el || i386 || powerpc || x86_64)
depends on !TARGET_uml
default y
help
This option enables seccomp kernel features to safely
execute untrusted bytecode and selects the seccomp-variants
of procd
endmenu endmenu

View File

@ -4,11 +4,9 @@
menuconfig DEVEL menuconfig DEVEL
bool "Advanced configuration options (for developers)" bool "Advanced configuration options (for developers)"
default n
config BROKEN config BROKEN
bool "Show broken platforms / packages / devices" if DEVEL bool "Show broken platforms / packages / devices" if DEVEL
default n
config BINARY_FOLDER config BINARY_FOLDER
string "Binary folder" if DEVEL string "Binary folder" if DEVEL
@ -17,6 +15,20 @@ menuconfig DEVEL
Store built firmware images and filesystem images in this directory. Store built firmware images and filesystem images in this directory.
If not set, uses './bin/$(BOARD)' If not set, uses './bin/$(BOARD)'
config DOWNLOAD_TOOL_CUSTOM
string "Use custom download tool" if DEVEL
default ""
help
Use and force custom download tool instead of relying on autoselection
between curl if available and wget as a fallback.
download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.
If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.
config DOWNLOAD_FOLDER config DOWNLOAD_FOLDER
string "Download folder" if DEVEL string "Download folder" if DEVEL
default "" default ""
@ -39,12 +51,17 @@ menuconfig DEVEL
config AUTOREMOVE config AUTOREMOVE
bool "Automatic removal of build directories" if DEVEL bool "Automatic removal of build directories" if DEVEL
default n
help help
Automatically delete build directories after make target completed. Automatically delete build directories after make target completed.
This allows you to symlink build_dir into a scratch location, e.g. a ramdisk, This allows you to symlink build_dir into a scratch location, e.g. a ramdisk,
which does not have enough space to keep a complete build_dir. which does not have enough space to keep a complete build_dir.
config BUILD_ALL_HOST_TOOLS
bool "Compile all host tools" if DEVEL
help
Compile all host host tools even if not needed. This is needed to prepare a
universal precompiled host tools archive to use in another buildroot.
config BUILD_SUFFIX config BUILD_SUFFIX
string "Build suffix to append to the target BUILD_DIR variable" if DEVEL string "Build suffix to append to the target BUILD_DIR variable" if DEVEL
default "" default ""
@ -63,7 +80,6 @@ menuconfig DEVEL
config CCACHE config CCACHE
bool "Use ccache" if DEVEL bool "Use ccache" if DEVEL
default n
help help
Compiler cache; see https://ccache.samba.org/ Compiler cache; see https://ccache.samba.org/
@ -74,6 +90,11 @@ menuconfig DEVEL
Store ccache in this directory. Store ccache in this directory.
If not set, uses './.ccache' If not set, uses './.ccache'
config KERNEL_CFLAGS
string "Kernel extra CFLAGS" if DEVEL
default "-falign-functions=32" if TARGET_bcm53xx
default ""
config EXTERNAL_KERNEL_TREE config EXTERNAL_KERNEL_TREE
string "Use external kernel tree" if DEVEL string "Use external kernel tree" if DEVEL
default "" default ""

View File

@ -17,7 +17,7 @@ menu "Target Images"
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ipq40xx default TARGET_INITRAMFS_COMPRESSION_ZSTD if TARGET_qualcommax
default TARGET_INITRAMFS_COMPRESSION_XZ if USES_SEPARATE_INITRAMFS default TARGET_INITRAMFS_COMPRESSION_XZ if USES_SEPARATE_INITRAMFS
default TARGET_INITRAMFS_COMPRESSION_NONE default TARGET_INITRAMFS_COMPRESSION_NONE
depends on TARGET_ROOTFS_INITRAMFS depends on TARGET_ROOTFS_INITRAMFS
@ -37,18 +37,16 @@ menu "Target Images"
bool "lzma" bool "lzma"
config TARGET_INITRAMFS_COMPRESSION_LZO config TARGET_INITRAMFS_COMPRESSION_LZO
depends on !TARGET_ROOTFS_INITRAMFS_SEPARATE
bool "lzo" bool "lzo"
config TARGET_INITRAMFS_COMPRESSION_LZ4 config TARGET_INITRAMFS_COMPRESSION_LZ4
depends on !TARGET_ROOTFS_INITRAMFS_SEPARATE
bool "lz4" bool "lz4"
config TARGET_INITRAMFS_COMPRESSION_XZ config TARGET_INITRAMFS_COMPRESSION_XZ
bool "xz" bool "xz"
config TARGET_INITRAMFS_COMPRESSION_ZSTD config TARGET_INITRAMFS_COMPRESSION_ZSTD
depends on !LINUX_5_4 && !LINUX_4_19 depends on !LINUX_5_4
bool "zstd" bool "zstd"
endchoice endchoice
@ -152,14 +150,17 @@ menu "Target Images"
bool "squashfs" bool "squashfs"
default y if USES_SQUASHFS default y if USES_SQUASHFS
help help
Build a squashfs-lzma root filesystem. Build a squashfs root filesystem.
config TARGET_SQUASHFS_BLOCK_SIZE config TARGET_SQUASHFS_BLOCK_SIZE
int "Block size (in KiB)" int "Block size (in KiB)"
depends on TARGET_ROOTFS_SQUASHFS depends on TARGET_ROOTFS_SQUASHFS
default 64 if LOW_MEMORY_FOOTPRINT default 64 if LOW_MEMORY_FOOTPRINT
default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT) default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
default 1024 default 256
help
Select squashfs block size, must be one of:
4, 8, 16, 32, 64, 128, 256, 512, 1024
menuconfig TARGET_ROOTFS_UBIFS menuconfig TARGET_ROOTFS_UBIFS
bool "ubifs" bool "ubifs"
@ -197,18 +198,23 @@ menu "Target Images"
default "" default ""
config GRUB_IMAGES config GRUB_IMAGES
bool "Build GRUB images (Linux x86 or x86_64 host only)" bool "Build GRUB images"
depends on TARGET_x86 depends on TARGET_x86
depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
select PACKAGE_grub2 select PACKAGE_grub2
select PACKAGE_grub2-bios-setup
default n default n
config GRUB_EFI_IMAGES config GRUB_EFI_IMAGES
bool "Build GRUB EFI images (Linux x86 or x86_64 host only)" bool "Build GRUB EFI images"
depends on TARGET_x86 depends on TARGET_x86 || TARGET_armvirt || TARGET_loongarch64 || TARGET_phytium
depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
select PACKAGE_grub2 select PACKAGE_grub2 if TARGET_x86
select PACKAGE_grub2-efi select PACKAGE_grub2-efi if TARGET_x86
select PACKAGE_grub2-bios-setup if TARGET_x86
select PACKAGE_grub2-efi-arm if TARGET_armvirt
select PACKAGE_grub2-efi-arm if TARGET_phytium_armv8
select PACKAGE_grub2-efi-loongarch64 if TARGET_loongarch64
select PACKAGE_kmod-fs-vfat select PACKAGE_kmod-fs-vfat
default y default y
@ -271,38 +277,42 @@ menu "Target Images"
depends on GRUB_IMAGES || GRUB_EFI_IMAGES depends on GRUB_IMAGES || GRUB_EFI_IMAGES
select PACKAGE_kmod-e1000 select PACKAGE_kmod-e1000
config VMDK_IMAGES
bool "Build VMware image files (VMDK)"
depends on TARGET_x86 || TARGET_armvirt
depends on GRUB_IMAGES || GRUB_EFI_IMAGES
select PACKAGE_kmod-e1000
config VHDX_IMAGES config VHDX_IMAGES
bool "Build Hyper-V image files (VHDX)" bool "Build Hyper-V image files (VHDX)"
depends on TARGET_x86 depends on TARGET_x86
depends on GRUB_IMAGES || GRUB_EFI_IMAGES depends on GRUB_IMAGES || GRUB_EFI_IMAGES
select PACKAGE_kmod-tulip
config VMDK_IMAGES
bool "Build VMware image files (VMDK)"
depends on TARGET_x86
depends on GRUB_IMAGES || GRUB_EFI_IMAGES
default y
select PACKAGE_kmod-e1000 select PACKAGE_kmod-e1000
config TARGET_IMAGES_GZIP config TARGET_IMAGES_GZIP
bool "GZip images" bool "GZip images"
depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta || TARGET_loongarch64
default n default y
comment "Image Options" comment "Image Options"
source "target/linux/*/image/Config.in" source "target/linux/*/image/Config.in"
source "target/linux/*/*/image/Config.in"
config TARGET_KERNEL_PARTSIZE config TARGET_KERNEL_PARTSIZE
int "Kernel partition size (in MB)" int "Kernel partition size (in MiB)"
depends on USES_BOOT_PART depends on USES_BOOT_PART
default 8 if TARGET_apm821xx_sata default 8 if TARGET_apm821xx_sata
default 64 if TARGET_bcm27xx default 64 if TARGET_bcm27xx
default 128 if TARGET_armvirt
default 32 if TARGET_rockchip
default 16 default 16
config TARGET_ROOTFS_PARTSIZE config TARGET_ROOTFS_PARTSIZE
int "Root filesystem partition size (in MB)" int "Root filesystem partition size (in MiB)"
depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS
default 232 if TARGET_loongarch64
default 448 if TARGET_mediatek || TARGET_x86
default 160 default 160
help help
Select the root filesystem partition size. Select the root filesystem partition size.

View File

@ -24,11 +24,6 @@ config KERNEL_PRINTK
bool "Enable support for printk" bool "Enable support for printk"
default y default y
config KERNEL_CRASHLOG
bool "Crash logging"
depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
default y
config KERNEL_SWAP config KERNEL_SWAP
bool "Support for paging of anonymous memory (swap)" bool "Support for paging of anonymous memory (swap)"
default y if !SMALL_FLASH default y if !SMALL_FLASH
@ -48,17 +43,29 @@ config KERNEL_DEBUG_FS
config KERNEL_MIPS_FP_SUPPORT config KERNEL_MIPS_FP_SUPPORT
bool bool
default y default y if TARGET_pistachio
depends on (mips || mipsel || mips64 || mips64el)
config KERNEL_ARM_PMU config KERNEL_ARM_PMU
bool bool
default n default y if TARGET_armsr_armv8
depends on (arm || aarch64) depends on (arm || aarch64)
config KERNEL_ARM_PMUV3
bool
default y if TARGET_armsr_armv8
depends on (arm_v7 || aarch64) && LINUX_6_6
config KERNEL_RISCV_PMU
bool
select KERNEL_RISCV_PMU_SBI
depends on riscv64
config KERNEL_RISCV_PMU_SBI
bool
depends on riscv64
config KERNEL_X86_VSYSCALL_EMULATION config KERNEL_X86_VSYSCALL_EMULATION
bool "Enable vsyscall emulation" bool "Enable vsyscall emulation"
default n
depends on x86_64 depends on x86_64
help help
This enables emulation of the legacy vsyscall page. Disabling This enables emulation of the legacy vsyscall page. Disabling
@ -76,17 +83,22 @@ config KERNEL_X86_VSYSCALL_EMULATION
config KERNEL_PERF_EVENTS config KERNEL_PERF_EVENTS
bool "Compile the kernel with performance events and counters" bool "Compile the kernel with performance events and counters"
default n
select KERNEL_ARM_PMU if (arm || aarch64) select KERNEL_ARM_PMU if (arm || aarch64)
select KERNEL_ARM_PMUV3 if (arm_v7 || aarch64) && LINUX_6_6
select KERNEL_RISCV_PMU if riscv64
config KERNEL_PROFILING config KERNEL_PROFILING
bool "Compile the kernel with profiling enabled" bool "Compile the kernel with profiling enabled"
default n
select KERNEL_PERF_EVENTS select KERNEL_PERF_EVENTS
help help
Enable the extended profiling support mechanisms used by profilers such Enable the extended profiling support mechanisms used by profilers such
as OProfile. as OProfile.
config KERNEL_RPI_AXIPERF
bool "Compile the kernel with RaspberryPi AXI Performance monitors"
default y
depends on KERNEL_PERF_EVENTS && TARGET_bcm27xx
config KERNEL_UBSAN config KERNEL_UBSAN
bool "Compile the kernel with undefined behaviour sanity checker" bool "Compile the kernel with undefined behaviour sanity checker"
help help
@ -115,6 +127,16 @@ config KERNEL_UBSAN_ALIGNMENT
Enabling this option on architectures that support unaligned Enabling this option on architectures that support unaligned
accesses may produce a lot of false positives. accesses may produce a lot of false positives.
config KERNEL_UBSAN_BOUNDS
bool "Perform array index bounds checking"
depends on KERNEL_UBSAN
help
This option enables detection of directly indexed out of bounds array
accesses, where the array size is known at compile time. Note that
this does not protect array overflows via bad calls to the
{str,mem}*cpy() family of functions (that is addressed by
FORTIFY_SOURCE).
config KERNEL_UBSAN_NULL config KERNEL_UBSAN_NULL
bool "Enable checking of null pointers" bool "Enable checking of null pointers"
depends on KERNEL_UBSAN depends on KERNEL_UBSAN
@ -122,10 +144,23 @@ config KERNEL_UBSAN_NULL
This option enables detection of memory accesses via a This option enables detection of memory accesses via a
null pointer. null pointer.
config KERNEL_UBSAN_TRAP
bool "On Sanitizer warnings, abort the running kernel code"
depends on KERNEL_UBSAN
help
Building kernels with Sanitizer features enabled tends to grow the
kernel size by around 5%, due to adding all the debugging text on
failure paths. To avoid this, Sanitizer instrumentation can just
issue a trap. This reduces the kernel size overhead but turns all
warnings (including potentially harmless conditions) into full
exceptions that abort the running kernel code (regardless of context,
locks held, etc), which may destabilize the system. For some system
builders this is an acceptable trade-off.
config KERNEL_KASAN config KERNEL_KASAN
bool "Compile the kernel with KASan: runtime memory debugger" bool "Compile the kernel with KASan: runtime memory debugger"
select KERNEL_SLUB_DEBUG select KERNEL_SLUB_DEBUG
depends on (x86_64 || aarch64) depends on (x86_64 || aarch64 || arm || powerpc || riscv64)
help help
Enables kernel address sanitizer - runtime memory debugger, Enables kernel address sanitizer - runtime memory debugger,
designed to find out-of-bounds accesses and use-after-free bugs. designed to find out-of-bounds accesses and use-after-free bugs.
@ -138,20 +173,91 @@ config KERNEL_KASAN
Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
(the resulting kernel does not boot). (the resulting kernel does not boot).
config KERNEL_KASAN_EXTRA config KERNEL_KASAN_VMALLOC
bool "KAsan: extra checks" bool "Back mappings in vmalloc space with real shadow memory"
depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL depends on KERNEL_KASAN
help help
This enables further checks in the kernel address sanitizer, for now By default, the shadow region for vmalloc space is the read-only
it only includes the address-use-after-scope check that can lead zero page. This means that KASAN cannot detect errors involving
to excessive kernel stack usage, frame size warnings and longer vmalloc space.
compile time.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
Enabling this option will hook in to vmap/vmalloc and back those
mappings with real shadow memory allocated on demand. This allows
for KASAN to detect more sorts of errors (and to support vmapped
stacks), but at the cost of higher memory usage.
This option depends on HAVE_ARCH_KASAN_VMALLOC, but we can't
depend on that in here, so it is possible that enabling this
will have no effect.
if KERNEL_KASAN
choice
prompt "KASAN mode"
depends on KERNEL_KASAN
default KERNEL_KASAN_GENERIC
help
KASAN has three modes:
1. Generic KASAN (supported by many architectures, enabled with
CONFIG_KASAN_GENERIC, similar to userspace ASan),
2. Software Tag-Based KASAN (arm64 only, based on software memory
tagging, enabled with CONFIG_KASAN_SW_TAGS, similar to userspace
HWASan), and
3. Hardware Tag-Based KASAN (arm64 only, based on hardware memory
tagging, enabled with CONFIG_KASAN_HW_TAGS).
config KERNEL_KASAN_GENERIC
bool "Generic KASAN"
select KERNEL_SLUB_DEBUG
help
Enables Generic KASAN.
Consumes about 1/8th of available memory at kernel start and adds an
overhead of ~50% for dynamic allocations.
The performance slowdown is ~x3.
config KERNEL_KASAN_SW_TAGS
bool "Software Tag-Based KASAN"
depends on aarch64
select KERNEL_SLUB_DEBUG
help
Enables Software Tag-Based KASAN.
Supported only on arm64 CPUs and relies on Top Byte Ignore.
Consumes about 1/16th of available memory at kernel start and
add an overhead of ~20% for dynamic allocations.
May potentially introduce problems related to pointer casting and
comparison, as it embeds a tag into the top byte of each pointer.
config KERNEL_KASAN_HW_TAGS
bool "Hardware Tag-Based KASAN"
depends on aarch64
select KERNEL_SLUB_DEBUG
select KERNEL_ARM64_MTE
help
Enables Hardware Tag-Based KASAN.
Supported only on arm64 CPUs starting from ARMv8.5 and relies on
Memory Tagging Extension and Top Byte Ignore.
Consumes about 1/32nd of available memory.
May potentially introduce problems related to pointer casting and
comparison, as it embeds a tag into the top byte of each pointer.
endchoice
config KERNEL_ARM64_MTE
def_bool n
endif
choice choice
prompt "Instrumentation type" prompt "Instrumentation type"
depends on KERNEL_KASAN depends on KERNEL_KASAN
depends on !KERNEL_KASAN_HW_TAGS
default KERNEL_KASAN_OUTLINE default KERNEL_KASAN_OUTLINE
config KERNEL_KASAN_OUTLINE config KERNEL_KASAN_OUTLINE
@ -209,7 +315,6 @@ config KERNEL_KCOV_INSTRUMENT_ALL
config KERNEL_TASKSTATS config KERNEL_TASKSTATS
bool "Compile the kernel with task resource/io statistics and accounting" bool "Compile the kernel with task resource/io statistics and accounting"
default n
help help
Enable the collection and publishing of task/io statistics and Enable the collection and publishing of task/io statistics and
accounting. Enable this option to enable i/o monitoring in system accounting. Enable this option to enable i/o monitoring in system
@ -228,6 +333,25 @@ if KERNEL_TASKSTATS
endif endif
config KERNEL_PSI
bool "Compile the kernel with pressure stall information tracking"
help
Collect metrics that indicate how overcommitted the CPU, memory,
and IO capacity are in the system.
If you say Y here, the kernel will create /proc/pressure/ with the
pressure statistics files cpu, memory, and io. These will indicate
the share of walltime in which some or all tasks in the system are
delayed due to contention of the respective resource.
In kernels with cgroup support, cgroups (cgroup2 only) will
have cpu.pressure, memory.pressure, and io.pressure files,
which aggregate pressure stalls for the grouped tasks only.
For more details see Documentation/accounting/psi.rst.
Say N if unsure.
config KERNEL_KALLSYMS config KERNEL_KALLSYMS
bool "Compile the kernel with symbol table information" bool "Compile the kernel with symbol table information"
default y if !SMALL_FLASH default y if !SMALL_FLASH
@ -237,37 +361,30 @@ config KERNEL_KALLSYMS
config KERNEL_FTRACE config KERNEL_FTRACE
bool "Compile the kernel with tracing support" bool "Compile the kernel with tracing support"
depends on !TARGET_uml depends on !TARGET_uml
default n
config KERNEL_FTRACE_SYSCALLS config KERNEL_FTRACE_SYSCALLS
bool "Trace system calls" bool "Trace system calls"
depends on KERNEL_FTRACE depends on KERNEL_FTRACE
default n
config KERNEL_ENABLE_DEFAULT_TRACERS config KERNEL_ENABLE_DEFAULT_TRACERS
bool "Trace process context switches and events" bool "Trace process context switches and events"
depends on KERNEL_FTRACE depends on KERNEL_FTRACE
default n
config KERNEL_FUNCTION_TRACER config KERNEL_FUNCTION_TRACER
bool "Function tracer" bool "Function tracer"
depends on KERNEL_FTRACE depends on KERNEL_FTRACE
default n
config KERNEL_FUNCTION_GRAPH_TRACER config KERNEL_FUNCTION_GRAPH_TRACER
bool "Function graph tracer" bool "Function graph tracer"
depends on KERNEL_FUNCTION_TRACER depends on KERNEL_FUNCTION_TRACER
default n
config KERNEL_DYNAMIC_FTRACE config KERNEL_DYNAMIC_FTRACE
bool "Enable/disable function tracing dynamically" bool "Enable/disable function tracing dynamically"
depends on KERNEL_FUNCTION_TRACER depends on KERNEL_FUNCTION_TRACER
default n
config KERNEL_FUNCTION_PROFILER config KERNEL_FUNCTION_PROFILER
bool "Function profiler" bool "Function profiler"
depends on KERNEL_FUNCTION_TRACER depends on KERNEL_FUNCTION_TRACER
default n
config KERNEL_IRQSOFF_TRACER config KERNEL_IRQSOFF_TRACER
bool "Interrupts-off Latency Tracer" bool "Interrupts-off Latency Tracer"
@ -303,9 +420,21 @@ config KERNEL_PREEMPT_TRACER
enabled. This option and the irqs-off timing option can be enabled. This option and the irqs-off timing option can be
used together or separately.) used together or separately.)
config KERNEL_HIST_TRIGGERS
bool "Histogram triggers"
depends on KERNEL_FTRACE
help
Hist triggers allow one or more arbitrary trace event fields to be
aggregated into hash tables and dumped to stdout by reading a
debugfs/tracefs file. They're useful for gathering quick and dirty
(though precise) summaries of event activity as an initial guide for
further investigation using more advanced tools.
Inter-event tracing of quantities such as latencies is also
supported using hist triggers under this option.
config KERNEL_DEBUG_KERNEL config KERNEL_DEBUG_KERNEL
bool bool
default n
config KERNEL_DEBUG_INFO config KERNEL_DEBUG_INFO
bool "Compile the kernel with debug information" bool "Compile the kernel with debug information"
@ -314,6 +443,61 @@ config KERNEL_DEBUG_INFO
help help
This will compile your kernel and modules with debug information. This will compile your kernel and modules with debug information.
config KERNEL_DEBUG_INFO_BTF
bool "Enable additional BTF type information"
depends on !HOST_OS_MACOS
depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED
select DWARVES
help
Generate BPF Type Format (BTF) information from DWARF debug info.
Turning this on expects presence of pahole tool, which will convert
DWARF type info into equivalent deduplicated BTF type info.
Required to run BPF CO-RE applications.
config KERNEL_DEBUG_INFO_BTF_MODULES
def_bool y
depends on KERNEL_DEBUG_INFO_BTF
config KERNEL_MODULE_ALLOW_BTF_MISMATCH
bool "Allow loading modules with non-matching BTF type info"
depends on KERNEL_DEBUG_INFO_BTF_MODULES
help
For modules whose split BTF does not match vmlinux, load without
BTF rather than refusing to load. The default behavior with
module BTF enabled is to reject modules with such mismatches;
this option will still load module BTF where possible but ignore
it when a mismatch is found.
config KERNEL_DEBUG_INFO_REDUCED
bool "Reduce debugging information"
default y
depends on KERNEL_DEBUG_INFO
help
If you say Y here gcc is instructed to generate less debugging
information for structure types. This means that tools that
need full debugging information (like kgdb or systemtap) won't
be happy. But if you merely need debugging information to
resolve line numbers there is no loss. Advantage is that
build directory object sizes shrink dramatically over a full
DEBUG_INFO build and compile times are reduced too.
Only works with newer gcc versions.
config KERNEL_FRAME_WARN
int
range 0 8192
default 1280 if KERNEL_KASAN && !ARCH_64BIT
default 1024 if !ARCH_64BIT
default 2048 if ARCH_64BIT
help
Tell the compiler to warn at build time for stack frames larger than this.
Setting this too low will cause a lot of warnings.
Setting it to 0 disables the warning.
# KERNEL_DEBUG_LL symbols must have the default value set as otherwise
# KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
# which means that buildroot wont override the DEBUG_LL symbols in target
# kernel configurations and lead to devices that dont have working console
config KERNEL_DEBUG_LL_UART_NONE config KERNEL_DEBUG_LL_UART_NONE
bool bool
default n default n
@ -327,10 +511,16 @@ config KERNEL_DEBUG_LL
help help
ARM low level debugging. ARM low level debugging.
config KERNEL_DEBUG_VIRTUAL
bool "Compile the kernel with VM translations debugging"
select KERNEL_DEBUG_KERNEL
help
Enable checks sanity checks to catch invalid uses of
virt_to_phys()/phys_to_virt() against the non-linear address space.
config KERNEL_DYNAMIC_DEBUG config KERNEL_DYNAMIC_DEBUG
bool "Compile the kernel with dynamic printk" bool "Compile the kernel with dynamic printk"
select KERNEL_DEBUG_FS select KERNEL_DEBUG_FS
default n
help help
Compiles debug level messages into the kernel, which would not Compiles debug level messages into the kernel, which would not
otherwise be available at runtime. These messages can then be otherwise be available at runtime. These messages can then be
@ -342,7 +532,6 @@ config KERNEL_DYNAMIC_DEBUG
config KERNEL_EARLY_PRINTK config KERNEL_EARLY_PRINTK
bool "Compile the kernel with early printk" bool "Compile the kernel with early printk"
default y if TARGET_bcm53xx default y if TARGET_bcm53xx
default n
depends on arm depends on arm
select KERNEL_DEBUG_KERNEL select KERNEL_DEBUG_KERNEL
select KERNEL_DEBUG_LL if arm select KERNEL_DEBUG_LL if arm
@ -353,7 +542,6 @@ config KERNEL_EARLY_PRINTK
config KERNEL_KPROBES config KERNEL_KPROBES
bool "Compile the kernel with kprobes support" bool "Compile the kernel with kprobes support"
default n
select KERNEL_FTRACE select KERNEL_FTRACE
select KERNEL_PERF_EVENTS select KERNEL_PERF_EVENTS
help help
@ -368,13 +556,32 @@ config KERNEL_KPROBE_EVENTS
bool bool
default y if KERNEL_KPROBES default y if KERNEL_KPROBES
config KERNEL_BPF_EVENTS
bool "Compile the kernel with BPF event support"
select KERNEL_KPROBES
help
Allows to attach BPF programs to kprobe, uprobe and tracepoint events.
This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY
for sending data from BPF programs to user-space for post-processing
or logging.
config KERNEL_PROBE_EVENTS_BTF_ARGS
bool "Support BTF function arguments for probe events"
depends on KERNEL_DEBUG_INFO_BTF && KERNEL_KPROBE_EVENTS && LINUX_6_6
config KERNEL_BPF_KPROBE_OVERRIDE
bool
depends on KERNEL_KPROBES
default n
config KERNEL_AIO config KERNEL_AIO
bool "Compile the kernel with asynchronous IO support" bool "Compile the kernel with asynchronous IO support"
default y if !SMALL_FLASH default y if !SMALL_FLASH
config KERNEL_IO_URING config KERNEL_IO_URING
bool "Compile the kernel with io_uring support" bool "Compile the kernel with io_uring support"
default y if !SMALL_FLASH depends on !SMALL_FLASH
default y if (x86_64 || aarch64)
config KERNEL_FHANDLE config KERNEL_FHANDLE
bool "Compile the kernel with support for fhandle syscalls" bool "Compile the kernel with support for fhandle syscalls"
@ -386,7 +593,6 @@ config KERNEL_FANOTIFY
config KERNEL_BLK_DEV_BSG config KERNEL_BLK_DEV_BSG
bool "Compile the kernel with SCSI generic v4 support for any block device" bool "Compile the kernel with SCSI generic v4 support for any block device"
default n
config KERNEL_TRANSPARENT_HUGEPAGE config KERNEL_TRANSPARENT_HUGEPAGE
bool bool
@ -410,7 +616,6 @@ config KERNEL_HUGETLB_PAGE
bool "Compile the kernel with HugeTLB support" bool "Compile the kernel with HugeTLB support"
select KERNEL_TRANSPARENT_HUGEPAGE select KERNEL_TRANSPARENT_HUGEPAGE
select KERNEL_HUGETLBFS select KERNEL_HUGETLBFS
default n
config KERNEL_MAGIC_SYSRQ config KERNEL_MAGIC_SYSRQ
bool "Compile the kernel with SysRq support" bool "Compile the kernel with SysRq support"
@ -435,36 +640,35 @@ config KERNEL_ELF_CORE
config KERNEL_PROVE_LOCKING config KERNEL_PROVE_LOCKING
bool "Enable kernel lock checking" bool "Enable kernel lock checking"
select KERNEL_DEBUG_KERNEL select KERNEL_DEBUG_KERNEL
default n
config KERNEL_LOCKUP_DETECTOR config KERNEL_SOFTLOCKUP_DETECTOR
bool "Compile the kernel with detect Hard and Soft Lockups" bool "Compile the kernel with detect Soft Lockups"
depends on KERNEL_DEBUG_KERNEL depends on KERNEL_DEBUG_KERNEL
help help
Say Y here to enable the kernel to act as a watchdog to detect Say Y here to enable the kernel to act as a watchdog to detect
hard and soft lockups. soft lockups.
Softlockups are bugs that cause the kernel to loop in kernel Softlockups are bugs that cause the kernel to loop in kernel
mode for more than 20 seconds, without giving other tasks a mode for more than 20 seconds, without giving other tasks a
chance to run. The current stack trace is displayed upon chance to run. The current stack trace is displayed upon
detection and the system will stay locked up. detection and the system will stay locked up.
config KERNEL_HARDLOCKUP_DETECTOR
bool "Compile the kernel with detect Hard Lockups"
depends on KERNEL_DEBUG_KERNEL
help
Say Y here to enable the kernel to act as a watchdog to detect
hard lockups.
Hardlockups are bugs that cause the CPU to loop in kernel mode Hardlockups are bugs that cause the CPU to loop in kernel mode
for more than 10 seconds, without letting other interrupts have a for more than 10 seconds, without letting other interrupts have a
chance to run. The current stack trace is displayed upon detection chance to run. The current stack trace is displayed upon detection
and the system will stay locked up. and the system will stay locked up.
The overhead should be minimal. A periodic hrtimer runs to
generate interrupts and kick the watchdog task every 4 seconds.
An NMI is generated every 10 seconds or so to check for hardlockups.
The frequency of hrtimer and NMI events and the soft and hard lockup
thresholds can be controlled through the sysctl watchdog_thresh.
config KERNEL_DETECT_HUNG_TASK config KERNEL_DETECT_HUNG_TASK
bool "Compile the kernel with detect Hung Tasks" bool "Compile the kernel with detect Hung Tasks"
depends on KERNEL_DEBUG_KERNEL depends on KERNEL_DEBUG_KERNEL
default KERNEL_LOCKUP_DETECTOR default KERNEL_SOFTLOCKUP_DETECTOR
help help
Say Y here to enable the kernel to detect "hung tasks", Say Y here to enable the kernel to detect "hung tasks",
which are bugs that cause the task to be stuck in which are bugs that cause the task to be stuck in
@ -510,10 +714,23 @@ config KERNEL_PRINTK_TIME
default y default y
config KERNEL_SLUB_DEBUG config KERNEL_SLUB_DEBUG
bool bool "Enable SLUB debugging support"
help
This enables various debugging features:
- Accepts "slub_debug" kernel parameter
- Provides caches debugging options (e.g. tracing, validating)
- Adds /sys/kernel/slab/ attrs for reading amounts of *objects*
- Enables /proc/slabinfo support
- Prints info when running out of memory
Enabling this can result in a significant increase of code size.
config KERNEL_SLUB_DEBUG_ON config KERNEL_SLUB_DEBUG_ON
bool depends on KERNEL_SLUB_DEBUG
bool "Boot kernel with basic caches debugging enabled"
help
This enables by default sanity_checks, red_zone, poison and store_user
debugging options for all caches.
config KERNEL_SLABINFO config KERNEL_SLABINFO
select KERNEL_SLUB_DEBUG select KERNEL_SLUB_DEBUG
@ -549,11 +766,9 @@ config USE_RFKILL
config USE_SPARSE config USE_SPARSE
bool "Enable sparse check during kernel build" bool "Enable sparse check during kernel build"
default n
config KERNEL_DEVTMPFS config KERNEL_DEVTMPFS
bool "Compile the kernel with device tmpfs enabled" bool "Compile the kernel with device tmpfs enabled"
default n
help help
devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
devices nodes for all registered devices to simplify boot, but leaves more devices nodes for all registered devices to simplify boot, but leaves more
@ -563,7 +778,6 @@ if KERNEL_DEVTMPFS
config KERNEL_DEVTMPFS_MOUNT config KERNEL_DEVTMPFS_MOUNT
bool "Automatically mount devtmpfs after root filesystem is mounted" bool "Automatically mount devtmpfs after root filesystem is mounted"
default n
endif endif
@ -574,17 +788,14 @@ config KERNEL_KEYS
config KERNEL_PERSISTENT_KEYRINGS config KERNEL_PERSISTENT_KEYRINGS
bool "Enable kernel persistent keyrings" bool "Enable kernel persistent keyrings"
depends on KERNEL_KEYS depends on KERNEL_KEYS
default n
config KERNEL_KEYS_REQUEST_CACHE config KERNEL_KEYS_REQUEST_CACHE
bool "Enable temporary caching of the last request_key() result" bool "Enable temporary caching of the last request_key() result"
depends on KERNEL_KEYS depends on KERNEL_KEYS
default n
config KERNEL_BIG_KEYS config KERNEL_BIG_KEYS
bool "Enable large payload keys on kernel keyrings" bool "Enable large payload keys on kernel keyrings"
depends on KERNEL_KEYS depends on KERNEL_KEYS
default n
# #
# CGROUP support symbols # CGROUP support symbols
@ -598,7 +809,6 @@ if KERNEL_CGROUPS
config KERNEL_CGROUP_DEBUG config KERNEL_CGROUP_DEBUG
bool "Example debug cgroup subsystem" bool "Example debug cgroup subsystem"
default n
help help
This option enables a simple cgroup subsystem that This option enables a simple cgroup subsystem that
exports useful debugging information about the cgroups exports useful debugging information about the cgroups
@ -609,7 +819,6 @@ if KERNEL_CGROUPS
config KERNEL_CGROUP_FREEZER config KERNEL_CGROUP_FREEZER
bool "legacy Freezer cgroup subsystem" bool "legacy Freezer cgroup subsystem"
default n
select KERNEL_FREEZER select KERNEL_FREEZER
help help
Provides a way to freeze and unfreeze all tasks in a Provides a way to freeze and unfreeze all tasks in a
@ -619,7 +828,6 @@ if KERNEL_CGROUPS
config KERNEL_CGROUP_DEVICE config KERNEL_CGROUP_DEVICE
bool "legacy Device controller for cgroups" bool "legacy Device controller for cgroups"
default n
help help
Provides a cgroup implementing whitelists for devices which Provides a cgroup implementing whitelists for devices which
a process in the cgroup can mknod or open. a process in the cgroup can mknod or open.
@ -627,7 +835,6 @@ if KERNEL_CGROUPS
config KERNEL_CGROUP_HUGETLB config KERNEL_CGROUP_HUGETLB
bool "HugeTLB controller" bool "HugeTLB controller"
default n
select KERNEL_HUGETLB_PAGE select KERNEL_HUGETLB_PAGE
config KERNEL_CGROUP_PIDS config KERNEL_CGROUP_PIDS
@ -654,9 +861,19 @@ if KERNEL_CGROUPS
Memory Nodes and assigning tasks to run only within those sets. Memory Nodes and assigning tasks to run only within those sets.
This is primarily useful on large SMP or NUMA systems. This is primarily useful on large SMP or NUMA systems.
config KERNEL_CPUSETS_V1
bool "Legacy cgroup v1 cpusets controller"
depends on KERNEL_CPUSETS
default n
help
Legacy cgroup v1 cpusets controller which has been deprecated by
cgroup v2 implementation. The v1 is there for legacy applications
which haven't migrated to the new cgroup v2 interface yet. If you
do not have any such application then you are completely fine leaving
this option disabled.
config KERNEL_PROC_PID_CPUSET config KERNEL_PROC_PID_CPUSET
bool "Include legacy /proc/<pid>/cpuset file" bool "Include legacy /proc/<pid>/cpuset file"
default n
depends on KERNEL_CPUSETS depends on KERNEL_CPUSETS
config KERNEL_CGROUP_CPUACCT config KERNEL_CGROUP_CPUACCT
@ -681,7 +898,7 @@ if KERNEL_CGROUPS
bool "Memory Resource Controller for Control Groups" bool "Memory Resource Controller for Control Groups"
default y default y
select KERNEL_FREEZER select KERNEL_FREEZER
depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18 depends on KERNEL_RESOURCE_COUNTERS
help help
Provides a memory resource controller that manages both anonymous Provides a memory resource controller that manages both anonymous
memory and page cache. (See Documentation/cgroups/memory.txt) memory and page cache. (See Documentation/cgroups/memory.txt)
@ -722,7 +939,6 @@ if KERNEL_CGROUPS
config KERNEL_MEMCG_SWAP_ENABLED config KERNEL_MEMCG_SWAP_ENABLED
bool "Memory Resource Controller Swap Extension enabled by default" bool "Memory Resource Controller Swap Extension enabled by default"
default n
depends on KERNEL_MEMCG_SWAP depends on KERNEL_MEMCG_SWAP
help help
Memory Resource Controller Swap Extension comes with its price in Memory Resource Controller Swap Extension comes with its price in
@ -748,10 +964,24 @@ if KERNEL_CGROUPS
the kmem extension can use it to guarantee that no group of processes the kmem extension can use it to guarantee that no group of processes
will ever exhaust kernel resources alone. will ever exhaust kernel resources alone.
config KERNEL_MEMCG_V1
bool "Legacy cgroup v1 memory controller"
default n
depends on KERNEL_MEMCG
help
Legacy cgroup v1 memory controller which has been deprecated by
cgroup v2 implementation. The v1 is there for legacy applications
which haven't migrated to the new cgroup v2 interface yet. If you
do not have any such application then you are completely fine leaving
this option disabled.
Please note that feature set of the legacy memory controller is likely
going to shrink due to deprecation process. New deployments with v1
controller are highly discouraged.
config KERNEL_CGROUP_PERF config KERNEL_CGROUP_PERF
bool "Enable perf_event per-cpu per-container group (cgroup) monitoring" bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
select KERNEL_PERF_EVENTS select KERNEL_PERF_EVENTS
default n
help help
This option extends the per-cpu mode to restrict monitoring to This option extends the per-cpu mode to restrict monitoring to
threads which belong to the cgroup specified and run on the threads which belong to the cgroup specified and run on the
@ -828,7 +1058,6 @@ if KERNEL_CGROUPS
config KERNEL_DEBUG_BLK_CGROUP config KERNEL_DEBUG_BLK_CGROUP
bool "Enable Block IO controller debugging" bool "Enable Block IO controller debugging"
default n
depends on KERNEL_BLK_CGROUP depends on KERNEL_BLK_CGROUP
help help
Enable some debugging help. Currently it exports additional stat Enable some debugging help. Currently it exports additional stat
@ -836,15 +1065,12 @@ if KERNEL_CGROUPS
config KERNEL_NET_CLS_CGROUP config KERNEL_NET_CLS_CGROUP
bool "legacy Control Group Classifier" bool "legacy Control Group Classifier"
default n
config KERNEL_CGROUP_NET_CLASSID config KERNEL_CGROUP_NET_CLASSID
bool "legacy Network classid cgroup" bool "legacy Network classid cgroup"
default n
config KERNEL_CGROUP_NET_PRIO config KERNEL_CGROUP_NET_PRIO
bool "legacy Network priority cgroup" bool "legacy Network priority cgroup"
default n
endif endif
@ -944,6 +1170,19 @@ config KERNEL_IP_MROUTE
Multicast routing requires a multicast routing daemon in Multicast routing requires a multicast routing daemon in
addition to kernel support. addition to kernel support.
if KERNEL_IP_MROUTE
config KERNEL_IP_MROUTE_MULTIPLE_TABLES
def_bool y
config KERNEL_IP_PIMSM_V1
def_bool y
config KERNEL_IP_PIMSM_V2
def_bool y
endif
# #
# IPv6 configuration # IPv6 configuration
# #
@ -966,8 +1205,15 @@ if KERNEL_IPV6
Multicast routing requires a multicast routing daemon in Multicast routing requires a multicast routing daemon in
addition to kernel support. addition to kernel support.
config KERNEL_IPV6_PIMSM_V2 if KERNEL_IPV6_MROUTE
def_bool n
config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
def_bool y
config KERNEL_IPV6_PIMSM_V2
def_bool y
endif
config KERNEL_IPV6_SEG6_LWTUNNEL config KERNEL_IPV6_SEG6_LWTUNNEL
bool "Enable support for lightweight tunnels" bool "Enable support for lightweight tunnels"
@ -980,6 +1226,45 @@ if KERNEL_IPV6
endif endif
#
# Miscellaneous network configuration
#
config KERNEL_NET_L3_MASTER_DEV
bool "L3 Master device support"
default y if !SMALL_FLASH
help
This module provides glue between core networking code and device
drivers to support L3 master devices like VRF.
Increases the compressed kernel size by ~4kB (as of Linux 6.6).
config KERNEL_XDP_SOCKETS
bool "XDP sockets support"
help
XDP sockets allows a channel between XDP programs and
userspace applications.
config KERNEL_PAGE_POOL
def_bool n
config KERNEL_PAGE_POOL_STATS
bool "Page pool stats support"
depends on KERNEL_PAGE_POOL
config KERNEL_MPTCP
bool "Multi-Path TCP support"
default y if !SMALL_FLASH
help
Select this option to enable support for Multi-Path TCP.
Increases the compressed kernel size by ~214kB (as of Linux 6.6).
if KERNEL_IPV6
config KERNEL_MPTCP_IPV6
bool "IPv6 support for Multipath TCP"
depends on KERNEL_MPTCP
default KERNEL_MPTCP
endif
# #
# NFS related symbols # NFS related symbols
# #
@ -1014,14 +1299,20 @@ if KERNEL_IP_PNP
endif endif
config KERNEL_BTRFS_FS
bool "Compile the kernel with built-in BTRFS support"
help
Say Y here if you want to make the kernel to be able to boot off a
BTRFS partition.
menu "Filesystem ACL and attr support options" menu "Filesystem ACL and attr support options"
config USE_FS_ACL_ATTR config USE_FS_ACL_ATTR
bool "Use filesystem ACL and attr support by default" bool "Use filesystem ACL and attr support by default"
default n default y if !SMALL_FLASH
help help
Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
for kernel and packages, except tmpfs, flash filesystems, for kernel and packages, except old NFS.
and old NFS. Also enable userspace extended attribute support Also enable userspace extended attribute support
by default. (OpenWrt already has an expection it will be by default. (OpenWrt already has an expection it will be
present in the kernel). present in the kernel).
@ -1042,17 +1333,17 @@ menu "Filesystem ACL and attr support options"
config KERNEL_F2FS_FS_POSIX_ACL config KERNEL_F2FS_FS_POSIX_ACL
bool "Enable POSIX ACL for F2FS Filesystems" bool "Enable POSIX ACL for F2FS Filesystems"
select KERNEL_FS_POSIX_ACL select KERNEL_FS_POSIX_ACL
default n default y if USE_FS_ACL_ATTR
config KERNEL_JFFS2_FS_POSIX_ACL config KERNEL_JFFS2_FS_POSIX_ACL
bool "Enable POSIX ACL for JFFS2 Filesystems" bool "Enable POSIX ACL for JFFS2 Filesystems"
select KERNEL_FS_POSIX_ACL select KERNEL_FS_POSIX_ACL
default n default y if USE_FS_ACL_ATTR
config KERNEL_TMPFS_POSIX_ACL config KERNEL_TMPFS_POSIX_ACL
bool "Enable POSIX ACL for TMPFS Filesystems" bool "Enable POSIX ACL for TMPFS Filesystems"
select KERNEL_FS_POSIX_ACL select KERNEL_FS_POSIX_ACL
default n default y if USE_FS_ACL_ATTR
config KERNEL_CIFS_ACL config KERNEL_CIFS_ACL
bool "Enable CIFS ACLs" bool "Enable CIFS ACLs"
@ -1075,15 +1366,12 @@ menu "Filesystem ACL and attr support options"
config KERNEL_NFS_V3_ACL_SUPPORT config KERNEL_NFS_V3_ACL_SUPPORT
bool "Enable ACLs for NFSv3" bool "Enable ACLs for NFSv3"
default n
config KERNEL_NFSD_V2_ACL_SUPPORT config KERNEL_NFSD_V2_ACL_SUPPORT
bool "Enable ACLs for NFSDv2" bool "Enable ACLs for NFSDv2"
default n
config KERNEL_NFSD_V3_ACL_SUPPORT config KERNEL_NFSD_V3_ACL_SUPPORT
bool "Enable ACLs for NFSDv3" bool "Enable ACLs for NFSDv3"
default n
config KERNEL_REISER_FS_POSIX_ACL config KERNEL_REISER_FS_POSIX_ACL
bool "Enable POSIX ACLs for ReiserFS" bool "Enable POSIX ACLs for ReiserFS"
@ -1125,7 +1413,7 @@ config KERNEL_SQUASHFS_XATTR
bool "Squashfs XATTR support" bool "Squashfs XATTR support"
# #
# compile optimiziation setting # compile optimization setting
# #
choice choice
prompt "Compiler optimization level" prompt "Compiler optimization level"
@ -1192,12 +1480,30 @@ config KERNEL_LSM
config KERNEL_EXT4_FS_SECURITY config KERNEL_EXT4_FS_SECURITY
bool "Ext4 Security Labels" bool "Ext4 Security Labels"
default y if !SMALL_FLASH
config KERNEL_F2FS_FS_SECURITY config KERNEL_F2FS_FS_SECURITY
bool "F2FS Security Labels" bool "F2FS Security Labels"
default y if !SMALL_FLASH
config KERNEL_UBIFS_FS_SECURITY config KERNEL_UBIFS_FS_SECURITY
bool "UBIFS Security Labels" bool "UBIFS Security Labels"
default y if !SMALL_FLASH
config KERNEL_JFFS2_FS_SECURITY config KERNEL_JFFS2_FS_SECURITY
bool "JFFS2 Security Labels" bool "JFFS2 Security Labels"
default y if !SMALL_FLASH
config KERNEL_WERROR
bool "Compile the kernel with warnings as errors"
help
A kernel build should not cause any compiler warnings, and this
enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
to enforce that rule by default. Certain warnings from other tools
such as the linker may be upgraded to errors with this option as
well.
However, if you have a new (or very old) compiler or linker with odd
and unusual warnings, or you have some architecture with problems,
you may need to disable this config option in order to
successfully build the kernel.

12
config/check-hostcxx.sh Executable file
View File

@ -0,0 +1,12 @@
cat << EOF | "$STAGING_DIR_HOST/bin/g++" -c -x c++ -o /dev/null - >/dev/null 2>&1
#if __clang__
#if __clang_major__ < $3
#error "clang too old"
#endif
#else
#if __GNUC__ < $1 || (__GNUC__ == $1 && (__GNUC_MINOR__ < $2))
#error "gcc too old"
#endif
#endif
EOF
[ $? -eq 0 ] && echo y || echo n

1
config/check-uname.sh Executable file
View File

@ -0,0 +1 @@
[ "$(uname)" = "$1" ] && echo y || echo n

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

BIN
doc/h68k.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
doc/r1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
doc/sige-en.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
doc/sige-zh.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
doc/star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,7 +1,10 @@
src-git packages https://github.com/coolsnowwolf/packages src-git packages https://github.com/coolsnowwolf/packages
src-git luci https://github.com/coolsnowwolf/luci #src-git luci https://github.com/coolsnowwolf/luci
src-git routing https://git.openwrt.org/feed/routing.git src-git luci https://github.com/coolsnowwolf/luci.git;openwrt-23.05
src-git telephony https://git.openwrt.org/feed/telephony.git src-git routing https://github.com/coolsnowwolf/routing
src-git telephony https://github.com/coolsnowwolf/telephony.git
#src-git helloworld https://github.com/fw876/helloworld.git
#src-git oui https://github.com/zhaojh329/oui.git
#src-git video https://github.com/openwrt/video.git #src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git #src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git #src-git oldpackages http://git.openwrt.org/packages.git

View File

@ -23,7 +23,8 @@ AM_TOOL_PATHS:= \
LIBTOOLIZE=$(STAGING_DIR_HOST)/bin/libtoolize \ LIBTOOLIZE=$(STAGING_DIR_HOST)/bin/libtoolize \
LIBTOOL=$(STAGING_DIR_HOST)/bin/libtool \ LIBTOOL=$(STAGING_DIR_HOST)/bin/libtool \
M4=$(STAGING_DIR_HOST)/bin/m4 \ M4=$(STAGING_DIR_HOST)/bin/m4 \
AUTOPOINT=true AUTOPOINT=true \
GTKDOCIZE=true
# 1: build dir # 1: build dir
# 2: remove files # 2: remove files
@ -35,7 +36,7 @@ define autoreconf
$(patsubst %,rm -f %;,$(2)) \ $(patsubst %,rm -f %;,$(2)) \
$(foreach p,$(3), \ $(foreach p,$(3), \
if [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \ if [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \
[ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \ [ -d $(p)/autom4te.cache ] && rm -rf $(p)/autom4te.cache; \
[ -e $(p)/config.rpath ] || \ [ -e $(p)/config.rpath ] || \
ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath; \ ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath; \
touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; \ touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; \
@ -113,7 +114,7 @@ ifneq ($(filter patch-libtool,$(PKG_FIXUP)),)
endif endif
ifneq ($(filter libtool,$(PKG_FIXUP)),) ifneq ($(filter libtool,$(PKG_FIXUP)),)
PKG_BUILD_DEPENDS += libtool gettext libiconv PKG_BUILD_DEPENDS += libtool
ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),)
Hooks/Configure/Pre += autoreconf_target Hooks/Configure/Pre += autoreconf_target
endif endif
@ -124,7 +125,7 @@ ifneq ($(filter libtool-abiver,$(PKG_FIXUP)),)
endif endif
ifneq ($(filter libtool-ucxx,$(PKG_FIXUP)),) ifneq ($(filter libtool-ucxx,$(PKG_FIXUP)),)
PKG_BUILD_DEPENDS += libtool gettext libiconv PKG_BUILD_DEPENDS += libtool
ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),)
Hooks/Configure/Pre += autoreconf_target Hooks/Configure/Pre += autoreconf_target
endif endif

85
include/bpf.mk Normal file
View File

@ -0,0 +1,85 @@
BPF_DEPENDS := @HAS_BPF_TOOLCHAIN
LLVM_VER:=
CLANG_MIN_VER:=12
ifneq ($(CONFIG_USE_LLVM_HOST),)
BPF_TOOLCHAIN_HOST_PATH:=$(call qstrip,$(CONFIG_BPF_TOOLCHAIN_HOST_PATH))
ifneq ($(BPF_TOOLCHAIN_HOST_PATH),)
BPF_PATH:=$(BPF_TOOLCHAIN_HOST_PATH)/bin:$(PATH)
else
BPF_PATH:=$(PATH)
endif
CLANG:=$(firstword $(shell PATH='$(BPF_PATH)' command -v clang clang-13 clang-12 clang-11))
LLVM_VER:=$(subst clang,,$(notdir $(CLANG)))
endif
ifneq ($(CONFIG_USE_LLVM_PREBUILT),)
CLANG:=$(TOPDIR)/llvm-bpf/bin/clang
endif
ifneq ($(CONFIG_USE_LLVM_BUILD),)
CLANG:=$(STAGING_DIR_HOST)/llvm-bpf/bin/clang
endif
LLVM_PATH:=$(dir $(CLANG))
LLVM_LLC:=$(LLVM_PATH)/llc$(LLVM_VER)
LLVM_DIS:=$(LLVM_PATH)/llvm-dis$(LLVM_VER)
LLVM_OPT:=$(LLVM_PATH)/opt$(LLVM_VER)
LLVM_STRIP:=$(LLVM_PATH)/llvm-strip$(LLVM_VER)
BPF_KARCH:=mips
BPF_ARCH:=mips$(if $(CONFIG_ARCH_64BIT),64)$(if $(CONFIG_BIG_ENDIAN),,el)
BPF_TARGET:=bpf$(if $(CONFIG_BIG_ENDIAN),eb,el)
BPF_HEADERS_DIR:=$(STAGING_DIR)/bpf-headers
BPF_KERNEL_INCLUDE := \
-nostdinc -isystem $(TOOLCHAIN_DIR)/include \
-I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include \
-I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/asm/mach-generic \
-I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/generated \
-I$(BPF_HEADERS_DIR)/include \
-I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/uapi \
-I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/generated/uapi \
-I$(BPF_HEADERS_DIR)/include/uapi \
-I$(BPF_HEADERS_DIR)/include/generated/uapi \
-I$(BPF_HEADERS_DIR)/tools/lib \
-I$(BPF_HEADERS_DIR)/tools/testing/selftests \
-I$(BPF_HEADERS_DIR)/samples/bpf \
-include linux/kconfig.h -include asm_goto_workaround.h
BPF_CFLAGS := \
$(BPF_KERNEL_INCLUDE) -I$(PKG_BUILD_DIR) \
-D__KERNEL__ -D__BPF_TRACING__ -DCONFIG_GENERIC_CSUM \
-D__TARGET_ARCH_${BPF_KARCH} \
-m$(if $(CONFIG_BIG_ENDIAN),big,little)-endian \
-fno-stack-protector -Wall \
-Wno-unused-value -Wno-pointer-sign \
-Wno-compare-distinct-pointer-types \
-Wno-gnu-variable-sized-type-not-at-end \
-Wno-address-of-packed-member -Wno-tautological-compare \
-Wno-unknown-warning-option \
-fno-asynchronous-unwind-tables \
-Wno-uninitialized -Wno-unused-variable \
-Wno-unused-label \
-O2 -emit-llvm -Xclang -disable-llvm-passes
ifneq ($(CONFIG_HAS_BPF_TOOLCHAIN),)
ifeq ($(DUMP)$(filter download refresh,$(MAKECMDGOALS)),)
CLANG_VER:=$(shell $(CLANG) -dM -E - < /dev/null | grep __clang_major__ | cut -d' ' -f3)
CLANG_VER_VALID:=$(shell [ "$(CLANG_VER)" -ge "$(CLANG_MIN_VER)" ] && echo 1 )
ifeq ($(CLANG_VER_VALID),)
$(error ERROR: LLVM/clang version too old. Minimum required: $(CLANG_MIN_VER), found: $(CLANG_VER))
endif
endif
endif
define CompileBPF
$(CLANG) -g -target $(BPF_ARCH)-linux-gnu $(BPF_CFLAGS) $(2) \
-c $(1) -o $(patsubst %.c,%.bc,$(1))
$(LLVM_OPT) -O2 -mtriple=$(BPF_TARGET) < $(patsubst %.c,%.bc,$(1)) > $(patsubst %.c,%.opt,$(1))
$(LLVM_DIS) < $(patsubst %.c,%.opt,$(1)) > $(patsubst %.c,%.S,$(1))
$(LLVM_LLC) -march=$(BPF_TARGET) -mcpu=v3 -filetype=obj -o $(patsubst %.c,%.o,$(1)) < $(patsubst %.c,%.S,$(1))
$(CP) $(patsubst %.c,%.o,$(1)) $(patsubst %.c,%.debug.o,$(1))
$(LLVM_STRIP) --strip-debug $(patsubst %.c,%.o,$(1))
endef

View File

@ -18,12 +18,13 @@ endif
CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR))
CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR))
HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR))
HOST_CMAKE_BINARY_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR))
MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .) MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .)
ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
cmake_tool=$(TOOLCHAIN_DIR)/bin/$(1) cmake_tool=$(TOOLCHAIN_DIR)/bin/$(1)
else else
cmake_tool=$(shell which $(1)) cmake_tool=$(shell command -v $(1))
endif endif
ifeq ($(CONFIG_CCACHE),) ifeq ($(CONFIG_CCACHE),)
@ -51,20 +52,21 @@ CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB))
CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR)/usr;$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT)) CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR)/usr;$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT))
CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOSTPKG);$(STAGING_DIR_HOST) CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOSTPKG);$(STAGING_DIR_HOST)
CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions
CMAKE_HOST_INSTALL_PREFIX = $(HOST_BUILD_PREFIX)
ifeq ($(HOST_USE_NINJA),1) ifeq ($(HOST_USE_NINJA),1)
CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja" CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja"
define Host/Compile/Default define Host/Compile/Default
+$(NINJA) -C $(HOST_BUILD_DIR) $(1) +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) $(1)
endef endef
define Host/Install/Default define Host/Install/Default
+$(NINJA) -C $(HOST_BUILD_DIR) install +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) install
endef endef
define Host/Uninstall/Default define Host/Uninstall/Default
+$(NINJA) -C $(HOST_BUILD_DIR) uninstall +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) uninstall
endef endef
endif endif
@ -133,7 +135,8 @@ endef
Build/InstallDev = $(if $(CMAKE_INSTALL),$(Build/InstallDev/cmake)) Build/InstallDev = $(if $(CMAKE_INSTALL),$(Build/InstallDev/cmake))
define Host/Configure/Default define Host/Configure/Default
(cd $(HOST_BUILD_DIR); \ mkdir -p "$(HOST_CMAKE_BINARY_DIR)"
(cd $(HOST_CMAKE_BINARY_DIR); \
CFLAGS="$(HOST_CFLAGS)" \ CFLAGS="$(HOST_CFLAGS)" \
CXXFLAGS="$(HOST_CFLAGS)" \ CXXFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \ LDFLAGS="$(HOST_LDFLAGS)" \
@ -155,7 +158,7 @@ define Host/Configure/Default
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_STRIP=: \ -DCMAKE_STRIP=: \
-DCMAKE_INSTALL_PREFIX=$(HOST_BUILD_PREFIX) \ -DCMAKE_INSTALL_PREFIX=$(CMAKE_HOST_INSTALL_PREFIX) \
-DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \ -DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \
-DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \

View File

@ -12,6 +12,7 @@
DEP_FINDPARAMS := -x "*/.svn*" -x ".*" -x "*:*" -x "*\!*" -x "* *" -x "*\\\#*" -x "*/.*_check" -x "*/.*.swp" -x "*/.pkgdir*" DEP_FINDPARAMS := -x "*/.svn*" -x ".*" -x "*:*" -x "*\!*" -x "* *" -x "*\\\#*" -x "*/.*_check" -x "*/.*.swp" -x "*/.pkgdir*"
find_md5=find $(wildcard $(1)) -type f $(patsubst -x,-and -not -path,$(DEP_FINDPARAMS) $(2)) -printf "%p%T@\n" | sort | $(MKHASH) md5 find_md5=find $(wildcard $(1)) -type f $(patsubst -x,-and -not -path,$(DEP_FINDPARAMS) $(2)) -printf "%p%T@\n" | sort | $(MKHASH) md5
find_md5_reproducible=find $(wildcard $(1)) -type f $(patsubst -x,-and -not -path,$(DEP_FINDPARAMS) $(2)) -print0 | xargs -0 $(MKHASH) md5 | sort | $(MKHASH) md5
define rdep define rdep
.PRECIOUS: $(2) .PRECIOUS: $(2)
@ -27,7 +28,7 @@ ifneq ($(wildcard $(2)),)
{ [ \! -f "$(3)" ] || diff $(3) $(3).1 >/dev/null; } && \ { [ \! -f "$(3)" ] || diff $(3) $(3).1 >/dev/null; } && \
) \ ) \
{ \ { \
[ -f "$(2)_check.1" ] && mv "$(2)_check.1"; \ [ -f "$(2)_check.1" ] && mv "$(2)_check.1" "$(2)_check"; \
$(TOPDIR)/scripts/timestamp.pl $(DEP_FINDPARAMS) $(4) -n $(2) $(1) && { \ $(TOPDIR)/scripts/timestamp.pl $(DEP_FINDPARAMS) $(4) -n $(2) $(1) && { \
$(call debug_eval,$(SUBDIR),r,echo "No need to rebuild $(2)";) \ $(call debug_eval,$(SUBDIR),r,echo "No need to rebuild $(2)";) \
touch -r "$(2)" "$(2)_check"; \ touch -r "$(2)" "$(2)_check"; \

View File

@ -18,6 +18,10 @@ endif
DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED) DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED)
# Export options for download.pl
export DOWNLOAD_CHECK_CERTIFICATE:=$(CONFIG_DOWNLOAD_CHECK_CERTIFICATE)
export DOWNLOAD_TOOL_CUSTOM:=$(CONFIG_DOWNLOAD_TOOL_CUSTOM)
define dl_method_git define dl_method_git
$(if $(filter https://github.com/% git://github.com/%,$(1)),github_archive,git) $(if $(filter https://github.com/% git://github.com/%,$(1)),github_archive,git)
endef endef
@ -59,6 +63,21 @@ define dl_tar_pack
$$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | $(call dl_pack,$(1)) $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | $(call dl_pack,$(1))
endef endef
gen_sha256sum = $(shell $(MKHASH) sha256 $(DL_DIR)/$(1))
# Used in Build/CoreTargets and HostBuild/Core as an integrity check for
# downloaded files. It will add a FORCE rule if the sha256 hash does not
# match, so that the download can be more thoroughly handled by download.pl.
define check_download_integrity
expected_hash:=$(strip $(if $(filter-out x,$(HASH)),$(HASH),$(MIRROR_HASH)))
$$(if $$(and $(FILE),$$(wildcard $(DL_DIR)/$(FILE)), \
$$(filter undefined,$$(flavor DownloadChecked/$(FILE)))), \
$$(eval DownloadChecked/$(FILE):=1) \
$$(if $$(filter-out $$(call gen_sha256sum,$(FILE)),$$(expected_hash)), \
$(DL_DIR)/$(FILE): FORCE) \
)
endef
ifdef CHECK ifdef CHECK
check_escape=$(subst ','\'',$(1)) check_escape=$(subst ','\'',$(1))
#') #')
@ -74,8 +93,6 @@ else
check_warn = $(if $(filter-out undefined,$(origin F_$(1))),$(filter ,$(shell $(call F_$(1),$(2),$(3),$(4)) >&2)),$(check_warn_nofix)) check_warn = $(if $(filter-out undefined,$(origin F_$(1))),$(filter ,$(shell $(call F_$(1),$(2),$(3),$(4)) >&2)),$(check_warn_nofix))
endif endif
gen_sha256sum = $(shell $(MKHASH) sha256 $(DL_DIR)/$(1))
ifdef FIXUP ifdef FIXUP
F_hash_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile fix-hash $(3) $(call gen_sha256sum,$(1)) $(2) F_hash_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile fix-hash $(3) $(call gen_sha256sum,$(1)) $(2)
F_hash_mismatch = $(F_hash_deprecated) F_hash_mismatch = $(F_hash_deprecated)

View File

@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/depends.mk
include $(INCLUDE_DIR)/quilt.mk include $(INCLUDE_DIR)/quilt.mk
BUILD_TYPES += host BUILD_TYPES += host
HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared$(if $(HOST_QUILT)$(DUMP),,$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(HOST_PREPARED_DEPENDS))) HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared$(if $(HOST_QUILT)$(DUMP),,$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(HOST_PREPARED_DEPENDS)))
HOST_STAMP_CONFIGURED:=$(HOST_BUILD_DIR)/.configured HOST_STAMP_CONFIGURED:=$(HOST_BUILD_DIR)/.configured
HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.built HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.built
HOST_BUILD_PREFIX?=$(if $(IS_PACKAGE_BUILD),$(STAGING_DIR_HOSTPKG),$(STAGING_DIR_HOST)) HOST_BUILD_PREFIX?=$(if $(IS_PACKAGE_BUILD),$(STAGING_DIR_HOSTPKG),$(STAGING_DIR_HOST))
@ -34,23 +34,31 @@ include $(INCLUDE_DIR)/autotools.mk
_host_target:=$(if $(HOST_QUILT),,.) _host_target:=$(if $(HOST_QUILT),,.)
Host/Patch:=$(Host/Patch/Default) Host/Patch:=$(Host/Patch/Default)
ifneq ($(strip $(HOST_UNPACK)),) define Host/Prepare/Default
define Host/Prepare/Default $(if $(strip $(HOST_UNPACK)),$(HOST_UNPACK))
$(HOST_UNPACK)
[ ! -d ./src/ ] || $(CP) ./src/* $(HOST_BUILD_DIR) [ ! -d ./src/ ] || $(CP) ./src/* $(HOST_BUILD_DIR)
$(Host/Patch) $(Host/Patch)
endef endef
endif
define Host/Prepare define Host/Prepare
$(call Host/Prepare/Default) $(call Host/Prepare/Default)
endef endef
define Host/Gnulib/Prepare
$(STAGING_DIR_HOST)/bin/gnulib-tool \
--local-dir=$(STAGING_DIR_HOST)/share/gnulib \
--source-base=$(PKG_GNULIB_BASE) \
$(PKG_GNULIB_ARGS) \
$(PKG_GNULIB_MODS) \
;
endef
HOST_CONFIGURE_VARS = \ HOST_CONFIGURE_VARS = \
CC="$(HOSTCC)" \ CC="$(HOSTCC)" \
CFLAGS="$(HOST_CFLAGS)" \ CFLAGS="$(HOST_CFLAGS)" \
CXX="$(HOSTCXX)" \ CXX="$(HOSTCXX)" \
CPPFLAGS="$(HOST_CPPFLAGS)" \ CPPFLAGS="$(HOST_CPPFLAGS)" \
CXXFLAGS="$(HOST_CXXFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \ LDFLAGS="$(HOST_LDFLAGS)" \
CONFIG_SHELL="$(SHELL)" CONFIG_SHELL="$(SHELL)"
@ -108,6 +116,10 @@ define Host/Compile
$(call Host/Compile/Default) $(call Host/Compile/Default)
endef endef
define Host/Gnulib/Compile
$(call Host/Compile/Default,SUBDIRS='$$$$(wildcard $(PKG_GNULIB_BASE))')
endef
define Host/Install/Default define Host/Install/Default
$(call Host/Compile/Default,install) $(call Host/Compile/Default,install)
endef endef
@ -180,7 +192,7 @@ ifndef DUMP
clean-build: host-clean-build clean-build: host-clean-build
endif endif
$(DL_DIR)/$(FILE): FORCE $(call check_download_integrity)
$(_host_target)host-prepare: $(HOST_STAMP_PREPARED) $(_host_target)host-prepare: $(HOST_STAMP_PREPARED)
$(_host_target)host-configure: $(HOST_STAMP_CONFIGURED) $(_host_target)host-configure: $(HOST_STAMP_CONFIGURED)
@ -197,13 +209,17 @@ ifndef DUMP
ifneq ($(CONFIG_AUTOREMOVE),) ifneq ($(CONFIG_AUTOREMOVE),)
host-compile: host-compile:
$(FIND) $(HOST_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' | \ $(FIND) $(HOST_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -print0 | \
$(XARGS) rm -rf $(XARGS) -0 rm -rf
endif endif
endef endef
endif endif
define HostBuild define HostBuild
$(HostBuild/Core) $(HostBuild/Core)
$(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) $(if $(if $(PKG_HOST_ONLY),,$(if $(and $(filter host-%,$(MAKECMDGOALS)),$(PKG_SKIP_DOWNLOAD)),,$(STAMP_PREPARED))),,
$(if $(and $(CONFIG_AUTOREMOVE), $(wildcard $(HOST_STAMP_INSTALLED), $(wildcard $(HOST_STAMP_BUILT)))),,
$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))
)
)
endef endef

View File

@ -4,7 +4,7 @@ IMAGE_KERNEL = $(word 1,$^)
IMAGE_ROOTFS = $(word 2,$^) IMAGE_ROOTFS = $(word 2,$^)
define ModelNameLimit16 define ModelNameLimit16
$(shell expr substr "$(word 2, $(subst _, ,$(1)))" 1 16) $(shell printf %.16s "$(word 2, $(subst _, ,$(1)))")
endef endef
define rootfs_align define rootfs_align
@ -27,8 +27,21 @@ define Build/append-kernel
dd if=$(IMAGE_KERNEL) >> $@ dd if=$(IMAGE_KERNEL) >> $@
endef endef
define Build/package-kernel-ubifs
mkdir $@.kernelubifs
cp $@ $@.kernelubifs/kernel
$(STAGING_DIR_HOST)/bin/mkfs.ubifs \
$(KERNEL_UBIFS_OPTS) \
-r $@.kernelubifs $@
rm -r $@.kernelubifs
endef
define Build/append-image define Build/append-image
dd if=$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) >> $@ cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta"
fwtool -s /dev/null -t "$@.stripmeta" || :
fwtool -i /dev/null -t "$@.stripmeta" || :
dd if="$@.stripmeta" >> "$@"
rm "$@.stripmeta"
endef endef
ifdef IB ifdef IB
@ -37,8 +50,13 @@ define Build/append-image-stage
endef endef
else else
define Build/append-image-stage define Build/append-image-stage
dd if=$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) of=$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1) cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta"
dd if=$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) >> $@ fwtool -s /dev/null -t "$@.stripmeta" || :
fwtool -i /dev/null -t "$@.stripmeta" || :
mkdir -p "$(STAGING_DIR_IMAGE)"
dd if="$@.stripmeta" of="$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1)"
dd if="$@.stripmeta" >> "$@"
rm "$@.stripmeta"
endef endef
endif endif
@ -72,6 +90,7 @@ metadata_json = \
define Build/append-metadata define Build/append-metadata
$(if $(SUPPORTED_DEVICES),-echo $(call metadata_json) | fwtool -I - $@) $(if $(SUPPORTED_DEVICES),-echo $(call metadata_json) | fwtool -I - $@)
sha256sum "$@" | cut -d" " -f1 > "$@.sha256sum"
[ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \ [ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \
cp "$(BUILD_KEY).ucert" "$@.ucert" ;\ cp "$(BUILD_KEY).ucert" "$@.ucert" ;\
usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\ usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\
@ -94,6 +113,15 @@ define Build/append-squashfs-fakeroot-be
cat $@.fakesquashfs >> $@ cat $@.fakesquashfs >> $@
endef endef
define Build/append-squashfs4-fakeroot
rm -rf $@.fakefs $@.fakesquashfs
mkdir $@.fakefs
$(STAGING_DIR_HOST)/bin/mksquashfs4 \
$@.fakefs $@.fakesquashfs \
-nopad -noappend -root-owned
cat $@.fakesquashfs >> $@
endef
define Build/append-string define Build/append-string
echo -n $(1) >> $@ echo -n $(1) >> $@
endef endef
@ -103,7 +131,7 @@ define Build/append-ubi
$(if $(UBOOTENV_IN_UBI),--uboot-env) \ $(if $(UBOOTENV_IN_UBI),--uboot-env) \
$(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \ $(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \
$(foreach part,$(UBINIZE_PARTS),--part $(part)) \ $(foreach part,$(UBINIZE_PARTS),--part $(part)) \
$(IMAGE_ROOTFS) \ --rootfs $(IMAGE_ROOTFS) \
$@.tmp \ $@.tmp \
-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \ -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
@ -113,6 +141,18 @@ define Build/append-ubi
rm $@.tmp rm $@.tmp
endef endef
define Build/ubinize-kernel
cp $@ $@.tmp
sh $(TOPDIR)/scripts/ubinize-image.sh \
--kernel $@.tmp \
$@ \
-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
$(UBINIZE_OPTS)
rm $@.tmp
endef
define Build/append-uboot define Build/append-uboot
dd if=$(UBOOT_PATH) >> $@ dd if=$(UBOOT_PATH) >> $@
endef endef
@ -170,11 +210,20 @@ define Build/check-size
@imagesize="$$(stat -c%s $@)"; \ @imagesize="$$(stat -c%s $@)"; \
limitsize="$$(($(subst k,* 1024,$(subst m, * 1024k,$(if $(1),$(1),$(IMAGE_SIZE))))))"; \ limitsize="$$(($(subst k,* 1024,$(subst m, * 1024k,$(if $(1),$(1),$(IMAGE_SIZE))))))"; \
[ $$limitsize -ge $$imagesize ] || { \ [ $$limitsize -ge $$imagesize ] || { \
echo "WARNING: Image file $@ is too big: $$imagesize > $$limitsize" >&2; \ $(call ERROR_MESSAGE, WARNING: Image file $@ is too big: $$imagesize > $$limitsize); \
rm -f $@; \ rm -f $@; \
} }
endef endef
define Build/copy-file
cat "$(1)" > "$@"
endef
define Build/edimax-header
$(STAGING_DIR_HOST)/bin/mkedimaximg -i $@ -o $@.new $(1)
@mv $@.new $@
endef
define Build/elecom-product-header define Build/elecom-product-header
$(eval product=$(word 1,$(1))) $(eval product=$(word 1,$(1)))
$(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@)) $(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@))
@ -187,6 +236,19 @@ define Build/elecom-product-header
mv $(fw).new $(fw) mv $(fw).new $(fw)
endef endef
define Build/elecom-wrc-gs-factory
$(eval product=$(word 1,$(1)))
$(eval version=$(word 2,$(1)))
$(eval hash_opt=$(word 3,$(1)))
$(MKHASH) md5 $(hash_opt) $@ >> $@
( \
echo -n "ELECOM $(product) v$(version)" | \
dd bs=32 count=1 conv=sync; \
dd if=$@; \
) > $@.new
mv $@.new $@
endef
define Build/elx-header define Build/elx-header
$(eval hw_id=$(word 1,$(1))) $(eval hw_id=$(word 1,$(1)))
$(eval xor_pattern=$(word 2,$(1))) $(eval xor_pattern=$(word 2,$(1)))
@ -215,7 +277,9 @@ endef
define Build/initrd_compression define Build/initrd_compression
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),.bzip2) \ $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),.bzip2) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),.gzip) \ $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),.gzip) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),.lz4) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),.lzma) \ $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),.lzma) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),.lzo) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),.xz) \ $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),.xz) \
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),.zstd) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),.zstd)
endef endef
@ -223,16 +287,20 @@ endef
define Build/fit define Build/fit
$(TOPDIR)/scripts/mkits.sh \ $(TOPDIR)/scripts/mkits.sh \
-D $(DEVICE_NAME) -o $@.its -k $@ \ -D $(DEVICE_NAME) -o $@.its -k $@ \
-C $(word 1,$(1)) $(if $(word 2,$(1)),\ -C $(word 1,$(1)) \
$(if $(DEVICE_DTS_OVERLAY),-d $(KERNEL_BUILD_DIR)/image-$$(basename $(word 2,$(1))),\ $(if $(word 2,$(1)),\
-d $(word 2,$(1)))) \ $(if $(findstring 11,$(if $(DEVICE_DTS_OVERLAY),1)$(if $(findstring $(KERNEL_BUILD_DIR)/image-,$(word 2,$(1))),,1)), \
-d $(KERNEL_BUILD_DIR)/image-$$(basename $(word 2,$(1))), \
-d $(word 2,$(1)))) \
$(if $(findstring with-rootfs,$(word 3,$(1))),-r $(IMAGE_ROOTFS)) \ $(if $(findstring with-rootfs,$(word 3,$(1))),-r $(IMAGE_ROOTFS)) \
$(if $(findstring with-initrd,$(word 3,$(1))), \ $(if $(findstring with-initrd,$(word 3,$(1))), \
$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE), \ $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE), \
-i $(KERNEL_BUILD_DIR)/initrd.cpio$(strip $(call Build/initrd_compression)))) \ -i $(KERNEL_BUILD_DIR)/initrd.cpio$(strip $(call Build/initrd_compression)))) \
-a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
$(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \ $(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \
$(if $(DEVICE_DTS_OVERLAY),$(foreach dtso,$(DEVICE_DTS_OVERLAY), -O $(dtso):$(KERNEL_BUILD_DIR)/image-$(dtso).dtb)) \ $(if $(DEVICE_DTS_DELIMITER),-l $(DEVICE_DTS_DELIMITER)) \
$(if $(DEVICE_DTS_LOADADDR),-s $(DEVICE_DTS_LOADADDR)) \
$(if $(DEVICE_DTS_OVERLAY),$(foreach dtso,$(DEVICE_DTS_OVERLAY), -O $(dtso):$(KERNEL_BUILD_DIR)/image-$(dtso).dtbo)) \
-c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \ -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \
-A $(LINUX_KARCH) -v $(LINUX_VERSION) -A $(LINUX_KARCH) -v $(LINUX_VERSION)
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage $(if $(findstring external,$(word 3,$(1))),\ PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage $(if $(findstring external,$(word 3,$(1))),\
@ -240,11 +308,25 @@ define Build/fit
@mv $@.new $@ @mv $@.new $@
endef endef
define Build/gzip define Build/libdeflate-gzip
gzip -f -9n -c $@ $(1) > $@.new $(STAGING_DIR_HOST)/bin/libdeflate-gzip -f -12 -c $@ $(1) > $@.new
@mv $@.new $@ @mv $@.new $@
endef endef
define Build/gzip
$(STAGING_DIR_HOST)/bin/gzip -f -9n -c $@ $(1) > $@.new
@mv $@.new $@
endef
define Build/gzip-filename
@mkdir -p $@.tmp
@cp $@ $@.tmp/$(word 1,$(1))
$(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $@.tmp/$(word 1,$(1)) $(word 2,$(1)))
$(STAGING_DIR_HOST)/bin/gzip -f -9 -N -c $@.tmp/$(word 1,$(1)) $(word 2,$(1)) > $@.new
@mv $@.new $@
@rm -rf $@.tmp
endef
define Build/install-dtb define Build/install-dtb
$(call locked, \ $(call locked, \
$(foreach dts,$(DEVICE_DTS), \ $(foreach dts,$(DEVICE_DTS), \
@ -256,6 +338,16 @@ define Build/install-dtb
) )
endef endef
define Build/iptime-crc32
$(STAGING_DIR_HOST)/bin/iptime-crc32 $(1) $@ $@.new
mv $@.new $@
endef
define Build/iptime-naspkg
$(STAGING_DIR_HOST)/bin/iptime-naspkg $(1) $@ $@.new
mv $@.new $@
endef
define Build/jffs2 define Build/jffs2
rm -rf $(KDIR_TMP)/$(DEVICE_NAME)/jffs2 && \ rm -rf $(KDIR_TMP)/$(DEVICE_NAME)/jffs2 && \
mkdir -p $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/$$(dirname $(1)) && \ mkdir -p $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/$$(dirname $(1)) && \
@ -318,6 +410,19 @@ define Build/netgear-dni
mv $@.new $@ mv $@.new $@
endef endef
define Build/netgear-encrypted-factory
$(TOPDIR)/scripts/netgear-encrypted-factory.py \
--input-file $@ \
--output-file $@ \
--model $(NETGEAR_ENC_MODEL) \
--region $(NETGEAR_ENC_REGION) \
--version V1.0.0.0.$(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \
--encryption-block-size 0x20000 \
--openssl-bin "$(STAGING_DIR_HOST)/bin/openssl" \
--key 6865392d342b4d212964363d6d7e7765312c7132613364316e26322a5a5e2538 \
--iv 4a253169516c38243d6c6d2d3b384145
endef
define Build/openmesh-image define Build/openmesh-image
$(TOPDIR)/scripts/om-fwupgradecfg-gen.sh \ $(TOPDIR)/scripts/om-fwupgradecfg-gen.sh \
"$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" \ "$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" \
@ -360,7 +465,7 @@ define Build/patch-cmdline
endef endef
# Convert a raw image into a $1 type image. # Convert a raw image into a $1 type image.
# E.g. | qemu-image vdi # E.g. | qemu-image vdi <optional extra arguments to qemu-img binary>
define Build/qemu-image define Build/qemu-image
if command -v qemu-img; then \ if command -v qemu-img; then \
qemu-img convert -f raw -O $1 $@ $@.new; \ qemu-img convert -f raw -O $1 $@ $@.new; \
@ -370,16 +475,16 @@ define Build/qemu-image
fi fi
endef endef
define Build/qsdk-ipq-factory-mmc define Build/qsdk-ipq-factory-nand
$(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \
$@.its kernel $(IMAGE_KERNEL) rootfs $(IMAGE_ROOTFS) $@.its ubi $@
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
@mv $@.new $@ @mv $@.new $@
endef endef
define Build/qsdk-ipq-factory-nand define Build/qsdk-ipq-factory-mmc
$(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \
$@.its ubi $@ $@.its kernel $(IMAGE_KERNEL) rootfs $(IMAGE_ROOTFS)
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
@mv $@.new $@ @mv $@.new $@
endef endef
@ -476,6 +581,7 @@ define Build/tplink-v2-image
endef endef
define Build/uImage define Build/uImage
$(if $(UIMAGE_TIME),SOURCE_DATE_EPOCH="$(UIMAGE_TIME)") \
mkimage \ mkimage \
-A $(LINUX_KARCH) \ -A $(LINUX_KARCH) \
-O linux \ -O linux \
@ -496,12 +602,12 @@ define Build/xor-image
endef endef
define Build/zip define Build/zip
rm -rf $@.tmp
mkdir $@.tmp mkdir $@.tmp
mv $@ $@.tmp/$(1) mv $@ $@.tmp/$(word 1,$(1))
TZ=UTC $(STAGING_DIR_HOST)/bin/zip -j -X \
zip -j -X \ $(wordlist 2,$(words $(1)),$(1)) \
$(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \ $@ $@.tmp/$(if $(word 1,$(1)),$(word 1,$(1)),$$(basename $@))
$@ $@.tmp/$(if $(1),$(1),$@)
rm -rf $@.tmp rm -rf $@.tmp
endef endef

View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
# #
# Copyright (C) 2006-2020 OpenWrt.org # Copyright (C) 2006-2020 LEDE.org
override TARGET_BUILD= override TARGET_BUILD=
include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/prereq.mk
@ -137,14 +137,6 @@ define Image/BuildKernel/MkuImage
-n '$(call toupper,$(ARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)' -d $(4) $(5) -n '$(call toupper,$(ARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)' -d $(4) $(5)
endef endef
define Image/BuildKernel/MkFIT
$(TOPDIR)/scripts/mkits.sh \
-D $(1) -o $(KDIR)/fit-$(1).its -k $(2) $(if $(3),-d $(3)) -C $(4) -a $(5) -e $(6) \
-c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \
-A $(LINUX_KARCH) -v $(LINUX_VERSION)
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb
endef
ifdef CONFIG_TARGET_IMAGES_GZIP ifdef CONFIG_TARGET_IMAGES_GZIP
define Image/Gzip define Image/Gzip
rm -f $(1).gz rm -f $(1).gz
@ -154,7 +146,7 @@ endif
# Disable noisy checks by default as in upstream # Disable noisy checks by default as in upstream
DTC_FLAGS += \ DTC_WARN_FLAGS := \
-Wno-unit_address_vs_reg \ -Wno-unit_address_vs_reg \
-Wno-simple_bus_reg \ -Wno-simple_bus_reg \
-Wno-unit_address_format \ -Wno-unit_address_format \
@ -167,6 +159,9 @@ DTC_FLAGS += \
-Wno-graph_port \ -Wno-graph_port \
-Wno-unique_unit_address -Wno-unique_unit_address
DTC_FLAGS += $(DTC_WARN_FLAGS)
DTCO_FLAGS += $(DTC_WARN_FLAGS)
define Image/pad-to define Image/pad-to
dd if=$(1) of=$(1).new bs=$(2) conv=sync dd if=$(1) of=$(1).new bs=$(2) conv=sync
mv $(1).new $(1) mv $(1).new $(1)
@ -182,20 +177,30 @@ endef
# $(2) target dtb file # $(2) target dtb file
# $(3) extra CPP flags # $(3) extra CPP flags
# $(4) extra DTC flags # $(4) extra DTC flags
define Image/BuildDTB define Image/BuildDTB/sub
$(TARGET_CROSS)cpp -nostdinc -x assembler-with-cpp \ $(TARGET_CROSS)cpp -nostdinc -x assembler-with-cpp \
$(DTS_CPPFLAGS) \
-I$(DTS_DIR) \ -I$(DTS_DIR) \
-I$(DTS_DIR)/include \ -I$(DTS_DIR)/include \
-I$(LINUX_DIR)/include/ \ -I$(LINUX_DIR)/include/ \
-I$(LINUX_DIR)/scripts/dtc/include-prefixes \
-undef -D__DTS__ $(3) \ -undef -D__DTS__ $(3) \
-o $(2).tmp $(1) -o $(2).tmp $(1)
$(LINUX_DIR)/scripts/dtc/dtc -O dtb \ $(LINUX_DIR)/scripts/dtc/dtc -O dtb \
-i$(dir $(1)) $(DTC_FLAGS) $(4) \ -i$(dir $(1)) $(4) \
$(if $(CONFIG_HAS_DT_OVERLAY_SUPPORT),-@) \ $(if $(CONFIG_HAS_DT_OVERLAY_SUPPORT),-@) \
-o $(2) $(2).tmp -o $(2) $(2).tmp
$(RM) $(2).tmp $(RM) $(2).tmp
endef endef
define Image/BuildDTB
$(call Image/BuildDTB/sub,$(1),$(2),$(3),$(DTC_FLAGS) $(DEVICE_DTC_FLAGS) $(4))
endef
define Image/BuildDTBO
$(call Image/BuildDTB/sub,$(1),$(2),$(3),$(DTCO_FLAGS) $(DEVICE_DTCO_FLAGS) $(4))
endef
define Image/mkfs/jffs2/sub-raw define Image/mkfs/jffs2/sub-raw
$(STAGING_DIR_HOST)/bin/mkfs.jffs2 \ $(STAGING_DIR_HOST)/bin/mkfs.jffs2 \
$(2) \ $(2) \
@ -229,8 +234,7 @@ $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S))
define Image/mkfs/squashfs-common define Image/mkfs/squashfs-common
$(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \ $(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \
-nopad -noappend -root-owned \ -nopad -noappend -root-owned \
-comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \ -comp $(SQUASHFSCOMP) $(SQUASHFSOPT)
-processors $(shell nproc)
endef endef
ifeq ($(CONFIG_TARGET_ROOTFS_SECURITY_LABELS),y) ifeq ($(CONFIG_TARGET_ROOTFS_SECURITY_LABELS),y)
@ -341,6 +345,8 @@ define Device/InitProfile
DEVICE_ALT0_TITLE = $$(DEVICE_ALT0_VENDOR) $$(DEVICE_ALT0_MODEL)$$(if $$(DEVICE_ALT0_VARIANT), $$(DEVICE_ALT0_VARIANT)) DEVICE_ALT0_TITLE = $$(DEVICE_ALT0_VENDOR) $$(DEVICE_ALT0_MODEL)$$(if $$(DEVICE_ALT0_VARIANT), $$(DEVICE_ALT0_VARIANT))
DEVICE_ALT1_TITLE = $$(DEVICE_ALT1_VENDOR) $$(DEVICE_ALT1_MODEL)$$(if $$(DEVICE_ALT1_VARIANT), $$(DEVICE_ALT1_VARIANT)) DEVICE_ALT1_TITLE = $$(DEVICE_ALT1_VENDOR) $$(DEVICE_ALT1_MODEL)$$(if $$(DEVICE_ALT1_VARIANT), $$(DEVICE_ALT1_VARIANT))
DEVICE_ALT2_TITLE = $$(DEVICE_ALT2_VENDOR) $$(DEVICE_ALT2_MODEL)$$(if $$(DEVICE_ALT2_VARIANT), $$(DEVICE_ALT2_VARIANT)) DEVICE_ALT2_TITLE = $$(DEVICE_ALT2_VENDOR) $$(DEVICE_ALT2_MODEL)$$(if $$(DEVICE_ALT2_VARIANT), $$(DEVICE_ALT2_VARIANT))
DEVICE_ALT3_TITLE = $$(DEVICE_ALT3_VENDOR) $$(DEVICE_ALT3_MODEL)$$(if $$(DEVICE_ALT3_VARIANT), $$(DEVICE_ALT3_VARIANT))
DEVICE_ALT4_TITLE = $$(DEVICE_ALT4_VENDOR) $$(DEVICE_ALT4_MODEL)$$(if $$(DEVICE_ALT4_VARIANT), $$(DEVICE_ALT4_VARIANT))
DEVICE_VENDOR := DEVICE_VENDOR :=
DEVICE_MODEL := DEVICE_MODEL :=
DEVICE_VARIANT := DEVICE_VARIANT :=
@ -353,6 +359,12 @@ define Device/InitProfile
DEVICE_ALT2_VENDOR := DEVICE_ALT2_VENDOR :=
DEVICE_ALT2_MODEL := DEVICE_ALT2_MODEL :=
DEVICE_ALT2_VARIANT := DEVICE_ALT2_VARIANT :=
DEVICE_ALT3_VENDOR :=
DEVICE_ALT3_MODEL :=
DEVICE_ALT3_VARIANT :=
DEVICE_ALT4_VENDOR :=
DEVICE_ALT4_MODEL :=
DEVICE_ALT4_VARIANT :=
DEVICE_PACKAGES := DEVICE_PACKAGES :=
DEVICE_DESCRIPTION = Build firmware images for $$(DEVICE_TITLE) DEVICE_DESCRIPTION = Build firmware images for $$(DEVICE_TITLE)
endef endef
@ -367,6 +379,7 @@ define Device/Init
ARTIFACTS := ARTIFACTS :=
DEVICE_IMG_PREFIX := $(IMG_PREFIX)-$(1) DEVICE_IMG_PREFIX := $(IMG_PREFIX)-$(1)
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1)-$$(2) DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1)-$$(2)
FACTORY_IMG_NAME :=
IMAGE_SIZE := IMAGE_SIZE :=
KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX) KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX)
KERNEL_SUFFIX := -kernel.bin KERNEL_SUFFIX := -kernel.bin
@ -394,14 +407,19 @@ define Device/Init
DEVICE_DTS := DEVICE_DTS :=
DEVICE_DTS_CONFIG := DEVICE_DTS_CONFIG :=
DEVICE_DTS_DELIMITER :=
DEVICE_DTS_DIR := DEVICE_DTS_DIR :=
DEVICE_DTS_LOADADDR :=
DEVICE_DTS_OVERLAY := DEVICE_DTS_OVERLAY :=
DEVICE_FDT_NUM := DEVICE_FDT_NUM :=
DEVICE_DTC_FLAGS :=
DEVICE_DTCO_FLAGS :=
SOC := SOC :=
BOARD_NAME := BOARD_NAME :=
UIMAGE_MAGIC := UIMAGE_MAGIC :=
UIMAGE_NAME := UIMAGE_NAME :=
UIMAGE_TIME :=
DEVICE_COMPAT_VERSION := 1.0 DEVICE_COMPAT_VERSION := 1.0
DEVICE_COMPAT_MESSAGE := DEVICE_COMPAT_MESSAGE :=
SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
@ -418,16 +436,20 @@ endef
DEFAULT_DEVICE_VARS := \ DEFAULT_DEVICE_VARS := \
DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE KERNEL_SIZE \ DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE KERNEL_SIZE \
CMDLINE UBOOTENV_IN_UBI KERNEL_IN_UBI BLOCKSIZE PAGESIZE SUBPAGESIZE \ CMDLINE UBOOTENV_IN_UBI KERNEL_IN_UBI BLOCKSIZE PAGESIZE SUBPAGESIZE \
VID_HDR_OFFSET UBINIZE_OPTS UBINIZE_PARTS MKUBIFS_OPTS DEVICE_DTS \ VID_HDR_OFFSET UBINIZE_OPTS UBINIZE_PARTS MKUBIFS_OPTS DEVICE_DTC_FLAGS \
DEVICE_DTS_CONFIG DEVICE_DTS_DIR DEVICE_DTS_OVERLAY DEVICE_FDT_NUM \ DEVICE_DTCO_FLAGS DEVICE_DTS DEVICE_DTS_CONFIG DEVICE_DTS_DELIMITER \
DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \ DEVICE_DTS_DIR DEVICE_DTS_OVERLAY DEVICE_DTS_LOADADDR \
SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \ DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \
UIMAGE_TIME SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \
UBOOT_PATH IMAGE_SIZE \ UBOOT_PATH IMAGE_SIZE \
FACTORY_IMG_NAME FACTORY_SIZE \
DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \ DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \
DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \ DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \
DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \ DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \
DEVICE_ALT1_VENDOR DEVICE_ALT1_MODEL DEVICE_ALT1_VARIANT \ DEVICE_ALT1_VENDOR DEVICE_ALT1_MODEL DEVICE_ALT1_VARIANT \
DEVICE_ALT2_VENDOR DEVICE_ALT2_MODEL DEVICE_ALT2_VARIANT DEVICE_ALT2_VENDOR DEVICE_ALT2_MODEL DEVICE_ALT2_VARIANT \
DEVICE_ALT3_VENDOR DEVICE_ALT3_MODEL DEVICE_ALT3_VARIANT \
DEVICE_ALT4_VENDOR DEVICE_ALT4_MODEL DEVICE_ALT4_VARIANT
define Device/ExportVar define Device/ExportVar
$(1) : $(2):=$$($(2)) $(1) : $(2):=$$($(2))
@ -480,6 +502,9 @@ define Device/Build/initramfs
$(KDIR)/$$(KERNEL_INITRAMFS_NAME):: image_prepare $(KDIR)/$$(KERNEL_INITRAMFS_NAME):: image_prepare
$(1)-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE)) $(1)-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE))
.IGNORE: $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE)
$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)
cp $$^ $$@ cp $$^ $$@
@ -492,11 +517,11 @@ define Device/Build/initramfs
$(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json: $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) $(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json: $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE)
@mkdir -p $$(shell dirname $$@) @mkdir -p $$(shell dirname $$@)
DEVICE_ID="$(1)" \ DEVICE_ID="$(1)" \
BIN_DIR="$(BIN_DIR)" \
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \ SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
DEVICE_IMG_NAME="$$(notdir $$^)" \ FILE_NAME="$$(notdir $$^)" \
IMAGE_TYPE="kernel" \ FILE_DIR="$(KDIR)/tmp" \
IMAGE_FILESYSTEM="initramfs" \ FILE_TYPE="kernel" \
FILE_FILESYSTEM="initramfs" \
DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \ DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \
DEVICE_VENDOR="$$(DEVICE_VENDOR)" \ DEVICE_VENDOR="$$(DEVICE_VENDOR)" \
DEVICE_MODEL="$$(DEVICE_MODEL)" \ DEVICE_MODEL="$$(DEVICE_MODEL)" \
@ -510,6 +535,12 @@ define Device/Build/initramfs
DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \ DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \ DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \ DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
DEVICE_ALT3_VENDOR="$$(DEVICE_ALT3_VENDOR)" \
DEVICE_ALT3_MODEL="$$(DEVICE_ALT3_MODEL)" \
DEVICE_ALT3_VARIANT="$$(DEVICE_ALT3_VARIANT)" \
DEVICE_ALT4_VENDOR="$$(DEVICE_ALT4_VENDOR)" \
DEVICE_ALT4_MODEL="$$(DEVICE_ALT4_MODEL)" \
DEVICE_ALT4_VARIANT="$$(DEVICE_ALT4_VARIANT)" \
DEVICE_TITLE="$$(DEVICE_TITLE)" \ DEVICE_TITLE="$$(DEVICE_TITLE)" \
DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \ DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
TARGET="$(BOARD)" \ TARGET="$(BOARD)" \
@ -524,7 +555,8 @@ endif
define Device/Build/compile define Device/Build/compile
$$(_COMPILE_TARGET): $(KDIR)/$(1) $$(_COMPILE_TARGET): $(KDIR)/$(1)
$(eval $(call Device/Export,$(KDIR)/$(1))) $(eval $(call Device/Export,$(KDIR)/$(1)))
$(KDIR)/$(1): $(KDIR)/$(1): FORCE
rm -f $(KDIR)/$(1)
$$(call concat_cmd,$(COMPILE/$(1))) $$(call concat_cmd,$(COMPILE/$(1)))
endef endef
@ -536,19 +568,36 @@ define Device/Build/dtb
$(KDIR)/image-$(1).dtb: FORCE $(KDIR)/image-$(1).dtb: FORCE
$(call Image/BuildDTB,$(strip $(2))/$(strip $(3)).dts,$$@) $(call Image/BuildDTB,$(strip $(2))/$(strip $(3)).dts,$$@)
image_prepare: $(KDIR)/image-$(1).dtb compile-dtb: $(KDIR)/image-$(1).dtb
endif
endef
define Device/Build/dtbo
ifndef BUILD_DTSO_$(1)
BUILD_DTSO_$(1) := 1
$(KDIR)/image-$(1).dtbo: FORCE
$(call Image/BuildDTBO,$(strip $(2))/$(strip $(3)).dtso,$$@)
compile-dtb: $(KDIR)/image-$(1).dtbo
endif endif
endef endef
endif endif
define Device/Build/kernel define Device/Build/kernel
$$(eval $$(foreach dts,$$(DEVICE_DTS) $$(DEVICE_DTS_OVERLAY), \ $$(eval $$(foreach dts,$$(DEVICE_DTS), \
$$(call Device/Build/dtb,$$(notdir $$(dts)), \ $$(call Device/Build/dtb,$$(notdir $$(dts)), \
$$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)), \ $$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)), \
$$(dts) \ $$(dts) \
) \ ) \
)) ))
$$(eval $$(foreach dtso,$$(DEVICE_DTS_OVERLAY), \
$$(call Device/Build/dtbo,$$(notdir $$(dtso)), \
$$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)), \
$$(dtso) \
) \
))
$(KDIR)/$$(KERNEL_NAME):: image_prepare $(KDIR)/$$(KERNEL_NAME):: image_prepare
$$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE)) $$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE))
@ -599,11 +648,11 @@ define Device/Build/image
$(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json: $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX) $(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json: $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX)
@mkdir -p $$(shell dirname $$@) @mkdir -p $$(shell dirname $$@)
DEVICE_ID="$(DEVICE_NAME)" \ DEVICE_ID="$(DEVICE_NAME)" \
BIN_DIR="$(BIN_DIR)" \
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \ SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
DEVICE_IMG_NAME="$(DEVICE_IMG_NAME)" \ FILE_NAME="$(DEVICE_IMG_NAME)" \
IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \ FILE_DIR="$(KDIR)/tmp" \
IMAGE_FILESYSTEM="$(1)" \ FILE_TYPE=$(word 1,$(subst ., ,$(2))) \
FILE_FILESYSTEM="$(1)" \
DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \ DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \
DEVICE_VENDOR="$(DEVICE_VENDOR)" \ DEVICE_VENDOR="$(DEVICE_VENDOR)" \
DEVICE_MODEL="$(DEVICE_MODEL)" \ DEVICE_MODEL="$(DEVICE_MODEL)" \
@ -617,6 +666,12 @@ define Device/Build/image
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \ DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \ DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \ DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
DEVICE_ALT3_VENDOR="$(DEVICE_ALT3_VENDOR)" \
DEVICE_ALT3_MODEL="$(DEVICE_ALT3_MODEL)" \
DEVICE_ALT3_VARIANT="$(DEVICE_ALT3_VARIANT)" \
DEVICE_ALT4_VENDOR="$(DEVICE_ALT4_VENDOR)" \
DEVICE_ALT4_MODEL="$(DEVICE_ALT4_MODEL)" \
DEVICE_ALT4_VARIANT="$(DEVICE_ALT4_VARIANT)" \
DEVICE_TITLE="$(DEVICE_TITLE)" \ DEVICE_TITLE="$(DEVICE_TITLE)" \
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \ DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
TARGET="$(BOARD)" \ TARGET="$(BOARD)" \
@ -629,7 +684,9 @@ define Device/Build/image
endef endef
define Device/Build/artifact define Device/Build/artifact
$$(_TARGET): $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \
$(BUILD_DIR)/json_info_files/$(DEVICE_IMG_PREFIX)-$(1).json, \
$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1))
$(eval $(call Device/Export,$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1))) $(eval $(call Device/Export,$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1)))
$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE) $(2)-images $(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE) $(2)-images
@rm -f $$@ @rm -f $$@
@ -640,6 +697,41 @@ define Device/Build/artifact
$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1): $(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1) $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1): $(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1)
cp $$^ $$@ cp $$^ $$@
$(BUILD_DIR)/json_info_files/$(DEVICE_IMG_PREFIX)-$(1).json: $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)
@mkdir -p $$(shell dirname $$@)
DEVICE_ID="$(DEVICE_NAME)" \
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
FILE_NAME="$(DEVICE_IMG_PREFIX)-$(1)" \
FILE_DIR="$(KDIR)/tmp" \
FILE_TYPE="$(1)" \
DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \
DEVICE_VENDOR="$(DEVICE_VENDOR)" \
DEVICE_MODEL="$(DEVICE_MODEL)" \
DEVICE_VARIANT="$(DEVICE_VARIANT)" \
DEVICE_ALT0_VENDOR="$(DEVICE_ALT0_VENDOR)" \
DEVICE_ALT0_MODEL="$(DEVICE_ALT0_MODEL)" \
DEVICE_ALT0_VARIANT="$(DEVICE_ALT0_VARIANT)" \
DEVICE_ALT1_VENDOR="$(DEVICE_ALT1_VENDOR)" \
DEVICE_ALT1_MODEL="$(DEVICE_ALT1_MODEL)" \
DEVICE_ALT1_VARIANT="$(DEVICE_ALT1_VARIANT)" \
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
DEVICE_ALT3_VENDOR="$(DEVICE_ALT3_VENDOR)" \
DEVICE_ALT3_MODEL="$(DEVICE_ALT3_MODEL)" \
DEVICE_ALT3_VARIANT="$(DEVICE_ALT3_VARIANT)" \
DEVICE_ALT4_VENDOR="$(DEVICE_ALT4_VENDOR)" \
DEVICE_ALT4_MODEL="$(DEVICE_ALT4_MODEL)" \
DEVICE_ALT4_VARIANT="$(DEVICE_ALT4_VARIANT)" \
DEVICE_TITLE="$(DEVICE_TITLE)" \
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
TARGET="$(BOARD)" \
SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \
VERSION_NUMBER="$(VERSION_NUMBER)" \
VERSION_CODE="$(VERSION_CODE)" \
SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \
$(TOPDIR)/scripts/json_add_image_info.py $$@
endef endef
define Device/Build define Device/Build
@ -672,6 +764,8 @@ $(if $(strip $(DEVICE_ALT0_TITLE)),Alternative device titles:
- $(DEVICE_ALT0_TITLE)) - $(DEVICE_ALT0_TITLE))
$(if $(strip $(DEVICE_ALT1_TITLE)),- $(DEVICE_ALT1_TITLE)) $(if $(strip $(DEVICE_ALT1_TITLE)),- $(DEVICE_ALT1_TITLE))
$(if $(strip $(DEVICE_ALT2_TITLE)),- $(DEVICE_ALT2_TITLE)) $(if $(strip $(DEVICE_ALT2_TITLE)),- $(DEVICE_ALT2_TITLE))
$(if $(strip $(DEVICE_ALT3_TITLE)),- $(DEVICE_ALT3_TITLE))
$(if $(strip $(DEVICE_ALT4_TITLE)),- $(DEVICE_ALT4_TITLE))
@@ @@
endef endef
@ -689,6 +783,14 @@ ifneq ($$(strip $$(DEVICE_ALT2_TITLE)),)
DEVICE_DISPLAY = $$(DEVICE_ALT2_TITLE) ($$(DEVICE_TITLE)) DEVICE_DISPLAY = $$(DEVICE_ALT2_TITLE) ($$(DEVICE_TITLE))
$$(info $$(call Device/DumpInfo,$(1))) $$(info $$(call Device/DumpInfo,$(1)))
endif endif
ifneq ($$(strip $$(DEVICE_ALT3_TITLE)),)
DEVICE_DISPLAY = $$(DEVICE_ALT3_TITLE) ($$(DEVICE_TITLE))
$$(info $$(call Device/DumpInfo,$(1)))
endif
ifneq ($$(strip $$(DEVICE_ALT4_TITLE)),)
DEVICE_DISPLAY = $$(DEVICE_ALT4_TITLE) ($$(DEVICE_TITLE))
$$(info $$(call Device/DumpInfo,$(1)))
endif
DEVICE_DISPLAY = $$(DEVICE_TITLE) DEVICE_DISPLAY = $$(DEVICE_TITLE)
$$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1))))) $$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1)))))
endef endef
@ -714,24 +816,27 @@ define BuildImage
download: download:
prepare: prepare:
compile: compile:
compile-dtb:
clean: clean:
image_prepare: image_prepare:
ifeq ($(IB),) ifeq ($(IB),)
.PHONY: download prepare compile clean image_prepare kernel_prepare install install-images .PHONY: download prepare compile compile-dtb clean image_prepare kernel_prepare install install-images
compile: compile:
$(call Build/Compile) $(call Build/Compile)
clean: clean:
$(call Build/Clean) $(call Build/Clean)
image_prepare: compile compile-dtb:
image_prepare: compile compile-dtb
mkdir -p $(BIN_DIR) $(KDIR)/tmp mkdir -p $(BIN_DIR) $(KDIR)/tmp
rm -rf $(BUILD_DIR)/json_info_files rm -rf $(BUILD_DIR)/json_info_files
$(call Image/Prepare) $(call Image/Prepare)
else else
image_prepare: image_prepare:
rm -rf $(KDIR)/tmp
mkdir -p $(BIN_DIR) $(KDIR)/tmp mkdir -p $(BIN_DIR) $(KDIR)/tmp
endif endif

2
include/kernel-5.10 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-5.10 = .235
LINUX_KERNEL_HASH-5.10.235 = 953be3931101a94a93a644c1283ca41a7e567447ca87d3069ed4dd712dc1f1cc

2
include/kernel-5.15 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-5.15 = .179
LINUX_KERNEL_HASH-5.15.179 = 9319a47b1e9b5d344ff6015431856d0c9640e4faedc527c87f9129061a27136f

2
include/kernel-5.4 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-5.4 = .291
LINUX_KERNEL_HASH-5.4.291 = b3ad64a4476a7c5450b92eab9a888b84ecb64dc613fcb0128f653f58e958ef6e

2
include/kernel-6.1 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-6.1 = .134
LINUX_KERNEL_HASH-6.1.134 = 60c70cdd70ddee384c004242e67844e3dd1fe28f75b26b3586859fff0a07bd23

2
include/kernel-6.12 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-6.12 = .23
LINUX_KERNEL_HASH-6.12.23 = d8d95404f8deeb7ff6992c0df855025062e9e8182bca6daa27ef2e9275d27749

2
include/kernel-6.6 Normal file
View File

@ -0,0 +1,2 @@
LINUX_VERSION-6.6 = .87
LINUX_KERNEL_HASH-6.6.87 = 8957e5c2dacdbc47a16dbf1f6303ca7088409be6197a3881f752313275357ac6

View File

@ -10,7 +10,7 @@ ifneq ($(DUMP),1)
endif endif
KERNEL_FILE_DEPENDS=$(GENERIC_BACKPORT_DIR) $(GENERIC_PATCH_DIR) $(GENERIC_HACK_DIR) $(PATCH_DIR) $(GENERIC_FILES_DIR) $(FILES_DIR) KERNEL_FILE_DEPENDS=$(GENERIC_BACKPORT_DIR) $(GENERIC_PATCH_DIR) $(GENERIC_HACK_DIR) $(PATCH_DIR) $(GENERIC_FILES_DIR) $(FILES_DIR)
STAMP_PREPARED=$(LINUX_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,$(KERNEL_FILE_DEPENDS),))) STAMP_PREPARED=$(LINUX_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),$(KERNEL_FILE_DEPENDS),)))
STAMP_CONFIGURED:=$(LINUX_DIR)/.configured STAMP_CONFIGURED:=$(LINUX_DIR)/.configured
include $(INCLUDE_DIR)/download.mk include $(INCLUDE_DIR)/download.mk
include $(INCLUDE_DIR)/quilt.mk include $(INCLUDE_DIR)/quilt.mk
@ -132,6 +132,7 @@ define BuildKernel
$(LINUX_DIR)/.modules: export STAGING_PREFIX=$$(STAGING_DIR_HOST) $(LINUX_DIR)/.modules: export STAGING_PREFIX=$$(STAGING_DIR_HOST)
$(LINUX_DIR)/.modules: export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig $(LINUX_DIR)/.modules: export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig
$(LINUX_DIR)/.modules: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig $(LINUX_DIR)/.modules: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig
$(LINUX_DIR)/.modules: export FAIL_ON_UNCONFIGURED=1
$(LINUX_DIR)/.modules: $(STAMP_CONFIGURED) $(LINUX_DIR)/.config FORCE $(LINUX_DIR)/.modules: $(STAMP_CONFIGURED) $(LINUX_DIR)/.config FORCE
$(Kernel/CompileModules) $(Kernel/CompileModules)
touch $$@ touch $$@
@ -155,13 +156,16 @@ define BuildKernel
compile: $(LINUX_DIR)/.modules compile: $(LINUX_DIR)/.modules
$(MAKE) -C image compile TARGET_BUILD= $(MAKE) -C image compile TARGET_BUILD=
dtb: $(STAMP_CONFIGURED)
$(_SINGLE)$(KERNEL_MAKE) scripts_dtc
$(MAKE) -C image compile-dtb TARGET_BUILD=
oldconfig menuconfig nconfig xconfig: $(STAMP_PREPARED) $(STAMP_CHECKED) FORCE oldconfig menuconfig nconfig xconfig: $(STAMP_PREPARED) $(STAMP_CHECKED) FORCE
rm -f $(LINUX_DIR)/.config.prev rm -f $(LINUX_DIR)/.config.prev
rm -f $(STAMP_CONFIGURED) rm -f $(STAMP_CONFIGURED)
$(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config $(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config
$(_SINGLE)$(KERNEL_MAKE) \ $(_SINGLE)$(KERNEL_MAKE) \
$(if $(findstring Darwin,$(HOST_OS)), \ $(if $(findstring Darwin,$(HOST_OS)), \
HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib -lncurses" \
HOSTLDLIBS_mconf="-L$(STAGING_DIR_HOST)/lib -lncurses" \ HOSTLDLIBS_mconf="-L$(STAGING_DIR_HOST)/lib -lncurses" \
filechk_conf_cfg=" :" \ filechk_conf_cfg=" :" \
) \ ) \

View File

@ -21,7 +21,7 @@ Kernel/Patch:=$(Kernel/Patch/Default)
ifneq (,$(findstring .xz,$(LINUX_SOURCE))) ifneq (,$(findstring .xz,$(LINUX_SOURCE)))
LINUX_CAT:=xzcat LINUX_CAT:=xzcat
else else
LINUX_CAT:=gzip -dc LINUX_CAT:=$(STAGING_DIR_HOST)/bin/libdeflate-gzip -dc
endif endif
ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
@ -75,6 +75,7 @@ endif
rm -f $(LINUX_DIR)/.config.prev rm -f $(LINUX_DIR)/.config.prev
mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old
$(call Kernel/SetInitramfs/PreConfigure) $(call Kernel/SetInitramfs/PreConfigure)
echo "# CONFIG_INITRAMFS_PRESERVE_MTIME is not set" >> $(LINUX_DIR)/.config
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y) ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y)
echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config
@ -99,6 +100,7 @@ define Kernel/SetNoInitramfs
grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config.set grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config.set echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> $(LINUX_DIR)/.config.set echo '# CONFIG_INITRAMFS_FORCE is not set' >> $(LINUX_DIR)/.config.set
echo "# CONFIG_INITRAMFS_PRESERVE_MTIME is not set" >> $(LINUX_DIR)/.config.set
endef endef
define Kernel/Configure/Default define Kernel/Configure/Default
@ -117,7 +119,7 @@ define Kernel/Configure/Default
cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config; \ cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config; \
cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev; \ cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev; \
} }
$(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(KERNEL_MAKE) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install $(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(KERNEL_MAKE) $(if $(findstring uml,$(BOARD)),ARCH=$(ARCH)) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic
endef endef
@ -127,7 +129,12 @@ endef
define Kernel/CompileModules/Default define Kernel/CompileModules/Default
rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map
+$(KERNEL_MAKE) olddefconfig
+$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules +$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules
# If .config did not change, use the previous timestamp to avoid package rebuilds
cmp -s $(LINUX_DIR)/.config $(LINUX_DIR)/.config.modules.save && \
mv $(LINUX_DIR)/.config.modules.save $(LINUX_DIR)/.config; \
$(CP) $(LINUX_DIR)/.config $(LINUX_DIR)/.config.modules.save
endef endef
OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
@ -164,20 +171,21 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
define Kernel/CompileImage/Initramfs define Kernel/CompileImage/Initramfs
$(call Kernel/Configure/Initramfs) $(call Kernel/Configure/Initramfs)
$(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init $(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init
$(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(TARGET_DIR)/init) $(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(TARGET_DIR) $(TARGET_DIR)/init)
rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio* rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio*
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y) ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y)
ifeq ($(CONFIG_EXTERNAL_CPIO),y) ifneq ($(qstrip $(CONFIG_EXTERNAL_CPIO)),)
$(CP) $(CONFIG_EXTERNAL_CPIO) $(KERNEL_BUILD_DIR)/initrd.cpio $(CP) $(CONFIG_EXTERNAL_CPIO) $(KERNEL_BUILD_DIR)/initrd.cpio
else else
( cd $(TARGET_DIR); find . | $(STAGING_DIR_HOST)/bin/cpio -o -H newc -R 0:0 > $(KERNEL_BUILD_DIR)/initrd.cpio ) ( cd $(TARGET_DIR); find . | LC_ALL=C sort | $(STAGING_DIR_HOST)/bin/cpio --reproducible -o -H newc -R 0:0 > $(KERNEL_BUILD_DIR)/initrd.cpio )
endif endif
$(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(KERNEL_BUILD_DIR)/initrd.cpio)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),bzip2 -9 -c < $(KERNEL_BUILD_DIR)/initrd.cpio > $(KERNEL_BUILD_DIR)/initrd.cpio.bzip2) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),bzip2 -9 -c < $(KERNEL_BUILD_DIR)/initrd.cpio > $(KERNEL_BUILD_DIR)/initrd.cpio.bzip2)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),gzip -f -S .gzip -9n $(KERNEL_BUILD_DIR)/initrd.cpio) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),gzip -n -f -S .gzip -9n $(KERNEL_BUILD_DIR)/initrd.cpio)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),$(STAGING_DIR_HOST)/bin/lz4c -l -c1 -fz --favor-decSpeed $(KERNEL_BUILD_DIR)/initrd.cpio)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),$(STAGING_DIR_HOST)/bin/lzma e -lc1 -lp2 -pb2 $(KERNEL_BUILD_DIR)/initrd.cpio $(KERNEL_BUILD_DIR)/initrd.cpio.lzma) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),$(STAGING_DIR_HOST)/bin/lzma e -lc1 -lp2 -pb2 $(KERNEL_BUILD_DIR)/initrd.cpio $(KERNEL_BUILD_DIR)/initrd.cpio.lzma)
# ? $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),$(STAGING_DIR_HOST)/bin/lzop -9 -f $(KERNEL_BUILD_DIR)/initrd.cpio)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),$(STAGING_DIR_HOST)/bin/xz -9 -fz --check=crc32 $(KERNEL_BUILD_DIR)/initrd.cpio) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),$(STAGING_DIR_HOST)/bin/xz -T$(if $(filter 1,$(NPROC)),2,0) -9 -fz --check=crc32 $(KERNEL_BUILD_DIR)/initrd.cpio)
# ? $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),)
$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio) $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio)
endif endif
+$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules

View File

@ -6,11 +6,21 @@ ifdef CONFIG_TESTING_KERNEL
KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER) KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
endif endif
LINUX_VERSION-5.4 = .156 KERNEL_DETAILS_FILE=$(INCLUDE_DIR)/kernel-$(KERNEL_PATCHVER)
LINUX_VERSION-5.10 = .78 ifeq ($(wildcard $(KERNEL_DETAILS_FILE)),)
$(error Missing kernel version/hash file for $(KERNEL_PATCHVER). Please create $(KERNEL_DETAILS_FILE))
endif
LINUX_KERNEL_HASH-5.4.156 = 06fe73e4623fcf1b3c0d0e1983d8286a2ff5b8fffbcb2163f4c01696a1c377fe include $(KERNEL_DETAILS_FILE)
LINUX_KERNEL_HASH-5.10.78 = be806c98e222ea581530727a8e83b0b96fcd678afd12944eb530e58776a6050f
ifdef KERNEL_TESTING_PATCHVER
KERNEL_TESTING_DETAILS_FILE=$(INCLUDE_DIR)/kernel-$(KERNEL_TESTING_PATCHVER)
ifeq ($(wildcard $(KERNEL_TESTING_DETAILS_FILE)),)
$(error Missing kernel version/hash file for $(KERNEL_TESTING_PATCHVER). Please create $(KERNEL_TESTING_DETAILS_FILE))
endif
include $(KERNEL_TESTING_DETAILS_FILE)
endif
remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1)))) remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1))))))) sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))

View File

@ -86,10 +86,14 @@ else ifneq (,$(findstring $(ARCH) , arceb ))
LINUX_KARCH := arc LINUX_KARCH := arc
else ifneq (,$(findstring $(ARCH) , armeb )) else ifneq (,$(findstring $(ARCH) , armeb ))
LINUX_KARCH := arm LINUX_KARCH := arm
else ifneq (,$(findstring $(ARCH) , loongarch64 ))
LINUX_KARCH := loongarch
else ifneq (,$(findstring $(ARCH) , mipsel mips64 mips64el )) else ifneq (,$(findstring $(ARCH) , mipsel mips64 mips64el ))
LINUX_KARCH := mips LINUX_KARCH := mips
else ifneq (,$(findstring $(ARCH) , powerpc64 )) else ifneq (,$(findstring $(ARCH) , powerpc64 ))
LINUX_KARCH := powerpc LINUX_KARCH := powerpc
else ifneq (,$(findstring $(ARCH) , riscv64 ))
LINUX_KARCH := riscv
else ifneq (,$(findstring $(ARCH) , sh2 sh3 sh4 )) else ifneq (,$(findstring $(ARCH) , sh2 sh3 sh4 ))
LINUX_KARCH := sh LINUX_KARCH := sh
else ifneq (,$(findstring $(ARCH) , i386 x86_64 )) else ifneq (,$(findstring $(ARCH) , i386 x86_64 ))
@ -101,7 +105,7 @@ endif
KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS)
KERNEL_MAKE_FLAGS = \ KERNEL_MAKE_FLAGS = \
KCFLAGS="$(call iremap,$(BUILD_DIR),$(notdir $(BUILD_DIR)))" \ KCFLAGS="$(call iremap,$(BUILD_DIR),$(notdir $(BUILD_DIR))) $(filter-out -fno-plt,$(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION))) $(call qstrip,$(CONFIG_KERNEL_CFLAGS))" \
HOSTCFLAGS="$(HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes" \ HOSTCFLAGS="$(HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes" \
CROSS_COMPILE="$(KERNEL_CROSS)" \ CROSS_COMPILE="$(KERNEL_CROSS)" \
ARCH="$(LINUX_KARCH)" \ ARCH="$(LINUX_KARCH)" \
@ -110,8 +114,7 @@ KERNEL_MAKE_FLAGS = \
KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \ KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \
KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \ KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \
KBUILD_BUILD_VERSION="0" \ KBUILD_BUILD_VERSION="0" \
HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib" \ KBUILD_HOSTLDFLAGS="-L$(STAGING_DIR_HOST)/lib" \
KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \
CONFIG_SHELL="$(BASH)" \ CONFIG_SHELL="$(BASH)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \ $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
$(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \ $(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \
@ -126,17 +129,17 @@ ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL
KERNELRELEASE=$(LINUX_VERSION) KERNELRELEASE=$(LINUX_VERSION)
endif endif
KERNEL_MAKEOPTS := -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) ifneq ($(HOST_OS),Linux)
KERNEL_MAKE_FLAGS += CONFIG_STACK_VALIDATION=
export SKIP_STACK_VALIDATION:=1
endif
KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS)
ifdef CONFIG_USE_SPARSE ifdef CONFIG_USE_SPARSE
KERNEL_MAKEOPTS += C=1 CHECK=$(STAGING_DIR_HOST)/bin/sparse KERNEL_MAKEOPTS += C=1 CHECK=$(STAGING_DIR_HOST)/bin/sparse
endif endif
ifneq ($(HOST_OS),Linux)
KERNEL_MAKEOPTS += CONFIG_STACK_VALIDATION=
export SKIP_STACK_VALIDATION:=1
endif
PKG_EXTMOD_SUBDIRS ?= . PKG_EXTMOD_SUBDIRS ?= .
PKG_SYMVERS_DIR = $(KERNEL_BUILD_DIR)/symvers PKG_SYMVERS_DIR = $(KERNEL_BUILD_DIR)/symvers
@ -235,7 +238,7 @@ $(call KernelPackage/$(1)/config)
$(call KernelPackage/depends) $(call KernelPackage/depends)
$(call KernelPackage/hooks) $(call KernelPackage/hooks)
ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m y,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),) ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m y,$(foreach c,$(call version_filter,$(filter-out %=y %=n %=m,$(KCONFIG))),$($(c)))),.),)
define Package/kmod-$(1)/install define Package/kmod-$(1)/install
@for mod in $$(call version_filter,$$(FILES)); do \ @for mod in $$(call version_filter,$$(FILES)); do \
if grep -q "$$$$$$$${mod##$(LINUX_DIR)/}" "$(LINUX_DIR)/modules.builtin"; then \ if grep -q "$$$$$$$${mod##$(LINUX_DIR)/}" "$(LINUX_DIR)/modules.builtin"; then \

157
include/meson.mk Normal file
View File

@ -0,0 +1,157 @@
# To build your package using meson:
#
# include $(INCLUDE_DIR)/meson.mk
# MESON_ARGS+=-Dfoo -Dbar=baz
#
# To pass additional environment variables to meson:
#
# MESON_VARS+=FOO=bar
#
# Default configure/compile/install targets are provided, but can be
# overwritten if required:
#
# define Build/Configure
# $(call Build/Configure/Meson)
# ...
# endef
#
# same for Build/Compile and Build/Install
#
# Host packages are built in the same fashion, just use these vars instead:
#
# MESON_HOST_ARGS+=-Dfoo -Dbar=baz
# MESON_HOST_VARS+=FOO=bar
MESON_DIR:=$(STAGING_DIR_HOST)/lib/meson
MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/openwrt-build
MESON_HOST_VARS:=
MESON_HOST_ARGS:=
MESON_BUILD_DIR:=$(PKG_BUILD_DIR)/openwrt-build
MESON_VARS:=
MESON_ARGS:=
ifneq ($(findstring i386,$(CONFIG_ARCH)),)
MESON_ARCH:="x86"
else ifneq ($(findstring powerpc64,$(CONFIG_ARCH)),)
MESON_ARCH:="ppc64"
else ifneq ($(findstring powerpc,$(CONFIG_ARCH)),)
MESON_ARCH:="ppc"
else ifneq ($(findstring mips64el,$(CONFIG_ARCH)),)
MESON_ARCH:="mips64"
else ifneq ($(findstring mipsel,$(CONFIG_ARCH)),)
MESON_ARCH:="mips"
else ifneq ($(findstring armeb,$(CONFIG_ARCH)),)
MESON_ARCH:="arm"
else
MESON_ARCH:=$(CONFIG_ARCH)
endif
# this is undefined for just x64_64
ifeq ($(origin CPU_TYPE),undefined)
MESON_CPU:="generic"
else
MESON_CPU:="$(CPU_TYPE)$(if $(CPU_SUBTYPE),+$(CPU_SUBTYPE))"
endif
ifeq ($(MESON_USE_STAGING_PYTHON),)
PYTHON_BIN:=$(STAGING_DIR_HOST)/bin/$(PYTHON)
else
PYTHON_BIN:=$(STAGING_DIR_HOSTPKG)/bin/$(PYTHON)
endif
define Meson
$(2) $(PYTHON_BIN) $(STAGING_DIR_HOST)/bin/meson.py $(1)
endef
define Meson/CreateNativeFile
$(STAGING_DIR_HOST)/bin/sed \
-e "s|@CC@|$(foreach BIN,$(HOSTCC),'$(BIN)',)|" \
-e "s|@CXX@|$(foreach BIN,$(HOSTCXX),'$(BIN)',)|" \
-e "s|@PKGCONFIG@|$(PKG_CONFIG)|" \
-e "s|@CMAKE@|$(STAGING_DIR_HOST)/bin/cmake|" \
-e "s|@PYTHON@|$(PYTHON_BIN)|" \
-e "s|@CFLAGS@|$(foreach FLAG,$(HOST_CFLAGS) $(HOST_CPPFLAGS),'$(FLAG)',)|" \
-e "s|@CXXFLAGS@|$(foreach FLAG,$(HOST_CXXFLAGS) $(HOST_CPPFLAGS),'$(FLAG)',)|" \
-e "s|@LDFLAGS@|$(foreach FLAG,$(HOST_LDFLAGS),'$(FLAG)',)|" \
-e "s|@PREFIX@|$(HOST_BUILD_PREFIX)|" \
< $(MESON_DIR)/openwrt-native.txt.in \
> $(1)
endef
define Meson/CreateCrossFile
$(STAGING_DIR_HOST)/bin/sed \
-e "s|@CC@|$(foreach BIN,$(TARGET_CC),'$(BIN)',)|" \
-e "s|@CXX@|$(foreach BIN,$(TARGET_CXX),'$(BIN)',)|" \
-e "s|@LD@|$(foreach FLAG,$(TARGET_LINKER),'$(FLAG)',)|" \
-e "s|@AR@|$(TARGET_AR)|" \
-e "s|@STRIP@|$(TARGET_CROSS)strip|" \
-e "s|@NM@|$(TARGET_NM)|" \
-e "s|@PKGCONFIG@|$(PKG_CONFIG)|" \
-e "s|@CMAKE@|$(STAGING_DIR_HOST)/bin/cmake|" \
-e "s|@PYTHON@|$(PYTHON_BIN)|" \
-e "s|@CFLAGS@|$(foreach FLAG,$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS),'$(FLAG)',)|" \
-e "s|@CXXFLAGS@|$(foreach FLAG,$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS),'$(FLAG)',)|" \
-e "s|@LDFLAGS@|$(foreach FLAG,$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS),'$(FLAG)',)|" \
-e "s|@ARCH@|$(MESON_ARCH)|" \
-e "s|@CPU@|$(MESON_CPU)|" \
-e "s|@ENDIAN@|$(if $(CONFIG_BIG_ENDIAN),big,little)|" \
< $(MESON_DIR)/openwrt-cross.txt.in \
> $(1)
endef
define Host/Configure/Meson
$(call Meson/CreateNativeFile,$(HOST_BUILD_DIR)/openwrt-native.txt)
$(call Meson, \
setup \
--native-file $(HOST_BUILD_DIR)/openwrt-native.txt \
-Ddefault_library=static \
$(MESON_HOST_ARGS) \
$(MESON_HOST_BUILD_DIR) \
$(MESON_HOST_BUILD_DIR)/.., \
$(MESON_HOST_VARS))
endef
define Host/Compile/Meson
+$(MESON_HOST_VARS) $(NINJA) -C $(MESON_HOST_BUILD_DIR) $(1)
endef
define Host/Install/Meson
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) install
endef
define Host/Uninstall/Meson
+$(NINJA) -C $(MESON_HOST_BUILD_DIR) uninstall || true
endef
define Build/Configure/Meson
$(call Meson/CreateNativeFile,$(PKG_BUILD_DIR)/openwrt-native.txt)
$(call Meson/CreateCrossFile,$(PKG_BUILD_DIR)/openwrt-cross.txt)
$(call Meson, \
setup \
--buildtype $(if $(CONFIG_DEBUG),debug,plain) \
--native-file $(PKG_BUILD_DIR)/openwrt-native.txt \
--cross-file $(PKG_BUILD_DIR)/openwrt-cross.txt \
-Ddefault_library=both \
$(MESON_ARGS) \
$(MESON_BUILD_DIR) \
$(MESON_BUILD_DIR)/.., \
$(MESON_VARS))
endef
define Build/Compile/Meson
+$(MESON_VARS) $(NINJA) -C $(MESON_BUILD_DIR) $(1)
endef
define Build/Install/Meson
+DESTDIR="$(PKG_INSTALL_DIR)" $(NINJA) -C $(MESON_BUILD_DIR) install
endef
Host/Configure=$(call Host/Configure/Meson)
Host/Compile=$(call Host/Compile/Meson)
Host/Install=$(call Host/Install/Meson)
Host/Uninstall=$(call Host/Uninstall/Meson)
Build/Configure=$(call Build/Configure/Meson)
Build/Compile=$(call Build/Compile/Meson)
Build/Install=$(call Build/Install/Meson)

View File

@ -48,8 +48,6 @@ $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_COMMENT, $(P_XT)xt_comme
$(eval $(call nf_add,IPT_CLUSTER,CONFIG_NETFILTER_XT_MATCH_CLUSTER, $(P_XT)xt_cluster)) $(eval $(call nf_add,IPT_CLUSTER,CONFIG_NETFILTER_XT_MATCH_CLUSTER, $(P_XT)xt_cluster))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG)) $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)nf_log_common))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_V4)nf_log_ipv4))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_TCPMSS, $(P_XT)xt_TCPMSS)) $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_TCPMSS, $(P_XT)xt_TCPMSS))
$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)ipt_REJECT)) $(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)ipt_REJECT))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time)) $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time))
@ -156,7 +154,7 @@ $(eval $(if $(NF_KMOD),$(call nf_add,NF_CONNTRACK,CONFIG_NF_DEFRAG_IPV6, $(P_V6)
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_FILTER, $(P_V6)ip6table_filter),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_FILTER, $(P_V6)ip6table_filter),))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_MANGLE, $(P_V6)ip6table_mangle),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_MANGLE, $(P_V6)ip6table_mangle),))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_NF_LOG_IPV6, $(P_V6)nf_log_ipv6),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_NF_LOG_IPV6, $(P_V6)nf_log_ipv6,lt 5.13),))
$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_IPTABLES, ip6t_icmp6))) $(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_IPTABLES, ip6t_icmp6)))
@ -172,11 +170,21 @@ $(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_OPTS, $(P_V6)ip6t_hbh))
$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_FRAG, $(P_V6)ip6t_frag)) $(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_FRAG, $(P_V6)ip6t_frag))
$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_RT, $(P_V6)ip6t_rt)) $(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_RT, $(P_V6)ip6t_rt))
# log
$(eval $(call nf_add,NF_LOG,CONFIG_NF_LOG_COMMON, $(P_XT)nf_log_common, lt 5.13))
$(eval $(call nf_add,NF_LOG,CONFIG_NF_LOG_IPV4, $(P_V4)nf_log_ipv4, lt 5.13))
$(eval $(call nf_add,NF_LOG,CONFIG_NF_LOG_SYSLOG, $(P_XT)nf_log_syslog, ge 5.13))
# $(eval $(if $(NF_KMOD),$(call nf_add,NF_LOG6,CONFIG_NF_LOG_IPV6, $(P_V6)nf_log_ipv6,lt 5.13),))
# nat # nat
# kernel only # kernel only
$(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT, $(P_XT)nf_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT, $(P_XT)nf_nat),))
$(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT_IPV4, $(P_V4)nf_nat_ipv4, lt 5.1)))
$(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT6,CONFIG_NF_NAT_IPV6, $(P_V6)nf_nat_ipv6, lt 5.1)))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_NAT, $(P_XT)xt_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_NAT, $(P_XT)xt_nat),))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_IP_NF_NAT, $(P_V4)iptable_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_IP_NF_NAT, $(P_V4)iptable_nat),))
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_NAT, $(P_V6)ip6table_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_NAT, $(P_V6)ip6table_nat),))
@ -206,6 +214,8 @@ $(eval $(call nf_add,NF_NATHELPER,CONFIG_NF_NAT_FTP, $(P_XT)nf_nat_ftp))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_BROADCAST, $(P_XT)nf_conntrack_broadcast)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_BROADCAST, $(P_XT)nf_conntrack_broadcast))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_AMANDA, $(P_XT)nf_conntrack_amanda)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_AMANDA, $(P_XT)nf_conntrack_amanda))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_AMANDA, $(P_XT)nf_nat_amanda)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_AMANDA, $(P_XT)nf_nat_amanda))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CT_PROTO_GRE, $(P_XT)nf_conntrack_proto_gre, lt 5.1))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_PROTO_GRE, $(P_V4)nf_nat_proto_gre, lt 5.0))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_H323, $(P_XT)nf_conntrack_h323)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_H323, $(P_XT)nf_conntrack_h323))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_H323, $(P_V4)nf_nat_h323)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_H323, $(P_V4)nf_nat_h323))
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_PPTP, $(P_XT)nf_conntrack_pptp)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_PPTP, $(P_XT)nf_conntrack_pptp))
@ -220,11 +230,6 @@ $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_IRC, $(P_XT)nf_connt
$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_IRC, $(P_XT)nf_nat_irc)) $(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_IRC, $(P_XT)nf_nat_irc))
# ulog
$(eval $(call nf_add,IPT_ULOG,CONFIG_IP_NF_TARGET_ULOG, $(P_V4)ipt_ULOG))
# nflog # nflog
$(eval $(call nf_add,IPT_NFLOG,CONFIG_NETFILTER_XT_TARGET_NFLOG, $(P_XT)xt_NFLOG)) $(eval $(call nf_add,IPT_NFLOG,CONFIG_NETFILTER_XT_TARGET_NFLOG, $(P_XT)xt_NFLOG))
@ -239,14 +244,15 @@ $(eval $(call nf_add,IPT_NFQUEUE,CONFIG_NETFILTER_XT_TARGET_NFQUEUE, $(P_XT)xt_N
$(eval $(call nf_add,IPT_DEBUG,CONFIG_NETFILTER_XT_TARGET_TRACE, $(P_XT)xt_TRACE)) $(eval $(call nf_add,IPT_DEBUG,CONFIG_NETFILTER_XT_TARGET_TRACE, $(P_XT)xt_TRACE))
# tproxy # socket
$(eval $(call nf_add,NF_SOCKET,CONFIG_NF_SOCKET_IPV4, $(P_V4)nf_socket_ipv4))
$(eval $(call nf_add,NF_SOCKET,CONFIG_NF_SOCKET_IPV6, $(P_V6)nf_socket_ipv6))
$(eval $(call nf_add,IPT_SOCKET,CONFIG_NETFILTER_XT_MATCH_SOCKET, $(P_XT)xt_socket))
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_MATCH_SOCKET, $(P_XT)xt_socket)) # tproxy
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NF_SOCKET_IPV4, $(P_V4)nf_socket_ipv4)) $(eval $(call nf_add,NF_TPROXY,CONFIG_NF_TPROXY_IPV4, $(P_V4)nf_tproxy_ipv4))
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NF_SOCKET_IPV6, $(P_V6)nf_socket_ipv6)) $(eval $(call nf_add,NF_TPROXY,CONFIG_NF_TPROXY_IPV6, $(P_V6)nf_tproxy_ipv6))
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPROXY)) $(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPROXY))
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NF_TPROXY_IPV4, $(P_V4)nf_tproxy_ipv4))
$(eval $(call nf_add,IPT_TPROXY,CONFIG_NF_TPROXY_IPV6, $(P_V6)nf_tproxy_ipv6))
# led # led
$(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED)) $(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED))
@ -310,7 +316,6 @@ $(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_SNAT, $(P_EBT)ebt_snat))
# watchers # watchers
$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_LOG, $(P_EBT)ebt_log)) $(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_LOG, $(P_EBT)ebt_log))
$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_ULOG, $(P_EBT)ebt_ulog))
$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFLOG, $(P_EBT)ebt_nflog)) $(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFLOG, $(P_EBT)ebt_nflog))
$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFQUEUE, $(P_EBT)ebt_nfqueue)) $(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFQUEUE, $(P_EBT)ebt_nfqueue))
@ -332,6 +337,7 @@ $(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_REJECT_INET, $(P_XT)nft
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_META, $(P_EBT)nft_meta_bridge),)) $(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_META, $(P_EBT)nft_meta_bridge),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_REJECT, $(P_EBT)nft_reject_bridge),)) $(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_REJECT, $(P_EBT)nft_reject_bridge),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NF_CONNTRACK_BRIDGE, $(P_EBT)nf_conntrack_bridge),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_nat),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_chain_nat),)) $(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_chain_nat),))
@ -349,6 +355,14 @@ $(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB_IPV6, $(P_V6)nft_fib
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_QUEUE,CONFIG_NFT_QUEUE, $(P_XT)nft_queue),)) $(eval $(if $(NF_KMOD),$(call nf_add,NFT_QUEUE,CONFIG_NFT_QUEUE, $(P_XT)nft_queue),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_SOCKET,CONFIG_NFT_SOCKET, $(P_XT)nft_socket),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_TPROXY,CONFIG_NFT_TPROXY, $(P_XT)nft_tproxy),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_COMPAT,CONFIG_NFT_COMPAT, $(P_XT)nft_compat),))
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_XFRM,CONFIG_NFT_XFRM, $(P_XT)nft_xfrm),))
# userland only # userland only
IPT_BUILTIN += $(NF_IPT-y) $(NF_IPT-m) IPT_BUILTIN += $(NF_IPT-y) $(NF_IPT-m)
IPT_BUILTIN += $(IPT_CORE-y) $(IPT_CORE-m) IPT_BUILTIN += $(IPT_CORE-y) $(IPT_CORE-m)
@ -373,7 +387,6 @@ IPT_BUILTIN += $(IPT_NAT6-y)
IPT_BUILTIN += $(IPT_NAT_EXTRA-y) IPT_BUILTIN += $(IPT_NAT_EXTRA-y)
IPT_BUILTIN += $(NF_NATHELPER-y) IPT_BUILTIN += $(NF_NATHELPER-y)
IPT_BUILTIN += $(NF_NATHELPER_EXTRA-y) IPT_BUILTIN += $(NF_NATHELPER_EXTRA-y)
IPT_BUILTIN += $(IPT_ULOG-y)
IPT_BUILTIN += $(IPT_TPROXY-y) IPT_BUILTIN += $(IPT_TPROXY-y)
IPT_BUILTIN += $(NFNETLINK-y) IPT_BUILTIN += $(NFNETLINK-y)
IPT_BUILTIN += $(NFNETLINK_LOG-y) IPT_BUILTIN += $(NFNETLINK_LOG-y)

View File

@ -10,27 +10,38 @@ ifeq ($(CONFIG_BUILD_NLS),y)
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
INTL_FULL:=1 INTL_FULL:=1
# iconv stub CMAKE_OPTIONS += -DCMAKE_PREFIX_PATH="$(ICONV_PREFIX);$(INTL_PREFIX)"
else else
ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-stub ICONV_PREFIX:=
ICONV_FULL:= ICONV_FULL:=
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-stub INTL_PREFIX:=
INTL_FULL:= INTL_FULL:=
endif endif
PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS
PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv !BUILD_NLS:gettext
ICONV_DEPENDS:=+BUILD_NLS:libiconv-full ICONV_DEPENDS:=+BUILD_NLS:libiconv-full
ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include ifeq ($(CONFIG_BUILD_NLS),y)
ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include
ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include
ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib
else
ICONV_CFLAGS:=
ICONV_CPPFLAGS:=
ICONV_LDFLAGS:=
endif
INTL_DEPENDS:=+BUILD_NLS:libintl-full INTL_DEPENDS:=+BUILD_NLS:libintl-full
INTL_CFLAGS:=-I$(INTL_PREFIX)/include ifeq ($(CONFIG_BUILD_NLS),y)
INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include INTL_CFLAGS:=-I$(INTL_PREFIX)/include
INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include
INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib
else
INTL_CFLAGS:=
INTL_CPPFLAGS:=
INTL_LDFLAGS:=
endif
TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS) TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS)
TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS) TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS)

79
include/openssl-module.mk Normal file
View File

@ -0,0 +1,79 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2022-2023 Enéas Ulir de Queiroz
ENGINES_DIR=engines-3
define Package/openssl/module/Default
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=SSL
DEPENDS:=libopenssl +libopenssl-conf
endef
define Package/openssl/engine/Default
$(Package/openssl/module/Default)
DEPENDS+=@OPENSSL_ENGINE
endef
# 1 = moudule type (engine|provider)
# 2 = module name
# 3 = directory to save .so file
# 4 = [ package name, defaults to libopenssl-$(2) ]
define Package/openssl/add-module
$(eval MOD_TYPE:=$(1))
$(eval MOD_NAME:=$(2))
$(eval MOD_DIR:=$(3))
$(eval OSSL_PKG:=$(if $(4),$(4),libopenssl-$(MOD_NAME)))
$(info Package/openssl/add-module 1='$(1)'; 2='$(2)'; 3='$(3)' 4='$(4)')
$(info MOD_TYPE='$(MOD_TYPE)'; MOD_NAME='$(MOD_NAME)'; MOD_DIR='$(MOD_DIR)' OSSL_PKG='$(OSSL_PKG)')
Package/$(OSSL_PKG)/conffiles:=/etc/ssl/modules.cnf.d/$(MOD_NAME).cnf
define Package/$(OSSL_PKG)/install
$$(INSTALL_DIR) $$(1)/$(MOD_DIR)
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/$(MOD_DIR)/$(MOD_NAME).so \
$$(1)/$(MOD_DIR)
$$(INSTALL_DIR) $$(1)/etc/ssl/modules.cnf.d
$$(INSTALL_DATA) ./files/$(MOD_NAME).cnf $$(1)/etc/ssl/modules.cnf.d/
endef
define Package/$(OSSL_PKG)/postinst
#!/bin/sh
OPENSSL_UCI="$$$${IPKG_INSTROOT}/etc/config/openssl"
[ -z "$$$${IPKG_INSTROOT}" ] \
&& uci -q get openssl.$(MOD_NAME) >/dev/null \
&& exit 0
cat << EOF >> "$$$${OPENSSL_UCI}"
config $(MOD_TYPE) '$(MOD_NAME)'
option enabled '1'
EOF
[ -n "$$$${IPKG_INSTROOT}" ] || /etc/init.d/openssl reload
exit 0
endef
define Package/$(OSSL_PKG)/postrm
#!/bin/sh
[ -n "$$$${IPKG_INSTROOT}" ] && exit 0
uci -q delete openssl.$(MOD_NAME) && uci commit openssl
/etc/init.d/openssl reload
exit 0
endef
endef
# 1 = engine name
# 2 - package name, defaults to libopenssl-$(1)
define Package/openssl/add-engine
$(call Package/openssl/add-module,engine,$(1),/usr/lib/$(ENGINES_DIR),$(2))
endef
# 1 = provider name
# 2 = [ package name, defaults to libopenssl-$(1) ]
define Package/openssl/add-provider
$(call Package/openssl/add-module,provider,$(1),/usr/lib/ossl-modules,$(2))
endef

View File

@ -4,7 +4,8 @@
ifeq ($(DUMP),) ifeq ($(DUMP),)
define BuildTarget/bin define BuildTarget/bin
ifeq ($(if $(VARIANT),$(BUILD_VARIANT)),$(VARIANT)) TARGET_VARIANT=$(if $(ALL_VARIANTS),$(if $(VARIANT),$(filter-out *,$(VARIANT)),$(firstword $(ALL_VARIANTS))))
ifeq ($(if $(TARGET_VARIANT),$(BUILD_VARIANT)),$(TARGET_VARIANT))
ifdef Package/$(1)/install ifdef Package/$(1)/install
ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),) ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),)
$(_pkg_target)compile: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed $(_pkg_target)compile: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed

View File

@ -2,7 +2,7 @@
# #
# Copyright (C) 2006-2020 OpenWrt.org # Copyright (C) 2006-2020 OpenWrt.org
PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread PKG_DEFAULT_DEPENDS = +libc
ifneq ($(PKG_NAME),toolchain) ifneq ($(PKG_NAME),toolchain)
PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),$(PKG_DEFAULT_DEPENDS) $(filter-out $(PKG_DEFAULT_DEPENDS),$(2))) PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),$(PKG_DEFAULT_DEPENDS) $(filter-out $(PKG_DEFAULT_DEPENDS),$(2)))

View File

@ -105,7 +105,8 @@ ifeq ($(DUMP),)
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1) IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1)
KEEP_$(1):=$(strip $(call Package/$(1)/conffiles)) KEEP_$(1):=$(strip $(call Package/$(1)/conffiles))
ifeq ($(BUILD_VARIANT),$$(if $$(VARIANT),$$(VARIANT),$(BUILD_VARIANT))) TARGET_VARIANT:=$$(if $(ALL_VARIANTS),$$(if $$(VARIANT),$$(filter-out *,$$(VARIANT)),$(firstword $(ALL_VARIANTS))))
ifeq ($(BUILD_VARIANT),$$(if $$(TARGET_VARIANT),$$(TARGET_VARIANT),$(BUILD_VARIANT)))
do_install= do_install=
ifdef Package/$(1)/install ifdef Package/$(1)/install
do_install=yes do_install=yes
@ -263,7 +264,7 @@ $(_endef)
endif endif
$(INSTALL_DIR) $$(PDIR_$(1)) $(INSTALL_DIR) $$(PDIR_$(1))
$(FAKEROOT) $(SCRIPT_DIR)/ipkg-build -m "$(FILE_MODES)" $$(IDIR_$(1)) $$(PDIR_$(1)) $(FAKEROOT) $(STAGING_DIR_HOST)/bin/bash $(SCRIPT_DIR)/ipkg-build -m "$(FILE_MODES)" $$(IDIR_$(1)) $$(PDIR_$(1))
@[ -f $$(IPKG_$(1)) ] @[ -f $$(IPKG_$(1)) ]
$(1)-clean: $(1)-clean:

View File

@ -11,8 +11,7 @@ include $(INCLUDE_DIR)/download.mk
PKG_BUILD_DIR ?= $(BUILD_DIR)/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) PKG_BUILD_DIR ?= $(BUILD_DIR)/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))
PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install
PKG_BUILD_PARALLEL ?= PKG_BUILD_PARALLEL ?=
PKG_USE_MIPS16 ?= 1 PKG_SKIP_DOWNLOAD=$(USE_SOURCE_DIR)$(USE_GIT_TREE)$(USE_GIT_SRC_CHECKOUT)
PKG_IREMAP ?= 1
MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) $(if $(filter 3.% 4.0 4.1,$(MAKE_VERSION)),-j)) MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) $(if $(filter 3.% 4.0 4.1,$(MAKE_VERSION)),-j))
@ -23,17 +22,52 @@ PKG_JOBS?=-j1
else else
PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL),$(MAKE_J),-j1) PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL),$(MAKE_J),-j1)
endif endif
ifdef CONFIG_USE_MIPS16
ifeq ($(strip $(PKG_USE_MIPS16)),1) PKG_BUILD_FLAGS?=
TARGET_ASFLAGS_DEFAULT = $(filter-out -mips16 -minterlink-mips16,$(TARGET_CFLAGS)) # TODO remove this when all packages moved to PKG_BUILD_FLAGS=no-mips16
TARGET_CFLAGS += -mips16 -minterlink-mips16 PKG_USE_MIPS16?=1
endif ifneq ($(strip $(PKG_USE_MIPS16)),1)
PKG_BUILD_FLAGS+=no-mips16
endif endif
ifeq ($(strip $(PKG_IREMAP)),1)
__unknown_flags=$(filter-out no-iremap no-mips16 gc-sections no-gc-sections lto no-lto no-mold,$(PKG_BUILD_FLAGS))
ifneq ($(__unknown_flags),)
$(error unknown PKG_BUILD_FLAGS: $(__unknown_flags))
endif
# $1=flagname, $2=default (0/1)
define pkg_build_flag
$(if $(filter no-$(1),$(PKG_BUILD_FLAGS)),0,$(if $(filter $(1),$(PKG_BUILD_FLAGS)),1,$(2)))
endef
ifeq ($(call pkg_build_flag,iremap,1),1)
IREMAP_CFLAGS = $(call iremap,$(PKG_BUILD_DIR),$(notdir $(PKG_BUILD_DIR))) IREMAP_CFLAGS = $(call iremap,$(PKG_BUILD_DIR),$(notdir $(PKG_BUILD_DIR)))
TARGET_CFLAGS += $(IREMAP_CFLAGS) TARGET_CFLAGS += $(IREMAP_CFLAGS)
endif endif
ifdef CONFIG_USE_MIPS16
ifeq ($(call pkg_build_flag,mips16,1),1)
TARGET_ASFLAGS_DEFAULT = $(filter-out -mips16 -minterlink-mips16,$(TARGET_CFLAGS))
TARGET_CFLAGS += -mips16 -minterlink-mips16
TARGET_CXXFLAGS += -mips16 -minterlink-mips16
endif
endif
ifeq ($(call pkg_build_flag,gc-sections,$(if $(CONFIG_USE_GC_SECTIONS),1,0)),1)
TARGET_CFLAGS+= -ffunction-sections -fdata-sections
TARGET_CXXFLAGS+= -ffunction-sections -fdata-sections
TARGET_LDFLAGS+= -Wl,--gc-sections
endif
ifeq ($(call pkg_build_flag,lto,$(if $(CONFIG_USE_LTO),1,0)),1)
TARGET_CFLAGS+= -flto=auto -fno-fat-lto-objects
TARGET_CXXFLAGS+= -flto=auto -fno-fat-lto-objects
TARGET_LDFLAGS+= -flto=auto -fuse-linker-plugin
endif
ifdef CONFIG_USE_MOLD
ifeq ($(call pkg_build_flag,mold,1),1)
TARGET_LINKER:=mold
endif
endif
include $(INCLUDE_DIR)/hardening.mk include $(INCLUDE_DIR)/hardening.mk
include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/prereq.mk
include $(INCLUDE_DIR)/unpack.mk include $(INCLUDE_DIR)/unpack.mk
@ -84,7 +118,7 @@ ifneq ($(PREV_STAMP_PREPARED),)
STAMP_PREPARED:=$(PREV_STAMP_PREPARED) STAMP_PREPARED:=$(PREV_STAMP_PREPARED)
CONFIG_AUTOREBUILD:= CONFIG_AUTOREBUILD:=
else else
STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(PKG_PREPARED_DEPENDS))) STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(PKG_PREPARED_DEPENDS)))
endif endif
STAMP_CONFIGURED=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS))) STAMP_CONFIGURED=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
STAMP_CONFIGURED_WILDCARD=$(PKG_BUILD_DIR)/.configured_* STAMP_CONFIGURED_WILDCARD=$(PKG_BUILD_DIR)/.configured_*
@ -183,7 +217,7 @@ define Build/CoreTargets
$(call Build/Autoclean) $(call Build/Autoclean)
$(call DefaultTargets) $(call DefaultTargets)
$(DL_DIR)/$(FILE): FORCE $(call check_download_integrity)
download: download:
$(foreach hook,$(Hooks/Download), $(foreach hook,$(Hooks/Download),
@ -258,13 +292,13 @@ define Build/CoreTargets
ifneq ($(CONFIG_AUTOREMOVE),) ifneq ($(CONFIG_AUTOREMOVE),)
compile: compile:
-touch -r $(PKG_BUILD_DIR)/.built $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null -touch -r $(PKG_BUILD_DIR)/.built $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null
$(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \ $(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' -print0 | \
$(XARGS) rm -rf $(XARGS) -0 rm -rf
endif endif
endef endef
define Build/DefaultTargets define Build/DefaultTargets
$(if $(USE_SOURCE_DIR)$(USE_GIT_TREE)$(USE_GIT_SRC_CHECKOUT),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) $(if $(PKG_SKIP_DOWNLOAD),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default)))
$(if $(DUMP),,$(Build/CoreTargets)) $(if $(DUMP),,$(Build/CoreTargets))
define Build/DefaultTargets define Build/DefaultTargets

View File

@ -15,7 +15,7 @@ $(eval $(call TestHostCommand,working-make, \
$(MAKE) -v | grep -E 'Make (4\.[1-9]|[5-9]\.)')) $(MAKE) -v | grep -E 'Make (4\.[1-9]|[5-9]\.)'))
$(eval $(call TestHostCommand,case-sensitive-fs, \ $(eval $(call TestHostCommand,case-sensitive-fs, \
OpenWrt can only be built on a case-sensitive filesystem, \ LEDE can only be built on a case-sensitive filesystem, \
rm -f $(TMP_DIR)/test.*; touch $(TMP_DIR)/test.fs; \ rm -f $(TMP_DIR)/test.*; touch $(TMP_DIR)/test.fs; \
test ! -f $(TMP_DIR)/test.FS)) test ! -f $(TMP_DIR)/test.FS))
@ -49,10 +49,16 @@ $(eval $(call TestHostCommand,working-g++, \
g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \ g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \
$(TMP_DIR)/a.out)) $(TMP_DIR)/a.out))
$(eval $(call TestHostCommand,ncurses, \ $(eval $(call RequireCHeader,ncurses.h, \
Please install ncurses. (Missing libncurses.so or ncurses.h), \ Please install ncurses. (Missing libncurses.so or ncurses.h), \
echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ initscr(), -lncurses))
gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out - -lncurses))
$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule, \
git submodule --help | grep -- --recursive))
$(eval $(call SetupHostCommand,rsync,Please install 'rsync', \
rsync --version </dev/null))
endif # IB endif # IB
ifeq ($(HOST_OS),Linux) ifeq ($(HOST_OS),Linux)
@ -130,13 +136,21 @@ $(eval $(call SetupHostCommand,getopt, \
Please install an extended getopt version that supports --long, \ Please install an extended getopt version that supports --long, \
gnugetopt -o t --long test -- --test | grep '^ *--test *--', \ gnugetopt -o t --long test -- --test | grep '^ *--test *--', \
getopt -o t --long test -- --test | grep '^ *--test *--', \ getopt -o t --long test -- --test | grep '^ *--test *--', \
/usr/local/opt/gnu-getopt/bin/getopt -o t --long test -- --test | grep '^ *--test *--')) /usr/local/opt/gnu-getopt/bin/getopt -o t --long test -- --test | grep '^ *--test *--', \
/opt/local/bin/getopt -o t --long test -- --test | grep '^ *--test *--'))
$(eval $(call SetupHostCommand,realpath,Please install a 'realpath' utility, \
grealpath /, \
realpath /))
$(eval $(call SetupHostCommand,stat,Cannot find a file stat utility, \ $(eval $(call SetupHostCommand,stat,Cannot find a file stat utility, \
gnustat -c%s $(TOPDIR)/Makefile, \ gnustat -c%s $(TOPDIR)/Makefile, \
gstat -c%s $(TOPDIR)/Makefile, \ gstat -c%s $(TOPDIR)/Makefile, \
stat -c%s $(TOPDIR)/Makefile)) stat -c%s $(TOPDIR)/Makefile))
$(eval $(call SetupHostCommand,gzip,Please install 'gzip', \
gzip --version </dev/null))
$(eval $(call SetupHostCommand,unzip,Please install 'unzip', \ $(eval $(call SetupHostCommand,unzip,Please install 'unzip', \
unzip 2>&1 | grep zipfile, \ unzip 2>&1 | grep zipfile, \
unzip)) unzip))
@ -157,38 +171,62 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
$(eval $(call CleanupPython2)) $(eval $(call CleanupPython2))
$(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \ $(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \
python3.9 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \
python3.7 -V 2>&1 | grep 'Python 3', \ python3.7 -V 2>&1 | grep 'Python 3', \
python3.6 -V 2>&1 | grep 'Python 3', \ python3.6 -V 2>&1 | grep 'Python 3', \
python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?')) python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?'))
$(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \ $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
python3.11 -V 2>&1 | grep 'Python 3', \
python3.10 -V 2>&1 | grep 'Python 3', \
python3.9 -V 2>&1 | grep 'Python 3', \ python3.9 -V 2>&1 | grep 'Python 3', \
python3.8 -V 2>&1 | grep 'Python 3', \ python3.8 -V 2>&1 | grep 'Python 3', \
python3.7 -V 2>&1 | grep 'Python 3', \ python3.7 -V 2>&1 | grep 'Python 3', \
python3.6 -V 2>&1 | grep 'Python 3', \ python3.6 -V 2>&1 | grep 'Python 3', \
python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?')) python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?'))
$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \ $(eval $(call TestHostCommand,python3-distutils, \
git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule)) Please install the Python3 distutils module, \
$(STAGING_DIR_HOST)/bin/python3 -c 'from distutils import util'))
$(eval $(call TestHostCommand,python3-stdlib, \
Please install the Python3 stdlib module, \
$(STAGING_DIR_HOST)/bin/python3 -c 'import ntpath'))
$(eval $(call SetupHostCommand,file,Please install the 'file' package, \ $(eval $(call SetupHostCommand,file,Please install the 'file' package, \
file --version 2>&1 | grep file)) file --version 2>&1 | grep file))
$(eval $(call SetupHostCommand,rsync,Please install 'rsync', \
rsync --version </dev/null))
$(eval $(call SetupHostCommand,which,Please install 'which', \ $(eval $(call SetupHostCommand,which,Please install 'which', \
which which | grep which)) /usr/bin/which which, \
/bin/which which, \
which which))
ifeq ($(HOST_OS),Linux)
$(eval $(call RequireCHeader,argp.h, \
Missing argp.h Please install the argp-standalone package if musl libc))
$(eval $(call RequireCHeader,fts.h, \
Missing fts.h Please install the musl-fts-dev package if musl libc))
$(eval $(call RequireCHeader,obstack.h, \
Missing obstack.h Please install the musl-obstack-dev package if musl libc))
$(eval $(call RequireCHeader,libintl.h, \
Missing libintl.h Please install the musl-libintl package if musl libc))
endif
$(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c
mkdir -p $(dir $@) mkdir -p $(dir $@)
$(CC) -O2 -I$(TOPDIR)/tools/include -o $@ $< $(CC) -O2 -I$(TOPDIR)/tools/include -o $@ $<
prereq: $(STAGING_DIR_HOST)/bin/mkhash $(STAGING_DIR_HOST)/bin/xxd: $(SCRIPT_DIR)/xxdi.pl
$(LN) $< $@
prereq: $(STAGING_DIR_HOST)/bin/mkhash $(STAGING_DIR_HOST)/bin/xxd
# Install ldconfig stub # Install ldconfig stub
$(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \ $(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \
touch $(STAGING_DIR_HOST)/bin/ldconfig && \ $(LN) $(SCRIPT_DIR)/noop.sh $(STAGING_DIR_HOST)/bin/ldconfig))
chmod +x $(STAGING_DIR_HOST)/bin/ldconfig))

View File

@ -49,7 +49,7 @@ endef
define RequireCommand define RequireCommand
define Require/$(1) define Require/$(1)
which $(1) command -v $(1)
endef endef
$$(eval $$(call Require,$(1),$(2))) $$(eval $$(call Require,$(1),$(2)))
@ -63,6 +63,18 @@ define RequireHeader
$$(eval $$(call Require,$(1),$(2))) $$(eval $$(call Require,$(1),$(2)))
endef endef
# 1: header to test
# 2: failure message
# 3: optional compile time test
# 4: optional link library test (example -lncurses)
define RequireCHeader
define Require/$(1)
echo 'int main(int argc, char **argv) { $(3); return 0; }' | gcc -include $(1) -x c -o $(TMP_DIR)/a.out - $(4)
endef
$$(eval $$(call Require,$(1),$(2)))
endef
define CleanupPython2 define CleanupPython2
define Require/python2-cleanup define Require/python2-cleanup
if [ -f "$(STAGING_DIR_HOST)/bin/python" ] && \ if [ -f "$(STAGING_DIR_HOST)/bin/python" ] && \
@ -103,7 +115,7 @@ define SetupHostCommand
$(call QuoteHostCommand,$(11)) $(call QuoteHostCommand,$(12)); do \ $(call QuoteHostCommand,$(11)) $(call QuoteHostCommand,$(12)); do \
if [ -n "$$$$$$$$cmd" ]; then \ if [ -n "$$$$$$$$cmd" ]; then \
bin="$$$$$$$$(PATH="$(subst $(space),:,$(filter-out $(STAGING_DIR_HOST)/%,$(subst :,$(space),$(PATH))))" \ bin="$$$$$$$$(PATH="$(subst $(space),:,$(filter-out $(STAGING_DIR_HOST)/%,$(subst :,$(space),$(PATH))))" \
which "$$$$$$$${cmd%% *}")"; \ command -v "$$$$$$$${cmd%% *}")"; \
if [ -x "$$$$$$$$bin" ] && eval "$$$$$$$$cmd" >/dev/null 2>/dev/null; then \ if [ -x "$$$$$$$$bin" ] && eval "$$$$$$$$cmd" >/dev/null 2>/dev/null; then \
mkdir -p "$(STAGING_DIR_HOST)/bin"; \ mkdir -p "$(STAGING_DIR_HOST)/bin"; \
ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \ ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \

View File

@ -116,7 +116,7 @@ define Quilt/RefreshDir
endef endef
define Quilt/Refresh/Host define Quilt/Refresh/Host
$(call Quilt/RefreshDir,$(HOST_BUILD_DIR),$(PATCH_DIR)) $(call Quilt/RefreshDir,$(HOST_BUILD_DIR),$(HOST_PATCH_DIR))
endef endef
define Quilt/Refresh/Package define Quilt/Refresh/Package

View File

@ -11,7 +11,7 @@ TARGET_STAMP:=$(TMP_DIR)/info/.files-$(SCAN_TARGET).stamp
FILELIST:=$(TMP_DIR)/info/.files-$(SCAN_TARGET)-$(SCAN_COOKIE) FILELIST:=$(TMP_DIR)/info/.files-$(SCAN_TARGET)-$(SCAN_COOKIE)
OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE) OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) export PATH:=$(STAGING_DIR_HOST)/bin:$(PATH)
define feedname define feedname
$(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1)))) $(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1))))
@ -72,7 +72,7 @@ endif
$(FILELIST): $(OVERRIDELIST) $(FILELIST): $(OVERRIDELIST)
rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-* rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
find -L $(SCAN_DIR) $(SCAN_EXTRA) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -aHE 'call $(GREP_STRING)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@ find -L $(SCAN_DIR) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) $(SCAN_EXTRA) -name Makefile | xargs grep -aHE 'call $(GREP_STRING)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@
$(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST) $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
( \ ( \

30
include/site/loongarch64 Normal file
View File

@ -0,0 +1,30 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
ac_cv_sizeof___int64=0
ac_cv_sizeof_char=1
ac_cv_sizeof_int=4
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_long_int=8
ac_cv_sizeof_long_long=8
ac_cv_sizeof_long=8
ac_cv_sizeof_off_t=8
ac_cv_sizeof_short_int=2
ac_cv_sizeof_short=2
ac_cv_sizeof_size_t=8
ac_cv_sizeof_ssize_t=8
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=8
ac_cv_sizeof_unsigned_long_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=8

30
include/site/riscv64 Normal file
View File

@ -0,0 +1,30 @@
#!/bin/sh
. $TOPDIR/include/site/linux
ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
ac_cv_sizeof___int64=8
ac_cv_sizeof_char=1
ac_cv_sizeof_int=4
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_long_int=8
ac_cv_sizeof_long_long=8
ac_cv_sizeof_long=8
ac_cv_sizeof_off_t=8
ac_cv_sizeof_short_int=2
ac_cv_sizeof_short=2
ac_cv_sizeof_size_t=8
ac_cv_sizeof_ssize_t=8
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=8
ac_cv_sizeof_unsigned_long_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=8

View File

@ -5,6 +5,9 @@
ifeq ($(MAKECMDGOALS),prereq) ifeq ($(MAKECMDGOALS),prereq)
SUBTARGETS:=prereq SUBTARGETS:=prereq
PREREQ_ONLY:=1 PREREQ_ONLY:=1
# For target/linux related target add dtb to selectively compile dtbs
else ifneq ($(filter target/linux/%,$(MAKECMDGOALS)),)
SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS) dtb
else else
SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS) SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS)
endif endif
@ -27,14 +30,16 @@ lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1)))
diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1))) diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1)))
subdir_make_opts = \ subdir_make_opts = \
-r -C $(1) \ $(if $(SUBDIR_MAKE_DEBUG),-d) -r -C $(1) \
BUILD_SUBDIR="$(1)" \ BUILD_SUBDIR="$(1)" \
BUILD_VARIANT="$(4)" BUILD_VARIANT="$(4)" \
ALL_VARIANTS="$(5)"
# 1: subdir # 1: subdir
# 2: target # 2: target
# 3: build type # 3: build type
# 4: build variant # 4: build variant
# 5: all variants
log_make = \ log_make = \
$(if $(call debug,$(1),v),,@)+ \ $(if $(call debug,$(1),v),,@)+ \
$(if $(BUILD_LOG), \ $(if $(BUILD_LOG), \
@ -62,15 +67,15 @@ define subdir
$(foreach target,$(SUBTARGETS) $($(1)/subtargets), $(foreach target,$(SUBTARGETS) $($(1)/subtargets),
$(foreach btype,$(buildtypes-$(bd)), $(foreach btype,$(buildtypes-$(bd)),
$(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(btype)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(btype)/$(target)) $(call $(1)//$(btype)/$(target),$(1)/$(bd)/$(btype)))) $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(btype)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(btype)/$(target)) $(call $(1)//$(btype)/$(target),$(1)/$(bd)/$(btype))))
$(call log_make,$(1)/$(bd),$(target),$(btype),$(filter-out __default,$(variant))) \ $(call log_make,$(1)/$(bd),$(target),$(btype),$(filter-out __default,$(variant)),$($(1)/$(bd)/variants)) \
|| $(call ERROR,$(2), ERROR: $(1)/$(bd) [$(btype)] failed to build.,$(findstring $(bd),$($(1)/builddirs-ignore-$(btype)-$(target)))) || $(call ERROR,$(2), ERROR: $(1)/$(bd) [$(btype)] failed to build.,$(findstring $(bd),$($(1)/builddirs-ignore-$(btype)-$(target))))
$(if $(call diralias,$(bd)),$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(call diralias,$(bd))/$(btype)/$(target): $(1)/$(bd)/$(btype)/$(target))) $(if $(call diralias,$(bd)),$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(call diralias,$(bd))/$(btype)/$(target): $(1)/$(bd)/$(btype)/$(target)))
) )
$(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd)))) $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd))))
$(foreach variant,$(if $(BUILD_VARIANT),$(BUILD_VARIANT),$(if $(strip $($(1)/$(bd)/variants)),$($(1)/$(bd)/variants),$(if $($(1)/$(bd)/default-variant),$($(1)/$(bd)/default-variant),__default))), $(foreach variant,$(filter-out *,$(if $(BUILD_VARIANT),$(BUILD_VARIANT),$(if $(strip $($(1)/$(bd)/variants)),$($(1)/$(bd)/variants),$(if $($(1)/$(bd)/default-variant),$($(1)/$(bd)/default-variant),__default)))),
$(if $(BUILD_LOG),@mkdir -p $(BUILD_LOG_DIR)/$(1)/$(bd)/$(filter-out __default,$(variant))) $(if $(BUILD_LOG),@mkdir -p $(BUILD_LOG_DIR)/$(1)/$(bd)/$(filter-out __default,$(variant)))
$(if $($(1)/autoremove),$(call rebuild_check,$(1)/$(bd),$(target),,$(filter-out __default,$(variant)))) $(if $($(1)/autoremove),$(call rebuild_check,$(1)/$(bd),$(target),,$(filter-out __default,$(variant)),$($(1)/$(bd)/variants)))
$(call log_make,$(1)/$(bd),$(target),,$(filter-out __default,$(variant))) \ $(call log_make,$(1)/$(bd),$(target),,$(filter-out __default,$(variant)),$($(1)/$(bd)/variants)) \
|| $(call ERROR,$(1), ERROR: $(1)/$(bd) failed to build$(if $(filter-out __default,$(variant)), (build variant: $(variant))).,$(findstring $(bd),$($(1)/builddirs-ignore-$(target)))) || $(call ERROR,$(1), ERROR: $(1)/$(bd) failed to build$(if $(filter-out __default,$(variant)), (build variant: $(variant))).,$(findstring $(bd),$($(1)/builddirs-ignore-$(target))))
) )
$(if $(PREREQ_ONLY)$(DUMP_TARGET_DB),, $(if $(PREREQ_ONLY)$(DUMP_TARGET_DB),,

View File

@ -12,6 +12,7 @@ DEVICE_TYPE?=router
# Default packages - the really basic set # Default packages - the really basic set
DEFAULT_PACKAGES:=\ DEFAULT_PACKAGES:=\
base-files \ base-files \
ca-bundle \
dropbear \ dropbear \
fstools \ fstools \
libc \ libc \
@ -23,7 +24,8 @@ DEFAULT_PACKAGES:=\
opkg \ opkg \
uci \ uci \
uclient-fetch \ uclient-fetch \
urandom-seed urandom-seed \
urngd
ifneq ($(CONFIG_SELINUX),) ifneq ($(CONFIG_SELINUX),)
DEFAULT_PACKAGES+=busybox-selinux procd-selinux DEFAULT_PACKAGES+=busybox-selinux procd-selinux
@ -31,6 +33,16 @@ else
DEFAULT_PACKAGES+=busybox procd DEFAULT_PACKAGES+=busybox procd
endif endif
# include ujail on systems with enough storage
ifeq ($(CONFIG_SMALL_FLASH),)
DEFAULT_PACKAGES+=procd-ujail
endif
# include seccomp ld-preload hooks if kernel supports it
ifneq ($(CONFIG_SECCOMP),)
DEFAULT_PACKAGES+=procd-seccomp
endif
# For the basic set # For the basic set
DEFAULT_PACKAGES.basic:= DEFAULT_PACKAGES.basic:=
# For nas targets # For nas targets
@ -41,16 +53,12 @@ DEFAULT_PACKAGES.nas:=\
mdadm mdadm
# For router targets # For router targets
DEFAULT_PACKAGES.router:=\ DEFAULT_PACKAGES.router:=\
dnsmasq-full \ dnsmasq-full firewall iptables ppp ppp-mod-pppoe odhcp6c odhcpd-ipv6only ip6tables libip6tc kmod-ipt-nat6 \
firewall \ block-mount coremark kmod-nf-nathelper kmod-nf-nathelper-extra kmod-ipt-raw kmod-tun \
iptables \ iptables-mod-tproxy iptables-mod-extra ipset ip-full default-settings luci luci-proto-ipv6 \
ppp \ ddns-scripts_aliyun ddns-scripts_dnspod luci-app-ddns luci-app-upnp luci-app-autoreboot \
ppp-mod-pppoe \ luci-app-arpbind luci-app-filetransfer luci-app-vsftpd luci-app-ssr-plus luci-app-vlmcsd \
luci-newapi block-mount coremark kmod-nf-nathelper kmod-nf-nathelper-extra kmod-ipt-raw \ luci-app-accesscontrol luci-app-nlbwmon luci-app-turboacc luci-app-wol curl ca-certificates
default-settings luci luci-app-ddns luci-app-upnp luci-app-autoreboot \
luci-app-filetransfer luci-app-vsftpd luci-app-ssr-plus luci-app-unblockmusic luci-app-arpbind \
luci-app-vlmcsd luci-app-wol luci-app-ramfree \
luci-app-turboacc luci-app-nlbwmon luci-app-accesscontrol ddns-scripts_aliyun ddns-scripts_dnspod
ifneq ($(DUMP),) ifneq ($(DUMP),)
all: dumpinfo all: dumpinfo
@ -58,7 +66,7 @@ endif
target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1)))) target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
ifeq ($(DUMP),) ifeq ($(DUMP),)
PLATFORM_DIR:=$(TOPDIR)/target/linux/$(BOARD) PLATFORM_DIR:=$(firstword $(wildcard $(TOPDIR)/target/linux/feeds/$(BOARD) $(TOPDIR)/target/linux/$(BOARD)))
SUBTARGET:=$(strip $(foreach subdir,$(patsubst $(PLATFORM_DIR)/%/target.mk,%,$(wildcard $(PLATFORM_DIR)/*/target.mk)),$(if $(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(subdir))),$(subdir)))) SUBTARGET:=$(strip $(foreach subdir,$(patsubst $(PLATFORM_DIR)/%/target.mk,%,$(wildcard $(PLATFORM_DIR)/*/target.mk)),$(if $(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(subdir))),$(subdir))))
else else
PLATFORM_DIR:=${CURDIR} PLATFORM_DIR:=${CURDIR}
@ -163,22 +171,30 @@ USE_SUBTARGET_CONFIG = $(if $(wildcard $(LINUX_TARGET_CONFIG)),,$(if $(LINUX_SUB
LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG))) LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG)))
LINUX_RECONFIG_TARGET = $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG),$(LINUX_TARGET_CONFIG)) LINUX_RECONFIG_TARGET = $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG),$(LINUX_TARGET_CONFIG))
CFG_TARGET = $(CONFIG_TARGET)
ifeq ($(CFG_TARGET),platform)
CFG_TARGET = target
$(warning Deprecation warning: use CONFIG_TARGET=target instead.)
else ifeq ($(CFG_TARGET),subtarget_platform)
CFG_TARGET = subtarget_target
$(warning Deprecation warning: use CONFIG_TARGET=subtarget_target instead.)
endif
# select the config file to be changed by kernel_menuconfig/kernel_oldconfig # select the config file to be changed by kernel_menuconfig/kernel_oldconfig
ifeq ($(CONFIG_TARGET),platform) ifeq ($(CFG_TARGET),target)
LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG)) LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG))
LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG) LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG)
endif else ifeq ($(CFG_TARGET),subtarget)
ifeq ($(CONFIG_TARGET),subtarget)
LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG)) LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG))
LINUX_RECONFIG_TARGET = $(LINUX_SUBTARGET_CONFIG) LINUX_RECONFIG_TARGET = $(LINUX_SUBTARGET_CONFIG)
endif else ifeq ($(CFG_TARGET),subtarget_target)
ifeq ($(CONFIG_TARGET),subtarget_platform)
LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(LINUX_TARGET_CONFIG)) LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(LINUX_TARGET_CONFIG))
LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG) LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG)
endif else ifeq ($(CFG_TARGET),env)
ifeq ($(CONFIG_TARGET),env)
LINUX_RECONFIG_LIST = $(LINUX_KCONFIG_LIST) LINUX_RECONFIG_LIST = $(LINUX_KCONFIG_LIST)
LINUX_RECONFIG_TARGET = $(TOPDIR)/env/kernel-config LINUX_RECONFIG_TARGET = $(TOPDIR)/env/kernel-config
else ifneq ($(strip $(CFG_TARGET)),)
$(error CONFIG_TARGET=$(CFG_TARGET) is invalid. Valid: target|subtarget|subtarget_target|env)
endif endif
__linux_confcmd = $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1) __linux_confcmd = $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1)
@ -217,12 +233,14 @@ ifeq ($(DUMP),1)
ifeq ($(ARCH),powerpc) ifeq ($(ARCH),powerpc)
CPU_CFLAGS_603e:=-mcpu=603e CPU_CFLAGS_603e:=-mcpu=603e
CPU_CFLAGS_8540:=-mcpu=8540 CPU_CFLAGS_8540:=-mcpu=8540
CPU_CFLAGS_8548:=-mcpu=8548
CPU_CFLAGS_405:=-mcpu=405 CPU_CFLAGS_405:=-mcpu=405
CPU_CFLAGS_440:=-mcpu=440 CPU_CFLAGS_440:=-mcpu=440
CPU_CFLAGS_464fp:=-mcpu=464fp CPU_CFLAGS_464fp:=-mcpu=464fp
endif endif
ifeq ($(ARCH),powerpc64) ifeq ($(ARCH),powerpc64)
CPU_TYPE ?= powerpc64 CPU_TYPE ?= powerpc64
CPU_CFLAGS_e5500:=-mcpu=e5500
CPU_CFLAGS_powerpc64:=-mcpu=powerpc64 CPU_CFLAGS_powerpc64:=-mcpu=powerpc64
endif endif
ifeq ($(ARCH),sparc) ifeq ($(ARCH),sparc)
@ -240,6 +258,15 @@ ifeq ($(DUMP),1)
CPU_CFLAGS_arc700 = -mcpu=arc700 CPU_CFLAGS_arc700 = -mcpu=arc700
CPU_CFLAGS_archs = -mcpu=archs CPU_CFLAGS_archs = -mcpu=archs
endif endif
ifeq ($(ARCH),riscv64)
CPU_TYPE ?= riscv64
CPU_CFLAGS_riscv64:=-mabi=lp64d -march=rv64imafdc
endif
ifeq ($(ARCH),loongarch64)
CPU_TYPE ?= generic
CPU_CFLAGS := -O2 -pipe
CPU_CFLAGS_generic:=-march=loongarch64
endif
ifneq ($(CPU_TYPE),) ifneq ($(CPU_TYPE),)
ifndef CPU_CFLAGS_$(CPU_TYPE) ifndef CPU_CFLAGS_$(CPU_TYPE)
$(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type)

View File

@ -18,6 +18,6 @@ define FixupLibdir
mkdir -p $(1)/lib; \ mkdir -p $(1)/lib; \
mv $(1)/lib64/* $(1)/lib/; \ mv $(1)/lib64/* $(1)/lib/; \
rm -rf $(1)/lib64; \ rm -rf $(1)/lib64; \
ln -sf lib $(1)/lib64; \
fi fi
ln -sf lib $(1)/lib64
endef endef

View File

@ -51,11 +51,12 @@ path:=$(subst :,$(space),$(PATH))
path:=$(filter-out .%,$(path)) path:=$(filter-out .%,$(path))
path:=$(subst $(space),:,$(path)) path:=$(subst $(space),:,$(path))
export PATH:=$(path) export PATH:=$(path)
export STAGING_DIR_HOST:=$(if $(STAGING_DIR),$(abspath $(STAGING_DIR)/../host),$(TOPDIR)/staging_dir/host)
unexport TAR_OPTIONS unexport TAR_OPTIONS
ifeq ($(FORCE),) ifeq ($(FORCE),)
.config scripts/config/conf scripts/config/mconf: staging_dir/host/.prereq-build .config scripts/config/conf scripts/config/mconf: $(STAGING_DIR_HOST)/.prereq-build
endif endif
SCAN_COOKIE?=$(shell echo $$$$) SCAN_COOKIE?=$(shell echo $$$$)
@ -65,7 +66,7 @@ SUBMAKE:=umask 022; $(SUBMAKE)
ULIMIT_FIX=_limit=`ulimit -n`; [ "$$_limit" = "unlimited" -o "$$_limit" -ge 1024 ] || ulimit -n 1024; ULIMIT_FIX=_limit=`ulimit -n`; [ "$$_limit" = "unlimited" -o "$$_limit" -ge 1024 ] || ulimit -n 1024;
prepare-mk: staging_dir/host/.prereq-build FORCE ; prepare-mk: $(STAGING_DIR_HOST)/.prereq-build FORCE ;
ifdef SDK ifdef SDK
IGNORE_PACKAGES = linux IGNORE_PACKAGES = linux
@ -74,10 +75,10 @@ endif
_ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p)) _ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p))
prepare-tmpinfo: FORCE prepare-tmpinfo: FORCE
@+$(MAKE) -r -s staging_dir/host/.prereq-build $(PREP_MK) @+$(MAKE) -r -s $(STAGING_DIR_HOST)/.prereq-build $(PREP_MK)
mkdir -p tmp/info mkdir -p tmp/info
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPTH=5 SCAN_EXTRA="" $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPTH=5 SCAN_EXTRA=""
$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1" $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPTH=3 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1"
for type in package target; do \ for type in package target; do \
f=tmp/.$${type}info; t=tmp/.config-$${type}.in; \ f=tmp/.$${type}info; t=tmp/.config-$${type}.in; \
[ "$$t" -nt "$$f" ] || ./scripts/$${type}-metadata.pl $(_ignore) config "$$f" > "$$t" || { rm -f "$$t"; echo "Failed to build $$t"; false; break; }; \ [ "$$t" -nt "$$f" ] || ./scripts/$${type}-metadata.pl $(_ignore) config "$$f" > "$$t" || { rm -f "$$t"; echo "Failed to build $$t"; false; break; }; \
@ -101,7 +102,7 @@ ifneq ($(DISTRO_PKG_CONFIG),)
scripts/config/%onf: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH) scripts/config/%onf: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
endif endif
scripts/config/%onf: CFLAGS+= -O2 scripts/config/%onf: CFLAGS+= -O2
scripts/config/%onf: scripts/config/%onf: FORCE
@$(_SINGLE)$(SUBMAKE) $(if $(findstring s,$(OPENWRT_VERBOSE)),,-s) \ @$(_SINGLE)$(SUBMAKE) $(if $(findstring s,$(OPENWRT_VERBOSE)),,-s) \
-C scripts/config $(notdir $@) -C scripts/config $(notdir $@)
@ -151,7 +152,7 @@ xconfig: scripts/config/qconf prepare-tmpinfo FORCE
prepare_kernel_conf: .config toolchain/install FORCE prepare_kernel_conf: .config toolchain/install FORCE
ifeq ($(wildcard staging_dir/host/bin/quilt),) ifeq ($(wildcard $(STAGING_DIR_HOST)/bin/quilt),)
prepare_kernel_conf: prepare_kernel_conf:
@+$(SUBMAKE) -r tools/quilt/compile @+$(SUBMAKE) -r tools/quilt/compile
else else
@ -175,7 +176,7 @@ kernel_nconfig: prepare_kernel_conf
kernel_xconfig: prepare_kernel_conf kernel_xconfig: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux xconfig $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux xconfig
staging_dir/host/.prereq-build: include/prereq-build.mk $(STAGING_DIR_HOST)/.prereq-build: include/prereq-build.mk
mkdir -p tmp mkdir -p tmp
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \ @$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \
echo "Prerequisite check failed. Use FORCE=1 to override."; \ echo "Prerequisite check failed. Use FORCE=1 to override."; \
@ -198,7 +199,7 @@ else
DOWNLOAD_DIRS = package/download DOWNLOAD_DIRS = package/download
endif endif
download: .config FORCE $(if $(wildcard $(TOPDIR)/staging_dir/host/bin/flock),,tools/flock/compile) download: .config FORCE $(if $(wildcard $(STAGING_DIR_HOST)/bin/flock),,tools/flock/compile)
@+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);) @+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
clean dirclean: .config clean dirclean: .config
@ -262,7 +263,7 @@ distclean:
@$(_SINGLE)$(SUBMAKE) -C scripts/config clean @$(_SINGLE)$(SUBMAKE) -C scripts/config clean
ifeq ($(findstring v,$(DEBUG)),) ifeq ($(findstring v,$(DEBUG)),)
.SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig staging_dir/host/.prereq-build tmp/.prereq-package prepare-tmpinfo .SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig $(STAGING_DIR_HOST)/.prereq-build tmp/.prereq-package prepare-tmpinfo
endif endif
.PHONY: help FORCE .PHONY: help FORCE
.NOTPARALLEL: .NOTPARALLEL:

View File

@ -1,9 +1,9 @@
PKG_NAME ?= trusted-firmware-a PKG_NAME ?= trusted-firmware-a
PKG_CPE_ID ?= cpe:/a:arm:arm_trusted_firmware PKG_CPE_ID ?= cpe:/a:arm:trusted_firmware-a
ifndef PKG_SOURCE_PROTO ifndef PKG_SOURCE_PROTO
PKG_SOURCE = trusted-firmware-a-$(PKG_VERSION).tar.gz PKG_SOURCE = trusted-firmware-a-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot PKG_SOURCE_URL:=https://codeload.github.com/TrustedFirmware-A/trusted-firmware-a/tar.gz/v$(PKG_VERSION)?
endif endif
PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
@ -68,13 +68,20 @@ define Build/Trusted-Firmware-A/Target
endef endef
endef endef
define Build/Configure/Trusted-Firmware-A
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
endef
DTC=$(wildcard $(LINUX_DIR)/scripts/dtc/dtc)
define Build/Compile/Trusted-Firmware-A define Build/Compile/Trusted-Firmware-A
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
CROSS_COMPILE=$(TARGET_CROSS) \ CROSS_COMPILE=$(TARGET_CROSS) \
OPENSSL_DIR=$(STAGING_DIR_HOST) \ OPENSSL_DIR=$(STAGING_DIR_HOST) \
$(if $(DTC),DTC="$(DTC)") \
PLAT=$(PLAT) \ PLAT=$(PLAT) \
BUILD_STRING="OpenWrt v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \ BUILD_STRING="OpenWrt v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \
$(if $(CONFIG_BINUTILS_VERSION_2_37)$(CONFIG_BINUTILS_VERSION_2_38),,LDFLAGS="-no-warn-rwx-segments") \
$(TFA_MAKE_FLAGS) $(TFA_MAKE_FLAGS)
endef endef

View File

@ -16,7 +16,7 @@ PKG_FLAGS:=nonshared
PKG_LICENSE:=GPL-2.0 GPL-2.0+ PKG_LICENSE:=GPL-2.0 GPL-2.0+
PKG_LICENSE_FILES:=Licenses/README PKG_LICENSE_FILES:=Licenses/README
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL ?= 1
export GCC_HONOUR_COPTS=s export GCC_HONOUR_COPTS=s
@ -45,6 +45,11 @@ UBOOT_MAKE_FLAGS = \
HOSTCC="$(HOSTCC)" \ HOSTCC="$(HOSTCC)" \
HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -std=gnu11" \ HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -std=gnu11" \
HOSTLDFLAGS="$(HOST_LDFLAGS)" \ HOSTLDFLAGS="$(HOST_LDFLAGS)" \
LOCALVERSION="-OpenWrt-$(REVISION)" \
STAGING_PREFIX="$(STAGING_DIR_HOST)" \
PKG_CONFIG_PATH="$(STAGING_DIR_HOST)/lib/pkgconfig" \
PKG_CONFIG_LIBDIR="$(STAGING_DIR_HOST)/lib/pkgconfig" \
PKG_CONFIG_EXTRAARGS="--static" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='')
define Build/U-Boot/Target define Build/U-Boot/Target

View File

@ -1,16 +1,2 @@
ifndef DUMP $(warn uclibc++.mk is deprecated. Please remove it and CXX_DEPENDS)
ifdef __package_mk CXX_DEPENDS = +libstdcpp
$(error uclibc++.mk must be included before package.mk)
endif
endif
PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
CXX_DEPENDS = +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
ifneq ($(CONFIG_USE_UCLIBCXX),)
ifneq ($(CONFIG_CCACHE),)
TARGET_CXX_NOCACHE=g++-uc
else
TARGET_CXX=g++-uc
endif
endif

View File

@ -18,7 +18,7 @@ ifeq ($(strip $(UNPACK_CMD)),)
ifeq ($(filter gz tgz,$(EXT)),$(EXT)) ifeq ($(filter gz tgz,$(EXT)),$(EXT))
EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=))
DECOMPRESS_CMD:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | DECOMPRESS_CMD:=$(STAGING_DIR_HOST)/bin/libdeflate-gzip -dc $(DL_DIR)/$(PKG_SOURCE) |
endif endif
ifeq ($(filter bzip2 bz2 bz tbz2 tbz,$(EXT)),$(EXT)) ifeq ($(filter bzip2 bz2 bz tbz2 tbz,$(EXT)),$(EXT))
EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=))
@ -56,7 +56,7 @@ ifeq ($(strip $(UNPACK_CMD)),)
endif endif
# replace zcat with $(ZCAT), because some system don't support it properly # replace zcat with $(ZCAT), because some system don't support it properly
ifeq ($(PKG_CAT),zcat) ifeq ($(PKG_CAT),zcat)
UNPACK_CMD=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) UNPACK_CMD=$(STAGING_DIR_HOST)/bin/libdeflate-gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD)
endif endif
endif endif
endif endif

View File

@ -29,15 +29,15 @@ ifeq ($(IS_TTY),1)
endif endif
endif endif
define ERROR_MESSAGE
printf "$(_R)%s$(_N)\n" "$(1)" >&8
endef
ifeq ($(findstring s,$(OPENWRT_VERBOSE)),) ifeq ($(findstring s,$(OPENWRT_VERBOSE)),)
define MESSAGE define MESSAGE
printf "$(_Y)%s$(_N)\n" "$(1)" >&8 printf "$(_Y)%s$(_N)\n" "$(1)" >&8
endef endef
define ERROR_MESSAGE
printf "$(_R)%s$(_N)\n" "$(1)" >&8
endef
ifeq ($(QUIET),1) ifeq ($(QUIET),1)
ifneq ($(CURDIR),$(TOPDIR)) ifneq ($(CURDIR),$(TOPDIR))
_DIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) _DIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
@ -60,5 +60,4 @@ else
define MESSAGE define MESSAGE
printf "%s\n" "$(1)" printf "%s\n" "$(1)"
endef endef
ERROR_MESSAGE=$(MESSAGE)
endif endif

View File

@ -23,13 +23,13 @@ PKG_CONFIG_DEPENDS += \
sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1)))) sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1))))
VERSION_NUMBER:=$(call qstrip,$(CONFIG_VERSION_NUMBER)) VERSION_NUMBER:=$(call qstrip,$(CONFIG_VERSION_NUMBER))
VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),SNAPSHOT) VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),24.10.0)
VERSION_CODE:=$(call qstrip,$(CONFIG_VERSION_CODE)) VERSION_CODE:=$(call qstrip,$(CONFIG_VERSION_CODE))
VERSION_CODE:=$(if $(VERSION_CODE),$(VERSION_CODE),$(REVISION)) VERSION_CODE:=$(if $(VERSION_CODE),$(VERSION_CODE),$(REVISION))
VERSION_REPO:=$(call qstrip,$(CONFIG_VERSION_REPO)) VERSION_REPO:=$(call qstrip,$(CONFIG_VERSION_REPO))
VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),https://downloads.openwrt.org/snapshots) VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),https://downloads.openwrt.org/releases/24.10.0)
VERSION_DIST:=$(call qstrip,$(CONFIG_VERSION_DIST)) VERSION_DIST:=$(call qstrip,$(CONFIG_VERSION_DIST))
VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),OpenWrt) VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),OpenWrt)

View File

@ -23,6 +23,8 @@ PKG_LICENSE:=GPL-2.0
PKG_CONFIG_DEPENDS += \ PKG_CONFIG_DEPENDS += \
CONFIG_SIGNED_PACKAGES CONFIG_TARGET_INIT_PATH CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE \ CONFIG_SIGNED_PACKAGES CONFIG_TARGET_INIT_PATH CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE \
CONFIG_NAND_SUPPORT \ CONFIG_NAND_SUPPORT \
CONFIG_LEGACY_SDCARD_SUPPORT \
CONFIG_EMMC_SUPPORT \
CONFIG_CLEAN_IPKG \ CONFIG_CLEAN_IPKG \
CONFIG_PER_FEED_REPO \ CONFIG_PER_FEED_REPO \
$(foreach feed,$(FEEDS_AVAILABLE),CONFIG_FEED_$(feed)) $(foreach feed,$(FEEDS_AVAILABLE),CONFIG_FEED_$(feed))
@ -38,7 +40,7 @@ define Package/base-files
SECTION:=base SECTION:=base
CATEGORY:=Base system CATEGORY:=Base system
DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool
TITLE:=Base filesystem for OpenWrt TITLE:=Base filesystem for LEDE
URL:=http://openwrt.org/ URL:=http://openwrt.org/
VERSION:=$(PKG_RELEASE)-$(REVISION) VERSION:=$(PKG_RELEASE)-$(REVISION)
endef endef
@ -47,7 +49,6 @@ define Package/base-files/conffiles
/etc/config/ /etc/config/
/etc/config/network /etc/config/network
/etc/config/system /etc/config/system
/etc/crontabs/
/etc/dropbear/ /etc/dropbear/
/etc/ethers /etc/ethers
/etc/group /etc/group
@ -88,6 +89,19 @@ define ImageConfigOptions
echo 'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf echo 'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
echo 'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf echo 'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf
echo 'pi_preinit_no_failsafe="$(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE)"' >>$(1)/lib/preinit/00_preinit.conf echo 'pi_preinit_no_failsafe="$(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE)"' >>$(1)/lib/preinit/00_preinit.conf
ifeq ($(CONFIG_TARGET_DEFAULT_LAN_IP_FROM_PREINIT),y)
mkdir -p $(1)/etc/board.d
echo '. /lib/functions/uci-defaults.sh' >$(1)/etc/board.d/99-lan-ip
echo 'logger -t 99-lan-ip "setting custom default LAN IP"' >>$(1)/etc/board.d/99-lan-ip
echo 'board_config_update' >>$(1)/etc/board.d/99-lan-ip
echo 'json_select network' >>$(1)/etc/board.d/99-lan-ip
echo 'json_select lan' >>$(1)/etc/board.d/99-lan-ip
echo 'json_add_string ipaddr $(if $(CONFIG_TARGET_PREINIT_IP),$(CONFIG_TARGET_PREINIT_IP),"192.168.1.1")' >>$(1)/etc/board.d/99-lan-ip
echo 'json_add_string netmask $(if $(CONFIG_TARGET_PREINIT_NETMASK),$(CONFIG_TARGET_PREINIT_NETMASK),"255.255.255.0")' >>$(1)/etc/board.d/99-lan-ip
echo 'json_select ..' >>$(1)/etc/board.d/99-lan-ip
echo 'json_select ..' >>$(1)/etc/board.d/99-lan-ip
echo 'board_config_flush' >>$(1)/etc/board.d/99-lan-ip
endif
endef endef
define Build/Prepare define Build/Prepare
@ -124,10 +138,24 @@ ifeq ($(CONFIG_NAND_SUPPORT),)
endef endef
endif endif
ifeq ($(CONFIG_LEGACY_SDCARD_SUPPORT),)
define Package/base-files/legacy-sdcard-support
rm -f $(1)/lib/upgrade/legacy-sdcard.sh
endef
endif
ifeq ($(CONFIG_EMMC_SUPPORT),)
define Package/base-files/emmc-support
rm -f $(1)/lib/upgrade/emmc.sh
endef
endif
define Package/base-files/install define Package/base-files/install
$(CP) ./files/* $(1)/ $(CP) ./files/* $(1)/
$(Package/base-files/install-key) $(Package/base-files/install-key)
$(Package/base-files/nand-support) $(Package/base-files/nand-support)
$(Package/base-files/legacy-sdcard-support)
$(Package/base-files/emmc-support)
if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \ if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \ $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
fi fi
@ -210,6 +238,10 @@ endif
$(if $(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE), \ $(if $(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE), \
rm -f $(1)/etc/banner.failsafe,) rm -f $(1)/etc/banner.failsafe,)
if [ -f $(TOPDIR)/feeds/luci/package.json ]; then \
$(CP) ./luci2/* $(1)/; \
fi
endef endef
ifneq ($(DUMP),1) ifneq ($(DUMP),1)

View File

@ -192,6 +192,15 @@ generate_network() {
EOF EOF
} }
;; ;;
ncm|\
qmi|\
mbim)
uci -q batch <<-EOF
set network.$1.proto='${protocol}'
set network.$1.pdptype='ipv4'
EOF
;;
esac esac
} }
@ -287,7 +296,7 @@ generate_static_system() {
uci -q batch <<-EOF uci -q batch <<-EOF
delete system.@system[0] delete system.@system[0]
add system system add system system
set system.@system[-1].hostname='OpenWrt' set system.@system[-1].hostname='LEDE'
set system.@system[-1].timezone='UTC' set system.@system[-1].timezone='UTC'
set system.@system[-1].ttylogin='0' set system.@system[-1].ttylogin='0'
set system.@system[-1].log_size='64' set system.@system[-1].log_size='64'
@ -296,11 +305,11 @@ generate_static_system() {
delete system.ntp delete system.ntp
set system.ntp='timeserver' set system.ntp='timeserver'
set system.ntp.enabled='1' set system.ntp.enabled='1'
set system.ntp.enable_server='0' set system.ntp.enable_server='1'
add_list system.ntp.server='ntp.aliyun.com' add_list system.ntp.server='time.apple.com'
add_list system.ntp.server='time1.cloud.tencent.com' add_list system.ntp.server='time.google.com'
add_list system.ntp.server='time.ustc.edu.cn' add_list system.ntp.server='time.windows.com'
add_list system.ntp.server='cn.pool.ntp.org' add_list system.ntp.server='time.cloudflare.com'
EOF EOF
if json_is_a system object; then if json_is_a system object; then

View File

@ -1,6 +1,5 @@
#!/bin/sh #!/usr/bin/awk -f
awk -f - $* <<EOF
function bitcount(c) { function bitcount(c) {
c=and(rshift(c, 1),0x55555555)+and(c,0x55555555) c=and(rshift(c, 1),0x55555555)+and(c,0x55555555)
c=and(rshift(c, 2),0x33333333)+and(c,0x33333333) c=and(rshift(c, 2),0x33333333)+and(c,0x33333333)
@ -11,14 +10,20 @@ function bitcount(c) {
} }
function ip2int(ip) { function ip2int(ip) {
for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x]) ret=0
n=split(ip,a,"\\.")
for (x=1;x<=n;x++)
ret=or(lshift(ret,8),a[x])
return ret return ret
} }
function int2ip(ip,ret,x) { function int2ip(ip,ret,x) {
ret=and(ip,255) ret=and(ip,255)
ip=rshift(ip,8) ip=rshift(ip,8)
for(;x<3;ret=and(ip,255)"."ret,ip=rshift(ip,8),x++); for(;x<3;x++) {
ret=and(ip,255)"."ret
ip=rshift(ip,8)
}
return ret return ret
} }
@ -44,28 +49,40 @@ BEGIN {
} }
network=and(ipaddr,netmask) network=and(ipaddr,netmask)
prefix=32-bitcount(compl32(netmask))
broadcast=or(network,compl32(netmask)) broadcast=or(network,compl32(netmask))
start=or(network,and(ip2int(ARGV[3]),compl32(netmask)))
limit=network+1
if (start<limit) start=limit
end=start+ARGV[4]
limit=or(network,compl32(netmask))-1
if (end>limit) end=limit
print "IP="int2ip(ipaddr) print "IP="int2ip(ipaddr)
print "NETMASK="int2ip(netmask) print "NETMASK="int2ip(netmask)
print "BROADCAST="int2ip(broadcast) print "BROADCAST="int2ip(broadcast)
print "NETWORK="int2ip(network) print "NETWORK="int2ip(network)
print "PREFIX="32-bitcount(compl32(netmask)) print "PREFIX="prefix
# range calculations: # range calculations:
# ipcalc <ip> <netmask> <start> <num> # ipcalc <ip> <netmask> <start> <num>
if (ARGC > 3) { if (ARGC <= 3)
print "START="int2ip(start) exit(0)
print "END="int2ip(end)
start=or(network,and(ip2int(ARGV[3]),compl32(netmask)))
limit=network+1
if (start<limit) start=limit
if (start==ipaddr) start=ipaddr+1
end=start+ARGV[4]
limit=or(network,compl32(netmask))-1
if (end>limit) end=limit
if (end==ipaddr) end=ipaddr-1
if (start>end) {
print "network ("int2ip(network)"/"prefix") too small" > "/dev/stderr"
exit(1)
} }
if (ipaddr > start && ipaddr < end) {
print "warning: ipaddr inside range - this might not be supported in future releases of Openwrt" > "/dev/stderr"
}
print "START="int2ip(start)
print "END="int2ip(end)
} }
EOF

View File

@ -48,6 +48,7 @@ boot() {
/bin/config_generate /bin/config_generate
uci_apply_defaults uci_apply_defaults
sync
# temporary hack until configd exists # temporary hack until configd exists
/sbin/reload_config /sbin/reload_config

View File

@ -29,7 +29,7 @@ load_led() {
config_get delay $1 delay "150" config_get delay $1 delay "150"
config_get message $1 message "" config_get message $1 message ""
config_get gpio $1 gpio "0" config_get gpio $1 gpio "0"
config_get inverted $1 inverted "0" config_get_bool inverted $1 inverted "0"
# execute application led trigger # execute application led trigger
[ -f "/usr/libexec/led-trigger/${trigger}" ] && { [ -f "/usr/libexec/led-trigger/${trigger}" ] && {
@ -69,6 +69,10 @@ load_led() {
return 1 return 1
} }
case "$trigger" in case "$trigger" in
"heartbeat")
echo "${inverted}" > "/sys/class/leds/${sysfs}/invert"
;;
"netdev") "netdev")
[ -n "$dev" ] && { [ -n "$dev" ] && {
echo $dev > /sys/class/leds/${sysfs}/device_name echo $dev > /sys/class/leds/${sysfs}/device_name

View File

@ -8,23 +8,33 @@ RTC_DEV=/dev/rtc0
HWCLOCK=/sbin/hwclock HWCLOCK=/sbin/hwclock
boot() { boot() {
start && exit 0 hwclock_load
local maxtime="$(find_max_time)"
local maxtime="$(maxtime)"
local curtime="$(date +%s)" local curtime="$(date +%s)"
[ $curtime -lt $maxtime ] && date -s @$maxtime if [ $curtime -lt $maxtime ]; then
date -s @$maxtime
hwclock_save
fi
} }
start() { start() {
[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -u -f $RTC_DEV hwclock_load
} }
stop() { stop() {
hwclock_save
}
hwclock_load() {
[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -u -f $RTC_DEV
}
hwclock_save(){
[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -w -u -f $RTC_DEV && \ [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -w -u -f $RTC_DEV && \
logger -t sysfixtime "saved '$(date)' to $RTC_DEV" logger -t sysfixtime "saved '$(date)' to $RTC_DEV"
} }
maxtime() { find_max_time() {
local file newest local file newest
for file in $( find /etc -type f ) ; do for file in $( find /etc -type f ) ; do

View File

@ -4,10 +4,9 @@
START=10 START=10
USE_PROCD=1 USE_PROCD=1
validate_system_section() validate_system_section() {
{
uci_load_validate system system "$1" "$2" \ uci_load_validate system system "$1" "$2" \
'hostname:string:OpenWrt' \ 'hostname:string:LEDE' \
'conloglevel:uinteger' \ 'conloglevel:uinteger' \
'buffersize:uinteger' \ 'buffersize:uinteger' \
'timezone:string:UTC' \ 'timezone:string:UTC' \
@ -23,8 +22,9 @@ system_config() {
echo "$hostname" > /proc/sys/kernel/hostname echo "$hostname" > /proc/sys/kernel/hostname
[ -z "$conloglevel" -a -z "$buffersize" ] || dmesg ${conloglevel:+-n $conloglevel} ${buffersize:+-s $buffersize} [ -z "$conloglevel" -a -z "$buffersize" ] || dmesg ${conloglevel:+-n $conloglevel} ${buffersize:+-s $buffersize}
echo "$timezone" > /tmp/TZ echo "$timezone" > /tmp/TZ
[ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/$zonename" ] && \ [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/${zonename// /_}" ] \
ln -sf "/usr/share/zoneinfo/$zonename" /tmp/localtime && rm -f /tmp/TZ && ln -sf "/usr/share/zoneinfo/${zonename// /_}" /tmp/localtime \
&& rm -f /tmp/TZ
# apply timezone to kernel # apply timezone to kernel
hwclock -u --systz hwclock -u --systz
@ -35,8 +35,7 @@ reload_service() {
config_foreach validate_system_section system system_config config_foreach validate_system_section system system_config
} }
service_triggers() service_triggers() {
{
procd_add_reload_trigger "system" procd_add_reload_trigger "system"
procd_add_validation validate_system_section procd_add_validation validate_system_section
} }

View File

@ -3,7 +3,7 @@
[ -f /etc/banner ] && cat /etc/banner [ -f /etc/banner ] && cat /etc/banner
[ -n "$FAILSAFE" ] && cat /etc/banner.failsafe [ -n "$FAILSAFE" ] && cat /etc/banner.failsafe
fgrep -sq '/ overlay ro,' /proc/mounts && { grep -Fsq '/ overlay ro,' /proc/mounts && {
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.' echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
echo 'Please try to remove files from /overlay/upper/... and reboot!' echo 'Please try to remove files from /overlay/upper/... and reboot!'
} }

View File

@ -55,7 +55,12 @@ enable() {
enabled() { enabled() {
name="$(basename "${initscript}")" name="$(basename "${initscript}")"
[ -x "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" ] name="${name##[SK][0-9][0-9]}"
{
[ -z "${START:-}" ] || [ -L "$IPKG_INSTROOT/etc/rc.d/S${START}$name" ]
} && {
[ -z "${STOP:-}" ] || [ -L "$IPKG_INSTROOT/etc/rc.d/K${STOP}$name" ]
}
} }
depends() { depends() {
@ -100,9 +105,9 @@ service_data() {
} }
service_running() { service_running() {
local service="${1:-$(basename $initscript)}" local instance="${1:-*}"
local instance="${2:-*}"
procd_running "$service" "$instance" "$@" procd_running "$(basename $initscript)" "$instance"
} }
${INIT_TRACE:+set -x} ${INIT_TRACE:+set -x}
@ -121,6 +126,7 @@ extra_command "enabled" "Check if service is started on boot"
extra_command "running" "Check if service is running" extra_command "running" "Check if service is running"
extra_command "status" "Service status" extra_command "status" "Service status"
extra_command "trace" "Start with syscall trace" extra_command "trace" "Start with syscall trace"
extra_command "info" "Dump procd service info"
. $IPKG_INSTROOT/lib/functions/procd.sh . $IPKG_INSTROOT/lib/functions/procd.sh
basescript=$(readlink "$initscript") basescript=$(readlink "$initscript")
@ -144,6 +150,13 @@ extra_command "enabled" "Check if service is started on boot"
start "$@" start "$@"
} }
info() {
json_init
json_add_string name "$(basename ${basescript:-$initscript})"
json_add_boolean verbose "1"
_procd_ubus_call list
}
stop() { stop() {
procd_lock procd_lock
stop_service "$@" stop_service "$@"

View File

@ -1,4 +1,4 @@
root::0:0:99999:7::: root:::0:99999:7:::
daemon:*:0:0:99999:7::: daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7::: ftp:*:0:0:99999:7:::
network:*:0:0:99999:7::: network:*:0:0:99999:7:::

View File

@ -8,26 +8,5 @@ alias ll='ls -alF --color=auto'
[ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; } [ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; }
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } [ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
service() {
if [ -f "/etc/init.d/$1" ]; then
/etc/init.d/$@
else
echo "Usage: service <service> [command]"
if [ -n "$1" ]; then
echo "Service "'"'"$1"'"'" not found, the following services are available:"
else
echo "The following services are available:"
fi
for F in /etc/init.d/* ; do
printf "%-30s\t%10s\t%10s\n" "$F" \
$( $($F enabled) && echo "enabled" || echo "disabled" ) \
$( [ "$(ubus call service list "{ 'verbose': true, 'name': '$(basename $F)' }" \
| jsonfilter -q -e "@['$(basename $F)'].instances[*].running" | uniq)" = "true" ] \
&& echo "running" || echo "stopped" )
done;
return 1
fi
}
[ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit" [ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit"
[ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc" [ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc"

View File

@ -1 +1,5 @@
# Defaults are configured in /etc/sysctl.d/* and can be customized in this file # Defaults are configured in /etc/sysctl.d/* and can be customized in this file
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0

View File

@ -9,6 +9,7 @@ fs.protected_hardlinks=1
fs.protected_symlinks=1 fs.protected_symlinks=1
net.core.bpf_jit_enable=1 net.core.bpf_jit_enable=1
net.core.bpf_jit_kallsyms=1
net.ipv4.conf.default.arp_ignore=1 net.ipv4.conf.default.arp_ignore=1
net.ipv4.conf.all.arp_ignore=1 net.ipv4.conf.all.arp_ignore=1

View File

@ -209,10 +209,10 @@ add_group_and_user() {
if [ -n "$rusers" ]; then if [ -n "$rusers" ]; then
local tuple oIFS="$IFS" local tuple oIFS="$IFS"
for tuple in $rusers; do for tuple in $rusers; do
local uid gid uname gname local uid gid uname gname addngroups addngroup addngname addngid
IFS=":" IFS=":"
set -- $tuple; uname="$1"; gname="$2" set -- $tuple; uname="$1"; gname="$2"; addngroups="$3"
IFS="=" IFS="="
set -- $uname; uname="$1"; uid="$2" set -- $uname; uname="$1"; uid="$2"
set -- $gname; gname="$1"; gid="$2" set -- $gname; gname="$1"; gid="$2"
@ -232,7 +232,24 @@ add_group_and_user() {
group_add_user "$gname" "$uname" group_add_user "$gname" "$uname"
fi fi
unset uid gid uname gname if [ -n "$uname" ] && [ -n "$addngroups" ]; then
oIFS="$IFS"
IFS=","
for addngroup in $addngroups ; do
IFS="="
set -- $addngroup; addngname="$1"; addngid="$2"
if [ -n "$addngid" ]; then
group_exists "$addngname" || group_add "$addngname" "$addngid"
else
group_add_next "$addngname"
fi
group_add_user "$addngname" "$uname"
done
IFS="$oIFS"
fi
unset uid gid uname gname addngroups addngroup addngname addngid
done done
fi fi
} }
@ -245,11 +262,6 @@ default_postinst() {
add_group_and_user "${pkgname}" add_group_and_user "${pkgname}"
if [ -f "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" ]; then
( . "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" )
ret=$?
fi
if [ -d "$root/rootfs-overlay" ]; then if [ -d "$root/rootfs-overlay" ]; then
cp -R $root/rootfs-overlay/. $root/ cp -R $root/rootfs-overlay/. $root/
rm -fR $root/rootfs-overlay/ rm -fR $root/rootfs-overlay/
@ -275,6 +287,11 @@ default_postinst() {
rm -f /tmp/luci-indexcache rm -f /tmp/luci-indexcache
fi fi
if [ -f "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" ]; then
( . "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" )
ret=$?
fi
local shell="$(command -v bash)" local shell="$(command -v bash)"
for i in $(grep -s "^/etc/init.d/" "$root$filelist"); do for i in $(grep -s "^/etc/init.d/" "$root$filelist"); do
if [ -n "$root" ]; then if [ -n "$root" ]; then
@ -313,6 +330,25 @@ find_mtd_part() {
echo "${INDEX:+$PREFIX$INDEX}" echo "${INDEX:+$PREFIX$INDEX}"
} }
find_mmc_part() {
local DEVNAME PARTNAME ROOTDEV
if grep -q "$1" /proc/mtd; then
echo "" && return 0
fi
if [ -n "$2" ]; then
ROOTDEV="$2"
else
ROOTDEV="mmcblk*"
fi
for DEVNAME in /sys/block/$ROOTDEV/mmcblk*p*; do
PARTNAME="$(grep PARTNAME ${DEVNAME}/uevent | cut -f2 -d'=')"
[ "$PARTNAME" = "$1" ] && echo "/dev/$(basename $DEVNAME)" && return 0
done
}
group_add() { group_add() {
local name="$1" local name="$1"
local gid="$2" local gid="$2"
@ -335,7 +371,7 @@ group_add_next() {
return return
fi fi
gids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/group) gids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/group)
gid=65536 gid=32768
while echo "$gids" | grep -q "^$gid$"; do while echo "$gids" | grep -q "^$gid$"; do
gid=$((gid + 1)) gid=$((gid + 1))
done done
@ -350,6 +386,9 @@ group_add_user() {
echo "$grp" | grep -q ":$" && delim="" echo "$grp" | grep -q ":$" && delim=""
[ -n "$IPKG_INSTROOT" ] || lock /var/lock/passwd [ -n "$IPKG_INSTROOT" ] || lock /var/lock/passwd
sed -i "s/$grp/$grp$delim$2/g" ${IPKG_INSTROOT}/etc/group sed -i "s/$grp/$grp$delim$2/g" ${IPKG_INSTROOT}/etc/group
if [ -z "$IPKG_INSTROOT" ] && [ -x /usr/sbin/selinuxenabled ] && selinuxenabled; then
restorecon /etc/group
fi
[ -n "$IPKG_INSTROOT" ] || lock -u /var/lock/passwd [ -n "$IPKG_INSTROOT" ] || lock -u /var/lock/passwd
} }
@ -363,7 +402,7 @@ user_add() {
local rc local rc
[ -z "$uid" ] && { [ -z "$uid" ] && {
uids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/passwd) uids=$(cut -d: -f3 ${IPKG_INSTROOT}/etc/passwd)
uid=65536 uid=32768
while echo "$uids" | grep -q "^$uid$"; do while echo "$uids" | grep -q "^$uid$"; do
uid=$((uid + 1)) uid=$((uid + 1))
done done

View File

@ -48,6 +48,19 @@ caldata_extract_ubi() {
caldata_die "failed to extract calibration data from $ubi" caldata_die "failed to extract calibration data from $ubi"
} }
caldata_extract_mmc() {
local part=$1
local offset=$(($2))
local count=$(($3))
local mmc_part
mmc_part=$(find_mmc_part $part)
[ -n "$mmc_part" ] || caldata_die "no mmc partition found for partition $part"
caldata_dd $mmc_part /lib/firmware/$FIRMWARE $count $offset || \
caldata_die "failed to extract calibration data from $mmc_part"
}
caldata_extract_reverse() { caldata_extract_reverse() {
local part=$1 local part=$1
local offset=$2 local offset=$2
@ -168,4 +181,4 @@ ath10k_patch_mac() {
local target=$2 local target=$2
caldata_patch_mac "$mac" 0x6 0x2 "$target" caldata_patch_mac "$mac" 0x6 0x2 "$target"
} }

View File

@ -11,6 +11,36 @@ get_dt_led_path() {
echo "$ledpath" echo "$ledpath"
} }
get_dt_led_color_func() {
local enum
local func
local idx
local label
[ -e "$1/function" ] && func=$(cat "$1/function")
[ -e "$1/color" ] && idx=$((0x$(hexdump -n 4 -e '4/1 "%02x"' "$1/color")))
[ -e "$1/function-enumerator" ] && \
enum=$((0x$(hexdump -n 4 -e '4/1 "%02x"' "$1/function-enumerator")))
[ -z "$idx" ] && [ -z "$func" ] && return 2
if [ -n "$idx" ]; then
for color in "white" "red" "green" "blue" "amber" \
"violet" "yellow" "ir" "multicolor" "rgb" \
"purple" "orange" "pink" "cyan" "lime"
do
[ $idx -eq 0 ] && label="$color" && break
idx=$((idx-1))
done
fi
label="$label:$func"
[ -n "$enum" ] && label="$label-$enum"
echo "$label"
return 0
}
get_dt_led() { get_dt_led() {
local label local label
local ledpath=$(get_dt_led_path $1) local ledpath=$(get_dt_led_path $1)
@ -18,6 +48,7 @@ get_dt_led() {
[ -n "$ledpath" ] && \ [ -n "$ledpath" ] && \
label=$(cat "$ledpath/label" 2>/dev/null) || \ label=$(cat "$ledpath/label" 2>/dev/null) || \
label=$(cat "$ledpath/chan-name" 2>/dev/null) || \ label=$(cat "$ledpath/chan-name" 2>/dev/null) || \
label=$(get_dt_led_color_func "$ledpath") || \
label=$(basename "$ledpath") label=$(basename "$ledpath")
echo "$label" echo "$label"

View File

@ -90,6 +90,13 @@ network_get_prefix6() {
__network_ifstatus "$1" "$2" "['ipv6-prefix'][0]['address','mask']" "/" __network_ifstatus "$1" "$2" "['ipv6-prefix'][0]['address','mask']" "/"
} }
# determine first IPv6 prefix assignment of given logical interface
# 1: destination variable
# 2: interface
network_get_prefix_assignment6() {
__network_ifstatus "$1" "$2" "['ipv6-prefix-assignment'][0]['address','mask']" "/"
}
# determine all IPv4 addresses of given logical interface # determine all IPv4 addresses of given logical interface
# 1: destination variable # 1: destination variable
# 2: interface # 2: interface
@ -187,6 +194,13 @@ network_get_prefixes6() {
__network_ifstatus "$1" "$2" "['ipv6-prefix'][*]['address','mask']" "/ " __network_ifstatus "$1" "$2" "['ipv6-prefix'][*]['address','mask']" "/ "
} }
# determine all IPv6 prefix assignments of given logical interface
# 1: destination variable
# 2: interface
network_get_prefix_assignments6() {
__network_ifstatus "$1" "$2" "['ipv6-prefix-assignment'][*]['address','mask']" "/ "
}
# determine IPv4 gateway of given logical interface # determine IPv4 gateway of given logical interface
# 1: destination variable # 1: destination variable
# 2: interface # 2: interface

View File

@ -61,29 +61,97 @@ find_mtd_chardev() {
echo "${INDEX:+$PREFIX$INDEX}" echo "${INDEX:+$PREFIX$INDEX}"
} }
mtd_get_mac_ascii() { get_mac_ascii() {
local mtdname="$1" local part="$1"
local key="$2" local key="$2"
local part
local mac_dirty local mac_dirty
part=$(find_mtd_part "$mtdname")
if [ -z "$part" ]; then
echo "mtd_get_mac_ascii: partition $mtdname not found!" >&2
return
fi
mac_dirty=$(strings "$part" | sed -n 's/^'"$key"'=//p') mac_dirty=$(strings "$part" | sed -n 's/^'"$key"'=//p')
# "canonicalize" mac # "canonicalize" mac
[ -n "$mac_dirty" ] && macaddr_canonicalize "$mac_dirty" [ -n "$mac_dirty" ] && macaddr_canonicalize "$mac_dirty"
} }
mtd_get_mac_text() { mtd_get_mac_ascii() {
local mtdname=$1 local mtdname="$1"
local offset=$(($2)) local key="$2"
local part local part
part=$(find_mtd_part "$mtdname")
if [ -z "$part" ]; then
echo "mtd_get_mac_ascii: partition $mtdname not found!" >&2
return
fi
get_mac_ascii "$part" "$key"
}
mtd_get_mac_encrypted_arcadyan() {
local iv="00000000000000000000000000000000"
local key="2A4B303D7644395C3B2B7053553C5200"
local mac_dirty local mac_dirty
local mtdname="$1"
local part
local size
part=$(find_mtd_part "$mtdname")
if [ -z "$part" ]; then
echo "mtd_get_mac_encrypted_arcadyan: partition $mtdname not found!" >&2
return
fi
# Config decryption and getting mac. Trying uencrypt and openssl utils.
size=$((0x$(dd if=$part skip=9 bs=1 count=4 2>/dev/null | hexdump -v -e '1/4 "%08x"')))
if [[ -f "/usr/bin/uencrypt" ]]; then
mac_dirty=$(dd if=$part bs=1 count=$size skip=$((0x100)) 2>/dev/null | \
uencrypt -d -n -k $key -i $iv | grep mac | cut -c 5-)
elif [[ -f "/usr/bin/openssl" ]]; then
mac_dirty=$(dd if=$part bs=1 count=$size skip=$((0x100)) 2>/dev/null | \
openssl aes-128-cbc -d -nopad -K $key -iv $iv | grep mac | cut -c 5-)
else
echo "mtd_get_mac_encrypted_arcadyan: Neither uencrypt nor openssl was found!" >&2
return
fi
# "canonicalize" mac
[ -n "$mac_dirty" ] && macaddr_canonicalize "$mac_dirty"
}
mtd_get_mac_encrypted_deco() {
local mtdname="$1"
if ! [ -e "$mtdname" ]; then
echo "mtd_get_mac_encrypted_deco: file $mtdname not found!" >&2
return
fi
tplink_key="3336303032384339"
key=$(dd if=$mtdname bs=1 skip=16 count=8 2>/dev/null | \
uencrypt -n -d -k $tplink_key -c des-ecb | hexdump -v -n 8 -e '1/1 "%02x"')
macaddr=$(dd if=$mtdname bs=1 skip=32 count=8 2>/dev/null | \
uencrypt -n -d -k $key -c des-ecb | hexdump -v -n 6 -e '5/1 "%02x:" 1/1 "%02x"')
echo $macaddr
}
mtd_get_mac_uci_config_ubi() {
local volumename="$1"
. /lib/upgrade/nand.sh
local ubidev=$(nand_attach_ubi $CI_UBIPART)
local part=$(nand_find_volume $ubidev $volumename)
cat "/dev/$part" | sed -n 's/^\s*option macaddr\s*'"'"'\?\([0-9A-F:]\+\)'"'"'\?/\1/Ip'
}
mtd_get_mac_text() {
local mtdname="$1"
local offset=$((${2:-0}))
local length="${3:-17}"
local part
part=$(find_mtd_part "$mtdname") part=$(find_mtd_part "$mtdname")
if [ -z "$part" ]; then if [ -z "$part" ]; then
@ -91,15 +159,9 @@ mtd_get_mac_text() {
return return
fi fi
if [ -z "$offset" ]; then [ $((offset + length)) -le $(mtd_get_part_size "$mtdname") ] || return
echo "mtd_get_mac_text: offset missing!" >&2
return
fi
mac_dirty=$(dd if="$part" bs=1 skip="$offset" count=17 2>/dev/null) macaddr_canonicalize $(dd bs=1 if="$part" skip="$offset" count="$length" 2>/dev/null)
# "canonicalize" mac
[ -n "$mac_dirty" ] && macaddr_canonicalize "$mac_dirty"
} }
mtd_get_mac_binary() { mtd_get_mac_binary() {
@ -135,6 +197,29 @@ mtd_get_part_size() {
done < /proc/mtd done < /proc/mtd
} }
mmc_get_mac_ascii() {
local part_name="$1"
local key="$2"
local part
part=$(find_mmc_part "$part_name")
if [ -z "$part" ]; then
echo "mmc_get_mac_ascii: partition $part_name not found!" >&2
return
fi
get_mac_ascii "$part" "$key"
}
mmc_get_mac_binary() {
local part_name="$1"
local offset="$2"
local part
part=$(find_mmc_part "$part_name")
get_mac_binary "$part" "$offset"
}
macaddr_add() { macaddr_add() {
local mac=$1 local mac=$1
local val=$2 local val=$2
@ -145,6 +230,14 @@ macaddr_add() {
echo $oui:$nic echo $oui:$nic
} }
macaddr_generate_from_mmc_cid() {
local mmc_dev=$1
local sd_hash=$(sha256sum /sys/class/block/$mmc_dev/device/cid)
local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd bs=1 count=12 2>/dev/null)")
echo "$(macaddr_unsetbit_mc "$(macaddr_setbit_la "${mac_base}")")"
}
macaddr_geteui() { macaddr_geteui() {
local mac=$1 local mac=$1
local sep=$2 local sep=$2
@ -224,3 +317,7 @@ macaddr_canonicalize() {
printf "%02x:%02x:%02x:%02x:%02x:%02x" 0x${canon// / 0x} 2>/dev/null printf "%02x:%02x:%02x:%02x:%02x:%02x" 0x${canon// / 0x} 2>/dev/null
} }
dt_is_enabled() {
grep -q okay "/proc/device-tree/$1/status"
}

View File

@ -96,7 +96,7 @@ ucidef_set_interfaces_lan_wan() {
ucidef_set_bridge_device() { ucidef_set_bridge_device() {
json_select_object bridge json_select_object bridge
json_add_string name "${1:switch0}" json_add_string name "${1:-switch0}"
json_select .. json_select ..
} }
@ -418,6 +418,15 @@ ucidef_set_led_default() {
json_select .. json_select ..
} }
ucidef_set_led_heartbeat() {
_ucidef_set_led_common "$1" "$2" "$3"
json_add_string trigger heartbeat
json_select ..
json_select ..
}
ucidef_set_led_gpio() { ucidef_set_led_gpio() {
local gpio="$4" local gpio="$4"
local inverted="$5" local inverted="$5"
@ -629,6 +638,21 @@ ucidef_set_ntpserver() {
json_select .. json_select ..
} }
ucidef_add_wlan() {
local path="$1"; shift
ucidef_wlan_idx=${ucidef_wlan_idx:-0}
json_select_object wlan
json_select_object "wl$ucidef_wlan_idx"
json_add_string path "$path"
json_add_fields "$@"
json_select ..
json_select ..
ucidef_wlan_idx="$((ucidef_wlan_idx + 1))"
}
board_config_update() { board_config_update() {
json_init json_init
[ -f ${CFG} ] && json_load "$(cat ${CFG})" [ -f ${CFG} ] && json_load "$(cat ${CFG})"

View File

@ -18,6 +18,9 @@ preinit_ip_config() {
fi fi
ip link set dev $netdev up ip link set dev $netdev up
if [ -n "$vid" ]; then
ip link set dev $1 up
fi
ip -4 address add $pi_ip/$pi_netmask broadcast $pi_broadcast dev $1 ip -4 address add $pi_ip/$pi_netmask broadcast $pi_broadcast dev $1
} }
@ -91,6 +94,8 @@ preinit_config_board() {
else else
# trim any vlan ids # trim any vlan ids
ifname=${ifname%\.*} ifname=${ifname%\.*}
# trim any vlan modifiers like :t
ifname=${ifname%\:*}
fi fi
pi_ifname=$ifname pi_ifname=$ifname

View File

@ -40,35 +40,39 @@ fs_wait_for_key () {
rm -f $keypress_wait rm -f $keypress_wait
} & } &
[ "$pi_preinit_no_failsafe" != "y" ] && echo "Press the [$1] key and hit [enter] $2" local consoles="$(sed -e 's/ /\n/g' /proc/cmdline | grep '^console=' | sed -e 's/^console=//' -e 's/,.*//')"
echo "Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level" [ -n "$consoles" ] || consoles=console
# if we're on the console we wait for input for console in $consoles; do
{ [ -c "/dev/$console" ] || continue
while [ -r $keypress_wait ]; do [ "$pi_preinit_no_failsafe" != "y" ] && echo "Press the [$1] key and hit [enter] $2" > "/dev/$console"
timer="$(cat $keypress_sec)" echo "Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level" > "/dev/$console"
{
while [ -r $keypress_wait ]; do
timer="$(cat $keypress_sec)"
[ -n "$timer" ] || timer=1 [ -n "$timer" ] || timer=1
timer="${timer%%\ *}" timer="${timer%%\ *}"
[ $timer -ge 1 ] || timer=1 [ $timer -ge 1 ] || timer=1
do_keypress="" do_keypress=""
{ {
read -t "$timer" do_keypress read -t "$timer" do_keypress < "/dev/$console"
case "$do_keypress" in case "$do_keypress" in
$1) $1)
echo "true" >$keypress_true echo "true" >$keypress_true
;; ;;
1 | 2 | 3 | 4) 1 | 2 | 3 | 4)
echo "$do_keypress" >/tmp/debug_level echo "$do_keypress" >/tmp/debug_level
;; ;;
*) *)
continue; continue;
;; ;;
esac esac
lock -u $keypress_wait lock -u $keypress_wait
rm -f $keypress_wait rm -f $keypress_wait
} }
done done
} } &
done
lock -w $keypress_wait lock -w $keypress_wait
keypressed=1 keypressed=1

View File

@ -9,7 +9,7 @@ missing_lines() {
IFS=":" IFS=":"
while read line; do while read line; do
set -- $line set -- $line
grep -q "^$1:" "$file2" || echo "$*" grep -q "^$1:" "$file2" || echo "$line"
done < "$file1" done < "$file1"
IFS="$oIFS" IFS="$oIFS"
} }
@ -17,6 +17,7 @@ missing_lines() {
do_mount_root() { do_mount_root() {
mount_root mount_root
boot_run_hook preinit_mount_root boot_run_hook preinit_mount_root
[ ! -f /etc/bench.log ] && touch /etc/bench.log
[ -f /sysupgrade.tgz -o -f /tmp/sysupgrade.tar ] && { [ -f /sysupgrade.tgz -o -f /tmp/sysupgrade.tar ] && {
echo "- config restore -" echo "- config restore -"
cp /etc/passwd /etc/group /etc/shadow /tmp cp /etc/passwd /etc/group /etc/shadow /tmp

View File

@ -2,13 +2,14 @@
# Copyright (C) 2010 Vertical Communications # Copyright (C) 2010 Vertical Communications
failsafe_shell() { failsafe_shell() {
local console="$(sed -e 's/ /\n/g' /proc/cmdline | grep '^console=' | head -1 | sed -e 's/^console=//' -e 's/,.*//')" local consoles="$(sed -e 's/ /\n/g' /proc/cmdline | grep '^console=' | sed -e 's/^console=//' -e 's/,.*//')"
[ -n "$console" ] || console=console [ -n "$consoles" ] || consoles=console
[ -c "/dev/$console" ] || return 0 for console in $consoles; do
while true; do [ -c "/dev/$console" ] && while true; do
ash --login <"/dev/$console" >"/dev/$console" 2>"/dev/$console" ash --login <"/dev/$console" >"/dev/$console" 2>"/dev/$console"
sleep 1 sleep 1
done & done &
done
} }
boot_hook_add failsafe failsafe_shell boot_hook_add failsafe failsafe_shell

View File

@ -65,16 +65,9 @@ _v() {
[ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$*" >&2 [ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$*" >&2
} }
_vn() {
[ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo -n "$*" >&2
}
v() { v() {
_v "$(date) upgrade: $@" _v "$(date) upgrade: $@"
} logger -p info -t upgrade "$@"
vn() {
_vn "$(date) upgrade: $@"
} }
json_string() { json_string() {
@ -95,8 +88,7 @@ get_image() { # <source> [ <command> ]
if [ -z "$cmd" ]; then if [ -z "$cmd" ]; then
local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')" local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')"
case "$magic" in case "$magic" in
1f8b) cmd="zcat";; 1f8b) cmd="busybox zcat";;
425a) cmd="bzcat";;
*) cmd="cat";; *) cmd="cat";;
esac esac
fi fi
@ -135,6 +127,33 @@ get_magic_fat32() {
(get_image "$@" | dd bs=1 count=5 skip=82) 2>/dev/null (get_image "$@" | dd bs=1 count=5 skip=82) 2>/dev/null
} }
identify_magic_long() {
local magic=$1
case "$magic" in
"55424923")
echo "ubi"
;;
"31181006")
echo "ubifs"
;;
"68737173")
echo "squashfs"
;;
"d00dfeed")
echo "fit"
;;
"4349"*)
echo "combined"
;;
"1f8b"*)
echo "gzip"
;;
*)
echo "unknown $magic"
;;
esac
}
part_magic_efi() { part_magic_efi() {
local magic=$(get_magic_gpt "$@") local magic=$(get_magic_gpt "$@")
[ "$magic" = "EFI PART" ] [ "$magic" = "EFI PART" ]
@ -146,6 +165,23 @@ part_magic_fat() {
[ "$magic" = "FAT" ] || [ "$magic_fat32" = "FAT32" ] [ "$magic" = "FAT" ] || [ "$magic_fat32" = "FAT32" ]
} }
fitblk_get_bootdev() {
[ -e /sys/firmware/devicetree/base/chosen/rootdisk ] || return
local rootdisk="$(cat /sys/firmware/devicetree/base/chosen/rootdisk)"
local handle bootdev
for handle in /sys/class/block/*/of_node/phandle /sys/class/block/*/device/of_node/phandle; do
[ ! -e "$handle" ] && continue
if [ "$rootdisk" = "$(cat $handle)" ]; then
bootdev="${handle%/of_node/phandle}"
bootdev="${bootdev%/device}"
bootdev="${bootdev#/sys/class/block/}"
echo "$bootdev"
break
fi
done
}
export_bootdevice() { export_bootdevice() {
local cmdline uuid blockdev uevent line class local cmdline uuid blockdev uevent line class
local MAJOR MINOR DEVNAME DEVTYPE local MAJOR MINOR DEVNAME DEVTYPE
@ -163,9 +199,11 @@ export_bootdevice() {
fi fi
done done
;; ;;
PARTUUID=????????-????-????-????-??????????0?/PARTNROFF=1 | \
PARTUUID=????????-????-????-????-??????????02) PARTUUID=????????-????-????-????-??????????02)
uuid="${rootpart#PARTUUID=}" uuid="${rootpart#PARTUUID=}"
uuid="${uuid%02}00" uuid="${uuid%/PARTNROFF=1}"
uuid="${uuid%0?}00"
for disk in $(find /dev -type b); do for disk in $(find /dev -type b); do
set -- $(dd if=$disk bs=1 skip=568 count=16 2>/dev/null | hexdump -v -e '8/1 "%02x "" "2/1 "%02x""-"6/1 "%02x"') set -- $(dd if=$disk bs=1 skip=568 count=16 2>/dev/null | hexdump -v -e '8/1 "%02x "" "2/1 "%02x""-"6/1 "%02x"')
if [ "$4$3$2$1-$6$5-$8$7-$9" = "$uuid" ]; then if [ "$4$3$2$1-$6$5-$8$7-$9" = "$uuid" ]; then
@ -175,6 +213,7 @@ export_bootdevice() {
done done
;; ;;
/dev/*) /dev/*)
[ "$rootpart" = "/dev/fit0" ] && rootpart="$(fitblk_get_bootdev)"
uevent="/sys/class/block/${rootpart##*/}/../uevent" uevent="/sys/class/block/${rootpart##*/}/../uevent"
;; ;;
0x[a-f0-9][a-f0-9][a-f0-9] | 0x[a-f0-9][a-f0-9][a-f0-9][a-f0-9] | \ 0x[a-f0-9][a-f0-9][a-f0-9] | 0x[a-f0-9][a-f0-9][a-f0-9][a-f0-9] | \
@ -211,7 +250,7 @@ export_partdevice() {
while read line; do while read line; do
export -n "$line" export -n "$line"
done < "$uevent" done < "$uevent"
if [ $BOOTDEV_MAJOR = $MAJOR -a $(($BOOTDEV_MINOR + $offset)) = $MINOR -a -b "/dev/$DEVNAME" ]; then if [ "$BOOTDEV_MAJOR" = "$MAJOR" -a $(($BOOTDEV_MINOR + $offset)) = "$MINOR" -a -b "/dev/$DEVNAME" ]; then
export "$var=$DEVNAME" export "$var=$DEVNAME"
return 0 return 0
fi fi
@ -228,15 +267,6 @@ hex_le32_to_cpu() {
echo "$@" echo "$@"
} }
get_partition_by_name() {
for partname in /sys/class/block/$1/*/name; do
[ "$(cat ${partname})" = "$2" ] && {
basename ${partname%%/name}
break
}
done
}
get_partitions() { # <device> <filename> get_partitions() { # <device> <filename>
local disk="$1" local disk="$1"
local filename="$2" local filename="$2"
@ -262,7 +292,7 @@ get_partitions() { # <device> <filename>
local type="$1" local type="$1"
local lba="$(( $(hex_le32_to_cpu $4) * 0x100000000 + $(hex_le32_to_cpu $3) ))" local lba="$(( $(hex_le32_to_cpu $4) * 0x100000000 + $(hex_le32_to_cpu $3) ))"
local end="$(( $(hex_le32_to_cpu $6) * 0x100000000 + $(hex_le32_to_cpu $5) ))" local end="$(( $(hex_le32_to_cpu $6) * 0x100000000 + $(hex_le32_to_cpu $5) ))"
local num="$(( $end - $lba ))" local num="$(( $end - $lba + 1 ))"
[ "$type" = "00000000000000000000000000000000" ] && continue [ "$type" = "00000000000000000000000000000000" ] && continue

View File

@ -0,0 +1,67 @@
# Copyright (C) 2021 OpenWrt.org
#
. /lib/functions.sh
emmc_upgrade_tar() {
local tar_file="$1"
[ "$CI_KERNPART" -a -z "$EMMC_KERN_DEV" ] && export EMMC_KERN_DEV="$(find_mmc_part $CI_KERNPART $CI_ROOTDEV)"
[ "$CI_ROOTPART" -a -z "$EMMC_ROOT_DEV" ] && export EMMC_ROOT_DEV="$(find_mmc_part $CI_ROOTPART $CI_ROOTDEV)"
[ "$CI_DATAPART" -a -z "$EMMC_DATA_DEV" ] && export EMMC_DATA_DEV="$(find_mmc_part $CI_DATAPART $CI_ROOTDEV)"
local has_kernel
local has_rootfs
local board_dir=$(tar tf "$tar_file" | grep -m 1 '^sysupgrade-.*/$')
board_dir=${board_dir%/}
tar tf "$tar_file" ${board_dir}/kernel 1>/dev/null 2>/dev/null && has_kernel=1
tar tf "$tar_file" ${board_dir}/root 1>/dev/null 2>/dev/null && has_rootfs=1
[ "$has_kernel" = 1 -a "$EMMC_KERN_DEV" ] &&
export EMMC_KERNEL_BLOCKS=$(($(tar xf "$tar_file" ${board_dir}/kernel -O | dd of="$EMMC_KERN_DEV" bs=512 2>&1 | grep "records out" | cut -d' ' -f1)))
[ "$has_rootfs" = 1 -a "$EMMC_ROOT_DEV" ] && {
export EMMC_ROOTFS_BLOCKS=$(($(tar xf "$tar_file" ${board_dir}/root -O | dd of="$EMMC_ROOT_DEV" bs=512 2>&1 | grep "records out" | cut -d' ' -f1)))
# Account for 64KiB ROOTDEV_OVERLAY_ALIGN in libfstools
EMMC_ROOTFS_BLOCKS=$(((EMMC_ROOTFS_BLOCKS + 127) & ~127))
}
if [ -z "$UPGRADE_BACKUP" ]; then
if [ "$EMMC_DATA_DEV" ]; then
dd if=/dev/zero of="$EMMC_DATA_DEV" bs=512 count=8
elif [ "$EMMC_ROOTFS_BLOCKS" ]; then
dd if=/dev/zero of="$EMMC_ROOT_DEV" bs=512 seek=$EMMC_ROOTFS_BLOCKS count=8
elif [ "$EMMC_KERNEL_BLOCKS" ]; then
dd if=/dev/zero of="$EMMC_KERN_DEV" bs=512 seek=$EMMC_KERNEL_BLOCKS count=8
fi
fi
}
emmc_upgrade_fit() {
local fit_file="$1"
[ "$CI_KERNPART" -a -z "$EMMC_KERN_DEV" ] && export EMMC_KERN_DEV="$(find_mmc_part $CI_KERNPART $CI_ROOTDEV)"
if [ "$EMMC_KERN_DEV" ]; then
export EMMC_KERNEL_BLOCKS=$(($(get_image "$fit_file" | fwtool -i /dev/null -T - | dd of="$EMMC_KERN_DEV" bs=512 2>&1 | grep "records out" | cut -d' ' -f1)))
[ -z "$UPGRADE_BACKUP" ] && dd if=/dev/zero of="$EMMC_KERN_DEV" bs=512 seek=$EMMC_KERNEL_BLOCKS count=8
fi
}
emmc_copy_config() {
if [ "$EMMC_DATA_DEV" ]; then
dd if="$UPGRADE_BACKUP" of="$EMMC_DATA_DEV" bs=512
elif [ "$EMMC_ROOTFS_BLOCKS" ]; then
dd if="$UPGRADE_BACKUP" of="$EMMC_ROOT_DEV" bs=512 seek=$EMMC_ROOTFS_BLOCKS
elif [ "$EMMC_KERNEL_BLOCKS" ]; then
dd if="$UPGRADE_BACKUP" of="$EMMC_KERN_DEV" bs=512 seek=$EMMC_KERNEL_BLOCKS
fi
}
emmc_do_upgrade() {
local file_type=$(identify_magic_long "$(get_magic_long "$1")")
case "$file_type" in
"fit") emmc_upgrade_fit $1;;
*) emmc_upgrade_tar $1;;
esac
}

View File

@ -71,6 +71,7 @@ fwtool_check_image() {
# minor compat version -> sysupgrade with -n required # minor compat version -> sysupgrade with -n required
if [ "${devicecompat#.*}" != "${imagecompat#.*}" ] && [ "$SAVE_CONFIG" = "1" ]; then if [ "${devicecompat#.*}" != "${imagecompat#.*}" ] && [ "$SAVE_CONFIG" = "1" ]; then
[ "$IGNORE_MINOR_COMPAT" = 1 ] && return 0
v "The device is supported, but the config is incompatible to the new image ($devicecompat->$imagecompat). Please upgrade without keeping config (sysupgrade -n)." v "The device is supported, but the config is incompatible to the new image ($devicecompat->$imagecompat). Please upgrade without keeping config (sysupgrade -n)."
[ -n "$compatmessage" ] && v "$compatmessage" [ -n "$compatmessage" ] && v "$compatmessage"
return 1 return 1

View File

@ -0,0 +1,91 @@
legacy_sdcard_check_image() {
local file="$1"
local diskdev partdev diff
export_bootdevice && export_partdevice diskdev 0 || {
v "Unable to determine upgrade device"
return 1
}
get_partitions "/dev/$diskdev" bootdisk
v "Extract boot sector from the image"
get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b
get_partitions /tmp/image.bs image
#compare tables
diff="$(grep -F -x -v -f /tmp/partmap.bootdisk /tmp/partmap.image)"
rm -f /tmp/image.bs /tmp/partmap.bootdisk /tmp/partmap.image
if [ -n "$diff" ]; then
v "Partition layout has changed. Full image will be written."
ask_bool 0 "Abort" && exit 1
return 0
fi
}
legacy_sdcard_do_upgrade() {
local board=$(board_name)
local diskdev partdev diff
export_bootdevice && export_partdevice diskdev 0 || {
v "Unable to determine upgrade device"
return 1
}
sync
if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
get_partitions "/dev/$diskdev" bootdisk
v "Extract boot sector from the image"
get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b
get_partitions /tmp/image.bs image
#compare tables
diff="$(grep -F -x -v -f /tmp/partmap.bootdisk /tmp/partmap.image)"
else
diff=1
fi
if [ -n "$diff" ]; then
get_image_dd "$1" of="/dev/$diskdev" bs=4096 conv=fsync
# Separate removal and addtion is necessary; otherwise, partition 1
# will be missing if it overlaps with the old partition 2
partx -d - "/dev/$diskdev"
partx -a - "/dev/$diskdev"
else
v "Writing bootloader to /dev/$diskdev"
get_image_dd "$1" of="$diskdev" bs=512 skip=1 seek=1 count=2048 conv=fsync
#iterate over each partition from the image and write it to the boot disk
while read part start size; do
if export_partdevice partdev $part; then
v "Writing image to /dev/$partdev..."
get_image_dd "$1" of="/dev/$partdev" ibs="512" obs=1M skip="$start" count="$size" conv=fsync
else
v "Unable to find partition $part device, skipped."
fi
done < /tmp/partmap.image
v "Writing new UUID to /dev/$diskdev..."
get_image_dd "$1" of="/dev/$diskdev" bs=1 skip=440 count=4 seek=440 conv=fsync
fi
sleep 1
}
legacy_sdcard_copy_config() {
local partdev
if export_partdevice partdev 1; then
mkdir -p /boot
[ -f /boot/kernel.img ] || mount -o rw,noatime /dev/$partdev /boot
cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
sync
umount /boot
fi
}

View File

@ -7,6 +7,8 @@
CI_KERNPART="${CI_KERNPART:-kernel}" CI_KERNPART="${CI_KERNPART:-kernel}"
# 'ubi' partition on NAND contains UBI # 'ubi' partition on NAND contains UBI
# There are also CI_KERN_UBIPART and CI_ROOT_UBIPART if kernel
# and rootfs are on separated UBIs.
CI_UBIPART="${CI_UBIPART:-ubi}" CI_UBIPART="${CI_UBIPART:-ubi}"
# 'rootfs' UBI volume on NAND contains the rootfs # 'rootfs' UBI volume on NAND contains the rootfs
@ -26,7 +28,7 @@ ubi_mknod() {
nand_find_volume() { nand_find_volume() {
local ubidevdir ubivoldir local ubidevdir ubivoldir
ubidevdir="/sys/devices/virtual/ubi/$1" ubidevdir="/sys/class/ubi/"
[ ! -d "$ubidevdir" ] && return 1 [ ! -d "$ubidevdir" ] && return 1
for ubivoldir in $ubidevdir/${1}_*; do for ubivoldir in $ubidevdir/${1}_*; do
[ ! -d "$ubivoldir" ] && continue [ ! -d "$ubivoldir" ] && continue
@ -39,13 +41,12 @@ nand_find_volume() {
} }
nand_find_ubi() { nand_find_ubi() {
local ubidevdir ubidev mtdnum local ubidevdir ubidev mtdnum cmtdnum
mtdnum="$( find_mtd_index $1 )" mtdnum="$( find_mtd_index $1 )"
[ ! "$mtdnum" ] && return 1 [ ! "$mtdnum" ] && return 1
for ubidevdir in /sys/devices/virtual/ubi/ubi*; do for ubidevdir in /sys/class/ubi/ubi*; do
[ ! -d "$ubidevdir" ] && continue [ ! -e "$ubidevdir/mtd_num" ] && continue
cmtdnum="$( cat $ubidevdir/mtd_num )" cmtdnum="$( cat $ubidevdir/mtd_num )"
[ ! "$mtdnum" ] && continue
if [ "$mtdnum" = "$cmtdnum" ]; then if [ "$mtdnum" = "$cmtdnum" ]; then
ubidev=$( basename $ubidevdir ) ubidev=$( basename $ubidevdir )
ubi_mknod "$ubidevdir" ubi_mknod "$ubidevdir"
@ -56,128 +57,175 @@ nand_find_ubi() {
} }
nand_get_magic_long() { nand_get_magic_long() {
dd if="$1" skip=$2 bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"' (${3}cat "$1" | dd bs=4 "skip=${2:-0}" count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2> /dev/null
} }
get_magic_long_tar() { get_magic_long_tar() {
( tar xf $1 $2 -O | dd bs=4 count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2> /dev/null (tar xO${3}f "$1" "$2" | dd bs=4 count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2> /dev/null
} }
identify_magic() {
local magic=$1
case "$magic" in
"55424923")
echo "ubi"
;;
"31181006")
echo "ubifs"
;;
"68737173")
echo "squashfs"
;;
"d00dfeed")
echo "fit"
;;
"4349"*)
echo "combined"
;;
*)
echo "unknown $magic"
;;
esac
}
identify() { identify() {
identify_magic $(nand_get_magic_long "$1" "${2:-0}") identify_magic_long $(nand_get_magic_long "$@")
} }
identify_tar() { identify_tar() {
identify_magic $(get_magic_long_tar "$1" "$2") identify_magic_long $(get_magic_long_tar "$@")
}
identify_if_gzip() {
if [ "$(identify "$1")" = gzip ]; then echo -n z; fi
} }
nand_restore_config() { nand_restore_config() {
sync local ubidev=$( nand_find_ubi "${CI_ROOT_UBIPART:-$CI_UBIPART}" )
local ubidev=$( nand_find_ubi $CI_UBIPART )
local ubivol="$( nand_find_volume $ubidev rootfs_data )" local ubivol="$( nand_find_volume $ubidev rootfs_data )"
[ ! "$ubivol" ] && if [ ! "$ubivol" ]; then
ubivol="$( nand_find_volume $ubidev $CI_ROOTPART )" ubivol="$( nand_find_volume $ubidev "$CI_ROOTPART" )"
if [ ! "$ubivol" ]; then
echo "cannot find ubifs data volume"
return 1
fi
fi
mkdir /tmp/new_root mkdir /tmp/new_root
if ! mount -t ubifs /dev/$ubivol /tmp/new_root; then if ! mount -t ubifs /dev/$ubivol /tmp/new_root; then
echo "mounting ubifs $ubivol failed" echo "cannot mount ubifs volume $ubivol"
rmdir /tmp/new_root rmdir /tmp/new_root
return 1 return 1
fi fi
mv "$1" "/tmp/new_root/$BACKUP_FILE" if mv "$1" "/tmp/new_root/$BACKUP_FILE"; then
umount /tmp/new_root if umount /tmp/new_root; then
sync echo "configuration saved"
rmdir /tmp/new_root
return 0
fi
else
umount /tmp/new_root
fi
echo "could not save configuration to ubifs volume $ubivol"
rmdir /tmp/new_root rmdir /tmp/new_root
return 1
}
nand_remove_ubiblock() {
local ubivol="$1"
local ubiblk="ubiblock${ubivol:3}"
if [ -e "/dev/$ubiblk" ]; then
umount "/dev/$ubiblk" && echo "unmounted /dev/$ubiblk" || :
if ! ubiblock -r "/dev/$ubivol"; then
echo "cannot remove $ubiblk"
return 1
fi
fi
}
nand_attach_ubi() {
local ubipart="$1"
local has_env="${2:-0}"
local mtdnum="$( find_mtd_index "$ubipart" )"
if [ ! "$mtdnum" ]; then
>&2 echo "cannot find ubi mtd partition $ubipart"
return 1
fi
local ubidev="$( nand_find_ubi "$ubipart" )"
if [ ! "$ubidev" ]; then
>&2 ubiattach -m "$mtdnum"
ubidev="$( nand_find_ubi "$ubipart" )"
if [ ! "$ubidev" ]; then
>&2 ubiformat /dev/mtd$mtdnum -y
>&2 ubiattach -m "$mtdnum"
ubidev="$( nand_find_ubi "$ubipart" )"
if [ ! "$ubidev" ]; then
>&2 echo "cannot attach ubi mtd partition $ubipart"
return 1
fi
if [ "$has_env" -gt 0 ]; then
>&2 ubimkvol /dev/$ubidev -n 0 -N ubootenv -s 1MiB
>&2 ubimkvol /dev/$ubidev -n 1 -N ubootenv2 -s 1MiB
fi
fi
fi
echo "$ubidev"
return 0
}
nand_detach_ubi() {
local ubipart="$1"
local mtdnum="$( find_mtd_index "$ubipart" )"
if [ ! "$mtdnum" ]; then
echo "cannot find ubi mtd partition $ubipart"
return 1
fi
local ubidev="$( nand_find_ubi "$ubipart" )"
if [ "$ubidev" ]; then
for ubivol in $(find /dev -name "${ubidev}_*" -maxdepth 1 | sort); do
ubivol="${ubivol:5}"
nand_remove_ubiblock "$ubivol" || :
umount "/dev/$ubivol" && echo "unmounted /dev/$ubivol" || :
done
if ! ubidetach -m "$mtdnum"; then
echo "cannot detach ubi mtd partition $ubipart"
return 1
fi
fi
} }
nand_upgrade_prepare_ubi() { nand_upgrade_prepare_ubi() {
local rootfs_length="$1" local rootfs_length="$1"
local rootfs_type="$2" local rootfs_type="$2"
local rootfs_data_max="$(fw_printenv -n rootfs_data_max 2>/dev/null)" local rootfs_data_max="$(fw_printenv -n rootfs_data_max 2> /dev/null)"
[ -n "$rootfs_data_max" ] && rootfs_data_max=$((rootfs_data_max)) [ -n "$rootfs_data_max" ] && rootfs_data_max=$((rootfs_data_max))
local kernel_length="$3" local kernel_length="$3"
local has_env="${4:-0}" local has_env="${4:-0}"
local kern_ubidev
local root_ubidev
[ -n "$rootfs_length" -o -n "$kernel_length" ] || return 1 [ -n "$rootfs_length" -o -n "$kernel_length" ] || return 1
local mtdnum="$( find_mtd_index "$CI_UBIPART" )" if [ -n "$CI_KERN_UBIPART" -a -n "$CI_ROOT_UBIPART" ]; then
if [ ! "$mtdnum" ]; then kern_ubidev="$( nand_attach_ubi "$CI_KERN_UBIPART" "$has_env" )"
echo "cannot find ubi mtd partition $CI_UBIPART" [ -n "$kern_ubidev" ] || return 1
return 1 root_ubidev="$( nand_attach_ubi "$CI_ROOT_UBIPART" )"
[ -n "$root_ubidev" ] || return 1
else
kern_ubidev="$( nand_attach_ubi "$CI_UBIPART" "$has_env" )"
[ -n "$kern_ubidev" ] || return 1
root_ubidev="$kern_ubidev"
fi fi
local ubidev="$( nand_find_ubi "$CI_UBIPART" )" local kern_ubivol="$( nand_find_volume $kern_ubidev "$CI_KERNPART" )"
if [ ! "$ubidev" ]; then local root_ubivol="$( nand_find_volume $root_ubidev "$CI_ROOTPART" )"
ubiattach -m "$mtdnum" local data_ubivol="$( nand_find_volume $root_ubidev rootfs_data )"
sync [ "$root_ubivol" = "$kern_ubivol" ] && root_ubivol=
ubidev="$( nand_find_ubi "$CI_UBIPART" )"
fi
if [ ! "$ubidev" ]; then # remove ubiblocks
ubiformat /dev/mtd$mtdnum -y [ "$kern_ubivol" ] && { nand_remove_ubiblock $kern_ubivol || return 1; }
ubiattach -m "$mtdnum" [ "$root_ubivol" ] && { nand_remove_ubiblock $root_ubivol || return 1; }
sync [ "$data_ubivol" ] && { nand_remove_ubiblock $data_ubivol || return 1; }
ubidev="$( nand_find_ubi "$CI_UBIPART" )"
[ "$has_env" -gt 0 ] && {
ubimkvol /dev/$ubidev -n 0 -N ubootenv -s 1MiB
ubimkvol /dev/$ubidev -n 1 -N ubootenv2 -s 1MiB
}
fi
local kern_ubivol="$( nand_find_volume $ubidev $CI_KERNPART )"
local root_ubivol="$( nand_find_volume $ubidev $CI_ROOTPART )"
local data_ubivol="$( nand_find_volume $ubidev rootfs_data )"
local ubiblk ubiblkvol
for ubiblk in /dev/ubiblock*_? ; do
[ -e "$ubiblk" ] || continue
echo "removing ubiblock${ubiblk:13}"
ubiblkvol=ubi${ubiblk:13}
if ! ubiblock -r /dev/$ubiblkvol; then
echo "cannot remove $ubiblk"
return 1
fi
done
# kill volumes # kill volumes
[ "$kern_ubivol" ] && ubirmvol /dev/$ubidev -N $CI_KERNPART || true [ "$kern_ubivol" ] && ubirmvol /dev/$kern_ubidev -N "$CI_KERNPART" || :
[ "$root_ubivol" -a "$root_ubivol" != "$kern_ubivol" ] && ubirmvol /dev/$ubidev -N $CI_ROOTPART || true [ "$root_ubivol" ] && ubirmvol /dev/$root_ubidev -N "$CI_ROOTPART" || :
[ "$data_ubivol" ] && ubirmvol /dev/$ubidev -N rootfs_data || true [ "$data_ubivol" ] && ubirmvol /dev/$root_ubidev -N rootfs_data || :
# update kernel # create kernel vol
if [ -n "$kernel_length" ]; then if [ -n "$kernel_length" ]; then
if ! ubimkvol /dev/$ubidev -N $CI_KERNPART -s $kernel_length; then if ! ubimkvol /dev/$kern_ubidev -N "$CI_KERNPART" -s $kernel_length; then
echo "cannot create kernel volume" echo "cannot create kernel volume"
return 1; return 1;
fi fi
fi fi
# update rootfs # create rootfs vol
if [ -n "$rootfs_length" ]; then if [ -n "$rootfs_length" ]; then
local rootfs_size_param local rootfs_size_param
if [ "$rootfs_type" = "ubifs" ]; then if [ "$rootfs_type" = "ubifs" ]; then
@ -185,157 +233,224 @@ nand_upgrade_prepare_ubi() {
else else
rootfs_size_param="-s $rootfs_length" rootfs_size_param="-s $rootfs_length"
fi fi
if ! ubimkvol /dev/$ubidev -N $CI_ROOTPART $rootfs_size_param; then if ! ubimkvol /dev/$root_ubidev -N "$CI_ROOTPART" $rootfs_size_param; then
echo "cannot create rootfs volume" echo "cannot create rootfs volume"
return 1; return 1;
fi fi
fi fi
# create rootfs_data for non-ubifs rootfs # create rootfs_data vol for non-ubifs rootfs
if [ "$rootfs_type" != "ubifs" ]; then if [ "$rootfs_type" != "ubifs" ]; then
local availeb=$(cat /sys/devices/virtual/ubi/$ubidev/avail_eraseblocks)
local ebsize=$(cat /sys/devices/virtual/ubi/$ubidev/eraseblock_size)
local avail_size=$((availeb * ebsize))
local rootfs_data_size_param="-m" local rootfs_data_size_param="-m"
if [ -n "$rootfs_data_max" ] && if [ -n "$rootfs_data_max" ]; then
[ "$rootfs_data_max" != "0" ] &&
[ "$rootfs_data_max" -le "$avail_size" ]; then
rootfs_data_size_param="-s $rootfs_data_max" rootfs_data_size_param="-s $rootfs_data_max"
fi fi
if ! ubimkvol /dev/$ubidev -N rootfs_data $rootfs_data_size_param; then if ! ubimkvol /dev/$root_ubidev -N rootfs_data $rootfs_data_size_param; then
echo "cannot initialize rootfs_data volume" if ! ubimkvol /dev/$root_ubidev -N rootfs_data -m; then
return 1 echo "cannot initialize rootfs_data volume"
return 1
fi
fi fi
fi fi
sync
return 0 return 0
} }
nand_do_upgrade_success() { # Write the UBI image to MTD ubi partition
local conf_tar="/tmp/sysupgrade.tgz"
sync
[ -f "$conf_tar" ] && nand_restore_config "$conf_tar"
echo "sysupgrade successful"
umount -a
reboot -f
}
# Flash the UBI image to MTD partition
nand_upgrade_ubinized() { nand_upgrade_ubinized() {
local ubi_file="$1" local ubi_file="$1"
local mtdnum="$(find_mtd_index "$CI_UBIPART")" local gz="$2"
[ ! "$mtdnum" ] && { local ubi_length=$( (${gz}cat "$ubi_file" | wc -c) 2> /dev/null)
CI_UBIPART="rootfs"
mtdnum="$(find_mtd_index "$CI_UBIPART")"
}
if [ ! "$mtdnum" ]; then nand_detach_ubi "$CI_UBIPART" || return 1
echo "cannot find mtd device $CI_UBIPART"
umount -a
reboot -f
fi
local mtddev="/dev/mtd${mtdnum}" local mtdnum="$( find_mtd_index "$CI_UBIPART" )"
ubidetach -p "${mtddev}" || true ${gz}cat "$ubi_file" | ubiformat "/dev/mtd$mtdnum" -S "$ubi_length" -y -f - && ubiattach -m "$mtdnum"
sync
ubiformat "${mtddev}" -y -f "${ubi_file}"
ubiattach -p "${mtddev}"
nand_do_upgrade_success
} }
# Write the UBIFS image to UBI volume # Write the UBIFS image to UBI rootfs volume
nand_upgrade_ubifs() { nand_upgrade_ubifs() {
local rootfs_length=$( (cat $1 | wc -c) 2> /dev/null) local ubifs_file="$1"
local gz="$2"
nand_upgrade_prepare_ubi "$rootfs_length" "ubifs" "" "" local ubifs_length=$( (${gz}cat "$ubifs_file" | wc -c) 2> /dev/null)
nand_upgrade_prepare_ubi "$ubifs_length" "ubifs" "" "" || return 1
local ubidev="$( nand_find_ubi "$CI_UBIPART" )" local ubidev="$( nand_find_ubi "$CI_UBIPART" )"
local root_ubivol="$(nand_find_volume $ubidev $CI_ROOTPART)" local root_ubivol="$(nand_find_volume $ubidev "$CI_ROOTPART")"
ubiupdatevol /dev/$root_ubivol -s $rootfs_length $1 ${gz}cat "$ubifs_file" | ubiupdatevol /dev/$root_ubivol -s "$ubifs_length" -
nand_do_upgrade_success
} }
# Write the FIT image to UBI kernel volume
nand_upgrade_fit() { nand_upgrade_fit() {
local fit_file="$1" local fit_file="$1"
local fit_length="$(wc -c < "$fit_file")" local gz="$2"
nand_upgrade_prepare_ubi "" "" "$fit_length" "1" local fit_length=$( (${gz}cat "$fit_file" | wc -c) 2> /dev/null)
nand_upgrade_prepare_ubi "" "" "$fit_length" "1" || return 1
local fit_ubidev="$(nand_find_ubi "$CI_UBIPART")" local fit_ubidev="$(nand_find_ubi "$CI_UBIPART")"
local fit_ubivol="$(nand_find_volume $fit_ubidev "$CI_KERNPART")" local fit_ubivol="$(nand_find_volume $fit_ubidev "$CI_KERNPART")"
ubiupdatevol /dev/$fit_ubivol -s $fit_length $fit_file ${gz}cat "$fit_file" | ubiupdatevol /dev/$fit_ubivol -s "$fit_length" -
nand_do_upgrade_success
} }
# Write images in the TAR file to MTD partitions and/or UBI volumes as required
nand_upgrade_tar() { nand_upgrade_tar() {
local tar_file="$1" local tar_file="$1"
local kernel_mtd="$(find_mtd_index $CI_KERNPART)" local gz="$2"
local jffs2_markers="${CI_JFFS2_CLEAN_MARKERS:-0}"
local board_dir=$(tar tf "$tar_file" | grep -m 1 '^sysupgrade-.*/$') # WARNING: This fails if tar contains more than one 'sysupgrade-*' directory.
board_dir=${board_dir%/} local board_dir="$(tar t${gz}f "$tar_file" | grep -m 1 '^sysupgrade-.*/$')"
board_dir="${board_dir%/}"
kernel_length=$( (tar xf "$tar_file" ${board_dir}/kernel -O | wc -c) 2> /dev/null) local kernel_mtd kernel_length
local has_rootfs=0 if [ "$CI_KERNPART" != "none" ]; then
local rootfs_length kernel_mtd="$(find_mtd_index "$CI_KERNPART")"
kernel_length=$( (tar xO${gz}f "$tar_file" "$board_dir/kernel" | wc -c) 2> /dev/null)
[ "$kernel_length" = 0 ] && kernel_length=
fi
local rootfs_length=$( (tar xO${gz}f "$tar_file" "$board_dir/root" | wc -c) 2> /dev/null)
[ "$rootfs_length" = 0 ] && rootfs_length=
local rootfs_type local rootfs_type
[ "$rootfs_length" ] && rootfs_type="$(identify_tar "$tar_file" "$board_dir/root" "$gz")"
tar tf "$tar_file" ${board_dir}/root 1>/dev/null 2>/dev/null && has_rootfs=1 local ubi_kernel_length
[ "$has_rootfs" = "1" ] && { if [ "$kernel_length" ]; then
rootfs_length=$( (tar xf "$tar_file" ${board_dir}/root -O | wc -c) 2> /dev/null) if [ "$kernel_mtd" ]; then
rootfs_type="$(identify_tar "$tar_file" ${board_dir}/root)" # On some devices, the raw kernel and ubi partitions overlap.
} # These devices brick if the kernel partition is erased.
# Hence only invalidate kernel for now.
dd if=/dev/zero bs=4096 count=1 2> /dev/null | \
mtd write - "$CI_KERNPART"
else
ubi_kernel_length="$kernel_length"
fi
fi
local has_kernel=1
local has_env=0 local has_env=0
nand_upgrade_prepare_ubi "$rootfs_length" "$rootfs_type" "$ubi_kernel_length" "$has_env" || return 1
[ "$kernel_length" != 0 -a -n "$kernel_mtd" ] && { if [ "$rootfs_length" ]; then
tar xf "$tar_file" ${board_dir}/kernel -O | mtd write - $CI_KERNPART local ubidev="$( nand_find_ubi "${CI_ROOT_UBIPART:-$CI_UBIPART}" )"
} local root_ubivol="$( nand_find_volume $ubidev "$CI_ROOTPART" )"
[ "$kernel_length" = 0 -o ! -z "$kernel_mtd" ] && has_kernel= tar xO${gz}f "$tar_file" "$board_dir/root" | \
ubiupdatevol /dev/$root_ubivol -s "$rootfs_length" -
fi
if [ "$kernel_length" ]; then
if [ "$kernel_mtd" ]; then
if [ "$jffs2_markers" = 1 ]; then
flash_erase -j "/dev/mtd${kernel_mtd}" 0 0
tar xO${gz}f "$tar_file" "$board_dir/kernel" | \
nandwrite "/dev/mtd${kernel_mtd}" -
else
tar xO${gz}f "$tar_file" "$board_dir/kernel" | \
mtd write - "$CI_KERNPART"
fi
else
local ubidev="$( nand_find_ubi "${CI_KERN_UBIPART:-$CI_UBIPART}" )"
local kern_ubivol="$( nand_find_volume $ubidev "$CI_KERNPART" )"
tar xO${gz}f "$tar_file" "$board_dir/kernel" | \
ubiupdatevol /dev/$kern_ubivol -s "$kernel_length" -
fi
fi
nand_upgrade_prepare_ubi "$rootfs_length" "$rootfs_type" "${has_kernel:+$kernel_length}" "$has_env" return 0
}
local ubidev="$( nand_find_ubi "$CI_UBIPART" )" nand_verify_if_gzip_file() {
[ "$has_kernel" = "1" ] && { local file="$1"
local kern_ubivol="$( nand_find_volume $ubidev $CI_KERNPART )" local gz="$2"
tar xf "$tar_file" ${board_dir}/kernel -O | \
ubiupdatevol /dev/$kern_ubivol -s $kernel_length -
}
[ "$has_rootfs" = "1" ] && { if [ "$gz" = z ]; then
local root_ubivol="$( nand_find_volume $ubidev $CI_ROOTPART )" echo "verifying compressed sysupgrade file integrity"
tar xf "$tar_file" ${board_dir}/root -O | \ if ! gzip -t "$file"; then
ubiupdatevol /dev/$root_ubivol -s $rootfs_length - echo "corrupted compressed sysupgrade file"
} return 1
nand_do_upgrade_success fi
fi
}
nand_verify_tar_file() {
local file="$1"
local gz="$2"
echo "verifying sysupgrade tar file integrity"
if ! tar xO${gz}f "$file" > /dev/null; then
echo "corrupted sysupgrade tar file"
return 1
fi
}
nand_do_flash_file() {
local file="$1"
local gz="$(identify_if_gzip "$file")"
local file_type="$(identify "$file" "" "$gz")"
[ ! "$(find_mtd_index "$CI_UBIPART")" ] && CI_UBIPART=rootfs
case "$file_type" in
"fit")
nand_verify_if_gzip_file "$file" "$gz" || return 1
nand_upgrade_fit "$file" "$gz"
;;
"ubi")
nand_verify_if_gzip_file "$file" "$gz" || return 1
nand_upgrade_ubinized "$file" "$gz"
;;
"ubifs")
nand_verify_if_gzip_file "$file" "$gz" || return 1
nand_upgrade_ubifs "$file" "$gz"
;;
*)
nand_verify_tar_file "$file" "$gz" || return 1
nand_upgrade_tar "$file" "$gz"
;;
esac
}
nand_do_restore_config() {
local conf_tar="/tmp/sysupgrade.tgz"
[ ! -f "$conf_tar" ] || nand_restore_config "$conf_tar"
} }
# Recognize type of passed file and start the upgrade process # Recognize type of passed file and start the upgrade process
nand_do_upgrade() { nand_do_upgrade() {
local file_type=$(identify $1) local file="$1"
[ ! "$(find_mtd_index "$CI_UBIPART")" ] && CI_UBIPART="rootfs" sync
nand_do_flash_file "$file" && nand_do_upgrade_success
case "$file_type" in nand_do_upgrade_failed
"fit") nand_upgrade_fit $1;;
"ubi") nand_upgrade_ubinized $1;;
"ubifs") nand_upgrade_ubifs $1;;
*) nand_upgrade_tar $1;;
esac
} }
# Check if passed file is a valid one for NAND sysupgrade. Currently it accepts nand_do_upgrade_success() {
# 3 types of files: if nand_do_restore_config && sync; then
# 1) UBI - should contain an ubinized image, header is checked for the proper echo "sysupgrade successful"
# MAGIC umount -a
# 2) UBIFS - should contain UBIFS partition that will replace "rootfs" volume, reboot -f
# header is checked for the proper MAGIC fi
# 3) TAR - archive has to include "sysupgrade-BOARD" directory with a non-empty nand_do_upgrade_failed
# "CONTROL" file (at this point its content isn't verified) }
nand_do_upgrade_failed() {
sync
echo "sysupgrade failed"
# Should we reboot or bring up some failsafe mode instead?
umount -a
reboot -f
}
# Check if passed file is a valid one for NAND sysupgrade.
# Currently it accepts 4 types of files:
# 1) UBI: a ubinized image containing required UBI volumes.
# 2) UBIFS: a UBIFS rootfs volume image.
# 3) FIT: a FIT image containing kernel and rootfs.
# 4) TAR: an archive that includes directory "sysupgrade-${BOARD_NAME}" containing
# a non-empty "CONTROL" file and required partition and/or volume images.
# #
# You usually want to call this function in platform_check_image. # You usually want to call this function in platform_check_image.
# #
@ -343,14 +458,25 @@ nand_do_upgrade() {
# $(2): file to be checked # $(2): file to be checked
nand_do_platform_check() { nand_do_platform_check() {
local board_name="$1" local board_name="$1"
local tar_file="$2" local file="$2"
local control_length=$( (tar xf $tar_file sysupgrade-$board_name/CONTROL -O | wc -c) 2> /dev/null)
local file_type="$(identify $2)"
[ "$control_length" = 0 -a "$file_type" != "ubi" -a "$file_type" != "ubifs" -a "$file_type" != "fit" ] && { local gz="$(identify_if_gzip "$file")"
echo "Invalid sysupgrade file." local file_type="$(identify "$file" "" "$gz")"
return 1 local control_length=$( (tar xO${gz}f "$file" "sysupgrade-${board_name//,/_}/CONTROL" | wc -c) 2> /dev/null)
}
if [ "$control_length" = 0 ]; then
control_length=$( (tar xO${gz}f "$file" "sysupgrade-${board_name//_/,}/CONTROL" | wc -c) 2> /dev/null)
fi
if [ "$control_length" != 0 ]; then
nand_verify_tar_file "$file" "$gz" || return 1
else
nand_verify_if_gzip_file "$file" "$gz" || return 1
if [ "$file_type" != "fit" -a "$file_type" != "ubi" -a "$file_type" != "ubifs" ]; then
echo "invalid sysupgrade file"
return 1
fi
fi
return 0 return 0
} }

View File

@ -39,20 +39,26 @@ switch_to_ramfs() {
for binary in \ for binary in \
/bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount \ /bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount \
pivot_root mount_root reboot sync kill sleep \ pivot_root mount_root reboot sync kill sleep \
md5sum hexdump cat zcat bzcat dd tar \ md5sum hexdump cat zcat dd tar gzip \
ls basename find cp mv rm mkdir rmdir mknod touch chmod \ ls basename find cp mv rm mkdir rmdir mknod touch chmod \
'[' printf wc grep awk sed cut \ '[' printf wc grep awk sed cut sort tail \
mtd partx losetup mkfs.ext4 nandwrite flash_erase \ mtd partx losetup mkfs.ext4 nandwrite flash_erase \
ubiupdatevol ubiattach ubiblock ubiformat \ ubiupdatevol ubiattach ubiblock ubiformat \
ubidetach ubirsvol ubirmvol ubimkvol \ ubidetach ubirsvol ubirmvol ubimkvol \
snapshot snapshot_tool date \ snapshot snapshot_tool date logger \
/usr/sbin/fw_printenv /usr/bin/fwtool \
$RAMFS_COPY_LOSETUP $RAMFS_COPY_LVM \ $RAMFS_COPY_LOSETUP $RAMFS_COPY_LVM \
$RAMFS_COPY_BIN $RAMFS_COPY_BIN
do do
local file="$(command -v "$binary" 2>/dev/null)" local file="$(command -v "$binary" 2>/dev/null)"
[ -n "$file" ] && install_bin "$file" [ -n "$file" ] && install_bin "$file"
done done
install_file /etc/resolv.conf /lib/*.sh /lib/functions/*.sh /lib/upgrade/*.sh /lib/upgrade/do_stage2 /usr/share/libubox/jshn.sh $RAMFS_COPY_DATA install_file /etc/resolv.conf /lib/*.sh /lib/functions/*.sh \
/lib/upgrade/*.sh /lib/upgrade/do_stage2 \
/usr/share/libubox/jshn.sh /usr/sbin/fw_setenv \
/etc/fw_env.config $RAMFS_COPY_DATA
mkdir -p $RAM_ROOT/var/lock
[ -L "/lib64" ] && ln -s /lib $RAM_ROOT/lib64 [ -L "/lib64" ] && ln -s /lib $RAM_ROOT/lib64
@ -64,6 +70,10 @@ switch_to_ramfs() {
/bin/mount -o remount,ro /mnt /bin/mount -o remount,ro /mnt
/bin/umount -l /mnt /bin/umount -l /mnt
grep -e "^/dev/dm-.*" -e "^/dev/loop.*" /proc/mounts | while read bdev mp _r; do
umount $mp
done
[ "$RAMFS_COPY_LOSETUP" ] && losetup -D [ "$RAMFS_COPY_LOSETUP" ] && losetup -D
[ "$RAMFS_COPY_LVM" ] && { [ "$RAMFS_COPY_LVM" ] && {
mkdir -p /tmp/lvm/cache mkdir -p /tmp/lvm/cache
@ -85,7 +95,7 @@ kill_remaining() { # [ <signal> [ <loop> ] ]
local stat local stat
local proc_ppid=$(cut -d' ' -f4 /proc/$$/stat) local proc_ppid=$(cut -d' ' -f4 /proc/$$/stat)
vn "Sending $sig to remaining processes ..." v "Sending $sig to remaining processes ..."
while $run; do while $run; do
run=false run=false
@ -93,45 +103,62 @@ kill_remaining() { # [ <signal> [ <loop> ] ]
[ -f "$stat" ] || continue [ -f "$stat" ] || continue
local pid name state ppid rest local pid name state ppid rest
read pid name state ppid rest < $stat read pid rest < $stat
name="${name#(}"; name="${name%)}" name="${rest#\(}" ; rest="${name##*\) }" ; name="${name%\)*}"
set -- $rest ; state="$1" ; ppid="$2"
# Skip PID1, our parent, ourself and our children # Skip PID1, our parent, ourself and our children
[ $pid -ne 1 -a $pid -ne $proc_ppid -a $pid -ne $$ -a $ppid -ne $$ ] || continue [ $pid -ne 1 -a $pid -ne $proc_ppid -a $pid -ne $$ -a $ppid -ne $$ ] || continue
[ -f "/proc/$pid/cmdline" ] || continue
local cmdline local cmdline
read cmdline < /proc/$pid/cmdline read cmdline < /proc/$pid/cmdline
# Skip kernel threads # Skip kernel threads
[ -n "$cmdline" ] || continue [ -n "$cmdline" ] || continue
_vn " $name" v "Sending signal $sig to $name ($pid)"
kill -$sig $pid 2>/dev/null kill -$sig $pid 2>/dev/null
[ $loop -eq 1 ] && run=true [ $loop -eq 1 ] && sleep 2 && run=true
done done
let loop_limit-- let loop_limit--
[ $loop_limit -eq 0 ] && { [ $loop_limit -eq 0 ] && {
_v
v "Failed to kill all processes." v "Failed to kill all processes."
exit 1 exit 1
} }
done done
_v
} }
indicate_upgrade indicate_upgrade
killall -9 telnetd while read -r a b c; do
killall -9 dropbear case "$a" in
killall -9 ash MemT*) mem="$b" ;; esac
done < /proc/meminfo
[ "$mem" -gt 32768 ] && \
skip_services="dnsmasq log network"
for service in /etc/init.d/*; do
service=${service##*/}
case " $skip_services " in
*" $service "*) continue ;; esac
ubus call service delete '{ "name": "'"$service"'" }' 2>/dev/null
done
killall -9 telnetd 2>/dev/null
killall -9 dropbear 2>/dev/null
killall -9 ash 2>/dev/null
kill_remaining TERM kill_remaining TERM
sleep 3 sleep 4
kill_remaining KILL 1 kill_remaining KILL 1
sleep 1 sleep 6
echo 3 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches

View File

@ -19,6 +19,7 @@ export CONF_IMAGE=
export CONF_BACKUP_LIST=0 export CONF_BACKUP_LIST=0
export CONF_BACKUP= export CONF_BACKUP=
export CONF_RESTORE= export CONF_RESTORE=
export IGNORE_MINOR_COMPAT=0
export NEED_IMAGE= export NEED_IMAGE=
export HELP=0 export HELP=0
export FORCE=0 export FORCE=0
@ -44,6 +45,7 @@ while [ -n "$1" ]; do
-F|--force) export FORCE=1;; -F|--force) export FORCE=1;;
-T|--test) export TEST=1;; -T|--test) export TEST=1;;
-h|--help) export HELP=1; break;; -h|--help) export HELP=1; break;;
--ignore-minor-compat-version) export IGNORE_MINOR_COMPAT=1;;
-*) -*)
echo "Invalid option: $1" >&2 echo "Invalid option: $1" >&2
exit 1 exit 1
@ -80,6 +82,8 @@ upgrade-option:
Verify image and config .tar.gz but do not actually flash. Verify image and config .tar.gz but do not actually flash.
-F | --force -F | --force
Flash image even if image checks fail, this is dangerous! Flash image even if image checks fail, this is dangerous!
--ignore-minor-compat-version
Flash image even if the minor compat version is incompatible.
-q less verbose -q less verbose
-v more verbose -v more verbose
-h | --help display this help -h | --help display this help

Some files were not shown because too many files have changed in this diff Show More