Navigation Menu.
The BeOSJournal. Reporting the news of the BeOS Community.
  Discussing the news of the BeOS Community.
FAQFAQ    SearchSearch    Site Statistics.Statistics    MemberlistMemberlist    UsergroupsUsergroups    RegisterRegister
   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in

easy driver?

 
Post new topic   Reply to topic    The BeOSJournal. Forum Index -> BeDrivers
    ::     
Author Message
casimir
Pencil Pusher
Pencil Pusher



Joined: 21 Jan 2003
Posts: 10
Location: Vancouver, Canada

PostPosted: Tue Jan 28, 2003 6:44 am    Post subject: easy driver? Reply to topic Reply with quote

What would be an easy driver to start on for development??

Because I want to start developing drivers, and I need something easy to start with.

Thanks
Back to top
View user's profile Send private message MSN Messenger
lomax
NewBe
NewBe



Joined: 28 Jan 2003
Posts: 2

PostPosted: Tue Jan 28, 2003 9:17 pm    Post subject: Re: easy driver? Reply to topic Reply with quote

Good question, I'm a newbie as well and I would really like to get to know driver programming, but I need more knowledge first.
My guess is it's probably the easiest to start with a piece of hardware you already have in your posession.
I think, from what I've read so far, that an ethernet driver with existing documentation (from the manufacturer) is probably the easiest thing to start with.
There are some examples with source code available to get you started.

Good luck!
Back to top
View user's profile Send private message
GregC
NewBe
NewBe



Joined: 05 Sep 2002
Posts: 5
Location: Michigan

PostPosted: Wed Jan 29, 2003 11:56 pm    Post subject: A few hints for driver newbe's Reply to topic Reply with quote

A couple hints:

The most important thing is to try and get the specification of the device, or specifications of the specific parts used on the device. For example, a Netgear NIC, might actually use a generic National Semiconductor Ethernet chip on the PCB. When a chip company like National Semiconductor makes a generic ethernet chip to sell to anybody that will buy it, it is generally VERY easy to get excellent documention (go to their websites!). The specs will explain all the registers, how they are used, maybe power-up or initialization sequences. Sometimes even psuedo-code. It might take a little homework to discover if the actual parts are generic parts or custom IC's. The Creative labs EMU10k series are custom chips that have no published documentation and are kept confidental, although several of the support chips used on the soundcards are common devices with specs freely available.

Next, try and find something that has some open source drivers already developed for Linux or BSD. It is helpful to be able to look at other code to see how it is done. We are lucky that there is lots of sample code for BeOS drivers too. Take a look at it! Even if its for a completely different device.

I wouldn't recommend trying to write a driver for the 'latest and greatest' hardware. It is often more complex then hardware released just a couple years ago (like video cards). Also, manufacturers are more likely to share specifications for their products if it's not a competitive risk (example- the EMU8k spec was released and easily obtainable, while the EMU10k is not ).

Finally- subscribe to the BeDriver mailing list and feel free to ask any questions!
Back to top
View user's profile Send private message Send e-mail
jefro
Junior Scribe
Junior Scribe



Joined: 02 Oct 2002
Posts: 74

PostPosted: Sat Feb 01, 2003 1:16 am    Post subject: Reply to topic Reply with quote

Be sure to read the Be's driver examples in the developement kit. Most driver authors say that they learned by looking at the notes left in the code.
Back to top
View user's profile Send private message
casimir
Pencil Pusher
Pencil Pusher



Joined: 21 Jan 2003
Posts: 10
Location: Vancouver, Canada

PostPosted: Sun Feb 02, 2003 2:08 am    Post subject: Thanks Reply to topic Reply with quote

Ok, cool thanks for the advice. I think I will look at an already made driver and re-make it. Not to make it better, but to go through the process.
Thanks. I signed up for bedrivertalk. Hopefully in a while I will be pumping out drivers =)


Thanks
Back to top
View user's profile Send private message MSN Messenger
Post new topic   Reply to topic    The BeOSJournal. Forum Index -> BeDrivers All times are GMT + 1 Hour

Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.4 © 2001 phpBB Group