Skip to content

Instantly share code, notes, and snippets.

@greenbigfrog
Last active February 16, 2023 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save greenbigfrog/26f948c9d86f1cb2fd23bfeaa23ca068 to your computer and use it in GitHub Desktop.
Save greenbigfrog/26f948c9d86f1cb2fd23bfeaa23ca068 to your computer and use it in GitHub Desktop.
PACKAGE_NAME=nct6775
PACKAGE_VERSION=wim
BUILT_MODULE_NAME[0]="nct6775"
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon"
AUTOINSTALL=yes
PATCH[0]="nct6775-wim.patch"
obj-m := nct6775.o
mkdir /usr/src/nct6775-wim
cd /usr/src/nct6775-wim
mkdir patches
wget -O patches/nct6775-wim.patch https://bugzilla.kernel.org/attachment.cgi?id=298703
sudo awk -i inplace '{gsub(/drivers\/hwmon\//,"");print}' patches/nct6775-wim.patch
wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/lm75.h
wget https://github.com/torvalds/linux/raw/master/drivers/hwmon/nct6775.c
# grab files above
dkms install nct6775/wim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment