openwrt/staging/stintel.git
3 months agotoolchain: glibc: Update glibc 2.37 to recent HEAD
Hauke Mehrtens [Wed, 7 Feb 2024 20:30:52 +0000 (21:30 +0100)]
toolchain: glibc: Update glibc 2.37 to recent HEAD

512e30fd56 Revert "elf: Remove unused l_text_end field from struct link_map"
55d3dfadf8 Revert "elf: Always call destructors in reverse constructor order (bug 30785)"
8e20aedfd7 Revert "elf: Move l_init_called_next to old place of l_text_end in link map"
5014fb12f4 elf: Fix wrong break removal from 8ee878592c
874d418697 elf: Fix TLS modid reuse generation assignment (BZ 29039)
8bd00f5b6d x86-64: Fix the dtv field load for x32 [BZ #31184]
d052665f35 x86-64: Fix the tcb field load for x32 [BZ #31185]
0ca9ba3a9e NEWS: Mention bug fixes for 29039/30745/30843
9b90e763db getaddrinfo: translate ENOMEM to EAI_MEMORY (bug 31163)
bd9f194c34 libio: Check remaining buffer size in _IO_wdo_write (bug 31183)
8b8a3f0aaf sunrpc: Fix netname build with older gcc
97a4292aa4 syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6246)
67062eccd9 syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6779)
2b58cba076 syslog: Fix integer overflow in __vsyslog_internal (CVE-2023-6780)
1d8bb622df i386: Use pthread_barrier for synchronization on tst-bz21269
32450f6e8d sysdeps: tst-bz21269: fix test parameter
f7e97cea20 sysdeps: tst-bz21269: handle ENOSYS & skip appropriately
d97929eadc sysdeps: tst-bz21269: fix -Wreturn-type
5bbe7e0da5 x86_64: Optimize ffsll function code size.
98ec3e004e sparc: Fix broken memset for sparc32 [BZ #31068]
2ce7abef67 sparc64: Remove unwind information from signal return stubs [BZ#31244]
18da90677c sparc: Fix sparc64 memmove length comparison (BZ 31266)
8b849f70b3 sparc: Remove unwind information from signal return stubs [BZ #31244]
eee7525d35 arm: Remove wrong ldr from _dl_start_user (BZ 31339)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agoqualcommax: refresh kernel patches
Christian Marangi [Fri, 9 Feb 2024 13:33:43 +0000 (14:33 +0100)]
qualcommax: refresh kernel patches

Refresh kernel patches changed from the just introduced ipq60xx new
subtarget.

Patch automatically refreshed with make target/linux/refresh.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: move generic image recipes to target Makefile
Robert Marko [Sat, 14 Oct 2023 18:15:22 +0000 (20:15 +0200)]
qualcommax: move generic image recipes to target Makefile

These recipes are generic and will be used for other subtargets, so lets
move them to the target Makefile so they can reused.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: add ipq60xx support
Mantas Pucka [Sat, 14 Oct 2023 17:36:38 +0000 (19:36 +0200)]
qualcommax: add ipq60xx support

Introduce support for the Qualcomm IPQ60xx SoC. WiFi support still has
to be handled and correctly fix hence this is currently marked as
source-only to have a solid base to progress on correct support of this
and hope Upstream QUIC publish newers ath11k drivers for this SoC.

Co-developed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Mantas Pucka <mantas@8devices.com>
[ improve commit description, add SoB for Robert, make it source-only ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqca-ssdk: add support for ipq60xx
Robert Marko [Sat, 14 Oct 2023 18:48:28 +0000 (20:48 +0200)]
qca-ssdk: add support for ipq60xx

IPQ60xx uses a different codename for SSDK, so lets pass the correct one
as otherwise SSDK asumes we are building for the old MIPS SoC-s.

Signed-off-by: Robert Marko <robimarko@gmail.com>
[ drop outdated commit description info ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agouboot-envtools: update to 2024.01
Nick Hainke [Mon, 29 Jan 2024 18:38:20 +0000 (19:38 +0100)]
uboot-envtools: update to 2024.01

Update to latest version.

Refresh patches:
- 002-Revert-tools-env-use-run-to-store-lockfile.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agowifi-scripts: fix fullmac phy detection
Felix Fietkau [Fri, 9 Feb 2024 11:18:57 +0000 (12:18 +0100)]
wifi-scripts: fix fullmac phy detection

Checking for AP_VLAN misdetects ath10k-ath12k as fullmac, because of software
crypto limitations. Check for monitor mode support instead, which is more
reliable.

Fixes: https://github.com/openwrt/openwrt/issues/14575
Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agodropbear: better handle interfaces
Konstantin Demin [Mon, 15 Jan 2024 07:38:59 +0000 (10:38 +0300)]
dropbear: better handle interfaces

- introduce 'DirectInterface' option to bind exactly to specified interface;
  fixes #9666 and late IPv4/IPv6 address assignment
- option 'DirectInterface' takes precedence over 'Interface'
- improve interface/address handling,
  e.g. verify count of listening endpoints due to dropbear limit (10 for now)

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: better handle receive window size
Konstantin Demin [Tue, 9 Jan 2024 00:40:02 +0000 (03:40 +0300)]
dropbear: better handle receive window size

- correct maximum receive window size
- adjust receive window size against maximum allowed value
- warn about too high receive window size in syslog

improves f95eecfb

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: adjust file permissions
Konstantin Demin [Tue, 9 Jan 2024 00:40:02 +0000 (03:40 +0300)]
dropbear: adjust file permissions

runtime:
- adjust ownership/permissions while starting dropbear
build time:
- correct file permissions for preseed files in $(TOPDIR)/files/etc/dropbear/ (if any)

closes #10849

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: 'rsakeyfile' -> 'keyfile' transition
Konstantin Demin [Tue, 9 Jan 2024 00:40:02 +0000 (03:40 +0300)]
dropbear: 'rsakeyfile' -> 'keyfile' transition

end users should have done this since OpenWrt 19.07.
if they didn't do this yet - perform auto-transition.

schedule 'rsakeyfile' removal for next year release.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: failsafe: handle all supported key types
Konstantin Demin [Tue, 9 Jan 2024 00:40:02 +0000 (03:40 +0300)]
dropbear: failsafe: handle all supported key types

dropbear may be configured and compiled with support for different host key types

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: minor config reorder
Konstantin Demin [Tue, 9 Jan 2024 00:40:02 +0000 (03:40 +0300)]
dropbear: minor config reorder

move DROPBEAR_ASKPASS under DROPBEAR_DBCLIENT (in all meanings)

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: split U2F/FIDO support
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: split U2F/FIDO support

these options allow one to configure U2F/FIDO support in more granular way

inspired by upstream commit aa6559db

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: add option to enable modern crypto only
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: add option to enable modern crypto only

reduces binary/package size and increases overall performance

also:
- adjust 910-signkey-fix-use-of-rsa-sha2-256-pubkeys.patch
  to build without DROPBEAR_RSA/DROPBEAR_RSA_SHA256

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: adjust allowed shell list
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: adjust allowed shell list

this takes an effect only if getusershell(3) is missing

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: honor CONFIG_TARGET_INIT_PATH
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: honor CONFIG_TARGET_INIT_PATH

fixes 65256aee

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: disable two weak kex/mac algorithms
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: disable two weak kex/mac algorithms

hmac-sha1 and diffie-hellman-group14-sha1 are weak algorithms.
A future deprecation notice of ssh-rsa (2048-bit) has been issued. [1]

It has no place in a potentially internet-facing daemon like dropbear.
Upstream has acknowledged this and offered this solution to disable
these two until this is made to be the default in the next release
of dropbear next year. [2]

1. https://www.openssh.com/txt/release-8.2
2. https://github.com/mkj/dropbear/issues/138

Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: minor config clarification
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: minor config clarification

- "default n" is not needed: options are not selected by default
- wrap config on 80 characters width (assuming tab is 8 characters long)
- add feature cost size and security notes for DROPBEAR_AGENTFORWARD
  and DROPBEAR_DBCLIENT_AGENTFORWARD:
  describe why and where it should be disabled

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: better object cleanup
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: better object cleanup

improves b78aae79

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: allow more complex configuration
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: allow more complex configuration

- switch DB_OPT_COMMON and DB_OPT_CONFIG to comma-separated lists:
  this allows to have values with "|" in DB_OPT_COMMON and DB_OPT_CONFIG
  which is more likely to be than values with commas;
  use $(comma) variable for values with commas.
- sort DB_OPT_COMMON and DB_OPT_CONFIG to have "overrides" on top of list.
- allow DB_OPT_COMMON to have values with commas.
- allow to replace multiline definitions in sysoptions.h.

improves e1bd9645

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: cherry-pick upstream patches
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: cherry-pick upstream patches

critical fixes:
- libtommath: possible integer overflow (CVE-2023-36328)
- implement Strict KEX mode (CVE-2023-48795)

various fixes:
- fix DROPBEAR_DSS and DROPBEAR_RSA config options
- y2038 issues
- remove SO_LINGER socket option
- make banner reading failure non-fatal
- fix "noremotetcp" behavior
- don't try to shutdown a pty
- fix test for multiuser kernels

adds new features:
- option to bind to interface
- allow inetd with non-syslog
- ignore unsupported command line options with dropbearkey

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agodropbear: bump to 2022.83
Konstantin Demin [Tue, 9 Jan 2024 00:40:01 +0000 (03:40 +0300)]
dropbear: bump to 2022.83

- update dropbear to latest stable 2022.83;
  for the changes see https://matt.ucc.asn.au/dropbear/CHANGES
- drop patches:
  - 001-fix-MAX_UNAUTH_CLIENTS-regression.patch
- rework patches:
  - 901-bundled-libs-cflags.patch
- refresh remaining patches

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
3 months agoipq40xx: fix dts error in LED color/function conversion
Christian Marangi [Fri, 9 Feb 2024 00:44:19 +0000 (01:44 +0100)]
ipq40xx: fix dts error in LED color/function conversion

Fix DTS error in LED color/function conversion due to a bug in the
conversion script.

Fixes: a9e0d97e1fc8 ("ipq40xx: convert to new LED color/function format where possible")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agolinux: add dtb makefile target to targets list
Christian Marangi [Thu, 8 Feb 2024 22:04:55 +0000 (23:04 +0100)]
linux: add dtb makefile target to targets list

Add dtb makefile target to targets list to permit correct working of

make target/linux/dtb

Fixes: c47532b1ea7f ("kernel-build\eOnmk: add support for compiling only DTS")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel-build.mk: add support for compiling only DTS
Christian Marangi [Wed, 7 Feb 2024 23:49:27 +0000 (00:49 +0100)]
kernel-build.mk: add support for compiling only DTS

Add support for compiling DTS for the selected target. This can be
useful for testing if the DTS correctly compile and doesn't produce any
error.

This adds a new make target. To compile only DTS use:

make target/linux/dtb

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokernel: bump 6.1 to 6.1.77
John Audia [Tue, 6 Feb 2024 21:44:12 +0000 (16:44 -0500)]
kernel: bump 6.1 to 6.1.77

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.77

Removed upstreamed:
generic/backport-6.1/707-v6.8-01-net-phy-at803x-fix-passing-the-wrong-reference-for-c.patch[1]
generic/backport-6.1/796-v6.8-ipmr-fix-kernel-panic-when-forwarding-mcast-packets.patch[2]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.77&id=7dc0fefd37dd5fb03fdac6e3e01b1c2291148ccb
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.77&id=d2f1b7fe74afd66298dbb3c7b39e7b62e4df1724

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
3 months agokernel: bump 6.1 to 6.1.76
John Audia [Fri, 2 Feb 2024 21:56:39 +0000 (16:56 -0500)]
kernel: bump 6.1 to 6.1.76

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.76

All patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
3 months agolldpd: add option to force EDP
Stephen Howell [Sat, 3 Feb 2024 14:16:09 +0000 (14:16 +0000)]
lldpd: add option to force EDP

allow EDP support if compiled and add force EDP option

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: only use snmp options when compiled in
Stephen Howell [Sat, 3 Feb 2024 13:51:49 +0000 (13:51 +0000)]
lldpd: only use snmp options when compiled in

prevent SNMP options being passed unless lldpd supports them

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: Update Makefile package release
Stephen Howell [Sun, 17 Dec 2023 00:43:09 +0000 (00:43 +0000)]
lldpd: Update Makefile package release

increment Makefile package release to reflect changes to init script

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add option for tx delay and tx hold
Stephen Howell [Sun, 17 Dec 2023 00:39:48 +0000 (00:39 +0000)]
lldpd: add option for tx delay and tx hold

add option to set LLDP transmit delay, hold timers to set update frequency

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add option to set system platform
Stephen Howell [Sun, 17 Dec 2023 00:34:37 +0000 (00:34 +0000)]
lldpd: add option to set system platform

add option to override system platform instead of using kernel name

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add option to force SONMP enabled
Stephen Howell [Sun, 17 Dec 2023 00:28:43 +0000 (00:28 +0000)]
lldpd: add option to force SONMP enabled

add option to force SONMP to be enabled even when no peer detected

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add option to force FDP on
Stephen Howell [Sun, 17 Dec 2023 00:26:21 +0000 (00:26 +0000)]
lldpd: add option to force FDP on

add option to force FDP when no peers detected

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: set CDP version and allow forcing CDP on
Stephen Howell [Sun, 17 Dec 2023 00:21:12 +0000 (00:21 +0000)]
lldpd: set CDP version and allow forcing CDP on

add option to specify CDPv1 or CDPv2 and separately enable or force each

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: allow disabling LLDP protcol
Stephen Howell [Sun, 17 Dec 2023 00:17:14 +0000 (00:17 +0000)]
lldpd: allow disabling LLDP protcol

add option to allow LLDP disabling while using other supported protocols

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add portidsubtype option
Stephen Howell [Sat, 16 Dec 2023 23:49:44 +0000 (23:49 +0000)]
lldpd: add portidsubtype option

add option portidsubtype to correct port identifiers and descriptions

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add agent-type option
Stephen Howell [Sat, 16 Dec 2023 23:49:21 +0000 (23:49 +0000)]
lldpd: add agent-type option

add option to set agent-type to control propogation

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: add LLDP MED options
Stephen Howell [Sat, 16 Dec 2023 23:46:53 +0000 (23:46 +0000)]
lldpd: add LLDP MED options

add option to enable LLDP MED fast-start and set fast-start timer

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: option to disable LLDP-MED inventory TLV
Stephen Howell [Sat, 16 Dec 2023 23:08:08 +0000 (23:08 +0000)]
lldpd: option to disable LLDP-MED inventory TLV

add option to disable LLDP-MED inventory TLV transmission

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: Init adds no-version option
Stephen Howell [Sat, 16 Dec 2023 22:57:18 +0000 (22:57 +0000)]
lldpd: Init adds no-version option

add option to disable advertising kernel version

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: Allow neighbour filtering
Stephen Howell [Sat, 16 Dec 2023 22:52:10 +0000 (22:52 +0000)]
lldpd: Allow neighbour filtering

add filter option to init script.

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: LLDPD binds to only specified interfaces
Stephen Howell [Sat, 16 Dec 2023 22:41:22 +0000 (22:41 +0000)]
lldpd: LLDPD binds to only specified interfaces

Bind to the configured system interfaces only. Switchport interfaces
are no longer ignored and uci interface values for LLDPD are honored.

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agolldpd: Init config read on reload
Stephen Howell [Sat, 16 Dec 2023 22:32:19 +0000 (22:32 +0000)]
lldpd: Init config read on reload

Init script reload with trigger to detect config file update.
Reload command added to attempt non-impactful lldpd reload where
lldpcli can be used to update config without process restart.
Config hash function used to track whether process restart is needed.

Signed-off-by: Stephen Howell <howels@allthatwemight.be>
3 months agobmips: dts: move leds dt-bindings include to SoCs
Álvaro Fernández Rojas [Wed, 7 Feb 2024 16:38:11 +0000 (17:38 +0100)]
bmips: dts: move leds dt-bindings include to SoCs

bmips has all the dt-bindings includes inside each SoC .dtsi files, so let's
move the new includes there instead of adding them to each board .dts files.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agoramips: fix dts error in LED color/function conversion
Christian Marangi [Wed, 7 Feb 2024 22:59:33 +0000 (23:59 +0100)]
ramips: fix dts error in LED color/function conversion

Fix DTS error in LED color/function conversion due to a bug in the
conversion script.

Fixes: 19c45b95dbb5 ("ramips: convert to new LED color/function format where possible")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agolantiq: fix dts error in LED color/function conversion
Christian Marangi [Wed, 7 Feb 2024 22:54:35 +0000 (23:54 +0100)]
lantiq: fix dts error in LED color/function conversion

Fix DTS error in LED color/function conversion due to a bug in the
conversion script.

Fixes: 0c3f3eb229e4 ("lantiq: convert to new LED color/function format where possible")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq806x: fix dts error in LED color/function conversion
Christian Marangi [Wed, 7 Feb 2024 22:50:48 +0000 (23:50 +0100)]
ipq806x: fix dts error in LED color/function conversion

Fix DTS error in LED color/function conversion due to a bug in the
conversion script.

Fixes: 33e796232911 ("ipq806x: convert to new LED color/function format where possible")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agostrace: update to 6.7
Nick Hainke [Wed, 7 Feb 2024 11:59:23 +0000 (12:59 +0100)]
strace: update to 6.7

Release Notes:
https://github.com/strace/strace/releases/tag/v6.7

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agobase-files/leds: add setting the LED color via uci
Florian Eckert [Thu, 1 Feb 2024 11:51:02 +0000 (12:51 +0100)]
base-files/leds: add setting the LED color via uci

Add the possibility that colored LEDs can also be configured via the uci.

config led 'led1'
option name '<name>'
option sysfs '<path>'
option trigger 'default-on'
option default '1'
--> option color_{$color} '<0-255>'

The supported names of the variable "${color}" for the selected LED can be
queried in the file with the name 'multi_index'.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 months agobase-files/leds: merging code sequences that belongs together
Florian Eckert [Thu, 1 Feb 2024 10:31:20 +0000 (11:31 +0100)]
base-files/leds: merging code sequences that belongs together

Setting the trigger and checking whether the trigger can be set belong
together and should not be interrupted by other lines of code.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 months agobase-files/leds: save led color value if available
Florian Eckert [Thu, 1 Feb 2024 10:17:17 +0000 (11:17 +0100)]
base-files/leds: save led color value if available

There are monochrome LEDs that can only display one color. However, there
are also LEDs that can display multiple colors. This can be tested in the
led subsystem of the kernel if the files 'multi_index' and 'multi_intensity'
are present in the folder '/sys/class/leds/<ledname>'.

Until now it was not possible to reset the default color. This commit adds
the missing information in the file '/var/run/led.state' so that the bootup
color can be seen on the LED again when the LED configuration has been changed.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
3 months agorealtek: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:44 +0000 (14:48 +0100)]
realtek: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agorealtek: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:44 +0000 (14:48 +0100)]
realtek: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:43 +0000 (14:48 +0100)]
ramips: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoramips: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:43 +0000 (14:48 +0100)]
ramips: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:43 +0000 (14:48 +0100)]
qualcommax: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoqualcommax: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:42 +0000 (14:48 +0100)]
qualcommax: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoocteon: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:41 +0000 (14:48 +0100)]
octeon: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomvebu: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:41 +0000 (14:48 +0100)]
mvebu: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomvebu: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:40 +0000 (14:48 +0100)]
mvebu: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agompc85xx: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:40 +0000 (14:48 +0100)]
mpc85xx: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agompc85xx: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:40 +0000 (14:48 +0100)]
mpc85xx: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomediatek: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:39 +0000 (14:48 +0100)]
mediatek: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomediatek: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:39 +0000 (14:48 +0100)]
mediatek: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agolantiq: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:38 +0000 (14:48 +0100)]
lantiq: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokirkwood: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:38 +0000 (14:48 +0100)]
kirkwood: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agokirkwood: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:38 +0000 (14:48 +0100)]
kirkwood: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq806x: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:37 +0000 (14:48 +0100)]
ipq806x: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq40xx: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:37 +0000 (14:48 +0100)]
ipq40xx: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoipq40xx: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:37 +0000 (14:48 +0100)]
ipq40xx: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agobmips: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:36 +0000 (14:48 +0100)]
bmips: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agobcm63xx: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:35 +0000 (14:48 +0100)]
bcm63xx: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoath79: convert to new LED color/function format where possible
Christian Marangi [Wed, 7 Feb 2024 13:48:34 +0000 (14:48 +0100)]
ath79: convert to new LED color/function format where possible

Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agoath79: drop redundant label with new LED color/function format
Christian Marangi [Wed, 7 Feb 2024 13:48:34 +0000 (14:48 +0100)]
ath79: drop redundant label with new LED color/function format

Drop redundant label with new LED color/function format declared.
This was needed previously when the new format wasn't supported by
leds.sh functions script. Now that is supported this property
can be removed in favor of the new format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agotoolchain: binutils: add support for version 2.42
Nick Hainke [Tue, 6 Feb 2024 11:26:33 +0000 (12:26 +0100)]
toolchain: binutils: add support for version 2.42

Release Notes:
https://lists.gnu.org/archive/html/info-gnu/2024-01/msg00016.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agotools/cmake: update to 3.28.3
Nick Hainke [Tue, 6 Feb 2024 11:04:21 +0000 (12:04 +0100)]
tools/cmake: update to 3.28.3

Release Notes:
https://www.kitware.com/cmake-3-28-3-available-for-download/

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agotools/pkgconf: update to 2.1.1
Nick Hainke [Tue, 6 Feb 2024 11:13:59 +0000 (12:13 +0100)]
tools/pkgconf: update to 2.1.1

Changes:
https://github.com/pkgconf/pkgconf/blob/2edf954f3a80d2ccb4ba41938e5078fdde9d3ca4/NEWS

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agokexec-tools: update to 2.0.28
Nick Hainke [Sat, 3 Feb 2024 00:55:26 +0000 (01:55 +0100)]
kexec-tools: update to 2.0.28

Release Notes:
- https://www.spinics.net/lists/kexec/msg32139.html
- https://www.spinics.net/lists/kexec/msg33447.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agowifi-scripts: fix copy&paste issue in metadata
Felix Fietkau [Tue, 6 Feb 2024 09:47:14 +0000 (10:47 +0100)]
wifi-scripts: fix copy&paste issue in metadata

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agogeneric: 6.1: backport patch fixing kernel panic with mcast packets
Christian Marangi [Mon, 5 Feb 2024 20:33:33 +0000 (21:33 +0100)]
generic: 6.1: backport patch fixing kernel panic with mcast packets

Backport patch fixing kernel panic with mcast packets, patch is already
scheduled to be backported to stable kernels and will be dropped once
new stable kernel version are released.

Fixes: #14554
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agorealtek: enable in-band configuration of SFP port on ZyXEL XGS1250-12
Tobias Schramm [Mon, 25 Dec 2023 17:07:39 +0000 (18:07 +0100)]
realtek: enable in-band configuration of SFP port on ZyXEL XGS1250-12

The rtl93xx SoC supports both 1000Base-X and 10GBase-CR on its SerDes
interfaces. Enable dynamic switching between mac-signaled modes to
support 1000Base-X and 10GBase-CR on the SFP port.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agorealtek: 5.15: rtl93xx: add 1000Base-X and 10GBase-CR support on SerDes
Tobias Schramm [Sun, 4 Feb 2024 15:28:07 +0000 (16:28 +0100)]
realtek: 5.15: rtl93xx: add 1000Base-X and 10GBase-CR support on SerDes

This patch adds support for 1000Base-X and 10GBase-CR directly on the
SerDes lanes of rtl93xx SoCs.
This fixes SFP/SFP+ support on devices like the XSG1250-12.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agorealtek: 5.15: rtl930x: introduce SerDes mode macros
Tobias Schramm [Sun, 4 Feb 2024 14:55:01 +0000 (15:55 +0100)]
realtek: 5.15: rtl930x: introduce SerDes mode macros

Previously SerDes modes were specified ad-hoc in hex. Introduce and use
macros for SerDes modes.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agorealtek: 5.15: rtl93xx: fix switch/case indentation
Tobias Schramm [Mon, 5 Feb 2024 19:31:59 +0000 (20:31 +0100)]
realtek: 5.15: rtl93xx: fix switch/case indentation

Small stylistic fixup, one switch case statement was incorrectly indented.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agorealtek: 5.15: rtl93xx: remove unused SerDes mode selection
Tobias Schramm [Sun, 4 Feb 2024 14:15:49 +0000 (15:15 +0100)]
realtek: 5.15: rtl93xx: remove unused SerDes mode selection

rtl93xx_phylink_mac_config used to determine sds_mode without ever using
it. Drop that code.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agorealtek: 5.15: rtl930x: fix SerDes phy register write
Tobias Schramm [Mon, 25 Dec 2023 16:50:26 +0000 (17:50 +0100)]
realtek: 5.15: rtl930x: fix SerDes phy register write

The indirect SerDes phy register write function was missing the actual
write call. Add it.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
3 months agogeneric: 6.1: backport patch to enable PHYLIB_LEDS kconfig dynamically
Christian Marangi [Mon, 5 Feb 2024 16:54:18 +0000 (17:54 +0100)]
generic: 6.1: backport patch to enable PHYLIB_LEDS kconfig dynamically

Backport patch to enable PHYLIB_LEDS kconfig dynamically instead of
having to select this config for every target that makes use of PHY LEDs
API.

All affected patch are automatically refreshed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agobcm27xx: refresh kernel configs
Álvaro Fernández Rojas [Mon, 5 Feb 2024 17:37:29 +0000 (18:37 +0100)]
bcm27xx: refresh kernel configs

Refresh outdated kernel configs.

Fixes: b76fcf1bbe1d ("bcm27xx: enable video symbols"
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agobcm27xx: bcm2712: switch default ASPM policy to Powersave
Marty Jones [Mon, 5 Feb 2024 16:08:02 +0000 (11:08 -0500)]
bcm27xx: bcm2712: switch default ASPM policy to Powersave

Fixes instability issues with NVMe drives on RPi 5

Signed-off-by: Marty Jones <mj8263788@gmail.com>
3 months agobcm27xx: add isp-bcm2835 kernel module
Álvaro Fernández Rojas [Sat, 27 Jan 2024 23:05:35 +0000 (00:05 +0100)]
bcm27xx: add isp-bcm2835 kernel module

kmod-isp-bcm2835 enables ISP HW on the Raspberry Pi.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agobcm27xx: add codec-bcm2835 kernel module
Álvaro Fernández Rojas [Sat, 27 Jan 2024 23:04:42 +0000 (00:04 +0100)]
bcm27xx: add codec-bcm2835 kernel module

kmod-codec-bcm2835 enables HW accelerated video decoding/encoding on the
Raspberry Pi.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agobcm27xx: enable video symbols
Álvaro Fernández Rojas [Sat, 27 Jan 2024 23:02:26 +0000 (00:02 +0100)]
bcm27xx: enable video symbols

CONFIG_MEDIA_CONTROLLER has to be enabled for Raspberry Pi V4L2 drivers.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agobcm27xx: camera-bcm2835: fix module autoload
Álvaro Fernández Rojas [Sat, 27 Jan 2024 22:56:45 +0000 (23:56 +0100)]
bcm27xx: camera-bcm2835: fix module autoload

camera-bcm2835 depends on video-videobuf2, which has 65 as load value.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agobcm27xx: video: remove disabled video symbols
Álvaro Fernández Rojas [Sat, 27 Jan 2024 22:55:21 +0000 (23:55 +0100)]
bcm27xx: video: remove disabled video symbols

These symbols are now in the generic 6.1 config.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agokernel: modules: video: add missing video-mem2mem symbol
Álvaro Fernández Rojas [Sat, 3 Feb 2024 11:03:56 +0000 (12:03 +0100)]
kernel: modules: video: add missing video-mem2mem symbol

v4l2-mem2mem.ko needs CONFIG_V4L2_MEM2MEM_DEV symbol.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agokernel: modules: video: add missing video-videobuf2 symbol
Álvaro Fernández Rojas [Sun, 4 Feb 2024 09:21:01 +0000 (10:21 +0100)]
kernel: modules: video: add missing video-videobuf2 symbol

videobuf2-v4l2.ko needs CONFIG_VIDEOBUF2_V4L2 symbol.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agokernel: modules: video: remove v4l2-common from video-core
Álvaro Fernández Rojas [Sun, 4 Feb 2024 09:18:05 +0000 (10:18 +0100)]
kernel: modules: video: remove v4l2-common from video-core

v4l2-common.ko was merged into videodev.ko and no longer exists.

Fixes: ac5671f46cb4 ("kernel: remove obsolete kernel version switches for 4.19")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agokernel: 6.1: add bcm27xx video symbols
Álvaro Fernández Rojas [Sat, 27 Jan 2024 22:53:18 +0000 (23:53 +0100)]
kernel: 6.1: add bcm27xx video symbols

Add missing Raspberry Pi video symbols.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>