Ask Your Question

Cannot modprobe slcan

asked 2018-09-30 08:22:07 -0500

Xyph3r gravatar image

I want to load the slcan module, but it seems like it's not been built and included in Fedora 28: modprobe: FATAL: Module slcan not found in directory /lib/modules/4.18.9-200.fc28.x86_64

When peeking into the kernel sources under /usr/src/kernels/4.18.9-200.fc28.x86_64 (via make menuconfig) it seems like the kernel is configured to have slcan as a kernel module.

So, I tried building the module by itself by running "make drivers/net/can/" from within /usr/src/kernels/4.18.9-200.fc28.x86_64 but hit another bump:

*scripts/selinux/genheaders/genheaders.c:19:10: fatal error: classmap.h: No such file or directory

#include "classmap.h" ^~~~~~~~~~~~ compilation terminated.

make[3]: * [scripts/ scripts/selinux/genheaders/genheaders] Error 1

make[2]: * [scripts/ scripts/selinux/genheaders] Error 2

make[1]: * [scripts/ scripts/selinux] Error 2

make: * [Makefile:1053: scripts] Error 2*

Any ideas?

edit retag flag offensive close merge delete


I also do not have the slcan kernel module on my Fedora installation. Should it be part of the standard installation?

Did you obtain the source code?

genodeftest gravatar imagegenodeftest ( 2018-09-30 11:23:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-30 11:15:49 -0500

ed209 gravatar image
rpm -qf /usr/lib/modules/4.18.9-200.fc28.x86_64/extra/drivers/net/can/slcan.ko.xz


Install the above package.

edit flag offensive delete link more


And this is a way to find it

dnf provides '*slcan*'
villykruse gravatar imagevillykruse ( 2018-10-01 03:58:21 -0500 )edit

Question Tools


Asked: 2018-09-30 08:22:07 -0500

Seen: 528 times

Last updated: Sep 30 '18