Find the answer to your Linux question:
Results 1 to 7 of 7
Hi I am a newbie to the world of Linux Device Drivers & have understood some basic concepts of device drivers & interrupts. I would like to start off writing ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    Question A Simple Linux Device Driver


    Hi

    I am a newbie to the world of Linux Device Drivers & have understood some basic concepts of device drivers & interrupts. I would like to start off writing a simple device driver for a device, say for example, a serial port (uart).

    How do I proceed?
    Is serial port the correct choice to start learning about device drivers or should I start with some other device?
    What would be the hardware and software requirements?
    Any website links that would be helpful?

    Any pointers in this direction would be very helpful to me and lots of other newbies like me.

    Thanks a ton for your suggestions and advice!

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Quote Originally Posted by GeorgeOfTheBush View Post
    Hi
    How do I proceed?
    You read this book.
    Linux Device Drivers, Third Edition [LWN.net]


    Quote Originally Posted by GeorgeOfTheBush View Post
    Hi
    Is serial port the correct choice to start learning about device drivers or should I start with some other device?
    Serial port is a good start.
    Although I enjoyed programming graphics hardware more, and it is easy to start with as well.

    Quote Originally Posted by GeorgeOfTheBush View Post
    What would be the hardware and software requirements?
    Nothing special. Any major GNU/Linux distribution should have the necessary tools.
    More computing power decreases the compiling time and a serial port would be helpful though

    For you next purchases, pay special attention if the manufacturer documents its hardware properly and for the public. NVIDIA is a no-go, but most Intel hardware is well documented, so programming it is always much fun.


    Quote Originally Posted by GeorgeOfTheBush View Post
    Any pointers in this direction would be very helpful to me and lots of other newbies like me.
    Have a visit to the website kernelnewbies.org
    Last edited by GNU-Fan; 09-09-2009 at 12:43 PM.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42
    Hi friends

    Im also new to driver devlopment. im doing drivers for char devices. previously i had Fedora 2 for my devlopment.

    now i shifted to FC 9. but the problem is kernel source.
    kernel source is not available by default. then i installed kernel source RPM.

    while installing RPM, it says RPM is already installed.

    i forced to install the RPM, and the result is FC crashed.

    help me in this.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4
    I think you must reinstall the system.

  6. #5
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42
    ya anyway am going to re-install. my need is to know kernel source location.

    i tried with "locate linux.h"

    but error comes like "can't open file mlocate.XXX"

  7. #6
    Just Joined!
    Join Date
    Sep 2009
    Posts
    4

    Smile

    Quote Originally Posted by rjayavrp View Post
    ya anyway am going to re-install. my need is to know kernel source location.

    i tried with "locate linux.h"

    but error comes like "can't open file mlocate.XXX"
    located in /lib/modules/

  8. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    linux.h doesn't exist in kernel source

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •