Forum Discussion
How can I add a drivers to my kernel
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.gif6 Replies
- Altera_Forum
Honored Contributor
Do you mean a driver that you're going to write yourself, or just how to change your kernel config options to build a custom kernel?
- Altera_Forum
Honored Contributor
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'reilly (http://www.oreilly.com/openbook/).
- Altera_Forum
Honored Contributor
Yes Classdown, I'm talking about a driver that I'm going to write myself I would like to add a new driver for my temperature gauge...
Thanks - Altera_Forum
Honored Contributor
Yes Classdown, I'm talking about a driver that I'm going to write myself I would like to add a new driver for my temperature gauge...
Thanks - Altera_Forum
Honored Contributor
sorry for your name clansdown.
- Altera_Forum
Honored Contributor
No problem about the name, it's often mis-spelled. :-)
Anyway, let me second the recomendation for "Linux Device Drivers, 3rd Edition". It'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's a fair amount in common, there's also a lot which isn't (for example, in 2.4 interrupt handlers returned void, whereas in 2.6 they return whether they've handled the interrupt).