Tuesday, June 20, 2017

Manually installing a driver or module on Linux

This varies slightly depending on your distribution, but the general steps are:

(1) unload the current driver (if it exists)
# rmmod driver_name/code>
(2) copy the driver/module to the kernel's modules directory
# cp driver_name.ko /lib/modules/`uname -r`/kernel/drivers/specific_directory_for_your_driver/code>
(3) load the new driver
# modprobe driver_name
On Debian and Ubuntu, you also need to update the ramdisk so the driver will load automatically after a reboot:
# update-initramfs -u
That's it !

No comments:

Post a Comment