openwrt/staging/linusw.git
7 months agotoolchain: Disable libtsan and liblsan sanitizer on loongarch64
Weijie Gao [Sun, 7 Jan 2024 04:50:51 +0000 (12:50 +0800)]
toolchain: Disable libtsan and liblsan sanitizer on loongarch64

libtsan and liblsan are not supported by glibc on loongarch64

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agoloongarch64: new target
Weijie Gao [Sat, 6 Jan 2024 19:10:45 +0000 (03:10 +0800)]
loongarch64: new target

Add target for Loongson LoongArch64-based boards.

LoongArch is a new RISC ISA developed by Loongson. It's a bit like
MIPS or RISC-V. LoongArch includes both 32-bit and 64-bit versions
(LoongArch32/LoongArch64).

Loongson 3A5000 and 3A6000 are the two existing CPUs of LoongArch64
and is used for PC products. It's BIOS supports ACPI and UEFI-only
boot. These CPUs supports SMP and SMT.

At present only LoongArch64 is supported by linux kernel.

Toolchain requirement:
binutils >= 2.40
gcc >= 13.1

For details, please check the following links:
https://lwn.net/Articles/861951/
https://loongson.github.io/LoongArch-Documentation/README-EN.html

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agotoolchain/musl: fix loongarch64 ldso file name
Weijie Gao [Wed, 17 Apr 2024 16:08:24 +0000 (00:08 +0800)]
toolchain/musl: fix loongarch64 ldso file name

GCC has changed musl dynamic linker name from
ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1].

This means there are two dynamic linker names will be used across different
ersions of GCC. But musl 1.2.5 only supports the new name while the GCC
we're currently using uses the old name.

To maintain compatibility with all versions of GCC, the musl is then patched
to generate two symbolic links to libc.so with both old and new names.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agotoolchain/gcc: fix loongarch64 ldso file name
Weijie Gao [Thu, 18 Apr 2024 10:58:18 +0000 (18:58 +0800)]
toolchain/gcc: fix loongarch64 ldso file name

GCC has changed musl dynamic linker name from
ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1].

Meanwhile musl 1.2.5 only supports the new name. So it's better to follow
the new name.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agoRevert "mediatek: backport mt7622 dts fix for mt7531 switch id to 6.1"
Daniel Golle [Fri, 3 May 2024 23:14:48 +0000 (00:14 +0100)]
Revert "mediatek: backport mt7622 dts fix for mt7531 switch id to 6.1"

This reverts commit 3fe239fcf8d0ea91b947af25fd28a6133aba93c6.
Now that we switched to Linux 6.6 this is no longer needed, and resulted
in a left-over file because it's removal was not included in the commit
removing all the other files intended for Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agosunxi: add support for Lichee Pi Zero Dock (V3s) board
Zoltan HERPAI [Fri, 27 Oct 2023 16:23:57 +0000 (18:23 +0200)]
sunxi: add support for Lichee Pi Zero Dock (V3s) board

CPU:     Allwinner V3s single-core Cortex-A7 @ 1.2GHz
Memory:  64Mb DDR2 integrated into SoC package
Storage: 1x SDcard on board, 1x SDcard on dock
Network: 10/100M ethernet
Other:   4x buttons via LRADC, CSI

Flashing instructions:
  Standard sunxi SD card installation procedure - copy image to SD card,
  insert into SD card slot on the device and boot.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoramips: remove unnecessary macros for previous kernel versions
Mieczyslaw Nalewaj [Fri, 3 May 2024 17:35:11 +0000 (19:35 +0200)]
ramips: remove unnecessary macros for previous kernel versions

Remove unnecessary 'if' macros for previous kernel versions.
After removing kernel 6.1 the kernel is always >= 6.6 so the conditions
are unnecessary.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
[removed some more and also no longer include version.h]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agoramips: switch to Linux 6.6
Daniel Golle [Fri, 3 May 2024 01:25:09 +0000 (02:25 +0100)]
ramips: switch to Linux 6.6

Switch to Linux kernel version 6.6 and drop configs, files and patches
for Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: remove macros for previous kernel versions
Daniel Golle [Fri, 3 May 2024 20:33:41 +0000 (21:33 +0100)]
mediatek: remove macros for previous kernel versions

Remove unnecessary 'if' macros for previous kernel versions.
After removing kernel 6.1 the kernel is always >= 6.6 so the conditions
are unnecessary.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: switch to Linux 6.6
Daniel Golle [Fri, 3 May 2024 01:24:12 +0000 (02:24 +0100)]
mediatek: switch to Linux 6.6

Switch to Linux kernel version 6.6 and drop configs, files and patches
for Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agogeneric: 6.6: fix and simplify blkdevparts= cmdline parsing
Daniel Golle [Fri, 3 May 2024 20:27:37 +0000 (21:27 +0100)]
generic: 6.6: fix and simplify blkdevparts= cmdline parsing

Import pending patch to fix the cmdline parsing of the "blkdevparts="
parameter which has been broken somewhen between Linux 6.1 and Linux 6.6.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agokernel: add missing check for TCP GRO
Felix Fietkau [Fri, 3 May 2024 16:44:57 +0000 (18:44 +0200)]
kernel: add missing check for TCP GRO

Need to check if the skb data buffer is linear up to (and including) the TCP
header.

Fixes: https://github.com/openwrt/openwrt/issues/15359
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agokernel: backport upstream GRO fixes
Felix Fietkau [Fri, 3 May 2024 16:19:56 +0000 (18:19 +0200)]
kernel: backport upstream GRO fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agomediatek: backport mt7622 dts fix for mt7531 switch id to 6.1
Felix Fietkau [Fri, 3 May 2024 16:19:20 +0000 (18:19 +0200)]
mediatek: backport mt7622 dts fix for mt7531 switch id to 6.1

Fixes: ac8bfe316b81 ("generic: 6.1, 6.6: mt7530: import accepted patches")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agobpf: fix broken inclusion of system include
Christian Marangi [Fri, 3 May 2024 12:49:58 +0000 (14:49 +0200)]
bpf: fix broken inclusion of system include

Commit d82c5884c616 ("treewide: make use of new toolchain define")
changed $(TOOLCHAIN_DIR)/include to the new variable
$(TOOLCHAIN_INC_DIRS) that now can contain multiple entry.

Because of this only the first include in $(TOOLCHAIN_INC_DIRS) was
actually included with -isystem, making the other producing warning with
ignored inputs.

Fix this by parsing each entry in $(TOOLCHAIN_INC_DIRS) and adding the
-isystem prefix to correctly include them in the BPF_KERNEL_INCLUDE.

Fixes: d82c5884c616 ("treewide: make use of new toolchain define")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoxdp-tools: fix wrong matching for OPENWRT_VERBOSE
Christian Marangi [Fri, 3 May 2024 12:46:33 +0000 (14:46 +0200)]
xdp-tools: fix wrong matching for OPENWRT_VERBOSE

To enable verbose log for xdp-tools compilation, we check for "c" in
the OPENWRT_VERBOSE, but verbose.mk supports only "w" and "s" for V=1
and V=99.

Fix the wrong matching and correctly enable verbose output matching for
"s".

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoxdp-tools: refresh patches
Christian Marangi [Fri, 3 May 2024 12:32:36 +0000 (14:32 +0200)]
xdp-tools: refresh patches

Refresh xdp-tools patches with make package/xdp-tools/refresh

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agosunxi: drop 6.1 support
Zoltan HERPAI [Fri, 3 May 2024 08:24:29 +0000 (10:24 +0200)]
sunxi: 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 agosunxi: switch default to 6.6
Zoltan HERPAI [Fri, 3 May 2024 08:23:09 +0000 (10:23 +0200)]
sunxi: switch default to 6.6

Switch the default kernel to 6.6.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoopensbi: bump to 1.4
Zoltan HERPAI [Mon, 29 Apr 2024 13:09:01 +0000 (13:09 +0000)]
opensbi: bump to 1.4

Upgrade the OpenSBI firmware used by RISC-V CPUs to 1.4.

Runtime-tested:
 - d1 (Lichee RV)
 - sifiveu (SiFive Unleashed)

Updates since last release:

1.4:
Synopsys DesignWare APB GPIO driver
Zicntr and Zihpm support
Console print improvements
Smepmp support
Simple FDT based syscon regmap driver
Syscon based reboot and poweroff driver
Non-contiguous hpm counters
Smcntrpmf support
Full sparse hartid support
IPI improvements
RFENCE improvements
Zkr support
Andes custom PMU support

1.3.1:
ACLINT driver fix for disabled CPUs
SBI PMU fix for out-of-bound access
Designware GPIO driver

1.3:
Allow platform to influence cold boot HART selection
Starfive JH7110 platform support
Split RX and RW firmware regions
Advertise non-retentive suspend for allwinner D1 platform
Byteorder/endianness conversion macros
SBI debug console extension (Experimental)
Configure the PMA regions for RZ/Five platform
SBI system suspend extension (Experimental)
SBI PMU platform firmware events (Experimental)
SBI CPPC extension (Experimental)
Optimized remote TLB flushes
Simple heap for boot time memory allocations
Bring back no-map DT property for reserved memory nodes

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agoipq40xx: fritzrepeater-1200: fix MDIO and PHY probing
Robert Marko [Thu, 2 May 2024 09:37:34 +0000 (11:37 +0200)]
ipq40xx: fritzrepeater-1200: fix MDIO and PHY probing

AVM FRITZ!Repeater 1200 does not use QCA807x PHY at all and thus it
disables all of the individual PHY nodes, however this is not enough
anymore since the conversion to PHY package.

Now its now enough to disable the PHY-s in the package alone, but the PHY
package node itself must also be disabled.

Fixes: 1b931c33a28e ("ipq40xx: adapt to new Upstream QCA807x PHY driver")
Fixes: #15355
Link: https://github.com/openwrt/openwrt/pull/15365
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agomediatek: increase size of the sdcard image to 512 MiB
Daniel Golle [Tue, 30 Apr 2024 21:21:16 +0000 (22:21 +0100)]
mediatek: increase size of the sdcard image to 512 MiB

Increasing the size of the rootfs_data filesystem has become a ever
repeating discussion and seems to be the most important thing for
users of the MediaTek-based BananaPi boards.

Using the whole remaining size of a microSD or the eMMC for rootfs_data
doesn't make sense for many reasons, but neither does the current
default of 104 MiB for the 'rootfs' partition size.

Increase the 'rootfs' partition size to 448 MiB which will result in
the sdcard image being exactly 512 MiB. Finding a microSD card smaller
than 512 MiB and still working could anyway be difficult in 2024.

That will allow users to install even bloatware written in Go or other
space-hungry languages while still leaving most of the space unallocated
for additional partitions or volumes to be used for persistent user
data.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agobmips: Build U-Boot into the XG6846 target
Linus Walleij [Sat, 5 Aug 2023 07:02:20 +0000 (09:02 +0200)]
bmips: Build U-Boot into the XG6846 target

It appears that the CFE boot loader found in the XG6846
cannot load kernels over a certain size, and the old
relocate hack is not working.

What to do? We can build a small U-Boot into the image,
make CFE boot that, place the kernel immediately after
U-Boot, and use U-Boot to boot the system instead.

The compiled u-boot.bin becomes around ~300KB and with
LZMA compression it will swiftly fit into 128KB, so
we use two 64KB erase blocks right after the CFE to
store an imagetag:ed U-Boot.

Reviewed-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
7 months agouboot-bmips: Add U-Boot for the BMIPS target
Linus Walleij [Fri, 19 Jan 2024 20:45:15 +0000 (21:45 +0100)]
uboot-bmips: Add U-Boot for the BMIPS target

This is needed to boot the BCM6238-based Inteno XG6846.
Currently this is restricted to the XG6846 board.

Reviewed-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
7 months agobmips: Add Inteno XG6846 target
Linus Walleij [Fri, 30 Jun 2023 20:22:17 +0000 (22:22 +0200)]
bmips: Add Inteno XG6846 target

This adds a device tree and build options for the XG6846
switch/router to the BMIPS target.

Hardware:
 - SoC: Broadcom BCM6328
 - CPU: BMIPS4350 V7.5
 - RAM: 64 MB DDR
 - NOR Flash: 16 MB parallel (CFE and OS)
 - Ethernet LAN: 4x 1Gbit
 - Ethernet WAN: 2x 1Gbit, fiber and TP
 - Buttons: reset
 - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the
   LAN LEDs are controlled by the Marvell DSA Switch.
 - USB: on some versions
 - UART: yes

The device ODM (original device manufacturer) is XAVi
http://www.xavi.com.tw/

It is possible to boot the initramfs version
openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from
CFE by interrupting the boot on the UART console and downloading
it from a TFTP server e.g.:
CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf

Installation to target flash is not possible using CFE because
the image becomes too big for the CFE version found in these
devices. A separate U-Boot two-stage solution exists for
actually booting the device.

This device is called a "managed ethernet switch" by the vendor
and "media converter" or "fiber modem" by some of the ISPs
using it: the main purpose is to convert fiber connections to
ethernet, most devices just act as switches bridging the
fiber SFP to ethernet TP.

The device has a Marvell MV88E6352 DSA switch managed by
a BCM6328 BMIPS SoC.

This port makes it possible to use the XG6846 to grab an IP
number from the fiber connection and use all four LAN
connections out, turning it into a proper router.

This support is based mostly on the observations by the people on
the forum thread "Help with Inteno XG6846" where users NPeca75,
mrhaav, systemcrash and csom helped out to reverse engineer the
device. Then I made it work on the BMIPS target, figured out
the two-level switch hierarchy and settings.

Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
7 months agobmips: bcm6328: Compile in uImage splitter
Linus Walleij [Sun, 17 Sep 2023 20:16:30 +0000 (22:16 +0200)]
bmips: bcm6328: Compile in uImage splitter

Since we split the Inteno XG6846 "firmware" partition with the
uImage MTD splitter, we need to compile in support for this
splitting method into the BCM6328.

Reviewed-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
7 months agobcm27xx: correct cmdline.txt consoles for procd
Elbert Mai [Mon, 29 Apr 2024 21:05:27 +0000 (14:05 -0700)]
bcm27xx: correct cmdline.txt consoles for procd

Commit [ca8c30208d5e][1] updates procd to handle muliple "console=" on the
kernel command line. This affects Raspberry Pi builds because cmdline.txt
specifies a UART console and a virtual console on HDMI, in that order.

When procd finds multiple consoles on the command line, it attempts to
open /dev/console. Linux uses the [last console][2] for /dev/console, so
procd opens the virtual console on Raspberry Pi. This completely disables
the UART console and causes [strange behavior][3] on the virtual console.
Prior to ca8c30208d5e, procd would always open the first console, which is
the UART console.

The simplest fix without reverting ca8c30208d5e is to swap the order of
console options in cmdline.txt. By putting the UART console last, procd
handles the serial console correctly as before.

[1]: https://git.openwrt.org/?p=project/procd.git;a=commit;h=ca8c30208d5e1aaa2c0e3f732c4c9944735e9850
[2]: https://www.kernel.org/doc/html/latest/admin-guide/serial-console.html
[3]: https://forum.openwrt.org/t/rasberry-pi-4-model-b-keyboards-gone-wild/195594

Signed-off-by: Elbert Mai <code@elbertmai.com>
7 months agoxdp-tools: fix compilation wrongly using host header
Christian Marangi [Wed, 18 Jan 2023 19:50:58 +0000 (20:50 +0100)]
xdp-tools: fix compilation wrongly using host header

Currently it's needed to have gcc-multilib on the host to correctly
compile xdp-tools. This is wrong and means that we are using host header
to compile a tool.

By some searching in how the makefile works it was discovered that
BPF_CFLAGS were not used and required to be appended to config.mk

Only one single header was added but we should include each BPF_CFLAGS
from bpf.mk. To make this some patching to bpf-header were required and
some patches to xdp-tools were required.
Also it's needed to pass the correct target to BPF_CFLAGS.

With the following changes xdp-tools can correctly compile with each
header from bpf-headers and should not use any host header.

Co-Developed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/11825
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agobpf-headers: fix use of netlink.h header
Christian Marangi [Wed, 18 Jan 2023 19:44:56 +0000 (20:44 +0100)]
bpf-headers: fix use of netlink.h header

netlink.h header have NL_SET_ERR_MSG_MOD that is tied to kmods. We don't
need kmods on bpf tools and this cause compilation error if the header
is included. Fix it by dropping NL_SET_ERR_MSG_MOD.

Link: https://github.com/openwrt/openwrt/pull/11825
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoucode: fix ubus defer when running from within eloop (integrated with uloop)
Felix Fietkau [Wed, 1 May 2024 17:00:10 +0000 (19:00 +0200)]
ucode: fix ubus defer when running from within eloop (integrated with uloop)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agohostapd: fix a null pointer dereference in wpa_supplicant on teardown
Felix Fietkau [Wed, 1 May 2024 16:57:00 +0000 (18:57 +0200)]
hostapd: fix a null pointer dereference in wpa_supplicant on teardown

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agogengetopt: backport patch fixing support for c++17
Christian Marangi [Wed, 1 May 2024 13:42:57 +0000 (15:42 +0200)]
gengetopt: backport patch fixing support for c++17

Backport patch fixing support for c++17 that got merged upstream in
gengetopt.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoramips: mt7621-dts: describe switch PHYs and adjust PHY muxing
Arınç ÜNAL [Sun, 28 Apr 2024 19:52:51 +0000 (22:52 +0300)]
ramips: mt7621-dts: describe switch PHYs and adjust PHY muxing

Currently, the MT7530 DSA subdriver configures the MT7530 switch to provide
direct access to switch PHYs, meaning, the switch PHYs listen on the MDIO
bus the switch listens on. The PHY muxing feature makes use of this.

This is problematic as the PHY may be attached before the switch is
initialised, in which case, the PHY will fail to be attached.

Since commit 91374ba537bd ("net: dsa: mt7530: support OF-based registration
of switch MDIO bus") on mainline Linux, we can describe the switch PHYs on
the MDIO bus of the switch on the device tree.

When the PHY is described this way, the switch will be initialised first,
then the switch MDIO bus will be registered. Only after these steps, the
PHY will be attached.

Describe the switch PHYs on mt7621.dtsi and remove defining the switch PHY
on the SoC's mdio bus node. When the PHY muxing is in use, the interrupts
for the muxed PHY won't work, therefore delete the "interrupts" property on
the devices where the PHY muxing feature is in use.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
7 months agogeneric: 6.1, 6.6: mt7530: import pending PHY muxing detection patch
Arınç ÜNAL [Wed, 1 May 2024 03:33:51 +0000 (06:33 +0300)]
generic: 6.1, 6.6: mt7530: import pending PHY muxing detection patch

net: dsa: mt7530: detect PHY muxing when PHY is defined on switch MDIO bus

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
7 months agoramips: mt7621-dts: remove incorrect ethphy4 node for WAVLINK WL-WN573HX1
Arınç ÜNAL [Sun, 28 Apr 2024 19:10:16 +0000 (22:10 +0300)]
ramips: mt7621-dts: remove incorrect ethphy4 node for WAVLINK WL-WN573HX1

The ethernet-phy@4 node doesn't exist for WAVLINK WL-WN573HX1. Remove it
and the duplicate gmac0 node.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
7 months agoramips: mt7621-dts: do not modify ethernet node for MeiG SLT866
Arınç ÜNAL [Sun, 28 Apr 2024 19:09:53 +0000 (22:09 +0300)]
ramips: mt7621-dts: do not modify ethernet node for MeiG SLT866

Currently, the pinctrl-0 property on the ethernet node is modified to
exclude the rgmii1 and rgmii2 pin groups to be claimed with rgmii1 and
rgmii2 functions, respectively. Remove the modification of this property as
we need these pin groups to be claimed with the said functions for this
device.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
7 months agozynq: 5.15: remove files
Nick Hainke [Wed, 1 May 2024 08:26:41 +0000 (10:26 +0200)]
zynq: 5.15: remove files

Remove files related to the old 5.15 kernel version as they are no
longer required.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agozynq: set default kernel version to 6.1
Nick Hainke [Wed, 1 May 2024 08:24:49 +0000 (10:24 +0200)]
zynq: set default kernel version to 6.1

Set default kernel version to 6.1, facilitating simpler testing across
a broader user base.

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel: bump 6.1 to 6.1.89
Shiji Yang [Mon, 29 Apr 2024 15:09:24 +0000 (15:09 +0000)]
kernel: bump 6.1 to 6.1.89

Changelogs:
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.67
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.68
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.69

Upstreamed patches:
target/linux/generic/backport-6.1/740-v6.9-01-netfilter-flowtable-validate-pppoe-header.patch [1]
target/linux/generic/backport-6.1/740-v6.9-02-netfilter-flowtable-incorrect-pppoe-tuple.patch [2]
target/linux/generic/backport-6.1/790-48-STABLE-net-dsa-mt7530-trap-link-local-frames-regardless-of-.patch [3]
target/linux/generic/backport-6.1/790-50-v6.10-net-dsa-mt7530-fix-mirroring-frames-received-on-loca.patch [4]
target/linux/generic/backport-6.1/790-16-v6.4-net-dsa-mt7530-set-all-CPU-ports-in-MT7531_CPU_PMAP.patch [5]
target/linux/generic/backport-6.1/790-46-v6.9-net-dsa-mt7530-fix-improper-frames-on-all-25MHz-and-.patch [6]
target/linux/generic/backport-6.1/790-47-v6.10-net-dsa-mt7530-fix-enabling-EEE-on-MT7531-switch-on-.patch [7]
target/linux/mediatek/patches-6.1/220-v6.3-clk-mediatek-clk-gate-Propagate-struct-device-with-m.patch [8]
target/linux/mediatek/patches-6.1/222-v6.3-clk-mediatek-clk-mtk-Propagate-struct-device-for-com.patch [9]
target/linux/mediatek/patches-6.1/223-v6.3-clk-mediatek-clk-mux-Propagate-struct-device-for-mtk.patch [10]
target/linux/mediatek/patches-6.1/226-v6.3-clk-mediatek-clk-mtk-Extend-mtk_clk_simple_probe.patch [11]

Symbol changes:
MITIGATION_SPECTRE_BHI (new) [12]
SPECTRE_BHI_{ON,OFF} (deprecated) [12]

References:
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=8bf7c76a2a207ca2b4cfda0a279192adf27678d7
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=f1c3c61701a0b12f4906152c1626a5de580ea3d2
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=19643bf8c9b5bb5eea5163bf2f6a3eee6fb5b99b
[4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=e86c9db58eba290e858e2bb80efcde9e3973a5ef
[5] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=013c787d231188a6408e2991150d3c9bf9a2aa0b
[6] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=41a004ffba9b1fd8a5a7128ebd0dfa3ed39c3316
[7] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=7d51db455ca03e5270cc585a75a674abd063fa6c
[8] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=082b831488a41257b7ac7ffa1d80a0b60d98394d
[9] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=6f5f72a684a2823f21efbfd20c7e4b528c44a781
[10] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=a4fe8813a7868ba5867e42e60de7a2b8baac30ff
[11] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=c1d87d56af063c87961511ee25f6b07a5676d27d
[12] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.89&id=d844df110084ef8bd950a52194865f3f63b561ca
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
7 months agogeneric: MIPS64: fix detect_memory_region() compilation error
Shiji Yang [Mon, 29 Apr 2024 02:11:17 +0000 (02:11 +0000)]
generic: MIPS64: fix detect_memory_region() compilation error

1. Enable this feature only for 32-bit CPUs as MIPS64 can not
   access the full range unmapped uncached memory.

2. Backport this fix to the 6.1 old LTS kernel.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
7 months agoqualcommax: ipq807x: uboot-envtools: yuncore ax880
Isaev Ruslan [Sat, 27 Apr 2024 22:49:46 +0000 (01:49 +0300)]
qualcommax: ipq807x: uboot-envtools: yuncore ax880

There was no config in the uboot-envtools package, so there is no
generated /etc/fw_env.config for the fw_printenv and fw_setenv utils.
Since uboot-envtools 2024.01, there is a way to make these utils work
without /etc/fw_env.config if the DT has an env partition with the prop.:

compatible = "u-boot,env";

So, this commit adds the prop. above to the appsblenv:0 partition
in the yuncore ax880 DTS file.

Signed-off-by: Isaev Ruslan <legale.legale@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15305
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools/elfutils: remove dirname
Robert Marko [Tue, 30 Apr 2024 09:08:46 +0000 (11:08 +0200)]
tools/elfutils: remove dirname

In the 0.191 update dirname was used instead of <libgen.h> to fix the
poisoned basename error:
/usr/include/libgen.h:35:9: error: attempt to use poisoned "basename"
       35 | #define basename        __xpg_basename

However, doing this has lead to libelf.a pulling in xmalloc, xstrdup and
friends and statically linking them thus leading to a symbol name conflict
with FRR host build and anything else that links against libelf and uses
xmalloc and friends.

Well, it turns out that upstream has added a helper[1] for basename so it
can compile with musl 1.2.5 which dropped the basename declaration, but it
also means that we must NOT include <libgen.h> and that poisoned error is
intentional and added to prevent duplicate basename definitions.
This also means that for macOS we dont need to do any additional header
inclusions as the new helper takes care of basename.

So, to fix the symbol conflict we can simply drop the <dirname.h> inclusion
and build from elfutils.

Tested on Fedora 40 as well as macOS 14.4.1.

[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=a2194f6b305bf0d0b9dd49dccd0a5c21994c8eea

Fixes: #24030
Fixes: b6f025b42429 ("tools/elfutils: update to 1.91")
Link: https://github.com/openwrt/openwrt/pull/15337
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoipq40xx: fix I2C pin config on Aruba AP-303H
Ryan Salsbury [Tue, 30 Apr 2024 01:05:14 +0000 (18:05 -0700)]
ipq40xx: fix I2C pin config on Aruba AP-303H

Turn on SoC pull-ups on I2C pins, since there are no discrete pull-up
resistors on the bus.

Increase clock to 400 kHz. Both chips on the bus support 400 kHz. I
tested the ISL28022 at 4,000 reads/sec and didn't see any garbled output
or bus hangs, even with SoC drive strength reduced to 2 for the test.

Signed-off-by: Ryan Salsbury <ryanrs@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15334
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agosifiveu: drop 6.1 support
Zoltan HERPAI [Fri, 26 Apr 2024 11:33:25 +0000 (13:33 +0200)]
sifiveu: drop 6.1 support

Now that 6.6 is the default, remove the 6.1 config and patches.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosifiveu: switch default to 6.6
Zoltan HERPAI [Fri, 26 Apr 2024 11:32:45 +0000 (13:32 +0200)]
sifiveu: switch default to 6.6

Switch the default kernel to 6.6.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomediatek: switch to fitblk for JDCloud RE-CP-03
Tianling Shen [Tue, 2 Apr 2024 10:53:29 +0000 (18:53 +0800)]
mediatek: switch to fitblk for JDCloud RE-CP-03

Use the new fitblk driver.

Tested-By: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
7 months agoprocd: make mDNS TXT record parsing more solid
Christian Marangi [Mon, 29 Apr 2024 19:17:31 +0000 (21:17 +0200)]
procd: make mDNS TXT record parsing more solid

mDNS broadcast can't accept empty TXT record and would fail
registration.

Current procd_add_mdns_service checks only if the first passed arg is
empty but don't make any verification on the other args permittins
insertion of empty values in TXT record.

Example:

procd_add_mdns "blah" \
"tcp" "50" \
"1" \
"" \
"3"

Produce:

{ "blah_50": { "service": "_blah._tcp.local", "port": 50, "txt": [ "1", "", "3" ] } }

The middle empty TXT record should never be included as it's empty.

This can happen with scripts that make fragile parsing and include
variables even if they are empty.

Prevent this and make the TXT record more solid by checking every
provided TXT record and include only the non-empty ones.

The fixed JSON is the following:

{ "blah_50": { "service": "_blah._tcp.local", "port": 50, "txt": [ "1", "3" ] } }

Fixes: b0d9dcf84dd0 ("procd: update to latest git HEAD")
Reported-by: Paul Donald <newtwen@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15331
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agotoolchain: glibc: update to glibc 2.38
Kazuki H [Fri, 22 Dec 2023 14:58:16 +0000 (23:58 +0900)]
toolchain: glibc: update to glibc 2.38

This updates glibc to version 2.38.

Add --enable-crypt since the crypt function got disabled in 2.38, but we
still need it.
Also add the newly introduced --enable-fortify-source flag and hook it up
to the build system.

Switch to .zst archive while at it.

Signed-off-by: Kazuki H <kazukih0205@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/14259
[ switch to .zst and fix mirror HASH ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoqualcommax: ipq60xx: mute warning on bootcount enable compile
Christian Marangi [Mon, 29 Apr 2024 19:54:39 +0000 (21:54 +0200)]
qualcommax: ipq60xx: mute warning on bootcount enable compile

ipq60xx bootcount script include /lib/functions that produce warning
when the script is enabled on image compilation. This script is already
included by /etc/rc.common hence it's not needed.

While at it also fix the format of the switch case.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoarm-trusted-firmware-mvebu: refresh cryptopp hash
Robert Marko [Mon, 29 Apr 2024 10:04:18 +0000 (12:04 +0200)]
arm-trusted-firmware-mvebu: refresh cryptopp hash

Well, it seems that cryptopp hash was never refreshed since calling
make package/boot/arm-trusted-firmware-mvebu/check FIXUP=1 V=s does not
actually refresh the download calls hashes so refresh it manually.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
7 months agoarm-trusted-firmware-mvebu: use SOURCE_VERSION instead of VERSION
Robert Marko [Mon, 29 Apr 2024 09:58:17 +0000 (11:58 +0200)]
arm-trusted-firmware-mvebu: use SOURCE_VERSION instead of VERSION

Since ("download: don't overwrite VERSION variable") trying to download the
required sources for mvebu ATF will fail with:
Makefile:247: *** Download/mox-boot-builder is missing the SOURCE_VERSION field..  Stop.

This also broke the buildbot mvebu/cortex-a53 builds.

So, fix it by switching to SOURCE_VERSION instead.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
7 months agomediatek: fix remaining invalid MT7531 switch reg IDs
Felix Fietkau [Mon, 29 Apr 2024 09:56:26 +0000 (11:56 +0200)]
mediatek: fix remaining invalid MT7531 switch reg IDs

See commit 8b66f1a06d05afbc1450978f6e20516c8308da25:
"mediatek: correct address of MT753x switch IC"

Fixes: ac8bfe316b81 ("generic: 6.1, 6.6: mt7530: import accepted patches")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agoapk: add package
Paul Spooren [Sun, 17 Mar 2024 17:11:48 +0000 (18:11 +0100)]
apk: add package

APK (Alpine Package Keeper) is the package manager of Alpine Linux and
has multiple advantages over OPKG. While Alpine uses APK version 2, this
commit adds version 3 with a heavily optimised database structure and
additional feature making it suitable for OpenWrt.

This commit will be followed by many more to add APK build capabilities
to the OpenWrt build system, firstly enabling side by side builds of APK
and OPKG packages, later replacing OPKG entirely.

Signed-off-by: Paul Spooren <mail@aparcar.org>
7 months agogeneric: 6.6: add kernel missing symbol CONFIG_SPI_BCMBCA_HSSPI
Mieczyslaw Nalewaj [Mon, 29 Apr 2024 05:19:46 +0000 (07:19 +0200)]
generic: 6.6: add kernel missing symbol CONFIG_SPI_BCMBCA_HSSPI

Add missing symbol CONFIG_SPI_BCMBCA_HSSPI causing bcm4908 compilation errors.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/15320
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agodownload: don't overwrite VERSION variable
Paul Spooren [Wed, 17 Apr 2024 05:07:41 +0000 (07:07 +0200)]
download: don't overwrite VERSION variable

In package-defaults.mk the VERSION variable contains the final package
version, which is a combination of `PKG_VERSION`, `PKG_RELEASE` and if
used, parameters of `PKG_SOURCE_VERSION`. While this works fine for
building, within the package Makefile the content VERSION varies:

When building a package from a release tarball, the content of VERSION
contains the actual package version, however when building from source
(i.e. Git), the VERSION is overwritten by `PKG_SOURCE_VERSION`.

To fix the overwrite, this commit switches from `VERSION` in download.mk
to `SOURCE_VERSION` which isn't used anywhere else yet.

As a result, Makefiles may pass the package version to be included
inside the binary.

Signed-off-by: Paul Spooren <mail@aparcar.org>
7 months agompc85xx: convert WS-AP3710i to simpleImage wrapper
David Bauer [Thu, 25 Apr 2024 14:53:55 +0000 (16:53 +0200)]
mpc85xx: convert WS-AP3710i to simpleImage wrapper

Convert the Enterasys WS-AP3710i access point to use the simpleImage
wrapper.

This is necessary, as the bootlaoder does not align the DTB correctly
(and does not support altering the FDT loadaddress). Booting images with
kernels 5.15 and later can break depending on the alignment on the DTB
within the FIT image.

Signed-off-by: David Bauer <mail@david-bauer.net>
7 months agombedtls: Remove Kconfig options removed from mbedtls 3.6.0
Hauke Mehrtens [Sun, 28 Apr 2024 23:29:52 +0000 (01:29 +0200)]
mbedtls: Remove Kconfig options removed from mbedtls 3.6.0

These options are not available in mbedtls 3.6.0 and selecting them
causes an error.

MBEDTLS_CERTS_C was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/1aec64642cd0b9490c96fdd1fa9816741d93fce4

MBEDTLS_XTEA_C was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/10e8cf5fef7e062927bfbec69ad85fbf491b4299

MBEDTLS_SSL_TRUNCATED_HMAC was removed in:
https://github.com/Mbed-TLS/mbedtls/commit/4a7010d1aaae937dfa328ef253d70d04b3b260ff

Fixes: 0e0664264386 ("mbedtls: Update to version 3.6.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agolibaudit: update to 3.1.4, join with daemon and utils, rename
Marius Dinu [Sun, 31 Mar 2024 11:22:18 +0000 (14:22 +0300)]
libaudit: update to 3.1.4, join with daemon and utils, rename

Changes:
- new URL for sources (old address is dead)
- daemon and utils from packages feed are merged in here
  - only build once
  - no need to update at the same time in both places
- update to v3.1.4
  - removed unneeded patches
  - added audisp-syslog
  - removed audispd (no longer exists)
- rename and move to package/utils/audit
  - update new path in one dependent package

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
7 months agotoolchain: binutils: switch to version 2.42 by default
Nick Hainke [Wed, 7 Feb 2024 11:27:55 +0000 (12:27 +0100)]
toolchain: binutils: switch to version 2.42 by default

Change the default binutils version to 2.42.

Tested-by: Jonathan Lancett <j.lancett@ntlworld.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agomalta: refresh kernel 6.6 configuration
Hauke Mehrtens [Wed, 13 Mar 2024 16:58:21 +0000 (17:58 +0100)]
malta: refresh kernel 6.6 configuration

This refreshes the configuration on top of kernel 6.6 and activates it
as test kernel configuration.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agokernel/malta: Restore kernel files for v6.1
Tony Ambardar [Sat, 20 Apr 2024 02:31:42 +0000 (19:31 -0700)]
kernel/malta: 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.

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

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agokernel/malta: Create kernel files for v6.6 (from v6.1)
Tony Ambardar [Sat, 20 Apr 2024 02:31:42 +0000 (19:31 -0700)]
kernel/malta: 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: Tony Ambardar <itugrok@yahoo.com>
7 months agoscripts/kernel_bump: Fix commit text formatting
Tony Ambardar [Sat, 20 Apr 2024 04:42:53 +0000 (21:42 -0700)]
scripts/kernel_bump: Fix commit text formatting

Text of a commit message body should wrap at 75 characters. Manual commits
are expected to do so, but automated commits *must* do so to avoid adding
repeated ugly commits.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 months agouqmi: set dangling-pointer as error
Jean Thomas [Wed, 24 Apr 2024 11:12:11 +0000 (13:12 +0200)]
uqmi: set dangling-pointer as error

With "ebfe8b4 CMakeLists: set no-dangling-pointer" the compilation
option is set in uqmi, and can therefore be removed from no-error.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
7 months agouqmi: update to git HEAD
Jean Thomas [Wed, 24 Apr 2024 09:36:26 +0000 (11:36 +0200)]
uqmi: update to git HEAD

e7207be uqmi: print radio interfaces in serving system command
6ef41d6 uqmi: create function to print radio interface string
e25d042 uqmi: Add basic 5G NR support
3e782be uqmi: sync data from libqmi project
368d46c uqmi: support C reserved keywords in upstream JSON files
02e42c0 reorganize source code in common and uqmi specific parts
4591f0a .gitignore build/ directories
2b57ee1 uqmi: commands-uim: fix uninitialized use of card_application_state
7c77e77 data/code-gen: add support for indications
ddbf864 qmi-struct.h: add missing includes
5320c1d move qmi_get_error_str to into utils.c
1503bc7 dev.c: add missing import strings.h
bae945f commands-nas: add missing includes
9ffd0e2 commands: make `struct blob_buf status` public
a4fbdcc commands-nas: fix gcc warning
8ff632a dev.c: add comment to qmi_request_wait()
a043a74 CMakeLists: refactor SOURCES variable to allow later adding uqmid
ebfe8b4 CMakeLists: set no-dangling-pointer
c47125d CMakeLists: improve generated files
0f64b69 CMakeLists: update cmake minimum version to 3.5

As the built uqmi binary is now moved to a dedicated directory,
update the Makefile accordingly.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
7 months agolibunwind: update to 1.8.1
Weijie Gao [Thu, 14 Mar 2024 13:56:38 +0000 (21:56 +0800)]
libunwind: update to 1.8.1

Rebased patches:
- 003-fix-missing-ef_reg-defs-with-musl.patch
- 004-ppc-musl.patch

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
7 months agogrub2: update to 2.12
Weijie Gao [Sat, 6 Jan 2024 19:35:39 +0000 (03:35 +0800)]
grub2: update to 2.12

compile tested: x86_64,i386,loongarch64

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
{Refresh patches}
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 months agomediatek: bpi-r4: store random MAC addresses for the BPi-R4
Daniel Golle [Sun, 28 Apr 2024 02:03:43 +0000 (03:03 +0100)]
mediatek: bpi-r4: store random MAC addresses for the BPi-R4

Despite coming with multiple I2C EEPROMs supposedly dedicated for that
purpose, the BPi-R4 does not seem to have factory assigned MAC addresses.
Hence, just like for all other BPi boards, store a randomly generated
MAC address on first boot and derive WAN and Wi-Fi MAC addresses from
that as well. Not perfect, but better than random on every boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agomediatek: bpi-r3-mini: persist WiFi and WAN MAC addresses
Daniel Golle [Sun, 28 Apr 2024 02:00:50 +0000 (03:00 +0100)]
mediatek: bpi-r3-mini: persist WiFi and WAN MAC addresses

Derive WAN and WiFi MAC addresses from the (random) MAC address stored
in the U-Boot environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
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>