Device driver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svlsr2000
    Recognized Expert New Member
    • Feb 2007
    • 181

    Device driver

    Hi i am new to linux and device driver. we have a board which could be connected to com0 port. we are able to connect to this board using minicom and and device selected is /dev/ttyS0.
    we want to write a driver for this board. Can any one suggest how to go about. we dont want to do this in user space since we want some hands on in device driver programming.
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Originally posted by svlsr2000
    Hi i am new to linux and device driver. we have a board which could be connected to com0 port. we are able to connect to this board using minicom and and device selected is /dev/ttyS0.
    we want to write a driver for this board. Can any one suggest how to go about. we dont want to do this in user space since we want some hands on in device driver programming.
    The book "Linux Device Drivers" is available online, but for a start you can also look for some tutorials. Just google for "linux device drivers tutorials" and you'll find articles, introductions and programming tutorials at all levels of details. I couldn't find the one I was using some years ago ...

    Comment

    • svlsr2000
      Recognized Expert New Member
      • Feb 2007
      • 181

      #3
      Originally posted by arne
      The book "Linux Device Drivers" is available online, but for a start you can also look for some tutorials. Just google for "linux device drivers tutorials" and you'll find articles, introductions and programming tutorials at all levels of details. I couldn't find the one I was using some years ago ...
      I have gone through all the chapters related to character devices. But the book doesnt talk about any hardware to be connected to serial port and any other ports in pc

      Comment

      • arne
        Recognized Expert Contributor
        • Oct 2006
        • 315

        #4
        Originally posted by svlsr2000
        I have gone through all the chapters related to character devices. But the book doesnt talk about any hardware to be connected to serial port and any other ports in pc
        Well, chapter 9 is talking about IO ports and how to access the
        parallel port, no?

        Anyway, I found it more helpful to read the code of other drivers
        (if I knew that they had to do similar operations as I wanted my
        driver to do). See the Linux Cross Reference.
        This helped me lot.

        arne

        Comment

        Working...