Closed ToBeReplaced closed 8 years ago
On CentOS 7.x (3.10.0-229.20.1.el7.x86_64):
[example@example mcp2210-linux]$ make modules
make -C /lib/modules/3.10.0-229.20.1.el7.x86_64/build M=/home/example/mcp2210-linux modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-229.20.1.el7.x86_64'
CC [M] /home/example/mcp2210-linux/mcp2210-core.o
In file included from /home/example/mcp2210-linux/mcp2210-core.c:233:0:
/home/example/mcp2210-linux/mcp2210.h:818:19: error: field ‘gpio’ has incomplete type
struct gpio_chip gpio;
^
make[2]: *** [/home/example/mcp2210-linux/mcp2210-core.o] Error 1
make[1]: *** [_module_/home/example/mcp2210-linux] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-229.20.1.el7.x86_64'
make: *** [modules] Error 2
Maybe I should be asking what kernels you are using this on so that I can possibly make appropriate modifications for the kernels I'm using? CentOS 7.x support is my intended use case.
So, among other things, spidev and gpio support was missing. The current kernel-plus
package has the required modules, so you can now use this driver on CentOS 7.x! sudo yum --enablerepo centosplus install kernel-plus
.
I'm not very familiar with this kind of work, so unfortunately all I have for you is a traceback. Maybe I'm missing a required package?
If I remove the corresponding lines for curiosity, then: