]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
8 hours agoath79: trendnet,tew-823dru: use nvmem 16287/head
Rosen Penev [Tue, 11 Jun 2024 22:37:37 +0000 (15:37 -0700)] 
ath79: trendnet,tew-823dru: use nvmem

Removes deprecated userspace handling.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16287
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 hours agoramips: zyxel wsm20: set mac address in dts 19799/head
Rosen Penev [Thu, 14 Aug 2025 00:22:35 +0000 (17:22 -0700)] 
ramips: zyxel wsm20: set mac address in dts

Support in mt76 has existed for quite a while. Use it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19799
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 hours agomediatek: filogic: support WAVLINK WL-WN586X3 Rev B 19785/head
Zhenfu Shi [Wed, 20 Aug 2025 04:00:26 +0000 (14:00 +1000)] 
mediatek: filogic: support WAVLINK WL-WN586X3 Rev B

This commit adds support for the WAVLINK WL-WN586X3 Rev B, which swaps
the 16MB NOR flash for an 128MB NAND flash chip, and uses UBI for
data partition. This commit utilizes the previous submitted dtsi that
includes common hardware for a few Wavlink routers.

Hardware
--------
- SOC: MediaTek MT7981B
- RAM: 256MB DDR3
- Flash: 128MB SPI-NAND (ESMT F50L1G41LB)
- Ethernet: 2x1Gb Lan 1x1Gb Wan
- WiFi: MediaTek MT7981B 2x2 DBDC 802.11ax 2T2R (2.4/5) with 4 external and 1 internal antennae
- LEDs: 2xLan 1x Wan 1x WIFI 1xSTATUS

Installation
------------
Flashing over the vendor WebUI has been tested and unsuccessful (YMMV).
The image need to be flashed via TFTP which can be activated over the onboard UART serial console:
1. Connect UART:  TX->board RX, RX->board TX, GND->board GND.
2. Connect PC to router lan port.
3. Setup the tftp server on PC, set IP to 192.168.10.100.
4. Power on the device. Interrupt boot countdown at uboot boot menu and select 2. Upgrade firmware option.
5. Input the image name and start flashing.

Sample uboot menu:
```
  *** U-Boot Boot Menu ***

      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console
```

NOTE: Do not use the intermediate image here which is for Rev A only:
https://github.com/themaverickdm/firmware-misc/tree/main/wavlink/wl-wn586x3

MAC Addresses
-------------
LAN: 80:3F:5D:xx:xx:x1 (hw, 0x44e, ASCII encoded)
WAN: 80:3F:5D:xx:xx:x2 (hw, 0x460, ASCII encoded)
 2G: 80:3F:5D:xx:xx:x3 (factory, 0x4, raw binary, also on label)
 5G: 80:3F:5D:xx:xx:x3 (Same as 2G)

Signed-off-by: Zhenfu Shi <i0ntempest@i0ntempest.com>
Link: https://github.com/openwrt/openwrt/pull/19785
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 hours agoramips: CREALITY BOX WB01 19686/head
Axel Sepulveda [Wed, 19 Feb 2025 17:19:03 +0000 (18:19 +0100)] 
ramips: CREALITY BOX WB01

CREALITY BOX WB01 is small footprint router based on MediaTek MT7688,
is a device intended to interface Creality brand 3D printers to a cloud service.

Specifications:
- SoC: MediaTek MT7688AN @ 580MHz
- RAM: DDR2 128M (Winbond W971GG6SB-25)
- Flash: BoyaMicro  BY25Q128AS (16 MiB, SPI NOR) handled by BoHong bh25q128as driver
- WiFi: 2.4GHz 1T1R internal panel antenna
- Ethernet: 1x LAN (10/100)
- USB: 2x USB2.0 port (Genesys Logic GL850G 2 port USB 2.0 hub)
- UART: 3.3V, TX, RX, GND / 56700 8N1 / only pads on PCB
- microSD SD-XC Class 10 slot
- micro USB input (for power only)
- reset button
- FCC ID: 2AXH6CREALITY-BOX

MAC addresses as verified by OEM firmware:
vendor   OpenWrt    source
LAN      eth0       factory 0x2e
2.4GHz   phy0-ap0   factory 0x04 (label)

LEDs
color    vendor                OpenWRT     configurable
red      SD card activity        -             yes
green    Cloud connectivity    status          yes
blue     LAN activity          eth0            yes
yellow   WIFI activity         phy0tpt         yes

Return to OEM & debrick
- download "cxsw_update.tar.bz2" from manufacturer site
- extract archive to FAT32 USB stick root
- put USB stick in USB2 port
- press & hold reset button
- power on device while holding reset
- wait approx 10 sec
- release reset button

Installation with SD Card
- power on device
- wait for device to finish starting
- copy "openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2"
  to root of FAT32 SD card
- rename openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2
  to "cxsw_update.tar.bz2"
- put SD card in device
- device will install OpenWRT on internal flash

Installation via telnet:
- extract the "factory.bin" and "install.sh" from newly created
  openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2
  to FAT32 USB stick root
- telnet to 10.10.10.254, user: root, password: cxswprin
- plug the USB in USB1 port
- cd /media/usbdisk/
- sh install.sh
- device will write "factory.bin" to internal flash

Co-authored-by: George Brooke <figgyc@figgyc.uk>
Co-authored-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
Co-authored-by: shivajiva101 <github.com/shivajiva101>
Co-authored-by: Axel Sepulveda <ansepulveda@uc.cl>
Signed-off-by: Axel Sepulveda <ansepulveda@uc.cl>
Link: https://github.com/openwrt/openwrt/pull/19686
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: remove mt7531 switch reset delay time properties 19741/head
Shiji Yang [Sun, 24 Aug 2025 06:12:54 +0000 (14:12 +0800)] 
mediatek: dts: remove mt7531 switch reset delay time properties

mt7531 switch reset delay time is hard coded in the driver. The
"reset-assert-us" and "reset-deassert-us" won't take effect.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agouboot-mediatek: adjust the reserved memory regions
Shiji Yang [Sun, 10 Aug 2025 12:16:21 +0000 (20:16 +0800)] 
uboot-mediatek: adjust the reserved memory regions

* Increase mt7986 ATF reserved memory to 256 kiB to follow the linux
  kernel and Trusted Firmware-A changes.

* Remove unnecessary reserved memory region for the WiFi hardware. The
  u-boot can not drive the WiFi hardware. Hence we don't need to keep
  this memory region.

* Remove useless node labels and update comments.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: increase mt7986 ATF reserved memory to 256 kiB
Shiji Yang [Sun, 10 Aug 2025 12:15:12 +0000 (20:15 +0800)] 
mediatek: dts: increase mt7986 ATF reserved memory to 256 kiB

The latest Mediatek open-source Trusted Firmware-A project has
reserved 256 KiB for BL2 and BL31.

Link: https://lore.kernel.org/all/OSBPR01MB16701BDF64C43EF07390C830BC29A@OSBPR01MB1670.jpnprd01.prod.outlook.com/
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: remove some useless spaces
Shiji Yang [Sat, 9 Aug 2025 02:40:09 +0000 (10:40 +0800)] 
mediatek: dts: remove some useless spaces

Use tabs to align and remove some unnecessary spaces.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: fix some minor dtc warnings
Shiji Yang [Sat, 9 Aug 2025 02:05:52 +0000 (10:05 +0800)] 
mediatek: dts: fix some minor dtc warnings

This patch fixes the following dtc warnings for the recently added
boards:

../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts:329.35-331.4: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/macaddr@004: unit name should not have leading 0s
../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts:332.35-334.4: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/macaddr@02a: unit name should not have leading 0s
../dts/mt7981b-iptime-ax3000q.dts:267.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-iptime-ax3000q.dts:273.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-iptime-ax3000sm.dts:269.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-iptime-ax3000sm.dts:275.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-snr-snr-cpe-ax2.dts:330.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-snr-snr-cpe-ax2.dts:336.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
../dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso:14.5-15: Warning (reg_format): /fragment@1/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
mt7988a-rfb-emmc.dtso:34.5-15: Warning (reg_format): /fragment@0/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
mt7988a-rfb-snfi-nand.dtso:29.7-33: Warning (reg_format): /fragment@0/__overlay__/flash@0/partitions/partition@0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
mt7988a-rfb-snfi-nand.dtso:35.7-35: Warning (reg_format): /fragment@0/__overlay__/flash@0/partitions/partition@200000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
mt7988a-rfb-sd.dtso:32.5-15: Warning (reg_format): /fragment@0/__overlay__/card@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: mt7981: add back #address-cells and #size-cells to eth node
Shiji Yang [Fri, 8 Aug 2025 13:10:24 +0000 (21:10 +0800)] 
mediatek: dts: mt7981: add back #address-cells and #size-cells to eth node

They were lost when ported to the 6.12 kernel.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: use dt-bindings enumerated drive strength values
Shiji Yang [Sat, 9 Aug 2025 02:45:39 +0000 (10:45 +0800)] 
mediatek: dts: use dt-bindings enumerated drive strength values

The Mediatek pinctrl driver can only accepts drive-strength values
enumerated in "dt-bindings/pinctrl/mt65xx.h".

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: convert pinctrl bias to the Linux generic style
Shiji Yang [Fri, 8 Aug 2025 13:05:10 +0000 (21:05 +0800)] 
mediatek: dts: convert pinctrl bias to the Linux generic style

There are two types properties here that can control the pin bias
resistors. "mediatek,pull-{up,down}-adv" and "bias-pull-{up,down}"
actually do the same thing[1]. The first type is customized by the
Mediatek and the second type is widely used in the Linux pinctrl
framework. To avoid confusing developers, unify pinctrl bias to the
new Linux generic style.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cafe19db7751269bf6b4dd2148cbfa9fbe91d651
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 hours agomediatek: dts: fix the broken memory node
Shiji Yang [Fri, 8 Aug 2025 12:53:58 +0000 (20:53 +0800)] 
mediatek: dts: fix the broken memory node

Add the missing "device_type" property to fix the memory node. The
Linux kernel can not get the memory size without it. Though u-boot
can automatically fixup the memory node by adding the "device_type"
and "reg" properties if the CONFIG_ARCH_FIXUP_FDT_MEMORY symbol is
enabled, it's better not to rely on this optional feature. This
patch also adds the reg address for the memory node name to follow
the naming rules.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
17 hours agoudebug: update to Git HEAD (2025-08-24)
Felix Fietkau [Sun, 24 Aug 2025 05:18:43 +0000 (07:18 +0200)] 
udebug: update to Git HEAD (2025-08-24)

6e4ffe2c6657 ucode: add function for getting the number of entries in a snapshot
a62edd89255b ucode: add support for fetching kernel tracepoint events
edeb4d6dc690 udebug-cli: add support for streaming tracing data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
24 hours agoath10k-ct-firmware: update wave2 chip firmware to latest beta version 19042/head
Shiji Yang [Fri, 6 Jun 2025 12:32:26 +0000 (20:32 +0800)] 
ath10k-ct-firmware: update wave2 chip firmware to latest beta version

Release Notes:

* Support enabling/disabling rts/cts. Not sure if this really works as
  hoped though.

* Improved compiler options to build smaller sized binaries.

* Sept 15, 2022:  Fix per-peer txpower to not over-ride tpc when value
  is 0 (ie, not set yet). This in turn fixes TPC over-ride through the
  txo path.

* April 4, 2023:  Fix uninitialized minccapwr threshold variables,
  reported by Sebastian.

Candela Technologies has already used this beta firmware in their
commercial product "LANforge". And the -ct firmware homepage states
that "This is code is not being changed much, and should be considered
for stable use now." On QCA9888 and IPQ4019, I didn't catch any speed
or stability issues compared to the previous version. Therefore, I
think it is worth updating this beta version.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19042
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
24 hours agoath10k-ct-firmware: update qca988X firmware to latest beta version
Shiji Yang [Fri, 6 Jun 2025 12:32:26 +0000 (20:32 +0800)] 
ath10k-ct-firmware: update qca988X firmware to latest beta version

Release Notes:

* Attempt to fix crash in scanning logic by making probe_timer
  ignore re-arm.

Candela Technologies has already used this beta firmware in their
commercial product "LANforge". On QCA9882, I didn't catch any speed
or stability issues compared to the previous version. Therefore, I
think it is worth updating this beta version.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19042
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
24 hours agoath10k-ct-firmware: update to latest stable firmware 2021.11.08
Shiji Yang [Fri, 6 Jun 2025 12:32:26 +0000 (20:32 +0800)] 
ath10k-ct-firmware: update to latest stable firmware 2021.11.08

Release Notes:

* Fall 2021: Optimize compiler options for memory usage and performance.

* Jan 17 2021: Enable peer fixed rate feature (S.G)

Run-tested: QCA9882, QCA9887, QCA9888 and IPQ4019.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19042
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
24 hours agorealtek: rtl93xx: fix incorrect destination port selection 19802/head
Issam Hamdi [Fri, 28 Mar 2025 09:39:44 +0000 (10:39 +0100)] 
realtek: rtl93xx: fix incorrect destination port selection

When testing LLDP and STP, we observed that locally generated multicast
packets (e.g. LLDP, STP) were not restricted to the designated output
port(s). For example, when transmitting on `lan1`, the same packet was also
forwarded to other ports such as `lan2`.

Steps to reproduce:

1. Configure lldpd to use `lan1` in UCI and restart the service
2. Connect devices to `lan1` and `lan2`
3. Observe that the device on `lan2` still receives LLDP packets

The issue was caused by an incorrect `FWD_TYPE` setting in the TX CPU TAG,
which failed to enforce the selected egress port(s).

Fix this by updating the TX CPU TAG to set `FWD_TYPE` correctly, ensuring
that locally generated packets are transmitted only on the intended
port(s).

Signed-off-by: Issam Hamdi <ih@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19802
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
25 hours agomediatek: Add support for Acer Predator Connect W6x 19754/head
Qing W [Thu, 21 Aug 2025 22:55:42 +0000 (18:55 -0400)] 
mediatek: Add support for Acer Predator Connect W6x

Product name: Acer Predator Connect W6x
link: https://www.acer.com/us-en/predator/networking/wi-fi/predator-connect-w6x/pdp/FF.G2TTA.001
* Specifications:

SOC: MT7986AV
RAM: 1024MB
Flash: 256 MB SPI NAND
Ports: 4 LAN (1G) & 1 WAN (2.5G)
WIFI: MT7976GN + MT7976AN
LED: 1, ws2812b controller

* Installation via UART:

1. Configure TFTP server with IP 192.168.1.66. Copy `openwrt-mediatek-filogic-acer_predator-w6x-initramfs-kernel.bin` to TFTP root and rename to `predator.bin`
2. Interrupt boot by pressing 0 on startup or select `U-Boot Console` in U-Boot Boot Menu.
3. Run setenv `serverip 192.168.1.66; setenv ipaddr 192.168.1.1; tftpboot 0x46000000 predator.bin; fdt addr $(fdtcontroladdr); fdt rm /signature; bootm` in uboot console.
4. Wait for boot complete on Openwrt initramfs env.

** You can back up the MTD partitions at this point. Refer to Backup Instructions section.

5. On client PC, transfer `openwrt-mediatek-filogic-acer_predator-w6x-squashfs-sysupgrade.bin` to /tmp/ - `scp -O openwrt-mediatek-filogic-acer_predator-w6x-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/sysupgrade.bin`
6. On router, run sysupgrade - `sysupgrade -n /tmp/sysupgrade.bin`
Should now boot to Openwrt. Ensure it boots automatically to Openwrt by replugging the power.

* Backup Instructions:

Layout from stock firmware:
```
[    0.968731] Creating 10 MTD partitions on "nmbm_spim_nand":
[    0.974297] 0x000000000000-0x000000100000 : "BL2"
[    0.979424] 0x000000100000-0x000000180000 : "u-boot-env"
[    0.985032] 0x000000180000-0x000000380000 : "Factory"
[    0.990379] 0x000000380000-0x000000580000 : "FIP"
[    0.995378] 0x000000580000-0x000000600000 : "prod"
[    1.000461] 0x000000600000-0x000000700000 : "dual"
[    1.005527] 0x000000700000-0x000000800000 : "pot"
[    1.010516] 0x000000800000-0x000006c00000 : "ubi"
[    1.015626] 0x000006c00000-0x00000d000000 : "ubi1"
[    1.020801] 0x00000d000000-0x00000d800000 : "storage"
```

Mapping in initramfs env:
```
dev:    size   erasesize  name
mtd0: 00100000 00020000 "bl2"
mtd1: 00080000 00020000 "u-boot-env"
mtd2: 00200000 00020000 "factory"
mtd3: 00200000 00020000 "fip"
mtd4: 00020000 00020000 "prod"
mtd5: 00100000 00020000 "dual"
mtd6: 00100000 00020000 "pot"
mtd7: 06400000 00020000 "ubi"
mtd8: 06400000 00020000 "ubi1"
mtd9: 00800000 00020000 "storage"
```
1. While in openwrt initramfs environment, back up all the partitions by running the following:
```
cat /dev/mtd0 > /tmp/bl2.bin
cat /dev/mtd1 > /tmp/u-boot-env.bin
cat /dev/mtd2 > /tmp/factgory.bin
cat /dev/mtd3 > /tmp/fip.bin
cat /dev/mtd4 > /tmp/prod.bin
cat /dev/mtd5 > /tmp/dual.bin
cat /dev/mtd6 > /tmp/pot.bin
cat /dev/mtd7 > /tmp/ubi.bin
cat /dev/mtd8 > /tmp/ubi1.bin
cat /dev/mtd9 > /tmp/storage.bin
```
2. Transfer files to client PC for safekeeping. On client PC, run `scp -O root@192.168.1.1:/tmp/*.bin ./`

* Restore to Stock Firmware:

1. Boot to openwrt initramfs env.
2. Confirm layout matches as follows by running `cat /proc/mtd`. Ensure dev `mtd7` is named `ubi`:
```
dev:    size   erasesize  name
mtd0: 00100000 00020000 "bl2"
mtd1: 00080000 00020000 "u-boot-env"
mtd2: 00200000 00020000 "factory"
mtd3: 00200000 00020000 "fip"
mtd4: 00020000 00020000 "prod"
mtd5: 00100000 00020000 "dual"
mtd6: 00100000 00020000 "pot"
mtd7: 06400000 00020000 "ubi"
mtd8: 06400000 00020000 "ubi1"
mtd9: 00800000 00020000 "storage"
```
3. Detach `ubi` partition - `ubidetach -p /dev/mtd7`
4. Transfer stock firmware's `ubi.bin` to router from client PC: `scp -O ubi.bin root@192.168.1.1/tmp/`
5. Format and replace with backup `ubiformat /dev/mtd7 -y -f /tmp/ubi.bin`
6. Reboot and you should now be back on stock firmware.

* LEDS:
LED color can be controlled by specifying values in GRB format in `/sys/class/leds/rgb:status/multi_intensity`. Default is `255 255 255` (white).
Example: `echo '75 0 130' > /sys/class/leds/rgb:status/multi_intensity`

LED brightness can be changed by specifying the value from 0-255 in /sys/class/leds/rgb:status/brightness. Default is `255` (full brightness).
Example: `echo 100 > /sys/class/leds/rgb:status/brightness`

For persistence across reboots, put the relevant command(s) in /etc/rc.local.

* Notes:

root access on stock firmware:
Before flashing openwrt, and while in openwrt initramfs env:
1. Mount /dev/ubi0_2: `mkdir /tmp/ubi0_2; mount -t ubifs /dev/ubi0_2 /tmp/ubi0_2`
2. Modify `/tmp/ubi0_2/upper/etc/passwd` and change line with `root:x:0:0...` to `root::0:0...`, remove the `x`.
3. Save and reboot.
4. You should now be able to log in with root and empty password while booted in stock firmware.

While on Openwrt, subsequent upgrades can be made by sysupgrade, or via Luci. UART should not be necessary unless you want to revert to stock firmeware.

Signed-off-by: Qing W <ses1er@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19754
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
28 hours agokernel: Remove patch for fixed bug 19830/head
Hauke Mehrtens [Thu, 21 Aug 2025 20:07:06 +0000 (22:07 +0200)] 
kernel: Remove patch for fixed bug

The problem was fixed in upstream kernel in a different way and the
change was backported to kernel 6.6 in the following change:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=48e8791843206baf76827df1b6ee3cb88a2a17d8

The removed patch changes the endianness again and breaks the
functionality, use only the upstream code and remove our unneeded patch.

The 823-v6.12-0003-nvmem-layouts-add-U-Boot-env-layout.patch patch was
adapted in the kernel bump too. It moves the code with the fix now.

Fixes: 05d344cb2ca3 ("kernel: bump 6.6 to 6.6.100")
Reported-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19830
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
29 hours agorealtek: add support for XikeStor SKS8310-8X 19782/head
Alexandra Alth [Thu, 14 Aug 2025 17:55:44 +0000 (19:55 +0200)] 
realtek: add support for XikeStor SKS8310-8X

XikeStor (Seeker) SKS8310-8X is a 8 ports Multi-Gig switch, based on
RTL9303.

Specifications:

- SoC              : Realtek RTL9303
- RAM              : DDR3 512 MiB
- Flash            : SPI-NOR 32 MiB (Macronix)
- Ethernet         : 8x 1/2.5/10 Gbps (SFP+)
- LEDs/Keys (GPIO) : 1x/1x
- UART             : "Console" port on the front panel
  - type           : RS-232C
  - connector      : RJ-45
  - settings       : 115200 8N1
- Power            : 12 VDC, 2 A

Flash instruction using initramfs image:

 1. Prepare TFTP server & connect to serial port.
 2. Connect your computer to one of the ports on SKS8310-8X with a
    suitable SFP module (some work, some don't).
 3. Power on SKS8310-8X and interrupt autoboot with Shift + A.
 4. Use Shift + Q to drop from vendor CLI to U-Boot CLI.
 5. Enable networking within U-Boot.
> rtk network on
 6. Set switch IP and TFTP server IP (optional, adjust to your setup).
> setenv ipaddr <ip>
> setenv serverip <ip>
 7. Download initramfs image from TFTP server.
> tftpboot 0x82000000 <image name>
 8. Boot with the downloaded image.
> bootm 0x82000000
 9. With rambooted OpenWrt, backup the stock firmware if needed.
10. Copy sysupgrade image to the device.
11. Perform sysupgrade with the sysupgrade image.
12. After reboot, you should have functional OpenWrt.

Reverting to stock firmware:

 1. Download latest firmware from XikeStor and upload to your device.
 1. Write firmware with 'sysupgrade -F'.
 2. After reboot, stock firmware should boot automatically.

Co-authored-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Signed-off-by: Alexandra Alth <alexandra@alth.de>
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19782
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 hours agodropbear: disable login recording with musl libc 19715/head
Konstantin Demin [Wed, 20 Aug 2025 06:55:47 +0000 (09:55 +0300)] 
dropbear: disable login recording with musl libc

disallow lastlog/login()/utmp/wtmp with musl libc in order to avoid runtime errors due to musl implementation details.

ref: https://github.com/openwrt/openwrt/issues/19566#issuecomment-3167897095

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19715
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 hours agodropbear: don't limit channel window to 500MB
Konstantin Demin [Wed, 20 Aug 2025 06:55:47 +0000 (09:55 +0300)] 
dropbear: don't limit channel window to 500MB

cherry-pick commit from https://github.com/mkj/dropbear/pull/377

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19715
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 hours agodropbear: fix missing depends for sntrup761x25519-sha512
Konstantin Demin [Wed, 20 Aug 2025 06:55:47 +0000 (09:55 +0300)] 
dropbear: fix missing depends for sntrup761x25519-sha512

resolves FTBFS where internal option DROPBEAR_SHA512 wasn't enabled by any of options

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19715
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 hours agoramips: fix TP-Link mr600 radio partition offset 19790/head
Stefan Dösinger [Sat, 9 Aug 2025 14:29:38 +0000 (17:29 +0300)] 
ramips: fix TP-Link mr600 radio partition offset

This makes 5ghz WiFi work out of the box on these devices, eliminating
the need to flash a magic blob to the radio partition.

This was found by user BulldozerBSG on the OpenWRT Forums:
https://forum.openwrt.org/t/tp-link-archer-mr600-exploration/65489/20
All credit belongs to them. I can confirm the correctness of the
findings. At least one other user (Iggy87100) confirmed them too.

Signed-off-by: Stefan Dösinger <stefandoesinger@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19790
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
37 hours agoipq40xx: do not build EnGenius EAP1300 and ENS620EXT by default 19826/head
Shiji Yang [Thu, 21 Aug 2025 11:56:15 +0000 (19:56 +0800)] 
ipq40xx: do not build EnGenius EAP1300 and ENS620EXT by default

The 6.12 kernel has exceeded the kernel size limit. the buildbot
can no longer build images for them. Developers can try switching
the kernel type to zImage to enable them again.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19826
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 days agoomap: enable 6.12 testing kernel
Andre Heider [Wed, 7 May 2025 06:53:22 +0000 (08:53 +0200)] 
omap: enable 6.12 testing kernel

The omap target now supports 6.12 kernel as testing.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agoomap: update kernel 6.12 config
Andre Heider [Wed, 7 May 2025 06:52:57 +0000 (08:52 +0200)] 
omap: update kernel 6.12 config

Plain `make kernel_oldconfig`

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agogeneric: 6.12: add new config symbols
Andre Heider [Fri, 9 May 2025 05:33:31 +0000 (07:33 +0200)] 
generic: 6.12: add new config symbols

Add new config symbols to 6.12 kernel config.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agoomap: refresh kernel 6.12 patches
Andre Heider [Wed, 7 May 2025 06:50:21 +0000 (08:50 +0200)] 
omap: refresh kernel 6.12 patches

Plain `make target/linux/refresh`

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agokernel/omap: Restore kernel files for v6.6
Andre Heider [Wed, 7 May 2025 06:44:19 +0000 (08:44 +0200)] 
kernel/omap: Restore kernel files for v6.6

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: Andre Heider <a.heider@gmail.com>
2 days agokernel/omap: Create kernel files for v6.12 (from v6.6)
Andre Heider [Wed, 7 May 2025 06:44:19 +0000 (08:44 +0200)] 
kernel/omap: Create kernel files for v6.12 (from v6.6)

This is an automatically generated commit.

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

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agoomap: update kernel 6.6 config
Andre Heider [Wed, 7 May 2025 06:42:28 +0000 (08:42 +0200)] 
omap: update kernel 6.6 config

Plain `make kernel_oldconfig`

Signed-off-by: Andre Heider <a.heider@gmail.com>
2 days agotoolchain/binutils: export ZSTD_CFLAGS/LIBS to fix non-Linux build 19833/head
Mark Mentovai [Sun, 17 Aug 2025 04:41:29 +0000 (00:41 -0400)] 
toolchain/binutils: export ZSTD_CFLAGS/LIBS to fix non-Linux build

This is what 66dfbca262f4e6ebc1b4f94fb1c4482894c26d0c (updated by
2872ff7be19cfd20c95c4cbc880c0af38f82ea15) did for toolchain/gdb, but for
toolchain/binutils, following the switch to binutils-2.44 by default in
854d88be8ad4f26059deeb3748617ca32dfdff15.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
Link: https://github.com/openwrt/openwrt/pull/19833
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 days agouboot-layerscape: do not build efimkcapsule tool 19836/head
Shiji Yang [Fri, 22 Aug 2025 01:06:43 +0000 (09:06 +0800)] 
uboot-layerscape: do not build efimkcapsule tool

OpenWrt layerscape target does not use this command. If the host is
missing gnutls, this tool will fail to build. Fix build error:

tools/mkeficapsule.c:20:10: fatal error: gnutls/gnutls.h: No such file or directory
   20 | #include <gnutls/gnutls.h>
      |          ^~~~~~~~~~~~~~~~~

Fixes: c773c3f4d377 ("uboot-layerscape: bump to lf-6.12.20-2.0.0")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19836
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 days agoinclude: make APK .list files reproducible
Paul Spooren [Thu, 21 Aug 2025 22:16:02 +0000 (00:16 +0200)] 
include: make APK .list files reproducible

The order may vary between builds, a re-build showed that error locally. Run
`sort` to have this fixed.

Signed-off-by: Paul Spooren <mail@aparcar.org>
3 days agorealtek: RTL930x led_set count error message tidy up + dev_ print fixups 19791/head
Bevan Weiss [Mon, 18 Aug 2025 08:12:57 +0000 (18:12 +1000)] 
realtek: RTL930x led_set count error message tidy up + dev_ print fixups

Whilst testing Hasivo s1100wp-8gt-se LED configuration, several error
messages were presented which didn't indicate which led_set they were
referencing, nor what the value was that caused the invalid configuration.

Migrate to use dev_ print messages for this function.
And tidy up both when the error message is reported (don't show it when
an led_set isn't in the DTS) and what details the message presents.

Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19791
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 days agorealtek: RTL930x/RTL931x led_set defines
Bevan Weiss [Sun, 27 Jul 2025 04:12:32 +0000 (14:12 +1000)] 
realtek: RTL930x/RTL931x led_set defines

Add defines for RTL930x and RTL931x led_set 'modes' (to avoid magic numbers
in dts files).

Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19791
Signed-off-by: Robert Marko <robimarko@gmail.com>
4 days agotoolchain: gcc: update GCC13 to 13.4
Shiji Yang [Tue, 10 Jun 2025 13:32:13 +0000 (21:32 +0800)] 
toolchain: gcc: update GCC13 to 13.4

Release Notes:
  https://gcc.gnu.org/gcc-13/changes.html

All patches are automatically refreshed.

Build-tested on:
  ath79/generic(MIPS)
  ipq40xx/generic(ARMv7)
  mediatek/filogic(ARMv8)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19089
Signed-off-by: Nick Hainke <vincent@systemli.org>
4 days agotools/squashfs4: update to 4.7.2 19820/head
Shiji Yang [Wed, 20 Aug 2025 11:32:11 +0000 (19:32 +0800)] 
tools/squashfs4: update to 4.7.2

This minor version update only includes some build fixes and
improvements.

Release Notes:
  https://github.com/plougher/squashfs-tools/releases/tag/4.7.1
  https://github.com/plougher/squashfs-tools/releases/tag/4.7.2

Remove upstream patches:
  001-thread-add-the-missing-pthread.h-header.patch[1]
  002-print_pager-add-missing-includes.patch[2]

[1] https://github.com/plougher/squashfs-tools/commit/b6e9f4b62cc3e762ceeddc0fc099f7d65f7b7361
[2] https://github.com/plougher/squashfs-tools/commit/05a895b3f996d1ac157d95b04980f5f047e7dbf7

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19820
Signed-off-by: Nick Hainke <vincent@systemli.org>
4 days agoath79: remove 6.6 kernel patches and configs 19821/head
Shiji Yang [Wed, 20 Aug 2025 13:10:11 +0000 (21:10 +0800)] 
ath79: remove 6.6 kernel patches and configs

Remove old kernel support to prepare for the next LTS release.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19821
Signed-off-by: Nick Hainke <vincent@systemli.org>
4 days agoath79: switch default kernel to 6.12
Shiji Yang [Wed, 20 Aug 2025 13:09:38 +0000 (21:09 +0800)] 
ath79: switch default kernel to 6.12

We have not received any negative feedback in the past three months.
It's time to switch the default kernel to 6.12.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19821
Signed-off-by: Nick Hainke <vincent@systemli.org>
4 days agotools: lzop: add patch bumping minimum CMake version to 3.5 19813/head
Nick Hainke [Tue, 19 Aug 2025 20:40:12 +0000 (22:40 +0200)] 
tools: lzop: add patch bumping minimum CMake version to 3.5

Recent CMake releases require at least version 3.5.

Link: https://github.com/openwrt/openwrt/pull/19813
Signed-off-by: Nick Hainke <vincent@systemli.org>
4 days agomac80211: remove rt2x00_platform_data 19804/head
Rosen Penev [Mon, 18 Aug 2025 19:49:43 +0000 (12:49 -0700)] 
mac80211: remove rt2x00_platform_data

All of this uses OF now. No need to keep platform data around.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19804
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 days agorealtek: mdio: rtl931x: move functions over to bus 19743/head
Markus Stockhausen [Mon, 11 Aug 2025 08:34:00 +0000 (04:34 -0400)] 
realtek: mdio: rtl931x: move functions over to bus

This commit repeats the mdio function relocation from the other targets.
In short that means:

- phy read/write functions are moved away from the phy driver
- SerDes read/write functions are moved away from the dsa driver
- All gets consolidated into the mdio driver (inside the ethernet driver)

This is mostly a copy/paste to keep the changes small. The SerDes phy mapping
and the simplification of the central bus functions will come later.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19743
Signed-off-by: Robert Marko <robimarko@gmail.com>
5 days agoipq40xx: dts: reduce the maximum SPI clock frequency to 24MHz 19744/head
Shiji Yang [Mon, 11 Aug 2025 10:52:30 +0000 (18:52 +0800)] 
ipq40xx: dts: reduce the maximum SPI clock frequency to 24MHz

The IPQ4019 datasheet indicates that the maximum supported SPI
frequency is 25 MHz. My experiment on SKSpruce WIA3300-20 shows
that exceeding this threshold can lead to instability of SPI
peripheral. Limit the SPI clock frequency to the QSDK recommended
value 24MHz to enhance stability.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19744
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 days agouboot-stm32: bump to 2025.07 19779/head
Thomas Richard [Thu, 14 Aug 2025 15:03:04 +0000 (17:03 +0200)] 
uboot-stm32: bump to 2025.07

Now devicetrees imported from Linux kernel release are used, so update
DEVICE_TREE to use correct path. A patch was backported to increase
SYS_MALLOC_F_LEN for stm32mp13 (more alloc space is needed due to SCMI
update to protocol v2.0).

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/19779
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agooptee-os-stm32: bump to 4.7.0
Thomas Richard [Thu, 14 Aug 2025 15:00:32 +0000 (17:00 +0200)] 
optee-os-stm32: bump to 4.7.0

Bump optee-os-stm32 to upstream release 4.7.0.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/19779
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agolayerscape: add 6.12 testing kernel 19152/head
Pawel Dembicki [Sun, 8 Jun 2025 11:51:07 +0000 (13:51 +0200)] 
layerscape: add 6.12 testing kernel

The support is done. Let's set 6.12 as testing kernel.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agolayerscape: 6.12: refresh kernel config
Pawel Dembicki [Sun, 8 Jun 2025 11:49:31 +0000 (13:49 +0200)] 
layerscape: 6.12: refresh kernel config

Done by `make kernel_oldconfig`.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agolayerscape: kernel: 6.12: refresh patches
Pawel Dembicki [Sun, 8 Jun 2025 10:52:10 +0000 (12:52 +0200)] 
layerscape: kernel: 6.12: refresh patches

Patches 400,701,702 were taken from 6.12 nxp tree.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agokernel/layerscape: Restore kernel files for v6.6
Pawel Dembicki [Sun, 8 Jun 2025 08:40:24 +0000 (10:40 +0200)] 
kernel/layerscape: Restore kernel files for v6.6

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: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agokernel/layerscape: Create kernel files for v6.12 (from v6.6)
Pawel Dembicki [Sun, 8 Jun 2025 08:40:24 +0000 (10:40 +0200)] 
kernel/layerscape: Create kernel files for v6.12 (from v6.6)

This is an automatically generated commit.

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

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agotfa-layerscape: Bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sat, 21 Jun 2025 05:41:46 +0000 (07:41 +0200)] 
tfa-layerscape: Bump to lf-6.12.20-2.0.0

Bump tfa-layerscape to version lf-6.12.20-2.0.0

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agouboot-layerscape: bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sun, 8 Jun 2025 14:36:31 +0000 (16:36 +0200)] 
uboot-layerscape: bump to lf-6.12.20-2.0.0

This commit bumps u-boot layerscape package to lf-6.12.20-2.0.0 version.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agoppfe-firmware: Bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sun, 8 Jun 2025 14:29:27 +0000 (16:29 +0200)] 
ppfe-firmware: Bump to lf-6.12.20-2.0.0

Bump ppfe-firmware package to lf-6.12.20-2.0.0.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agols-rcw: Bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sun, 8 Jun 2025 14:26:51 +0000 (16:26 +0200)] 
ls-rcw: Bump to lf-6.12.20-2.0.0

Bump ls-rcw package to lf-6.12.20-2.0.0.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agols-ddr-phy: bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sun, 8 Jun 2025 14:18:15 +0000 (16:18 +0200)] 
ls-ddr-phy: bump to lf-6.12.20-2.0.0

Bump ls-ddr-phy to version lf-6.12.20-2.0.0.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agofman-ucode: Bump to lf-6.12.20-2.0.0
Pawel Dembicki [Sun, 8 Jun 2025 14:14:40 +0000 (16:14 +0200)] 
fman-ucode: Bump to lf-6.12.20-2.0.0

Bump fman-ucode to version lf-6.12.20-2.0.0.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agomt7621: zyxel nwa-ax: set mac address in dts 19771/head
Rosen Penev [Wed, 13 Aug 2025 23:34:05 +0000 (16:34 -0700)] 
mt7621: zyxel nwa-ax: set mac address in dts

Support in mt76 has existed for quite a while. Use it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19771
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agoipset: update to 7.24 19719/head
gongzi miao [Fri, 8 Aug 2025 20:56:01 +0000 (04:56 +0800)] 
ipset: update to 7.24

release notes:
7.24: https://www.spinics.net/lists/netfilter-devel/msg91440.html
7.23: https://www.spinics.net/lists/netfilter-devel/msg89840.html
7.22: https://www.spinics.net/lists/netfilter-devel/msg86745.html

Signed-off-by: gongzi miao <miaogongzi0227@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19719
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agorealtek: add RTL8231 driver configuration to kernel build 19776/head
Markus Stockhausen [Thu, 14 Aug 2025 11:21:39 +0000 (07:21 -0400)] 
realtek: add RTL8231 driver configuration to kernel build

Now that the driver has been enhanced for RTL931x devices and
the DTS is up to date, activate the needed kernel configuration
for the two RTL931x subtargets.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19776
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agorealtek: add rtl8231-aux to rtl931x.dtsi
Markus Stockhausen [Thu, 14 Aug 2025 11:18:22 +0000 (07:18 -0400)] 
realtek: add rtl8231-aux to rtl931x.dtsi

The RTL8231 auxiliary controller is not defined in the rtl931x.dtsi.
Additionally the pinmux is configured at the wrong address. Fix
this.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19776
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agorealtek: rtl8231-aux: add RTL931x support
Markus Stockhausen [Thu, 14 Aug 2025 11:13:49 +0000 (07:13 -0400)] 
realtek: rtl8231-aux: add RTL931x support

The auxiliary RTL8231 controller driver is missing RTL931x support.
Add it by defining the proper register and matching compatible.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19776
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agorealtek: register ethernet device after NAPI context init 19629/head 19787/head
Markus Stockhausen [Fri, 15 Aug 2025 16:16:39 +0000 (12:16 -0400)] 
realtek: register ethernet device after NAPI context init

Booting Realtek switches via TFTP will have a chance of ~5% to
fail with the following dump on SMP devices. Sample taken from
RTL931x.

[    1.318320] rtl931x_chip_init: init ENCAP done
[    1.323360] rtl931x_chip_init: init MIB done
[    1.328337] rtl931x_chip_init: init ACL done
[    1.333219] rtl931x_chip_init: init ALE done
[    1.344307] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 00000000, ra == 806c5c4c
[    1.356418] Oops[#1]:
[    1.359067] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.40 #0
[    1.366582] Hardware name: Linksys LGS352C
[    1.371226] $ 0   : 00000000 00000001 00000000 80b6cc44
[    1.377179] $ 4   : 836b0540 00000000 00000000 83011d38
[    1.383119] $ 8   : 00000000 ffffefff 00000001 80b08c08
[    1.389071] $12   : ffffffea 83011d34 00000072 00000558
[    1.395060] $16   : 836b0540 00000000 00000100 83011ebf
[    1.401003] $20   : 83011ec0 83011ec8 ffff8b3c 80b00000
[    1.406984] $24   : 00000000 80b08c38
[    1.412922] $28   : 83038000 83011e70 82fb37a0 806c5c4c
[    1.418888] Hi    : 0000014b
[    1.422201] Lo    : c74d8000
[    1.425490] epc   : 00000000 0x0
[    1.429191] ra    : 806c5c4c __napi_poll+0x4c/0x208
[    1.434728] Status: 11000403 KERNEL EXL IE
[    1.439497] Cause : 50800008 (ExcCode 02)
[    1.444040] BadVA : 00000000
[    1.447330] PrId  : 0001a120 (MIPS interAptiv (multi))
[    1.453157] Modules linked in:
[    1.456641] Process swapper/0 (pid: 1, threadinfo=(ptrval), task=(ptrval), tls=00000000)
[    1.465742] Stack : 82faf248 80a8d558 817ed500 ffff8b3a 836b0540 8066a348 82fb2bc0 836b0540
[    1.475209]         82fb3600 00000100 0000012c 806c6274 00000000 00000017 00000002 80196134
[    1.484701]         80b00000 83011ed0 83011eb8 83011e00 83011ec0 83011ec0 83011ec8 83011ec8
[    1.494233]         00000001 81920000 81920000 80aefe4c 836b0000 00000000 00000000 00000001
[    1.503686]         00000100 00000000 83011f20 80aefde0 00000000 8019ac14 80b01550 00000000
[    1.513144]         ...
[    1.515957] Call Trace:
[    1.515996]
[    1.520458] [<8066a348>] rtl93xx_net_irq+0x1a4/0x1ac
[    1.526116] [<806c6274>] net_rx_action+0x18c/0x360
[    1.531576] [<80196134>] __handle_irq_event_percpu+0x58/0x16c
[    1.538111] [<8019ac14>] handle_level_irq+0x1e0/0x1f4
[    1.543870] [<80133588>] handle_softirqs+0x14c/0x2ec
[    1.549488] [<801339e4>] irq_exit+0x84/0xb4
[    1.554183] [<805527dc>] plat_irq_dispatch+0x90/0xdc
[    1.559764] [<801019f0>] except_vec_vi_end+0xc4/0xd0
[    1.565337]

A network interrupt may be received before the device is setup
properly. In this case NAPI structures are missing and __napi_poll()
will find a NULL pointer in n->poll. Avoid this by registering the
device after initialization is complete.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19787
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agorealtek: create central DTS macro include 19772/head
Markus Stockhausen [Thu, 14 Aug 2025 05:40:06 +0000 (01:40 -0400)] 
realtek: create central DTS macro include

The Realtek DTS's use several macros for convenient phy/port definition.
These are repeated for the RTL83xx targets and most are missing for the
RTL93xx targets. In the near future we want to add high port count
switches with 1GBit Ethernet for them too. As a preparation provide a
central include so the definition is only needed once and is available
for all targets.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19772
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 days agoipq40xx: remove 6.6 support 19778/head
Goetz Goerisch [Thu, 14 Aug 2025 11:45:07 +0000 (13:45 +0200)] 
ipq40xx: remove 6.6 support

Since 6.12 is now default, drop 6.6 support.

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19778
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 days agoipq40xx: switch to kernel 6.12
Goetz Goerisch [Thu, 14 Aug 2025 11:36:41 +0000 (13:36 +0200)] 
ipq40xx: switch to kernel 6.12

Let's switch the ipq40xx target to use kernel 6.12 by default.

Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19778
Signed-off-by: Nick Hainke <vincent@systemli.org>
7 days agoudebug: update to Git HEAD (2025-08-17)
Felix Fietkau [Sun, 17 Aug 2025 09:11:42 +0000 (11:11 +0200)] 
udebug: update to Git HEAD (2025-08-17)

892647b81d30 ucode: add ferror() call to check for closed write file descriptor

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 days agotools/7z: update to 25.01 19742/head
Tianling Shen [Mon, 11 Aug 2025 07:22:28 +0000 (15:22 +0800)] 
tools/7z: update to 25.01

This version contains fixes for CVE-2025-55188.
Changelog: https://www.7-zip.org/history.txt

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/19742
Signed-off-by: Nick Hainke <vincent@systemli.org>
9 days agowifi-scripts: ucode: add support for scan_list
Felix Fietkau [Fri, 15 Aug 2025 17:41:44 +0000 (19:41 +0200)] 
wifi-scripts: ucode: add support for scan_list

Speed up connecting in client mode by allowing to limit the channels that
need to be scanned.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 days agowifi-scripts: ucode: remove reference to legacy drivers
Felix Fietkau [Fri, 15 Aug 2025 17:31:28 +0000 (19:31 +0200)] 
wifi-scripts: ucode: remove reference to legacy drivers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 days agoudebug: update to Git HEAD (2025-08-15)
Felix Fietkau [Fri, 15 Aug 2025 15:32:56 +0000 (17:32 +0200)] 
udebug: update to Git HEAD (2025-08-15)

3d953628bf17 udebugd: add support for setting an override config
93f6df0240e5 udebug-cli: add support for overriding config on the command line

Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 days agowifi-scripts: ucode: add extra RSN override for MLO
Felix Fietkau [Fri, 15 Aug 2025 09:12:11 +0000 (11:12 +0200)] 
wifi-scripts: ucode: add extra RSN override for MLO

Use SAE-EXT-KEY instead of SAE for MLO clients

Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agokernel/modules: add BQ32000 I2C RTC kernel module support 19764/head
Ondrej Kolar [Tue, 12 Aug 2025 07:09:34 +0000 (09:09 +0200)] 
kernel/modules: add BQ32000 I2C RTC kernel module support

Add support for the Texas Instruments BQ32000 I2C real-time clock chip.

Tested on a custom board based on Hi-Link HLK-7628N.

Signed-off-by: Ondrej Kolar <ondrej@kolarovo.cz>
Link: https://github.com/openwrt/openwrt/pull/19764
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 days agowifi-scripts: Avoid syslog message variable data does not exist
Tobias Waldvogel [Thu, 14 Aug 2025 17:33:02 +0000 (19:33 +0200)] 
wifi-scripts: Avoid syslog message variable data does not exist

Initialize data to {} if null before calling mac80211.sh
to avoid a confusing error message in the syslog.

Fixes: https://github.com/openwrt/openwrt/issues/14010
Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cosmetic change]
10 days agonetifd: update to Git HEAD (2025-08-14)
Felix Fietkau [Thu, 14 Aug 2025 17:12:32 +0000 (19:12 +0200)] 
netifd: update to Git HEAD (2025-08-14)

8c139e183e52 bridge: fix changing the vlan local flag at runtime

Fixes: https://github.com/openwrt/openwrt/issues/19672
Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agouci: update to Git HEAD (2025-08-14)
Felix Fietkau [Thu, 14 Aug 2025 17:08:23 +0000 (19:08 +0200)] 
uci: update to Git HEAD (2025-08-14)

f3fc0b760406 libuci: fix false positive warning on older gcc versions
9033e8c27253 blob: use blobmsg_parse_attr in __uci_blob_check_equal

Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agomt76: update to Git HEAD (2025-08-14)
Felix Fietkau [Thu, 14 Aug 2025 16:43:48 +0000 (18:43 +0200)] 
mt76: update to Git HEAD (2025-08-14)

5f61f34087c5 wifi: mt76: mt7996: fix crash on some tx status reports

Fixes: https://github.com/openwrt/openwrt/issues/19638
Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agowifi-scripts: ucode: fix setting supported/basic rates in config
Felix Fietkau [Thu, 14 Aug 2025 16:24:08 +0000 (18:24 +0200)] 
wifi-scripts: ucode: fix setting supported/basic rates in config

Only set the default based on cell density, do not override.

Fixes: https://github.com/openwrt/openwrt/issues/19673
Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agowifi-scripts: iface should be optional in wifi-vlan definition
Tobias Waldvogel [Thu, 14 Aug 2025 08:09:58 +0000 (10:09 +0200)] 
wifi-scripts: iface should be optional in wifi-vlan definition

The option iface should be optional according to the description
of /etc/config/wireless in order to avoid repeating the definition
for each virtual interface.

Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
10 days agorealtek: cleanup documentation 19769/head
Markus Stockhausen [Wed, 13 Aug 2025 18:16:19 +0000 (14:16 -0400)] 
realtek: cleanup documentation

We are using upstream otto timer. Delete some downstream leftovers.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19769
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agomt76: update to Git HEAD (2025-08-13)
Felix Fietkau [Wed, 13 Aug 2025 15:08:27 +0000 (17:08 +0200)] 
mt76: update to Git HEAD (2025-08-13)

00275548ba8f wifi: mt76: mt7996: Overwrite unspecified link_id in mt7996_tx()
2601bb91e078 wifi: mt76: mt7996: Fix mt7996_mcu_sta_ba wcid configuration
110ecc331123 wifi: mt76: mt7996: Fix mt7996_mcu_bss_mld_tlv routine
449a1aca9f72 wifi: mt76: mt7996: Initialize hdr before passing to skb_put_data()
1de707e73fc7 wifi: mt76: mt7921: don't disconnect when CSA to DFS chan
fce683dbcfc9 wifi: mt76: mt7925: fix locking in mt7925_change_vif_links()
11f721bce235 wifi: mt76: mt7925: fix the wrong bss cleanup for SAP
b3613d9a317d wifi: mt76: mt7996: Set def_wcid pointer in mt7996_mac_sta_init_link()
d1a2900a390d wifi: mt76: mt7996: Set proper link destination address in mt7996_tx()
56990ce9289a wifi: mt76: mt7925u: Add VID/PID for Netgear A9000
e796542a0585 wifi: mt76: mt7925: add MBSSID support
e35e4f8fcf8a wifi: mt76: fix potential memory leak in mt76_wmac_probe()
aa2f13c3be79 wifi: mt76: mt7996: disable beacons when going offchannel
630e166c958d wifi: mt76: prevent non-offchannel mgmt tx during scan/roc
d3e7c2051aae wifi: mt76: mt7996: use the correct vif link for scanning/roc
903a7e0ace79 wifi: mt76: mt7921: add MBSSID support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 days agorealtek: drop downstream rtl93xx i2c driver 19736/head
Jonas Jelonek [Sun, 27 Jul 2025 13:39:26 +0000 (13:39 +0000)] 
realtek: drop downstream rtl93xx i2c driver

Drop our downstream driver in favor of an upstream existing driver which
is available starting from v6.13.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19736
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agorealtek: adapt devices to backported i2c driver
Jonas Jelonek [Tue, 24 Jun 2025 19:02:33 +0000 (19:02 +0000)] 
realtek: adapt devices to backported i2c driver

Adapt the device tree definitions of rtl93xx devices and the base dtsi
for rtl930x and rtl931x to match with what's expected by the recently
backported RTL9300 I2C driver.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19736
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agorealtek: backport upstream RTL9300 I2C driver
Jonas Jelonek [Tue, 24 Jun 2025 16:22:00 +0000 (16:22 +0000)] 
realtek: backport upstream RTL9300 I2C driver

Backport/add all patches for the upstream RTL9300 I2C driver.

The upstream driver was added in 6.13 and was heavily based on our
downstream driver except for how the multiplexing behaviour is handled.
This driver was working fine with basic SFP operation on RTL930x devices
but there was no support for RTL931x though.

Major advantage over our downstream driver is: The multiplexing
behaviour is handled completely by the driver. Thus, there's no need for
a separate rtl9300-mux driver as we had it downstream. Moreover, this
simplifies the DTS of affected devices a lot since we can now move the
controller definition - which is in the DTS of each device so far - to
the base DTSI.

Currently pending patches are also included because the progress on
getting this upstream seems really slow right now, albeit upstream
maintainers may require several changes to the current state.

These include:
- patches fixing several issues in the driver
- patches doing a refactoring of the driver and adding support for RTL931x

See the commit messages included in each patch to have details on the
changes.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19736
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agomac80211: update to version 6.16
Felix Fietkau [Mon, 4 Aug 2025 19:45:54 +0000 (21:45 +0200)] 
mac80211: update to version 6.16

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 days agowifi-scripts: ucode: get the phy capabilities for the correct band
Felix Fietkau [Wed, 13 Aug 2025 08:54:03 +0000 (10:54 +0200)] 
wifi-scripts: ucode: get the phy capabilities for the correct band

On multi-band phys, capabilities can differ between bands.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 days agompc85xx: tl-wdr4900: add back 5ghz LED 19758/head
Rosen Penev [Tue, 12 Aug 2025 18:22:27 +0000 (11:22 -0700)] 
mpc85xx: tl-wdr4900: add back 5ghz LED

In the conversion to dts, qca,led-pin was used for both interfaces.
Unfortunately, it's mutually exclusive with gpio-controller which made
it not do anything.

Fixes: 949e1a0 ("mpc85xx: tl-wdr4900: move platform code to dts")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19758
Signed-off-by: Robert Marko <robimarko@gmail.com>
12 days agonetifd: update to Git HEAD (2025-08-12)
Felix Fietkau [Tue, 12 Aug 2025 18:19:14 +0000 (20:19 +0200)] 
netifd: update to Git HEAD (2025-08-12)

843a736a4e26 ubus: fix type check in procd ubus data callback
94c3869941b0 interface: avoid memleaks on invalid interfaces
6ead304877ad global: use blobmsg_parse_attr
813b9882dbab config: add support for defining devices via procd data
575b04326e32 config: add support for defining interfaces via procd data
a0be934399cf examples: sync wireless.uc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 days agoprocd: update to Git HEAD (2025-08-12)
Felix Fietkau [Tue, 12 Aug 2025 15:36:16 +0000 (17:36 +0200)] 
procd: update to Git HEAD (2025-08-12)

dafdf98b03bf service: fix object nesting in the ubus get_data call

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 days agoipq-wifi: update to Git HEAD (2025-08-12)
Robert Marko [Tue, 12 Aug 2025 09:11:47 +0000 (11:11 +0200)] 
ipq-wifi: update to Git HEAD (2025-08-12)

967cfe977926 qca9988: add BDFs for Xiaomi AIoT Router AC2350
6db497116709 qcn9274: update board file for 8devices Kiwi-DVK
7a161011d89d Add IPQ5018 and QCN9074 BDF for Yuncore AX850.
30b99fc9cc13 ipq6018: add jdcloud_re-ss-01 BDF

Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agosunxi: enable ramdisk feature
Zoltan HERPAI [Mon, 4 Aug 2025 07:00:25 +0000 (09:00 +0200)] 
sunxi: enable ramdisk feature

Build initramfs images for this target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
13 days agosunxi: change target to use FIT kernel images
Zoltan HERPAI [Sun, 3 Aug 2025 13:57:15 +0000 (15:57 +0200)] 
sunxi: change target to use FIT kernel images

Modernize the target slightly to use kernel+dtb FIT images in all
subtargets. LZMA compression will be used for the cortexa53 devices,
and we'll stay conservative and use gzip for the cortexa7/a8 devices
due to performance differences.

Tested-on:
 - Linksprite pcDuino v2 (cortexa8 / A10)
 - Olinuxino Micro (cortexa7 / A20)
 - Banana Pi M2 Berry (cortexa7 / V40)
 - Banana Pi P2 Zero (cortexa7 / H2+)
 - Xunlong Orange Pi 2 (cortexa7/ H3)
 - OrangePi PC Zero 2 (cortexa53 / H616)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
13 days agogettext-full: remove usage of autoreconf 19748/head
Michael Pratt [Fri, 8 Aug 2025 05:27:08 +0000 (01:27 -0400)] 
gettext-full: remove usage of autoreconf

Running the bootstrap script autogen.sh
handles the execution of autotools already,
so calling autoreconf before configure
makes this happen twice, which is unnecessary
and can lead to an occasional build problem.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19748
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agogettext-full: force compiling target in C23 standard
Michael Pratt [Tue, 5 Aug 2025 22:52:13 +0000 (18:52 -0400)] 
gettext-full: force compiling target in C23 standard

Currently, the build system overrides the value of the CC variable
for actual compilation after configuring for target builds.
However, the configure script now modifies the CC variable
to include "-std=gnu23" when the test for C23 features is successful.
The configure script also tests for the ability to use alignof
without including the stdalign.h header, and only includes it if necessary.
The test in the configure script is being done with the C23 standard option
but the compilation is being done without the C23 standard option,
leading to an unusual build error where alignof() is not defined.

Resolving the conflict between the autoconf macros and the build system
causes several other packages to fail, so instead in the meantime,
force the use of C23 standard to compile as part of the new standard
includes alignof as a keyword to deprecate the stdalign.h macro.

Forcing use of the new standard is safe for target builds
as the toolchain is known to support the option
and is always within our scope of version control.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19748
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agotools: libtool: always install all auxillary files
Michael Pratt [Fri, 8 Aug 2025 05:23:34 +0000 (01:23 -0400)] 
tools: libtool: always install all auxillary files

Remove the needless restriction
for which auxillary files are installed.
This aligns the behavior of libtoolize
with the existing behavior of automake.

This can prevent the seemingly random error
if autoreconf happens to be ran multiple times:

  configure: error: cannot find required auxiliary files: compile

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19748
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agotools: gnulib: always use std-gnu23 module
Michael Pratt [Fri, 8 Aug 2025 04:58:56 +0000 (00:58 -0400)] 
tools: gnulib: always use std-gnu23 module

The new "std-gnu23" module has the stated goal of:
"...to update the c99 module to depend on std-gnu23
instead of on std-gnu11, and to make std-gnu11 obsolete."
in upstream commit 8990abb50 ("std-gnu23: new module").

However, for now, it's design is optional, so that
definitions of the latest standard module overrides the former.
At some point, upstream gnulib will replace the dependency
instead of add it alongside the older one.

Because all macros are copied to the aclocal directory,
for complex projects, not including the module
may cause the macros to apply only to some subdirectories
rather than all of them and top-level together.

For projects that import source from local gnulib,
always include the std-gnu23.m4 macros for consistency.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19748
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqualcommax: ipq6018 rework nss_port5 clock to multiple conf 19620/head
Marko Mäkelä [Mon, 11 Aug 2025 13:23:03 +0000 (16:23 +0300)] 
qualcommax: ipq6018 rework nss_port5 clock to multiple conf

This fixes intermittent dmesg errors
"nss_port5_rx_clk_src: rcg didn't update its configuration."

Signed-off-by: Marko Mäkelä <marko.makela@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/19620
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agorealtek: RTL838x harden ethernet driver against fuzzying 19679/head
Markus Stockhausen [Tue, 5 Aug 2025 15:46:40 +0000 (11:46 -0400)] 
realtek: RTL838x harden ethernet driver against fuzzying

While checking setup routines for stability and completeness,
random RTL838x SoC I/O areas were intentionally overwritten.
As soon as L2_CTRL_1->FAST_AGE_OUT is set to 1, the system
stalls during bootup. Analysis shows that it loops endlessly
in rtl838x_hw_stop()

/* Flush L2 address cache */
if (priv->family_id == RTL8380_FAMILY_ID) {
for (int i = 0; i <= priv->cpu_port; i++) {
sw_w32(1 << 26 | 1 << 23 | i << 5, priv->r->l2_tbl_flush_ctrl);
do { } while (sw_r32(priv->r->l2_tbl_flush_ctrl) & (1 << 26));
}

This is exactly the same logic as in the vendor GPL. There
are no hints about possible timeouts or issues. The reason is
still unclear. Nevertheless harden the function for further fuzzy
tests. Do this by resetting the configuration value to its SoC
default.

Additionally convert some shifts to BIT() for better readability.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19679
Signed-off-by: Robert Marko <robimarko@gmail.com>