Monday, February 13, 2012

Loading a kernel module automatically during bootup in Ubuntu

1) Edit the file /etc/modules and add the names of the modules without the .ko extension.
2) Paste the module.ko files to /lib/modules/$(uname -r)/kernel.../drivers...
3) Run the command depmod -a
4) Run the command modprobe moduleName
5) Run the command lsmod and check whether the module has got loaded.
6) Run the command update-initramfs -u
7) Reboot
8) Run lsmod and check.

No comments: