Ask Your Question
2

Cannot modprobe slcan

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

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/Makefile.host:90: scripts/selinux/genheaders/genheaders] Error 1

make[2]: * [scripts/Makefile.build:558: scripts/selinux/genheaders] Error 2

make[1]: * [scripts/Makefile.build:558: scripts/selinux] Error 2

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

Any ideas?

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

kernel-modules-extra-4.18.9-200.fc28.x86_64

Install the above package.

edit flag offensive delete link more

Comments

And this is a way to find it

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 65 times

Last updated: Sep 30