Commit Graph

6415 Commits

Author SHA1 Message Date
Christian Marangi
390d8c540e generic: 6.1: backport FIELD_PREP_CONST patch
Backport FIELD_PREP_CONST patch needed for at803x backport patches to
correctly compile and work.

This MACRO is needed to treat values derived from FIELD_PREP usage as
const to be used by switch case or other needed usage.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-01-18 11:00:57 +08:00
Christian Marangi
386201a323 generic: 6.1: renumber MediaTek SGMII PCS patch
Renumber MediaTek SGMII PCS patch to make space for upcoming at803x
backport patches.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-01-18 10:58:12 +08:00
Chen Minqiang
93fc272fcb kernel: ksmbd: only v2 leases handle the directory
This backport a fix for ksmbd.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2024-01-18 10:56:14 +08:00
Miles Poupart
5ed3a14e0d
bpf-headers: Fix download URL with kernel 6.1 (#11794)
This fixes the download of the kernel 5.15 for the bpf-headers when
kernel 6.1 is build for the target.

Even if kernel 6.1 was selected for the target we still use kernel 5.15
for the bpf-headers. The download script tried to download the 5.15
kernel from the 6.x directory on kernel,org and this failed. Define
PKG_SOURCE_URL based on PKG_PATCHVER and not KERNEL_BASE like done in
kernel.mk.

Without this change it tries to download the kernel from this URL:
https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-5.15.129.tar.xz

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-01-17 08:09:51 +08:00
aakkll
eb030b2124
kernel: bump 5.4 to 5.4.267 (#11795) 2024-01-17 01:28:41 +08:00
coolsnowwolf
9d7e32349c kernel: bump 6.1 to 6.1.73 2024-01-16 23:00:01 +08:00
Miles Poupart
19dba8a52e
dwarves: bump to 1.25 (#11793)
* dwarves: bump to 1.25

* tools: update elf.h

OpenWrt contains a 2012 copy of glibc's elf.h, which predates the
introduction of some newer architectures like Arm64 and RISC-V.

Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile
(when virtualization/KVM is enabled) which requires EM_AARCH64 to be
defined.

arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf':
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64'
  undeclared (first use in this function); did you mean 'EM_IA_64'?
  289 |  assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u");
      |                                           ^~~~~~~~~~

Update the copy of elf.h from the latest glibc to fix this.

Compile-tested: ath79, armvirt, mpc85xx, x86
Run-tested: armvirt

Signed-off-by: Mathew McBride <matt@traverse.com.au>

---------

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Co-authored-by: Mathew McBride <matt@traverse.com.au>
2024-01-16 22:48:52 +08:00
coolsnowwolf
32a89b611e generic: fix kernel 6.1 FLOWOFFLOAD for iptables support 2024-01-16 22:28:12 +08:00
coolsnowwolf
e302ace38d generic: refresh xt_FLOWOFFLOAD patch with new API 2024-01-15 17:40:44 +08:00
aakkll
cac1207d80 kernel: bump 6.1 to 6.1.72 (#11769) 2024-01-15 17:29:43 +08:00
coolsnowwolf
156a1b67dd netsupport.mk: add missing Kconfig for sched 2024-01-15 17:28:00 +08:00
coolsnowwolf
4ad82acf0e revert: package: adds pcre2 to base 2024-01-15 02:43:54 +08:00
coolsnowwolf
766b0bc369 Version update to R24.1.13 2024-01-15 02:37:48 +08:00
coolsnowwolf
1f7b499eb1 Revert "kernel: bump 6.1 to 6.1.72 (#11769)"
This reverts commit 2c67f6832d.
2024-01-15 02:15:50 +08:00
coolsnowwolf
945b472e91
Update README.md loongarch64 info 2024-01-15 01:40:12 +08:00
coolsnowwolf
c2b9dbf31a loongarch64: add wireless support by default 2024-01-15 01:27:42 +08:00
coolsnowwolf
c24837295d mac80211: add loongarch64 and kernle 6.6 support 2024-01-15 01:15:20 +08:00
coolsnowwolf
f1803bc468 loongarch64: fix image build 2024-01-14 23:35:58 +08:00
coolsnowwolf
4fb7370e09 generic: fix loogarch64 kernel modules build 2024-01-14 23:16:29 +08:00
coolsnowwolf
eadf20fda4 toolchain/musl: add loogarch64 support 2024-01-14 22:45:29 +08:00
coolsnowwolf
f4405a9597 tools/zstd: update to 1.5.5 2024-01-14 21:47:34 +08:00
aakkll
2c67f6832d
kernel: bump 6.1 to 6.1.72 (#11769) 2024-01-14 18:08:32 +08:00
coolsnowwolf
6c05d9908c package: fix compilation with musl 1.2.4 2024-01-13 23:21:42 +08:00
coolsnowwolf
b1816c7d0c gpio-button-hotplug: fix kernel 5.4 support 2024-01-13 13:50:40 +08:00
coolsnowwolf
ce521963da package: adds pcre2 to base 2024-01-13 13:43:43 +08:00
coolsnowwolf
648202bb8a e2fsprogs: Update to 1.45.6 2024-01-13 13:23:49 +08:00
coolsnowwolf
87b3c3e105 kernel: bump 5.4 to 5.4.266 2024-01-13 12:57:22 +08:00
coolsnowwolf
bfb12d78cd toolchain/musl: update to 1.2.4 2024-01-12 14:20:18 +08:00
coolsnowwolf
51459ab19e toolchain: gdb: Add optional python support 2024-01-12 13:28:00 +08:00
coolsnowwolf
f426fce6c1 video.mk: add AMD Displaycard (RX580) support for loongarch64 2024-01-12 10:34:28 +08:00
coolsnowwolf
a5a63865ff target: add loongarch64 support 2024-01-12 10:23:48 +08:00
coolsnowwolf
b055b3b409 generic: init linux kernel 6.6 support 2024-01-12 10:18:22 +08:00
coolsnowwolf
c6c5c79e3d target.mk: add GRUB2 EFI support for loongarch64 2024-01-12 10:13:05 +08:00
coolsnowwolf
9c8d196759 toolchain/gcc: add loongarch64 new target 2024-01-11 21:14:49 +08:00
coolsnowwolf
253878b854 include: add loongarch64 new target 2024-01-11 20:56:50 +08:00
coolsnowwolf
4103edf7b6 tools: add util-linux 2024-01-11 20:45:33 +08:00
coolsnowwolf
01edff43e4 gpio-button-hotplug: fix kernel 6.2+ build failure 2024-01-11 20:38:46 +08:00
coolsnowwolf
29c2367cac cryptodev-linux: update to 1.13 2024-01-11 20:36:11 +08:00
coolsnowwolf
7fa5e13df5 openssl: add linux64-loongarch64 into the targets list 2024-01-11 20:31:15 +08:00
coolsnowwolf
39d6ad7040 grub2: add loongarch64 support 2024-01-11 20:18:46 +08:00
coolsnowwolf
df3c79e2b4 toolchain/binutils: switch to version 2.40 by default 2024-01-11 20:12:59 +08:00
coolsnowwolf
c0bfa64daa toolchain: glibc: Update to glibc 2.37 2024-01-11 11:40:01 +08:00
coolsnowwolf
229e5e43f2 binutils: update to 2.41 2024-01-11 11:30:49 +08:00
coolsnowwolf
321f1572f4 toolchain/binutils: add support for version 2.41 2024-01-11 11:27:44 +08:00
coolsnowwolf
be9cb16c86 toolchain: gcc: add support for GCC 13 2024-01-11 11:22:30 +08:00
David Bauer
cbcb695937 mac80211: avoid crashing on invalid band info
Frequent crashes have been observed on MT7916 based platforms. While the
root of these crashes are currently unknown, they happen when decoding
rate information of connected STAs in AP mode. The rate-information is
associated with a band which is not available on the PHY.

Check for this condition in order to avoid crashing the whole system.
This patch should be removed once the roout cause has been found and
fixed.

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-01-10 22:24:11 +08:00
Felix Fietkau
6f40d7387d mediatek: fix BPI-R3 wifi mac address
Setting/clearing bits on the first byte of the mac address causes collisions
when using multiple SSIDs on both PHYs. Change the allocation to alter the
last byte instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-01-10 22:18:51 +08:00
John Audia
135a4e9540 kernel: bump 5.15 to 5.15.146
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.146

All other patches automatically rebased.

Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-01-09 22:58:11 +08:00
aiamadeus
89e25b571e mediatek: add missing nmbm for RG-X60 Pro
The original firmware has nmbm enabled.
2024-01-09 22:51:07 +08:00
Ashley Lee
e2a09540eb
mediatek: add support for Ruijie RG-X60 Pro (#11745)
Informations:
- SoC       : MediaTek MT7986A 2.0GHz
- RAM       : DDR3 512MiB (W634GU6QB)
- Flash     : SPI-NAND 128 MiB (W25N01GVZEIG)
- WLAN      : MediaTek MT7986A integration dual-band WiFi 6
  - 2.4 GHz : b/g/n/ax, MIMO 4x4
  - 5 GHz   : a/n/ac/ax, MIMO 4x4
- Ethernet  : 10/100/1000 Mbps x4 (MediaTek MT7531AE)
              2500Mbps x 1 (Realtek RTL8221B-VB-CG)
- UART      : through-hole on PCB
  - [J500] GND, TX, RX, 3.3V (115200n1)
- Buttons   : Mesh, Reset
- LEDs      : 1x Power (Blue)
                  1x Turbo (Purple)
- Power     : 12 VDC, 3 A

About MAC Address:
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| WAN     | 10:82:3D:XX:XX:9E | label     |
| LAN     | 10:82:3D:XX:XX:9F | label+1   |
| WLAN 2g | 10:82:3D:XX:XX:A0 | label+2   |
| WLAN 5g | 10:82:3D:XX:XX:A1 | label+3   |
+---------+-------------------+-----------+

Signed-off-by: Ashley Lee <code@emtips.net>
2024-01-05 18:30:25 +08:00