Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

device driver module

Altera_Forum
Honored Contributor II
1,368 Views

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 ?
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
646 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
646 Views

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 ?
0 Kudos
Altera_Forum
Honored Contributor II
646 Views

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).
0 Kudos
Altera_Forum
Honored Contributor II
646 Views
0 Kudos
Altera_Forum
Honored Contributor II
646 Views

Thanks hippo. I will give it a try.

0 Kudos
Altera_Forum
Honored Contributor II
646 Views

wiki page updated again. to build module alone inside the kernel tree.

0 Kudos
Reply