openwrt/staging/wigyori.git
3 days agogeneric/6.6: add missing symbols ks-202502
Zoltan HERPAI [Sun, 16 Feb 2025 21:24:07 +0000 (22:24 +0100)]
generic/6.6: add missing symbols

Add some missing symbols which were uncovered while expanding
the video sensor support.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support
Zoltan HERPAI [Sat, 26 Aug 2023 23:43:32 +0000 (01:43 +0200)]
sunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support

Put an u-boot.bin into bin/ to make it easier for picking it to
install onto mmcblk1boot0.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: t113: add eMMC image generation support
Zoltan HERPAI [Thu, 31 Aug 2023 21:35:27 +0000 (23:35 +0200)]
sunxi: t113: add eMMC image generation support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: add T113-S3 support
Zoltan HERPAI [Thu, 8 Jun 2023 09:41:03 +0000 (11:41 +0200)]
sunxi: add T113-S3 support

The Allwinner T113-s3 (sun8i) SoC features a dual-core Cortex-A7 ARM CPU and
128MB of DDR3 memory in the same physical package. It supports industrial
temperature ranges. Most of the IP blocks are shared with the D1/D1s core.
There are multiple variants of the SoC, which may vary in the included memory
size, with some of them including a C906 RISC-V co-processor.

Boards supported:
 - MangoPi MQDual T113
   - wireless-only (RTL8189FTV)

 - MYIR MYD-YT113 eMMC
   - 1Gbit ethernet (Motorcomm PHY)
   - 4GByte eMMC
   - M.2-type slot for 4G/5G cards, plus 2x SIM slot
   - USB 2.0 ports
   - GPIO/I2C/SPI/CAN ports

 - MYIR MYD-YT113 SPI
   - Same as above but with 256Mbyte flash instead of eMMC

 - Rongpin RP-T113
   - 100Mbit ethernet (ICplus IP101GR PHY)
   - miniPCIe slot for 4G cards, plus 1x SIM slot
   - 3x USB 2.0 ports
   - RTL8723BU wireless
   - HYM8563 RTC
   - GPIO/I2C/SPI/CAN ports

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agouboot-sunxi: bump to 2025.01
Zoltan HERPAI [Sun, 16 Feb 2025 21:18:13 +0000 (21:18 +0000)]
uboot-sunxi: bump to 2025.01

Runtime-tested on:
 - Linksprite pcDuino v2 (A10)
 - Olimex Olinuxino Micro (A20)
 - Bananapi M2 Berry (V40)
 - Bananapi P2 Zero (H2+)
 - OrangePi Zero2 (H616)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agouboot-sifiveu: bump to 2023.10
Zoltan HERPAI [Sat, 15 Feb 2025 15:48:20 +0000 (16:48 +0100)]
uboot-sifiveu: bump to 2023.10

Upgrade the u-boot to a more recent version, and drop and refresh
patches while at it. Additionally, use the correct architecture
when running mkimage.

Runtime-tested:
 - SiFive Unleashed
 - SiFive Unmatched

Dropped:
0009-riscv-Fix-build-against-binutils.patch

Added:
0006-riscv-sifive-fu740-reduce-DDR-speed-from-1866MT-s-to.patch

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agod1: add bluetooth support to two boards
Zoltan HERPAI [Tue, 11 Feb 2025 22:48:46 +0000 (23:48 +0100)]
d1: add bluetooth support to two boards

The boards have an RTL8723DS BT+wifi, connected via SDIO. These are:
 - Mangopi MQ Pro
 - LicheePi Nano Dock

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agod1: enable CONFIG_SERIAL_DEV_BUS
Zoltan HERPAI [Tue, 11 Feb 2025 22:52:06 +0000 (23:52 +0100)]
d1: enable CONFIG_SERIAL_DEV_BUS

Required for the upcoming SDIO bluetooth support for the target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agomodules: add support for H5 (3-wire) Bluetooth UART protocols
Zoltan HERPAI [Sun, 24 Mar 2024 22:04:14 +0000 (23:04 +0100)]
modules: add support for H5 (3-wire) Bluetooth UART protocols

Most of the Realtek bluetooth devices work with the H5 (3-wire)
UART protocols. Add support for these in the hci_uart module.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoath79: image: use sysupgrade-tar for SR71 / PB42
Zoltan HERPAI [Wed, 25 Oct 2023 10:15:12 +0000 (12:15 +0200)]
ath79: image: use sysupgrade-tar for SR71 / PB42

As the combined-image stanza is now retired, use sysupgrade-tar
for the sysupgrade images.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoath79: add support for Ubiquiti LiteStation SR71
Zoltan HERPAI [Mon, 21 Dec 2020 22:39:51 +0000 (23:39 +0100)]
ath79: add support for Ubiquiti LiteStation SR71

Specifications:

SoC: AR7130
DRAM: 32Mb DDR1
Flash: 16Mb SPI-NOR
LAN: 2x 10/100Mbps via ADM6996 switch on MII
     (1 with PoE)
PCI: 1x mini-PCI
UART: standard UART header
JTAG: yes
LEDs: 8x LEDs

Installation instructions:

The original FIS partitioning does not provide enough
space for the kernel, so the installation must start
with re-partitioning the flash from RedBoot.

The MAC address is stored in the "boardconfig" partition, which is
automatically created.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoath79: add support for Atheros PB42 reference board
Zoltan HERPAI [Sat, 27 Aug 2022 15:08:32 +0000 (17:08 +0200)]
ath79: add support for Atheros PB42 reference board

Specifications:

SoC: AR7130
DRAM: 32Mb DDR1
Flash: 8Mb SPI-NOR
LAN: 4x 10/100Mbps via ADM6996 switch on MII
WAN: 1x 10/100Mbps via RMII
PCI: 2x mini-PCI
UART: standard QCA UART header
JTAG: yes
Button: 1x WPS, 1x reset
LEDs: 8x LEDs

Installation instructions:

The original FIS partitioning does not provide enough
space for the kernel, so the installation must start
with re-partitioning the flash from RedBoot.

The suggested partition table is the following:

RedBoot           0xBF000000  0xBF000000  0x00040000  0x00000000
kernel            0xBF040000  0x80060000  0x001F0000  0x80060000
rootfs            0xBF230000  0x00000000  0x005B0000  0x00000000
FIS directory     0xBF7E0000  0xBF7E0000  0x0000F000  0x00000000
RedBoot config    0xBF7EF000  0xBF7EF000  0x00001000  0x00000000

Which can be created with:
fis init
fis create -r 0x80060000 -e 0x80060000 -b 0xbf040000 -l 0x220000 kernel
fis create -b 0xbf260000 -l 0x580000 rootfs

The kernel and the rootfs must then be loaded from TFTP:

load -r -v -b 0x80060000 openwrt-ath79-generic-atheros_pb42-squashfs-kernel.bin
fis create kernel
load -r -v -b 0x80100000 openwrt-ath79-generic-atheros_pb42-squashfs-rootfs.bin
fis create rootfs

Once OpenWrt is installed, the normal sysupgrade method will work for
upgrades.

The MAC address is stored in the "boardconfig" partition, which is
automatically created.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoshmin: add new SH3-target
Zoltan HERPAI [Mon, 26 Aug 2019 15:04:33 +0000 (17:04 +0200)]
shmin: add new SH3-target

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: include the OV5640 dtsi in the BananaPi P2 Zero board
Zoltan HERPAI [Sun, 29 Oct 2023 17:56:14 +0000 (18:56 +0100)]
sunxi: include the OV5640 dtsi in the BananaPi P2 Zero board

root@OpenWrt:/# v4l2-ctl -D
Driver Info:
        Driver name      : sun6i-csi
        Card type        : sun6i-csi
        Bus info         : platform:1cb0000.camera
        Driver version   : 6.1.55
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : sun6i-csi
        Model            : Allwinner A31 CSI Device
        Serial           :
        Bus info         : platform:1cb0000.camera
        Media version    : 6.1.55
        Hardware revision: 0x00000000 (0)
        Driver version   : 6.1.55
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : sun6i-csi
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink, Must Connect
          Link 0x02000007: from remote pad 0x1000006 of entity 'ov5640 2-003c' (Camera Sensor): Data, Enabled, Immutable

-------------

root@OpenWrt:/# media-ctl /dev/video0 --print-topology
Media controller API version 6.1.55

Media device information
------------------------
driver          sun6i-csi
model           Allwinner A31 CSI Device
serial
bus info        platform:1cb0000.camera
hw revision     0x0
driver version  6.1.55

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "ov5640 2-003c":0 [ENABLED,IMMUTABLE]

- entity 5: ov5640 2-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
                 crop.bounds:(0,0)/2624x1964
                 crop:(0,4)/2624x1944]
                -> "sun6i-csi":0 [ENABLED,IMMUTABLE]

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: add OV5640 dtsi camera module for H2/H3 SoCs
Zoltan HERPAI [Sun, 29 Oct 2023 17:55:22 +0000 (18:55 +0100)]
sunxi: add OV5640 dtsi camera module for H2/H3 SoCs

Create a dtsi with an OV5640 camera definition that can be used
as an include in H2/H3 boards.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agovideo: extend with CSI plaform and sensor modules
Zoltan HERPAI [Tue, 11 Feb 2025 23:06:14 +0000 (00:06 +0100)]
video: extend with CSI plaform and sensor modules

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosunxi: add missing symbol as prep for camera/CSI support
Zoltan HERPAI [Sat, 28 Oct 2023 16:52:30 +0000 (18:52 +0200)]
sunxi: add missing symbol as prep for camera/CSI support

Disable VIDEO_SUN8I_A83T_MIPI_CSI2.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agosh775x: add new target to support SH7751R-based (SH4) boards
Zoltan HERPAI [Mon, 26 Aug 2019 14:37:31 +0000 (16:37 +0200)]
sh775x: add new target to support SH7751R-based (SH4) boards

If SH4 hardware is not available for testing, the generated kernel and
rootfs can happily start up in qemu:

qemu-system-sh4 -M r2d -nographic -no-reboot -kernel openwrt-sh775x-zImage \
-append "console=ttySC1 noiotrap root=/dev/sda" -monitor null -serial null \
-serial stdio -drive file=openwrt-sh775x-rootfs-ext4.img,format=raw

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoopenssl: add linux-sh4 into the supported targets
Zoltan HERPAI [Thu, 13 Feb 2025 10:44:07 +0000 (11:44 +0100)]
openssl: add linux-sh4 into the supported targets

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agogcc: add multilib m4/m4-nofpu config for sh4
Zoltan HERPAI [Sun, 30 Jan 2022 12:47:12 +0000 (13:47 +0100)]
gcc: add multilib m4/m4-nofpu config for sh4

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agomusl: sh4: add missing bits/reg.h
Zoltan HERPAI [Tue, 24 Oct 2023 20:49:58 +0000 (22:49 +0200)]
musl: sh4: add missing bits/reg.h

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agogeneric: add missing symbols for SH4
Zoltan HERPAI [Tue, 11 Feb 2025 23:02:13 +0000 (00:02 +0100)]
generic: add missing symbols for SH4

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoutil-linux: test_enosys: add support for SH
Zoltan HERPAI [Wed, 9 Aug 2023 11:06:17 +0000 (13:06 +0200)]
util-linux: test_enosys: add support for SH

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agophytool: add new package
Zoltan HERPAI [Sat, 2 Sep 2023 15:34:11 +0000 (17:34 +0200)]
phytool: add new package

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agox86: 64: add additional SAS / HBA card support
Zoltan HERPAI [Fri, 31 Jan 2025 14:03:16 +0000 (15:03 +0100)]
x86: 64: add additional SAS / HBA card support

Certain users would like to use OpenWrt on their brand servers, where
the rootdisk/array usually resides on disks behind a RAID card.

Support is added for:

 - hpsa (HP Smartarray)
 - ips (IBM ServeRAID)
 - megaraid (SAS / some legacy cards)
 - mpi3mr (SAS24G cards)
 - mpt3sas (SAS cards)

Kernel sizes compared:

Current:
6099968 Jan 30 18:13 openwrt-x86-64-generic-kernel.bin

New:
6358016 Jan 31 15:19 openwrt-x86-64-generic-kernel.bin

The 260kByte increase on an x86_64 box - which usually have 512Mb RAM or much
more - is close to negligible, while it adds support for a significant portion
of these servers / HBAs. This change should be limited to the 64-bit
subtarget only. No commandline tool will be added this time, as:
a) these can be configured via their BIOS at boot-time,
b) licensing for those needs to be thoroughly reviewed.

Link: https://github.com/openwrt/openwrt/issues/17772
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agortl8189fs: add support for RTL8189FTV SDIO modules
Zoltan HERPAI [Tue, 11 Feb 2025 09:10:39 +0000 (10:10 +0100)]
rtl8189fs: add support for RTL8189FTV SDIO modules

Recent boards using this wireless chip:
 - Widora Mangopi MQ (T113s)
 - Orangepi Zero Plus (H5)
 - Xassette Asterisk (D1)

The driver is still crap, as it:
 - compiles
 - loads
 - can do "iw scan"
 - but freezes the host when starting up either as sta or ap

Also see: https://lists.infradead.org/pipermail/lede-dev/2018-March/011517.html

No reason to add this to trunk or to any devices.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoxr819: add driver for XR819 wireless devices
Zoltan HERPAI [Thu, 6 Feb 2025 23:18:22 +0000 (00:18 +0100)]
xr819: add driver for XR819 wireless devices

SDIO-based wireless devices for which the driver was never upstreamed.
It is used on various SBCs like the OrangePi Zero Plus (ARM).

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 days agoxr819-firmware: add new package
Zoltan HERPAI [Tue, 11 Feb 2025 22:28:17 +0000 (23:28 +0100)]
xr819-firmware: add new package

Adds firmware files for the SDIO-based XR819.

Version: XR_C01.08.52.58 Jul 19 2018 18:53:57

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 days agobuild: fix building llvm tarball main
Felix Fietkau [Mon, 10 Feb 2025 21:09:26 +0000 (22:09 +0100)]
build: fix building llvm tarball

Add missing select NEED_BPF_TOOLCHAIN in order to ensure that the toolchain
actually gets built.

Fixes: https://github.com/openwrt/openwrt/issues/17926
Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 days agoumdns: update to Git HEAD (2025-02-10)
Felix Fietkau [Mon, 10 Feb 2025 20:40:59 +0000 (21:40 +0100)]
umdns: update to Git HEAD (2025-02-10)

c0a2aa12c397 ubus: allow query without specifying interface
c5ca22a71b2e cache: improve service discovery reliability

Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 days agoucode: update to Git HEAD (2025-02-10)
Felix Fietkau [Mon, 10 Feb 2025 16:02:20 +0000 (17:02 +0100)]
ucode: update to Git HEAD (2025-02-10)

a362263595e6 vm: fix inverted condition in uc_vm_signal_handlers_setup()
1b8660d33fb7 tests: adjust testcases after previous commit
4efad5388184 main: fix crash on printing -p output
0b80ceb29311 vm: close signal pipe in uc_vm_signal_handlers_reset()
175686c97d82 uci: eliminate usage of global variables
0f69da9c3777 struct: fix memory leak in buffer.pull()
47f3a6b69908 debian/control: Build-Depend on cmake
01efa7b92100 debian/control: Fix Standards-Version, add Bugs
f50149d67fef debian/source/format: change to native
bd001ae4f830 debian/control: libucode Recommends ucode-modules
87776a0bc2b2 docs: Mention `libmd` in macOS docs
826a5c9de7d3 docs: Fix compilation command for macOS
1fa771fc91c0 debian/copyright: fix missing dot to separate paragraphs
60c0e5eae992 debian/control: pkg-config now called pkgconf
244570db4f8e debian/changelog: switch versioning to native package scheme
fa2326fc00a0 .gitignore: ignore files generated by debuild
faec62367524 debian: ignore lintian warning no-manual-page
af881af4b0dc main: add global SCRIPT_NAME variable
5cbd32514187 socket: fix AF_PACKET recvmsg() and sockaddr formatting
6f71a35c4cfa rtnl: properly handle runtime exceptions in listener callback
6dd08716205f ci: bump actions/upload-artifact to v4
001ced17982f socket: properly support SO_ATTACH_FILTER sockopt
f0e865fe3ddd ubus: add named parameter support in functions with many params
18a2ffaf51fa fs: ioctl: export constants for direction values
0ba75bea925d fs: ioctl: improve ioctl read to avoid allocating twice
9da8b8aa4ad0 ubus: add defer.await() method
17dbf0bef4b6 ubus: add request get_fd/set_fd methods
4acb960c90f7 ubus: add support for sending file descriptors via ubus.call/defer
22b9523565a5 ubus: add support for receiving file descriptors in call and defer
c0d1654a450b ubus: add support for channels
b32321beb112 vm: fix crash due to stale frame pointer

Fixes: https://github.com/jow-/ucode/issues/254
Fixes: https://github.com/jow-/ucode/issues/255
Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 days agouboot-mediatek: port patches for FORESEE NAND support
Erik Servili [Sat, 25 Jan 2025 16:16:17 +0000 (17:16 +0100)]
uboot-mediatek: port patches for FORESEE NAND support

Backport FORESEE NAND chip support from upstream Linux. The newly
introduced FORESEE F35SQA001G was found on the Xiaomi AX3000T.

Signed-off-by: Erik Servili <serverror@serverror.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: move default env files to a dedicated directory
Shiji Yang [Sun, 26 Jan 2025 03:11:53 +0000 (11:11 +0800)]
uboot-mediatek: move default env files to a dedicated directory

Putting all files in the root folder is too messy.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: enable auto switch chip detect for Xiaomi AX3000T
Shiji Yang [Sat, 25 Jan 2025 11:16:48 +0000 (19:16 +0800)]
uboot-mediatek: enable auto switch chip detect for Xiaomi AX3000T

The Xiaomi AX3000T has two hardware revisions. One uses MT7531
switch, and the other uses AN8855 switch. Set "mediatek,switch"
property to "auto" to be compatible with different switches.

Tested-by: Mikhail Zhilkin <csharper2005@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: backport more mtk platform pending fixes
Shiji Yang [Fri, 24 Jan 2025 04:52:13 +0000 (12:52 +0800)]
uboot-mediatek: backport more mtk platform pending fixes

* Cumulative fixes and updates for MediaTek platform. [1]
* Update mt7981 pinctrl driver based on upstream kernel. [2]

[1] https://lore.kernel.org/u-boot/cover.1737104723.git.weijie.gao@mediatek.com/
[2] https://lore.kernel.org/u-boot/20250124033902.187796-1-weijie.gao@mediatek.com/

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: sync mtk-openwrt open source u-boot patches
Shiji Yang [Sat, 11 Jan 2025 13:09:20 +0000 (21:09 +0800)]
uboot-mediatek: sync mtk-openwrt open source u-boot patches

Synchronize the latest MTK u-boot patches[1]. Some patches have
been amended since last synchronization.

Changes:
* Minor NMBM layer fixes and improvements.
* A new bootmenu shortkey implementation.
* New SPI flash support for en25qx128.

[1] https://github.com/mtk-openwrt/u-boot/tree/mtksoc-20230719

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: backport mtk_eth fixes from u-boot next
Shiji Yang [Thu, 9 Jan 2025 10:10:28 +0000 (18:10 +0800)]
uboot-mediatek: backport mtk_eth fixes from u-boot next

This patch series will provide better support for Mediatek
ethernet and add support for Airoha AN8855.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agouboot-mediatek: update to v2025.01
Shiji Yang [Wed, 8 Jan 2025 14:56:44 +0000 (22:56 +0800)]
uboot-mediatek: update to v2025.01

Remove upstreamed patches:
010-menu-fix-the-logic-checking-whether-ESC-key-is-press.patch [1]
011-menu-add-support-to-check-if-menu-needs-to-be-reprin.patch [2]
012-bootmenu-add-reprint-check.patch [3]

Remove outdated patches:
455-arm-provide-noncached_set_region-prototype-to-fix-build.patch

Some patches have been manually rebased to match the upstream
changes. This patch also fixes the dtc warning for reserved-memory
dts node. If #address-cells and #size-cells are not same as the
root node definitions, the dtc will complain about it.

All defconfigs are refreshed by `make "$board"_defconfig` and
`make savedefconfig`.

[1] https://github.com/u-boot/u-boot/commit/ddac69885efaffc68a71c1a159dc2b3ff4b9fda3
[2] https://github.com/u-boot/u-boot/commit/ccdd7948e22f21d2add8f51c4918a2c576dc5e91
[3] https://github.com/u-boot/u-boot/commit/599652cff13ad31d23b1b8bf8905533e447435d5

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
10 days agorealtek: HPE 1920-48G-PoE: allow fan speed control
Evan Jobling [Thu, 23 Jan 2025 00:13:35 +0000 (00:13 +0000)]
realtek: HPE 1920-48G-PoE: allow fan speed control

The JG928A has an RTL8231 on the aux mdio bus. Add it to dts to expose
the GPIO pins used to control and monitor the fan speed. To enable speed
control, add the appropriate kernel driver module to DEVICE_PACKAGES.

Of note, this does not control all fans for the unit. The power supply
fans are not controlled.

Signed-off-by: Evan Jobling <evan@jobling.au>
Link: https://github.com/openwrt/openwrt/pull/17699
Signed-off-by: Sander Vanheule <sander@svanheule.net>
10 days agoCI: labeler: Add qualcommbe target
Hauke Mehrtens [Sun, 9 Feb 2025 12:59:57 +0000 (13:59 +0100)]
CI: labeler: Add qualcommbe target

Add a label for changes in the qualcommbe target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/17922
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoCI: labeler: extend qualcommax target
Hauke Mehrtens [Sun, 9 Feb 2025 12:59:03 +0000 (13:59 +0100)]
CI: labeler: extend qualcommax target

Add two qualcommax specific packages to the qualcommax labeler.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/17922
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agouboot-envtools: ipq60xx: code simplification
Robert Marko [Fri, 7 Feb 2025 20:54:25 +0000 (21:54 +0100)]
uboot-envtools: ipq60xx: code simplification

Do the same code simplification as was done for ipq807x to avoid code
duplication.

Link: https://github.com/openwrt/openwrt/pull/17907
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agomediatek: filogic: increase spi flash memory speed on ZyXEL EX5601
Aleksander Jan Bajkowski [Sun, 26 Jan 2025 23:36:25 +0000 (00:36 +0100)]
mediatek: filogic: increase spi flash memory speed on ZyXEL EX5601

The factory firmware uses a 20 MHz frequency, so it should be safe.

Before:
10485760 bytes (10 MB, 10 MiB) copied, 2.53096 s, 4.1 MB/s

After:
10485760 bytes (10 MB, 10 MiB) copied, 1.51901 s, 6.9 MB/s

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/17749
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 days agomediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan...
Pietro Ameruoso [Wed, 5 Feb 2025 10:40:48 +0000 (11:40 +0100)]
mediatek: filogic: fix mt7986a-zyxel-ex5601-t0-stock.dts model name and eth1 wan definition

Fix the model name to reflect the stock partitioning and the wan eth1 detection in the 02_network script.

Fixes: https://github.com/openwrt/openwrt/issues/14432
Fixes: b5df398a36f1 ("mediatek: add Zyxel EX5601-T0 with uboot custom partition")
Signed-off-by: Pietro Ameruoso <p.ameruoso@live.it>
Link: https://github.com/openwrt/openwrt/pull/17859
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 days agouboot-rockchip: bump to 2025.01
Tianling Shen [Fri, 10 Jan 2025 07:34:21 +0000 (15:34 +0800)]
uboot-rockchip: bump to 2025.01

Removed upstreamed patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/17558
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 days agoqualcommax: drop the fake IPQ5018 SNAND compatible
Robert Marko [Sat, 8 Feb 2025 13:06:30 +0000 (14:06 +0100)]
qualcommax: drop the fake IPQ5018 SNAND compatible

Devices that rely on faking the NAND controler compatible for U-Boot
to patch the nodes should add it in their DTS directly, this does not
belong in the SoC DTSI.

Link: https://github.com/openwrt/openwrt/pull/17908
Signed-off-by: Robert Marko <robimarko@gmail.com>
10 days agoqualcommax: replace SPI NAND with latest series
Robert Marko [Sat, 8 Feb 2025 10:49:12 +0000 (11:49 +0100)]
qualcommax: replace SPI NAND with latest series

Replace the existing SPI NAND controller patches with the latest v14 set
that is pending upstream, and include Ansuels patch that fixes it.

Bindings patch is removed as there is no point carrying it in OpenWrt.

Link: https://github.com/openwrt/openwrt/pull/17908
Signed-off-by: Robert Marko <robimarko@gmail.com>
11 days agoumdns: add firewall rule for configured interfaces
Felix Fietkau [Sat, 8 Feb 2025 21:27:27 +0000 (22:27 +0100)]
umdns: add firewall rule for configured interfaces

Makes it easier to enable MDNS on wan without having to edit the firewall
configuration for it

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 days agogeneric: fix Qcom SNAND driver and move to backports directory
Christian Marangi [Fri, 7 Feb 2025 20:12:07 +0000 (21:12 +0100)]
generic: fix Qcom SNAND driver and move to backports directory

Add patch to fix Qcom SNAND driver and move the SNAND patches to
backports directory as they are shared between qualcommax and qualcommbe
target.

Fixes: #17897
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17900
Signed-off-by: Robert Marko <robimarko@gmail.com>
12 days agobuild: conditionally build llvm bpf toolchain by default
Felix Fietkau [Fri, 7 Feb 2025 10:11:42 +0000 (11:11 +0100)]
build: conditionally build llvm bpf toolchain by default

Unless another toolchain is present (or selected), build the bpf toolchain
whenever a package is selected that needs it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 days agoqualcommax: ipq50xx: refresh kernel config
Robert Marko [Fri, 7 Feb 2025 09:12:25 +0000 (10:12 +0100)]
qualcommax: ipq50xx: refresh kernel config

Refresh the ipq50xx kernel config as it looks like it was created by hand
instead of kernel_menuconfig so we have stuff like DWC3 which is packaged
as a kmod in a generic way, QMI helpers are part of backports etc.

Link: https://github.com/openwrt/openwrt/pull/17890
Signed-off-by: Robert Marko <robimarko@gmail.com>
12 days agomediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)
Mikhail Zhilkin [Tue, 4 Feb 2025 16:08:53 +0000 (16:08 +0000)]
mediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)

This commit fixes nmbm configuration mismatch error on Xiaomi AX3000t
with Winbond W25N01KVZEIR spi-nand:
'''
[    0.786783] NMBM configuration mismatch
'''

Root cause:
1. U-Boot W25N01KV spi-nand driver ia compiled with 64B OOB size for the
   chip and store this size in the nmbm signature;
2. Linux W25N01KV driver use 96B OOB.

The change doesn't affect AX3000t variants with other spi-nand chips
(ESMT, Foresee) because their Linux drivers use 64B OOB.

Fixes: openwrt#16972
Tested-by: Aleksandr Danilov <sc16me@gmail.com>
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17549
Signed-off-by: Robert Marko <robimarko@gmail.com>
12 days agokernel: nmbm: add mediatek,bmt-mtd-overridden-oobsize property
Mikhail Zhilkin [Tue, 4 Feb 2025 15:55:08 +0000 (15:55 +0000)]
kernel: nmbm: add mediatek,bmt-mtd-overridden-oobsize property

This commit adds new "mediatek,bmt-mtd-overridden-oobsize" property. The
property helps avoid "NMBM configuration mismatch" error if mtd "OOB size"
is not equal to the "spare size" which is stored in the nmbm signature.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17549
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqualcommax: disable IPQ5018 specific symbols
Robert Marko [Thu, 6 Feb 2025 19:29:03 +0000 (20:29 +0100)]
qualcommax: disable IPQ5018 specific symbols

Newly introduced IPQ5018 specific symbols will stop compilation of
ipq807x and ipq60xx subtargets, so make sure to disable them in the
generic config.

Link: https://github.com/openwrt/openwrt/pull/17884
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agolibiwinfo: update to Git HEAD (2025-02-06)
Robert Marko [Thu, 6 Feb 2025 11:39:26 +0000 (12:39 +0100)]
libiwinfo: update to Git HEAD (2025-02-06)

9ff15f7ee3a0 devices: add device id for MediaTek MT7992E
94b3a3c1a6c4 devices: add device id for Qualcomm Atheros IPQ5018
9cec6b4dd2df devices: add device id for Qualcomm Atheros QCN6122

Link: https://github.com/openwrt/openwrt/pull/17878
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoipq-wifi: update to Git HEAD (2025-02-06)
Robert Marko [Thu, 6 Feb 2025 11:37:48 +0000 (12:37 +0100)]
ipq-wifi: update to Git HEAD (2025-02-06)

12948ce23744 Revert "ipq6018: add BDF for Edgecore EAP101"
6b3522faae1a ipq6018: add BDF for Edgecore EAP101
0411c6b1a00a ipq5018: add BDF for Linksys MX2000
feb4f2dfaa1b qcn6122: add BDF for Linksys MX2000
29819c35c8a5 ipq5018: add BDF for Linksys MX5500
38b0e9ee0f3c qcn9074: add BDF for Linksys MX5500

Link: https://github.com/openwrt/openwrt/pull/17877
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agotools: ccache: disable build testing
Chukun Pan [Tue, 21 Jan 2025 15:10:28 +0000 (23:10 +0800)]
tools: ccache: disable build testing

The ccache build relies on doctest, which
is useless and can be disabled.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/17700
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agotools: add xxhash package for ccache
Chukun Pan [Mon, 20 Jan 2025 15:10:36 +0000 (23:10 +0800)]
tools: add xxhash package for ccache

The ccache build requires xxhash, which is download from
the Internet. So add host-build package for xxhash.

Fixes: #16851
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
[ use git source proto ]
Link: https://github.com/openwrt/openwrt/pull/17700
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 days agomac80211: ath11k: poll reo status ring for IPQ5018
George Moussalem [Mon, 16 Dec 2024 13:44:01 +0000 (17:44 +0400)]
mac80211: ath11k: poll reo status ring for IPQ5018

This downstream patch fixes a bug which could flood the logs with the
following message and would eventually lead to a crash.

ath11k c000000.wifi: failed to send HAL_REO_CMD_UPDATE_RX_QUEUE cmd, tid 0 (-105)

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqualcommax: ipq50xx: add support for Linksys MX2000 and MX5500
George Moussalem [Mon, 7 Oct 2024 12:09:40 +0000 (16:09 +0400)]
qualcommax: ipq50xx: add support for Linksys MX2000 and MX5500

Add support for Linksys MX2000 (Atlas 6) and MX5500 (Atlas 6 Pro).
These devices are completely identical except for the secondary wifi
chip used for 5Ghz: QCN6102 is used on MX2000 while QCN9024 is used
on MX5500

Speficiations:
* SoC: Qualcomm IPQ5018 (64-bit dual-core ARM Cortex-A53 @ 1.0Ghz)
* Memory: Winbond W634GU6NB-11 (512 MiB DDR3-933)
* Serial Port: 3v3 TTL 115200n8
* Wi-Fi: IPQ5018 (2x2 2.4 Ghz 802.11b/g/n/ax)
* Wi-Fi: MX2000: QCN6102 (2x2:2 5 Ghz 802.11an/ac/ax)
         MX5500: QCN9024 (4x4:4 5 Ghz 802.11an/ac/ax)
* Ethernet: IPQ5018 integrated virtual switch connected to an external
            QCA8337 switch (4 Ports 10/100/1000 GBASE-T)
* Flash: Macronix MX35UF2GE4AD (256 MiB)
* LEDs: 1x multi-color PWM LED
* Buttons: 1x WPS (GPIO 27 Active Low)
           1x Reset (GPIO 28 Acive Low)

Flash instructions (in case of MX2000, else replace with MX5500 images):
1. On OEM firmware, login to the device (typically at http://192.168.1.1) and click 'CA'
in the bottom right corner -> Connectivity -> Manual Upgrade. Alternatively, browse to
http://<router IP>/fwupdate.html.
Upgrade firmware using openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin image.
Optionally install on second partition, after first boot check actual partition:
fw_printenv -n boot_part
and install firmware on second partition using command in case of 2:
mtd -r -e kernel -n write openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin kernel
and in case of 1:
mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin alt_kernel
2. Installation using serial connection from OEM firmware (default login: root, password: admin):
fw_printenv -n boot_part
In case of 2:
flash_erase /dev/mtd12 0 0
nandwrite -p /dev/mtd12 openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin
or in case of 1:
flash_erase /dev/mtd14 0 0
nandwrite -p /dev/mtd14 openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin
After first boot install firmware on second partition:
mtd -r -e kernel -n write openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin kernel
or:
mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq50xx-linksys_mx2000-squashfs-factory.bin alt_kernel
3. Back to the OEM firmware.
Download firmware from OEM website:
MX2000: https://support.linksys.com/kb/article/585-en/
MX5500: https://support.linksys.com/kb/article/587-en/
From serial or SSH:
fw_printenv boot_part
in case of 1:
mtd -r -e alt_kernel -n write FW_MX2000_1.1.7.210469_prod.img alt_kernel
else in case of 2:
mtd -r -e kernel -n write FW_MX2000_1.1.7.210469_prod.img kernel

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agomac80211: ath11k: add support for QCN6122 wifi
George Moussalem [Mon, 7 Oct 2024 11:53:48 +0000 (15:53 +0400)]
mac80211: ath11k: add support for QCN6122 wifi

Add QCN6122 platform support.

QCN6122 is a PCIe based solution that is attached to and enumerated
by the WPSS (Wireless Processor SubSystem) Q6 processor.

Though it is a PCIe device, since it is not attached to APSS processor
(Application Processor SubSystem), APSS will be unaware of such a decice
and hence it is registered to the APSS processor as a platform device(AHB).
Because of this hybrid nature, it is called as a hybrid bus device.

As such, QCN6122 is a hybrid bus type device and follows the same codepath
as for WCN6750.

This is a reversed engineered and heavily simplified version of below
downstream patch:
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/ \
blob/NHSS.QSDK.12.4.5.r2/mac80211/patches/232-ath11k-qcn6122-support.patch

Co-developed-by: George Moussalem <george.moussalem@outlook.com>
Signed-off-by: Sowmiya Sree Elavalagan <ssreeela@codeaurora.org>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoath11k-firmware: add wifi firmware for QCN6122
George Moussalem [Mon, 7 Oct 2024 11:39:04 +0000 (15:39 +0400)]
ath11k-firmware: add wifi firmware for QCN6122

Add ability to download and package ath11k firmware for QCN6122.
QCN6122 is specific/exclusive to the IPQ5018 platform and firmware
files are publishes in a subdirectory of the IPQ5018 firmware files.

While at it, add support for packaging BDFs for QCN6122 wifi and
update iwinfo to recognize QCN6122 wifi.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agomac80211: ath11k: Support setting bdf-addr and caldb-addr via DT
George Moussalem [Mon, 7 Oct 2024 11:31:17 +0000 (15:31 +0400)]
mac80211: ath11k: Support setting bdf-addr and caldb-addr via DT

IPQ5018 uses different BDF and caldb addresses for vairous boards,
so let's support reading these addresses from the device tree.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agomac80211: ath11k: fix remapped ce access on 64-bit OS
George Moussalem [Mon, 7 Oct 2024 11:54:27 +0000 (15:54 +0400)]
mac80211: ath11k: fix remapped ce access on 64-bit OS

https://lore.kernel.org/linux-wireless/TYZPR01MB55563B3A689D54D18179E5B4C9192@TYZPR01MB5556.apcprd01.prod.exchangelabs.com/

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoath11k-firmware: add wifi firmware for IPQ5018
George Moussalem [Mon, 7 Oct 2024 11:26:32 +0000 (15:26 +0400)]
ath11k-firmware: add wifi firmware for IPQ5018

Add ability to download and package ath11k firmware for IPQ5018.

As part of commit 172ccf7, the source is pointed to the new QCA repo.
Until QCA publishes updated firmware for IPQ5018 and QCN6122, we need
to download the firmware from the old QUIC repo. As such, add a new
download routine for IPQ5018/QCN6122 to fetch the firmware files from
the old repo.

While at it, add support for packaging BDFs for IPQ5018-based boards
and update iwinfo to recognize IPQ5018 wifi.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqualcommax: add ipq50xx target
George Moussalem [Mon, 7 Oct 2024 06:28:09 +0000 (10:28 +0400)]
qualcommax: add ipq50xx target

Introduce support for the Qualcomm IPQ50xx SoC.
This series adds support for the following components:
- minimal boot support: GCC/pinctrl/watchdog/CPUFreq/SDI (upstreamed)
- USB2 (upstreamed)
- Thermal/Tsens
- PCIe gen2 1&2-lane PHY and controller
- PWM and PWM LED
- QPIC SPI NAND controller
- CMN PLL Block (provider of fixed rate clocks to GCC/ethernet/more.)
- Ethernet: IPQ5018 Internal GE PHY (1 gbps)
- Remoteproc MPD driver for IPQ5018 (2.4G) & QCN6122 (5/6G) Wifi

Co-developed-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqca-nss-dp: add support for IPQ50xx
George Moussalem [Mon, 7 Oct 2024 06:42:07 +0000 (10:42 +0400)]
qca-nss-dp: add support for IPQ50xx

Add support for the Qualcomm IPQ50xx in the QCA NSS dataplane driver.
The QCA implementation uses depracated DMA api calls and a downstream SCM
call, so convert to proper Linux DMA and SCM api calls.
In addition, add fixed-link support to support SGMII which is used to
connect the internal IPQ50xx switch to an external switch (ex. QCA8337)

Co-developed-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agoqca-ssdk: add support for ipq50xx
George Moussalem [Mon, 7 Oct 2024 06:35:41 +0000 (10:35 +0400)]
qca-ssdk: add support for ipq50xx

The codename for IPQ50xx is Maple (abbreviated as 'MP'), so let's pass
the codename to allow the QCA-SSDK to build for the IPQ50xx SoC.

In addition, disable compiling the MP_PHY driver in favor of a native
driver being upstreamed.

Co-developed-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
13 days agokernel: modules: netdevices: add realtek DSA modules
Luiz Angelo Daros de Luca [Tue, 24 Oct 2023 18:56:03 +0000 (15:56 -0300)]
kernel: modules: netdevices: add realtek DSA modules

Uses upstream DSA switch modules (rtl8365mb, rtl8366), similar to
RTL8367C and rtl8366rb swconfig drivers.

The package dependencies exclude targets built without kernel CONFIG_OF.

It also fixes the rtl8366rb LED support.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17182
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agoimx-bootlets: bump to 10.12.01
Zoltan HERPAI [Wed, 5 Feb 2025 15:41:08 +0000 (16:41 +0100)]
imx-bootlets: bump to 10.12.01

 - refresh patches
 - add patch to fix compilation with GCC13
   (referring to ARM-8933/1).

Link: https://lore.kernel.org/lkml/20220630133231.272605764@linuxfoundation.org/
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2 weeks agomxs: adapt default package list for Duckbill devices
Michael Heimpold [Thu, 28 Nov 2024 07:00:36 +0000 (08:00 +0100)]
mxs: adapt default package list for Duckbill devices

Replace outdated package names, order the remaining.

firewall4 is added again, since it is enabled by default.
The device is not a router by default, so this package
makes no sense in the default config. User can enable it
by theirself, or it will be automatically pulled via
dependency, e.g. luci-app-firewall.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2 weeks agomxs: image: slightly adjust whitespace (no functional change)
Michael Heimpold [Mon, 14 Oct 2024 06:51:38 +0000 (08:51 +0200)]
mxs: image: slightly adjust whitespace (no functional change)

Seems that the common style is to have whitespace around the operators
and the indent is single tab.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2 weeks agomxs: fix image generation for I2SE Duckbills
Michael Heimpold [Sun, 15 Sep 2024 08:39:40 +0000 (10:39 +0200)]
mxs: fix image generation for I2SE Duckbills

The standard U-Boot boot scripts for Duckbills expect the
Linux kernel and device tree files installed below /boot
within the (ext4) root filesystem.
Also a raw zImage is expected instead of uImage.

Extend the SD card generation accordingly and while at,
install all possible Duckbill DT blobs there.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2 weeks agorealtek: drop old RTL8231 driver
Sander Vanheule [Tue, 28 Jan 2025 07:14:03 +0000 (08:14 +0100)]
realtek: drop old RTL8231 driver

The old RTL8231 driver integrated the MDIO bus access with the GPIO
control ops, making this driver not very portable to newer platforms.
It depended on the SoC ID instead of the compatible to determine the
MDIO access register, further complicating portability.

A new MFD driver is now available, which offers proper pin config as
well as optional LED support, which can work on any (bitbanged) MDIO
bus. Now that all devices have been migrated, we can drop the old code.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 weeks agokernel: r8168: update to v8.055.00
Álvaro Fernández Rojas [Wed, 5 Feb 2025 07:49:20 +0000 (08:49 +0100)]
kernel: r8168: update to v8.055.00

Changelog: https://github.com/openwrt/rtl8168/compare/8.054.00...8.055.00

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agogeneric: fix broken NVMEM ASCII patch for x86 target and mute warning
Christian Marangi [Mon, 3 Feb 2025 20:39:47 +0000 (21:39 +0100)]
generic: fix broken NVMEM ASCII patch for x86 target and mute warning

Fix broken NVMEM ASCII patch for x86 target as it does currently fail
compilation when OF is not compiled.

Also mute a warning for integer from pointer without a cast.

Fixes: 73a6cb983c46 ("generic: add pending support for NVMEM ASCII ENV layout driver")
Link: https://github.com/openwrt/openwrt/pull/17845
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agosiflower: move soruce-only flag to sf19a2890 subtarget
Chuanhong Guo [Wed, 5 Feb 2025 03:10:54 +0000 (11:10 +0800)]
siflower: move soruce-only flag to sf19a2890 subtarget

sf21 contains support for Bananapi BPI-RV2 which is a board available
to the general public. Limit the source-only flag to sf19a2890 instead.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agosiflower: sf19a2890: refresh kconfig
Chuanhong Guo [Fri, 29 Nov 2024 10:03:46 +0000 (18:03 +0800)]
siflower: sf19a2890: refresh kconfig

update kconfig for symbols from the newly added subtarget

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agosiflower: sf21: add support for Bananapi BPI-RV2
Chuanhong Guo [Tue, 14 Jan 2025 06:36:36 +0000 (14:36 +0800)]
siflower: sf21: add support for Bananapi BPI-RV2

Specification:
 - Siflower SF21H8898
 - 512MB DDR3, 128MB SPI-NAND and 16MB SPI-NOR
 - 5x Gigabit ports (SF23P1240 QSGMII PHY and SF23P1211F RGMII PHY)
 - 1x 2.5G port (Airoha EN8811H PHY)
 - M.2 Key B slot with USB2.0, PCIEx1 and a NanoSIM card slot
 - MiniPCIe slot with USB2.0 and PCIEx1
 - 1x USB2.0 port through USB Hub
 - PCF8563-compatible RTC

The SoC can only boot from SPI0. Two SPI flash chipselects are connected
to GPIO5 (SPI0 CS) and GPIO36 through a 2x2 jumper. It boots from
SPI-NOR or SPI-NAND depending on how the jumpers are connected.

The firmware can be flashed using U-boot web recovery from Siflower
vendor U-boot.

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agosiflower: sf21: new subtarget for sf21a6826/sf21h8898
Chuanhong Guo [Tue, 8 Oct 2024 06:18:27 +0000 (14:18 +0800)]
siflower: sf21: new subtarget for sf21a6826/sf21h8898

Siflower SF21A6826/SF21H8898 are a family of RISC-V SoCs with:

 * Quad-core T-Head C908 (1.125G for SF21A6826, 1.25G for SF21H8898)
 * DDR3/DDR4 memory controller
 * 1 QSGMII 4x1G
 * 1 SGMII/2500Base-X 2.5G
 * 1 additional RGMII on SF21H8898
 * Network offloading engine for L2 switching and L3 NAT
 * 2 PCIE Gen2 lanes, operating in either one PCIE Gen2x2 or two
   PCIE Gen2x1 mode
 * 1 USB2.0

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agosiflower: add ngpios property to gpio-siflower
Chuanhong Guo [Tue, 8 Oct 2024 06:16:15 +0000 (14:16 +0800)]
siflower: add ngpios property to gpio-siflower

The same GPIO controller is found on all current Siflower SoCs,
with different number of GPIOs. Add ngpios property instead of
specifying it with dt match data.

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agosiflower: add per-subtarget image makefile
Chuanhong Guo [Sat, 14 Sep 2024 03:28:52 +0000 (11:28 +0800)]
siflower: add per-subtarget image makefile

Move SF19A2890 images into a separated .mk in preparation for
more subtargets.

Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agobuild: lock versions for special APK packages
Paul Spooren [Sat, 1 Feb 2025 23:01:58 +0000 (23:01 +0000)]
build: lock versions for special APK packages

The three packages base-files, libc and kernel are special, the former
can't be upgraded in place since it's content are modified on startup,
the latter two are virtual packages only used as constraints for the
package manager.

Historically base-files was "locked" via a special OPKG function, the
latter two were hidden from the package index and thereby never picked
as possible upgrade.

Time moved forward and we now have APK and tools like OWUT. The latter
compares available packages with installed packages and generates user
readable output, requiring versions for libc and kernel, too. At the
same time, APK uses a different looking mechanism, which is set during
installation instead of part of the package metadata.

In short, this patch adds version constraints to the three packages,
allowing them to be part of the package index.

Fixes: #17774
Fixes: #17775
Fixes: efahl/owut#31
Signed-off-by: Paul Spooren <mail@aparcar.org>
2 weeks agoRevert "ramips: mt7620: fix patching mac address in caldata"
Hauke Mehrtens [Mon, 3 Feb 2025 23:07:25 +0000 (00:07 +0100)]
Revert "ramips: mt7620: fix patching mac address in caldata"

This reverts commit 3295f6f1c254cd7e5e5285a05581bf6abbde8999.

It looks like the eeprom gets broken after this change.
I think this change was not tested on a real device before it was
merged.
The MAC addresses will be broken again after this revert.

Fixes: #17818
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agomediatek: refresh adtran nvmem patch
Chuanhong Guo [Mon, 3 Feb 2025 10:00:25 +0000 (18:00 +0800)]
mediatek: refresh adtran nvmem patch

This patch fails to apply due to the recently introduced ascii
nvmem driver.
Manually refresh it.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2 weeks agoipq806x: make use of ASCII env NVMEM driver for Linksys EAX devices
Christian Marangi [Mon, 3 Feb 2025 00:11:37 +0000 (01:11 +0100)]
ipq806x: make use of ASCII env NVMEM driver for Linksys EAX devices

Make use of ASCII env NVMEM driver for Linksys EAX devices. This also
fix a problem with Linksys EAX devices where the 2 MAC interface had the
same MAC address causing a conflicts with FDB entry. This got much more
present with the DSA conversion making the system not usable.

To fix this, increment + 1 the MAC address for the WAN interface.

Link: https://github.com/openwrt/openwrt/pull/17839
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agogeneric: add pending support for NVMEM ASCII ENV layout driver
Christian Marangi [Mon, 3 Feb 2025 00:08:35 +0000 (01:08 +0100)]
generic: add pending support for NVMEM ASCII ENV layout driver

Add pending patch to support NVMEM ASCII ENV layout driver. This is a
generic driver to handle simple NVMEM partition that store environment
in a simple text format. This is the case for Linksys devinfo partition
that are litterally txt file with format "name=value\n"

Such driver works similar to u-boot,env with a similar format. While at
it also introduce a patch to generalize mac-base handling for also other
layout driver.

Link: https://github.com/openwrt/openwrt/pull/17839
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoipq806x: fix broken WAN on Linksys EAX and Asrock G10
Christian Marangi [Mon, 3 Feb 2025 00:48:39 +0000 (01:48 +0100)]
ipq806x: fix broken WAN on Linksys EAX and Asrock G10

Fix broken WAN on Linksys EAX and Asrock G10 by incrementing the WAN
interface MAC address + 1. This caused conflicting entry in the FDB
table and caused the WAN port to malfunction with the DSA conversion.

Fixes: #17157
Fixes: #15585
Fixes: #16604
Link: https://github.com/openwrt/openwrt/pull/17839
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoramips: fix xtal clock registration issue on RT3883
Shiji Yang [Sun, 2 Feb 2025 08:00:54 +0000 (16:00 +0800)]
ramips: fix xtal clock registration issue on RT3883

The redundant xtal clock source caused clock registration failure.

Link: https://lore.kernel.org/all/20250108093636.265033-1-sergio.paracuellos@gmail.com/
Fixes: https://github.com/openwrt/openwrt/issues/17677
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/17830
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agomediatek: mt7622: fix SATA on BPi-R64
Daniel Golle [Sat, 1 Feb 2025 05:03:50 +0000 (05:03 +0000)]
mediatek: mt7622: fix SATA on BPi-R64

Two commits which made their way into Linux stable broke the SATA
support on the BPi-R64.

Fix this by reverting a node rename which broke DT-overlay application
and import a (still pending) patch re-adding the 'syscon' compatible to
the pciesys clock-controller which also contains phy-mode bits
referenced by the ahci_mtk driver expecting to access them using
syscon_regmap_lookup_by_phandle().

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agomvebu: fix kmod for switch on wrt32x / venom
Kabuli Chana [Fri, 31 Jan 2025 00:10:08 +0000 (17:10 -0700)]
mvebu: fix kmod for switch on wrt32x / venom

commit eaa82118ead missed kmod change for wrt32x

Fixes: eaa82118eadf ("mvebu: Switch to use a module for mv88e6xxx")
Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17793
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 weeks agogeneric: 6.6: backport upstream r8169 patches
Álvaro Fernández Rojas [Fri, 31 Jan 2025 07:57:11 +0000 (08:57 +0100)]
generic: 6.6: backport upstream r8169 patches

b11bff90f2ad r8169: add support for RTL8125BP rev.b
b3593df26ab1 r8169: add support for RTL8125D rev.b
b299ea006928 r8169: adjust version numbering for RTL8126
bb18265c3aba r8169: remove support for chip version 11
2e20bf8cc057 r8169: remove unused flag RTL_FLAG_TASK_RESET_NO_QUEUE_WAKE
e340bff27e63 r8169: copy vendor driver 2.5G/5G EEE advertisement constraints

The EEE advertisement patch has been reworked for linux v6.6 because
phy_set_eee_broken() is only present on linux >= v6.13 and eee_broken_modes
declaration has been converted to a bitmap, so linkmode_set_bit() can't be
used either.
https://github.com/torvalds/linux/commit/e340bff27e63ed61a1e9895bed546107859e48a7
https://github.com/torvalds/linux/commit/ed623fb8e38e2a241da12864778ec9c9cf930c65
https://github.com/torvalds/linux/commit/721aa69e708b7432af83c4bb00a30e2b7c27da28

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agomediatek: filogic: fix 2.5G phy compatible for WR3000H
Juan Pedro Paredes Caballero [Sun, 26 Jan 2025 19:23:09 +0000 (20:23 +0100)]
mediatek: filogic: fix 2.5G phy compatible for WR3000H

Following the initial support of the Cudy WR3000H with PHY C22 for the 2.5G WAN
interface, several improvements fixing issues with RealTek RTL8221B PHYs have
been merged.
Therefore we can now bring the DT in line with other equipment and declare the
2.5G WAN PHY as C45.

Fixes: 9d66b8b ("mediatek: filogic: Add support for cudy wr3000h")
Signed-off-by: Juan Pedro Paredes Caballero <juanpedro.paredes@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17739
[reword commit description]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 weeks agogeneric: net: phy: realtek: work-around hang on SerDes setup
Daniel Golle [Thu, 30 Jan 2025 05:49:43 +0000 (05:49 +0000)]
generic: net: phy: realtek: work-around hang on SerDes setup

On some but not all devices using the RTL8221B 2.5GBit/s PHY the SerDes
setup sequence may hang under some circumstances (eg. <2500M link
partner present during boot).

RTL8221B-VB-CG 2.5Gbps PHY (C45) mdio-bus:01: rtl822xb_config_init failed: -110

Work-around the issue by performing a hardware reset and subsequent
retry of the SerDes setup, which seems to always succeed.

Doing this requires moving ALDPS setup to config_init (which is anyway
the better place for that) as it otherwise doesn't survive the reset.

Also disable listening on MDIO address 0 which may be used by other PHYs
despite being spec'ed as "broadcast address", as bus activity on address
0 may otherwise confuse the RealTek PHY for good reasons.

Tested-by: Luis Mita <luis@luismita.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 weeks agoconfig: add VERSION_FIRMWARE_URL
Paul Spooren [Wed, 29 Jan 2025 19:09:54 +0000 (19:09 +0000)]
config: add VERSION_FIRMWARE_URL

This new value points to where firmware can be downloaded. It's not
about a single release but all available firmware releases.

In the next step, this URL should be exposed via `ubus call system
board` as an entry of the `distribution` field. With that value, the
running firmware can check for newer releases.

We already have VERSION_REPO however that's different and only meant for
package managers to download their fitting package indexes/packages.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Link: https://github.com/openwrt/openwrt/pull/17780
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agoprocd: update to Git HEAD (2025-01-30)
Christian Marangi [Thu, 30 Jan 2025 17:10:10 +0000 (18:10 +0100)]
procd: update to Git HEAD (2025-01-30)

f2d5031c4b68 jail: seccomp-oci: fix uninitialized pointer read in error path
8dad8a26a255 jail: always handle mkdir() return value
dd93c2ac6b12 uxc: kill command expects --signal parameter
1e5c40e07928 jail: fix NULL-pointer dereference when connection to ubus failed
7fcb5a275fcf ubus: expose firmware_url in system call

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2 weeks agomediatek: fix TUF-AX4200 WAN LED
Jan Hoffmann [Thu, 30 Jan 2025 09:40:25 +0000 (10:40 +0100)]
mediatek: fix TUF-AX4200 WAN LED

With the current LED configuration using "mxl,led-config", the WAN LED
stops working after the interface is brought down and up again.

Since the driver also properly supports PHY LEDs now, switch to that
instead. This makes the LED work properly, but requires configuration
from userspace.

Fixes: #17782
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/17785
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 weeks agox86: Add kmod-drm-i915 as default package
Hauke Mehrtens [Wed, 29 Jan 2025 22:37:34 +0000 (23:37 +0100)]
x86: Add kmod-drm-i915 as default package

Add kmod-drm-i915 to the default packages. It was build into the kernel
before and is now build as a kernel module.

Fixes: 77cfe8fd15d3 ("x86: make i915 as a kmod with required firmware")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/17781
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 weeks agounetd: update to Git HEAD (2025-01-29)
Felix Fietkau [Wed, 29 Jan 2025 20:51:45 +0000 (21:51 +0100)]
unetd: update to Git HEAD (2025-01-29)

aff192cda38b ubus: hide local private key in network_get
24e4aafaaa2f ubus: add detailed peer statistics
082b5482b97f pex: improve keepalive handling

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 weeks agokexec-tools: update URL
Felix Baumann [Tue, 28 Jan 2025 04:12:19 +0000 (05:12 +0100)]
kexec-tools: update URL

Update URL variable to reflect switch to Github for development
The old URL returns HTTP 404

Signed-off-by: Felix Baumann <felix.bau@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/17752
Signed-off-by: Robert Marko <robimarko@gmail.com>