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++
12745 Discussions

How can I add a drivers to my kernel

Altera_Forum
Honored Contributor II
1,391 Views

Hello every body, I'm a beginner and I'd like to add manually a new driver in my microC Linux kernel... I'm trying to understand how does the kernel work ...  

Does any body know how I can do it ? 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
678 Views

Do you mean a driver that you&#39;re going to write yourself, or just how to change your kernel config options to build a custom kernel?

0 Kudos
Altera_Forum
Honored Contributor II
678 Views

If you want to learn, how the kernel work read "Linux Device Drivers, Third Edition". You can get it in your favorite bookstore or for free from o&#39;reilly (http://www.oreilly.com/openbook/).

0 Kudos
Altera_Forum
Honored Contributor II
678 Views

Yes Classdown, I&#39;m talking about a driver that I&#39;m going to write myself I would like to add a new driver for my temperature gauge... 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
678 Views

Yes Classdown, I&#39;m talking about a driver that I&#39;m going to write myself I would like to add a new driver for my temperature gauge... 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
678 Views

sorry for your name clansdown.

0 Kudos
Altera_Forum
Honored Contributor II
678 Views

No problem about the name, it&#39;s often mis-spelled. :-) 

 

Anyway, let me second the recomendation for "Linux Device Drivers, 3rd Edition". It&#39;s very well worth the money, and serves as an introduction, as instruction, and as a reference. Make sure to get the 3rd edition as that covers 2.6.10 (which is very close to 2.6.9, which is the current microtronix release), whereas the second edition covers 2.4, which while there&#39;s a fair amount in common, there&#39;s also a lot which isn&#39;t (for example, in 2.4 interrupt handlers returned void, whereas in 2.6 they return whether they&#39;ve handled the interrupt).
0 Kudos
Reply