Git Product home page Git Product logo

Comments (18)

gotzl avatar gotzl commented on June 8, 2024 1

Yes, sure ;) I'll have to check how other external-module maintainers handle this case ^^ Until then, I'd like to keep this open...

from hid-fanatecff.

SynthetikzZ avatar SynthetikzZ commented on June 8, 2024

To get your wheel work in a VM you have to setup iommu hardware passthrough (hardware has to support it) and in windows the fanatec driver has to be uninstalled. Also you have to passthrough your GPU to get any game inside the VM run at a acceptable performance, if you only have 1 GPU that is not possible from a windows host.

You better off trying it dualbooting from Linux

I use the CSL DD and Linux support thanks to this driver is not 100% complete but it's complete enough for me not needing windows at all anymore.

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

To get your wheel work in a VM you have to setup iommu hardware passthrough (hardware has to support it) and in windows the fanatec driver has to be uninstalled. Also you have to passthrough your GPU to get any game inside the VM run at a acceptable performance, if you only have 1 GPU that is not possible from a windows host.

You better off trying it dualbooting from Linux

I use the CSL DD and Linux support thanks to this driver is not 100% complete but it's complete enough for me not needing windows at all anymore.

Thanks for the quick response! I actually don't need it to un on my VM. I am just going through the motions to prep for when I do it for real on the above mentioned dual boot system at work. I am hoping this issue doesn't occur on the dual boot. It's hard to say if the issue is my configuration or just the fact that I am running on a VM. I looked at the other issues posted and found one quite similar (#35). The answer said to make sure headers/sources were pointed to in the /lib/modules//build folder. That folder has an "include" folder which is my only indication that headers may be pointed to there. Sources did not seem to be visible. I may have to do what they suggested which is to run the following command (probably, they said): sudo apt install linux-headers-$(uname -r).

If that rings a bell, let me know if you can, but again, thanks for the quick response - much appreciated!

Sean

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

So, I ran that command, sudo apt install linux-headers-$(uname -r) and the result was that it was aleady up to date and the result from make command was still that same :-(

from hid-fanatecff.

gotzl avatar gotzl commented on June 8, 2024

Hmm.. that's strange.. Can you show the output of ls /usr/src/linux-headers-6.2.0-39-generic?

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

Hmm.. that's strange.. Can you show the output of ls /usr/src/linux-headers-6.2.0-39-generic?

Sure thing:

sean@sean-WINTERMUTE:/mnt$ ls /usr/src/linux-headers-6.2.0-39-generic
arch   certs   Documentation  fs       init      ipc     Kconfig  lib       mm              net   samples  security  tools   usr
block  crypto  drivers        include  io_uring  Kbuild  kernel   Makefile  Module.symvers  rust  scripts  sound     ubuntu  virt

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

maybe a better view:

drwxr-xr-x 3 root root    4096 Dec 13 10:41 arch
lrwxrwxrwx 1 root root      39 Nov 16 04:48 block -> ../linux-hwe-6.2-headers-6.2.0-39/block
lrwxrwxrwx 1 root root      39 Nov 16 04:48 certs -> ../linux-hwe-6.2-headers-6.2.0-39/certs
lrwxrwxrwx 1 root root      40 Nov 16 04:48 crypto -> ../linux-hwe-6.2-headers-6.2.0-39/crypto
lrwxrwxrwx 1 root root      47 Nov 16 04:48 Documentation -> ../linux-hwe-6.2-headers-6.2.0-39/Documentation
lrwxrwxrwx 1 root root      41 Nov 16 04:48 drivers -> ../linux-hwe-6.2-headers-6.2.0-39/drivers
lrwxrwxrwx 1 root root      36 Nov 16 04:48 fs -> ../linux-hwe-6.2-headers-6.2.0-39/fs
drwxr-xr-x 4 root root    4096 Dec 13 10:41 include
lrwxrwxrwx 1 root root      38 Nov 16 04:48 init -> ../linux-hwe-6.2-headers-6.2.0-39/init
lrwxrwxrwx 1 root root      42 Nov 16 04:48 io_uring -> ../linux-hwe-6.2-headers-6.2.0-39/io_uring
lrwxrwxrwx 1 root root      37 Nov 16 04:48 ipc -> ../linux-hwe-6.2-headers-6.2.0-39/ipc
lrwxrwxrwx 1 root root      40 Nov 16 04:48 Kbuild -> ../linux-hwe-6.2-headers-6.2.0-39/Kbuild
lrwxrwxrwx 1 root root      41 Nov 16 04:48 Kconfig -> ../linux-hwe-6.2-headers-6.2.0-39/Kconfig
drwxr-xr-x 2 root root    4096 Dec 13 10:41 kernel
lrwxrwxrwx 1 root root      37 Nov 16 04:48 lib -> ../linux-hwe-6.2-headers-6.2.0-39/lib
-rw-r--r-- 1 root root   72092 Nov 16 04:48 Makefile
lrwxrwxrwx 1 root root      36 Nov 16 04:48 mm -> ../linux-hwe-6.2-headers-6.2.0-39/mm
-rw-r--r-- 1 root root 1926399 Nov 16 04:48 Module.symvers
lrwxrwxrwx 1 root root      37 Nov 16 04:48 net -> ../linux-hwe-6.2-headers-6.2.0-39/net
lrwxrwxrwx 1 root root      47 Nov 16 04:48 rust -> ../linux-hwe-6.2-lib-rust-6.2.0-39-generic/rust
lrwxrwxrwx 1 root root      41 Nov 16 04:48 samples -> ../linux-hwe-6.2-headers-6.2.0-39/samples
drwxr-xr-x 7 root root   12288 Dec 13 10:41 scripts
lrwxrwxrwx 1 root root      42 Nov 16 04:48 security -> ../linux-hwe-6.2-headers-6.2.0-39/security
lrwxrwxrwx 1 root root      39 Nov 16 04:48 sound -> ../linux-hwe-6.2-headers-6.2.0-39/sound
drwxr-xr-x 4 root root    4096 Dec 13 10:41 tools
lrwxrwxrwx 1 root root      40 Nov 16 04:48 ubuntu -> ../linux-hwe-6.2-headers-6.2.0-39/ubuntu
lrwxrwxrwx 1 root root      37 Nov 16 04:48 usr -> ../linux-hwe-6.2-headers-6.2.0-39/usr
lrwxrwxrwx 1 root root      38 Nov 16 04:48 virt -> ../linux-hwe-6.2-headers-6.2.0-39/virt

from hid-fanatecff.

gotzl avatar gotzl commented on June 8, 2024

Hmm.. this looks good. Now please the output of make -n (inside the Drivers/hid-fanatecff).

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

sean@sean-WINTERMUTE:~/FANATEC Drivers/hid-fanatecff$ make -n
echo -e "\n::\033[32m Compiling Fanatec kernel module\033[0m"
echo "========================================"
make -C /lib/modules/uname -r/build M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-39-generic'
make[1]: *** No rule to make target 'Drivers/hid-fanatecff'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-39-generic'
make: *** [Makefile:8: default] Error 2

from hid-fanatecff.

gotzl avatar gotzl commented on June 8, 2024

Hmm ;) Was hopping for a little more output ^^ I've the same Ubuntu in a VM and for me it all works ^^ So, bit puzzling, so guess we're having to do some back-and-forth here ...

What kind-of looks strange to me is that it doesn't report the full path here No rule to make target 'Drivers/hid-fanatecff'. Can you post the output of $PWD (again, inside the Drivers/hid-fanatecff)?

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

you may have to help me there - I issue the command "@ echo $PWD" and I get this:

sean@sean-WINTERMUTE:~/FANATEC Drivers/hid-fanatecff$ make -n
echo -e "\n::\033[32m Compiling Fanatec kernel module\033[0m"
echo "========================================"
echo 'WD'
make -C /lib/modules/uname -r/build M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-39-generic'
make[1]: *** No rule to make target 'Drivers/hid-fanatecff'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-39-generic'
make: *** [Makefile:9: default] Error 2

from hid-fanatecff.

gotzl avatar gotzl commented on June 8, 2024

Ahhh, I see now ;) There is a space in the path ;) Sooo... there are quotations missing in the Makefile! Can you do git pull origin next to get the latest version of the code and try again?

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

Ahhh, I see now ;) There is a space in the path ;) Sooo... there are quotations missing in the Makefile! Can you do git pull origin next to get the latest version of the code and try again?

Will do - give me a sec...

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

ok - did that (after stashing the mods to Makefile) and this is the current Makefile (default section):

KVERSION ?= uname -r
KERNEL_SRC ?= /lib/modules/${KVERSION}/build
MODULEDIR ?= /lib/modules/${KVERSION}/kernel/drivers/hid

default:
@echo -e "\n::\033[32m Compiling Fanatec kernel module\033[0m"
@echo "========================================"
$(MAKE) -C $(KERNEL_SRC) M="$$PWD"

and the result of the make -n

echo -e "\n::\033[32m Compiling Fanatec kernel module\033[0m"
echo "========================================"
make -C /lib/modules/uname -r/build M="$PWD"
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-39-generic'
Makefile:149: *** building multiple external modules is not supported. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-39-generic'
make: *** [Makefile:8: default] Error 2

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

do i need to upgrade make?

from hid-fanatecff.

gotzl avatar gotzl commented on June 8, 2024

Ah damn ... Should've checked first. You did everything right!
Looks I need to do some research how to support spaces in the path. Can you for now just rename FANATEC Drivers/ to FANATEC_Drivers/? This should workaround the issue ...

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

Ah, i see now - no prob!

yeah - THAT was dramatically better!

Thanks - sometimes it's just staring you in the face...much appreciated!
Sean

from hid-fanatecff.

smbika007 avatar smbika007 commented on June 8, 2024

Sounds good!

from hid-fanatecff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.