Jump to content

Writing/programming drivers - getting started

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Marcinnnn

Marcinnnn

    Newbie

  • Members
  • PipPip
  • 17 posts
Hi,

I need and want to learn programming drivers. The are many tutorials both for BSD and Linux so that isn't a problem. I just want to ask is there somekind RFC (Request For Comment) for hardware (wifi card) or I should just ask company which produces device (Realtek in my example)? Someone wrote RTL8187 driver for Linux, another guy made patch, so it should be somewhere. "realtek 8187 driver documentation" or anything like that in google doesn't work for me - I just don't know something simple needed to find stuff like this or maybe I just should use English :D more often ;-)

Thanks in advance

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Most drivers are written by reverse-engineering what they do under windows. Unless you know the (normally unpublished) hardware specs, that's about all you can do.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Marcinnnn

Marcinnnn

    Newbie

  • Members
  • PipPip
  • 17 posts
hm.. so I should take somekind disassembler or decompiler on Windows take manual for writing drivers on Windows and compare it to manual for BSD. Then I should made changes in the code and compile it back, right?

#4
theonejb

theonejb

    Learning Programmer

  • Members
  • PipPipPip
  • 52 posts
If someone has made the driver for Linux already, the source code may be available. Study that. It's probably easier than trying to reverse-engineer the Windows driver.