From 2d2603d591d4127df5cc1d4d9e4fcff1eca5835f Mon Sep 17 00:00:00 2001 From: Alex Borian Date: Fri, 25 Oct 2024 18:35:15 -0500 Subject: [PATCH 1/3] feat: added it87-extras for improved lm-sensors compatibility with some Gigabyte motherboards --- README.md | 1 + build-kmod-it87-extras.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 build-kmod-it87-extras.sh diff --git a/README.md b/README.md index 8a264f44..4b88fc63 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ The `nvidia` stream image contains | [evdi](www.displaylink.com) | extra | kernel module required for use of displaylink | [negativo17 - fedora-multimedia](https://negativo17.org/) | | [facetimehd](https://github.com/patjak/facetimehd/) | extra | kernel module Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam | [![badge](https://copr.fedorainfracloud.org/coprs/mulderje/facetimehd-kmod/package/facetimehd-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/mulderje/facetimehd-kmod/package/facetimehd-kmod) | | [gcadapter_oc](https://github.com/hannesmann/gcadapter-oc-kmod) | extra | kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/gcadapter_oc-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/gcadapter_oc-kmod) | +| [it87-extras](https://github.com/frankcrawford/it87) | extra | Linux driver for ITE sensors and PWM controllers with expanded Gigabyte motherboard support | [![badge](https://copr.fedorainfracloud.org/coprs/grandpares/it87-extras/package/it87-extras-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/grandpares/it87-extras/package/it87-extras-kmod/) | | [kvmfr](https://github.com/gnif/looking-glass) | common | KVM framebuffer relay kernel module for use with Looking Glass | [![badge](https://copr.fedorainfracloud.org/coprs/hikariknight/looking-glass-kvmfr/package/kvmfr-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/hikariknight/looking-glass-kvmfr/package/kvmfr-kmod) | | [nct6687d](https://github.com/Fred78290/nct6687d) | extra | Linux kernel module for Nuvoton NCT6687-R found on AMD B550 chipset motherboards | [![badge](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/nct6687d-kmod/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/package/nct6687d-kmod) | | [nvidia](https://negativo17.org/nvidia-driver/) | nvidia | nvidia GPU drivers | [negativo17 - fedora-nvidia](https://negativo17.org/) | diff --git a/build-kmod-it87-extras.sh b/build-kmod-it87-extras.sh new file mode 100755 index 00000000..5ea8a7eb --- /dev/null +++ b/build-kmod-it87-extras.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +set -oeux pipefail + +ARCH="$(rpm -E '%_arch')" +KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" +RELEASE="$(rpm -E '%fedora')" + + +curl -LsSf -o /etc/yum.repos.d/_copr_grandpares-it87-extras.repo "https://copr.fedorainfracloud.org/coprs/grandpares/it87-extras/repo/fedora-${COPR_RELEASE}/grandpares-it87-extras--fedora-${COPR_RELEASE}.repo" + +### BUILD it87-extras (succeed or fail-fast with debug output) +dnf install -y \ + "akmod-it87-extras-*.fc${RELEASE}.${ARCH}" +akmods --force --kernels "${KERNEL}" --kmod it87-extras +modinfo "/usr/lib/modules/${KERNEL}/extra/it87-extras/it87-extras.ko.xz" > /dev/null \ +|| (find /var/cache/akmods/it87-extras/ -name \*.log -print -exec cat {} \; && exit 1) + +rm -f /etc/yum.repos.d/_copr_grandpares-it87-extras.repo From a7d7e244e4019d6e0a141c54786849f8535efa36 Mon Sep 17 00:00:00 2001 From: Alex Borian Date: Sun, 27 Oct 2024 22:29:02 -0500 Subject: [PATCH 2/3] fix: variable naming --- build-kmod-it87-extras.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-kmod-it87-extras.sh b/build-kmod-it87-extras.sh index 5ea8a7eb..ddc4f640 100755 --- a/build-kmod-it87-extras.sh +++ b/build-kmod-it87-extras.sh @@ -7,7 +7,7 @@ KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}') RELEASE="$(rpm -E '%fedora')" -curl -LsSf -o /etc/yum.repos.d/_copr_grandpares-it87-extras.repo "https://copr.fedorainfracloud.org/coprs/grandpares/it87-extras/repo/fedora-${COPR_RELEASE}/grandpares-it87-extras--fedora-${COPR_RELEASE}.repo" +curl -LsSf -o /etc/yum.repos.d/_copr_grandpares-it87-extras.repo "https://copr.fedorainfracloud.org/coprs/grandpares/it87-extras/repo/fedora-${RELEASE}/grandpares-it87-extras--fedora-${RELEASE}.repo" ### BUILD it87-extras (succeed or fail-fast with debug output) dnf install -y \ From 9fd699a6c114f7d085c4da682c891a3869c24c86 Mon Sep 17 00:00:00 2001 From: Alex Borian Date: Sat, 2 Nov 2024 17:03:47 -0500 Subject: [PATCH 3/3] fix: Update Containerfile.extra --- Containerfile.extra | 1 + 1 file changed, 1 insertion(+) diff --git a/Containerfile.extra b/Containerfile.extra index 8a3b8edd..76a9d5cb 100644 --- a/Containerfile.extra +++ b/Containerfile.extra @@ -46,6 +46,7 @@ RUN --mount=type=cache,dst=/var/cache/dnf \ /tmp/build-kmod-bmi260.sh && \ /tmp/build-kmod-facetimehd.sh && \ /tmp/build-kmod-gcadapter_oc.sh && \ + /tmp/build-kmod-it87-extras.sh && \ /tmp/build-kmod-nct6687d.sh && \ /tmp/build-kmod-rtl8814au.sh && \ /tmp/build-kmod-rtl88xxau.sh && \