-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hid-tmff2 in NixOS #71
Comments
Hello, thanks a lot, greatly appreciated. I'd be happy to add a page to the wiki outlining integration into different distros. I really only use Debian myself and I don't think I can promise to keep integration stuff up to date, but as long as people open up issues whenever something goes out of date I don't see much of an issue with the idea. Just checking, but what do you mean that the rebuild crashes with error if |
NixOS handles building Nix...
building the system configuration...
these 8 derivations will be built:
/nix/store/xsq3h167wim46y23crky95s5j5nj9mc7-hid-tmff2-6.1.51.drv
/nix/store/2sl2afffcjvqv5f9nhc9j5cbgxd05sm0-kernel-modules.drv
/nix/store/4bbsf4jajjcpxgrfsz8ysfzcw315bgis-linux-6.1.51-modules.drv
/nix/store/7zpxihzvlhr0zvc6vs37gmdd25krsgay-linux-6.1.51-modules-shrunk.drv
/nix/store/sxvgk3wg0b5wnmd9gqi1qp1s5q649yjx-stage-1-init.sh.drv
/nix/store/j2szwpvy2bbcajhc46wc2d985y207f12-initrd-linux-6.1.51.drv
/nix/store/mwcx67bcxym09dfcwvmc9nksdwg5pn0v-boot.json.drv
/nix/store/njplhrxcp0z4xdl3xz9l30qnimy95q2h-nixos-system-frost-23.11pre521611.e56990880811.drv
building '/nix/store/xsq3h167wim46y23crky95s5j5nj9mc7-hid-tmff2-6.1.51.drv'...
unpacking sources
unpacking source archive /nix/store/y5s2incxwz9vx5hdymvhpc49k0gx5pm1-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
no configure script, doing nothing
building
build flags: SHELL=/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash O=\$\(buildRoot\) CC=/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0/bin/cc HOSTCC=/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0/bin/cc HOSTLD=/nix/store/cyb4bb44krf4ghw8qasa03sxi2k4g6a4-binutils-wrapper-2.40/bin/ld ARCH=x86_64 KDIR=/nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build
make -C hid-tminit KDIR="/nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build"
make[1]: Entering directory '/build/source/hid-tminit'
make -C /nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build M=/build/source/hid-tminit modules
CC [M] /build/source/hid-tminit/hid-tminit.o
MODPOST /build/source/hid-tminit/Module.symvers
CC [M] /build/source/hid-tminit/hid-tminit.mod.o
LD [M] /build/source/hid-tminit/hid-tminit.ko
BTF [M] /build/source/hid-tminit/hid-tminit.ko
Skipping BTF generation for /build/source/hid-tminit/hid-tminit.ko due to unavailability of vmlinux
make[1]: Leaving directory '/build/source/hid-tminit'
make -C /nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build M=/build/source modules
CC [M] /build/source/hid-tmff2.o
CC [M] /build/source/hid-tmt300rs.o
CC [M] /build/source/hid-tmt248.o
CC [M] /build/source/hid-tmtx.o
LD [M] /build/source/hid-tmff-new.o
MODPOST /build/source/Module.symvers
CC [M] /build/source/hid-tmff-new.mod.o
LD [M] /build/source/hid-tmff-new.ko
BTF [M] /build/source/hid-tmff-new.ko
Skipping BTF generation for /build/source/hid-tmff-new.ko due to unavailability of vmlinux
installing
install flags: SHELL=/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash O=\$\(buildRoot\) CC=/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0/bin/cc HOSTCC=/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0/bin/cc HOSTLD=/nix/store/cyb4bb44krf4ghw8qasa03sxi2k4g6a4-binutils-wrapper-2.40/bin/ld ARCH=x86_64 KDIR=/nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build INSTALL_MOD_PATH=/nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51 install
make -C hid-tminit KDIR="/nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build" install
make[1]: Entering directory '/build/source/hid-tminit'
make -C /nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build M=/build/source/hid-tminit modules_install
INSTALL /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51/extra/hid-tminit.ko
XZ /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51/extra/hid-tminit.ko.xz
DEPMOD /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/build/source/hid-tminit'
make -C /nix/store/paa5039bzjz3afd451qah4bm3cx73a2l-linux-6.1.51-dev/lib/modules/6.1.51/build M=/build/source modules_install
INSTALL /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51/extra/hid-tmff-new.ko
XZ /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51/extra/hid-tmff-new.ko.xz
DEPMOD /nix/store/d1c7blhiji1clxa33v9by0j7bgi0f6k1-hid-tmff2-6.1.51/lib/modules/6.1.51
Warning: modules_install: missing 'System.map' file. Skipping depmod.
depmod -A
depmod: ERROR: could not open directory /lib/modules/6.1.51: No such file or directory
depmod: ERROR: could not open directory /lib/modules/6.1.51: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
make: *** [Makefile:8: install] Error 1
error: builder for '/nix/store/xsq3h167wim46y23crky95s5j5nj9mc7-hid-tmff2-6.1.51.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/2sl2afffcjvqv5f9nhc9j5cbgxd05sm0-kernel-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4bbsf4jajjcpxgrfsz8ysfzcw315bgis-linux-6.1.51-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/njplhrxcp0z4xdl3xz9l30qnimy95q2h-nixos-system-frost-23.11pre521611.e56990880811.drv' failed to build |
I added a page to the wiki with a reference to this issue. For now I think referencing is the better option, if the information goes out of date I might copy things over and add some note about this issue being out of date. Good to know that NixOS handles the Thanks again, closing as completed. |
I have edited the derivation to use your repo and patch to remove the depmod lines so that it stays completely based of github/Kimplul/hid-tmff2. Any user that might want to use this might have to update the |
In order to use this driver in NixOS, one would have to make a derivation for the module. I was going through the process and was able to successfully add it to NixOS. The following file is needed to use the module.
Module ( hid-tmff2.nix ) :
Add this to config to load the module ( configuration.nix ) :
Reference: https://nixos.wiki/wiki/Linux_kernel
Linux kernel module for Thrustmaster T300RS and T248 wheels
I had been working around 3 days of my time to find this and sort this out (mostly because im a noob in NixOS). I hope the OP would add this information for NixOS users in the Wiki or someone can find this Issue to use this.
EDIT: I have opened a PR on nixpkgs for hid-tmff2. [MERGED]
The text was updated successfully, but these errors were encountered: