Skip to content

Commit 14a14bd

Browse files
authored
feat: Add nct6687 kernel module for certain B550 chipset motherboards (#65)
1 parent 48bf5aa commit 14a14bd

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Containerfile.common

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN /tmp/build-ublue-os-akmods-addons.sh
2929
RUN /tmp/build-kmod-evdi.sh
3030
RUN /tmp/build-kmod-gasket.sh
3131
RUN /tmp/build-kmod-gcadapter_oc.sh
32+
RUN /tmp/build-kmod-nct6687d.sh
3233
RUN /tmp/build-kmod-openrazer.sh
3334
RUN /tmp/build-kmod-openrgb.sh
3435
RUN /tmp/build-kmod-ryzen-smu.sh

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Feel free to PR more kmod build scripts into this repo!
2828
- [evdi](www.displaylink.com) - kernel module required for use of displaylink (akmod from [negativo17 multimedia repo](https://negativo17.org/multimedia/)
2929
- [gasket/apex](https://github.com/google/gasket-driver) - kernel module for Coral Gasket Driver, allowing usage of the Coral EdgeTPU on Linux systems (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/))
3030
- [gcadapter_oc](https://github.com/hannesmann/gcadapter-oc-kmod) - kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/))
31+
- [nct6687d](https://github.com/Fred78290/nct6687d) - Linux kernel module for Nuvoton NCT6687-R found on AMD B550 chipset motherboards (akmod from [ublue-os/akmods copr](https://copr.fedorainfracloud.org/coprs/ublue-os/akmods/))
3132
- [nvidia](https://rpmfusion.org/Howto/NVIDIA) - nvidia GPU drivers built from rpmfusion
3233
- [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/))
3334
- [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/))

build-kmod-nct6687d.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
set -oeux pipefail
4+
5+
cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/
6+
7+
ARCH="$(rpm -E '%_arch')"
8+
KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
9+
RELEASE="$(rpm -E '%fedora')"
10+
11+
12+
### BUILD nct6687d (succeed or fail-fast with debug output)
13+
rpm-ostree install \
14+
akmod-nct6687d-*.fc${RELEASE}.${ARCH}
15+
akmods --force --kernels "${KERNEL}" --kmod nct6687d
16+
modinfo /usr/lib/modules/${KERNEL}/extra/nct6687d/nct6687.ko.xz > /dev/null \
17+
|| (find /var/cache/akmods/nct6687d/ -name \*.log -print -exec cat {} \; && exit 1)
18+
19+
rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo

0 commit comments

Comments
 (0)