- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can insert module with
insmod mymodule
and remove a module with rmmod 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 day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please have a look at
1) http://forum.niosforum.com/forum/index.php?showtopic=2411&hl=
2) http://forum.niosforum.com/forum/index.php?showtopic=2522&hl=
it works with the microtronix port. but i didn't test it with nioswiki buildroot ( i assume you are using this).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks hippo. I will give it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wiki page updated again. to build module alone inside the kernel tree.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page