openwrt/staging/wigyori.git
9 months agosunxi: rename arm926ej-s to arm9
Zoltan HERPAI [Sun, 17 Mar 2024 18:10:35 +0000 (18:10 +0000)]
sunxi: rename arm926ej-s to arm9

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosunxi: add F1C100 (arm926ej-s) support
Zoltan HERPAI [Sat, 16 Mar 2024 11:40:19 +0000 (11:40 +0000)]
sunxi: add F1C100 (arm926ej-s) support

Instead of creating a separate suniv target, as both the kernel and u-boot
supports enough of this SoC by now, let's dump it into the sunxi target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosunxi: backport h616 thermal sensor support
Chukun Pan [Wed, 6 Mar 2024 15:10:21 +0000 (23:10 +0800)]
sunxi: backport h616 thermal sensor support

Backport H616 thermal sensor support from linux-next.
Tested on the Orange Pi Zero 3 (H618 SoC).

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
9 months agosunxi: add support for Orange Pi Zero 3
Chukun Pan [Sat, 18 Nov 2023 15:10:25 +0000 (23:10 +0800)]
sunxi: add support for Orange Pi Zero 3

Key features:
  Allwinner H618 SoC (Quad core Cortex-A53)
  1/1.5/2/4 GiB LPDDR4 DRAM
  1 USB 2.0 type C port (Power + OTG)
  1 USB 2.0 host port
  1Gbps Ethernet port
  Micro-HDMI port
  MicroSD slot

Installation:
  Write the image to SD Card with dd.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
9 months agogeneric: 6.1: backport AXP PMIC support
Chukun Pan [Thu, 16 Nov 2023 15:10:21 +0000 (23:10 +0800)]
generic: 6.1: backport AXP PMIC support

Backport AXP15060, AXP313a and AXP192 support.
The AXP15060 PMIC is used for starfive boards,
and the AXP313a PMIC is used for sunxi boards.
Remove conflicting patches from starfive target.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
9 months agouboot-sunxi: bump to 2024.01
Chukun Pan [Fri, 5 Jan 2024 15:16:16 +0000 (23:16 +0800)]
uboot-sunxi: bump to 2024.01

This version supports LPDDR4 DRAM of H618 SoC.

Runtime-tested:
  Olimex Olinuxino Micro (A20)
  Orange Pi Zero 3 (H618)
  Pine64 SoPine (A64)

Tested-by: Zoltan HERPAI <wigyori@uid0.hu>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
9 months agosuniv: refresh target
Zoltan HERPAI [Sat, 16 Mar 2024 09:52:33 +0000 (09:52 +0000)]
suniv: refresh target

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosunxi: add 6.6 testing support
Zoltan HERPAI [Fri, 8 Mar 2024 14:29:16 +0000 (15:29 +0100)]
sunxi: add 6.6 testing support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosunxi: update image Makefile to reflect updated DTS structure in 6.6
Zoltan HERPAI [Fri, 8 Mar 2024 14:29:37 +0000 (15:29 +0100)]
sunxi: update image Makefile to reflect updated DTS structure in 6.6

For the ARM arch on 6.6, DTS files are moved into their vendor directories,
mimicking arm64. Reflect this in the image Makefile.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agomxs: add kernel 6.6 as testing
Zoltan HERPAI [Fri, 9 Feb 2024 10:12:54 +0000 (11:12 +0100)]
mxs: add kernel 6.6 as testing

Add new LTS kernel support.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosifiveu: add kernel 6.6 as testing
Zoltan HERPAI [Fri, 9 Feb 2024 10:12:14 +0000 (11:12 +0100)]
sifiveu: add kernel 6.6 as testing

Add new LTS kernel support.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months agosunxi: add support for Lichee Pi Zero Dock (V3s) board
Zoltan HERPAI [Fri, 27 Oct 2023 16:23:57 +0000 (18:23 +0200)]
sunxi: add support for Lichee Pi Zero Dock (V3s) board

CPU:     Allwinner V3s single-core Cortex-A7 @ 1.2GHz
Memory:  64Mb DDR2 integrated into SoC package
Storage: 1x SDcard on board, 1x SDcard on dock
Network: 10/100M ethernet
Other:   4x buttons via LRADC, CSI

Flashing instructions:
  Standard sunxi SD card installation procedure - copy image to SD card,
  insert into SD card slot on the device and boot.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agostarfive: add MilkV Mars support
Zoltan HERPAI [Fri, 15 Mar 2024 13:05:55 +0000 (14:05 +0100)]
starfive: add MilkV Mars support

The Milkv Mars is a development board based on the Starfive JH7110 SoC.
The board features:

- JH7110 SoC
- 1/2/4/8 GiB LPDDR4 DRAM
- AXP15060 PMIC
- 40 pin GPIO header
- 3x USB 3.0 host port
- 1x USB 2.0 host port
- 1x M.2 E-Key
- 1x eMMC slot
- 1x MicroSD slot
- 1x QSPI Flash
- 1x 1Gbps Ethernet port
- 1x HDMI port
- 1x 2-lane DSI and 1x 4-lane DSI
- 1x 2-lane CSI

Installation:
Standard SD-card installation via dd-ing the generated image to
an SD-card of at least 256Mb.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agostarfive: support mmc0/1 boot/rootdevices
Zoltan HERPAI [Fri, 15 Mar 2024 13:03:33 +0000 (14:03 +0100)]
starfive: support mmc0/1 boot/rootdevices

The Visionfive2 board uses mmc1 as the SD-card (with mmc0 being an
eMMC module). Upcoming boards have only mmc device - prepare support for
them as well.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoleon: refresh patches to apply/compile on 5.15
Zoltan HERPAI [Fri, 18 Aug 2023 07:27:03 +0000 (09:27 +0200)]
leon: refresh patches to apply/compile on 5.15

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoleon: drop sparc32 fixups for now
Zoltan HERPAI [Fri, 18 Aug 2023 07:23:25 +0000 (09:23 +0200)]
leon: drop sparc32 fixups for now

With the change to ARCH_ATOMIC in sparc as well, some of these patches don't
apply or compile correctly. Drop them for now, unsure if the CASA extension
is supported by the leon3_generic target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoleon: add SDK patches from buildroot-2022.02-1.2/5.10.175
Zoltan HERPAI [Fri, 18 Aug 2023 07:22:18 +0000 (09:22 +0200)]
leon: add SDK patches from buildroot-2022.02-1.2/5.10.175

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoleon: bring back / add new target for LEON3 SPARC support
Zoltan HERPAI [Fri, 18 Aug 2023 07:15:50 +0000 (09:15 +0200)]
leon: bring back / add new target for LEON3 SPARC support

This target has been removed in 2014, re-add target with renewed
interest. It will support LEON3/4-based SPARC CPUs, as well as running
images via QEMU/leon3.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoincludes: add LEON3 CFLAGS
Zoltan HERPAI [Fri, 18 Aug 2023 07:14:47 +0000 (09:14 +0200)]
includes: add LEON3 CFLAGS

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agotoolchain: gcc: add compile opts for upcoming LEON support
Zoltan HERPAI [Fri, 18 Aug 2023 07:13:49 +0000 (09:13 +0200)]
toolchain: gcc: add compile opts for upcoming LEON support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months agomodules: video: extend with CSI plaform and sensor modules
Zoltan HERPAI [Sat, 28 Oct 2023 18:35:57 +0000 (20:35 +0200)]
modules: video: extend with CSI plaform and sensor modules

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months agosunxi: add support for Merrii A80 (Optimus) devboard
Zoltan HERPAI [Mon, 26 Aug 2019 08:18:39 +0000 (10:18 +0200)]
sunxi: add support for Merrii A80 (Optimus) devboard

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agomodules: block: add mpt3sas support
Zoltan HERPAI [Tue, 24 Oct 2023 16:41:39 +0000 (18:41 +0200)]
modules: block: add mpt3sas support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agomodules: block: libraid/libsas can build on non-x86 targets
Zoltan HERPAI [Tue, 24 Oct 2023 16:41:02 +0000 (18:41 +0200)]
modules: block: libraid/libsas can build on non-x86 targets

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agomodules: block: add libraid module
Zoltan HERPAI [Tue, 24 Oct 2023 16:40:24 +0000 (18:40 +0200)]
modules: block: add libraid module

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosuniv: add new target
Zoltan HERPAI [Wed, 13 Mar 2019 23:24:50 +0000 (00:24 +0100)]
suniv: add new target

This is Allwinner's ARM926EJ-S core, which is one of its early
products, reappearing in recent compact designs. The SoC includes
32/64Mb memory in the same package, and has display and USB interfaces,
allowing for small footprint boards.

The target consists of basic 6.1 support, with u-boot.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoath79: DO NOT MERGE: add a custom WR741N v1/v2 8Mb variant
Zoltan HERPAI [Sat, 12 Aug 2023 21:57:31 +0000 (23:57 +0200)]
ath79: DO NOT MERGE: add a custom WR741N v1/v2 8Mb variant

Device is a WR741N v2.4 (AR7240) with the flash replaced with
an 8Mb chip. ART partition is moved to the end (0x7f0000). Also,
the commit adds the 741-related code back to the generic board.d
files.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoath79: add label to flash in the TP-Link dtsi
Zoltan HERPAI [Tue, 8 Jun 2021 11:37:34 +0000 (13:37 +0200)]
ath79: add label to flash in the TP-Link dtsi

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months agocv18x0: add new target for Sophgo CV18x0 RISC-V SoCs
Zoltan HERPAI [Wed, 4 Oct 2023 15:28:54 +0000 (17:28 +0200)]
cv18x0: add new target for Sophgo CV18x0 RISC-V SoCs

Initially targeting the Milk-V Duo+dock board.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agosh775x: add 6.6 testing kernel
Zoltan HERPAI [Tue, 12 Mar 2024 13:40:31 +0000 (14:40 +0100)]
sh775x: add 6.6 testing kernel

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months 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>
9 months agogeneric: add missing symbols for SH4
Zoltan HERPAI [Fri, 1 Apr 2022 08:35:56 +0000 (10:35 +0200)]
generic: add missing symbols for SH4

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months 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>
9 months 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>
9 months 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>
9 months agokirkwood: add support for Netgear Stora (MS2000/2110) NAS
Zoltan HERPAI [Thu, 5 May 2022 06:47:27 +0000 (08:47 +0200)]
kirkwood: add support for Netgear Stora (MS2000/2110) NAS

Dual-slot NAS based on Marvell Kirkwood.

Specifications:
 - Marvell 88F6281 @1GHz
 - 128Mb RAM
 - 256Mb NAND
 - 1x GbE LAN (Marvell 88E1116)
 - 1x USB 2.0
 - 2x SATA
 - PCF8563 RTC
 - LM75 sensor
 - TC654 PWM fan controller
 - Serial on J2 (115200,8n1)
 - Newer bootROM so kwboot-ing via serial is possible

Installation:

1. Serial console
 - Connect your levelshifter to the serial console
   on J2 (refer to the wiki page for pinout)
2. Update u-boot
 - Download the u-boot.kwb image for the device
 - Powercycle the NAS
 - Run "kwboot -b ./u-boot.kwb /dev/ttyUSB0 -p"
 - Connect to the serial console with minicom
 - tftp 0x0800000 netgear_stora-u-boot.kwb
 - nand erase 0x0 100000
 - nand write 0x0800000 0x0 0x100000
 - reset
3. Install OpenWrt
 - Boot up the initramfs image
 - tftpboot 0x800000 openwrt-kirkwood-netgear_stora-initramfs-uImage; bootm 0x800000
 - Download the sysupgrade image and perform sysupgrade

The fan is controlled in 3 stages by a script running every minute
from cron, measuring the CPU temperature.

Snippets taken from bodhi <mibodhi@gmail.com>

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agohwmon: add TC654 fan-controller support
Zoltan HERPAI [Tue, 5 Mar 2024 12:22:11 +0000 (13:22 +0100)]
hwmon: add TC654 fan-controller support

Add support for the Microchip TC654 PWM fan-controller.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agokernel: modules: video: select drm-exec and drm-suballoc-helper for AMDGPU
Robert Marko [Fri, 15 Mar 2024 11:50:43 +0000 (12:50 +0100)]
kernel: modules: video: select drm-exec and drm-suballoc-helper for AMDGPU

drm-amdgpu and drm-radeon require drm-exec and/or drm-suballoc-helper in
6.6, so since we have them packaged separately include them when required.

Fixes: 5b08b5600720 ("kernel: modules: video: adapt for kernel 6.6")
Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agokernel: modules: video: package DRM suballocation helper
Robert Marko [Fri, 15 Mar 2024 11:50:14 +0000 (12:50 +0100)]
kernel: modules: video: package DRM suballocation helper

Linux 6.4 has split out the previously AMDGPU specific suballocation
helper into a generic one and it has its own symbol now.

So, lets package it as a separate helper as AMDGPU still requires it
for 6.6.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agokernel: modules: video: package DRM EXEC
Robert Marko [Fri, 15 Mar 2024 11:14:58 +0000 (12:14 +0100)]
kernel: modules: video: package DRM EXEC

Linux 6.6 has added DRM EXEC as a separate symbol, so package it separately
as AMDGPU requires it.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agokernel: modules: video: drm: remove DRM_EXEC and DRM_SUBALLOC_HELPER
Robert Marko [Fri, 15 Mar 2024 10:34:20 +0000 (11:34 +0100)]
kernel: modules: video: drm: remove DRM_EXEC and DRM_SUBALLOC_HELPER

As part of adding kernel 6.6 support, DRM_EXEC and DRM_SUBALLOC_HELPER were
added to the kmod-drm, however these are only used by drm-amdgpu and
drm-radeon which are only supported on x86.

So, lets start fixing building of other targets by removing these from the
main kmod-drm, in follow-up commits they will be packaged separately and
selected when required.

Fixes: 5b08b5600720 ("kernel: modules: video: adapt for kernel 6.6")
Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agoath11k-firmware: update IPQ8074 and QCN9074 to 2.9.0.1-01977
Robert Marko [Thu, 14 Mar 2024 08:20:56 +0000 (09:20 +0100)]
ath11k-firmware: update IPQ8074 and QCN9074 to 2.9.0.1-01977

After a long time QCA has pushed an updated release of 2.9.0.1 firmware
for IPQ8074 and QCN9074, so lets update to 2.9.0.1-01977.

Sadly, still nothing new for IPQ6018.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agomediatek: mt7988: add missing clock for PCIe ports
Daniel Golle [Fri, 15 Mar 2024 14:07:58 +0000 (14:07 +0000)]
mediatek: mt7988: add missing clock for PCIe ports

Add missing CLK_TOP_PEXTP_Px_SEL clock for each of the 4 PCIe interfaces
of the MT7988 SoC. Without that clock PCIe doesn't work reliable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agoqualcommax: ipq60xx: mango-dvk: fix QCA8081 reset timings
Mantas Pucka [Thu, 14 Mar 2024 11:37:02 +0000 (13:37 +0200)]
qualcommax: ipq60xx: mango-dvk: fix QCA8081 reset timings

Add missing reset delay properties for QCA8081 PHY.
Without delays PHY operation is unreliable.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
9 months agokernel: Activate CONFIG_NET_VENDOR_DAVICOM
Hauke Mehrtens [Wed, 13 Mar 2024 20:00:57 +0000 (21:00 +0100)]
kernel: Activate CONFIG_NET_VENDOR_DAVICOM

CONFIG_NET_VENDOR_DAVICOM is needed to activate the CONFIG_DM9000 option
which builds the kmod-dm9000. This fixes the following warning:
logs/package/kernel/linux/compile.txt:WARNING: kmod-dm9000 is not available in the kernel config - generating empty package

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-hwmon-coretemp: Depend on x86
Hauke Mehrtens [Wed, 13 Mar 2024 20:02:11 +0000 (21:02 +0100)]
kernel: kmod-hwmon-coretemp: Depend on x86

This kernel module depends on x86, it works only on some Intel CPUs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-video-cpia2: Depend on kernel 5.15
Hauke Mehrtens [Wed, 13 Mar 2024 20:08:55 +0000 (21:08 +0100)]
kernel: kmod-video-cpia2: Depend on kernel 5.15

This driver was moved to staging in kernel 6.1 and then removed in
kernel 6.3, see these commits:
https://git.kernel.org/linus/be8cebc46d9d38166a1b3fda22a018ae52b0928e
https://git.kernel.org/linus/9ea8a9c72a9b4d24e6045ee25f5e465dc22f9f55

Build it only on older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-can: Fix build of can drivers
Hauke Mehrtens [Wed, 13 Mar 2024 19:02:01 +0000 (20:02 +0100)]
kernel: kmod-can: Fix build of can drivers

Many can kernel modules are now gated by the newly introduced
CONFIG_CAN_NETLINK configuration option. Activate it to build the can
drivers again.
This was changed in this upstream Linux commit:
https://git.kernel.org/linus/df6ad5dd838e0fa543ca28ca6154901fa65a9443

This should fix these warnings with kernel 6.1 and 6.6:
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can-pci is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can-platform is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-mcp251x is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-slcan is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-8dev is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-ems is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-kvaser is not available in the kernel config - generating empty package
logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-peak is not available in the kernel config - generating empty package

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-can-flexcan: Fix flexcan.ko location
Hauke Mehrtens [Thu, 14 Mar 2024 19:22:59 +0000 (20:22 +0100)]
kernel: kmod-can-flexcan: Fix flexcan.ko location

The flexcan.ko file was moved in upstream Linux:
https://git.kernel.org/linus/bfd00e021cf162049946a9e0047b0997d2b35fec
This fixes the build with kernel >= 5.17. This module was never build
with kernel 6.1 before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-can-slcan: Fix can-slcan.ko location
Hauke Mehrtens [Wed, 13 Mar 2024 19:35:19 +0000 (20:35 +0100)]
kernel: kmod-can-slcan: Fix can-slcan.ko location

The slcan.ko file was moved in upstream Linux:
https://git.kernel.org/linus/98b12064591d635db86da4957b547067dc6897cc
This fixes the build with kernel >= 6.0. This module was never build
with kernel 6.1 before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-crypto-gf128: Fix build with kernel 6.6
Hauke Mehrtens [Wed, 13 Mar 2024 19:24:23 +0000 (20:24 +0100)]
kernel: kmod-crypto-gf128: Fix build with kernel 6.6

The gf128mul.ko module was moved in kernel 6.2:
https://git.kernel.org/linus/61c581a46a9668747d355436bd4b2505594539bd

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agokernel: kmod-crypto-user: Add missing dependency
Hauke Mehrtens [Wed, 13 Mar 2024 17:09:22 +0000 (18:09 +0100)]
kernel: kmod-crypto-user: Add missing dependency

The algif_rng.ko kernel module depends on the rng.ko kernel module with
kernel 6.6 when compiling for MIPS malta.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 months agofirmware: intel-microcode: update to 20240312
Christian Lamparter [Thu, 14 Mar 2024 06:13:37 +0000 (07:13 +0100)]
firmware: intel-microcode: update to 20240312

Debian changelog:

intel-microcode (3.20240312.1) unstable; urgency=medium

  * New upstream microcode datafile 20240312 (closes: #1066108)
    - Mitigations for INTEL-SA-INTEL-SA-00972 (CVE-2023-39368):
      Protection mechanism failure of bus lock regulator for some Intel
      Processors may allow an unauthenticated user to potentially enable
      denial of service via network access.
    - Mitigations for INTEL-SA-INTEL-SA-00982 (CVE-2023-38575):
      Non-transparent sharing of return predictor targets between contexts in
      some Intel Processors may allow an authorized user to potentially
      enable information disclosure via local access.  Affects SGX as well.
    - Mitigations for INTEL-SA-INTEL-SA-00898 (CVE-2023-28746), aka RFDS:
      Information exposure through microarchitectural state after transient
      execution from some register files for some Intel Atom Processors and
      E-cores of Intel Core Processors may allow an authenticated user to
      potentially enable information disclosure via local access.  Enhances
      VERW instruction to clear stale register buffers.  Affects SGX as well.
      Requires kernel update to be effective.
    - Mitigations for INTEL-SA-INTEL-SA-00960 (CVE-2023-22655), aka TECRA:
      Protection mechanism failure in some 3rd and 4th Generation Intel Xeon
      Processors when using Intel SGX or Intel TDX may allow a privileged
      user to potentially enable escalation of privilege via local access.
      NOTE: effective only when loaded by firmware.  Allows SMM firmware to
      attack SGX/TDX.
    - Mitigations for INTEL-SA-INTEL-SA-01045 (CVE-2023-43490):
      Incorrect calculation in microcode keying mechanism for some Intel
      Xeon D Processors with Intel SGX may allow a privileged user to
      potentially enable information disclosure via local access.
  * Fixes for other unspecified functional issues on many processors
  * Updated microcodes:
    sig 0x00050653, pf_mask 0x97, 2023-07-28, rev 0x1000191, size 36864
    sig 0x00050656, pf_mask 0xbf, 2023-07-28, rev 0x4003605, size 38912
    sig 0x00050657, pf_mask 0xbf, 2023-07-28, rev 0x5003605, size 37888
    sig 0x0005065b, pf_mask 0xbf, 2023-08-03, rev 0x7002802, size 30720
    sig 0x00050665, pf_mask 0x10, 2023-08-03, rev 0xe000015, size 23552
    sig 0x000506f1, pf_mask 0x01, 2023-10-05, rev 0x003e, size 11264
    sig 0x000606a6, pf_mask 0x87, 2023-09-14, rev 0xd0003d1, size 307200
    sig 0x000606c1, pf_mask 0x10, 2023-12-05, rev 0x1000290, size 299008
    sig 0x000706a1, pf_mask 0x01, 2023-08-25, rev 0x0040, size 76800
    sig 0x000706a8, pf_mask 0x01, 2023-08-25, rev 0x0024, size 76800
    sig 0x000706e5, pf_mask 0x80, 2023-09-14, rev 0x00c4, size 114688
    sig 0x000806c1, pf_mask 0x80, 2023-09-13, rev 0x00b6, size 111616
    sig 0x000806c2, pf_mask 0xc2, 2023-09-13, rev 0x0036, size 98304
    sig 0x000806d1, pf_mask 0xc2, 2023-09-13, rev 0x0050, size 104448
    sig 0x000806ec, pf_mask 0x94, 2023-07-16, rev 0x00fa, size 106496
    sig 0x000806f8, pf_mask 0x87, 2024-01-03, rev 0x2b000590, size 579584
    sig 0x000806f7, pf_mask 0x87, 2024-01-03, rev 0x2b000590
    sig 0x000806f6, pf_mask 0x87, 2024-01-03, rev 0x2b000590
    sig 0x000806f5, pf_mask 0x87, 2024-01-03, rev 0x2b000590
    sig 0x000806f4, pf_mask 0x87, 2024-01-03, rev 0x2b000590
    sig 0x00090661, pf_mask 0x01, 2023-09-26, rev 0x0019, size 20480
    sig 0x00090672, pf_mask 0x07, 2023-09-19, rev 0x0034, size 224256
    sig 0x00090675, pf_mask 0x07, 2023-09-19, rev 0x0034
    sig 0x000b06f2, pf_mask 0x07, 2023-09-19, rev 0x0034
    sig 0x000b06f5, pf_mask 0x07, 2023-09-19, rev 0x0034
    sig 0x000906a3, pf_mask 0x80, 2023-09-19, rev 0x0432, size 222208
    sig 0x000906a4, pf_mask 0x80, 2023-09-19, rev 0x0432
    sig 0x000906c0, pf_mask 0x01, 2023-09-26, rev 0x24000026, size 20480
    sig 0x000906e9, pf_mask 0x2a, 2023-09-28, rev 0x00f8, size 108544
    sig 0x000906ea, pf_mask 0x22, 2023-07-26, rev 0x00f6, size 105472
    sig 0x000906ec, pf_mask 0x22, 2023-07-26, rev 0x00f6, size 106496
    sig 0x000906ed, pf_mask 0x22, 2023-07-27, rev 0x00fc, size 106496
    sig 0x000a0652, pf_mask 0x20, 2023-07-16, rev 0x00fa, size 97280
    sig 0x000a0653, pf_mask 0x22, 2023-07-16, rev 0x00fa, size 97280
    sig 0x000a0655, pf_mask 0x22, 2023-07-16, rev 0x00fa, size 97280
    sig 0x000a0660, pf_mask 0x80, 2023-07-16, rev 0x00fa, size 97280
    sig 0x000a0661, pf_mask 0x80, 2023-07-16, rev 0x00fa, size 96256
    sig 0x000a0671, pf_mask 0x02, 2023-09-14, rev 0x005e, size 108544
    sig 0x000b0671, pf_mask 0x32, 2023-12-14, rev 0x0122, size 215040
    sig 0x000b06a2, pf_mask 0xe0, 2023-12-07, rev 0x4121, size 220160
    sig 0x000b06a3, pf_mask 0xe0, 2023-12-07, rev 0x4121
    sig 0x000b06e0, pf_mask 0x11, 2023-09-25, rev 0x0015, size 138240
  * New microcodes:
    sig 0x000a06a4, pf_mask 0xe6, 2024-01-03, rev 0x001c, size 136192
    sig 0x000b06a8, pf_mask 0xe0, 2023-12-07, rev 0x4121, size 220160
    sig 0x000c06f2, pf_mask 0x87, 2023-11-20, rev 0x21000200, size 549888
    sig 0x000c06f1, pf_mask 0x87, 2023-11-20, rev 0x21000200
  * source: update symlinks to reflect id of the latest release, 20240312
  * changelog, debian/changelog: fix typos

 -- Henrique de Moraes Holschuh <hmh@debian.org>  Tue, 12 Mar 2024 20:28:17 -0300

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
9 months agomxs: switch default kernel to 6.1
Zoltan HERPAI [Thu, 14 Mar 2024 13:21:17 +0000 (14:21 +0100)]
mxs: switch default kernel to 6.1

The testing kernel has been available since Jul/2023, let's switch
to it by default.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
9 months agoramips: 5.15: delete remaining files
Nick Hainke [Wed, 13 Mar 2024 22:49:32 +0000 (23:49 +0100)]
ramips: 5.15: delete remaining files

Remove the remaining configuration entries that were omitted in the
previous commit.

Fixes: 1576474f55e9 ("ramips: switch to 6.1 kernel")
Signed-off-by: Nick Hainke <vincent@systemli.org>
9 months agomediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX)
Jean Thomas [Thu, 9 Nov 2023 10:28:45 +0000 (11:28 +0100)]
mediatek: Add support for GL.iNet X3000 (Spitz AX) and XE3000 (Puli AX)

The GL.iNet X3000 and XE3000 are Wi-Fi 6 5G cellular routers, based on
MediaTek MT7981A SoC. The XE3000 is the same device as the X3000,
except for an additional battery.

Specifications:
 - SoC: Filogic 820 MT7981A (1.3GHz)
 - RAM: DDR4 512M
 - Flash: eMMC 8G, MicroSD card slot
 - WiFi: 2.4GHz and 5GHz with 6 antennas
 - Ethernet:
   - 1x LAN (10/100/1000M)
   - 1x WAN (10/100/1000/2500M)
 - 5G: Quectel RM520N-GL with two nano-SIM card slots
 - USB: 1x USB 2.0 port
 - UART:
   - 3.3V, TX, RX, GND / 115200 8N1

MAC addresses as verified by OEM firmware:
vendor   OpenWrt    address     source
WAN      eth0       label       factory 0x0a (label)
LAN      eth1       label + 1
2g       phy0-ap0   label + 2   factory 0x04
5g       phy1-ap0   label + 3

Installation via U-Boot rescue:
1. Press and hold reset button while booting the device
2. Wait for the Internet led to blink 5 times
3. Release reset button
4. The rescue page is accessible via http://192.168.1.1
5. Select the OpenWrt sysupgrade image and start upgrade
6. Wait for the router to flash new firmware and reboot

Revert to stock firmware:
1. Download the stock firmware from GL.iNet website
2. Use the method explained above to flash the stock firmware

Switch the modem network port between PCIe and USB interfaces:
1. Connect to the AT commands (/dev/ttyUSB2) port using
e.g. minicom: minicom -D /dev/ttyUSB2
2. Check the current modem mode with 'AT+QCFG="data_interface"':
  - 0,0 indicates that the network port uses the USB interface
  - 1,0 indicates that the network port uses the PCIe interface
3. Switch the active interface with:
  - 'AT+QCFG="data_interface",0,0' to use the USB interface
  - 'AT+QCFG="data_interface",1,0' to use the PCIe interface
4. Reboot

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
9 months agomediatek: mt7981: pinctrl: add additional emmc groups
Jean Thomas [Thu, 7 Dec 2023 15:18:02 +0000 (16:18 +0100)]
mediatek: mt7981: pinctrl: add additional emmc groups

Add new emmc groups in the pinctrl driver for the
MediaTek MT7981 SoC:
* emmc reset, with pin 15.
* emmc 4-bit bus-width, with pins 16 to 19, and 24 to 25.
* emmc 8-bit bus-width, with pins 16 to 25.

The existing emmc_45 group is kept for legacy reasons, even
if this is the union of emmc_reset and emmc_8 groups.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
9 months agomediatek: mt7981: pinctrl: add additional uart group
Jean Thomas [Thu, 7 Dec 2023 15:16:30 +0000 (16:16 +0100)]
mediatek: mt7981: pinctrl: add additional uart group

Add uart1_3 (pins 26, 27) group to the pinctrl driver for the
MediaTek MT7981 SoC.

Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
9 months agogeneric: mtk_eth_soc: fix PPE hanging issue
Daniel Golle [Wed, 13 Mar 2024 18:44:52 +0000 (18:44 +0000)]
generic: mtk_eth_soc: fix PPE hanging issue

A patch to resolve an issue was found in MediaTek's GPL-licensed SDK:
In the mtk_ppe_stop() function, the PPE scan mode is not disabled before
disabling the PPE. This can potentially lead to a hang during the process
of disabling the PPE.

Without this patch, the PPE may experience a hang during the reboot test.

Reference: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/b40da332dfe763932a82f9f62a4709457a15dd6c

Suggested-by: Bc-bocun Chen <bc-bocun.chen@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agogeneric: 5.15: mtk_eth_soc: backport fix for hang on link up
Daniel Golle [Wed, 13 Mar 2024 18:43:28 +0000 (18:43 +0000)]
generic: 5.15: mtk_eth_soc: backport fix for hang on link up

Backport commit faa5f17fe2 ("kernel: mtk_eth_soc: release
MAC_MCR_FORCE_LINK only when MAC is up") to Linux 5.15 as well.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agodnsmasq: reset PKG_RELEASE
Robert Marko [Wed, 13 Mar 2024 11:47:31 +0000 (12:47 +0100)]
dnsmasq: reset PKG_RELEASE

dnsmasq was recently updated to 2.90, but PKG_RELEASE was not reset to 1.

Fixes: 838a27f64f56 ("dnsmasq: version 2.90")
Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agoath79: add missing kernel config symbols
Shiji Yang [Wed, 13 Mar 2024 06:27:08 +0000 (14:27 +0800)]
ath79: add missing kernel config symbols

Refresh kernel configs to add the missing symbols.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
9 months agoath79: remove obsolete 5.15 kernel support
Shiji Yang [Wed, 13 Mar 2024 06:27:08 +0000 (14:27 +0800)]
ath79: remove obsolete 5.15 kernel support

The 5.15 kenel config file, patches and version switches will be
removed in this patch. We will introduce kernel 6.6 support soon.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
9 months agoath79: switch default kernel to 6.1
Shiji Yang [Wed, 13 Mar 2024 06:27:08 +0000 (14:27 +0800)]
ath79: switch default kernel to 6.1

The 6.1 kernel has been tested for over half a year.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
9 months agolibevent2: make cmake use relative imported path
Liu Dongmiao [Tue, 12 Mar 2024 06:48:08 +0000 (06:48 +0000)]
libevent2: make cmake use relative imported path

libevent2's cmake use absolute path, then cmake cannot find it when cross compiling:

```
-- Found libevent include directory: /builder/staging_dir/target-mips_24kc_musl/usr/include
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_core.so
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_extra.so
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_openssl.so
-- Found libevent 2.1.12 in /builder/staging_dir/target-mips_24kc_musl/usr
CMake Error at /builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventTargets-shared.cmake:102 (message):
  The imported target "libevent::core" references the file

     "/usr/lib/libevent_core-2.1.so.7.0.1"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventTargets-shared.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventConfig.cmake:168 (include)
  CMakeLists.txt:34 (find_package)
```

This patch make cmake use relative imported path, so it can find libevent.

Signed-off-by: Liu Dongmiao <liudongmiao@gmail.com>
9 months agoramips: add support for Z-ROUTER ZR-2660
Mikhail Zhilkin [Sat, 2 Mar 2024 19:58:40 +0000 (19:58 +0000)]
ramips: add support for Z-ROUTER ZR-2660

This commit adds support for Z-ROUTER ZR-2660 (also known as Routerich
AX1800) wireless WiFi 6 router.

Specification
-------------
- SoC       : MediaTek MT7621AT, MIPS, 880 MHz
- RAM       : 256 MiB
- Flash     : NAND 128 MiB (AMD/Spansion S34ML01G2)
- WLAN      :
  - 2.4 GHz : MediaTek MT7905D/MT7975 (14c3:7916), b/g/n/ax, MIMO 2x2
  - 5 GHz   : MediaTek MT7915E (14c3:7915), a/n/ac/ax, MIMO 2x2
- Ethernet  : 10/100/1000 Mbps x4 (1x WAN, 3x LAN)
- USB       : 1x 2.0
- UART      : 3.3V, 115200n8, pins are silkscreened on the pcb
- Buttons   : 1x Reset
- LEDs      : 1x WiFi 2.4 GHz (green)
              1x WiFi 5 GHz (green)
              1x LAN (green)
              1x WAN (green)
              1x WAN no-internet (red)
- Power     : 12 VDC, 1 A

Installation
------------
1. Run tftp server on your PC (IP: 192.168.2.2) and put OpenWrt initramfs
   image (initramfs.bin) to the tftp root dir
2. Open the following link in the browser to enable telnet:
http://192.168.2.1/cgi-bin/telnet_ssh
3. Connect to the router (default IP: 192.168.2.1) using telnet shell
   (credentials - user:admin)
4. Run the following commands in the telnet shell (this will install
   OpenWrt initramfs image on nand flash):
cd /tmp
tftp -g -r initramfs.bin 192.168.2.2
mtd write initramfs.bin firmware
mtd erase firmware_backup
reboot
5. Copy OpenWrt sysupgrade image (sysupgrade.bin) to the /tmp dir of the
   router
6. Connect to the router (IP: 192.168.1.1) using ssh shell and run
   sysupgrade command:
sysupgrade -n /tmp/sysupgrade.bin

Return to stock
---------------
1. Copy stock firmware (stock.bin) to the /tmp dir of the router using scp
2. Run following command in the router shell:
cd /tmp
mtd write stock.bin firmware
reboot

Recovery
--------
Connect uart (pins are silkscreened on the pcb), interrupt boot process by
pressing any key, use u-boot menu to flash stock firmware image or OpenWrt
initramfs image.

MAC addresses
-------------
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| LAN     | 24:0f:5e:xx:xx:4c | label     |
| WAN     | 24:0f:5e:xx:xx:4d | label+1   |
| WLAN 2g | 24:0f:5e:xx:xx:4e | label+2   |
| WLAN 5g | 24:0f:5e:xx:xx:4f | label+3   |
+---------+-------------------+-----------+
The WLAN 2.4 MAC was found in 'factory', 0x4
The LAN MAC was found in 'factory', 0xfff4
The WAN MAC was found in 'factory', 0xfffa

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
9 months agolldpd: update URL
Paul Donald [Mon, 11 Mar 2024 23:31:15 +0000 (00:31 +0100)]
lldpd: update URL

update Makefile URL

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agolldpd: shellcheck fixes
Paul Donald [Mon, 11 Mar 2024 22:33:47 +0000 (23:33 +0100)]
lldpd: shellcheck fixes

No functionality/behaviour changes; code is synonymous

Tested on: 22.03.6

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agolldpd: implement lldp_policy parameter
Paul Donald [Thu, 8 Feb 2024 19:35:31 +0000 (20:35 +0100)]
lldpd: implement lldp_policy parameter

For certain lldp_class scenarios (2 & 3) a policy must be set also.
Class 4 is default, although it's good to handle the policy eventuality.

Here, set a default lldp_policy for all lldp_class scenarios. Any
lldp_policy can now be set.

Depends on PR #14584 (which introduced an `if` block)

Tested on 22.03.5, 22.03.6

Signed-off-by: Paul Donald <newtwen@gmail.com>
9 months agokernel: config: 6.6: disable ZSTD debug info compression by default
Robert Marko [Tue, 12 Mar 2024 04:06:14 +0000 (00:06 -0400)]
kernel: config: 6.6: disable ZSTD debug info compression by default

When kernel 6.6 is being compiled with GCC13 it will prompt for:
Compressed Debug information
> 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE)
  2. Compress debugging information with zlib (DEBUG_INFO_COMPRESSED_ZLIB)
  3. Compress debugging information with zstd (DEBUG_INFO_COMPRESSED_ZSTD) (NEW)

This is because kernel now also has support for compressing debug info
with ZSTD, so add the missing symbol and disable it by default.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agoramips: add support for YunCore G720
Daniel Golle [Fri, 8 Mar 2024 20:20:23 +0000 (20:20 +0000)]
ramips: add support for YunCore G720

The YunCore G720 is a dual band 802.11ax router with 5 GbE ports.

Specs:
- SoC: MediaTek MT7621
- Ethernet: 5x GbE ports (built-in MT7530)
- Wireless 2.4GHz / 5GHz: MediaTek MT7915E
- RAM: 256MiB
- ROM: 16MiB (W25Q128)
- 1 Button (reset)
- 8 LEDs (1x system, 2x wifi, 5x switch ports)

Flash instructions:
The vendor firmware is based on OpenWrt, the sysupgrade image can be
flashed using the '-F' (force) option on the CLI.
Make sure not to keep settings when doing so.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agoramips: switch to 6.1 kernel
Nick Hainke [Tue, 12 Mar 2024 11:12:41 +0000 (12:12 +0100)]
ramips: switch to 6.1 kernel

We have had the testing kernel for several weeks now. Let's switch to 6.1
to have more testers. Additionally, 6.6 is already in the pipeline.

Signed-off-by: Nick Hainke <vincent@systemli.org>
9 months agokernel: config: add missing symbol for kenrel 6.6
Weijie Gao [Tue, 12 Mar 2024 14:44:37 +0000 (22:44 +0800)]
kernel: config: add missing symbol for kenrel 6.6

CONFIG_HID_SUPPORT:
Set default value for kmod-hid

CONFIG_USB_CDNS3_IMX:
CONFIG_USB_CDNS3_PCI_WRAP:
CONFIG_USB_CDNSP_PCI:
Introduced by db0d7cf6a1 (usb: add cdns3 support)

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
9 months agoRevert "kernel: config: add symbol introduced with 6.2"
Robert Marko [Tue, 12 Mar 2024 12:00:03 +0000 (13:00 +0100)]
Revert "kernel: config: add symbol introduced with 6.2"

This reverts commit 7ea82bc17d1583f4d9d46397846b0eb63e6651eb.

This commit does not meet formal requirments, and has been merged due to
my error.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agostarfive: refresh patches
Robert Marko [Tue, 12 Mar 2024 09:11:00 +0000 (10:11 +0100)]
starfive: refresh patches

CI reported that patches need to be refreshed, so lets refresh.

Signed-off-by: Robert Marko <robimarko@gmail.com>
9 months agokernel: config: add symbol introduced with 6.2
CharlesMengCA [Tue, 12 Mar 2024 04:06:14 +0000 (00:06 -0400)]
kernel: config: add symbol introduced with 6.2

CONFIG_DEBUG_INFO_COMPRESSED_ZSTD, required by  GCC 13.0+

Compress the debug information using zstd. This may provide better compression than zlib, for about the same time costs, but requires newer toolchain support. Requires GCC 13.0+ or Clang 16.0+, binutils 2.40+, and zstd.

Signed-off-by: CharlesMengCA <58993776+CharlesMengCA@users.noreply.github.com>
9 months agokernel: modules: don't override NLS dependencies
Daniel Golle [Mon, 11 Mar 2024 23:23:23 +0000 (23:23 +0000)]
kernel: modules: don't override NLS dependencies

Recent changes for Linux 6.6 broke things when building with older
kernels:
Package kmod-fs-jfs is missing dependencies for the following libraries:
nls_base.ko

Fix this by adding NLS dependencies after the added dependency applying
on Linux 6.6.

Fixes: f9198480da ("kernel: modules: fs: adapt for kernel 6.6")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: add Linux 6.6 as testing kernel
Daniel Golle [Sat, 2 Mar 2024 04:25:43 +0000 (04:25 +0000)]
mediatek: add Linux 6.6 as testing kernel

Add KERNEL_TESTING_PATCHVER for Linux 6.6.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: add kernel configs for Linux 6.6
Daniel Golle [Sat, 2 Mar 2024 04:29:48 +0000 (04:29 +0000)]
mediatek: add kernel configs for Linux 6.6

Add config-6.6 for all mediatek subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: fix build of MT7988 clk drivers on Linux 6.6
Daniel Golle [Sat, 2 Mar 2024 04:24:15 +0000 (04:24 +0000)]
mediatek: fix build of MT7988 clk drivers on Linux 6.6

As shared remove functions now returns void instead of int we need to
use .remove_new instead of .remove.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: leds-smartrg-system: fix build on Linux 6.6
Daniel Golle [Sat, 2 Mar 2024 04:23:22 +0000 (04:23 +0000)]
mediatek: leds-smartrg-system: fix build on Linux 6.6

Adapt to changed function pointer prototypes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: 6.6: refresh patches
Daniel Golle [Fri, 1 Mar 2024 02:22:25 +0000 (02:22 +0000)]
mediatek: 6.6: refresh patches

Refresh patches and fix changed path for 32-bit mediatek boards
'arch/arm/dts' -> 'arch/arm/dts/mediatek'

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: 6.6: drop patches backported as fixes
Daniel Golle [Fri, 1 Mar 2024 01:59:21 +0000 (01:59 +0000)]
mediatek: 6.6: drop patches backported as fixes

Drop patches backported as fixes in later kernel version.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: 6.6: drop backport patches
Daniel Golle [Fri, 1 Mar 2024 01:57:56 +0000 (01:57 +0000)]
mediatek: 6.6: drop backport patches

Drop all backport patches that are now included in kernel 6.6.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: copy patches-6.1 to patches-6.6
Daniel Golle [Fri, 1 Mar 2024 01:56:57 +0000 (01:56 +0000)]
mediatek: copy patches-6.1 to patches-6.6

Copy patches from patches-6.1 to patches-6.6. No changes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agomediatek: copy files-6.1 to files-6.6
Daniel Golle [Fri, 1 Mar 2024 01:56:31 +0000 (01:56 +0000)]
mediatek: copy files-6.1 to files-6.6

Copy files from files-6.1 to files-6.6. No changes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agogeneric: 6.6: fix copy & refresh
Daniel Golle [Mon, 11 Mar 2024 19:10:49 +0000 (19:10 +0000)]
generic: 6.6: fix copy & refresh

A new patch was added meanwhile which will go as fix via netdev tree.
Copy & refresh it for Linux 6.6 as well.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agokernel: config: add symbol introduced with 6.1.81
John Audia [Wed, 6 Mar 2024 21:19:12 +0000 (16:19 -0500)]
kernel: config: add symbol introduced with 6.1.81

Add CONFIG_EFI_HANDOVER_PROTOCOL=y to the default config[1] and disable CONFIG_NFSD_V2

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/Kconfig?id=v6.1.81&id2=v6.1.80

Signed-off-by: John Audia <therealgraysky@proton.me>
9 months agokernel: bump 6.1 to 6.1.81
John Audia [Wed, 6 Mar 2024 21:29:01 +0000 (16:29 -0500)]
kernel: bump 6.1 to 6.1.81

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

All patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3, flogic/xiaomi_redmi-router-ax6000-ubootmod
Run-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3, flogic/xiaomi_redmi-router-ax6000-ubootmod

Signed-off-by: John Audia <therealgraysky@proton.me>
9 months agofitblk: invert kernel version dependency
Daniel Golle [Sat, 2 Mar 2024 16:09:29 +0000 (16:09 +0000)]
fitblk: invert kernel version dependency

Allow building fitblk with Linux 6.6 by depending on !LINUX_5_15
instead of LINUX_6_1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 months agoath10k-ct: fix build error on linux kernel 6.6
Weijie Gao [Thu, 29 Feb 2024 16:47:56 +0000 (00:47 +0800)]
ath10k-ct: fix build error on linux kernel 6.6

Fix a build error caused by fortify checking memcpy data range.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
9 months agortl8812au-ct: fix build failure on linux kernel 6.6
Weijie Gao [Thu, 29 Feb 2024 16:46:12 +0000 (00:46 +0800)]
rtl8812au-ct: fix build failure on linux kernel 6.6

Use the correct return status code to avoid incompatible type error

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
9 months agomt76: fix build failure on linux kernel 6.6
Weijie Gao [Fri, 1 Mar 2024 07:49:13 +0000 (15:49 +0800)]
mt76: fix build failure on linux kernel 6.6

A commit introduced in kernel 6.6 has splitted page_pool.h into
several headers. Thus the included header must be modified for a
successful build.

Ref: a9ca9f9ceff3 (page_pool: split types and declarations from
page_pool.h)

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
9 months agomac80211: fix build with linux kernel 6.6
Weijie Gao [Thu, 29 Feb 2024 15:56:40 +0000 (23:56 +0800)]
mac80211: fix build with linux kernel 6.6

Fix build failure with linux kernel 6.6

Related kernel commits:

20b0b53aca43 (genetlink: introduce split op representation)

bffcc6882a1b (genetlink: remove userhdr from struct genl_info)

e9a688bcb193 (random: use rejection sampling for uniform bounded
random integers)

3c202d14a9d7 (prandom: remove prandom_u32_max())

3d2f20ad46f8 (wifi: iwlwifi: Use generic thermal_zone_get_trip()
function)

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
9 months agogpio-button-hotplug: fix 6.2 build failure
Weijie Gao [Sat, 6 Jan 2024 19:31:28 +0000 (03:31 +0800)]
gpio-button-hotplug: fix 6.2 build failure

devm_gpiod_get_from_of_node() was removed since linux 6.2.
devm_fwnode_gpiod_get() is the recommended replacement.

Link:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpio/gpiolib-devres.c?id=650f2dc970539b3344a98c4bd18efa309e66623b

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Weijie Gao <hackpascal@gmail.com>