Make kernel modules available that have been deactivated on Fedora
I think I got it, although it's probably far from perfect.
-
Prepare the source code by running
rpmbuild -bp --target=$(uname -m) kernel.spec
-
Go to the build directory, for example by:
cd ~/rpmbuild/BUILD/kernel-3.14.fc20/linux-3.14.8-200.fc20.x86_64
-
Edit
Makefile
and setEXTRAVERSION
to something like:EXTRAVERSION = -200.fc20.x86_64
Enable the modules. I suggest starting with the corresponding file underneath the
configs
directory (I usedkernel-3.14.8-x86_64.config
).-
Prepare the kernel for modules:
make modules_prepare
-
Build the module:
make M=drivers/net/can
-
Profit! Insert the module:
insmod can-dev.ko