]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
2 months agoqmi: increase SIM power-cycle timeouts 18772/head
Antti Seppälä [Sat, 10 May 2025 10:54:56 +0000 (13:54 +0300)] 
qmi: increase SIM power-cycle timeouts

Some modems and SIM cards take a bit longer to initialize after UIM has been
powered off. Waiting too little time can cause the qmi protocol to end up
in a loop repeatedly power-cycling the SIM card.

Avoid that by
 a) increasing the time we unconditionally sleep after --uim-power-on
 b) increasing the time we allow uqmi to wait for response for --uim-get-sim-state

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18772
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agobase-files: treat 'ipaddr is inside range' as warning again
Florian Eckert [Wed, 30 Apr 2025 10:25:01 +0000 (12:25 +0200)] 
base-files: treat 'ipaddr is inside range' as warning again

The call to 'ipcalc' is used in 'dnsmasq' init script to create the
configuration. If the 'ipaddr' is in the configured range then 'ipcalc' exited
with an error whereby the START/STOP variables are unavailable.

This behaviour has changed during 'ipcalc' refactoring and now leads to a
problem when starting 'dnsmasq' if the 'ipaddr' is inside this range. To
restore the old behaviour, only a warning is issued as before and the
required variables for the 'dnsmasq' are still set.

Fixes: 854739b32c7f (base-files: ipcalc.sh: Rewrite in pure shell)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/18641
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agodnsmasq: fix start if dhcp-range is not correct
Florian Eckert [Tue, 29 Apr 2025 13:26:36 +0000 (15:26 +0200)] 
dnsmasq: fix start if dhcp-range is not correct

If the uci 'dhcp' configuration for the dhcp leases is incorrect then
the call to 'ipclac' fails. However, the problem is that the dnsmasq
configuration option 'dhcp-range' is still written for this uci section
even though the information generated by ipcalc is incorrect or not set.

Due to the incorrectly generated configuration for dnsmasq, the service
cannot start.

To prevent an incorrect configuration from being written to the configuration,
a check is now made beforehand to ensure that the required variables are
present and valid. If the configuration is incorrect, a message is emitted
to the log that this configuration section is incorrect and this uci
configuration section is omitted.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://github.com/openwrt/openwrt/pull/18641
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agowifi-scripts: add missing 'network' property to wifi-iface schema 18946/head
Sean Khan [Wed, 28 May 2025 08:48:14 +0000 (04:48 -0400)] 
wifi-scripts: add missing 'network' property to wifi-iface schema

The ucode-based wifi interface validation is based on `hostapd.conf`
specific options, which means it's missing the OpenWrt-specific
'network' property.

This causes schema validation warnings like:
```
daemon.notice netifd: radio1 (1340): wifi-scripts: network is not present in the schema
```

The description is taken from the OpenWrt wiki:
https://openwrt.org/docs/guide-user/network/wifi/basic#common_options1

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18946
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agogeneric: power: backport v6.15 patch to fix build with GCC15 18950/head
Jonas Jelonek [Wed, 28 May 2025 11:36:31 +0000 (11:36 +0000)] 
generic: power: backport v6.15 patch to fix build with GCC15

Backports an upstream fix ([1]) for a build regression of
'drivers/power/supply' with GCC15 -Wunterminated-string-initialization.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77f5bb150132bbbcd6bc37ffdc80c9e140e373a4

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18950
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agogeneric: net: add pending wireguard patch to fix build with GCC15
Jonas Jelonek [Wed, 28 May 2025 11:33:03 +0000 (11:33 +0000)] 
generic: net: add pending wireguard patch to fix build with GCC15

This patch adds __nonstring annotation to address GCC15 with
-Wunterminated-string-initialization.
It is accepted in wireguard-linux in [1] and pending for v6.16
in [2].

[1] https://git.zx2c4.com/wireguard-linux/commit/?h=devel&id=71e5da46e78c1cd24e2feed251a2845327447ad8
[2] https://patch.msgid.link/20250521212707.1767879-3-Jason@zx2c4.com

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18950
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomediatek: mt7629: add the missing symbol CONFIG_LEDS_SMARTRG_LED 18947/head
Shiji Yang [Wed, 28 May 2025 11:06:00 +0000 (19:06 +0800)] 
mediatek: mt7629: add the missing symbol CONFIG_LEDS_SMARTRG_LED

This symbol was lost when porting to the 6.12 kernel.

Fixes: 16b5a77716f6 ("mediatek: mt7629: update config-6.12")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18947
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: reorder kernel symbol configs
Shiji Yang [Wed, 28 May 2025 11:06:00 +0000 (19:06 +0800)] 
kernel: reorder kernel symbol configs

Sort kernel configuration files alphabetically. Also resolve the
"CONFIG_ARM_PAN" conflict introduced in commit
057a0a075edc ("generic: Fix up the v6.12 config for ARM"). Based on
the original PR comment[1], this symbol should be disabled by default.

[1] https://github.com/openwrt/openwrt/pull/18900#discussion_r2106253528
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18947
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agosunxi: add support for Beelink X2 18732/head
Kyle Hendry [Mon, 5 May 2025 00:22:22 +0000 (17:22 -0700)] 
sunxi: add support for Beelink X2

Specifications:
- SoC: Allwinner H3 Quad Cortex-A7 1.2GHz
- Flash: 8GB eMMC
- RAM: 1GB DDR3
- Ethernet: 1x100M
- Wifi: RTL8189FTV or AP6181
- 1x USB-A Host
- 1x USB-A Host/Device
- 2x Button
- 2x LED
- HDMI, SPDIF, IR

Install by following standard SD card flashing instructions.
Image can also be flashed to eMMC.

Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18732
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomalta: 6.12: enable kernel for testing 18712/head
Tony Ambardar [Sun, 29 Dec 2024 09:39:03 +0000 (01:39 -0800)] 
malta: 6.12: enable kernel for testing

All four subtargets build successfully and run under QEMU.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomalta: 6.12: update config after kernel refresh
Tony Ambardar [Thu, 22 May 2025 22:37:20 +0000 (15:37 -0700)] 
malta: 6.12: update config after kernel refresh

Drop obsolete symbols GCC_ASM_GOTO_OUTPUT_WORKAROUND and HW_CONSOLE, and
PREEMPT_NONE_BUILD which is now set in top-level generic config.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel/malta: Restore kernel files for v6.6
Tony Ambardar [Mon, 30 Dec 2024 01:12:54 +0000 (17:12 -0800)] 
kernel/malta: 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: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel/malta: Create kernel files for v6.12 (from v6.6)
Tony Ambardar [Mon, 30 Dec 2024 01:12:53 +0000 (17:12 -0800)] 
kernel/malta: 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: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokselftests-bpf: add support for kernel 6.12
Tony Ambardar [Wed, 15 Jan 2025 00:35:38 +0000 (16:35 -0800)] 
kselftests-bpf: add support for kernel 6.12

Support new libpcap dependency and drop an old kernel version dependency.
Also improve formatting and avoid using unneeded deferred make variables.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agopackage/zram: fix up Kconfig behaviour for kernel 6.12
Tony Ambardar [Mon, 27 Jan 2025 14:20:36 +0000 (06:20 -0800)] 
package/zram: fix up Kconfig behaviour for kernel 6.12

The initial 6.12 merge leaves package/zram menuconfig behaviour confusing.
Selecting "kmod-zram" opens a submenu of the available algorithms to build
and the actual algo to use. However, when "lzo-rle" is shown as the default
used, it still remains missing from the available list. Only enabling a
_different_ compression algo to build will also reveal "lzo-rle" as
available.

Update the Kconfig to show "lzo-rle" as available if used/referenced.

Fixes: 4708057e27 ("package/zram: update for kernel 6.12")
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18712
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agobmips: drop 6.6 support 18955/head
Álvaro Fernández Rojas [Thu, 29 May 2025 11:50:19 +0000 (13:50 +0200)] 
bmips: drop 6.6 support

Drop configs and patches for Linux 6.6.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobmips: use kernel 6.12 by default
Álvaro Fernández Rojas [Thu, 29 May 2025 11:49:13 +0000 (13:49 +0200)] 
bmips: use kernel 6.12 by default

Switch to Linux kernel version 6.12.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agogemini: Add missing PHY packages
Linus Walleij [Thu, 29 May 2025 06:55:16 +0000 (08:55 +0200)] 
gemini: Add missing PHY packages

These packages were dropped off in reverted packaging, bring
them all back.

Link: https://github.com/openwrt/openwrt/pull/18952
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 months agobmips: enable 6.12 kernel testing 18746/head
Álvaro Fernández Rojas [Thu, 8 May 2025 15:51:25 +0000 (17:51 +0200)] 
bmips: enable 6.12 kernel testing

bmips target now supports 6.12 kernel as testing.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobmips: update files for kernel 6.12
Álvaro Fernández Rojas [Thu, 8 May 2025 15:49:39 +0000 (17:49 +0200)] 
bmips: update files for kernel 6.12

- Update subtarget configs for kernel 6.12.
- Refresh patches for kernel 6.12.
- Drop 210-revert-macronix-nand-block-protection.patch since brcmnand no longer
  implements low level ops.
- Adapt bcm63268 gpio switches for 6.12 numbering.
- Add b53 pending patches from Jonas Gorski to fix system hangs.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobmips: restore kernel files for v6.6
Álvaro Fernández Rojas [Thu, 8 May 2025 15:25:29 +0000 (17:25 +0200)] 
bmips: 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: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobmips: create kernel files for v6.12 (from v6.6)
Álvaro Fernández Rojas [Thu, 8 May 2025 15:24:11 +0000 (17:24 +0200)] 
bmips: 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: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agoumdns: update to Git HEAD (2025-05-29)
Felix Fietkau [Thu, 29 May 2025 11:28:03 +0000 (13:28 +0200)] 
umdns: update to Git HEAD (2025-05-29)

263a0cb87b50 udebug: use proper libudebug API
ca9b8765aea3 dns: rework packet API
ea40cfdf7eb0 cache: send multiple queries in a single packet
d62813727e53 cache: add explicit lookup for host addresses
0ce73d80dc0c dns: add cache/queue for outgoing queries
083be33749b1 cache: improve service refresh behavior
55d0c1bc1ac5 interface: ask for unicast responses by default
ce508467a533 service: add support for setting service specific hostname
632953a1582d interface: when interface properties change, reinitialise
695ac3708aa0 ubus: fix ubus announcements txt fields
cecbe1c0caae Make mdns responder case-insensitive.
2b28094d31ca dns: add support for reverse address mapping queries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agoumdns: fix udebug with jail
Felix Fietkau [Wed, 28 May 2025 15:01:48 +0000 (17:01 +0200)] 
umdns: fix udebug with jail

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agoprocd: update to Git HEAD (2025-05-28)
Felix Fietkau [Wed, 28 May 2025 14:55:58 +0000 (16:55 +0200)] 
procd: update to Git HEAD (2025-05-28)

37847fee4fe7 instance: convert jail feature flags to bitmap
58b6c3313e07 jail: add flag for passing the udebug socket
a3d6f1f59ff7 jail: add /dev/shm unconditionally

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agohostapd: revert "ACS: Validate 6 GHz AP criteria before ACS" 18426/head
Agustin Lorenzo [Tue, 22 Apr 2025 20:28:51 +0000 (22:28 +0200)] 
hostapd: revert "ACS: Validate 6 GHz AP criteria before ACS"

By OpenWrt's design, hostapd runs in a single global instance for all radios supported by the device, rather than one instance per radio like hostapd usually does.

Signed-off-by: Agustin Lorenzo <agustin.lorenzo@thinco.es>
Link: https://github.com/openwrt/openwrt/pull/18426
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agohostapd: update to version 2025-05-23
Agustin Lorenzo [Sun, 6 Apr 2025 19:44:21 +0000 (21:44 +0200)] 
hostapd: update to version 2025-05-23

Manually refreshed:

301-mesh-noscan.patch
601-ucode_support.patch
770-radius_server.patch

Automatically rebased all other patches.

Signed-off-by: Agustin Lorenzo <agustin.lorenzo@thinco.es>
Link: https://github.com/openwrt/openwrt/pull/18426
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agogeneric: 6.12: backport upstream v6.16 b53 patch
Álvaro Fernández Rojas [Thu, 29 May 2025 06:13:00 +0000 (08:13 +0200)] 
generic: 6.12: backport upstream v6.16 b53 patch

e39d14a760c03 net: dsa: b53: implement setting ageing time

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agouml: move config and patches to target dir
Álvaro Fernández Rojas [Thu, 29 May 2025 06:04:15 +0000 (08:04 +0200)] 
uml: move config and patches to target dir

Commit f025af128002 ("uml: restore 6.6 config+patches") accidentally restored
uml config and patches on the root directory instead of the proper directory.

Fixes: f025af128002 ("uml: restore 6.6 config+patches")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agogeneric: 6.12: backport b53 upstream patches
Álvaro Fernández Rojas [Wed, 28 May 2025 19:46:40 +0000 (21:46 +0200)] 
generic: 6.12: backport b53 upstream patches

The support_eee patch is needed in order to prevent system hangs on bmips
devices.

c4f873c2b65c8 net: dsa: b53: mdio: add support for BCM53101
c86692fc2cb77 net: dsa: b53/bcm_sf2: implement .support_eee() method
f12b363887c70 net: dsa: use ethtool string helpers

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agogeneric: 6.12: backport dsa support_eee patches
Álvaro Fernández Rojas [Wed, 28 May 2025 19:43:51 +0000 (21:43 +0200)] 
generic: 6.12: backport dsa support_eee patches

These patches are needed for b53 implementation of b53_support_eee, which
prevent system hangs on bmips devices.

99379f587278c net: dsa: provide implementation of .support_eee()
9723a77318b7c net: dsa: add hook to determine whether EEE is supported

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agosunxi: add 6.12 as testing kernel
Zoltan HERPAI [Sat, 3 May 2025 19:58:45 +0000 (19:58 +0000)] 
sunxi: add 6.12 as testing kernel

Runtime-tested on:

- Linksprite pcDuino (cortexa8 / sun5i)
- Olimex A20 Micro (cortexa7 / sun7i)
- BananaPi P2 Zero (cortexa7 / sun8i)
- Pine64 SoM (cortexa53 / sun50i)
- Orangepi Zero 2W (cortexa53 / sun50i)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agosunxi: refresh config for 6.12
Zoltan HERPAI [Tue, 6 May 2025 22:55:40 +0000 (22:55 +0000)] 
sunxi: refresh config for 6.12

Refresh config for 6.12.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agosunxi: remove upstreamed patches from 6.12
Zoltan HERPAI [Sat, 3 May 2025 19:57:40 +0000 (19:57 +0000)] 
sunxi: remove upstreamed patches from 6.12

Remove upstreamed patches and refresh remaining ones for 6.12.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agokernel/sunxi: Restore kernel files for v6.6
Zoltan HERPAI [Thu, 1 May 2025 13:32:14 +0000 (13:32 +0000)] 
kernel/sunxi: 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: Zoltan HERPAI <wigyori@uid0.hu>
2 months agokernel/sunxi: Create kernel files for v6.12 (from v6.6)
Zoltan HERPAI [Thu, 1 May 2025 13:32:14 +0000 (13:32 +0000)] 
kernel/sunxi: 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: Zoltan HERPAI <wigyori@uid0.hu>
2 months agouml: restore 6.6 config+patches
Christian Lamparter [Sat, 26 Apr 2025 09:48:34 +0000 (11:48 +0200)] 
uml: restore 6.6 config+patches

restore 6.6 config and patches.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2 months agouml: disable kmod-8250-serial
Christian Lamparter [Sat, 26 Apr 2025 08:02:53 +0000 (10:02 +0200)] 
uml: disable kmod-8250-serial

The driver tries to access ioports (0x2f9!!) which UML doesn't have.
This causes lots of warnings to appear on boot:

| WARNING: CPU: 0 PID: 1 at lib/logic_iomem.c:188 serial8250_config_port+0x20a/0x1260
| Invalid writeqb of 0xff at address 2f9
| Modules linked in:
| CPU: 0 UID: 0 PID: 1 Comm: swapper Tainted: G        W          6.12.25 #0
| Tainted: [W]=WARN
| Stack:
| Call Trace:
|  [<60001000>] ? set_reset_devices+0x0/0x16
|  [<60452cba>] ? serial8250_config_port+0x20a/0x1260
|  [<6071e91f>] ? dump_stack_lvl+0x55/0x71
|  [<606e127c>] ? _printk+0x0/0x4f
|  [<60044bbb>] ? __warn+0x11b/0x120
|  [<6003b5d0>] ? um_set_signals+0x0/0x40
|  [<606de721>] ? warn_slowpath_fmt+0x81/0x8c
|  [<606de6a0>] ? warn_slowpath_fmt+0x0/0x8c
|  [<60452cba>] ? serial8250_config_port+0x20a/0x1260

(they are even recursive!)

Now, the situation gets more confusing. Because from what I can tell,
this was seemingly done intenionally. Upstream patches in related areas:

|commit ddd268c42871b78c75e12a5c28207fb481138f41
|Author: Niklas Schnelle <schnelle@linux.ibm.com>
|Date:   Wed Apr 3 14:43:00 2024 +0200
|
|    um: Select HAS_IOREMAP for UML_IOMEM_EMULATION
|
|    In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
|    compile time. UML supports these via its UML_IOMEM_EMULATION so let that
|    select HAS_IOPORT and also reflect this in NO_IOPORT_MAP.

hint that there's ongoing work in this area. But unfortunately, this future
hasn't arrived yet. Once this future arrives, please nuke this patch.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2 months agouml: add 6.12 testing kernel
Christian Lamparter [Sat, 26 Apr 2025 02:23:21 +0000 (04:23 +0200)] 
uml: add 6.12 testing kernel

refresh config + patches.

This includes the following changes:
 - The selected x86_64 CPU is switched to generic instead of K8.

A backported patch is included from 6.13.

000-v6.13-asm-generic-io.h-rework-split-ioread64-iowrite64-hel.patch
|fixed the following build error:
|  CC      lib/iomap.o
|lib/iomap.c:156:5: error: no previous prototype for 'ioread64_lo_hi' [-Werror=missing-prototypes]
|  156 | u64 ioread64_lo_hi(const void __iomem *addr)
|      |     ^~~~~~~~~~~~~~
| [...]

Note: 102-pseudo-random-mac.patch will likely go away with the next stable.
UML is switching to a new networking infrastructure. The previous implementation
using tuntap, daemon, socket, ethertap, vde are being replaced by "vector"
transports tap, hybrid, raw, EoGRE, Eol2tpv3, fd, vde (vector!).

Please see, to checkout what will change:
<https://docs.kernel.org/virt/uml/user_mode_linux_howto_v2.html#setting-up-uml-networking>

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2 months agouml: remove left-overs from previous kernel bumps
Christian Lamparter [Sat, 26 Apr 2025 10:05:11 +0000 (12:05 +0200)] 
uml: remove left-overs from previous kernel bumps

This should have been fixed by an upstream patch in 5.12
|commit ed102bf2afed226703eaf85a704755bdbea34583
|Author: Randy Dunlap <rdunlap@infradead.org>
|Date:   Thu Apr 15 10:13:52 2021 -0700
|
|    um: Fix W=1 missing-include-dirs warnings
|
|    Currently when using "W=1" with UML builds, there are over 700 warnings
|    cc1: warning: ./arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
|
|    but arch/um/ does not have include/uapi/ at all, so add that
|    subdir and put one Kbuild file into it (since git does not track
|    empty subdirs).

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2 months agogeneric: 6.12: add missing symbol
Christian Lamparter [Sat, 26 Apr 2025 02:25:27 +0000 (04:25 +0200)] 
generic: 6.12: add missing symbol

this symbol got picked up by the 6.12 UML conversion.
CONFIG_FBNIC = FaceBook/Meta Platforms Host Network Interface
it should be disabled by default in generic.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2 months agogeneric: 6.6: backport devm_clk_get_optional_enabled_with_rate 18942/head
Álvaro Fernández Rojas [Wed, 28 May 2025 07:10:29 +0000 (09:10 +0200)] 
generic: 6.6: backport devm_clk_get_optional_enabled_with_rate

This is needed for mac80211 v6.14.5 update.

9934a1bd45b2b clk: provide devm_clk_get_optional_enabled_with_rate()

https://github.com/torvalds/linux/commit/9934a1bd45b2b03f6d1204a6ae2780d3b009799f

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agogeneric: backport secs_to_jiffies 18941/head
Álvaro Fernández Rojas [Wed, 28 May 2025 07:14:19 +0000 (09:14 +0200)] 
generic: backport secs_to_jiffies

This is needed for mac80211 v6.14.5 update.

b35108a51cf7b jiffies: Define secs_to_jiffies()
bb2784d9ab495 jiffies: Cast to unsigned long in secs_to_jiffies() conversion

https://github.com/torvalds/linux/commit/b35108a51cf7bab58d7eace1267d7965978bcdb8
https://github.com/torvalds/linux/commit/bb2784d9ab49587ba4fbff37a319fff2924db289

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agomediatek: filogic: provide custom GPT table for Arcadyan Mozart 18874/head
Christian Marangi [Tue, 27 May 2025 16:57:06 +0000 (18:57 +0200)] 
mediatek: filogic: provide custom GPT table for Arcadyan Mozart

New revision Arcadyan Mozart apply a new partition table and moved the
factory partition to a new location. This conflicts with the standard
partition layout and also make the nvmem cells to not correctly identify
the MAC address anymore.

Generate and Provide a new GPT partition table that account for the new
calibration partition.
The previous revision of the Arcadyan Mozart device is considered
pre-production devices and should not be intended for real support.

Link: https://github.com/openwrt/openwrt/pull/18874
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 months agouboot-mediatek: Add GPT table write command for Arcadyan Mozart
Christian Marangi [Wed, 21 May 2025 22:17:02 +0000 (00:17 +0200)] 
uboot-mediatek: Add GPT table write command for Arcadyan Mozart

Add an additional bootmenu option and commands to overwrite the GPT
table with the custom one for upstream U-Boot.

This is needed as the pre-installed GPT table differ and updating the
GPT table is a requirement to install the upstream U-Boot (or the old
U-Boot will be loaded)

To make the migration to new U-Boot bootloader an user can now load the
system with mtk_uartboot and select "Load GPT Table ..." in conjunction
with other update command.

Link: https://github.com/openwrt/openwrt/pull/18874
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 months agoipq60xx: add support for ALFA Network AP120C-AX
Piotr Dymacz [Fri, 4 Apr 2025 20:42:57 +0000 (22:42 +0200)] 
ipq60xx: add support for ALFA Network AP120C-AX

ALFA Network AP120C-AX is a dual-band ceiling AP, based on Qualcomm
IPQ6000 + QCN5021 + QCN5052 + QCA8072 chipsets bundle.

Specifications:

- SOC:      Qualcomm IPQ6000 (quad-core Cortex-A53 1.2 GHz)
- DRAM:     DDR3 512 MB (Micron MT41K256M16TW-107)
- Flash:    16 MB SPI NOR (Macronix MX25U12832F, boot device)
            128 MB NAND (Macronix MX30UF1G18AC, dual-firmware)
- Ethernet: 2x 10/100/1000 Mbps Ethernet (QCA8072)
            802.3at/af PoE input in WAN port
- Wi-Fi:    2x2 2.4 GHz Wi-Fi 6 (QCN5021 + RFFM8227 FEM)
            2x2   5 GHz Wi-Fi 6 (QCN5152 + QPF4568 FEM)
- Antenna:  for indoor version: dual-band, internal
            2x (or 4x) U.FL antenna connectors on the PCB
- LED:      for indoor/outdoor versions: 5x on external module (status,
            2x Wi-Fi, 2x Ethernet), PoE LED on-board
            8-pin on-board header for LED module (1.27 mm pitch, J14)
- Button:   1x button (reset)
- USB:      1x 4-pin on-board header for USB 2.0 (2.54 mm pitch, J22)
- UART:     1x micro USB Type-B for system console (Holtek HT42B534)
            1x 4-pin on-board header (2.54 mm pitch, J11)
- Power:    802.3at/af PoE or 12 V DC/2 A (DC jack)
- Other:    8-pin and 4-pin on-board headers for external Bluetooth
            module (1.27 mm pitch, J15, J16, unavailable, thus untested)

MAC addresses:

- WAN:               00:c0:ca:xx:xx:6c (art 0x0, device's label -2)
- LAN:               00:c0:ca:xx:xx:6d (art 0x6, device's label -1)
- 2.4 GHz (IPQ6000): 00:c0:ca:xx:xx:6e (art 0xc, device's label)
-   5 GHz (IPQ6000): 00:c0:ca:xx:xx:6f (device's label + 1)

Flash instructions:

Due to the lack of direct GUI based update capability and dual-firmware
partition configuration, it is recommended to use TFTP + serial console
based approach (console is available in micro USB connector):

1. Set a static IP 192.168.1.1/24 on PC and start TFTP server with the
   '...-factory.ubi' image renamed to 'firmware.bin'.
2. Make sure you can access board's serial console over micro USB.
3. Power up the device, hit any key to enter U-Boot CLI and issue below
   commands.

3.1 Restore U-Boot's environment to default values (double check first
    the '0:APPSBLENV' partition offset using 'smem' command):

    sf probe
    sf erase 0x510000 0x10000
    saveenv

3.2 Download and install OpenWrt in both partitions and reset the board:

    tftpb 0x44000000 firmware.bin
    flash rootfs
    flash rootfs_1
    reset

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2 months agogemini: Switch to kernel v6.12 only
Linus Walleij [Sun, 25 May 2025 16:59:19 +0000 (18:59 +0200)] 
gemini: Switch to kernel v6.12 only

There is no reason to keep v6.6 support. v6.12 is verified
and working.

Link: https://github.com/openwrt/openwrt/pull/18936
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 months agogemini: Kernel v6.12
Linus Walleij [Fri, 2 May 2025 08:12:56 +0000 (10:12 +0200)] 
gemini: Kernel v6.12

This platform is tightly coupled to upstream and works just
fine with kernel v6.12.

Link: https://github.com/openwrt/openwrt/pull/18936
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 months agouboot-mediatek: replace bootmenu shortkey patch with better version 18919/head
Christian Marangi [Sun, 25 May 2025 21:56:14 +0000 (23:56 +0200)] 
uboot-mediatek: replace bootmenu shortkey patch with better version

Replace bootmenu shortmenu mediatek patch with a better version proposed
upstream that implement a more clean implementation.

Also the mediatek patch seems to be bugged and with lots of bootmenu
elements it's gets very bugged and unusable.

Refresh any affected patch.

Upstream-Status: Submitted [https://lore.kernel.org/u-boot/20250525134407.3760-1-ansuelsmth@gmail.com/]
Link: https://github.com/openwrt/openwrt/pull/18919
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 months agosifiveu: drop upstreamed patch from 6.12
Zoltan HERPAI [Tue, 27 May 2025 13:29:23 +0000 (13:29 +0000)] 
sifiveu: drop upstreamed patch from 6.12

The gpio-poweroff support has been upstreamed earlier.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agosifiveu: drop 6.6 support
Zoltan HERPAI [Tue, 27 May 2025 13:24:56 +0000 (13:24 +0000)] 
sifiveu: drop 6.6 support

Drop configs and patches for Linux 6.6.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agosifiveu: use kernel 6.12 by default
Zoltan HERPAI [Tue, 27 May 2025 13:23:59 +0000 (13:23 +0000)] 
sifiveu: use kernel 6.12 by default

Switch to Linux kernel version 6.12.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agogeneric: Fix up the v6.12 config for ARM
Linus Walleij [Fri, 2 May 2025 09:07:36 +0000 (11:07 +0200)] 
generic: Fix up the v6.12 config for ARM

This adds a few ARM-related kconfig options that makes the
configure phase smooth on ARM (32bit) systems.

We default PAN to enabled for protection, however this has
a syscall speed penalty, if your system is interacting a lot
from userspace you might want to disable it for speed vs
security. For in-kernel routing it should not be a major
issue.

Some marginal ARM system enables DRM so make sure we have
the related DRM Kconfigs set up to unselected.

Link: https://github.com/openwrt/openwrt/pull/18900
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 months agomediatek: add ubootmod layout for cudy tr3000 v1 17712/head
Tianling Shen [Fri, 24 Jan 2025 08:15:22 +0000 (16:15 +0800)] 
mediatek: add ubootmod layout for cudy tr3000 v1

This allows us to use the full size of nand, which increases ubi size
from 64M to 122.25M.

If you are at factory firmware, please refer commit 63b8d98dd0d2 ("mediatek: add support for Cudy TR3000 v1")
to boot into OpenWrt initramfs (stock layout).

Flash instructions:
1. Login into the device and backup everything, especially 'Factory' part.
1. Unlock mtd partitions:
   apk update && apk add kmod-mtd-rw
   insmod mtd-rw i_want_a_brick=1
3. Write new BL2 and FIP
   mtd write openwrt-mediatek-filogic-cudy_tr3000-v1-ubootmod-preloader.bin BL2
   mtd write openwrt-mediatek-filogic-cudy_tr3000-v1-ubootmod-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve OpenWrt initramfs image using TFTP server.
6. Cut off the power and re-engage, wait for TFTP recovery to complete.
7. After OpenWrt has booted, perform sysupgrade.

Tested-by: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2 months agoumbim: add support for wwan device class
Antti Seppälä [Tue, 27 May 2025 08:20:09 +0000 (11:20 +0300)] 
umbim: add support for wwan device class

Some MBIM devices can exist on an MHI bus (over PCIe) instead of being presented as USB devices.

In such cases the interface name lookup needs to be done from /sys/class/wwan/ instead of /sys/class/usbmisc/

Add another readlink call in case the first lookup fails.

This allows the MBIM protocol to find the interface name and then work with both type of devices provided that /etc/config/network has the right device for MBIM interface (such as /dev/wwan0mbim0 in case of MHI)

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
2 months agogeneric: 6.12: backport upstream v6.16 brcmnand patches 18931/head
Álvaro Fernández Rojas [Fri, 23 May 2025 06:15:42 +0000 (08:15 +0200)] 
generic: 6.12: backport upstream v6.16 brcmnand patches

This is needed to restore compatibility with legacy brcmnand controllers.

3bfb22cecfe6 mtd: rawnand: brcmnand: legacy exec_op implementation
528b541b71cf mtd: nand: brcmnand: fix NAND timeout when accessing eMMC
56fce7547004 mtd: rawnand: brcmnand: remove unused parameters

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agowifi-scripts: use consistent names for Qualcomm devices 18039/head
Sean Khan [Thu, 20 Feb 2025 02:09:26 +0000 (21:09 -0500)] 
wifi-scripts: use consistent names for Qualcomm devices

The device manufacturer name for Qualcomm Atheros is listed
as "Qualcomm, Atheros" for PCI devices but "Qualcomm Atheros" under
"compatible". This gives inconsistent results in `iwinfo` and

```
Hardware: 0x168c:0x0046 0x168c:0xcafe [Qualcomm, Atheros QCA9984]
Hardware: embedded [Qualcomm Atheros IPQ8074]
```

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18039
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agowifi-scripts: ucode: iwinfo: fix 'unknown' typo
Sean Khan [Thu, 20 Feb 2025 01:01:29 +0000 (20:01 -0500)] 
wifi-scripts: ucode: iwinfo: fix 'unknown' typo

The 'unknown' string was misspelled as 'unknonw'.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18039
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agowifi-scripts: iwinfo: show units for signal and noise
Sean Khan [Thu, 20 Feb 2025 00:34:30 +0000 (19:34 -0500)] 
wifi-scripts: iwinfo: show units for signal and noise

Add 'dBm' units to 'Signal' and 'Noise' to match what non-ucode iwinfo shows.

Before:
  Signal: -49  Noise: -103

After:
  Signal: -49 dBm  Noise: -103 dBm

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18039
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agowifi-scripts: iwinfo: don't show bitrate unit when unknown
Sean Khan [Wed, 19 Feb 2025 22:22:29 +0000 (17:22 -0500)] 
wifi-scripts: iwinfo: don't show bitrate unit when unknown

When bitrate is unknown, the units shouldn't be displayed. This is
consistent with other "unknown" fields and non-ucode iwinfo.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18039
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agobcm27xx: refresh 6.12 patches
Álvaro Fernández Rojas [Tue, 27 May 2025 09:22:27 +0000 (11:22 +0200)] 
bcm27xx: refresh 6.12 patches

Commit 438ed53577ad ("generic: 6.12: backport MediaTek Ethernet PHY changes")
backported commits to generic 6.12, but missed refreshing bcm27xx patches.

Fixes: 438ed53577ad ("generic: 6.12: backport MediaTek Ethernet PHY changes")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agorealtek: align declaration/static/extern function definitions for dsa driver 18925/head
Markus Stockhausen [Mon, 26 May 2025 12:14:42 +0000 (08:14 -0400)] 
realtek: align declaration/static/extern function definitions for dsa driver

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: align declaration/static/extern function definitions for eth driver
Markus Stockhausen [Mon, 26 May 2025 12:14:13 +0000 (08:14 -0400)] 
realtek: align declaration/static/extern function definitions for eth driver

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: align declaration/static/extern function definitions for phy driver
Markus Stockhausen [Mon, 26 May 2025 12:13:53 +0000 (08:13 -0400)] 
realtek: align declaration/static/extern function definitions for phy driver

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: align declaration/static/extern function definitions for clock driver
Markus Stockhausen [Mon, 26 May 2025 12:13:29 +0000 (08:13 -0400)] 
realtek: align declaration/static/extern function definitions for clock driver

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: align declaration/static/extern function definitions for startup code
Markus Stockhausen [Mon, 26 May 2025 12:11:28 +0000 (08:11 -0400)] 
realtek: align declaration/static/extern function definitions for startup code

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agod1: improve Nezha D1 support
Zoltan HERPAI [Mon, 26 May 2025 17:16:46 +0000 (17:16 +0000)] 
d1: improve Nezha D1 support

The Nezha board has a PCF8574 that acts as an I/O expander on the
i2c2 bus. Enable the required module for it.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agod1: enable crypto offload engine
Zoltan HERPAI [Mon, 26 May 2025 13:18:25 +0000 (13:18 +0000)] 
d1: enable crypto offload engine

Enable the sun8i_ce engine that's included on the D1 SoC, along
with the respective hash/prng/trng options. The sun8i_ce driver
also requires PM and PPU to be enabled.

[    1.368345] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[    1.378592] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    1.386894] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    1.395114] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    1.403197] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    1.411110] sun8i-ce 3040000.crypto: Register cbc(aes)
[    1.416235] sun8i-ce 3040000.crypto: Register ecb(aes)
[    1.421347] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[    1.426898] sun8i-ce 3040000.cryxto: Register ecb(des3_ede)
[    1.432366] sun8i-ce 3040000.crypto: Register md5
[    1.437112] sun8i-ce 3040000.crypto: Register sha1
[    1.441816] sun8i-ce 3040000.crypto: Register sha224
[    1.446821] sun8i-ce 3040000.crypto: Register sha256
[    1.451697] sun8i-ce 3040000.crypto: Register sha384
[    1.456733] sun8i-ce 3040000.crypto: Register sha512
[    1.461673] sun8i-ce 3040000.crypto: Register stdrng
[    1.467096] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0

root@OpenWrt:~# cat /proc/crypto |grep sun8i
driver       : sun8i-ce-prng
driver       : sha512-sun8i-ce
driver       : sha384-sun8i-ce
driver       : sha256-sun8i-ce
driver       : sha224-sun8i-ce
driver       : sha1-sun8i-ce
driver       : md5-sun8i-ce
driver       : ecb-des3-sun8i-ce
driver       : cbc-des3-sun8i-ce
driver       : ecb-aes-sun8i-ce
driver       : cbc-aes-sun8i-ce

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 months agotoolchain: gcc: drop GCC11
Robert Marko [Mon, 26 May 2025 17:17:34 +0000 (19:17 +0200)] 
toolchain: gcc: drop GCC11

There is no practical value in keeping GCC11 around, as even OpenWrt 23.05
uses GCC12 as the default one, so drop it.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoramips: mt7621: sercomm_na502s: use upstream XR USB serial driver 18926/head
Robert Marko [Mon, 26 May 2025 13:46:32 +0000 (15:46 +0200)] 
ramips: mt7621: sercomm_na502s: use upstream XR USB serial driver

Instead of including the out-of-tree XR USB serial driver, use the
newly packaged in-tree driver for it.

Link: https://github.com/openwrt/openwrt/pull/18926
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agokernel: usb: package MaxLinear/Exar USB serial driver
Robert Marko [Mon, 26 May 2025 13:39:58 +0000 (15:39 +0200)] 
kernel: usb: package MaxLinear/Exar USB serial driver

Currently, MaxLinear/Exar USB serial devices are supported via out-of-tree
usb-serial-xr_usb_serial_common driver which is broken on 6.12.

So since upstream has support for these devices since 6.5 lets package
the in-tree driver to be able to drop the out-of-tree one.

Link: https://github.com/openwrt/openwrt/pull/18926
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agomediatek: enable testing kernel 6.12 18750/head
Daniel Golle [Thu, 8 May 2025 16:56:37 +0000 (17:56 +0100)] 
mediatek: enable testing kernel 6.12

Set KERNEL_TESTING_PATCHVER to allow testing Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: mt7629: update config-6.12
Daniel Golle [Thu, 8 May 2025 23:29:34 +0000 (00:29 +0100)] 
mediatek: mt7629: update config-6.12

Refresh kernel configuration of the mt7629 subtarget for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: mt7623: update config-6.12
Daniel Golle [Thu, 8 May 2025 23:00:51 +0000 (00:00 +0100)] 
mediatek: mt7623: update config-6.12

Refresh kernel configuration of the mt7623 subtarget for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: mt7622: update config-6.12
Daniel Golle [Thu, 8 May 2025 19:17:55 +0000 (20:17 +0100)] 
mediatek: mt7622: update config-6.12

Refresh kernel configuration of the mt7622 subtarget for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: filogic: update config-6.12
Daniel Golle [Thu, 8 May 2025 02:16:41 +0000 (03:16 +0100)] 
mediatek: filogic: update config-6.12

Refresh kernel configuration of the filogic subtarget for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: fix and refresh patches
Daniel Golle [Thu, 8 May 2025 02:11:52 +0000 (03:11 +0100)] 
kernel/mediatek: 6.12: fix and refresh patches

Fix patches and refresh for Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: adapt for changed MMC card binding
Daniel Golle [Sat, 17 May 2025 13:03:10 +0000 (14:03 +0100)] 
kernel/mediatek: 6.12: adapt for changed MMC card binding

Adapt patches adding NVMEM or fitblk rootdisk references to MMC
partitions for the changed MMC card binding.

Note that boards in 'dts' folder can only be converted once Linux 6.6,
which still depends on the old binding, has been dropped.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: allow setting OF node for MSDOS partitions
Daniel Golle [Sat, 17 May 2025 13:07:29 +0000 (14:07 +0100)] 
kernel/mediatek: 6.12: allow setting OF node for MSDOS partitions

Add patch to allow referencing MSDOS/MBR partitions in device tree to
allow legacy MT7623 boards to continue working with fitblk.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: adapt SPI calibration
Daniel Golle [Sat, 17 May 2025 21:15:28 +0000 (22:15 +0100)] 
kernel/mediatek: 6.12: adapt SPI calibration

Fix build of downstream SPI calibration on Filogic SoCs for Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: replace downstream files by patches
Daniel Golle [Sat, 17 May 2025 12:59:59 +0000 (13:59 +0100)] 
kernel/mediatek: 6.12: replace downstream files by patches

Replace downstream files by patches, either backports of those
which have already applied or pending patches tracked on patchwork.
This is done to make future maintainance more easy.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: drop patches which have been applied upstream
Daniel Golle [Sat, 17 May 2025 12:57:05 +0000 (13:57 +0100)] 
kernel/mediatek: 6.12: drop patches which have been applied upstream

Drop patches which have been applied upstream in the meantime.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: 6.12: drop patches which are now part of generic
Daniel Golle [Sat, 17 May 2025 13:05:17 +0000 (14:05 +0100)] 
kernel/mediatek: 6.12: drop patches which are now part of generic

Drop patches which have been moved into target/linux/generic by commit
f4144d61d2 ("generic: 6.12: backport MediaTek Ethernet PHY changes").

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: Restore kernel files for v6.6
Daniel Golle [Mon, 19 May 2025 13:01:49 +0000 (14:01 +0100)] 
kernel/mediatek: 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: Daniel Golle <daniel@makrotopia.org>
2 months agokernel/mediatek: Create kernel files for v6.12 (from v6.6)
Daniel Golle [Mon, 19 May 2025 13:01:49 +0000 (14:01 +0100)] 
kernel/mediatek: 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: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: filogic: adapt BananaPi-R4 for use with upstream DT
Daniel Golle [Thu, 8 May 2025 16:51:44 +0000 (17:51 +0100)] 
mediatek: filogic: adapt BananaPi-R4 for use with upstream DT

 * the variant with 2.5G PHY instead of LAN SFP is called '2p5'
   upstream and 'poe' in our downstream Linux 6.6 DT. Use the right
   DTS depending on the kernel version and set an additional
   compatible.

 * drop additional DT overlay for WiFi.
   The final version of the board uses a physical switch for the 12V
   power of the WiFi module and the I2C EEPROM of the module always
   comes empty (instead of with a MAC address).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: dts: bring mt7988a.dtsi closer to upstream
Daniel Golle [Thu, 8 May 2025 16:48:27 +0000 (17:48 +0100)] 
mediatek: dts: bring mt7988a.dtsi closer to upstream

In preparation of using the upstream mt7988a.dtsi when switching
to Linux 6.12 prepare by bringing our downstream version closer to
what went upstream.
 * rename 'xphy' -> 'xsphy'
 * rename 'uart[012]' -> 'serial[012]'
 * only list pinctrl settings directly used in mt7988a.dtsi there,
   leave it to boards to define all additional pinctrl settings
   they need.
 * move fan and thermal-zone to board level

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: dts: rename mt7981.dtsi to mt7981b.dtsi
Daniel Golle [Thu, 8 May 2025 02:13:55 +0000 (03:13 +0100)] 
mediatek: dts: rename mt7981.dtsi to mt7981b.dtsi

Upstream uses a different filename, so lets rename our downstream
mt7981.dtsi to mt7981b.dtsi and update the device tree of all
MT7981 boards accordingly.
This is to prepare for the switch to Linux 6.12 which is going to
use the upstream mt7981b.dtsi (plus some patches on top).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agomediatek: mt7622: prepare legacy rtl8367c driver for Linux 6.12
Daniel Golle [Thu, 8 May 2025 19:16:39 +0000 (20:16 +0100)] 
mediatek: mt7622: prepare legacy rtl8367c driver for Linux 6.12

Do the minimum necessary to get the legacy rtl8367c driver to build
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: 6.12: backport MediaTek Ethernet PHY changes
Daniel Golle [Thu, 8 May 2025 02:01:07 +0000 (03:01 +0100)] 
generic: 6.12: backport MediaTek Ethernet PHY changes

The MediaTek Ethernet PHY drivers are going to be used by multiple
targets (airoha, mediatek, ramips). Add generic backports of changes
required for recently added Ethernet PHYs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: 6.12: mtk_eth_soc: adapt downstream SerDes patch
Daniel Golle [Sat, 10 May 2025 01:54:09 +0000 (02:54 +0100)] 
generic: 6.12: mtk_eth_soc: adapt downstream SerDes patch

While it will hopefully be replaced soon by an upstream solution for
now we keep the downstream SerDes PCS implementation for MT7988A.
In order to make it work with upstream mt7988a.dtsi we have to
compensate for the changed start address of topmisc which was
moved from 0x11d10000 to 0x11d10084 to accomodate a future power
domain controller located at 0x11d10000~0x11d10080.
Hence we need to change TOP_MISC_NETSYS_PCS_MUX from 0x84 to 0x0, so
the Ethernet path/mux selection can work with upstream mt7988a.dtsi.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: 6.12: fix patch adding EEE-support to mtk_eth_soc
Daniel Golle [Thu, 8 May 2025 01:59:19 +0000 (02:59 +0100)] 
generic: 6.12: fix patch adding EEE-support to mtk_eth_soc

Upstream now uses struct ethtool_keee instead of struct ethtool_eee
as parameter to EEE-related functions. Follow that change and modify
the patch accordingly.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: net: phy: rtl8261n: fix build with Linux 6.12
Daniel Golle [Thu, 8 May 2025 01:57:33 +0000 (02:57 +0100)] 
generic: net: phy: rtl8261n: fix build with Linux 6.12

Mark functions which aren't exported as static to fix build with
Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: 6.12: add hack patch for transition to new partition bindings
Daniel Golle [Fri, 9 May 2025 02:36:07 +0000 (03:36 +0100)] 
generic: 6.12: add hack patch for transition to new partition bindings

Commit fa0f130764 ("generic: 6.12: update block NVMEM driver") switched
to the upstream DT bindings for block partitions.

Bring back the old/legacy downstream way to assign the OF node to a
block device or partition in order to allow sharing a single DTS for
both, Linux 6.6 (which exclusively uses the old/legacy binding) and
Linux 6.12 (which will now support both, new/upstream binding and the
old/legacy binding).

Once we drop Linux 6.6 and all boards have been converted to the new
binding we can drop this patch.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agogeneric: 6.12: add missing Kconfig symbol
Daniel Golle [Fri, 9 May 2025 13:37:47 +0000 (14:37 +0100)] 
generic: 6.12: add missing Kconfig symbol

Augmented symbol CONFIG_SND_SOC_MT8365 was missing, add it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agorealtek: refactor RTL838x mdio serdes read/write functions 18847/head
Markus Stockhausen [Mon, 19 May 2025 18:34:54 +0000 (14:34 -0400)] 
realtek: refactor RTL838x mdio serdes read/write functions

There are still a lot of mdio functions scattered around the code.
Move the RTL838x serdes helpers closer to the bus, add the proper
prefix and simplify the functions.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18847
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: simplify RTL8214FC patches for ethtool copper/fiber switching 18816/head
Markus Stockhausen [Fri, 16 May 2025 07:31:07 +0000 (03:31 -0400)] 
realtek: simplify RTL8214FC patches for ethtool copper/fiber switching

There is a patch/bug cascade in the realtek target phy code that must be resolved.

1. The phy_driver structure is patched to add features ONLY needed for RTL8214FC

2. The kernel is patched to allow switching fiber/copper port of phys through ethtool
   by calling these new features.

3. With those patches applied the bootup always switches RTL8214FC ports to copper.
   Even if a SFP module was found before and the phy driver switched to fibre before.

3. So another patch is needed that reprobes the SFP module to activate fiber again.

4. Because of the reprobing we need a fourth patch that avoid duplicate devices.

Simplify this by removing all patches and reusing the existing ethtool phy tunable
interface. The command line usage might be counterintuitive but it avoids tons of
problems in the code. In addition, this scenario is not used frequently.

Before:ethtool -s lan25 port fibre/tp
After: ethtool --set-phy-tunable lan25 downshift on/off

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18816
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoarmsr: remove 'console=tty1' from kernel command line 17012/head
Mathew McBride [Thu, 16 Jan 2025 01:27:58 +0000 (12:27 +1100)] 
armsr: remove 'console=tty1' from kernel command line

We have modified the kernel to setup all "default" consoles,
including serial ports and framebuffers/screens, providing
no console= argument is supplied on the kernel command line.

Adding 'console=tty1' caused the 'default' serial port on
device tree systems to break, as the kernel would not carry
over the settings (like baud rate) from the bootloader.

The system administrator can still force the use of a
specific console by adding their own console= arguments.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Fixes: c099523d66a3 ("armsr: use console=tty1 to make
console more readily available")
Link: https://github.com/openwrt/openwrt/pull/17012
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoarmsr: add patch (hack) to enable all "default" consoles
Mathew McBride [Thu, 16 Jan 2025 01:20:56 +0000 (12:20 +1100)] 
armsr: add patch (hack) to enable all "default" consoles

A previous change added 'console=tty1' to the default kernel command
line on armsr, in order to ensure the framebuffer console is enabled
on systems capable of graphics output.

Unfortunately, this change broke boards that used device tree
(DT) firmware with serial consoles, as the serial console
specified by the system firmware (stdout-path) was no longer
setup by the kernel.

A bit of probing determined that the SPCR (serial port console
direction table) on ACPI systems was preventing Linux from setting
up a default framebuffer console on these systems (which is why
console=tty1 was added).

(The affected ACPI systems are usually VMs using QEMU's
'virt' machine and EDK2 firmware. The firmware on these systems
does not remove the SPCR when a screen is present)

So to ensure all possible systems are setup correctly, we modify
the kernel so all "default" console types (serial and screen)
are setup when no console= arguments are specified on the kernel
command line.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Fixes: c099523d66a3 ("use console=tty1 to make console more
readily available")
Link: https://github.com/openwrt/openwrt/pull/17012
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoath79: refresh 6.12 kernel patches 18912/head
Shiji Yang [Sun, 25 May 2025 06:46:17 +0000 (14:46 +0800)] 
ath79: refresh 6.12 kernel patches

Refresh patches to fix the GitHub CI warning.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18912
Signed-off-by: Nick Hainke <vincent@systemli.org>