This is the first in a series of articles aimed at the beginning kernel programmer, designed to lead the kernel newbie through the basics of writing and compiling their first kernel module, and getting increasingly sophisticated from there.
I need to debug an existing kernel driver (added to the kernel with menuconfig before kernel compilation). I intend to use printk statements to see what happens there, but in order to do that I need to remove the module from the kernel, rebuild it as a loadable module and load it. Is this possible and how? Do I need to rebuild the whole kernel without this module and then install it?