Skip to content

Commit 20c3196

Browse files
Merge branch 'openwrt:main' into wax206
2 parents 95faf30 + 68631b1 commit 20c3196

226 files changed

Lines changed: 1967 additions & 21289 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
#!/bin/sh
22

3-
CFG=$1
3+
REAL_CFG=$1
44

5-
[ -n "$CFG" ] || CFG=/etc/board.json
5+
[ -n "$REAL_CFG" ] || REAL_CFG=/etc/board.json
66

7-
[ -d "/etc/board.d/" -a ! -s "$CFG" ] && {
7+
if [ -d "/etc/board.d/" ] && [ ! -s "$REAL_CFG" ]; then
8+
# Use temp file to prevent incomplete file on power-cut, CFG is used by the sourced script to read/write the file
9+
CFG="$(dirname "$REAL_CFG")/.$(basename "$REAL_CFG").tmp"
10+
rm -f "$CFG" || exit
811
for a in $(ls /etc/board.d/*); do
9-
[ -s $a ] || continue;
10-
$(. $a)
12+
[ -s "$a" ] || continue
13+
(. "$a")
1114
done
12-
}
15+
fi
1316

14-
[ -s "$CFG" ] || return 1
17+
if [ -s "$CFG" ]; then
18+
mv "$CFG" "$REAL_CFG" || exit
19+
else
20+
rm -f "$CFG"
21+
exit 1
22+
fi

package/boot/uboot-kirkwood/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ define U-Boot/dns320l
2525
BUILD_DEVICES:=dlink_dns320l
2626
endef
2727

28+
define U-Boot/dns325
29+
NAME:=D-Link DNS-325 A1
30+
BUILD_DEVICES:=dlink_dns-325-a1
31+
endef
32+
2833
define U-Boot/dockstar
2934
NAME:=Seagate DockStar
3035
BUILD_DEVICES:=seagate_dockstar
@@ -112,6 +117,7 @@ endef
112117

113118
UBOOT_TARGETS := \
114119
dns320l \
120+
dns325 \
115121
dockstar dockstar_second_stage \
116122
goflexhome \
117123
ib62x0 ib62x0_second_stage \
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From e7e650e8bdb09ac46da017250394f8c589df10bb Mon Sep 17 00:00:00 2001
2+
From: Tom Rini <trini@konsulko.com>
3+
Date: Mon, 14 Sep 2020 15:48:47 -0400
4+
Subject: [PATCH] arm: kirkwood: dns325: Correct CONFIG_NR_DRAM_BANKS parameter
5+
6+
Testing on a DNS-325 NAS has shown that in order for the device to work
7+
we need to set CONFIG_NR_DRAM_BANKS to 1 and not 2.
8+
9+
Tested-by: Dmitry N. Kolesnikov <dk.diklab@gmail.com>
10+
Reported-by: Dmitry N. Kolesnikov <dk.diklab@gmail.com>
11+
Cc: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
12+
Signed-off-by: Tom Rini <trini@konsulko.com>
13+
---
14+
configs/dns325_defconfig | 2 +-
15+
1 file changed, 1 insertion(+), 1 deletion(-)
16+
17+
--- a/configs/dns325_defconfig
18+
+++ b/configs/dns325_defconfig
19+
@@ -6,7 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x600000
20+
CONFIG_TARGET_DNS325=y
21+
CONFIG_ENV_SIZE=0x20000
22+
CONFIG_ENV_OFFSET=0xE0000
23+
-CONFIG_NR_DRAM_BANKS=2
24+
+CONFIG_NR_DRAM_BANKS=1
25+
CONFIG_IDENT_STRING="\nD-Link DNS-325"
26+
# CONFIG_SYS_MALLOC_F is not set
27+
CONFIG_BOOTDELAY=3
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
--- a/configs/dns325_defconfig
2+
+++ b/configs/dns325_defconfig
3+
@@ -27,7 +27,7 @@ CONFIG_CMD_FAT=y
4+
CONFIG_CMD_JFFS2=y
5+
CONFIG_CMD_MTDPARTS=y
6+
CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
7+
-CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs)"
8+
+CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(u-boot),0x20000@0xe0000(u-boot-env),-@0x100000(ubi)"
9+
CONFIG_CMD_UBI=y
10+
CONFIG_ISO_PARTITION=y
11+
CONFIG_OF_CONTROL=y
12+
--- a/include/configs/dns325.h
13+
+++ b/include/configs/dns325.h
14+
@@ -66,46 +66,12 @@
15+
*/
16+
17+
#define CONFIG_EXTRA_ENV_SETTINGS \
18+
- "stdin=serial\0" \
19+
- "stdout=serial\0" \
20+
- "stderr=serial\0" \
21+
- "loadaddr=0x800000\0" \
22+
- "autoload=no\0" \
23+
- "console=ttyS0,115200\0" \
24+
- "mtdparts="CONFIG_MTDPARTS_DEFAULT \
25+
- "optargs=\0" \
26+
- "bootenv=uEnv.txt\0" \
27+
- "importbootenv=echo Importing environment ...; " \
28+
- "env import -t ${loadaddr} ${filesize}\0" \
29+
- "loadbootenv=fatload usb 0 ${loadaddr} ${bootenv}\0" \
30+
- "setbootargs=setenv bootargs console=${console} " \
31+
- "${optargs} " \
32+
- "${mtdparts} " \
33+
- "root=${bootenvroot} " \
34+
- "rootfstype=${bootenvrootfstype}\0" \
35+
- "subbootcmd=run setbootargs; " \
36+
- "if run bootenvloadimage; then " \
37+
- "bootm ${loadaddr};" \
38+
- "fi;\0" \
39+
- "nandroot=ubi0:rootfs ubi.mtd=rootfs\0" \
40+
- "nandrootfstype=ubifs\0" \
41+
- "nandloadimage=nand read ${loadaddr} kernel\0" \
42+
- "setnandbootenv=echo Booting from nand ...; " \
43+
- "setenv bootenvroot ${nandroot}; " \
44+
- "setenv bootenvrootfstype ${nandrootfstype}; " \
45+
- "setenv bootenvloadimage ${nandloadimage}\0"
46+
+ "mtdids="CONFIG_MTDIDS_DEFAULT "\0" \
47+
+ "mtdparts="CONFIG_MTDPARTS_DEFAULT "\0"
48+
49+
#define CONFIG_BOOTCOMMAND \
50+
- "if test -n ${bootenv} && usb start; then " \
51+
- "if run loadbootenv; then " \
52+
- "echo Loaded environment ${bootenv} from usb;" \
53+
- "run importbootenv;" \
54+
- "fi;" \
55+
- "if test -n ${bootenvcmd}; then " \
56+
- "echo Running bootenvcmd ...;" \
57+
- "run bootenvcmd;" \
58+
- "fi;" \
59+
- "fi;" \
60+
- "run setnandbootenv subbootcmd;"
61+
+ "ubi part ubi; " \
62+
+ "ubi read 0x800000 kernel; " \
63+
+ "bootm 0x800000"
64+
65+
#endif /* _CONFIG_DNS325_H */

package/boot/uboot-kirkwood/patches/200-openwrt-config.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,23 @@
214214
+CONFIG_FIT_VERBOSE=y
215215
CONFIG_LZMA=y
216216
+CONFIG_LZO=y
217+
--- a/configs/dns325_defconfig
218+
+++ b/configs/dns325_defconfig
219+
@@ -48,3 +48,8 @@ CONFIG_USB=y
220+
CONFIG_DM_USB=y
221+
CONFIG_USB_EHCI_HCD=y
222+
CONFIG_USB_STORAGE=y
223+
+CONFIG_CMD_BOOTZ=y
224+
+CONFIG_FIT=y
225+
+CONFIG_FIT_VERBOSE=y
226+
+CONFIG_LZMA=y
227+
+CONFIG_LZO=y
228+
--- a/include/configs/dns325.h
229+
+++ b/include/configs/dns325.h
230+
@@ -74,4 +74,6 @@
231+
"ubi read 0x800000 kernel; " \
232+
"bootm 0x800000"
233+
234+
+#include "openwrt-kirkwood-common.h"
235+
+
236+
#endif /* _CONFIG_DNS325_H */

package/boot/uboot-tools/uboot-envtools/files/kirkwood

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ checkpoint,l-50|\
1616
cloudengines,pogoe02|\
1717
cloudengines,pogoplugv4|\
1818
dlink,dns320l|\
19+
dlink,dns-325-a1\
1920
globalscale,sheevaplug|\
2021
iom,ix2-200|\
2122
iom,ix4-200d|\
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 8fd48529849310a68500d1d546f246d44697bbed Mon Sep 17 00:00:00 2001
2+
From: Christian Marangi <ansuelsmth@gmail.com>
3+
Date: Tue, 25 Nov 2025 14:56:08 +0100
4+
Subject: [PATCH] wifi: ath11k: fix rssi station dump for IPQ5018 and QCN6122
5+
6+
Commit 031ffa6c2cd3 ("wifi: ath11k: fix rssi station dump not updated in
7+
QCN9074") didn't account for IPQ5018 and QCN6122 WiFi card that are
8+
based on QCN9074.
9+
10+
Update the .mpdu_info_get_peerid to use the QCN9074 variant to correctly
11+
receive consistent RSSI station data.
12+
13+
Reported-by: Scott Mercer <TheRootEd24@gmail.com>
14+
Suggested-by: Scott Mercer <TheRootEd24@gmail.com>
15+
Tested-by: Scott Mercer <TheRootEd24@gmail.com>
16+
Fixes: 031ffa6c2cd3 ("wifi: ath11k: fix rssi station dump not updated in QCN9074")
17+
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
18+
---
19+
drivers/net/wireless/ath/ath11k/hw.c | 2 +-
20+
1 file changed, 1 insertion(+), 1 deletion(-)
21+
22+
--- a/drivers/net/wireless/ath/ath11k/hw.c
23+
+++ b/drivers/net/wireless/ath/ath11k/hw.c
24+
@@ -1175,7 +1175,7 @@ const struct ath11k_hw_ops ipq5018_ops =
25+
.rx_desc_get_attention = ath11k_hw_qcn9074_rx_desc_get_attention,
26+
.reo_setup = ath11k_hw_ipq5018_reo_setup,
27+
.rx_desc_get_msdu_payload = ath11k_hw_qcn9074_rx_desc_get_msdu_payload,
28+
- .mpdu_info_get_peerid = ath11k_hw_ipq8074_mpdu_info_get_peerid,
29+
+ .mpdu_info_get_peerid = ath11k_hw_qcn9074_mpdu_info_get_peerid,
30+
.rx_desc_mac_addr2_valid = ath11k_hw_ipq9074_rx_desc_mac_addr2_valid,
31+
.rx_desc_mpdu_start_addr2 = ath11k_hw_ipq9074_rx_desc_mpdu_start_addr2,
32+
.get_ring_selector = ath11k_hw_ipq8074_get_tcl_ring_selector,

package/libs/libtraceevent/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=libtraceevent
4-
PKG_VERSION:=1.8.4
4+
PKG_VERSION:=1.8.6
55
PKG_RELEASE:=1
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
88
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/
9-
PKG_HASH:=dc456d4d2bf4b4cd4d0c737d3374a8093f9e5ca18c1d7fc2279a4bf41e613121
9+
PKG_HASH:=812547d2f7b248485c183be2799b7041038ee44183000705609754b128c84c6f
1010

1111
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
1212

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From bdd92b59fe63553712fba57cc64cf8fe6e3e824a Mon Sep 17 00:00:00 2001
2+
From: Christian Marangi <ansuelsmth@gmail.com>
3+
Date: Tue, 25 Nov 2025 13:25:28 +0100
4+
Subject: [PATCH] tests: pthread-rwlock: better support MUSL
5+
6+
MUSL doesn't provide PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP as
7+
it's only glibc and as the MACRO say, it's NP (not portable).
8+
9+
Check for the presence of it and disable overwriting the function
10+
accordingly.
11+
12+
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13+
---
14+
tests/pthread-rwlock.c | 4 ++--
15+
1 file changed, 2 insertions(+), 2 deletions(-)
16+
17+
--- a/tests/pthread-rwlock.c
18+
+++ b/tests/pthread-rwlock.c
19+
@@ -49,7 +49,7 @@ pthread_rwlockattr_destroy (_GL_UNUSED p
20+
return 0;
21+
}
22+
23+
-#elif PTHREAD_RWLOCK_BAD_WAITQUEUE
24+
+#elif PTHREAD_RWLOCK_BAD_WAITQUEUE && defined PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP
25+
26+
/* Override pthread_rwlockattr_init, to use the kind PREFER_WRITER_NONRECURSIVE
27+
(or possibly PREFER_WRITER) instead of the kind DEFAULT. */
28+
@@ -388,7 +388,7 @@ pthread_rwlock_destroy (pthread_rwlock_t
29+
30+
# else
31+
32+
-# if PTHREAD_RWLOCK_BAD_WAITQUEUE
33+
+# if PTHREAD_RWLOCK_BAD_WAITQUEUE && defined PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP
34+
35+
/* Override pthread_rwlock_init, to use the kind PREFER_WRITER_NONRECURSIVE
36+
(or possibly PREFER_WRITER) instead of the default, when no

package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function iface_vlan(interface, config, vlans) {
288288
if (vlan.config.name && vlan.config.vid) {
289289
let ifname = `${config.ifname}-${vlan.config.name}`;
290290
file.write(`${vlan.config.vid} ${ifname}\n`);
291-
netifd.set_vlan(interface, k, ifname);
291+
netifd.set_vlan(interface, ifname, k);
292292
}
293293
file.close();
294294

@@ -307,9 +307,6 @@ function iface_vlan(interface, config, vlans) {
307307
}
308308

309309
function iface_wpa_stations(config, stas) {
310-
if (!length(stas))
311-
return;
312-
313310
let path = `/var/run/hostapd-${config.ifname}.psk`;
314311

315312
let file = fs.open(path, 'w');
@@ -326,9 +323,6 @@ function iface_wpa_stations(config, stas) {
326323
}
327324

328325
function iface_sae_stations(config, stas) {
329-
if (!length(stas))
330-
return;
331-
332326
let path = `/var/run/hostapd-${config.ifname}.sae`;
333327

334328
let file = fs.open(path, 'w');

0 commit comments

Comments
 (0)