openwrt/staging/wigyori.git
7 months agod1: add bluetooth support to the LicheePi Nano Dock kitchensink-202404
Zoltan HERPAI [Sun, 24 Mar 2024 19:53:00 +0000 (20:53 +0100)]
d1: add bluetooth support to the LicheePi Nano Dock

The board has an RTL8723DS BT+wifi, connected via SDIO.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agolinux-firmware: package rtl8723ds firmware files
Zoltan HERPAI [Sun, 24 Mar 2024 23:58:00 +0000 (00:58 +0100)]
linux-firmware: package rtl8723ds firmware files

Add the rtl_bt firmwares into files/, and let the respective kmod
depend on the new firmware package.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agod1: enable CONFIG_SERIAL_DEV_BUS
Zoltan HERPAI [Mon, 25 Mar 2024 00:22:58 +0000 (01:22 +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>
7 months 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>
7 months agod1: add RTL8723DS wifi support to MangoPi MQ-Pro
Zoltan HERPAI [Mon, 25 Mar 2024 15:26:58 +0000 (16:26 +0100)]
d1: add RTL8723DS wifi support to MangoPi MQ-Pro

The board has an RTL8723DS onboard (called Trolink TL8723DS) - add
the required modules to support it.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agod1: change the wireless module for the LicheePi Nano Dock
Zoltan HERPAI [Sun, 24 Mar 2024 17:49:42 +0000 (18:49 +0100)]
d1: change the wireless module for the LicheePi Nano Dock

The correct adapter on the board is the RTL8723DS (not the BS). Select
the newly packaged wireless driver, and also select wpad-basic to make
some use of the interface.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agomac80211: package rtl8723ds and rtw88-sdio
Zoltan HERPAI [Sun, 24 Mar 2024 17:48:31 +0000 (18:48 +0100)]
mac80211: package rtl8723ds and rtw88-sdio

The RTL8723DS is a low-cost BT+wifi SDIO adapter. Package the
required SDIO module and the module itself.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agostarfive: enable pcie0/1 on MarsV
Zoltan HERPAI [Sun, 17 Mar 2024 22:37:38 +0000 (23:37 +0100)]
starfive: enable pcie0/1 on MarsV

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agostarfive: disable audio and SPI devices on MilkV Mars
Zoltan HERPAI [Sat, 16 Mar 2024 12:00:42 +0000 (13:00 +0100)]
starfive: disable audio and SPI devices on MilkV Mars

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 months agobcm47xx: fix switch setup for Linksys WRT320N v1
Zoltan HERPAI [Fri, 22 Mar 2024 22:11:31 +0000 (23:11 +0100)]
bcm47xx: fix switch setup for Linksys WRT320N v1

WRT320N V1 is not detected by the initial network configuration script.
The switch remains unconfigured and WAN/LAN VLANs are not created.

This adds the correct setup for the device.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

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 physical package, and has display and USB
interfaces, allowing for very small footprint boards.

The target consists of basic 6.1 support, with u-boot. Instead of creating
a separate suniv target, as both the kernel and u-boot supports enough of
this SoC by now with minimal patching, let's add it into sunxi as a subtarget.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: move KERNEL_LOADADDR into subtargets
Zoltan HERPAI [Sat, 23 Mar 2024 22:58:36 +0000 (23:58 +0100)]
sunxi: move KERNEL_LOADADDR into subtargets

As preparation for the arm926ej-s support which has a different
load address, move the KERNEL_LOADADDR into the subtargets.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosunxi: move fpu feature flag into the subtargets
Zoltan HERPAI [Sat, 23 Mar 2024 17:35:58 +0000 (18:35 +0100)]
sunxi: move fpu feature flag into the subtargets

As the upcoming arm926ej-s does not have an FPU, move this flag
into the subtargets.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosifiveu: add testing 6.6 kernel
Zoltan HERPAI [Tue, 9 Apr 2024 12:07:24 +0000 (14:07 +0200)]
sifiveu: add testing 6.6 kernel

Add 6.6 as the new testing kernel.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosifiveu: update or refresh patches and config for 6.6
Zoltan HERPAI [Tue, 9 Apr 2024 12:06:49 +0000 (14:06 +0200)]
sifiveu: update or refresh patches and config for 6.6

Refresh patches to apply properly, and add new config options.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosifiveu: copy patches and config from 6.1 to 6.6
Zoltan HERPAI [Tue, 9 Apr 2024 12:06:06 +0000 (14:06 +0200)]
sifiveu: copy patches and config from 6.1 to 6.6

Simple copy of patches and config to the new version.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agosdk: include lib/crtsavres.o for powerpc
Robert Marko [Mon, 8 Apr 2024 15:52:22 +0000 (17:52 +0200)]
sdk: include lib/crtsavres.o for powerpc

Trying to link certain kernel modules like dahdi-linux when building with
the OpenWrt SDK will fail with:
openwrt-sdk-apm821xx-sata_gcc-13.2.0_musl.Linux-x86_64/staging_dir/toolchain-powerpc_464fp_gcc-13.2.0_musl/bin/powerpc-openwrt-linux-musl-ld: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory

Previously this worked with the PowerPC SDK since we carried a hack that
was passing --save-restore-funcs to module LDFLAGS so the linker provided
the required functions automatically as without --save-restore-funcs it
doesnt do so automatically on relocatable links and as a sideffect did not
require the kernel provided crtsaves.o to link against.

Now that hack has been removed as upstream kernel now compiles crtsaves.o
by default so it can be linked against but its not included in the SDK.

So, lets include lib/crtsavres.o when SDK is generated for PowerPC.

Fixes: 99c9d8abd677 ("kernel: bump 5.15 to 5.15.148")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agoqualcommax: Skip compiling unnecessary dtbs
Sean Khan [Mon, 8 Apr 2024 20:24:12 +0000 (16:24 -0400)]
qualcommax: Skip compiling unnecessary dtbs

Currently the compile phase of the kernel builds `Image dtbs modules`.
However, none of the dtbs that get built are used for the final image.

This ends up unnecessarily taking CPU cycles and produces a lot of
`WARNINGS` that can lead users to believe there's cause for concern. I
believe the same principle can be applied to other targets.

```
DTC     arch/arm64/boot/dts/qcom/msm8996-mtp.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-dora.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-kagura.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone-keyaki.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-xiaomi-natrium.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])

DTC     arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dtb
arch/arm64/boot/dts/qcom/msm8996.dtsi:2954.36-2962.5: Warning (clocks_property):
/soc/clock-controller@6400000: Missing property '#clock-cells' in node
/soc/mailbox@9820000 or bad phandle (referred from clocks[2])
```

Signed-off-by: Sean Khan <datapronix@protonmail.com>
7 months agotreewide: remove implicit SUBTARGET
Paul Spooren [Mon, 8 Apr 2024 06:05:29 +0000 (08:05 +0200)]
treewide: remove implicit SUBTARGET

Historically it's possible to leave the `SUBTARGETS` undefined and
automatically fallback to a "generic" subtarget. This however breaks
various downstream scripts which may have expectations around filenames:

While some targets with an explicit generic subtarget contain `generic`
in the filenames of artifacts, implicit "subtargets" don't.

Right now this breaks the CI[1], possibly also scripts using the ImageBuilders.

This commit removes all code that support implicit handling of
subtargets and instead requires every target to define "SUBTARGETS".

[1]: https://github.com/openwrt/openwrt/actions/runs/8592821105/job/23548273630

Signed-off-by: Paul Spooren <mail@aparcar.org>
7 months agod1: define subtarget specifically
Paul Spooren [Mon, 8 Apr 2024 05:54:45 +0000 (07:54 +0200)]
d1: define subtarget specifically

Historically it's possible to leave the `SUBTARGETS` undefined and
automatically fallback to a "generic" subtarget. This however breaks
various downstream scripts which may have expectations around filenames:

While some targets with an explicit generic subtarget contain `generic`
in the filenames of artifacts, implicit "subtargets" don't.

Right now this breaks the CI[1], possibly also scripts using the ImageBuilders.

Do to the D1 target what's done to other target, explicitly define the
"generic" subtarget.

[1]: https://github.com/openwrt/openwrt/actions/runs/8592821105/job/23548273630

Signed-off-by: Paul Spooren <mail@aparcar.org>
7 months agorealtek: add support for switch Zyxel GS1900-24EP
Mirko Vogt [Fri, 5 Apr 2024 15:31:03 +0000 (15:31 +0000)]
realtek: add support for switch Zyxel GS1900-24EP

This device is very similar to the GS1900-24E switch (added in b515ad1),
except that the first 12 of 24 ethernet ports are capable of PoE and the
physical jacks are in the right order - unlike for the GS1900-24E, where
even and uneven ports are flipped (up <-> down on panel).

Zyxel version code for this device (-24EP) is: ABTO

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
7 months agoconfig: select KERNEL_WERROR if building with default GCC version
Daniel Golle [Sun, 7 Apr 2024 18:50:04 +0000 (19:50 +0100)]
config: select KERNEL_WERROR if building with default GCC version

At the moment we have to manually follow the default GCC version
also in config/Config-kernel.in. This tends to be forgotten at GCC
version bumps (just happened when switching from version 12 to 13).
Instead, introduce a hidden Kconfig symbol which implies KERNEL_WERROR
in toolchain/gcc/Config.in where it is visible for developers changing
the default version.

Also remove the explicit default on BUILDBOT to avoid a circular
dependency and also because buildbots anyway implicitly always select
the default GCC version.

Reference: https://github.com/openwrt/openwrt/pull/15064
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 months agouclient: update to Git HEAD (2024-04-05)
Felix Fietkau [Sun, 7 Apr 2024 09:15:23 +0000 (11:15 +0200)]
uclient: update to Git HEAD (2024-04-05)

e209a4ced1d8 add strdupa macro for compatibility
af1962b9a609 uclient: add helper function for getting ustream-ssl context/ops
488f1d52cfd2 http: add helper function for checking redirect status
b6e5548a3ecc uclient: defer read notifications to uloop timer
352fb3eeb408 http: call ustream_poll if not enough read data is available
e611e6d0ff0b add ucode binding
ddb18d265757 uclient: add function for getting the amount of pending read/write data
980220ad1762 ucode: fix a few ucode binding issues
6c16331e4bf5 ucode: add support for using a prototype for cb, pass it to callbacks

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agobcm27xx: bcm2712: backport RP1 interrupt affinity
Álvaro Fernández Rojas [Sat, 6 Apr 2024 15:56:37 +0000 (17:56 +0200)]
bcm27xx: bcm2712: backport RP1 interrupt affinity

Support for setting the CPU affinity on RP1 has been added to RPi linux v6.6

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 months agobcm27xx: update 6.1 patches from RPi foundation
Álvaro Fernández Rojas [Sat, 6 Apr 2024 15:30:49 +0000 (17:30 +0200)]
bcm27xx: update 6.1 patches from RPi foundation

Sync 6.1 patches with the RPi foundation.
Since rpi-6.6.y is now the main branch of the RPi foundation, there won't be
any new patches for linux 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 months agobase-files: minor fix to mmc_get_mac_ascii function
Rodrigo Balerdi [Sat, 6 Apr 2024 06:18:00 +0000 (03:18 -0300)]
base-files: minor fix to mmc_get_mac_ascii function

This is mostly a cosmetic cleanup. The absence of
the return statement was not causing any problems.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
7 months agoustream-ssl: update to Git HEAD (2024-04-07)
Felix Fietkau [Sun, 7 Apr 2024 16:55:14 +0000 (18:55 +0200)]
ustream-ssl: update to Git HEAD (2024-04-07)

7621339d7694 mbedtls: fix build on non-linux systems
268050964b08 ustream-mbedtls: add missing psa_crypto_init call
956fba242ac0 add callbacks for debug messages
9fdf3fb87af5 mbedtls: add TLS 1.3 ciphers
28c4c1e6471b mbedtls: disable TLS 1.3 in client mode when skipping verification
d61493a44204 mbedtls: add missing ifdef for build with disabled debug

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agoat91bootstrap: update PKG_MIRROR_HASH to zstd for v3 at91bootstrap
Robert Marko [Sun, 7 Apr 2024 12:44:46 +0000 (14:44 +0200)]
at91bootstrap: update PKG_MIRROR_HASH to zstd for v3 at91bootstrap

So, when updating the hash for at91bootstrap it was done via CHECK_ALL=1
so that updated the PKG_MIRROR_HASH for the main v4 version hash, but
at91bootstrap checkout version depends on the subtarget as well.

Choosing to build for sam9x will change the at91bootstrap version to v3
and this hash was not refreshed thus causing the CI to fail.

Fixes: 6918c637b797 ("treewide: package: update missed hashes after switch to ZSTD")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agogeneric: backport at803x kernel panic fix
Christian Marangi [Sun, 7 Apr 2024 14:52:48 +0000 (16:52 +0200)]
generic: backport at803x kernel panic fix

Backport at803x kernel panic fix merged upstream for kernel 6.1 and 6.6.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agotreewide: package: update missed hashes after switch to ZSTD
Robert Marko [Sun, 7 Apr 2024 10:29:11 +0000 (12:29 +0200)]
treewide: package: update missed hashes after switch to ZSTD

With the switch to ZSTD for git clone packaging, hashes have changed so
fixup remaining package hashes that were missed in the inital update.

Fixes: b3c1c57 ("treewide: update PKG_MIRROR_HASH to zst")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agogeneric: 6.6: backport arm64 swiotlb default size reduction
Robert Marko [Sat, 6 Apr 2024 21:08:03 +0000 (23:08 +0200)]
generic: 6.6: backport arm64 swiotlb default size reduction

Kernel 6.6 added dynamic SWIOTLB allocation, but with it also started
allocating 64MB of the SWIOTLB bounce buffer by default which is quite a
lot of memory on most OpenWrt devices.

Luckily in kernel 6.7 arm64 received an optimization that reduces that
default size to 1MB per 1GB of RAM if certain criteria was met.

So in order to reclaim back 63MB of RAM which brought some ipq807x devices
close to OOM under load lets backport the upstream commit.

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agonu801: update PKG_MIRROR_HASH to zst
Robert Marko [Sun, 7 Apr 2024 09:49:53 +0000 (11:49 +0200)]
nu801: update PKG_MIRROR_HASH to zst

When using zst instead of xz, the hash changes.
This was missed in the initial treewide updated.

Fixes: b3c1c57a35a0 ("treewide: update PKG_MIRROR_HASH to zst")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agox86: geode: 6.6: add missing kernel options
Mieczyslaw Nalewaj [Sat, 6 Apr 2024 15:18:46 +0000 (17:18 +0200)]
x86: geode: 6.6: add missing kernel options

Add options removed by `make kernel_oldconfig CONFIG_TARGET=subtarget', missing which causes compilation to stop and cause an error.

Fixes: 2a86425de107 ("x86: 6.6: refresh kernel config")
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agowifi-scripts: fix creation of IBSS in legacy (non-HT) mode
Alexandru Gagniuc [Wed, 3 Apr 2024 19:32:08 +0000 (14:32 -0500)]
wifi-scripts: fix creation of IBSS in legacy (non-HT) mode

When an IBBS interface is configured for IBSS legacy mode, wdev.htmode
is empty. This is empty string results in an empty positional argument
to the "ibbs join" command, for example:

    iw dev phy0-ibss0 ibss join crymesh 2412 '' fixed-freq beacon-interval 100

This empty argument is interpreted as an invalid HT mode by 'iw',
causing the entire command to fail and print a "usage" message:

    daemon.notice netifd: radio0 (4527): Usage:    iw [options] \
        dev <devname> ibss join <SSID> <freq in MHz> ...

Although nobody will ever need more than 640K of IBSS, explicitly use
"NOHT" if an HT mode is not given. This fixes the problem.

Fixes: e56c5f7b276a ("hostapd: add ucode support, use ucode for the main ubus object")
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [extend to cover more cases]
7 months agoscripts: add .tar.zst to dl_cleanup extensions
Stijn Tintel [Sat, 6 Apr 2024 14:02:28 +0000 (17:02 +0300)]
scripts: add .tar.zst to dl_cleanup extensions

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 months agotools: zstd: add patch fixing wrong generated .pc with lib-mt
Christian Marangi [Sat, 6 Apr 2024 12:58:48 +0000 (14:58 +0200)]
tools: zstd: add patch fixing wrong generated .pc with lib-mt

The current .pc generated by make build system for zstd is wrong and
always assume a single-threaded library is used.

This wasn't the case for the meson build system that used his own logic
to generate the pkg-config file.

Add a patch to fix this by introducing install-mt-pc make target to
generate the correct pkg-config gile.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoRevert "tools/mkimage: update to v2024.04"
Nick Hainke [Sat, 6 Apr 2024 12:49:54 +0000 (14:49 +0200)]
Revert "tools/mkimage: update to v2024.04"

This reverts commit 8d934c11968de49ad17bc62366a88230e47b4f56.

The update seems to be causing issues that need to be further
explored [0]. Let's revert it.

[0] - https://github.com/openwrt/openwrt/pull/15078

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agotools: zstd: install headers as well
Robert Marko [Sat, 6 Apr 2024 10:05:56 +0000 (12:05 +0200)]
tools: zstd: install headers as well

We forgot to make sure install-includes is called for the libzstd in
order for it to install the required headers.

Fixes: 4b920e799fba ("tools: zstd: convert to make and drop meson dependency")
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotreewide: update PKG_MIRROR_HASH to zst
Paul Spooren [Mon, 25 Mar 2024 09:03:26 +0000 (10:03 +0100)]
treewide: update PKG_MIRROR_HASH to zst

When using zst instead of xz, the hash changes. This commit fixes the
hash for packages and tools in core.

Signed-off-by: Paul Spooren <mail@aparcar.org>
7 months agotools: prefer gz or bz2 tarballs
Robert Marko [Wed, 3 Apr 2024 17:12:57 +0000 (19:12 +0200)]
tools: prefer gz or bz2 tarballs

In the light of recent XZ events, and fundamental XZ issues lets work on
moving away from using XZ.

So, use gz compressed tarballs as sources whenever possible.

dwarves only offers bz2 compressed tarballs, so use those as size
difference is minor compared to XZ.

Signed-off-by: Robert Marko <robimarko@gmail.com>
dwarves

7 months agotools: libdeflate: fetch source as tarball
Robert Marko [Thu, 4 Apr 2024 09:14:55 +0000 (11:14 +0200)]
tools: libdeflate: fetch source as tarball

libdeflate is currently intentionally being fetched via GIT.

However, with the move to using ZSTD to compress the cloned GIT repo
tarballs it means that we would first need to compile ZSTD.
But that means that we need to be able to unpack gzipped tarballs first
which we currently do by using libdeflate-gzip.
So, in order to do so lets fetch libdeflate as a tarball, use gzip to
extract it and then use libdeflate as regular for all other tools.

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools: rework tools-core dependecies
Rosen Penev [Wed, 3 Apr 2024 19:17:21 +0000 (12:17 -0700)]
tools: rework tools-core dependecies

ZSTD and libdeflate do not depend on SED nor flock, so instead of the whole
for loop that will filter 2 out of 4 core packages just specify that patch
and tar depend on sed explicitly.

ZSTD now depends on libdeflate since libdeflate-gzip will then be used to
unpack ZSTD as well as most tool archives.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools: make zstd tool core and xz tool non-core
Christian Marangi [Tue, 2 Apr 2024 23:10:01 +0000 (01:10 +0200)]
tools: make zstd tool core and xz tool non-core

Make zstd tool core and xz tool non-core since zstd is the new default
for compression format.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agotools: zstd: dont override ZSTD_LEGACY_SUPPORT
Robert Marko [Fri, 5 Apr 2024 13:44:40 +0000 (15:44 +0200)]
tools: zstd: dont override ZSTD_LEGACY_SUPPORT

We dont really have a reason to deviate from the upstream default for
ZSTD_LEGACY_SUPPORT value of 5, as it will save a bit of space but
prevent decompressing data compressed with legacy ZSTD versions.

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 months agotools: zstd: override max safe compression level
Christian Marangi [Fri, 5 Apr 2024 12:29:50 +0000 (14:29 +0200)]
tools: zstd: override max safe compression level

ZTSD limits the safe compression level to a max of 19 as 20 to 22 cause
increased RAM usage. Higher levels require --ultra arg passed.

There isn't currently a way to set --ultra using ENV options similar to
ZSTD_CLEVEL and ZSTD_CLEVEL is limited to 19.

To fix this, we can increase the max safe compression level by providing
a custom ZSTDCLI_CLEVEL_MAX value with CFLAGS.

The max safe level is increased to 20.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agotools: zstd: convert to make and drop meson dependency
Christian Marangi [Tue, 2 Apr 2024 23:07:14 +0000 (01:07 +0200)]
tools: zstd: convert to make and drop meson dependency

Convert to make and drop meson dependency since it's not a core tools
and can't depend on advanced build system like cmake or meson.

On top of this make is the official build support and cmake/meson are
supported by 3rd parties.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoinclude/download.mk: switch to zst compression
Paul Spooren [Mon, 25 Mar 2024 08:56:18 +0000 (09:56 +0100)]
include/download.mk: switch to zst compression

The compression is faster to (un)pack files, make use of it.

Also add a new build prerequirement, the `zstd` to (un)pack files.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[ improve commit title ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoscripts/dl_github_archive: add support for packing zstd archive
Christian Marangi [Mon, 25 Mar 2024 10:00:38 +0000 (11:00 +0100)]
scripts/dl_github_archive: add support for packing zstd archive

Add support for packing .zst archive when creating Github mirror tar.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agoinclude/download.mk: handle .gitattributes rules on rawgit method
Christian Marangi [Fri, 5 Apr 2024 12:22:18 +0000 (14:22 +0200)]
include/download.mk: handle .gitattributes rules on rawgit method

This fix a long lasting bug/inconsistency with rawgit method and
dl_github_archive script.

The dl_github_archive script works by using the github generated tar.gz
instead of cloning and checkout and the tar.gz is generated by using git
archive command that parse and apply .gitattributes rules.

rawgit command never handled .gitattributes and instead made a simple git
clone and checkout causing the inconsistency.

To fix the inconsistency, add extra steps to call git archive command
and generate an intermediate tar to apply .gitattributes rules.

Also for git log format, Github shorthash length is 8 instead of the
default 7, also apply this locally for each cloned repo to produce
consistent tar.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
7 months agotools/mkimage: update to v2024.04
Nick Hainke [Fri, 5 Apr 2024 10:18:41 +0000 (12:18 +0200)]
tools/mkimage: update to v2024.04

Update to latest version.

Refresh patches:
- 030-allow-to-use-different-magic.patch
- 095-tools-disable-TOOLS_FIT_FULL_CHECK.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
7 months agokernel: bump 6.6 to 6.6.25
John Audia [Thu, 4 Apr 2024 19:16:38 +0000 (15:16 -0400)]
kernel: bump 6.6 to 6.6.25

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

All patches automatically rebased.

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

Signed-off-by: John Audia <therealgraysky@proton.me>
7 months agokernel: bump 6.6 to 6.6.24
John Audia [Wed, 3 Apr 2024 19:06:44 +0000 (15:06 -0400)]
kernel: bump 6.6 to 6.6.24

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

Removed upstreamed:
generic/backport-6.6/838-v6.9-leds-trigger-netdev-Fix-kernel-panic-on-interface-re.patch[1]
generic/backport-6.6/981-mtd-spinand-Add-support-for-5-byte-IDs.patch[2]
mediatek/patches-6.6/831-thermal-drivers-mediatek-Fix-control-buffer-enablement-on-MT7896.patch[3]

Removed:
ipq40xx/patches-6.6/110-mtd-limit-OTP-nvmem-to-non-nand-devices.patch[4]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=10f2af1af8ab8a7064f193446abd5579d3def7e3
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=9c74507e6c4382d12a5e418742b81fd441f03313
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.24&id=fe750e2744428be6aec7395b13df3b34381ce6b6
4. Acknowledgment to @DragonBlurp for pointing out the redundancy of this patch. https://github.com/openwrt/openwrt/commit/dd78a59cd7b029560b33cb3ac0e1aa8b747bd807

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

Signed-off-by: John Audia <therealgraysky@proton.me>
7 months agoipq806x: 6.6: refresh patches
Mieczyslaw Nalewaj [Fri, 5 Apr 2024 12:58:33 +0000 (14:58 +0200)]
ipq806x: 6.6: refresh patches

Refresh patches for kernel 6.6.23 with make target/linux/refresh.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agopistachio: add 6.1 testing kernel
Zoltan HERPAI [Tue, 19 Mar 2024 22:31:47 +0000 (23:31 +0100)]
pistachio: add 6.1 testing kernel

Configure 6.1 as testing kernel.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agopistachio: refresh 6.1 config
Zoltan HERPAI [Tue, 19 Mar 2024 22:31:10 +0000 (23:31 +0100)]
pistachio: refresh 6.1 config

Kernel config needs to be refreshed after copy from 5.15.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agopistachio: update and extend 6.1 patches
Zoltan HERPAI [Tue, 19 Mar 2024 22:28:53 +0000 (23:28 +0100)]
pistachio: update and extend 6.1 patches

Add:
110-pwm-img-fix-clock-lookup.patch
 - patch to fix a clock lookup issue from upstream
Update:
401-mtd-nor-support-mtd-name-from-device-tree.patch
 - mtd-name lookup hack to reflect the updated spi_nor_scan function

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agopistachio: copy config and patches of 5.15 to 6.1
Zoltan HERPAI [Tue, 19 Mar 2024 22:27:08 +0000 (23:27 +0100)]
pistachio: copy config and patches of 5.15 to 6.1

Simple copy of config and patches.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
7 months agogettext-full: link libiconv when building host pkg
Yanase Yuki [Thu, 7 Mar 2024 08:31:34 +0000 (17:31 +0900)]
gettext-full: link libiconv when building host pkg

On Fedora 40 system, some compile error happens when
building iconv-ostream.c. Linking to libiconv-full
fixes this.

Signed-off-by: Yanase Yuki <dev@zpc.st>
7 months agohostapd: fix Config.in dependencies
Felix Fietkau [Fri, 5 Apr 2024 12:54:16 +0000 (14:54 +0200)]
hostapd: fix Config.in dependencies

hostapd packages were accidentally left out. Clean up this mess by
changing the dependencies to hostapd-common

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 months agoipq40xx: 6.6: remove redundant patch
Mieczyslaw Nalewaj [Thu, 4 Apr 2024 22:26:16 +0000 (00:26 +0200)]
ipq40xx: 6.6: remove redundant patch

Remove file 110-mtd-limit-OTP-nvmem-to-non-nand-devices.patch redundand after adding 440-mtd-don-t-look-for-OTP-legacy-NVMEM-cells-if-proper-.patch in dd78a59

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agokirkwood: 6.6: refresh patches
Mieczyslaw Nalewaj [Thu, 4 Apr 2024 20:46:01 +0000 (22:46 +0200)]
kirkwood: 6.6: refresh patches

Refresh patches for kernel 6.6.23 with make target/linux/refresh.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agoapm821xx: restore 6.1 config+patches
Christian Lamparter [Sat, 23 Mar 2024 09:33:47 +0000 (10:33 +0100)]
apm821xx: restore 6.1 config+patches

simply attached previous versions of the
config-6.1 and patches-6.1 directory.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
7 months agoapm821xx: add 6.6 testing kernel
Christian Lamparter [Sat, 23 Mar 2024 09:32:14 +0000 (10:32 +0100)]
apm821xx: add 6.6 testing kernel

refreshed kernel config + patches

otherwise same as 6.1/5.15.

Tested on: WNDAP620, WNDAP660, MyBook Live Single, MR24, MX60, WNDR4700
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
7 months agoapm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access
Christian Lamparter [Sat, 23 Mar 2024 10:26:23 +0000 (11:26 +0100)]
apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access

With the default BUILD_BOT configuration on a linux 6.6 kernel,
the WNDR4700's kernel no longer fits into the alloted ~3.5MiB,
even with LZMA compression.

Bigger kernels are possible, but there's a problem with Netgear's
"bootcmd":

> if loadn_dniimg 0 0x180000 0x4e0000 && chk_dniimg 0x4e0000; then nand read 0x800000 0x180000 0x20000;bootm 0x500000 - 0x800040;else fw_recovery; fi"

This loads the dni-image starting offset 0x180000 from the NAND
flash (which is the DTB partition) to 0x4e0000 in the RAM. It then
checks whenever the provided image is "valid". If it is then it
reads the DTB again to 0x800000 in the RAM and starts the extraction
and boot process. (If the image wasn't valid then it starts the
automated firmware recovery).

The issues here are that first: the kernel image gets "squeezed"
between 0x500040 and 0x7fffff... And second, the decompressor
only has area 0x0 - 0x500000 for decompression.

Hence the image now requires to update the bootcmd by providing
new values (which have been successfully tested with the original
Netgear WNDR4700 v1.0.0.56 firmware) for the RAM locations and
make full use of the fact that loadn_dniimg loads the DTB as well.

This needs to be done only once. Just connect a serial adapter to
interface with uboot and overwrite (and save) the new bootcmd.

WARNING: The serial port needs a TTL/RS-232 3.3v level converter!

Steps:
 0. Power-off the WNDR4700
 1. Connect the serial interface (you need to open the WNDR4700)
 2. Power-up the WNDR4700
 3. Monitor the boot-sequence and hit "Enter"-key when it says:

  "Hit any key to stop autoboot" (Be quick, you have a ~2 second window)

 4. in the Prompt enter the following commands (copy & paste)

 setenv bootcmd "if loadn_dniimg 0 0x180000 0xce0000 && chk_dniimg 0xce0000; then bootm 0xd00000 - 0xce0040;else fw_recovery; fi"
 saveenv
 run bootcmd

Note: This new bootcmd will also unbrick devices that were bricked
by the bigger 4.19-6.1 kernels.

Note2: This method was tested with a WNDR4700. A big kernel with most
debug features enabled on v6.6.22 measured 4.30 MiB when compressed
with lzma. The uncompressed kernel is 12.34 MiB. This is over the 3 MiB,
the device reserves for the kernel... But it booted! For bigger kernels,
the device needs repartitioning of the the ubi partition due to the
kernel+dtb not fitting into the partition.

Note3: For initramfs development. I would advice to load the initramfs
images to 0x800000 (or higher). i.e.: tftp 800000 wndr4700.bin

Note4: the fw_recovery uboot command to transfer the factory image to
the flash still works.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
7 months agoramips: 6.6: set testing kernel
Mieczyslaw Nalewaj [Wed, 13 Mar 2024 01:15:14 +0000 (02:15 +0100)]
ramips: 6.6: set testing kernel

Allow selecting 6.6 as testing kernel on ramips.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agoramips: 6.6: refresh kernel config
Mieczyslaw Nalewaj [Mon, 1 Apr 2024 14:56:34 +0000 (16:56 +0200)]
ramips: 6.6: refresh kernel config

Refresh kernel config.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agoramips: adjusted pinctrl-aw9523 for kernel 6.6
Mieczyslaw Nalewaj [Fri, 15 Mar 2024 08:08:09 +0000 (09:08 +0100)]
ramips: adjusted pinctrl-aw9523 for kernel 6.6

Compatiblity with kernel 6.6 for Awinic AW9523B i2c pin controller driver.
It follows the kernel patch: i2c: Drop legacy callback .probe_new() (https://github.com/torvalds/linux/commit/5eb1e6e459cfa025f79c43014f66ff62a55542f1)
and kernel patch: gpiolib: Get rid of not used of_node member (https://github.com/torvalds/linux/commit/70d0fc4288dabd65025fde7774b4f9262afa9034)

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agoramips: mt7620: alignment with updated snd_soc_dai_driver structure
Mieczyslaw Nalewaj [Fri, 15 Mar 2024 07:27:14 +0000 (08:27 +0100)]
ramips: mt7620: alignment with updated snd_soc_dai_driver structure

Fix error: 'struct snd_soc_dai_driver' has no member named 'remove'
It follows the kernel patch: ASoC: soc-dai.h: remove unused call back functions (https://github.com/torvalds/linux/commit/446b31e894935ebbcf84302061a4e0e2efb2368f)

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
7 months agogeneric: fix detect_memory_region() function
Shiji Yang [Wed, 13 Mar 2024 19:39:01 +0000 (03:39 +0800)]
generic: fix detect_memory_region() function

This patch fixes the broken detect_memory_region() function on
6.6 kernel.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
7 months agoramips: 6.6: fix net drivers compatibility
Mieczyslaw Nalewaj [Wed, 13 Mar 2024 01:24:11 +0000 (02:24 +0100)]
ramips: 6.6: fix net drivers compatibility

Fix compatibility of ralink net drivers with kernel 6.6.
It follows the kernel patch: u64_stats: Streamline the implementation (https://github.com/torvalds/linux/commit/44b0c2957adc62b86fcd51adeaf8e993171b)

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>