Forum Discussion
Altera_Forum
Honored Contributor
19 years agodevice driver module
Hello,
I am currently writing a kernel device driver module. Added and modified Makefiles and Kconfig, and it seems to work. As I am actively developing and debugging code, it takes a long time everytime I change a line in this driver, and had to recompile the entire kernel. Does anyone how to just remake the module without having to make the entire kernel ?6 Replies
- Altera_Forum
Honored Contributor
you can insert module with
and remove a module withinsmod mymodule
when your linux is running. However it is necessary to enable module loading and unloading feature, when you configure your kernel Have a nice dayrmmod mymodule - Altera_Forum
Honored Contributor
Thanks, but what i really want to know is there a quicker way to generate the module rather than going through
make make linux image; E.g. if I change a line of code when debugging the driver, it would take me 2 minutes to find out if there there is an error in the driver code. How do I make building the kernel driver module as a separate project ? - Altera_Forum
Honored Contributor
please have a look at
it works with the microtronix port. but i didn't test it with nioswiki buildroot ( i assume you are using this).1) http://forum.niosforum.com/forum/index.php?showtopic=2411&hl= 2) http://forum.niosforum.com/forum/index.php?showtopic=2522&hl= - Altera_Forum
Honored Contributor
Please read the "Build external modules" section in the wiki page,
http://nioswiki.jot.com/wikihome/operating...duleprogarmming (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/moduleprogarmming) - Altera_Forum
Honored Contributor
Thanks hippo. I will give it a try.
- Altera_Forum
Honored Contributor
wiki page updated again. to build module alone inside the kernel tree.