openwrt/staging/neocturne.git
7 weeks agoCI: labeler: remove bcm63xx
Hauke Mehrtens [Sun, 22 Sep 2024 13:41:32 +0000 (15:41 +0200)]
CI: labeler: remove bcm63xx

Some packages are now used by other targets, move them over

Fixes: 5cd8e037b506 ("bcm63xx: drop target")
Link: https://github.com/openwrt/openwrt/pull/16454
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agotools: fakeroot: update to 1.36
Shiji Yang [Fri, 27 Sep 2024 10:15:16 +0000 (18:15 +0800)]
tools: fakeroot: update to 1.36

The type 'id_t' check has been moved to configure.ac in upstream commit:
819063eb4d27 ("test for id_t with autoconf instead of blind typedef, fixes FTBFS on FreeBSD")

changelog:
https://salsa.debian.org/clint/fakeroot/-/blob/e4780b1aad6fae0be1868a76cc7ffa6149afa912/debian/changelog

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16530
Signed-off-by: Nick Hainke <vincent@systemli.org>
8 weeks agobase-files: emmc: invalidate kernel image while rootfs is being written
Rodrigo Balerdi [Tue, 24 Sep 2024 06:51:43 +0000 (03:51 -0300)]
base-files: emmc: invalidate kernel image while rootfs is being written

Some setups have alternate boot actions in case the main OS fails to
boot. These can include a secondary copy of the OS, a recovery OS, a
fallback to TFTP boot, etc.

This commit invalidates the kernel image while rootfs is being written
which, if a sysupgrade is interrupted, will trigger an alternate boot
action in devices that support it. This results in safer sysupgrades.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
8 weeks agomac80211: remove outdated patches
Shiji Yang [Fri, 27 Sep 2024 01:51:22 +0000 (09:51 +0800)]
mac80211: remove outdated patches

The only supported kernel in the main branch now is version 6.6. It's
time to clean up these useless codes and patches.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
8 weeks agomac80211: fix build error on kernel 6.6
Shiji Yang [Fri, 27 Sep 2024 01:51:22 +0000 (09:51 +0800)]
mac80211: fix build error on kernel 6.6

The virtio_find_vqs() ABI has been changed since the 6.11 kernel.
Switch back to using the old ABI to fix the build error:

../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c: In function 'init_vqs':
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: array type has incomplete element type 'struct virtqueue_info'
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6637:16: error: too few arguments to function 'virtio_find_vqs'
 6637 |         return virtio_find_vqs(vdev, HWSIM_NUM_VQS,
      |                ^~~~~~~~~~~~~~~
In file included from ../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:38:
./include/linux/virtio_config.h:224:5: note: declared here
  224 | int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
      |     ^~~~~~~~~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: unused variable 'vqs_info' [-Werror=unused-variable]
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6639:1: error: control reaches end of non-void function [-Werror=return-type]
 6639 | }
      | ^

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
8 weeks agoath79: Refresh kernel patches
Mieczyslaw Nalewaj [Thu, 26 Sep 2024 19:34:07 +0000 (21:34 +0200)]
ath79: Refresh kernel patches

Make the patches apply cleanly again.

Fixes: 774badd8a840 ("kernel: fix crashes after linearizing fraglist GSO skbs")
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16517
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agomediatek: remove "Ralink" from the target name
Felix Fietkau [Thu, 26 Sep 2024 13:04:54 +0000 (15:04 +0200)]
mediatek: remove "Ralink" from the target name

None of the supported chips have been sold under the Ralink brand.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agotools: e2fsprogs: bypass libuuid check
Rosen Penev [Wed, 25 Sep 2024 17:42:15 +0000 (10:42 -0700)]
tools: e2fsprogs: bypass libuuid check

The check is the wrong way around. It uses AC_CHECK_LIBS and then
pkg-config, probably because the latter is a second class citizen.

Just bypass it. pkg-config gets used anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agotools: util-linux: fix static libuuid pkgconf
Rosen Penev [Tue, 24 Sep 2024 20:30:20 +0000 (13:30 -0700)]
tools: util-linux: fix static libuuid pkgconf

Fixes uuid.pc usage on hosts with an older glibc.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agokernel: fix crashes after linearizing fraglist GSO skbs
Felix Fietkau [Thu, 26 Sep 2024 08:58:44 +0000 (10:58 +0200)]
kernel: fix crashes after linearizing fraglist GSO skbs

This fixes some corner cases triggered by enabling fraglist GRO, where some
protocols may accidentally or intentionally linearize fraglist skbs.
Previously, these skbs became unusable and segmenting them led to crashes.
With this patch, they are properly handled by passing them to skb_segment
instead of skb_segment_list.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agomac80211: update to version 6.11
Felix Fietkau [Tue, 24 Sep 2024 13:06:20 +0000 (15:06 +0200)]
mac80211: update to version 6.11

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agokernel: backport MHI patch required by an upcoming mac80211 update
Felix Fietkau [Tue, 24 Sep 2024 12:35:31 +0000 (14:35 +0200)]
kernel: backport MHI patch required by an upcoming mac80211 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agoopenssl: update download mirrors
Chukun Pan [Wed, 18 Sep 2024 15:10:16 +0000 (23:10 +0800)]
openssl: update download mirrors

New releases of openssl are only published on GitHub, and official
downloads are also redirected to GitHub. So remove the old download
mirrors (file 404), and replace the current address with https.

Link: https://openssl-library.org/source/
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/16470
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agoramips: use more devm in mtk_eth_soc
Rosen Penev [Thu, 15 Aug 2024 00:50:20 +0000 (17:50 -0700)]
ramips: use more devm in mtk_eth_soc

These got added to the kernel after this driver was written.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16415
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agoath79: gpio-latch-mikrotik: remove fwnode
Rosen Penev [Sun, 8 Sep 2024 00:16:42 +0000 (17:16 -0700)]
ath79: gpio-latch-mikrotik: remove fwnode

Not needed. Can just use dev.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agoath79: gpio-latch-mikrotik: remove _remove
Rosen Penev [Sun, 8 Sep 2024 00:08:33 +0000 (17:08 -0700)]
ath79: gpio-latch-mikrotik: remove _remove

Not needed with devm.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agoath79: gpio-latch-mikrotik: use dev_err_probe
Rosen Penev [Thu, 15 Aug 2024 01:45:55 +0000 (18:45 -0700)]
ath79: gpio-latch-mikrotik: use dev_err_probe

It automatically adds the error code at the end of the message. It also
deals with -EPROBE_DEFER automatically (doesn't output). Simpler code.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agouboot-kirkwood: fix compilation with GCC14
Rosen Penev [Wed, 18 Sep 2024 00:51:36 +0000 (17:51 -0700)]
uboot-kirkwood: fix compilation with GCC14

Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16467
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agotools: e2fsprogs: drop e2fsck patch
Robert Marko [Wed, 25 Sep 2024 12:56:12 +0000 (14:56 +0200)]
tools: e2fsprogs: drop e2fsck patch

After digging in the history of the e2fsck exit code patch, it seems like
there is no reason for us to carry this patch so lets drop it.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agotools: e2fsprogs: pass --with-crond-dir=no instead of patching
Robert Marko [Wed, 25 Sep 2024 11:31:29 +0000 (13:31 +0200)]
tools: e2fsprogs: pass --with-crond-dir=no instead of patching

Currently, e2fsprogs is being patched to avoid detecting host crond, but
instead of doing that we can simply pass --with-crond-dir=no as an
argument and drop the patch.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agotools: e2fsprogs: drop the e4defrag patch
Robert Marko [Wed, 25 Sep 2024 11:26:19 +0000 (13:26 +0200)]
tools: e2fsprogs: drop the e4defrag patch

Considering that this patch to not build e4defrag was added 12 years ago
because:
Compilation fails on older systems due to missing syscalls

I think its safe to say that enough time is passed so that whatever those
older systems were are either updated or not used anymore so lets drop
the patch.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agorealtek: d-link: add support for dgs-1210-28p-f
Luiz Angelo Daros de Luca [Wed, 10 Jul 2024 23:20:06 +0000 (20:20 -0300)]
realtek: d-link: add support for dgs-1210-28p-f

General hardware info:
----------------------

D-Link DGS-1210-28P rev. F1 is a switch with 24 ethernet ports and 4
combo ports, all ports Gbit capable. It is based on a RTL8382 SoC
@500MHz, DRAM 128MB and 32MB flash. 24 ethernet ports are 802.3af/at PoE
capable with a total PoE power budget of 193W.

Power over Ethernet:
--------------------

The PSE hardware consists of three BCM59121 PSE chips, serving 8 ports
each. They are controlled by a Nuvoton MCU.  In order to enable PoE, the
realtek-poe package is required. It is installed by default, but
currently it requires the manual editing of /etc/config/poe. Keep in
mind that the port number assignment does not match on this switch,
alway 8 ports are in reversed order: 8-1, 16-9 and 24-17.

LEDs and Buttons:
-----------------

On stock firmware, the mode button is supposed to switch the LED
indicators of all port LEDs between Link Activity and PoE status. The
currently selected mode is visualized using the respective LEDs. PoE Max
indicates that the maximum PoE budget has been reached.  Since there is
currently no support for this behavior, these LEDs and the mode button
can be used independently.

Serial connection:
------------------
The UART for the SoC (115200 8N1) is available via unpopulated standard
0.1" pin header marked J6. Pin1 is marked with arrow and square.

Pin 1: Vcc 3.3V
Pin 2: Tx
Pin 3: Rx
Pin 4: Gnd

OEM installation from Web Interface:
------------------------------------

    1. Make sure you are booting using OEM in image 2 slot. If not,
       switch to
        image2 using the menus
        System > Firmware Information > Boot from image2
        Tools > reboot
    2. Upload image in vendor firmware via Tools > Backup / Upgrade
        Firmware > image1
    3. Toggle startup image via System > Firmware Information > Boot
       from
        image1
    4. Tools > reboot

Other installation methods not tested, but since the device shares the
board with the DGS-1210-28, the following should work:

Boot initramfs image from U-Boot:
---------------------------------

    1. Press Escape key during `Hit Esc key to stop autoboot` prompt
    2. Press CTRL+C keys to get into real U-Boot prompt
    3. Init network with `rtk network on` command
    4. Load image with `tftpboot 0x8f000000
        openwrt-rtl838x-generic-d-link_dgs-1210-28p-f-initramfs-kernel.bin`
        command
    5. Boot the image with `bootm` command

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15938
Signed-off-by: Sander Vanheule <sander@svanheule.net>
8 weeks agotools/flex: respect STAGING_DIR_HOST
Daniel Golle [Sat, 6 Jul 2024 23:59:13 +0000 (00:59 +0100)]
tools/flex: respect STAGING_DIR_HOST

flex currently leaks the path of m4 as found on the build host.
While it is possible to override this using the M4 environment
variable (which we always did for autotools based builds) when
using CMake or Ninja the M4 variable is not set.
One easy fix is to make flex take STAGING_DIR_HOST into account
and expect m4 there if that variable is set in the environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 weeks agotfa-layerscape: fix fiptool's build
Pawel Dembicki [Tue, 24 Sep 2024 07:05:11 +0000 (09:05 +0200)]
tfa-layerscape: fix fiptool's build

Platform specified fiptool files was moved before lf-6.6.23-2.0.0 bump.
But PLAT_FIPTOOL_HELPER_MK still pointed to old location.
This cause problems with ls-ddr-phy build.

This patch fix PLAT_FIPTOOL_HELPER_MK path.

Fixes: 0ec659bd2b7e ("tfa-layerscape: Bump to lf-6.6.23-2.0.0")
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16472
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agomac80211: ath12k: add PCI_SUPPORT dependency
Janusz Dziedzic [Tue, 24 Sep 2024 10:21:52 +0000 (12:21 +0200)]
mac80211: ath12k: add PCI_SUPPORT dependency

Always depend on PCI and don't build on platforms
without PCI.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16475
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agoCI: update actions/labeler to v5
Goetz Goerisch [Sat, 21 Sep 2024 20:00:33 +0000 (20:00 +0000)]
CI: update actions/labeler to v5

* Version 5 of this action updated the runtime to Node.js 20.
 All scripts are now run with Node.js 20 instead of Node.js 16
 and are affected by any breaking changes between Node.js 16 and 20.
* adapt the labeler configuration to the new format

Follow-up to #16251 this was reverted with b870c16534c05ddc94149c6ff56976d8de8a353f
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agokernel: r8126: add CONFLICT to rss variant
Chukun Pan [Mon, 16 Sep 2024 15:10:20 +0000 (23:10 +0800)]
kernel: r8126: add CONFLICT to rss variant

The rss variant should conflict with the default.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/16460
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 weeks agokernel: r8125: add CONFLICT to rss variant
Chukun Pan [Sun, 15 Sep 2024 15:10:15 +0000 (23:10 +0800)]
kernel: r8125: add CONFLICT to rss variant

The rss variant should conflict with the default.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/16460
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 weeks agomac80211: introduce EHT rate support in AQL airtime
Felix Fietkau [Tue, 24 Sep 2024 07:03:57 +0000 (09:03 +0200)]
mac80211: introduce EHT rate support in AQL airtime

Backport required by mt76 for decent throughput with EHT rates

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agoipq807x: sax1v1k: fix sysupgrade not touching rootfs_data
Rodrigo Balerdi [Mon, 23 Sep 2024 10:31:08 +0000 (07:31 -0300)]
ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data

Before this commit, sysupgrade saved the settings backup data to
the area following rootfs even though the device has an actual
rootfs_data partition. The backup data was completely ignored on
the following boot, but since rootfs_data was not being cleared
during sysupgrade, the issue was not noticed earlier.

Note that this commit changes the filesystem of rootfs_data from
ext4 to F2FS (if OEM partitioning is used).

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16463
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agorockchip: add ArmSoM Sige7 support
Tianling Shen [Mon, 23 Sep 2024 05:46:22 +0000 (13:46 +0800)]
rockchip: add ArmSoM Sige7 support

This board is also as known as Bananapi BPi-M7.

Hardware
--------
RockChip RK3588 ARM64 (8 cores)
8/16/32GB LPDDR4/LPDDR4x RAM
2x 2500 Base-T (PCIe, rtl8125b)
2 LEDs (RED / GREEN)
16GB/32GB/64GB/128GB eMMC on-board
Micro-SD Slot
USB 2.0 Port
USB 3.0 Port
M.2 M-Key
40-Pin Header
USB PD 2.0 9/12/15V Power

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card or
internal eMMC using dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16462
Signed-off-by: Nick Hainke <vincent@systemli.org>
8 weeks agouboot-rockchip: add ArmSoM Sige7 support
Tianling Shen [Mon, 23 Sep 2024 05:37:02 +0000 (13:37 +0800)]
uboot-rockchip: add ArmSoM Sige7 support

Add support for the ArmSoM Sige7 board.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16462
Signed-off-by: Nick Hainke <vincent@systemli.org>
8 weeks agorockchip: reorder nanopc t6 patches
Tianling Shen [Mon, 23 Sep 2024 05:15:57 +0000 (13:15 +0800)]
rockchip: reorder nanopc t6 patches

Reorder nanopc t6 patches to 055 to avoid conflict with nanopi r6c patches.

Fixes: 55c46cbabd76 ("rockchip: add FriendlyElec NanoPi R6C")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16461
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 months agogeneric: phy: aquantia: fix MDI pair property parsing
Robert Marko [Mon, 23 Sep 2024 16:16:51 +0000 (18:16 +0200)]
generic: phy: aquantia: fix MDI pair property parsing

of_property_read_u32 returns -EINVAL when property does not exist,
according to the documentation -ENOENT is not a valid return code.

So, instead of checking for -ENOENT check for -EINVAL as otherwise the
blamed commit breaks AQR probe since it will return -EINVAL during probe.

Fixes: cb2a11f49c98 ("generic: phy: aquantia: add pending patch to force MDI pair order")
Link: https://github.com/openwrt/openwrt/pull/16466
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agogpio-button-hotplug: use dev_err_probe
Rosen Penev [Sat, 7 Sep 2024 21:11:19 +0000 (14:11 -0700)]
gpio-button-hotplug: use dev_err_probe

Avoids having to handle EPROBE_DEFER manually.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16456
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agox86: generic: disable rust support
John Audia [Mon, 23 Sep 2024 12:00:50 +0000 (08:00 -0400)]
x86: generic: disable rust support

Add missing ksym CONFIG_RUST

Building r27563 without this commit will fail due to this ksym
being undefined in the generic config.

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

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16464
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolinux-firmware: Update to version 20240909
Hauke Mehrtens [Sun, 22 Sep 2024 22:47:40 +0000 (00:47 +0200)]
linux-firmware: Update to version 20240909

This updates the following firmware files:
amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam19h.bin
amdgpu-firmware/lib/firmware/amdgpu/*
ar3k-firmware/lib/firmware/qca/hpnv21.bin
ar3k-firmware/lib/firmware/qca/hpnv21g.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010a.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010b.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010a.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010b.bin
ar3k-firmware/lib/firmware/qca/rampatch_usb_00130201.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/amss.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/board-2.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/m3.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/amss.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/board-2.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/m3.bin
ath12k-firmware-wcn7850/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
ibt-firmware/lib/firmware/intel/ibt-0040-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0040-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-0041-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-1050.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-0291-0291.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-1050.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-17-16-1.sfi
ibt-firmware/lib/firmware/intel/ibt-17-2.sfi
ibt-firmware/lib/firmware/intel/ibt-18-16-1.sfi
ibt-firmware/lib/firmware/intel/ibt-18-2.sfi
intel-igpu-firmware-guc/lib/firmware/i915/adlp_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/dg1_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/dg2_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/mtl_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/tgl_guc_70.bin
intel-igpu-firmware-huc/lib/firmware/i915/dg2_huc_gsc.bin
iwlwifi-firmware-ax200/lib/firmware/iwlwifi-cc-a0-77.ucode
iwlwifi-firmware-ax201/lib/firmware/iwlwifi-QuZ-a0-hr-b0-77.ucode
iwlwifi-firmware-ax210/lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm
iwlwifi-firmware-be200/lib/firmware/iwlwifi-gl-c0-fm-c0.pnvm
mt7921bt-firmware/lib/firmware/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin
mt7922bt-firmware/lib/firmware/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin
r8169-firmware/lib/firmware/rtl_nic/rtl8126a-3.fw

Link: https://github.com/openwrt/openwrt/pull/16458
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomac80211: ath12k: prevent ltssm crash
Janusz Dziedzic [Mon, 24 Jun 2024 16:48:46 +0000 (18:48 +0200)]
mac80211: ath12k: prevent ltssm crash

Fix ltssm crashes on BPI-Rx boards.
Seems read32/write32 using wrong address which
is not a problem on x86/64 PCI controllers.
But have issues on BPI-Rx boards.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15945
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agolinux-firmware: qualcomm: add WCN7850 firmware
Janusz Dziedzic [Sat, 24 Feb 2024 10:25:15 +0000 (10:25 +0000)]
linux-firmware: qualcomm: add WCN7850 firmware

Add option to add WCN7850 ath12k firmware.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15945
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomac80211: add ath12k PCI support
Janusz Dziedzic [Sat, 24 Feb 2024 11:10:56 +0000 (11:10 +0000)]
mac80211: add ath12k PCI support

Add upstream ath12k 802.11BE driver support.
Allow to build and use it from openwrt.

Tested on BPI-R4/BPI-R64 with:
 - Qualcomm Technologies, Inc WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800] (rev 01)

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15945
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomac80211: ath: add qcom-qmi-helpers as package
Janusz Dziedzic [Sat, 24 Feb 2024 11:08:48 +0000 (11:08 +0000)]
mac80211: ath: add qcom-qmi-helpers as package

Allow to build ath11k and other drivers using
qcom-qmi-helpers together (eg. ath12k).

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15945
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoath79: disable ath79 USB phy drivers by default
Shiji Yang [Fri, 13 Sep 2024 11:52:30 +0000 (19:52 +0800)]
ath79: disable ath79 USB phy drivers by default

We already have an kernel module package "kmod-phy-ath79-usb" to
drive the ath79 USB. It will be selected by the usb base package
"kmod-usb2" and "kmod-usb-ohci".

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16380
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: usb: improve support for ath79 target
Shiji Yang [Fri, 13 Sep 2024 11:52:30 +0000 (19:52 +0800)]
kernel: usb: improve support for ath79 target

1. Remove outdated symbol CONFIG_USB_OHCI_ATH79.
The ath79 OHCI USB was already supported by the generic driver
kmod-usb-ohci. And this kernel symbol has been dropped since
upstream commit:
53d473fc1e38 ("usb: host: Remove the deprecated ATH79 USB host config options")

2. Add ath79 USB phy package to the OHCI dependencies.
Both EHCI and OHCI require it on the ath79 target.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16380
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agouboot-mediatek: support GL.iNet GL-X3000 and GL-XE3000
Chris Webb [Mon, 10 Jun 2024 08:54:23 +0000 (09:54 +0100)]
uboot-mediatek: support GL.iNet GL-X3000 and GL-XE3000

Add u-boot support based on the kernel dts introduced in d1016446 and
the GL-MT6000 u-boot support in fe10f974.

The pcie-mediatek-gen3 kernel driver doesn't like hotplug, so to work in
PCIe mode, the 5G modem on this device needs to be switched on by u-boot
before starting the kernel. Include an init_modem step in the boot_system
action to set the relevant gpios. (The factory bootloader does the same,
using Mediatek SDK-specific gpio_power_clr and gpio_pull_up.)

Ideally the modem would be started using gpio-hog in the device tree, but
this will need to wait until mediatek gpio-hog support is fixed upstream:

  https://lore.kernel.org/u-boot/6ef2583e85eea60560d7776377d662779e7c44e5.1722419839.git.chris@arachsys.com/

The bootloader can be replaced using the built-in web interface of the
factory bootloader. Hold the reset button for five seconds while powering
on the device and it will boot into a recovery http server.

http://192.168.1.1/uboot.html and http://192.168.1.1/bl2.html can then
be used to upload openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip
and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin respectively.

Alternatively, from a root shell on the running system, unlock the boot
partition with

  echo 0 >/sys/block/mmcblk0boot0/force_ro

then write openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip to
/dev/mmcblk0p4 and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin
to /dev/mmcblk0boot0.

Signed-off-by: Chris Webb <chris@arachsys.com>
Link: https://github.com/openwrt/openwrt/pull/15645
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agocomgt: directip: add delegate option support
Chen Minqiang [Wed, 15 May 2024 14:57:06 +0000 (22:57 +0800)]
comgt: directip: add delegate option support

Ipv6 delegate option is not respected by proto directip
this add support for it.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agocomgt: directip: add sourcefilter option support
Chen Minqiang [Wed, 15 May 2024 14:51:55 +0000 (22:51 +0800)]
comgt: directip: add sourcefilter option support

This make source based IPv6 routing option available for directip

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoqmi: add delegate option support
Chen Minqiang [Wed, 15 May 2024 14:48:32 +0000 (22:48 +0800)]
qmi: add delegate option support

Ipv6 delegate option is not respected by proto qmi
this add support for it.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoncm: add delegate option support
Chen Minqiang [Wed, 15 May 2024 14:46:08 +0000 (22:46 +0800)]
ncm: add delegate option support

Ipv6 delegate option is not respected by proto ncm
this add support for it.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agombim: add delegate option support
Chen Minqiang [Wed, 15 May 2024 14:43:03 +0000 (22:43 +0800)]
mbim: add delegate option support

Ipv6 delegate option is not respected by proto mbim
this add support for it.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoppp: add delegate option support
Chen Minqiang [Wed, 15 May 2024 14:05:23 +0000 (22:05 +0800)]
ppp: add delegate option support

Ipv6 delegate option is not respected by proto of ppp/pptp/pppoe/pppoa
this add support for them.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agohostapd: fix `UPDATE_VAL` fail in `uc_hostapd_iface_start`
Jianhui Zhao [Wed, 15 May 2024 02:45:13 +0000 (10:45 +0800)]
hostapd: fix `UPDATE_VAL` fail in `uc_hostapd_iface_start`

If the `intval` obtained from `info` is indeed 0, it cannot be set to `conf`.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15495
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agohostapd-common: add missing ingredients for standalone EAP server
Lev A. Melnikovsky [Thu, 8 Aug 2024 18:22:58 +0000 (21:22 +0300)]
hostapd-common: add missing ingredients for standalone EAP server

Namely radius_server_auth_port and radius_server_clients arguments. Below is a working config example:

config wifi-iface 'enterprise1'
        option device 'radio1'
        option mode 'ap'
        option network 'lan'
        option ssid 'openwrt'
        option encryption 'wpa2'
        option dh_file '/etc/hostapd/dh.pem'
        option eap_server '1'
        option eap_user_file '/etc/hostapd/eap_user'
        option ca_cert '/etc/hostapd/ca.pem'
        option server_cert '/etc/hostapd/server.crt'
        option private_key '/etc/hostapd/server.key'
        option radius_server_clients '/etc/hostapd/radius_clients'
        option radius_server_auth_port 1812

config wifi-iface 'enterprise2'
        option device 'radio2'
        option mode 'ap'
        option network 'lan'
        option ssid 'openwrt'
        option encryption 'wpa2'
        option dh_file '/etc/hostapd/dh.pem'
        option auth_server '127.0.0.1'
        option auth_secret 'radius_secret'
        option auth_cache '0'

Signed-off-by: Lev A. Melnikovsky <melnikovsky@gmail>
Link: https://github.com/openwrt/openwrt/pull/16112
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotools: firmware-utils: update to git HEAD
Sander Vanheule [Sun, 22 Sep 2024 21:06:37 +0000 (23:06 +0200)]
tools: firmware-utils: update to git HEAD

Improve device compatibility:
  - commit ed9c97fa3305 ("tplink-safeloader: bump EAP610-V3 compat_level")

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 months agoramips: Add support for D-Link DIR-2150-R1
Alan Luck [Wed, 10 Jul 2024 11:57:11 +0000 (21:57 +1000)]
ramips: Add support for D-Link DIR-2150-R1

Hardware Specification:
SoC: Mediatek MT7621DAT (MIPS1004Kc 880 MHz, dual core)
RAM: 128 MB
Storage: 128 MB NAND flash
Ethernet: 5x 10/100/1000 Mbps LAN1,LAN2,LAN3,LAN4 & WAN
Wireless: 2.4GHz: Mediatek MT7603EN up to 300Mbps (802.11b/g/n MIMO 2x2)
Wireless: 5GHz: Mediatek MT7615N up to 1733Mbps (802.11n/ac MU-MIMO 4x4)
LEDs: Power (white & amber), Internet (white & amber)
LEDs: 2.4G (White), 5Ghz (White)
Buttons: WPS, Reset
USB: Front V3.0 & Rear V2.0

MAC Table
Label xx:xx:xx:xx:xx:38
LAN xx:xx:xx:xx:xx:39
2.4Ghz xx:xx:xx:xx:xx:3A
5Ghz xx:xx:xx:xx:xx:3C
WAN xx:xx:xx:xx:xx:38

Flash Instructions:
D-Link normal OEM firmware update page
1. upload OpenWRT factory.bin like any D-Link upgrade image

D-Link Fail Safe GUI:
1. Push and hold reset button (on the bottom of the device) until power led starts flashing (about 10 secs or so) while plugging in the power cable.
2. Give it ~30 seconds, to boot the fail safe GUI
3. Connect your client computer to LAN1 of the device
4. Set your client IP address manually to 192.168.0.2 / 255.255.255.0
5. Call the fail safe page for the device at http://192.168.0.1/
6. Use the provided fail safe web GUI to upload the factory.bin to the device

Signed-off-by: Alan Luck <luckyhome2008@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16269
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomac80211: rt2x00: fix eeprom load issue for PCIe NICs
Shiji Yang [Sat, 17 Aug 2024 04:04:43 +0000 (12:04 +0800)]
mac80211: rt2x00: fix eeprom load issue for PCIe NICs

The support for assigning PCIe eeprom via device tree was
accidentally removed when adding NVMEM eeprom patches.

Fixes: bea4f5020790 ("mac80211: rt2x00: improve EEPROM load patches")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16318
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: add back the missing periph clock for Ralink RT3883
Shiji Yang [Tue, 6 Aug 2024 12:52:55 +0000 (20:52 +0800)]
ramips: add back the missing periph clock for Ralink RT3883

periph clock is the parent clock of some other clocks.

Link: https://lore.kernel.org/all/CAMhs-H_NS-n2tx5SZpCMiVZtBFzX_nTa_vnS8We0UevkwFq93Q@mail.gmail.com/
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16318
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: merge dtsi included file for Belkin F9K1109
Shiji Yang [Tue, 6 Aug 2024 12:50:23 +0000 (20:50 +0800)]
ramips: merge dtsi included file for Belkin F9K1109

Only one device uses the dtsi file "rt3883_belkin_f9k110x.dtsi".
So there is no need to split the device tree.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16318
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: disable 2 GHz band for Belkin F9K1109 V1
Shiji Yang [Tue, 6 Aug 2024 12:23:36 +0000 (20:23 +0800)]
ramips: disable 2 GHz band for Belkin F9K1109 V1

2 GHz WiFi doesn't work on the wmac of this device.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16318
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotoolchain/nasm: update to 2.16.03
Yanase Yuki [Thu, 12 Sep 2024 12:19:11 +0000 (21:19 +0900)]
toolchain/nasm: update to 2.16.03

Use gzip archive to avoid xz usage.

Signed-off-by: Yanase Yuki <dev@zpc.st>
Link: https://github.com/openwrt/openwrt/pull/16373
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agogeneric: mtd: spinand: winbond: more serial NAND flash types
Mieczyslaw Nalewaj [Tue, 27 Aug 2024 16:47:28 +0000 (18:47 +0200)]
generic: mtd: spinand: winbond: more serial NAND flash types

Add support for W25N01JW, W25N02JWZEIF, W25N512GW, W25N02KWZEIR and W25N01GWZEIG.
Add support for W25N04KV.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16272
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: Add support for Ruijie RG-EW1200G PRO v1.1
Yahor Leonenka [Mon, 19 Aug 2024 16:19:33 +0000 (19:19 +0300)]
ramips: Add support for Ruijie RG-EW1200G PRO v1.1

    SoC: MediaTek MT7621
    Flash: 16MB (Macronix MX25L12805D)
    RAM: 128MB
    Serial: As marked on PCB, baudrate is 57600, DO NOT CONNECT 3.3V!!!
    Ethernet: 4x 10/100/1000 Mbps (3x LAN + WAN)
    WIFI0: MT7615 2.4GHz 802.11b/g/n
    WIFI1: MT7615 5GHz 802.11ac
    Antennas: 6x external (3 per radio), non-detachable
    LEDs: Programmable power-LED (blue-colored)
    Buttons: Reset

INSTALLATION:

    Get rootshell using insructions from https://gist.github.com/ZIKH26/18693c67ee7d2f8d2c60231b19194c37

    Download and flash image
    On computer:
    python -m http.server
    On router:
    cd /tmp
    wget http://:8000/factory.bin
    mtd -r write factory.bin firmware

Device should reboot at this point.

Reverting to stock:
Download archive with firmware from Ruijie's site and
get .bin file from it. Then write that binary to firmware
partition. After reboot, factory-reset the router using
reset button.

Signed-off-by: Yahor Leonenka <staryjakau@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16202
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: add support for ELECOM WSC-X1800GS
INAGAKI Hiroshi [Tue, 10 Sep 2024 14:47:52 +0000 (23:47 +0900)]
ramips: add support for ELECOM WSC-X1800GS

ELECOM WSC-X1800GS is a 2.4/5 GHz band 11ax (Wi-Fi 6) mesh extender,
based on MT7621A

Specification:

- SoC             : MediaTek MT7621A
- RAM             : DDR3 512 MiB (Nanya NT5CC256M16ER-EK)
- Flash           : RAW-NAND 128 MiB (Winbond W29N01HVSINF)
- WLAN            : 2.4/5 GHz 2T2R (MediaTek MT7915D + MT7975D)
- Ethernet        : 2x 10/100/1000 Mbps
  - switch        : MediaTek MT7530 (SoC)
- LEDs/Keys (GPIO): 9x/2x
- UART            : through-hole on PCB ("J4")
  - arrangement   : 3.3V, GND, TX, RX from tri-angle marking
  - settings      : 115200n8
- Power           : 12 VDC, 1 A (Max. 10.5 W)

Flash instruction using initramfs-factory image

1. Boot WMC-X1800GST normally
2. Access to "http://192.168.2.1/" and open firmware update page
   ("ファームウェア更新")
3. Select the OpenWrt initramfs-factory image and click apply ("適用")
   button
4. On initramfs image, download sysupgrade image to the device and
   perform sysupgrade with that image
5. Wait ~120 seconds to complete flashing

Notes:

- The "firmware" partition on the stock image is only 0xF00000 (15 MiB)
  and it's too small for the current OpenWrt firmware with UBI format.
  So use the unused area at the end of NAND flash for rootfs (UBI).

MAC addresses:

LAN    : 04:AB:18:xx:xx:6E (Factory, 0x3fff4 (hex))
2.4 GHz: 04:AB:18:xx:xx:6F (Factory, 0x3fffa (hex))
5 GHz  : 04:AB:18:xx:xx:70 (Factory,     0x4 (hex))

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16384
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: add support for ELECOM WMC-X1800GST
INAGAKI Hiroshi [Tue, 10 Sep 2024 14:47:52 +0000 (23:47 +0900)]
ramips: add support for ELECOM WMC-X1800GST

ELECOM WMC-X1800GST is a 2.4/5 GHz band 11ax (Wi-Fi 6) mesh router,
based on MT7621A

Specification:

- SoC             : MediaTek MT7621A
- RAM             : DDR3 512 MiB (Nanya NT5CC256M16ER-EK)
- Flash           : RAW-NAND 128 MiB (Winbond W29N01HVSINF)
- WLAN            : 2.4/5 GHz 2T2R (MediaTek MT7915D + MT7975D)
- Ethernet        : 3x 10/100/1000 Mbps
  - switch        : MediaTek MT7530 (SoC)
- LEDs/Keys (GPIO): 9x/5x
- UART            : through-hole on PCB ("J4")
  - arrangement   : 3.3V, GND, TX, RX from tri-angle marking
  - settings      : 115200n8
- Power           : 12 VDC, 1 A (Max. 11.5 W)

Flash instruction using initramfs-factory image

1. Boot WMC-X1800GST normally with "Router" mode
2. Access to "http://192.168.2.1/" and open firmware update page
   ("ファームウェア更新")
3. Select the OpenWrt initramfs-factory image and click apply ("適用")
   button
4. On initramfs image, download sysupgrade image to the device and
   perform sysupgrade with that image
5. Wait ~120 seconds to complete flashing

Notes:

- The "firmware" partition on the stock image is only 0xF00000 (15 MiB)
  and it's too small for the current OpenWrt firmware with UBI format.
  So use the unused area at the end of NAND flash for rootfs (UBI).

MAC addresses:

LAN    : 04:AB:18:xx:xx:BF (Factory, 0x3fff4 (hex))
WAN    : 04:AB:18:xx:xx:C0 (Factory, 0x3fffa (hex))
2.4 GHz: 04:AB:18:xx:xx:C1 (Factory,     0x4 (hex))
5 GHz  : 04:AB:18:xx:xx:C2

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16384
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoath79: qca955x ag71xx upstream driver fix
Oskari Lemmela [Sun, 4 Aug 2024 07:02:09 +0000 (10:02 +0300)]
ath79: qca955x ag71xx upstream driver fix

Fix mdio probe in qca95xx devices and add mandatory clocks to dtsi

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: modules: add irq support for pca953x
Oskari Lemmela [Thu, 11 Jul 2024 07:47:36 +0000 (10:47 +0300)]
kernel: modules: add irq support for pca953x

Enable interrupt controller support for PCA953x kernel module

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: netdevices: add leds support
Oskari Lemmela [Thu, 11 Jul 2024 08:01:32 +0000 (11:01 +0300)]
kernel: netdevices: add leds support

Compile LED support to swconfig and phy modules

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: netdevices: add dsa support
Oskari Lemmela [Sun, 8 Oct 2023 07:33:50 +0000 (10:33 +0300)]
kernel: netdevices: add dsa support

Add support for building DSA switch drivers as kernel modules.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: netdevices: add phy modules
Oskari Lemmela [Wed, 10 Jul 2024 16:34:47 +0000 (19:34 +0300)]
kernel: netdevices: add phy modules

Add support for building multiple phy drivers as kernel modules

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agokernel: netdevices: add ag71xx modules
Oskari Lemmela [Wed, 10 Jul 2024 15:52:38 +0000 (18:52 +0300)]
kernel: netdevices: add ag71xx modules

Add support for building both upstream and downstream ag71xx drivers
as modules.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoath79: rename downstream ag71xx driver
Oskari Lemmela [Wed, 10 Jul 2024 07:55:16 +0000 (10:55 +0300)]
ath79: rename downstream ag71xx driver

Rename the downstream ag71xx driver to ag71xx-legacy.
It allows both upstream and downstream drivers to be compiled into modules.

Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoath79: rb91x_nand: use dev_err_probe
Rosen Penev [Thu, 15 Aug 2024 02:21:54 +0000 (19:21 -0700)]
ath79: rb91x_nand: use dev_err_probe

Simplifies the error path and avoids having to handle -EPROBE_DEFER
manually.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16416
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agolibusb: update to 1.0.27
Yanase Yuki [Thu, 12 Sep 2024 11:49:27 +0000 (20:49 +0900)]
libusb: update to 1.0.27

- Remove unnecessary SourceForge mirror
- Use HTTPS url

Signed-off-by: Yanase Yuki <dev@zpc.st>
Link: https://github.com/openwrt/openwrt/pull/16372
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agombedtls: update to 3.6.1
Yanase Yuki [Thu, 12 Sep 2024 12:02:06 +0000 (21:02 +0900)]
mbedtls: update to 3.6.1

- This release fixes CVE-2024-45157, CVE-2024-45158, CVE-2024-45159
- Use official release archive instead of git mirror
- Update website url

Signed-off-by: Yanase Yuki <dev@zpc.st>
Link: https://github.com/openwrt/openwrt/pull/16371
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotcpdump: update to 4.99.5
Ivan Pavlov [Mon, 16 Sep 2024 04:49:40 +0000 (07:49 +0300)]
tcpdump: update to 4.99.5

Changes: https://git.tcpdump.org/tcpdump/blob/4a789712f187e3ac7b2c0044c3a3f8c71b83646e:/CHANGES

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16402
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agolibpcap: update to 1.10.5
Ivan Pavlov [Mon, 16 Sep 2024 04:48:06 +0000 (07:48 +0300)]
libpcap: update to 1.10.5

Changes: https://git.tcpdump.org/libpcap/blob/bbcbc9174df3298a854daee2b3e666a4b6e5383a:/CHANGES

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16401
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agorockchip: rework LED configurations for the NanoPi R6C/R6S
Antonio Flores [Mon, 2 Sep 2024 02:24:35 +0000 (22:24 -0400)]
rockchip: rework LED configurations for the NanoPi R6C/R6S

This commits fixes the LED on the NanoPi R6 series
after changes in the DTS
https://lore.kernel.org/all/20240612205056.397204-4-seb-dev@mail.de
Reported by Github user: gSpotx2f

Signed-off-by: Antonio Flores <antflores627@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16275
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agouboot-rockchip: patches: add version when were applied upstream
Antonio Flores [Fri, 30 Aug 2024 11:41:45 +0000 (07:41 -0400)]
uboot-rockchip: patches: add version when were applied upstream

This patch add a version to uboot patches to help identify in
futures updates when they were upstreamed.

Signed-off-by: Antonio Flores <antflores627@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16275
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agorockchip: fixes and improve for NanoPi R6 series
Antonio Flores [Tue, 27 Aug 2024 21:16:02 +0000 (17:16 -0400)]
rockchip: fixes and improve for NanoPi R6 series

Improvement and fixes for the nanopi r6 series, pending on the kernel mailing list
https://lore.kernel.org/all/20240612205056.397204-1-seb-dev@mail.de

Signed-off-by: Antonio Flores <antflores627@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16275
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agorockchip: add FriendlyElec NanoPi R6C
Antonio Flores [Tue, 27 Aug 2024 20:36:02 +0000 (16:36 -0400)]
rockchip: add FriendlyElec NanoPi R6C

Hardware Spec
 -SoC: Rockchip RK3588S
       CPU: Quad-core ARM Cortex-A76(up to 2.4GHz) and quad-core Cortex-A55 CPU (up to 1.8GHz)
       GPU: Mali-G610 MP4, compatible with OpenGLES 1.1, 2.0, and 3.2, OpenCL up to 2.2 and Vulkan1.2
       VPU: 8K@60fps H.265 and VP9 decoder, 8K@30fps H.264 decoder, 4K@60fps AV1 decoder, 8K@30fps H.264 and H.265
       NPU: 6TOPs, supports INT4/INT8/INT16/FP16
 -RAM: 64-bit 4GB/8GB LPDDR4X at 2133MHz
 -Flash: 32GB/None eMMC, at HS400 mode
 -Ethernet: one Native Gigabit Ethernet, and one PCIe 2.5G Ethernet
 -USB: one USB 3.0 Type-A and one USB 2.0 Type-A
 -PCIe: one M.2 Key M connector with PCIe 2.1 x1
 -HDMI:
       compatible with HDMI2.1, HDMI2.0, and HDMI1.4 operation
       support up to 7680x4320@60Hz
       Support RGB/YUV(up to 10bit) format
 -microSD: support up to SDR104 mode
 -GPIO:
       30-pin 2.54mm header connector
       up to 1x SPI, 3x UARTs, 3x I2Cs, 2x SPDIFs, 1x I2Ss, 3x PWMs, 20x GPIOs
 -Debug: UART via 3-Pin 2.54mm header, or on-board USB-C to UART
 -LEDs: 4 x GPIO Controlled LED (SYS, WAN, LAN, LED1)
 -others:
        2 Pin 1.27/1.25mm RTC battery input connector for low power RTC IC HYM8563TS
        MASK button for eMMC update
        one user button
 -Power supply: USB-C, support PD, 5V/9V/12V/20V input
 -PCB: 8 Layer, 62x90x1.6mm
 -Ambient Operating Temperature: 0℃ to 70℃

Installation:

Uncompress the OpenWrt sysupgrade and write image to the SD card using dd (dd if=*.img of=/*)

eMMC Installation:

Boot from the SD card
Uncompress the OpenWrt sysupgrade image
fash to eMMC : dd if=*.img of=/dev/mmcblk1
sync
remove SD card
reboot

Signed-off-by: Antonio Flores <antflores627@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16275
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agouboot-rockchip: add FriendlyElec NanoPi R6C
Antonio Flores [Tue, 13 Aug 2024 02:15:28 +0000 (22:15 -0400)]
uboot-rockchip: add FriendlyElec NanoPi R6C

1- The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s.
   It comes with 4GB or 8GB of RAM, a microSD card slot, optional 32GB eMMC
   storage, one M.2 M-Key connector, one RTL8211F 1GbE and one RTL8125
   2.5GbE Ethernet port, one USB 2.0 Type-A and one USB 3.0 Type-A port, a
   HDMI port, a 30-pin GPIO header as well as multiple buttons and LEDs.
2- Renamed 000-backport-upstream-dts-sync.patch -> 000-v2024.10-rc1-backport-upstream-dts-sync.patch
   to add the version when was applied upstream

Signed-off-by: Antonio Flores <antflores627@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16275
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotools/meson: update to 1.5.1
Yegor Yefremov [Thu, 19 Sep 2024 12:11:45 +0000 (14:11 +0200)]
tools/meson: update to 1.5.1

Changelog: https://mesonbuild.com/Release-notes-for-1-5-0.html

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Link: https://github.com/openwrt/openwrt/pull/16425
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months ago6in4: add 'nohostroute' option
Aleksandr V. Piskunov [Tue, 16 Jul 2024 13:58:11 +0000 (16:58 +0300)]
6in4: add 'nohostroute' option

Same as 'nohostroute' option for GRE tunnels (commit 0f8b9addfc)
and IPIP tunnels (commit 46ce629fe0)

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15961
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months ago6in4: Support fqdn as remote tunnel endpoint
Aleksandr V. Piskunov [Tue, 16 Jul 2024 13:44:35 +0000 (16:44 +0300)]
6in4: Support fqdn as remote tunnel endpoint

Same as fqdn support in GRE (commit a79f3d11b3) and IPIP (commit 311682905e)

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15961
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months ago6in4: allow specifying tunnel device name
Aleksandr V. Piskunov [Tue, 16 Jul 2024 13:39:17 +0000 (16:39 +0300)]
6in4: allow specifying tunnel device name

Accept 'device' option, allowing to specify custom l3 device name,
instead of default autogenerated one (prefix "6in4-" + interface name)

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15961
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agols-mc: bump to 10.39.0
Pawel Dembicki [Mon, 9 Sep 2024 10:35:40 +0000 (12:35 +0200)]
ls-mc: bump to 10.39.0

Update ls-mc to latest 10.39.0 version.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agols-dpl: bump to 10.39.0
Pawel Dembicki [Mon, 9 Sep 2024 10:35:00 +0000 (12:35 +0200)]
ls-dpl: bump to 10.39.0

Update ls-dpl to latest 10.39.0 version.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agols-rcw: Bump to lf-6.6.23-2.0.0
Pawel Dembicki [Mon, 9 Sep 2024 10:34:09 +0000 (12:34 +0200)]
ls-rcw: Bump to lf-6.6.23-2.0.0

Bump ls-rcw package to lf-6.6.23-3.0.0.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agorestool: bump to lf-6.6.23-2.0.0
Pawel Dembicki [Mon, 9 Sep 2024 10:32:56 +0000 (12:32 +0200)]
restool: bump to lf-6.6.23-2.0.0

This commit bumps restool layerscape package to lf-6.6.23-2.0.0 version.

Patch was refreshed.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agouboot-layerscape: bump to lf-6.6.23-2.0.0
Pawel Dembicki [Mon, 9 Sep 2024 10:15:29 +0000 (12:15 +0200)]
uboot-layerscape: bump to lf-6.6.23-2.0.0

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

Manually rebased:
0900-layerscape-adjust-LS1021A-IOT-config-for-OpenWrt.patch

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotfa-layerscape: Bump to lf-6.6.23-2.0.0
Pawel Dembicki [Mon, 9 Sep 2024 10:06:42 +0000 (12:06 +0200)]
tfa-layerscape: Bump to lf-6.6.23-2.0.0

This commit bumps tfa-layerscape package to version lf-6.6.23-2.0.0

Manually rebased:
001-fiptool-hostbuild-fixes.patch

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16360
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agorockchip: backport upstream updates for nanopc t6
Tianling Shen [Fri, 6 Sep 2024 07:27:25 +0000 (15:27 +0800)]
rockchip: backport upstream updates for nanopc t6

Backport ir-receiver/minipcie/poweroff/spi/usb-c support and other
minor fixes for the NanoPC T6 board.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16443
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agobuild: remove ac_cv_header_netinet_sctp_h=no from pre-cached variables
Aleksey Vasilenko [Sat, 21 Sep 2024 14:00:39 +0000 (17:00 +0300)]
build: remove ac_cv_header_netinet_sctp_h=no from pre-cached variables

We have <netinet/sctp.h> header in lksctp-tools package,
but having this var set to 'no' prevents package's configure
to detect it.

Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16441
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: TP-Link EC220-G5 v2: swap WLAN leds assignment
Mieczyslaw Nalewaj [Thu, 5 Sep 2024 07:37:56 +0000 (09:37 +0200)]
ramips:  TP-Link EC220-G5 v2: swap WLAN leds assignment

Swap incorrect WLAN leds assignment between WLAN 2.4 and 5 GHz for TP-Link EC220-G5 v2

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16331
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomvebu: improve sysupgrade for FortiGate/FortiWiFi devices
INAGAKI Hiroshi [Mon, 16 Sep 2024 20:43:58 +0000 (05:43 +0900)]
mvebu: improve sysupgrade for FortiGate/FortiWiFi devices

Update sysupgrade script (fortinet.sh) for Fortinet devices in
mvebu/cortexa9 and fix the following issues,

- Some individuals of FortiGate/FortiWiFi 30E/5xE devices has wrong
  kernel/rootfs offsets in "firmware-info" partition and they are not
  updated with the current sysupgrade script for Fortinet devices
  (fortinet.sh).
  As a result, the bootloader tries to load kernel data from the wrong
  address and boot with it after OpenWrt installation.
  The new script handles offsets in addition to length values.

and improve the following points.

- Only 2 bytes are handled with the current sysupgrade script
  (fortinet.sh) for kernel/rootfs length. The new script handles 4 bytes
  instead.

- The image names of image0/image1 are not handled and not updated when
  sysupgrade. The new sysupgrade script handles it and update to
  "<dist> <version> <revision>" if firmware metadata is available.
  (ex.: "OpenWrt SNAPSHOT r27440-25384026")

log of new sysupgrade script (fortinet.sh):

Tue Sep 17 10:29:16 UTC 2024 upgrade: Performing system upgrade...
Image Index: 0
Image Name : "OpenWrt SNAPSHOT r27440-25384026"
             --> "OpenWrt SNAPSHOT r27441-b3a0806a05"

  kernel:
    old: 0x003c4e00@0x00200000
    new: 0x003c4e00@0x00200000

  rootfs:
    old: 0x005c0200@0x00800000
    new: 0x005c0200@0x00800000

Unlocking kernel ...

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16409
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomvebu: update triggers of "SPEED" LEDs on FortiGate/FortiWiFi devices
INAGAKI Hiroshi [Sat, 14 Sep 2024 06:38:46 +0000 (15:38 +0900)]
mvebu: update triggers of "SPEED" LEDs on FortiGate/FortiWiFi devices

The mdio bus number of mv88e6xxx was changed to '0' from '1' and the
"mv88e6xxx-1:<addr>:<speed>" triggers are unavailable now.
Update triggers for "SPEED" LEDs to make working that LEDs again.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16409
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agomvebu: fix "compatible" of regulator for FortiGate/FortiWiFi devices
INAGAKI Hiroshi [Sat, 14 Sep 2024 06:37:02 +0000 (15:37 +0900)]
mvebu: fix "compatible" of regulator for FortiGate/FortiWiFi devices

The driver for fixed voltage regulater uses "regulator-fixed" for
compatible string, not "fixed-regulator".

Fixes: 102dc5a625 ("mvebu: add support for FortiGate 50E")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16409
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: dna_valokuitu-plus-ex400: build sysupgrade.bin
Hauke Mehrtens [Sun, 22 Sep 2024 12:07:26 +0000 (14:07 +0200)]
ramips: dna_valokuitu-plus-ex400: build sysupgrade.bin

Rename the sysupgrade.tar step to sysupgrade.bin. The sysupgrade.tar is
used in other places and we prefer a sysupgrade.bin instead.

Fixes: fea2264d9fdd ("ramips: mt7621: Add DNA Valokuitu Plus EX400")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: tp-link er605-v2: Remove sysupgrade-tar image
Hauke Mehrtens [Sun, 22 Sep 2024 12:03:22 +0000 (14:03 +0200)]
ramips: tp-link er605-v2: Remove sysupgrade-tar image

The sysupgrade-tar image build is not defined for this target, do not
add a build instruction for it. The build system will use the definition
from the dna_valokuitu-plus-ex400 board and the build will fail.

This fixes the build of the ramips target.

Fixes: 665c2154ef12 ("ramips: add basic support for tp-link er605-v2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoinclude: remove kernel 6.1 version file
Mieczyslaw Nalewaj [Sun, 22 Sep 2024 06:29:56 +0000 (08:29 +0200)]
include: remove kernel 6.1 version file

Remove unused kernel 6.1 version file.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16450
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agohostapd: fix OWE ssid update on configuration changes
Felix Fietkau [Wed, 18 Sep 2024 16:26:45 +0000 (18:26 +0200)]
hostapd: fix OWE ssid update on configuration changes

Refresh OWE transition IEs on updating BSS interfaces

Signed-off-by: Felix Fietkau <nbd@nbd.name>