Package Details: nct6687d-dkms-git r78.df1565a-2

Git Clone URL: https://aur.archlinux.org/nct6687d-dkms-git.git (read-only, click to copy)
Package Base: nct6687d-dkms-git
Description: Nuvoton module for NCT6687-R synced with latest upstream kernel.
Upstream URL: https://github.com/Fred78290/nct6687d
Keywords: nct6687
Licenses: GPLv2
Submitter: benlypan
Maintainer: darose
Last Packager: darose
Votes: 10
Popularity: 0.109249
First Submitted: 2020-11-17 07:47 (UTC)
Last Updated: 2023-07-24 23:47 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Pinned Comments

benlypan commented on 2020-11-17 07:59 (UTC)

run modprobe nct6687 to load the module and then run sensors to get the outputs.

Latest Comments

1 2 Next › Last »

darose commented on 2024-10-31 23:53 (UTC)

Builds for me:

[root@darsys22 ~]# dkms install  nct6687d-dkms-git/r107.f45b72a -k 6.11.5-arch1-1

Sign command: /usr/lib/modules/6.11.5-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)... done.
Signing module /var/lib/dkms/nct6687d-dkms-git/r107.f45b72a/build/nct6687.ko
Cleaning build area... done.

Installing /usr/lib/modules/6.11.5-arch1-1/updates/dkms/nct6687.ko.zst
Running depmod... done.
[root@darsys22 ~]# modprobe nct6687
[root@darsys22 ~]# lsmod | grep nct6
nct6687                32768  0

I'm guessing you probably need to upgrade: r104.0ee35ed -> r107.f45b72a

RAMChYLD commented on 2024-10-31 16:41 (UTC) (edited on 2024-10-31 16:43 (UTC) by RAMChYLD)

Will no longer build with latest kernel (6.11).

DKMS make.log for nct6687d-dkms-git-r104.0ee35ed for kernel 6.11.5-zen1-1-zen (x86_64)
Fri Nov  1 00:33:08 +08 2024
make: Entering directory '/usr/lib/modules/6.11.5-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.o
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:40:9: warning: "MIN" redefined
   40 | #define MIN(a,b) (((a)<(b))?(a):(b))
      |         ^~~
In file included from ./include/linux/ioport.h:15,
                 from ./include/linux/acpi.h:12,
                 from /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:27:
./include/linux/minmax.h:329:9: note: this is the location of the previous definition
  329 | #define MIN(a,b) __cmp(min,a,b)
      |         ^~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:41:9: warning: "MAX" redefined
   41 | #define MAX(a,b) (((a)>(b))?(a):(b))
      |         ^~~
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:1171:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Wincompatible-pointer-types]
 1171 |         .remove = nct6687_remove,
      |                   ^~~~~~~~~~~~~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:1171:19: note: (near initialization for ‘nct6687_driver.<anonymous>.remove’)
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.o] Error 1
make[1]: *** [/usr/lib/modules/6.11.5-zen1-1-zen/build/Makefile:1924: /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/usr/lib/modules/6.11.5-zen1-1-zen/build'

darose commented on 2023-07-22 00:14 (UTC)

Anyone interested in adopting this orphan? I guess I'll step up if no one else does, but kernel modules aren't really my strong suit.

barrybingo commented on 2023-06-17 11:29 (UTC)

To get this package working apply this patch

diff --git a/PKGBUILD b/PKGBUILD
index 568b502..95b4b5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Frederic Boltz <frederic.boltz@gmail.com>

 pkgname=nct6687d-dkms-git
-pkgver=r13.b7a988d
+pkgver=r78.df1565a
 pkgrel=2
 pkgdesc="Nuvoton module for NCT6687-R synced with latest upstream kernel."
 arch=('i686' 'x86_64')
@@ -9,10 +9,10 @@ url="https://github.com/Fred78290/nct6687d"
 license=('GPLv2')
 makedepends=('git')
 depends=('dkms')
-source=("${pkgname}::git://github.com/Fred78290/nct6687d.git"
+source=("${pkgname}::git+https://github.com/Fred78290/nct6687d"
         "dkms.conf.in")
 sha256sums=('SKIP'
-            '22c57de66af431804e9f4e9e4fd435f6f24d7d0b5b562b5574b331f5919e5915')
+            'SKIP')

 pkgver() {
    cd "${pkgname}"
@@ -26,7 +26,10 @@ package() {
    install -dm755 "${pkgdir}/usr/src/${pkgname}-${pkgver}"
    cp -a LICENSE README* *.c "${pkgdir}/usr/src/${pkgname}-${pkgver}"

-   sed -e "s/(shell uname -r)/{TARGET}/" Makefile > \
+   commitcount=$(git rev-list --all --count)
+   commithash=$(git rev-parse --short HEAD)
+
+   sed -e "s/(shell uname -r)/{TARGET}/" -e "s/commitcount.*=.*/commitcount := $commitcount/" -e "s/commithash.*=.*/commithash := $commithash/" Makefile > \
        "${pkgdir}/usr/src/${pkgname}-${pkgver}/Makefile"

    sed -e "s/@PACKAGE_VERSION@/${pkgver}/" "${srcdir}/dkms.conf.in" > \
diff --git a/dkms.conf.in b/dkms.conf.in
index 481b145..63fc621 100644
--- a/dkms.conf.in
+++ b/dkms.conf.in
@@ -4,6 +4,6 @@ AUTOINSTALL="yes"

 BUILT_MODULE_NAME[0]="nct6687"
 DEST_MODULE_LOCATION[0]="/updates"
-MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"
+#MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"

 #POST_REMOVE="rmdir /usr/lib/modules/${kernelver}/updates"
\ No newline at end of file

yar85 commented on 2022-06-24 19:58 (UTC)

@quark23, this error message comes from git. Removing temporary dir (/var/tmp/pamac-build-$USERNAME/nct6687d-dkms-git/) beforehand might help.

quark23 commented on 2022-06-02 16:41 (UTC) (edited on 2022-06-02 16:43 (UTC) by quark23)

if I modify ::git: to ::git+https: then I get fatal: this operation must be run in a work tree
with the stock config it hangs at Cloning into bare repository

pipes80 commented on 2022-04-21 20:43 (UTC)

==> ERRORE: Impossibile scaricare dal repository nct6687d-dkms-git git

I take this error

pipes80 commented on 2022-04-21 20:38 (UTC)

==> ERRORE: Impossibile scaricare dal repository nct6687d-dkms-git git

I take this error

yar85 commented on 2022-04-16 17:47 (UTC) (edited on 2023-02-18 23:21 (UTC) by yar85)

Manjaro users can also make it installable by making the following changes:

  • in PKGBUILD replace source=... and sha256sums=... with
source=("${pkgname}::git+https://github.com/Fred78290/nct6687d" "dkms.conf.in")
sha256sums=('SKIP' 'SKIP')
  • in dkms.conf.in comment out the line as shallpion said:
# MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"

2022-06-24: This method still works for me with kernel 5.18.5-1-MANJARO (rebuilt the package using the same steps).
2023-02-19: Another rebuild w/ kernel 6.1.11-1-MANJARO, no issues.

shallpion commented on 2022-03-11 09:02 (UTC)

For me I had to comment out this line

MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"

to make it install-able. Otherwise I would receive:

(2/2) Install DKMS modules
==> dkms install --no-depmod nct6687d-dkms-git/r38.77aa637 -k 5.16.13-arch1-1
Error!  Build of nct6687.ko failed for: 5.16.13-arch1-1 (x86_64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/nct6687d-dkms-git/r38.77aa637/build for more information.
==> WARNING: `dkms install --no-depmod nct6687d-dkms-git/r38.77aa637 -k 5.16.13-arch1-1' exited 7