I want to make some changes to the ufs.ko module in the kernel. I made those changes in the required code and used the Makefile present at /usr/src/modules/ufs to compile the code. I got a ufs.ko. But when I replace this newly compiled ufs.ko with the old one present at /boot/kernel and reboot the system, the changes do not seem to be coming into effect.
Moreover I removed the file from /boot/kernel and after reboot tried to load it by using this command
[cmd=]kldload ./ufs.ko[/cmd]
It gives an error that file already exists. But I don't understand if the ko is not present in /boot/kernel at boot time then how is it present in kernel after booting.
I need to know where should I put my ufs.ko such that the kernel will pick it up at boot time.
Moreover I removed the file from /boot/kernel and after reboot tried to load it by using this command
[cmd=]kldload ./ufs.ko[/cmd]
It gives an error that file already exists. But I don't understand if the ko is not present in /boot/kernel at boot time then how is it present in kernel after booting.
I need to know where should I put my ufs.ko such that the kernel will pick it up at boot time.