LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2008, 07:33 AM   #1
alicreativembedded
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Smile Help Me


Hello every one,
Hope i get help from you all.Please do needful.I am just a beginner for device driver programming. i want to write an driver programming for pendrive(USB storage device).From where can i start.What are the learning criteria.


Thank YOU ALL,
ALI.
 
Old 08-21-2008, 07:40 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Welcome to LQ!!

The first standard advice is to use thread titles that actually describe what your question is.

This is the book I see mentioned most often:
http://lwn.net/Kernel/LDD3/
 
Old 08-21-2008, 07:50 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
As far as I know, there are already drivers for pendrives. You can play around anyway; you will learn an awful lot if you can understand the pendrive drivers because you will have to deal with the USB bus driver, the storage device driver, etc. You're looking at understanding 4, possibly more drivers if you try to understand the USB pendrive driver.

For a start, read the book "Linux Device Drivers 3rd edition" by Rubini, Corbet, et al. They explain the basics fairly well and introduce you to various tricks used by driver writers (and explain how the tricks work). Have a look at some simple drivers like the 'watchdog' drivers. When you're a bit more daring, have a look at the serial port (UART) drivers - that gets more complicated because of the various layers such as the 'discipline' (essentially a filter), and the tty code. That code is still reasonably 'simple' - when you're confident you've understood that, then you can have a look at the 'usb_storage' code. If you can understand that code then you'll know your way around the device driver tree fairly well; you'll still only know a fairly small amount about the overall scheme, but from that point you can proceed to play with any driver with a reasonable degree of confidence.
 
Old 08-22-2008, 01:41 PM   #4
alicreativembedded
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile HI

Thank you,

I am starting from kernel level system cal functions.
As of you said i am going.Please guide us in such a way that for today what i have to read.

Assume that i am a beginner for linux.

Thank you All.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration