Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

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.gif

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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).