From 026b816a5b0ab92ff35a95a15c582bb6757119dd Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sun, 21 Jan 2024 00:57:48 -0800 Subject: [PATCH] feat: Add Realtek RTL8814AU driver (#111) --- Containerfile.common | 1 + README.md | 1 + build-kmod-rtl8814au.sh | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100755 build-kmod-rtl8814au.sh diff --git a/Containerfile.common b/Containerfile.common index 951e6b5d..3840cc38 100644 --- a/Containerfile.common +++ b/Containerfile.common @@ -47,6 +47,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \ /tmp/build-kmod-nct6687d.sh && \ /tmp/build-kmod-openrazer.sh && \ /tmp/build-kmod-ryzen-smu.sh && \ + /tmp/build-kmod-rtl8814au.sh && \ /tmp/build-kmod-v4l2loopback.sh && \ /tmp/build-kmod-VirtualBox.sh && \ /tmp/build-kmod-wl.sh && \ diff --git a/README.md b/README.md index 40e07c03..f260b584 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Feel free to PR more kmod build scripts into this repo! - [nvidia](https://rpmfusion.org/Howto/NVIDIA) - nvidia GPU drivers built from rpmfusion - [openrazer](https://openrazer.github.io/) - kernel module adding additional features to Razer hardware (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [openrgb](https://gitlab.com/CalcProgrammer1/OpenRGB/-/raw/master/OpenRGB.patch) - kernel module with i2c-nct6775 and patched i2c-piix4 for use with OpenRGB (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) +- rtl8814au - Realtek RTL8814AU Driver (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [ryzen_smu](https://gitlab.com/leogx9r/ryzen_smu) - A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [steamdeck](https://lkml.org/lkml/2022/2/5/391) - platform driver for Valve's Steam Deck handheld PC (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/)) - [v4l2loopback](https://github.com/umlaeute/v4l2loopback) - allows creating "virtual video devices" diff --git a/build-kmod-rtl8814au.sh b/build-kmod-rtl8814au.sh new file mode 100755 index 00000000..e50bfd87 --- /dev/null +++ b/build-kmod-rtl8814au.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -oeux pipefail + +cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/ + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + +rpm-ostree install \ + akmod-rtl8814au-*.fc${RELEASE}.${ARCH} +akmods --force --kernels "${KERNEL}" --kmod rtl8814au +modinfo /usr/lib/modules/${KERNEL}/extra/rtl8814au/rtl8814au.ko.xz > /dev/null \ +|| (find /var/cache/akmods/rtl8814au/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo