openwrt/staging/wigyori.git
7 months agokernel: bump 6.6 to 6.6.29
John Audia [Sun, 28 Apr 2024 06:25:30 +0000 (02:25 -0400)]
kernel: bump 6.6 to 6.6.29

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.29

Removed upstreamed:
generic/backport-6.6/740-v6.9-01-netfilter-flowtable-validate-pppoe-header.patch[1]
generic/backport-6.6/740-v6.9-02-netfilter-flowtable-incorrect-pppoe-tuple.patch[2]
generic/backport-6.6/790-29-v6.9-net-dsa-mt7530-fix-improper-frames-on-all-25MHz-and-.patch[3]
generic/backport-6.6/790-31-v6.10-net-dsa-mt7530-fix-enabling-EEE-on-MT7531-switch-on-.patch[4]
generic/backport-6.6/790-34-v6.10-net-dsa-mt7530-fix-mirroring-frames-received-on-loca.patch[5]
generic/backport-6.6/790-35-v6.10-net-dsa-mt7530-fix-port-mirroring-for-MT7988-SoC-swi.patch[6]
mediatek/patches-6.6/963-net-ethernet-mtk_eth_soc-fix-WED-wifi-reset.patch[7]

Manually rebased:
generic/backport-6.6/790-23-v6.9-net-dsa-mt7530-get-rid-of-priv-info-cpu_port_config.patch

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=a2471d271042ea18e8a6babc132a8716bb2f08b9
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=4ed82dd368ad883dc4284292937b882f044e625d
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=21b9d89d93422221cdda1b82fd075fa3c94a11d9
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=bd41ee1efd478852a0882ce5f136bc2b5e83eff2
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=d1be3960539249a8690ed09a29d0e3bf34189dd2
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=f8de1b6208bf71bd3102548d33dd8475573ad2ea
7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=6855f724f19620c3ddff57c349e0abba797475b1

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>
7 months agombedtls: Update to version 3.6.0
Hauke Mehrtens [Wed, 8 Nov 2023 23:00:09 +0000 (00:00 +0100)]
mbedtls: Update to version 3.6.0

This adds support for mbedtls 3.6.0.
The 3.6 version is the next LTS version of mbedtls.
This version supports TLS 1.3.

This switches to download using git. The codeload tar file misses some
git submodules.

Add some extra options added in mbedtls 3.6.0.

The size of the compressed ipkg increases:
230933 bin/packages/mips_24kc/base/libmbedtls13_2.28.7-r2_mips_24kc.ipk
300154 bin/packages/mips_24kc/base/libmbedtls14_3.6.0-r1_mips_24kc.ipk

The removed patch was integrated upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agohostapd: Fix compile against mbedtsl 3.6
Hauke Mehrtens [Mon, 8 Apr 2024 20:06:08 +0000 (22:06 +0200)]
hostapd: Fix compile against mbedtsl 3.6

Fix compile of the mbedtls extension for hostapd.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agouencrypt: Fix mbedtls 3.6 compatibility
Hauke Mehrtens [Sun, 7 Apr 2024 20:47:26 +0000 (22:47 +0200)]
uencrypt: Fix mbedtls 3.6 compatibility

This makes it compile with mbedtls 3.6.0.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agouencrypt: Fix compile warnings
Hauke Mehrtens [Sun, 7 Apr 2024 20:46:13 +0000 (22:46 +0200)]
uencrypt: Fix compile warnings

keylen and ivlen are of type long and not size_t.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agoat91: 5.15: remove old config and patch files
Nick Hainke [Mon, 22 Apr 2024 08:16:11 +0000 (10:16 +0200)]
at91: 5.15: remove old config and patch files

6.1 is now default so remove old config and patch files.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agoat91: set 6.1 as default kernel version
Nick Hainke [Mon, 22 Apr 2024 08:18:02 +0000 (10:18 +0200)]
at91: set 6.1 as default kernel version

Adjust the kernel version to default 6.1 in order to facilitate testing
for a broader audience.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agozynq: 6.1: set testing kernel
Nick Hainke [Wed, 17 Apr 2024 15:25:44 +0000 (17:25 +0200)]
zynq: 6.1: set testing kernel

Allow selecting 6.1 as testing kernel on zynq.

Tested-by: Luis Araneda <luaraneda@gmail.com> # Zybo Z7-20
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agozynq: 6.1: refresh kernel config
Nick Hainke [Wed, 17 Apr 2024 15:28:49 +0000 (17:28 +0200)]
zynq: 6.1: refresh kernel config

Refresh the kernel config by runnnig make kernel_menuconfig.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel/zynq: Restore kernel files for v5.15
Nick Hainke [Wed, 17 Apr 2024 15:23:47 +0000 (17:23 +0200)]
kernel/zynq: Restore kernel files for v5.15

This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel/zynq: Create kernel files for v6.1 (from v5.15)
Nick Hainke [Wed, 17 Apr 2024 15:23:47 +0000 (17:23 +0200)]
kernel/zynq: Create kernel files for v6.1 (from v5.15)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agouboot-mvebu: backport patch for Turris Omnia to enable LTO
Josef Schlehofer [Sun, 28 Apr 2024 07:24:29 +0000 (09:24 +0200)]
uboot-mvebu: backport patch for Turris Omnia to enable LTO

Fixes issue while building package uboot-mvebu on OpenWrt 23.05:

u-boot-with-spl.kwb exceeds file size limit:
  limit:  0xf0000 bytes
  actual: 0xf0100 bytes
  excess: 0x100 bytes
make[3]: *** [Makefile:1466: u-boot-with-spl.kwb] Error 1
make[3]: *** Deleting file 'u-boot-with-spl.kwb'
make[3]: Leaving directory '/workspaces/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/u-boot-omnia/u-boot-2024.04'
make[2]: *** [Makefile:83: /workspaces/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/u-boot-omnia/u-boot-2024.04/.built] Error 2

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15307
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq40xx: refresh patches again
Robert Marko [Sun, 28 Apr 2024 09:00:58 +0000 (11:00 +0200)]
ipq40xx: refresh patches again

CI tells us that we need to, so lets refresh them.

Fixes: 4265fe9348c0 ("ipq40xx: refresh patches")
Link: https://github.com/openwrt/openwrt/pull/15310
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/network/utils/iptables: fix PKG_CPE_ID
Fabrice Fontaine [Sat, 27 Apr 2024 15:25:58 +0000 (17:25 +0200)]
package/network/utils/iptables: fix PKG_CPE_ID

cpe:/a:netfilter:iptables is the correct CPE ID for iptables:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:netfilter:iptables

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15297
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/libs/libjson-c: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 15:47:24 +0000 (17:47 +0200)]
package/libs/libjson-c: fix PKG_CPE_ID

cpe:/a:json-c:json-c is the correct CPE ID for libjson-c:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:json-c:json-c

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15292
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agopackage/network/services/dropbear: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 14:09:32 +0000 (16:09 +0200)]
package/network/services/dropbear: fix PKG_CPE_ID

cpe:/a:dropbear_ssh_project:dropbear_ssh is the correct CPE ID for dropbear:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:dropbear_ssh_project:dropbear_ssh

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15290
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools/expat: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 09:24:41 +0000 (11:24 +0200)]
tools/expat: fix PKG_CPE_ID

cpe:/a:libexpat_project:libexpat is the correct CPE ID for expat:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:libexpat:libexpat

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15291
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq-wifi: correct PKG_MIRROR_HASH
Robert Marko [Sat, 27 Apr 2024 13:46:58 +0000 (15:46 +0200)]
ipq-wifi: correct PKG_MIRROR_HASH

It seems that somehow a wrong hash has been used for ipq-wifi, so refresh
it.

Fixes: f10d55df9e0a ("ipq-wifi: update to Git HEAD (2024-04-26)")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq40xx: refresh patches
Robert Marko [Sat, 27 Apr 2024 13:44:57 +0000 (15:44 +0200)]
ipq40xx: refresh patches

CI tells us that we need to, so lets refresh them.

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agonetifd: packet_steering: fix shell error on unset steering_flows option
Felix Fietkau [Sat, 27 Apr 2024 18:59:43 +0000 (20:59 +0200)]
netifd: packet_steering: fix shell error on unset steering_flows option

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agonetifd: fix bogus warnings in packet_steering init script
Felix Fietkau [Sat, 27 Apr 2024 18:57:00 +0000 (20:57 +0200)]
netifd: fix bogus warnings in packet_steering init script

Avoids warnings if options are unset

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: update fraglist GRO patch to the latest upstream submission
Felix Fietkau [Sat, 27 Apr 2024 18:34:53 +0000 (20:34 +0200)]
kernel: update fraglist GRO patch to the latest upstream submission

Cosmetic fixes + IPv6 NAT support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: fix crash with multicast-to-unicast and fraglist GRO
Felix Fietkau [Sat, 27 Apr 2024 18:32:59 +0000 (20:32 +0200)]
kernel: fix crash with multicast-to-unicast and fraglist GRO

Avoid calls to skb_copy, which creates invalid packets that cause a crash
on segmentation

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agogeneric: v6.1, v6.6: add patch to fix PHY-muxing on MT7530
Daniel Golle [Sat, 27 Apr 2024 12:05:30 +0000 (13:05 +0100)]
generic: v6.1, v6.6: add patch to fix PHY-muxing on MT7530

Move accepted patches to backport folder, re-add previously removed patch
which caused havoc on MT7621 and add the (still pending) fix.

Fixes: d40691a5fb ("generic: 6.1, 6.6: mt7530: import pending patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: generic backport 6.1: rename mistyped .patch file
Antonio Flores [Fri, 26 Apr 2024 23:16:04 +0000 (19:16 -0400)]
kernel: generic backport 6.1: rename mistyped .patch file

Rename mistyped file .patc to patch

Fixes: ac8bfe316b ("generic: 6.1, 6.6: mt7530: import accepted patches")
Signed-off-by: Antonio Flores <antflores627@gmail.com>
7 months agoubox: update to Git HEAD (2024-04-26)
Robert Marko [Sat, 27 Apr 2024 09:56:14 +0000 (11:56 +0200)]
ubox: update to Git HEAD (2024-04-26)

85f1053019ca kmodloader: fix insmod path logic

Signed-off-by: Robert Marko <robimarko@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15288
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agobcm4908: set kernel 6.6 as a testing version
Mieczyslaw Nalewaj [Fri, 19 Apr 2024 06:34:20 +0000 (08:34 +0200)]
bcm4908: set kernel 6.6 as a testing version

Add kernel 6.6 for testing.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agobcm4908: remove 5.15 support
Mieczyslaw Nalewaj [Fri, 19 Apr 2024 06:31:00 +0000 (08:31 +0200)]
bcm4908: remove 5.15 support

Now that 6.1 is default, remove 5.15 support.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agolldpd: fix reload bug: advertisements shall default to on
Paul Donald [Mon, 22 Apr 2024 13:17:33 +0000 (15:17 +0200)]
lldpd: fix reload bug: advertisements shall default to on

Because these capability advertisements default to on in lldpd, they
became absent at reload, and not restart, due to how the reload logic
works ( keep daemon running, send unconfigured and then the new config
via socket ), and it was not evident unless you happened to be looking
for it (e.g. via pcap or tcpdump). It was also not evident from the
manpage ( have now sent patches upstream ).

At reload time, the unconfigure logic disabled them unless they were
explicitly enabled (compare with other settings where 'unconfigure' just
resets them). Now they default to on/enabled at init time, and are
explicitly 'unconfigure'd at startup if the user disables them via:

lldp_mgmt_addr_advertisements=0
lldp_capability_advertisements=0

In other words: explicit is necessary to disable the advertisements.

The same applies to 'configure system capabilities enabled'. Technically
'unconfigure'd is the default but now it is explicit at reload.

Tested on: 23.05.3

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
7 months agotoolchain/nasm: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:41:15 +0000 (10:41 +0200)]
toolchain/nasm: fix PKG_CPE_ID

cpe:/a:nasm:netwide_assembler is the correct CPE ID for nasm:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:nasm:netwide_assembler

Fixes: bcf02c5d3123a99c717ca33f1d7c6250acf0f33f (toolchain: assign PKG_CPE_ID)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agotools/flex: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:51:16 +0000 (10:51 +0200)]
tools/flex: fix PKG_CPE_ID

cpe:/a:westes:flex is the correct CPE ID for flex:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:westes:flex

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agotools/zlib: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 08:59:58 +0000 (10:59 +0200)]
tools/zlib: fix PKG_CPE_ID

cpe:/a:zlib:zlib is the correct CPE ID for zlib:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:zlib:zlib

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agopackage/libs/pcre2: fix PKG_CPE_ID
Fabrice Fontaine [Fri, 26 Apr 2024 13:09:50 +0000 (15:09 +0200)]
package/libs/pcre2: fix PKG_CPE_ID

cpe:/a:pcre:pcre2 is the correct CPE ID for pcre2:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:pcre:pcre2

Fixes: c39b0646f3f2d96d40f601209859175af8537b6d (pcre2: import pcre2 from packages feed)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 months agoqualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
Ulrich Stark [Thu, 25 Apr 2024 11:17:53 +0000 (13:17 +0200)]
qualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
For this particualar device we get random MAC's for Wifi on each (re-)boot.
This is because art partition/pre caldata do not contain valid MAC addresses.

As we have now a new/better approach with ath11k_patch_mac we can use it for
this device too.

I'm using this approach for like two weeks and its working flawlessly.

Signed-off-by: Ulrich Stark <pwned-pixel@posteo.de>
qualcommax: IPQ807x: ZyXEL NBG7815: Fix random Wifi MAC
Changing order to 3/phy0/5G-1, 2/phy1/2G, 4/phy2/5G-2.

Signed-off-by: Ulrich Stark <pwned-pixel@posteo.de>
7 months agoustp: update to Git HEAD (2023-05-29)
Paul Donald [Tue, 23 Apr 2024 02:28:38 +0000 (04:28 +0200)]
ustp: update to Git HEAD (2023-05-29)

a85a5bc83bde netif_utils: correctly close fd on read error

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
7 months agoipq40xx: fix USB on Aruba AP-303H
Ryan Salsbury [Sat, 27 Apr 2024 00:27:36 +0000 (17:27 -0700)]
ipq40xx: fix USB on Aruba AP-303H

Enable USB 3.0 controller, disable USB 2.0 controller.

The USB 2.0 port on the AP-303H is actually connected to the USB 3.0
controller's HS phy. Enable the HS phy only, since the SS lanes are not
brought out to the connector.

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
7 months agoipq40xx: use nvmem ethernet MACs on Aruba AP-303H
Ryan Salsbury [Sat, 27 Apr 2024 00:35:58 +0000 (17:35 -0700)]
ipq40xx: use nvmem ethernet MACs on Aruba AP-303H

Use NVMEM to assign "factory sticker" MAC address to WAN ethernet
interface. Set LAN address to sticker + 1.

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
7 months agogeneric: 6.1, 6.6: remove patch which breaks WAN on MT7621
Daniel Golle [Sat, 27 Apr 2024 02:19:03 +0000 (03:19 +0100)]
generic: 6.1, 6.6: remove patch which breaks WAN on MT7621

Importing pending patch "net: dsa: mt7530: move MT753X_MTRAP operations
for MT7530" broke WAN connectivity on most MT7621 which use PHY-muxing
to hook up either port 0 or port 4 to GMAC1.

Remove it for now until the author submits a fixed version.

Fixes: https://github.com/openwrt/openwrt/issues/15279
Fixes: https://github.com/openwrt/openwrt/issues/15273
Fixes: d40691a5fb ("generic: 6.1, 6.6: mt7530: import pending patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: move mv88e6xxx fix to generic backports
Stijn Tintel [Fri, 26 Apr 2024 16:40:17 +0000 (19:40 +0300)]
kernel: move mv88e6xxx fix to generic backports

The backports introduced in commit d40756563c46 ("kernel: backport
phylink changes from mainline Linux") broke the mv88e6xxx DSA driver.
A backport to fix this was added to the kirkwood target, but as it is
used in multiple targets, and there's a kmod package for it, the fix
should be in generic backports.

This fixes the switch on the WatchGuard Firebox M300 when running the
6.1 testing kernel.

There is no need to backport the fix for the 6.6 kernel, as it was
included in 6.6.5.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 months agoperf: fix build on PowerPC
Stijn Tintel [Fri, 26 Apr 2024 11:41:28 +0000 (14:41 +0300)]
perf: fix build on PowerPC

Building perf's intel-pt-decoder fails on both PPC32 and PPC64:

/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-13.2.0_musl/lib/gcc/powerpc64-openwrt-linux-musl/13.2.0/../../../../powerpc64-openwrt-linux-musl/bin/ld.bfd:
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/
perf-target-powerpc64_e5500_musl/perf-in.o: in function `insn_set_byte':
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/perf/util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:64:
undefined reference to `__le32_to_cpu'

Add NO_AUXTRACE=1 to MAKE_FLAGS for LINUX_KARCH powerpc, which disables
build of intel-pt-decoder on both PPC32 and PPC64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 months agoipq-wifi: update to Git HEAD (2024-04-26)
Christian Marangi [Fri, 26 Apr 2024 11:28:09 +0000 (13:28 +0200)]
ipq-wifi: update to Git HEAD (2024-04-26)

fab9e29f6b92 ipq6018: update regdb in TPLink EAP610-Outdoor BDF
6d02b65fadf3 ipq8074: update RegDB in new submitted BDF
644ba9ea2e66 ipq6018: update RegDB in new submitted BDF

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq40xx: set DEVICE_DTS_DIR to /qcom by default
Christian Marangi [Fri, 26 Apr 2024 10:52:06 +0000 (12:52 +0200)]
ipq40xx: set DEVICE_DTS_DIR to /qcom by default

Set DEVICE_DTS_DIR to /qcom by default instead of limiting it to
TESTING_KERNEL since we moved 6.6 to default version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: set DEVICE_DTS_DIR to /qcom by default
Christian Marangi [Fri, 26 Apr 2024 10:50:47 +0000 (12:50 +0200)]
ipq806x: set DEVICE_DTS_DIR to /qcom by default

Set DEVICE_DTS_DIR to /qcom by default instead of limiting it to
TESTING_KERNEL since we moved 6.6 to default version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agobcm53xx: update 600-net-disable-GRO-by-default.patch after recent GRO change
Felix Fietkau [Fri, 26 Apr 2024 10:41:01 +0000 (12:41 +0200)]
bcm53xx: update 600-net-disable-GRO-by-default.patch after recent GRO change

Fixes build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agoipq40xx: drop 6.1 support
Christian Marangi [Fri, 26 Apr 2024 10:30:26 +0000 (12:30 +0200)]
ipq40xx: drop 6.1 support

Drop support for ipq40xx for kernel 6.1.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq40xx: switch default to 6.6
Christian Marangi [Fri, 26 Apr 2024 10:29:30 +0000 (12:29 +0200)]
ipq40xx: switch default to 6.6

Switch default kernel version for ipq40xx to 6.6.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: drop 6.1 support
Christian Marangi [Fri, 26 Apr 2024 10:27:21 +0000 (12:27 +0200)]
ipq806x: drop 6.1 support

Drop support for ipq806x for kernel 6.1.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoipq806x: switch default to 6.6
Christian Marangi [Fri, 26 Apr 2024 10:26:53 +0000 (12:26 +0200)]
ipq806x: switch default to 6.6

Switch default kernel version for ipq806x to 6.6.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoath79: update 900-unaligned_access_hacks.patch after recent GRO change
Felix Fietkau [Fri, 26 Apr 2024 10:24:21 +0000 (12:24 +0200)]
ath79: update 900-unaligned_access_hacks.patch after recent GRO change

Fixes build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agosunxi: update the 6.6 DTS_DIR hack
Zoltan HERPAI [Fri, 26 Apr 2024 09:06:17 +0000 (11:06 +0200)]
sunxi: update the 6.6 DTS_DIR hack

Update and simplify the 6.1 vs. 6.6 DTS_DIR hack until 6.1 support is gone.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agonetifd: add flow steering mode to the packet steering script
Felix Fietkau [Wed, 24 Apr 2024 17:23:11 +0000 (19:23 +0200)]
netifd: add flow steering mode to the packet steering script

This allows directing processing of locally received packets to the CPUs
of the tasks receiving them

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agonetifd: add a packet steering mode matching the old script
Felix Fietkau [Wed, 24 Apr 2024 17:16:05 +0000 (19:16 +0200)]
netifd: add a packet steering mode matching the old script

This spreads packet processing across all cores

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: improve GRO performance
Felix Fietkau [Tue, 23 Apr 2024 10:37:05 +0000 (12:37 +0200)]
kernel: improve GRO performance

For packets not belonging to a local socket, use fraglist GRO instead of
regular GRO. This make segmenting packets very cheap and avoids the need for
selectively disabling GRO

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: backport flow offload pppoe fix
Felix Fietkau [Tue, 23 Apr 2024 10:08:45 +0000 (12:08 +0200)]
kernel: backport flow offload pppoe fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agotools/elfutils: refresh portability patch for macOS
Michael Pratt [Mon, 8 Apr 2024 19:15:31 +0000 (15:15 -0400)]
tools/elfutils: refresh portability patch for macOS

Quilt refresh combined two sets of changes to the same file.

The switch from using libgen.h to dirname.h because of function poisoning
from gnulib's import of basename() was added as a new patch hunk instead
of an edit to the original one.

The original patch hunk was to fix build errors on an earlier version of
elfutils before the "dirname" module was being imported to fix further
build errors with the 0.191 version.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: remove no-op copy of tdestroy()
Michael Pratt [Mon, 8 Apr 2024 07:54:13 +0000 (03:54 -0400)]
tools/elfutils: remove no-op copy of tdestroy()

A false tdestroy() function was added in order to make elfutils build on
macOS again. A previous commit added declarations for a real version of
tdestroy() into gnulib, which is already imported, as well as the
preprocessor flags and the triggers for the Makefile.am conditional in
order to include the source to be built.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: use locally declared static reallocarray()
Michael Pratt [Mon, 8 Apr 2024 03:28:51 +0000 (23:28 -0400)]
tools/elfutils: use locally declared static reallocarray()

On macOS, stdlib.h in the standard include paths does not provide
reallocarray() while both elfutils and gnulib do, however they are
declared differently, leading to an error:

  ./system.h:101:1: error: static declaration of 'reallocarray' follows non-static declaration
  reallocarray (void *ptr, size_t nmemb, size_t size)

A normal "configure && make" build cycle results in both declarations
being enabled as a result of both elfutils and gnulib having completely
separate configure checks where gnulib uses an internal placeholder symbol
HAVE_REALLOCARRAY, and elfutils uses a standard autoconf macro
HAVE_DECL_REALLOCARRAY.

Fix this by excluding the import of the reallocarray module which causes
gnulib checks in the configure stage to not even consider whether to
declare reallocarray later on, so the decision is only between the
standard include stdlib.h and the elfutils header.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: organize gnulib import build stage
Michael Pratt [Fri, 5 Apr 2024 08:42:14 +0000 (04:42 -0400)]
tools/elfutils: organize gnulib import build stage

Organize the Makefile lines involved in gnulib importing and its
workarounds. It improves readability and keeps git history organized.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: override SUBDIRS variable of Makefile
Michael Pratt [Sun, 7 Apr 2024 19:28:03 +0000 (15:28 -0400)]
tools/elfutils: override SUBDIRS variable of Makefile

Instead of editing the SUBDIRS variable with a patch, it can be overriden
at the end of the command line when invoking Make.

This tool has a series of recursive Makefiles in each subdirectory,
therefore SUBDIRS is set to a pattern of Make functions so that the result
is variable depending on the current subdirectory that Make is being
invoked in.

It's not necessary to have gnulib-cache.m4 in EXTRA_DIST since we don't
need to re-import after packaging this in the SDK, so get rid of the
entire patch hunk for ./Makefile.am

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/elfutils: update to 1.91
Tony Ambardar [Mon, 4 Mar 2024 05:04:36 +0000 (21:04 -0800)]
tools/elfutils: update to 1.91

Release Notes:
https://sourceware.org/pipermail/elfutils-devel/2024q1/006876.html

Manually refresh:
- 100-portability.patch

Change:
- replace libgen.h with gnulib "dirname" module for compilation errors:
    In file included from ./../libdw/libdwP.h:38,
                     from eblobjnote.c:42:
    /usr/include/libgen.h:35:9: error: attempt to use poisoned "basename"
       35 | #define basename        __xpg_basename
          |         ^

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Co-Developed-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/coreutils: update to 9.5
Michael Pratt [Mon, 1 Apr 2024 22:36:49 +0000 (18:36 -0400)]
tools/coreutils: update to 9.5

Update to latest stable release.

The following commits in gnulib caused a conflict in locally bootstrapped
coreutils with stable gnulib:

  8f4b4e52c991de2233b471f8e35a068866b31f01
  2749234203959df8d72cd8638d4e00a9fff450db

A module (strftime) was marked deprecated and replaced by another module
(nstrftime) in the version of gnulib that coreutils was released with
compared to the stable branch that we use for importing. Conflicts from
the previous version of coreutils are now gone, so other imported headers
are now good.

Refresh patch:
 - 000-bootstrap.patch

Remove upstreamed patch:
 - 001-bootstrap-sync.patch

Link: https://lists.gnu.org/archive/html/coreutils/2024-03/msg00132.html
Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/coreutils: update to 9.4
Michael Pratt [Mon, 4 Sep 2023 22:59:51 +0000 (18:59 -0400)]
tools/coreutils: update to 9.4

Update to latest stable release.

Add configure option to disable support for the Year 2038 problem.
(for now, as some versions of GCC do not yet support it)

Syncing bootstrap script fails, backport an upstream patch which can be
removed at next coreutils update.

Several headers from the stable gnulib branch cause build failure because
the changes in the imported versions are incompatible with the Makefile
that gets generated for coreutils. This version of coreutils was released
after being bootstrapped and autoreconf'ed with a significantly different
version of gnulib compared to our local gnulib, so skip importing them
(and restore the backup).

While at it, organize restoring the originally shipped version of files
into a Make foreach function.

Refresh patch:
- 000-bootstrap.patch

New patch:
- 001-bootstrap-sync.patch

Link: https://lists.gnu.org/archive/html/coreutils/2023-08/msg00099.html
Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/bison: hardcode path to m4 with STAGING_DIR_HOST
Michael Pratt [Mon, 1 Apr 2024 19:51:16 +0000 (15:51 -0400)]
tools/bison: hardcode path to m4 with STAGING_DIR_HOST

Force bison to ignore the M4 environment variable and hardcode it to the
locally built m4 during build operations using the relocatable path
variable STAGING_DIR_HOST.

This allows bison to continue to function while we are forcefully avoiding
autoreconf and other autoconf and automake-like operations by giving a
fake path to m4 with the M4 environment variable.

The specific path can still be overridden independently from the
environment within the line of invocation that runs bison by setting
STAGING_DIR_HOST within the command, so document this in the help printout.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agogettext-full: update to 0.22.5
Tony Ambardar [Wed, 6 Mar 2024 13:35:10 +0000 (05:35 -0800)]
gettext-full: update to 0.22.5

Release Announcement:
https://savannah.gnu.org/news/?group_id=425

Refresh:
- 200-libunistring-missing-link.patch

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/gnulib: make tdestroy() fully portable
Michael Pratt [Mon, 8 Apr 2024 07:47:23 +0000 (03:47 -0400)]
tools/gnulib: make tdestroy() fully portable

The tdestroy() function, which is a GNU extension to the standard C
library, is defined in gnulib in tsearch.c but is missing it's
corresponding declaration in search.in.h by being completely missing...

This patch is large but upstreamable, including all of the macros and
conditionals and configure checks that upstream GNU would expect for
portable support, like using the @@ placeholder/substitution method to
determine whether or not to have declarations based on whether or not
tdestroy() is already declared within the standard headers of the default
include paths.

There were also some typedefs and aliases missing, along with the warnings
and preprocessor exceptions that need to be added for consistency with the
usage of the rest of the functions in the files.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/gnulib: add macros to skip reallocarray() functions
Michael Pratt [Sat, 13 Apr 2024 19:04:54 +0000 (15:04 -0400)]
tools/gnulib: add macros to skip reallocarray() functions

For modules that depend on the reallocarray module, like ialloc, xalloc,
and safe-alloc, it was not possible to skip importing the reallocarray
module as they all contained at least one function that called
reallocarray() and would cause build failure if the host system didn't
declare it.

This upstreamable patch adds macros that toggle whether to define
functions that depend on reallocarray() based on whether the reallocarray
module is being imported.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/gnulib: update to branch stable-202401
Tony Ambardar [Mon, 4 Mar 2024 04:15:25 +0000 (20:15 -0800)]
tools/gnulib: update to branch stable-202401

Patches refreshed automatically.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agotools/missing-macros: add symlinks to makeinfo
Michael Pratt [Tue, 16 Apr 2024 01:08:06 +0000 (21:08 -0400)]
tools/missing-macros: add symlinks to makeinfo

There are other wrapper scripts released with makeinfo like texi2pdf which
are required by the build prerequisites of some tools, and have a similar
purpose and usage.

Let the makeinfo perl script handle all of these cases.

It's worth mentioning that "texi2any" is the actual program and "makeinfo"
is one of it's aliases. From upstream GNU:

  makeinfo: texi2any
rm -f $@
-$(LN_S) texi2any $@

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agohost-build: fix stampfile name substitution per installed binaries
Michael Pratt [Thu, 4 Apr 2024 06:11:28 +0000 (02:11 -0400)]
host-build: fix stampfile name substitution per installed binaries

A funny bug was discovered where if the buildroot's path
has the name of the build target within it, it will also be substituted
along with the stampfile's name for each program,
causing an attempt to touch a file in a directory that doesn't exist.

...
...
touch: cannot touch '/Volumes/touch/openwrt/staging_dir/host/stamp/.touch_installed': No such file or directory
touch: cannot touch '/Volumes/ln/openwrt/staging_dir/host/stamp/.ln_installed': No such file or directory
touch: cannot touch '/Volumes/chown/openwrt/staging_dir/host/stamp/.chown_installed': No such file or directory
make[2]: *** [Makefile:50: /Volumes/coreutils/openwrt/staging_dir/host/stamp/.coreutils_installed] Error 1
...
...

Split up the path with $(dir) and $(notdir) before substitution to fix
the syntax.

Reported-by: Georgi Valkov <gvalkov@gmail.com>
Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agouboot-envtools: add env settings for Edgerouter-X
Tim Lunn [Mon, 22 Apr 2024 10:53:50 +0000 (20:53 +1000)]
uboot-envtools: add env settings for Edgerouter-X

uboot-envtools is currently missing config for Edgerouter-X
and its not immediately obvious what settings to manually
apply.

Provide default configuration for envtools on Edgerouter-X.

Signed-off-by: Tim Lunn <tim@feathertop.org>
7 months agosunxi: 6.6: set testing kernel
Zoltan HERPAI [Wed, 17 Apr 2024 11:49:15 +0000 (13:49 +0200)]
sunxi: 6.6: set 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>
7 months agosunxi: 6.6: refresh patches
Zoltan HERPAI [Wed, 17 Apr 2024 11:45:49 +0000 (13:45 +0200)]
sunxi: 6.6: refresh patches

Refresh kernel patches.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: update image Makefile to reflect updated DTS structure in 6.6
Zoltan HERPAI [Wed, 17 Apr 2024 11:48:41 +0000 (13:48 +0200)]
sunxi: update image Makefile to reflect updated DTS structure in 6.6

For the ARM arch on 6.6, DTS files are moved into their vendor directories,
mimicking arm64. Reflect this in the image Makefile.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: 6.6: refresh kernel configs
Zoltan HERPAI [Wed, 17 Apr 2024 11:48:08 +0000 (13:48 +0200)]
sunxi: 6.6: refresh kernel configs

Refresh kernel config.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: 6.6: remove upstreamed patches
Zoltan HERPAI [Wed, 17 Apr 2024 11:47:02 +0000 (13:47 +0200)]
sunxi: 6.6: remove upstreamed patches

Remove patches that have been upstreamed.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agokernel/sunxi: Restore kernel files for v6.1
Zoltan HERPAI [Tue, 16 Apr 2024 21:17:13 +0000 (23:17 +0200)]
kernel/sunxi: Restore kernel files for v6.1

This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.

See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agokernel/sunxi: Create kernel files for v6.6 (from v6.1)
Zoltan HERPAI [Tue, 16 Apr 2024 21:17:13 +0000 (23:17 +0200)]
kernel/sunxi: Create kernel files for v6.6 (from v6.1)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomxs: drop 6.1 support
Zoltan HERPAI [Thu, 25 Apr 2024 12:32:46 +0000 (14:32 +0200)]
mxs: drop 6.1 support

Now that 6.6 is the default, remove the 6.1 config and the hack that
was required for the arm32 DTS dir change.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomxs: switch default to 6.6
Zoltan HERPAI [Thu, 25 Apr 2024 12:31:59 +0000 (14:31 +0200)]
mxs: switch default to 6.6

Switch the default kernel to 6.6.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agompc85xx: fix address config for ws-ap3825i
Martin Kennedy [Wed, 24 Apr 2024 23:38:59 +0000 (19:38 -0400)]
mpc85xx: fix address config for ws-ap3825i

In commit 6a8b83159389 ("mpc85xx: p1010: change wrapper address of
simple image devices"), we adjusted the wrapper address in the recipe
code for all mpc85xx simpleimage devices, including the Extreme
Networks WS-AP3825i. However, we did not also adjust the
KERNEL_LOADADDR and KERNEL_ENTRY config values for this board. This
broke the simpleimage wrapper loader, causing GitHub issue #15237.

Adjust those config values so we go back to pointing at the right
address. We don't exactly need the memory, but it's also not exactly a
punishment in this case.

Run-tested on a ws-ap3825i.

Fixes: commit 6a8b83159389 ("mpc85xx: p1010: change wrapper address of
simple image devices")

Tested-by: Martin Kennedy <hurricos@gmail.com>
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
7 months agomodules: Add kernel module for MV88E6xxx DSA switch
Linus Walleij [Sat, 1 Jul 2023 14:00:50 +0000 (16:00 +0200)]
modules: Add kernel module for MV88E6xxx DSA switch

This adds a kernel module package for the Marvell
MV88E6XXX DSA switch and a separate module package for
the DSA tagger since it can in theory be used by multiple
DSA switches. Enable both DSA and EDSA tags in the
tagger.

We can't just compile this in because just a few devices
has this DSA, and it depends on e.g. the I2C and SFP
to be loaded as modules first.

We have no examples of DSA switches being packaged as
modules before, all seem to be compiled in, but it
actually works just fine to do this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
7 months agowolfssl: Update to 5.7.0
Hauke Mehrtens [Sun, 21 Apr 2024 15:46:55 +0000 (17:46 +0200)]
wolfssl: Update to 5.7.0

This fixes multiple security problems:
 * [High] CVE-2024-0901 Potential denial of service and out of bounds
   read. Affects TLS 1.3 on the server side when accepting a connection
   from a malicious TLS 1.3 client. If using TLS 1.3 on the server side
   it is recommended to update the version of wolfSSL used.

 * [Med] CVE-2024-1545 Fault Injection vulnerability in
   RsaPrivateDecryption function that potentially allows an attacker
   that has access to the same system with a victims process to perform
   a Rowhammer fault injection. Thanks to Junkai Liang, Zhi Zhang, Xin
   Zhang, Qingni Shen for the report (Peking University, The University
   of Western Australia)."

 * [Med] Fault injection attack with EdDSA signature operations. This
   affects ed25519 sign operations where the system could be susceptible
   to Rowhammer attacks. Thanks to Junkai Liang, Zhi Zhang, Xin Zhang,
   Qingni Shen for the report (Peking University, The University of
   Western Australia).

Size increased a little:
wolfssl 5.6.6:
516880 bin/packages/mips_24kc/base/libwolfssl5.6.6.e624513f_5.6.6-stable-r1_mips_24kc.ipk
wolfssl: 5.7.0:
519429 bin/packages/mips_24kc/base/libwolfssl5.7.0.e624513f_5.7.0-stable-r1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agombedtls: Update to 2.28.8
Hauke Mehrtens [Sun, 21 Apr 2024 15:40:09 +0000 (17:40 +0200)]
mbedtls: Update to 2.28.8

This contains a fix for:
CVE-2024-28960: An issue was discovered in Mbed TLS 2.18.0 through 2.28.x
before 2.28.8 and 3.x before 3.6.0, and Mbed Crypto. The PSA Crypto
API mishandles shared memory.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agomediatek: sync cpufreq support with changed compatible string
Daniel Golle [Fri, 19 Apr 2024 17:17:01 +0000 (18:17 +0100)]
mediatek: sync cpufreq support with changed compatible string

The compatible string for the MediaTek MT7988 SoC ended up being
'mediatek,mt7988a' instead of 'mediatek,mt7988' in the now upstream
dtsi. Adapt the cpufreq driver so support for frequency scaling is
again usable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agogeneric: 6.1, 6.6: mt7530: import pending patches
Daniel Golle [Wed, 24 Apr 2024 01:26:01 +0000 (02:26 +0100)]
generic: 6.1, 6.6: mt7530: import pending patches

 net: dsa: mt7530: explain exposing MDIO bus of MT7531AE better
 net: dsa: mt7530: do not pass port variable to mt7531_rgmii_setup()
 net: dsa: mt7530: use priv->ds->num_ports instead of MT7530_NUM_PORTS
 net: dsa: mt7530: get rid of mac_port_validate member of mt753x_info
 net: dsa: mt7530: refactor MT7530_PMEEECR_P()
 net: dsa: mt7530: get rid of function sanity check
 net: dsa: mt7530: define MAC speed capabilities per switch model
 net: dsa: mt7530: return mt7530_setup_mdio & mt7531_setup_common on error
 net: dsa: mt7530: move MT753X_MTRAP operations for MT7530
 net: dsa: mt7530: refactor MT7530_HWTRAP and MT7530_MHWTRAP
 net: dsa: mt7530: refactor MT7530_MFC and MT7531_CFC, add MT7531_QRY_FFP
 net: dsa: mt7530: rename mt753x_bpdu_port_fw enum to mt753x_to_cpu_fw
 net: dsa: mt7530: rename p5_intf_sel and use only for MT7530 switch
 net: dsa: mt7530: refactor MT7530_PMCR_P()
 net: dsa: mt7530: disable EEE abilities on failure on MT7531 and MT7988

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agogeneric: 6.1, 6.6: mt7530: import accepted patches
Daniel Golle [Tue, 23 Apr 2024 12:11:52 +0000 (13:11 +0100)]
generic: 6.1, 6.6: mt7530: import accepted patches

Import patches for the MT7530 DSA driver from net-next tree:
 cae425cb43fe net: dsa: allow DSA switch drivers to provide their own phylink mac ops
 dd0c9855b413 net: dsa: introduce dsa_phylink_to_port()
 7c5e37d7ee78 net: dsa: mt7530: simplify core operations
 868ff5f4944a net: dsa: mt7530-mdio: read PHY address of switch from device tree
 2c606d138518 net: dsa: mt7530: fix port mirroring for MT7988 SoC switch
 d59cf049c837 net: dsa: mt7530: fix mirroring frames received on local port
 62d6d91db98a net: dsa: mt7530: provide own phylink MAC operations

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agogeneric: mt7530: move accepted patches to backport-6.{1,6}
Daniel Golle [Tue, 23 Apr 2024 12:08:02 +0000 (13:08 +0100)]
generic: mt7530: move accepted patches to backport-6.{1,6}

Move two accepted patches for the MT7530 DSA driver from pending-6.{1,6}
to backport-6.{1,6}.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: correct address of MT753x switch IC
Daniel Golle [Tue, 23 Apr 2024 11:14:07 +0000 (12:14 +0100)]
mediatek: correct address of MT753x switch IC

For all boards currently working with the mt7530 DSA driver we can
be sure that the address of the switch on the MDIO bus is 31 --
simply because that address is hard-coded in the driver and the
address from the Device Tree is being ignore.

An upcoming patch will add support for MT753x ICs which are programmed
to addresses different from 0x1f using bootstrap pins. As a result the
address from the Device Tree will then be taken into account, which
will break currently working boards which got the address set to
anything else than 31.

While at it also unify the syntax in Device Tree to always us a decimal
value for the 'reg' property.

 * mt7622-buffalo-wsr-3200ax4s.dts
   Cosmetic change 'reg = <0x1f>' -> 'reg = <31>'

 * mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi
   Wrong address: 0 -> 31

 * mt7622-elecom-wrc-x3200gst3.dts
   Wrong address: 0 -> 31

 * mt7622-linksys-e8450.dtsi
   Wrong address: 0 -> 31

 * mt7622-ruijie-rg-ew3200.dtsi
   Wrong address: 0 -> 31

 * mt7622-xiaomi-redmi-router-ax6s.dts
   Wrong address: 0 -> 31

 * mt7629-iptime-a6004mx.dts
   Wrong address: 2 -> 31

 * mt7981b-zbtlink-zbt-z8102ax.dts
   Cosmetic change 'reg = <0x1f>' -> 'reg = <31>'

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agooxnas: drop target
Nick Hainke [Wed, 24 Apr 2024 05:19:30 +0000 (07:19 +0200)]
oxnas: drop target

The Upstream Linux community has discontinued support for the target.
Maintaining support for it downstream would require too much effort.
Moreover, it seems that the supported hardware is no longer deemed worthy
of it.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agotools/zstd: enable position independent code compilation
Bryan Roessler [Wed, 24 Apr 2024 01:37:25 +0000 (21:37 -0400)]
tools/zstd: enable position independent code compilation

Currently, trying to compile LLVM-BPF will fail with:
[2225/3517] Linking CXX shared library lib/libLLVM-15.so
FAILED: lib/libLLVM-15.so
/usr/bin/ld: staging_dir/host/lib/libzstd.a(zstd_common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

So, to fix it enable PIC for the host ZSTD.

Fixes: #15247
Signed-off-by: Bryan Roessler <bryanroessler@gmail.com>
7 months agoscripts: ubinize-image.sh: fix support for static volume
Daniel Golle [Tue, 23 Apr 2024 10:39:34 +0000 (11:39 +0100)]
scripts: ubinize-image.sh: fix support for static volume

Apart from being misspelled ('dymamic' vs. 'dynamic') and a mismatch of
the number of parameters, there is also simply no need to add the 'dynamic'
volume type keyword as 6th parameter as that's the default anyway.
Fix and simplify the ubinize-image.sh script to work as intended.

Fixes: 6c17d71973 ("scripts: ubinize-image.sh: support static volumes, make size optional")
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: mt7988a: sync dts compatible string
Daniel Golle [Tue, 23 Apr 2024 22:34:30 +0000 (23:34 +0100)]
mediatek: mt7988a: sync dts compatible string

Use 'mediatek,mt7988a' instead of 'mediatek,mt7988' as compatible
string to be in-sync with upstream and no longer break the cpufreq
driver which was also kept in sync with upstream.

Fixes: 56dd6b473b ("mediatek: sync cpufreq support with changed compatible string")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agobcm53xx: 6.6: fix ASM cache workaround linking
Robert Marko [Mon, 1 Apr 2024 17:46:34 +0000 (19:46 +0200)]
bcm53xx: 6.6: fix ASM cache workaround linking

Kernel 6.6 checks for orphan sections and prints a warning about them,
which in turn will make CI fails as we have Werror enabled there.

Issue is that cache-v7-min.S produces .init.text section which is an
orphan section since it is not being handled by the vmlinux.lds.S linker
script.

So, lets put the generated .init.text section under .text.

Fixes: f0d8ce4f482c ("bcm53xx: add testing support for kernel 6.6")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agokernel: bump 6.6 to 6.6.28
John Audia [Wed, 17 Apr 2024 19:01:37 +0000 (15:01 -0400)]
kernel: bump 6.6 to 6.6.28

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.28

Removed upstream:
pending-6.6/796-net-dsa-mt7530-trap-link-local-frames-regardless-of-.patch

All oither patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.28&id=8b6c4b62582606c62074a7e7c64156f56d2785f2

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>
7 months agox86: generic: config-6.6: add/remove default syms
John Audia [Wed, 17 Apr 2024 19:05:00 +0000 (15:05 -0400)]
x86: generic: config-6.6: add/remove default syms

Add new default and remove deprecated symbols introduced by 6.6.28[1]

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

Signed-off-by: John Audia <therealgraysky@proton.me>
7 months agoqualcommax: ipq807x: use ath11k_patch_mac for RAX120v2
Paweł Owoc [Mon, 4 Mar 2024 18:29:51 +0000 (19:29 +0100)]
qualcommax: ipq807x: use ath11k_patch_mac for RAX120v2

Use ath11k_patch_mac and ath11k_set_macflag functions for RAX120v2 (pre-caldata does not contain valid MAC addresses)

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
7 months agoqualcommax: ipq807x: use ath11k_patch_mac and ath11k_remove_regdomain for MX4200
Paweł Owoc [Mon, 29 Jan 2024 23:39:55 +0000 (00:39 +0100)]
qualcommax: ipq807x: use ath11k_patch_mac and ath11k_remove_regdomain for MX4200

Use ath11k_patch_mac, ath11k_remove_regdomain and ath11k_set_macflag functions for MX4200
(only v2 variant requires MAC patching)

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
7 months agobase-files: Add new functions for ath11k caldata
Paweł Owoc [Mon, 29 Jan 2024 22:36:58 +0000 (23:36 +0100)]
base-files: Add new functions for ath11k caldata

Add new functions for ath11k caldata:
- ath11k_patch_mac (from 0 to 5)
- ath11k_remove_regdomain
- ath11k_set_macflag (some pre-caldata have the nvMacFlag flag unset which is needed to change the MAC address)

Additionaly for ath10k caldata:
- ath10k_remove_regdomain

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
7 months agomwlwifi: update to version 10.4.10-20240419
Stefan Kalscheuer [Fri, 19 Apr 2024 15:31:24 +0000 (17:31 +0200)]
mwlwifi: update to version 10.4.10-20240419

This update contains a minor fix to resolve "detected write beyond size
of field" warning during compilation:
* "replace [0] with []" (1d0d08c)

All patches still apply.

References:
* https://github.com/openwrt/openwrt/issues/15108

Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
7 months agoipq807x: add Spectrum SAX1V1K
Connor Yoon [Tue, 19 Mar 2024 13:10:51 +0000 (14:10 +0100)]
ipq807x: add Spectrum SAX1V1K

Spectrum SAX1V1K is a AX WIFI router with 3 1G and 1 2.5G ports.
The router is provided to Spectrum customers.
It is OEM of Askey RT5010W
https://forum.openwrt.org/t/spectrum-sax1v1k-askey-rt5010w-openwrt-support/149923

It continues the original work by @MeisterLone to get this device supported.

Specifications:
```
  •  CPU: Qualcomm IPQ8072A Quad core Cortex-A53 2.2GHz
  •  RAM: 2048MB of DDR3
  •  Storage: 1024MB eMMC
  •  Ethernet: 3x 1G RJ45 ports (QCA8075) + 1 2.5G Port (QCA8081)
  •  WLAN:
     • 2.4GHz: Qualcomm QCN5024 4x4 802.11b/g/n/ax 1174 Mbps PHY rate
     • 5GHz: Qualcomm QCN5054 4x4 802.11a/b/g/n/ac/ax 2402 PHY rate

  •  LED: 1 gpio-controlled dual color led (blue/red)
  •  Buttons: 1x reset
  •  Power: 12V DC jack
```

Notes:
```
  •  This commit adds only single partition support, that means
     sysupgrade is upgrading the current rootfs partition.
  •  Installation can be done by serial connection only.
  •  A poulated serial header is onboard
     https://forum.openwrt.org/t/spectrum-sax1v1k-askey-rt5010w-openwrt-support/149923/6
  •  RX/TX is working, u-boot bootwait is active, secure boot is enabled.
```

Installation Instructions:

**Most part of the installation is performed from an initramfs image.**

Boot initramfs : Using serial connection
1. Boot up the device and wait till it displays "VERIFY_IB: Success. verify IB ok"
2. Once that message appears,
    login with username 'root'
    password serial number of your router in uppercase.
3. Use vi to paste the 'open.sh' script from @MeisterLone github on your device
    https://github.com/MeisterLone/Askey-RT5010W-D187-REV6/blob/master/Patch/open.sh
4. chmod 755 open.sh
5. ./open.sh
6. Set your ip to 192.168.0.1
7. Run a TFTP server and host the initramfs image on the TFTP server and name it "recovery.img"
8. Reboot device. On boot it will try TFTP.

Install OpenWrt from initramfs image:
1. Use SCP (or other way) to transfer OpenWrt factory image
2. Connect to device using SSH (on a LAN port)
3. Flash firmware: sysupgrade
   # sysupgrade -n -v /tmp/openwrt_sysupgrade.bin
4. Set U-boot env variable: bootcmd
   # fw_setenv bootcmd "run fix_uboot; run setup_and_boot"
5. Reboot the device
   # reboot
6. Once device is booted, residue of previous firmware will prevent openwrt to work properly.
    Factory Reset is MUST required
    # Once serial console is displaying to login, hold reset button for 10 sec
7. Now everything should be operational.

        Note: this PR adds only single partition support, that means sysupgrade is
              upgrading the current rootfs partition

Signed-off-by: Connor Yoon <j_connor@taliaent.com>