2
0

gl-ar750: update to newer kernel + openwrt

this device is not (yet?) in mainline, but openwrt 25.12 has
the right patches to make it work with linux 6.12
This commit is contained in:
2026-03-28 21:15:51 +00:00
parent e8a60d2860
commit 5af28615f1
3 changed files with 110 additions and 3 deletions

View File

@@ -60,7 +60,7 @@
}:
let
inherit (lib) mkIf;
openwrt = pkgs.openwrt;
openwrt = pkgs.openwrt_25_12;
firmwareBlobs = pkgs.pkgsBuildBuild.fetchgit {
url = "https://git.codelinaro.org/clo/ath-firmware/ath10k-firmware";
rev = "5d63529ffc6e24974bc7c45b28fd1c34573126eb";
@@ -175,13 +175,14 @@
appendDTB = true;
};
kernel = {
# Mainline linux 5.19 doesn't have device-tree support for
# Mainline linux 6.12 doesn't have device-tree support for
# this device or even for the SoC, so we use the extensive
# OpenWrt kernel patches
src = openwrt.kernelSrc;
version = openwrt.kernelVersion;
extraPatchPhase = ''
${openwrt.applyPatches.ath79}
sed -i.bak -e '\,include <linux/hw_random.h>,a #include <linux/gpio/driver.h>' drivers/net/wireless/ath/ath9k/ath9k.h # context reqd for next patch
patch -p1 < ${openwrt.src}/package/kernel/mac80211/patches/ath9k/552-ath9k-ahb_of.patch
'';
config = {