]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
3 months agotoolchain: binutils: fix compilation with GCC15 18681/head
Robert Marko [Fri, 2 May 2025 09:07:54 +0000 (11:07 +0200)] 
toolchain: binutils: fix compilation with GCC15

GCC15 has switched the C language default from GNU17 to GNU23[1] and this
causes builds to fail with:
In file included from mips-opc.c:29:
mips-opc.c: In function 'decode_mips_operand':
mips-formats.h:86:7: error: expected identifier or '(' before 'static_assert'
   86 |       static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
      |       ^~~~~~~~~~~~~
mips-opc.c:214:15: note: in expansion of macro 'MAPPED_REG'
  214 |     case 'z': MAPPED_REG (0, 0, GP, reg_0_map);
      |               ^~~~~~~~~~

So, backport upstream fix for this[2] to fix compilation with GCC15.
Patch for 2.40 was manually refreshed as part of the S390 code does not
exist in 2.40 as it was added after it.

[1] https://gcc.gnu.org/gcc-15/porting_to.html#c23
[2] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8ebe62f3f0d27806b1bf69f301f5e188b4acd2b4

Fixes: #18678
Link: https://github.com/openwrt/openwrt/pull/18681
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agotoolchain: gcc: make config consistent with glibc/musl 18646/head
Konstantin Demin [Fri, 2 May 2025 10:42:42 +0000 (13:42 +0300)] 
toolchain: gcc: make config consistent with glibc/musl

I've observed configuration drift for GCC between musl and glibc
(especially it's final stage):

  # musl
  lt_cv_prog_compiler_static_works=yes
  lt_cv_prog_compiler_static_works_CXX=yes
  lt_cv_sys_max_cmd_len=1572864

  # glibc
  lt_cv_prog_compiler_static_works=no
  lt_cv_prog_compiler_static_works_CXX=no
  lt_cv_sys_max_cmd_len=512

These changes should prevent this issue in future:

  export lt_cv_prog_compiler_static_works=yes
  export lt_cv_prog_compiler_static_works_CXX=yes
  export lt_cv_sys_max_cmd_len=1572864

Also:

- provide custom autotools/libtool variables via properly named
  variable ("GCC_CONFIGURE_VARS"),
- move variables from "GCC_MAKE" to "GCC_CONFIGURE_VARS"
  (at this moment only "gcc_cv_libc_provides_ssp=yes" for musl),
- propagate it's usage for both "./configure" and "make".

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18646
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomake_ext4fs: Update to version 2025-05-02 18682/head
Konstantin Demin [Fri, 2 May 2025 10:47:43 +0000 (13:47 +0300)] 
make_ext4fs: Update to version 2025-05-02

13767a9 make_ext4fs: add missing space after LDFLAGS

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18682
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomold: update to 2.38.1 18679/head
Carsten Schuette [Fri, 2 May 2025 06:22:38 +0000 (08:22 +0200)] 
mold: update to 2.38.1

https://github.com/rui314/mold/releases/tag/v2.38.0
https://github.com/rui314/mold/releases/tag/v2.38.1

Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
Link: https://github.com/openwrt/openwrt/pull/18679
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogemini: Add module for VSC73xx switches
Linus Walleij [Sun, 12 Jan 2025 00:37:20 +0000 (01:37 +0100)] 
gemini: Add module for VSC73xx switches

This adds the Vitesse VSC73xx DSA switch modules to the two
Gemini devices that have them.

Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250410-gemini-rtl-dsa-module-v1-2-60af8219b2cc@linaro.org/
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
3 months agokernel: netdevices: Create Vitesse DSA switch packages
Linus Walleij [Sun, 12 Jan 2025 00:32:35 +0000 (01:32 +0100)] 
kernel: netdevices: Create Vitesse DSA switch packages

This adds kernel packages for the Vitesse VSC73XX switches.

I have split the switch into explicit SPI and platform integrated
variants as it's quite a bit of code.

Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250410-gemini-rtl-dsa-module-v1-1-60af8219b2cc@linaro.org/
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
3 months agorealtek: fix RTL8214FC probing on RTL839x 18671/head
Markus Stockhausen [Thu, 1 May 2025 17:19:01 +0000 (13:19 -0400)] 
realtek: fix RTL8214FC probing on RTL839x

Probing of the RTL8214FC on RTL839x is currently very strange.

- On RTL8393 nothing is detected and only generic PHY is reported
- On RTL8392 the port 1 is not detected while port 2-4 seem to work

Someone left a special RTL8393 detection rules that seems to indicate
that the we probe the internal SerDes instead. That is not true. Since
upgrade to kernel 6.6 the RTL8218/RTL8214FC detection is 100% accurate
and probing functions are only called when really needed.

Fix the issue by removing the condition. For now do PHY patching only
on the RTL838x where it already worked before.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18671
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
3 months agorealtek: use remove_new 18660/head
Rosen Penev [Sat, 26 Apr 2025 22:34:51 +0000 (15:34 -0700)] 
realtek: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoairoha: pwm: use devm
Rosen Penev [Sat, 26 Apr 2025 23:48:12 +0000 (16:48 -0700)] 
airoha: pwm: use devm

Removes the need for a remove function in platform_device.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: remoteproc: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:52:57 +0000 (15:52 -0700)] 
qualcommax: remoteproc: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq40xx: ipqess: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:51:18 +0000 (15:51 -0700)] 
ipq40xx: ipqess: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq40xx: qca8k: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:49:32 +0000 (15:49 -0700)] 
ipq40xx: qca8k: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agolayerscape: ppfe: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:48:16 +0000 (15:48 -0700)] 
layerscape: ppfe: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: pwm: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:46:00 +0000 (15:46 -0700)] 
qualcommax: pwm: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: pwm: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:44:00 +0000 (15:44 -0700)] 
ramips: pwm: use remove_new

Easy way to add compatibility for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: mt7621-i2c: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:42:11 +0000 (15:42 -0700)] 
ramips: mt7621-i2c: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: eip93: use remove_new
Rosen Penev [Sat, 26 Apr 2025 22:39:30 +0000 (15:39 -0700)] 
ramips: eip93: use remove_new

Compatibility fix for kernel 6.12

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: add KERNEL_STACKDEPOT_MAX_FRAMES 18676/head
Stijn Tintel [Thu, 1 May 2025 20:09:49 +0000 (23:09 +0300)] 
kernel: add KERNEL_STACKDEPOT_MAX_FRAMES

When KERNEL_SLUB_DEBUG is enabled, build fails due to the
KERNEL_STACKDEPOT_MAX_FRAMES missing. Add it.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Link: https://github.com/openwrt/openwrt/pull/18676
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: fix KERNEL_PROBE_EVENTS_BTF_ARGS
Stijn Tintel [Thu, 1 May 2025 20:02:54 +0000 (23:02 +0300)] 
kernel: fix KERNEL_PROBE_EVENTS_BTF_ARGS

We no longer support kernels < 6.6, so drop the dependency. This fixes a
missing symbol with 6.12 when KERNEL_DEBUG_INFO_BTF and
KERNEL_KPROBE_EVENTS are enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Link: https://github.com/openwrt/openwrt/pull/18676
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: ipq50xx: fix DTB warning in USB node of Linksys MR5500 18672/head
George Moussalem [Thu, 1 May 2025 18:01:20 +0000 (22:01 +0400)] 
qualcommax: ipq50xx: fix DTB warning in USB node of Linksys MR5500

Fix DTB warning when compiling an image by adding the missing hash sign
of adress-cells in the usb_dwc node.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18672
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq50xx: fix ECC strength for Linksys MR5500
George Moussalem [Thu, 1 May 2025 10:55:07 +0000 (14:55 +0400)] 
qualcommax: ipq50xx: fix ECC strength for Linksys MR5500

Commit fc3ff2af0c57504a2e03d635692396c5bb099f17 introduced reading
ECC strength from the device tree. Linksys MR5500 uses the mx-base dtsi
which was originally developed for Linksys MX2000 and MX5500 where the
ECC strength is set to 8. Correct this and set it to strength of 4 as
per the NAND specs for Gigadevice GD5F2GQ5REYIH.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18672
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoconfig: add new TRANSPARENT_HUGEPAGE choice for 6.12 kernel 18663/head
Mieczyslaw Nalewaj [Thu, 1 May 2025 05:48:59 +0000 (07:48 +0200)] 
config: add new TRANSPARENT_HUGEPAGE choice for 6.12 kernel

Kernel 6.12 has a new selection for TRANSPARENT_HUGEPAGE.
Add them here to avoid missing symbols.

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=683ec99f12f4c386c23bed7f6a8ef44db5a4999a

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18663
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoRevert "qualcommax: ipq50xx: fix GE_PHY and Uniphy resets" 18668/head
George Moussalem [Thu, 1 May 2025 16:04:32 +0000 (20:04 +0400)] 
Revert "qualcommax: ipq50xx: fix GE_PHY and Uniphy resets"

This reverts commit 34e5bc4af54d366147a83904c094d54fec7fb025.

While fixing support for 2.5Gbps mode on uniphy in phy to phy link
setups, it inadvertently broke fixed link scenario. So let's revert this
commit until there's a fix that doesn't impact fixed links.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18668
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq5018: glinet_gl-b3000: fix kernel alignment 18658/head
Scott Mercer [Wed, 30 Apr 2025 18:46:51 +0000 (14:46 -0400)] 
qualcommax: ipq5018: glinet_gl-b3000: fix kernel alignment
fixes the following warning seen in bootlog

"Kernel image misaligned at boot, please fix your bootloader!"

Fixes: 3307fe8 ("qualcommax: ipq50xx: add support for GL.iNET GL-B3000")
Signed-off-by: Scott Mercer <TheRootEd24@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18658
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agotoolchain: glibc: Update glibc 2.38 to recent HEAD 18648/head
Konstantin Demin [Thu, 1 May 2025 16:07:10 +0000 (19:07 +0300)] 
toolchain: glibc: Update glibc 2.38 to recent HEAD

f510d75f nscd: Use time_t for return type of addgetnetgrentX
5aa4bb67 resolv: Fix some unaligned accesses in resolver [BZ #30750]
249646f1 Force DT_RPATH for --enable-hardcoded-path-in-tests
697ab62d i386: Disable Intel Xeon Phi tests for GCC 15 and above (BZ 31782)
c8cb4d2b misc: Add support for Linux uio.h RWF_NOAPPEND flag
71245363 s390x: Fix segfault in wcsncmp [BZ #31934]
7bfc3595 nptl: fix potential merge of __rseq_* relro symbols
d9d019d6 elf: Make dl-rseq-symbols Linux only
bb30bd21 Linux: Make __rseq_size useful for feature detection (bug 31965)
dc512364 resolv: Allow short error responses to match any query (bug 31890)
6cad0f54 resolv: Do not wait for non-existing second DNS response after error (bug 30081)
1bed6acf resolv: Track single-request fallback via _res._flags (bug 31476)
0301637b linux: Update the mremap C implementation [BZ #31968]
f0e21145 mremap: Update manual entry
6bb75212 Add mremap tests
3ac7ba61 Update syscall lists for Linux 6.5
9184c136 resolv: Fix tst-resolv-short-response for older GCC (bug 32042)
059f82c3 Fix name space violation in fortify wrappers (bug 32052)
c005d1bd x86: Fix bug in strchrnul-evex512 [BZ #32078]
28f358bc support: Add FAIL test failure helper
99ffa84b stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650]
87a1968a Make tst-ungetc use libsupport
804d3c8d ungetc: Fix uninitialized read when putting into unused streams [BZ #27821]
b9f72bd5 ungetc: Fix backup buffer leak on program exit [BZ #27821]
15ca6630 posix: Use <support/check.h> facilities in tst-truncate and tst-truncate64
f30501ca nptl: Use <support/check.h> facilities in tst-setuid3
370be858 libio: Attempt wide backup free only for non-legacy code
4dd86414 Add crt1-2.0.o for glibc 2.0 compatibility tests
fa4ad104 elf: Change ldconfig auxcache magic number (bug 32231)
9423cc53 nptl: initialize rseq area prior to registration
37ded328 nptl: initialize cpu_id_start prior to rseq registration
cf067723 x86: Avoid integer truncation with large cache sizes (bug 32470)
5c9be512 x86_64: Sort fpu/multiarch/Makefile
49016f21 x86_64: Add log2 with FMA
b2a45f1e x86_64: Add expm1 with FMA
c92946d9 x86_64: Add log1p with FMA
58822f95 x86: Check the lower byte of EAX of CPUID leaf 2 [BZ #30643]
7772f935 elf: Fix slow tls access after dlopen [BZ #19924]
5a64f933 x86: Only align destination to 1x VEC_SIZE in memset 4x loop
0d14bf07 sysdeps/x86/Makefile: Split and sort tests
dc176211 x86_64: Fix missing wcsncat function definition without multiarch (x86-64-v4)
04b8d484 x86: Improve large memset perf with non-temporal stores [RHEL-29312]
12fec8aa x86/string: Fixup alignment of main loop in str{n}cmp-evex [BZ #32212]
48642ef1 elf: Avoid some free (NULL) calls in _dl_update_slotinfo
549e7f7c elf: Support recursive use of dynamic TLS in interposed malloc
c32fd593 Fix underallocation of abort_msg_s struct (CVE-2025-0395)
650a0aaa stdlib: Test using setenv with updated environ [BZ #32588]
f984e2d7 assert: Add test for CVE-2025-0395
9ca74b8a AArch64: Improve generic strlen
95aa2143 AArch64: Optimize memset
5fe151d8 AArch64: Remove zva_128 from memset
3de51123 math: Improve layout of expf data
52c2b155 AArch64: Add SVE memset
097299ff AArch64: Use prefer_sve_ifuncs for SVE memset
5a08d049 math: Improve layout of exp/exp10 data

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18648
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: make Genexis EX400 factory image dependent on initramfs
David Bauer [Tue, 29 Apr 2025 17:31:09 +0000 (19:31 +0200)] 
ramips: make Genexis EX400 factory image dependent on initramfs

The factory image generation for the Genexis EX400 image currently fails
if CONFIG_TARGET_ROOTFS_INITRAMFS is disabled.

Create the factory image only if said config option is enabled to avoid
failing builds.

Signed-off-by: David Bauer <mail@david-bauer.net>
3 months agogeneric: add more missing Kconfig symbols for 6.12 kernel 18653/head
Shiji Yang [Wed, 30 Apr 2025 16:55:36 +0000 (00:55 +0800)] 
generic: add more missing Kconfig symbols for 6.12 kernel

These symbols were found when adding 6.12 kernel support for the
ath79 target.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18653
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/drm-ttm-helper: 6.12: fix missing dependency 16547/head
Mieczyslaw Nalewaj [Sat, 5 Apr 2025 16:44:36 +0000 (18:44 +0200)] 
kernel/drm-ttm-helper: 6.12: fix missing dependency

Add missing depends kmod-drm-kms-helper.

Package kmod-drm-ttm-helper is missing dependencies for the following libraries:
drm_kms_helper.ko
fb_sys_fops.ko
syscopyarea.ko
sysfillrect.ko
sysimgblt.ko

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/backlight: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sat, 5 Apr 2025 16:33:30 +0000 (18:33 +0200)] 
kernel/backlight: 6.12: fix missing dependency

Add missing depends kmod-fb.

Package kmod-backlight is missing dependencies for the following libraries:
fb.ko

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: filter out compiler RUSTC opts from config
Mieczyslaw Nalewaj [Wed, 16 Apr 2025 05:53:51 +0000 (07:53 +0200)] 
kernel: filter out compiler RUSTC opts from config

These get dynamically set, not relevant for targets.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: fortify: Hide run-time copy size from value range tracking
Mieczyslaw Nalewaj [Tue, 1 Apr 2025 10:41:55 +0000 (12:41 +0200)] 
kernel: fortify: Hide run-time copy size from value range tracking

Fix compilation warning treated as an error:
./include/linux/fortify-string.h:114:33: error: '__builtin_memcpy' reading between 65 and 536870904 bytes from a region of size 64 [-Werror=stringop-overread]
  114 | #define __underlying_memcpy     __builtin_memcpy
      |                                 ^
./include/linux/fortify-string.h:633:9: note: in expansion of macro '__underlying_memcpy'
  633 |         __underlying_##op(p, q, __fortify_size);                        \
      |         ^~~~~~~~~~~~~
./include/linux/fortify-string.h:678:26: note: in expansion of macro '__fortify_memcpy_chk'
  678 | #define memcpy(p, q, s)  __fortify_memcpy_chk(p, q, s,                  \
      |                          ^~~~~~~~~~~~~~~~~~~~
./include/linux/bitmap.h:259:17: note: in expansion of macro 'memcpy'
  259 |                 memcpy(dst, src, len);
      |                 ^~~~~~
kernel/padata.c: In function '__padata_set_cpumasks':
kernel/padata.c:735:48: note: source object 'pcpumask' of size [0, 64]
  735 |                                  cpumask_var_t pcpumask,
      |                                  ~~~~~~~~~~~~~~^~~~~~~~

Link: https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=239d87327dcd361b0098038995f8908f3296864f
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/hwmon-sch5627: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 17:01:49 +0000 (19:01 +0200)] 
kernel/hwmon-sch5627: 6.12: fix missing dependency

Add missing depends kmod-regmap-core.

Package kmod-hwmon-sch5627 is missing dependencies for the following libraries:
regmap-core.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=a54fe61639d9f3b6765fee32edda7cfceb6d705a

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/hwmon-lm92: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 17:01:02 +0000 (19:01 +0200)] 
kernel/hwmon-lm92: 6.12: fix missing dependency

Add missing depends kmod-regmap-core.

Package kmod-hwmon-lm92 is missing dependencies for the following libraries:
regmap-core.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=1359590a5c48d1d28cd11808178931f146a539e2

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/hwmon-core: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:59:18 +0000 (18:59 +0200)] 
kernel/hwmon-core: 6.12: fix missing dependency

Add missing depends kmod-i2c-core.

Package kmod-hwmon-core is missing dependencies for the following libraries:
i2c-core.ko

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: mtdsplit: include appropriate header for kernel 6.12
Mieczyslaw Nalewaj [Tue, 15 Apr 2025 18:03:04 +0000 (20:03 +0200)] 
generic: mtdsplit: include appropriate header for kernel 6.12

In kernel 6.12 asm/unaligned.h was moved to linux/unaligned.h[1]
The patch points to the appropriate header depending on the kernel version.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=5f60d5f6bbc12e782fac78110b0ee62698f3b576

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agox86: enable 6.12 testing kernel
Mieczyslaw Nalewaj [Tue, 19 Nov 2024 00:06:28 +0000 (01:06 +0100)] 
x86: enable 6.12 testing kernel

The x86 now supports 6.12 kernel as testing.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/x86: update config for kernel 6.12
Mieczyslaw Nalewaj [Tue, 15 Apr 2025 21:49:02 +0000 (23:49 +0200)] 
kernel/x86: update config for kernel 6.12

Update target x86 config for kernel 6.12.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: update fb-sys-fops package for kernel 6.12
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:51:57 +0000 (18:51 +0200)] 
kernel: update fb-sys-fops package for kernel 6.12

For kernel 6.12 the fb-sys-fops module setting has been renamed
from CONFIG_FB_SYS_FOPS to CONFIG_FB_SYSMEM_FOPS.
This patch sets the KCONFIG value depending on the kernel version.

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=27ad64eac10fcb25fcbfb813921f4d30b3458e13

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: update fb package on x86 for kernel 6.12
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:49:13 +0000 (18:49 +0200)] 
kernel: update fb package on x86 for kernel 6.12

For kernel 6.12 the fb package uses video-common.ko instead of fbdev.ko.
The patch switches these files depending on the kernel version.

Ref:
 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=2fd001cd36005846caa6456fff1008c6f5bae9d4
 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=34cda5ab89d4f30bc8d8f8d28980a7b8c68db6ec

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agox86: 6.12: manually rebuilding patches
John Audia [Sun, 17 Nov 2024 15:28:56 +0000 (10:28 -0500)] 
x86: 6.12: manually rebuilding patches

Manually rebuilding patches:
 - 103-pcengines_apu6_platform.patch

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/x86: Restore kernel files for v6.6
Mieczyslaw Nalewaj [Fri, 21 Mar 2025 15:11:29 +0000 (16:11 +0100)] 
kernel/x86: 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: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/x86: Create kernel files for v6.12 (from v6.6)
Mieczyslaw Nalewaj [Fri, 21 Mar 2025 15:11:27 +0000 (16:11 +0100)] 
kernel/x86: 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: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agopackage/zram: update for kernel 6.12
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:46:31 +0000 (18:46 +0200)] 
package/zram: update for kernel 6.12

Updated for compatibility with kernels 6.6 and 6.12.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agopackage/fs-fscache: update for kernel 6.12
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:45:23 +0000 (18:45 +0200)] 
package/fs-fscache: update for kernel 6.12

Update KCONFIG and FILES for kernel 6.12 compatibility

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: 6.12: add snd hda scodec component module
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:44:18 +0000 (18:44 +0200)] 
kernel: 6.12: add snd hda scodec component module

Add snd hda scodec component module

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=fd895a74dc1dca31f4ce7786b36812fda6727477

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agopackage/fs-ntfs: disable for kernel 6.12
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:43:10 +0000 (18:43 +0200)] 
package/fs-ntfs: disable for kernel 6.12

Disabled due to removal from kernel 6.12.

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=7ffa8f3d30236e0ab897c30bdb01224ff1fe1c89

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/lan743x: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:42:10 +0000 (18:42 +0200)] 
kernel/lan743x: 6.12: fix missing dependency

Add missing depends kmod-phylink.

Package kmod-lan743x is missing dependencies for the following libraries:
phylink.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=a5f199a8d8a03512199a9e7cdd4d8ea06c943295

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: modules: i40e,ice,iavf: support for kernel 6.12
Mieczyslaw Nalewaj [Wed, 30 Apr 2025 07:21:01 +0000 (09:21 +0200)] 
kernel: modules: i40e,ice,iavf: support for kernel 6.12

Add Common Intel Ethernet library (libeth) and Intel Ethernet library (libie).
Add CONFIG_ICE_HWMON setting.

Ref:
 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=306ec721d043bbe5e818d59fbb37c28d999b5d8b
 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=4da71a77fc3be1fcb680c8d78e1a1fb8017905ad

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/iio-bmp280: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:39:12 +0000 (18:39 +0200)] 
kernel/iio-bmp280: 6.12: fix missing dependency

Add missing depends kmod-industrialio-triggered-buffer.

Package kmod-iio-bmp280 is missing dependencies for the following libraries:
industrialio-triggered-buffer.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=80cd23f43ddce3bfa0389ab65a442d3dc8de4b4f

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/i2c-i801: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:37:52 +0000 (18:37 +0200)] 
kernel/i2c-i801: 6.12: fix missing dependency

Add missing depends kmod-i2c-mux.

Package kmod-i2c-i801 is missing dependencies for the following libraries:
i2c-mux.ko

Ref: https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=9c535237245e4bf21758604277279b8ead58a724

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/hwmon-max6697: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:33:55 +0000 (18:33 +0200)] 
kernel/hwmon-max6697: 6.12: fix missing dependency

Add missing depends kmod-regmap-i2c.

ERROR: modpost: "__regmap_init_i2c" [drivers/hwmon/max6697.ko] undefined!

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=3a2a8cc3fe24ec48a3d222f5b9db68a3404ffab3

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/9pnet: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:32:41 +0000 (18:32 +0200)] 
kernel/9pnet: 6.12: fix missing dependency

Add missing depends kmod-fs-netfs.

Package kmod-9pnet is missing dependencies for the following libraries:
netfs.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=5fb70e7275a61dd404f684370e1add7fe0ebe9c5

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: adjust kmod-phy-aquantia dependencies for v6.12 kernel
Mantas Pucka [Fri, 22 Nov 2024 08:07:43 +0000 (10:07 +0200)] 
kernel: adjust kmod-phy-aquantia dependencies for v6.12 kernel

Driver moved to different CRC library in v6.12

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=6c8e2407100e4ff1db86e4af65b74be7895031a2

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoconfig: add new options for 6.12 kernel
Mantas Pucka [Mon, 9 Dec 2024 12:38:22 +0000 (14:38 +0200)] 
config: add new options for 6.12 kernel

Since kernel v6.12 couple more options were added to
CGROUP section. Add them here to avoid missing symbols.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: remove outdated kernel symbols
Mieczyslaw Nalewaj [Tue, 15 Apr 2025 21:41:44 +0000 (23:41 +0200)] 
generic: 6.12: remove outdated kernel symbols

Symbols that no longer exist in 6.12 were removed by a script [1].

[1] https://github.com/openwrt/openwrt/pull/15324

Co-authored-by: Mantas Pucka <mantas@8devices.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: add missing symbols
Mieczyslaw Nalewaj [Tue, 15 Apr 2025 21:40:44 +0000 (23:40 +0200)] 
generic: 6.12: add missing symbols

These symbols only become visible when some packages or kernel debug
options get enabled. Move them to generic.

Co-authored-by: Mantas Pucka <mantas@8devices.com>
Co-authored-by: Mathew McBride <matt@traverse.com.au>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: add new kmod and update kmod-tpm
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:29:01 +0000 (18:29 +0200)] 
kernel: add new kmod and update kmod-tpm

Create a crypto-lib-aescfb package needed for new deps for kmod-tpm.

Package kmod-tpm is missing dependencies for the following libraries:
ecdh_generic.ko
kpp.ko
libaescfb.ko

Co-authored-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: update dependency of kmod-i2c-piix4
John Audia [Wed, 20 Nov 2024 19:32:09 +0000 (14:32 -0500)] 
kernel: update dependency of kmod-i2c-piix4

Add missing depends kmod-i2c-smbus.

Package kmod-i2c-piix4 is missing dependencies for the following libraries:
i2c-smbus.ko

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=de4f2f52f93257433c9029ba2b4044cd9f029b21

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agopcs-xpcs: 6.12: fix missing dependency
Mieczyslaw Nalewaj [Sun, 27 Apr 2025 16:25:49 +0000 (18:25 +0200)] 
pcs-xpcs: 6.12: fix missing dependency

Add missing depends kmod-mdio-devres.

Package kmod-pcs-xpcs is missing dependencies for the following libraries:
mdio_devres.ko

Ref: https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=f6bb3e9d98c2e8d70587d5ddaf9426ef30d7865c

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: refresh hack patches
Mieczyslaw Nalewaj [Wed, 30 Apr 2025 09:38:37 +0000 (11:38 +0200)] 
generic: 6.12: refresh hack patches

Refreshed patches for generic/hack-6.12 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: manually rebuild hack patches
Mieczyslaw Nalewaj [Wed, 30 Apr 2025 09:52:08 +0000 (11:52 +0200)] 
generic: 6.12: manually rebuild hack patches

Manually rebuild hack patches:
 - 200-tools_portability.patch
 - 204-module_strip.patch
 - 210-darwin_scripts_include.patch
 - 251-kconfig.patch
 - 421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch
 - 610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch
 - 721-net-add-packet-mangeling.patch
 - 725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch
 - 760-net-usb-r8152-add-LED-configuration-from-OF.patch
 - 800-GPIO-add-named-gpio-exports.patch
 - 901-debloat_sock_diag.patch
 - 902-debloat_proc.patch
 - 904-debloat_dma_buf.patch
 - 910-kobject_uevent.patch
 - 911-kobject_add_broadcast_uevent.patch
 - 930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
[ improve commit title ]
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: refresh pending patches
Mieczyslaw Nalewaj [Sat, 26 Apr 2025 19:56:27 +0000 (21:56 +0200)] 
generic: 6.12: refresh pending patches

Refreshed patches for generic/pending-6.12 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: move MIPS reloc patch from pending to hack and rework
Christian Marangi [Mon, 14 Apr 2025 16:34:10 +0000 (18:34 +0200)] 
generic: 6.12: move MIPS reloc patch from pending to hack and rework

Move MIPS reloc patch from pending to hack and rework it to adapt to new
kernel 6.12 version.

This required an additional patch. While at it also improve the text
with the original info without cut.

Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: manually rebuild pending patches
Mieczyslaw Nalewaj [Tue, 29 Apr 2025 22:12:20 +0000 (00:12 +0200)] 
generic: 6.12: manually rebuild pending patches

Manually rebuild pending patches:
 - 103-kbuild-export-SUBARCH.patch
 - 141-jffs2-add-RENAME_EXCHANGE-support.patch
 - 200-ARM-9404-1-arm32-fix-boot-hang-with-HAVE_LD_DEAD_COD.patch
 - 203-kallsyms_uncompressed.patch
 - 270-platform-mikrotik-build-bits.patch
 - 308-mips32r2_tune.patch
 - 330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
 - 402-mtd-spi-nor-write-support-for-minor-aligned-partitions.patch
 - 451-block-partitions-populate-fwnode.patch
 - 476-mtd-spi-nor-add-eon-en25q128.patch
 - 477-mtd-spi-nor-add-eon-en25qx128a.patch
 - 479-mtd-spi-nor-add-xtx-xt25f128b.patch
 - 481-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch
 - 482-mtd-spi-nor-add-gd25q512.patch
 - 484-mtd-spi-nor-add-esmt-f25l16pa.patch
 - 485-mtd-spi-nor-add-xmc-xm25qh128c.patch
 - 488-mtd-spi-nor-add-xmc-xm25qh64c.patch
 - 490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
 - 497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch
 - 498-mtd-spi-nor-locking-support-for-MX25L6405D.patch
 - 510-block-add-uImage.FIT-subimage-block-driver.patch
 - 530-jffs2_make_lzma_available.patch
 - 630-packet_socket_type.patch
 - 666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
 - 681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch
 - 700-netfilter-nft_flow_offload-handle-netdevice-events-f.patch
 - 702-net-ethernet-mtk_eth_soc-enable-threaded-NAPI.patch
 - 706-net-phy-populate-host_interfaces-when-attaching-PHY.patch
 - 711-03-net-dsa-qca8k-add-support-for-port_change_master.patch
 - 734-net-ethernet-mediatek-enlarge-DMA-reserve-buffer.patch
 - 736-03-net-ethernet-mtk_eth_soc-improve-keeping-track-of-of.patch
 - 737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch
 - 739-03-net-pcs-pcs-mtk-lynxi-add-platform-driver-for-MT7988.patch
 - 801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch
 - 809-01-nvmem-core-generalize-mac-base-cells-handling.patch
 - 811-pci_disable_usb_common_quirks.patch
 - 834-ledtrig-libata.patch
 - 892-leds-Add-LED1202-I2C-driver.patch
 - 920-mangle_bootargs.patch

Co-authored-by: Aditya Nugraha <vortexilation@gmail.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
[ improve commit title + minor fixes ]
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: remove obsolete pending patches
Mieczyslaw Nalewaj [Sat, 12 Apr 2025 11:26:23 +0000 (13:26 +0200)] 
generic: 6.12: remove obsolete pending patches

Remove obsolete pending patches

Unnecessary:
 - 820-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch[1]

[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=9c0a5b3f9e55cf9a3dc85843666cae28adfdf7e3

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: refresh backport patches
Mieczyslaw Nalewaj [Fri, 25 Apr 2025 14:32:54 +0000 (16:32 +0200)] 
generic: 6.12: refresh backport patches

Refreshed patches for generic/backport-6.12 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: manually rebuild backport patches
Mieczyslaw Nalewaj [Fri, 25 Apr 2025 14:31:08 +0000 (16:31 +0200)] 
generic: 6.12: manually rebuild backport patches

Manually rebuild backport patches:
 - 410-v6.13-01-block-add-support-for-defining-read-only-partitions.patch
 - 839-v6.13-net-phy-aquantia-allow-forcing-order-of-MDI-pairs.patch
 - 901-v6.13-net-dsa-mv88e6xxx-Support-LED-control.patch

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
[ improve commit title ]
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agogeneric: 6.12: remove obsolete backport patches
Mieczyslaw Nalewaj [Tue, 22 Apr 2025 15:57:00 +0000 (17:57 +0200)] 
generic: 6.12: remove obsolete backport patches

Remove obsolete backport patches already included in kernel 6.12 including the patches:
 - 623-v6.14-net-ipv6-fix-TCP-GSO-segmentation-with-NAT.patch - backported to kernel 6.12.21[1]
 - 785-05-v6.15-net-sfp-add-quirk-for-FS-SFP-10GM-T-copper-SFP-module.patch - backported to kernel 6.12.24[2]
 - 910-v6.13-pmdomain-core-add-dummy-release-function-to-genpd-de.patch - backported to kernel 6.12.9[3]

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=8940e6168bb353379772ef2555610a82ac569e36
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=163e8c1083b41289aad2afd06c39b9f859dc4ec0
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=cba9d51794ecde58a21e4e96bcfd0a18f7dd4ff8

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/generic: Restore kernel files for v6.6
Mieczyslaw Nalewaj [Tue, 29 Apr 2025 22:02:32 +0000 (00:02 +0200)] 
kernel/generic: 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: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel/generic: Create kernel files for v6.12 (from v6.6)
Mieczyslaw Nalewaj [Tue, 29 Apr 2025 22:02:28 +0000 (00:02 +0200)] 
kernel/generic: 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: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: add define for kernel 6.12
Mieczyslaw Nalewaj [Fri, 25 Apr 2025 14:26:52 +0000 (16:26 +0200)] 
kernel: add define for kernel 6.12

Add define for kernel 6.12.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16547
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoead: fix compilation with GCC14 18645/head
Robert Marko [Wed, 30 Apr 2025 09:53:45 +0000 (11:53 +0200)] 
ead: fix compilation with GCC14

Trying to compile EAD with now default GCC14 will fail due to now erroring
out on implicit int type as well as implicit function declarations.

Due to this, the packaged configure script will fail on the simple compiler
test as the generated test uses main loop with an implicit int type.

So, instead of patching multiple test cases in the shipped configure script
for tinysrp lets run autoreconf on it so its regenerated.

We also need to pass -Wno-error=implicit-function-declaration as there are
multiple instances of tinysrp code relying on implicit function declarations.

Link: https://github.com/openwrt/openwrt/pull/18645
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agopackage: basefiles: add oem image dectection to fwtool.sh 18554/head
Scott Mercer [Mon, 21 Apr 2025 15:23:07 +0000 (11:23 -0400)] 
package: basefiles: add oem image dectection to fwtool.sh

with more new device, now able to flash oem
images from luci, fwtools erroneously marks
firmware as incompatible and does not warn
across keeping configs during update.

this patch aims to add both oem detection
and a warning msg advising firmware is compatible
(OpenWrt -> OEM) but configuration is not

tested on ipq5018: gl-b3000

Signed-off-by: Scott Mercer <TheRootEd24@gmail.com>
package: basefiles: add oem image dectection to fwtool

    some new devices are now able to flash oem
    images from luci, fwtools erroneously marks
    firmware as incompatible and does not warn
    of keeping configs during update for this condition.

    this patch aims to add both oem detection
    and trigger the existing warning msg, advising firmware is compatible
    (OpenWrt -> OEM) but configuration is not

tested on ipq5018: gl-b3000

Signed-off-by: Scott Mercer <TheRootEd24@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18554
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: refresh patches 18640/head
Mieczyslaw Nalewaj [Tue, 29 Apr 2025 21:59:58 +0000 (23:59 +0200)] 
generic: refresh patches

Refreshed patches by running:
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18640
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq50xx: fix GE_PHY and Uniphy resets 18638/head
George Moussalem [Tue, 29 Apr 2025 13:24:46 +0000 (17:24 +0400)] 
qualcommax: ipq50xx: fix GE_PHY and Uniphy resets

Fix the resets of the GE_PHY and Uniphy found on the IPQ5018 SoC.
Bitmasks are used to perform multiple resets simultaneously, including
the RX and TX clocks. This enables the Uniphy to properly shift between
SGMII/1G and SGMII+/2.5G modes.

While at it, properly reorder the patches, and rename some to follow
naming standards.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18638
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agounetd: cli: allow skipping pretty printing of status data
Felix Fietkau [Wed, 30 Apr 2025 09:03:39 +0000 (11:03 +0200)] 
unetd: cli: allow skipping pretty printing of status data

Makes it more useful for services built around the CLI API

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agocli: add explicit option for pretty printing command result data
Felix Fietkau [Wed, 30 Apr 2025 09:02:22 +0000 (11:02 +0200)] 
cli: add explicit option for pretty printing command result data

No-op for now, but allows making output more machine readable

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agoucode-mod-uline: fix crash on cleanup
Felix Fietkau [Wed, 30 Apr 2025 08:40:38 +0000 (10:40 +0200)] 
ucode-mod-uline: fix crash on cleanup

- only run a single poll in the uloop_fd cb to avoid use-after-free on close
- delete the uloop_fd on close
- when calling into ucode, fetch the vm pointer before the call in order
  to avoid accessing the stale uline context

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agoucode-mod-uline: fix build warnings
Felix Fietkau [Wed, 30 Apr 2025 08:32:55 +0000 (10:32 +0200)] 
ucode-mod-uline: fix build warnings

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agogeneric: drop extra-old-deprecated pending fix patch for sch codel
Christian Marangi [Tue, 29 Apr 2025 16:55:19 +0000 (18:55 +0200)] 
generic: drop extra-old-deprecated pending fix patch for sch codel

Patch 620-net_sched-codel-do-not-defer-queue-length-update.patch is
actually an ancient patch that somehow manage to be ported for 7 solid
years.

This comes from [1] where a fix patch was proposed. Nobody notice that
the proposed patch was actually rejected upstream in favor of [2]. And
the upstream fix patch is present in kernel from version 4.18.

This means that we were actually fixing for a non existant bug and maybe
introducing regression down the line.

Drop the patch for good as we already have a fix for it in flace for a
long time.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=109581
[2] https://github.com/torvalds/linux/commit/35b42da69e35536da603a50e40aa6c41b2f7b0f8

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: ipq50xx: fix ipq5018 GE PHY and tidy up mdio nodes 18634/head
George Moussalem [Tue, 29 Apr 2025 10:32:20 +0000 (14:32 +0400)] 
qualcommax: ipq50xx: fix ipq5018 GE PHY and tidy up mdio nodes

As part of the previous commit to add the #clock-cells property to the
GE PHY, the PHY was inadvertently moved under the second mdio node in
the dtsi, and therefore broke the init sequence as the driver was trying
to use the wrong mdio bus to set the init values (ex. DAC, MSE, and AZ).
So let's move it back under the right mdio node and, while at it, pad
the register addresses to 8 hex numbers and re-order properties in line
with Linux DTS coding standards.

Fixes: 6782d0e66fd607a3536d5fd94e998d2d700ffeaf
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18634
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq60xx: LED mapping update for Netgear WAX610 and WAX610Y 18624/head
Erik Servili [Mon, 28 Apr 2025 01:39:23 +0000 (03:39 +0200)] 
qualcommax: ipq60xx: LED mapping update for Netgear WAX610 and WAX610Y

Fix swapped WLAN LEDs and move to blue LEDs to match stock behavior. Add LAN LED mappings.

Signed-off-by: Erik Servili <serverror@serverror.com>
Link: https://github.com/openwrt/openwrt/pull/18624
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agotoolchain: gcc: switch default to 14 18597/head
Robert Marko [Fri, 25 Apr 2025 13:02:24 +0000 (15:02 +0200)] 
toolchain: gcc: switch default to 14

Its time to use GCC14 as the default compiler instead of GCC13.

Link: https://github.com/openwrt/openwrt/pull/18597
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoramips: correct wifi driver packages for TP-Link MR200 v6 18633/head
Shiji Yang [Tue, 29 Apr 2025 10:16:29 +0000 (18:16 +0800)] 
ramips: correct wifi driver packages for TP-Link MR200 v6

TP-Link Archer MR200 v6 uses the MT7613 wireless chip, hence
the default wifi driver packages should be kmod-mt7615e and
kmod-mt7663-firmware-ap.

Fixes: https://github.com/openwrt/openwrt/issues/18627
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18633
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agobcm47xx: old gpio wdt: use remove_new 18591/head 18617/head
Rosen Penev [Sat, 26 Apr 2025 22:54:02 +0000 (15:54 -0700)] 
bcm47xx: old gpio wdt: use remove_new

Easy way to add compatibility for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18617
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoltq-adsl: use remove_new for platform_device 18616/head
Rosen Penev [Sat, 26 Apr 2025 23:16:46 +0000 (16:16 -0700)] 
ltq-adsl: use remove_new for platform_device

Easy way to add compatibility for kernel 6.12.

Since the linux 3.8 patch undoes a bunch of stuff in platform, just
modiify everything in platform.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18616
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq50xx: drop unused factory.ubi for ELECOM WRC-X3000GS2 18611/head
INAGAKI Hiroshi [Wed, 23 Apr 2025 07:48:13 +0000 (16:48 +0900)] 
qualcommax: ipq50xx: drop unused factory.ubi for ELECOM WRC-X3000GS2

Drop the firmware image entry "factory.ubi" from IMAGES for ELECOM
WRC-X3000GS2.
`Device/UbiFit` is added in the early stage of working for adding
support of the device, but finally, only `KERNEL_IN_UBI` is neccesary
and factory.ubi is not. So `Device/UbiFit` should have been replaced
to `KERNEL_IN_UBI` but it was forgotten.

Fixes: 3b7d72bc2e ("qualcommax: add support for ELECOM WRC-X3000GS2")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18611
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: convert MTK PCS patch to .remove_new
Christian Marangi [Sat, 26 Apr 2025 18:04:31 +0000 (20:04 +0200)] 
generic: convert MTK PCS patch to .remove_new

Convert MTK PCS patch to .remove_new to simplify support for new 6.12
kernel version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: fix UDPv6 GSO segmentation with NAT
Felix Fietkau [Sat, 26 Apr 2025 17:10:54 +0000 (19:10 +0200)] 
kernel: fix UDPv6 GSO segmentation with NAT

Fixes issues with rx-gro-list and NAT66

Fixes: https://github.com/openwrt/openwrt/issues/18387
Fixes: https://github.com/openwrt/openwrt/issues/18516
Fixes: https://github.com/openwrt/openwrt/issues/18608
Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agomediatek: add missing pipe
David Bauer [Fri, 25 Apr 2025 19:40:39 +0000 (21:40 +0200)] 
mediatek: add missing pipe

Signed-off-by: David Bauer <mail@david-bauer.net>
3 months agomediatek: fix GL.iNet GL-MT2500 preinit interface
David Bauer [Wed, 23 Apr 2025 19:06:54 +0000 (21:06 +0200)] 
mediatek: fix GL.iNet GL-MT2500 preinit interface

This was previously set incorrectly to a non-existant interface.

Signed-off-by: David Bauer <mail@david-bauer.net>
3 months agomediatek: filogic: add support for ASUS RT-AX52
Christoph Krapp [Mon, 14 Apr 2025 18:47:56 +0000 (20:47 +0200)] 
mediatek: filogic: add support for ASUS RT-AX52

Hardware
--------
SOC:   MediaTek MT7981b
RAM:   256MB DDR3
FLASH: 128MB SPI-NAND (Winbond W25N01GV)
WIFI:  Mediatek MT7981b DBDC 802.11ax 2.4/5 GHz
ETH:   MediaTek MT7531 Switch
UART:  3V3 115200 8N1 (Pinout silkscreened / Do not connect VCC)

Installation
-----------------------------------------------------------
Vendor-UI Method
-----------------------------------------------------------
1. Download the OpenWrt initramfs.trx image.

2. Connect the PC via LAN to one of the yellow router ports and wait
   until your PC to get a DHCP lease.

3. Browse to http://192.168.50.1

4. If your router is brand new, finish the setup process and log into
   the Web-UI.

5. Navigate to Administration -> Firmware Upgrade and upload the
   downloaded OpenWrt image.

6. Wait for OpenWrt to boot. Transfer the sysupgrade image to the device
   using scp and install using sysupgrade.

   $ sysupgrade -n <path-to-sysupgrade.bin>
-----------------------------------------------------------
TFTP Method
-----------------------------------------------------------
1. Download the OpenWrt initramfs image. Copy the image to a TFTP server
   reachable at 192.168.1.70/24. Rename the image to rtax52.bin.

2. Connect the PC with TFTP server to the RT-AX52.
   Set a static ip on the ethernet interface of your PC.
     (ip address: 192.168.1.70, subnet mask:255.255.255.0)
  Conect to the serial console,
   interrupt the autoboot process by pressing '4' when prompted.

3. Download & Boot the OpenWrt initramfs image.

   $ setenv ipaddr 192.168.1.1
   $ setenv serverip 192.168.1.70
   $ tftpboot 0x46000000 rtax52.bin
   $ bootm 0x46000000

4. Wait for OpenWrt to boot. Transfer the sysupgrade image to the device
   using scp and install using sysupgrade.

   $ sysupgrade -n <path-to-sysupgrade.bin>
---------------------------------------------------------------------------
Revert to stock firmware:
1: Download the rt-ax52 firmware from ASUS official website. Save
   the firmware to tftp server directory and rename to RT-AX52.trx

2: Connect the PC with TFTP server to the RT-AX52.
   Set a static ip on the ethernet interface of your PC.
     (ip address: 192.168.1.70, subnet mask:255.255.255.0)

3: Conect to the serial console,  power on again,  interrupt the
   autoboot process by pressing '4' when prompted.
  $: ubi remove linux
  $: ubi remove jffs2
  $: ubi remove rootfs
  $: ubi remove rootfs_data
  $: ubi create linux 0x45fe000
  $: reset

  Then the dut will reboot,interrupt the autoboot process by
  pressing '2' when prompted.
       2: Load System code then write to Flash via TFTP.
       Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
       $: enter y
  you will see the follow, type enter directly:
       Input device IP (192.168.1.1) ==:
       Input server IP (192.168.1.70) ==:
       Input Linux Kernel filename (RT-AX52.trx) ==:

4: wait for the device run up

Based on support for ASUS RT-AX52 by liudongdongdong7397
and trx image generation by remittor

Signed-off-by: Christoph Krapp <achterin@gmail.com>
3 months agomediatek: add support for Routerich AX3000 v1
Mikhail Zhilkin [Sun, 13 Apr 2025 07:02:53 +0000 (07:02 +0000)] 
mediatek: add support for Routerich AX3000 v1

Routerich AX3000 v1 is a wireless WiFi 6 router.

Specification
-------------
- SoC       : MediaTek MT7981BA dual-core ARM Cortex-A53 1.3 GHz
- RAM       : DDR3 512 MiB
- Flash     : SPI-NAND 128 MiB (Winbond)
- WLAN      : MediaTek MT7976CN dual-band WiFi 6
  - 2.4 GHz : b/g/n/ax, MIMO 2x2
  - 5 GHz   : a/n/ac/ax, MIMO 2x2
- Ethernet  : 10/100/1000 Mbps x3, LAN (MediaTek MT7531AE)
              10/100/1000 Mbps x1, WAN (MT7981 internal PHY)
- USB       : 1x 3.0 with power control
- UART      : through-hole on PCB
  - [J500] GND, TX, RX, 3.3V (115200n8)
- Buttons   : Mesh, Reset
- LEDs      : 1x Power (Blue)
              1x WiFi 2.4 GHz (Blue)
              1x WiFi 5 GHz (Red)
              1x Mesh (Blue)
              3x LAN activity (Blue)
              1x WAN activity (Blue)
              1x WAN no-internet (Red)
- Power     : 12 VDC, 1.5 A

Installation
------------
Flash OpenWrt 'sysupgrade.bin' image using stock firmware web-interface
(without keeping settings).

Return to stock
---------------
Install stock firmware image (without keeping settings) using OpenWrt
sysupgrade method.

Recovery
--------
Connect uart, use u-boot menu to flash stock firmware image or boot
OpenWrt initramfs image.

MAC addresses
-------------
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| WAN     | 24:0f:5e:xx:xx:08 | label     |
| LAN     | 24:0f:5e:xx:xx:09 | label+1   |
| WLAN 2g | 24:0f:5e:xx:xx:0a | label+2   |
| WLAN 5g | 24:0f:5e:xx:xx:0b | label+3   |
+---------+-------------------+-----------+
The WLAN 2g MAC was found in 'Factory', 0x4

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
3 months agomediatek: filogic: fix mistaken executable bit on dts file
Mikhail Zhilkin [Sun, 13 Apr 2025 17:39:34 +0000 (17:39 +0000)] 
mediatek: filogic: fix mistaken executable bit on dts file

This commit fixes mistaken executable bit on
mt7981b-mercusys-mr80x-v3.dts file.

Fixes: 7921e48d4357 ("mediatek: add support for Mercusys MR80X v3")
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
3 months agouboot-mvebu: rb5009: disable YAFFS 18598/head
Robert Marko [Fri, 25 Apr 2025 13:45:23 +0000 (15:45 +0200)] 
uboot-mvebu: rb5009: disable YAFFS

YAFFS support in U-Boot is basically abandoned and will even fail to
build with GCC14, so simply disable it.

Link: https://github.com/openwrt/openwrt/pull/18598
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agolantiq: fix syntax error for fritz736x 18594/head
Tianling Shen [Fri, 25 Apr 2025 10:00:25 +0000 (18:00 +0800)] 
lantiq: fix syntax error for fritz736x

Add missing semicolon to the end of the property.
Remove whitespace while at it.

Fixes: 5a3b9d88f158 ("lantiq: Improve support for LED's fritz736x")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/18594
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: fix ECC strength of SPI-NAND flash on GL-iNet GL-B3000 18595/head
INAGAKI Hiroshi [Fri, 25 Apr 2025 10:00:42 +0000 (19:00 +0900)] 
qualcommax: fix ECC strength of SPI-NAND flash on GL-iNet GL-B3000

Fix nand-ecc-strength property in the spi-nand node of GL-iNet GL-B3000
to 4, to solve the following ECC error on that spi-nand chip.

[    1.551618] ubi0: attaching mtd11
[    1.552331] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    1.554455] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    1.565931] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    1.576568] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
[    1.587146] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.87 #0
[    1.597153] Hardware name: GL.iNet GL-B3000 (DT)
[    1.602881] Call trace:
[    1.607739]  dump_backtrace+0xa0/0xe0
[    1.609910]  show_stack+0x18/0x24
[    1.613728]  dump_stack_lvl+0x48/0x60
[    1.617027]  dump_stack+0x18/0x24
[    1.620672]  ubi_io_read+0x11c/0x32c
[    1.623972]  ubi_io_read_ec_hdr+0x50/0x1f0
[    1.627618]  ubi_attach+0x35c/0x133c
[    1.631524]  ubi_attach_mtd_dev+0x494/0xaf4
[    1.635257]  ubi_init_attach+0xac/0x2e4
[    1.639163]  do_one_initcall+0x6c/0x1fc
[    1.642983]  kernel_init_freeable+0x204/0x2e4
[    1.646803]  kernel_init+0x28/0x1dc
[    1.651316]  ret_from_fork+0x10/0x20

The GL-B3000 has a Winbond W25N01GW and the spare size (oobsize) of it
is 64. So the maximum available ECC strength with the qpic-snand driver
is 4 but not 8.
The "nand-ecc-strength" property was not used before the commit
fc3ff2af0c ("qualcommax: allow overriding ECC strength for qpic-snand")
and calculated from the registered spare size in the Linux Kernel. As a
result, we had no issues on the GL-B3000 with the wrong ECC strength
value.

Fixes: 3307fe8ee4 ("qualcommax: ipq50xx: add support for GL.iNET GL-B3000")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18595
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoudebug: add missing dependencies
Felix Fietkau [Thu, 24 Apr 2025 12:22:34 +0000 (14:22 +0200)] 
udebug: add missing dependencies

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agouboot-tools: validate all uImage.FIT sub-images
Daniel Golle [Thu, 24 Apr 2025 05:43:59 +0000 (06:43 +0100)] 
uboot-tools: validate all uImage.FIT sub-images

uImage.FIT validation was restricted to certain sub-image types
which is problematic as it then won't validate eg. 'filesystem' type
subimages. Also prevent decompressing sub-images into a arbitrary
sized buffer just to then free that buffer -- there is not need to
do this and creating malicious compressed payloads which overflow the
buffer is too easy.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 months agomold: dont allow on MacOS 18575/head
Robert Marko [Wed, 23 Apr 2025 12:18:48 +0000 (14:18 +0200)] 
mold: dont allow on MacOS

Mold does not really work on MacOS, when attempting to use it for example
for ubus:
mold: get_self_path is not supportedcollect2: error: ld returned 1 exit status

Which was introduced by [1] so it seems that MacOS is not supported, so
lets make it non selectable when MacOS is the host.

[1] https://github.com/rui314/mold/commit/f9a37e9dd43681758bbc5647ba9e596ec4ea9f33

Link: https://github.com/openwrt/openwrt/pull/18575
Signed-off-by: Robert Marko <robimarko@gmail.com>