gcadapter-oc-kmod icon indicating copy to clipboard operation
gcadapter-oc-kmod copied to clipboard

Improving the installation instructions

Open Vaasgeet opened this issue 2 years ago • 4 comments

Could you please include running this command after copying the .ko file to a proper directory?

sudo depmod

Without this gcadapter_oc can't be found. Same result with:

modprobe gcadapter_oc rate=1

My kernel version is 6.0.2-76060002-generic and I'm using PopOS 22.04.

Vaasgeet avatar Oct 28 '22 11:10 Vaasgeet

I also wrote a script for making things easier. Feel free to include this within your project.

#!/bin/bash make if [ -e gcadapter_oc.ko ];then mkdir /usr/lib/modules/$(uname -r)/kernel/drivers/usb/gcadapter cp ./gcadapter_oc.ko /usr/lib/modules/$(uname -r)/kernel/drivers/usb/gcadapter echo 'gcadapter_oc' > /usr/lib/modules-load.d/gcadapter-oc.conf depmod echo 'Autostart successfully set up!' fi

Vaasgeet avatar Oct 28 '22 13:10 Vaasgeet

Could you please include running this command after copying the .ko file to a proper directory? sudo depmod

Added, thanks!

I also wrote a script for making things easier

It's a neat script but I would prefer if there were packages for more distros that could automate this for you. I'm not very familiar with Debian but if you want to give it a try a package script for Debian and derivatives (like PopOS) would be great to have.

It would probably look very similar to this: https://github.com/hannesmann/gcadapter-oc-kmod/tree/master/packaging/arch

hannesmann avatar Nov 15 '22 18:11 hannesmann

I'm pretty new to Linux... I can just not figure out how to make this work. I'm using PopOS. I open the Terminal and no matter what I do, when I type make, all I get it "*** No targets specified and no makefile found. Stop.

I reckon this is absolutely an issue on my end, but I'm looking for help...

What do I need to do? I've downloaded the pkg.tar and extracted it to a folder... but I'm struggling to find out how to make this happen. How EXACTLY do I use make to make the .ko file?

ZigAUM avatar Nov 17 '22 03:11 ZigAUM

If you are using Ubuntu or PopOS take a look at my fork. The script compiles the .ko file and does all the other necessary stuff. https://github.com/Vaasgeet/gcadapter-oc-kmod

Vaasgeet avatar Oct 05 '23 03:10 Vaasgeet