daniel-santos / mcp2210-linux

MCP2210 driver for linux
http://danielthesantos.blogspot.com/search/label/mcp2210
51 stars 31 forks source link

modprobe: Module mcp2210 not found #13

Open diegoherranz opened 9 years ago

diegoherranz commented 9 years ago

Hi!

First, thanks for this driver which (if I get it to work) will solve my need of using spidev and MCP2210.

This is the process I follow:

$ make all

Correct.

$ sudo make modules_install 
make -C /lib/modules/3.13.0-45-generic/build M=/tmp/mcp2210-linux modules_install
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-45-generic'
  INSTALL /tmp/mcp2210-linux/mcp2210.ko
Can't read private key
  DEPMOD  3.13.0-45-generic
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-45-generic'

I think that Can't read private keyis not a problem.

Then execute:

$ sudo user/mcp2210_bind.sh 
/sys/bus/usb/devices /tmp/mcp2210-linux

But when I try to modprobe:

$ sudo modprobe mcp2210 
modprobe: FATAL: Module mcp2210 not found.

However, the ko file is there:

$ ls /lib/modules/$(uname -r)/extra
mcp2210.ko

What am I doing wrong? Any idea/hint?

Thanks a lot!

EDIT:

Using insmod, the driver works correctly. Why can't modprobe find it? Thanks!

daniel-santos commented 8 years ago

Wow, I'm not sure what went wrong, but I don't appear to be getting emails when I have messages & bugs opened! I'm very sorry about this and I have to guess that after 9 months you've solved the problem! :)

iirc, modprobe doesn't work due to the issue with the hid generic driver liking your device and a lack of a mechanism for us to be able to tell the kernel that this particular hid generic device should use the mcp2210 driver. Somebody posted a bug report with instructions on how to do this via udev rules, but I haven't integrated that yet.