LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-09-2010, 05:44 AM   #1
boidi
Member
 
Registered: Jun 2010
Location: Bangalore
Posts: 48

Rep: Reputation: 15
How to write an USB device driver?


Quote:
Originally Posted by anishakaul View Post
Hello,
I got it,


When you copy paste the Makefile from post 7, make sure you delete the spaces shown in RED below by Backspace key and then press TAB

Code:
obj-m += hello.o

all:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


can u suggest me how to write a device driver for USB
 
Old 07-09-2010, 05:49 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
I have not written a device driver for USB yet, but see if the following links help you somehow>
http://lwn.net/images/pdf/LDD3/ch13.pdf
http://www.linuxjournal.com/article/4786
 
Old 07-09-2010, 05:50 AM   #3
boidi
Member
 
Registered: Jun 2010
Location: Bangalore
Posts: 48

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by anishakaul View Post
You are welcome

So it has compiled finally ? Makefiles are TAB dependent !

from here onwards how can i proceed...to write a device drivers
please help me...
 
Old 07-09-2010, 05:52 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Did you read the post number 16 ?
 
Old 07-09-2010, 05:54 AM   #5
boidi
Member
 
Registered: Jun 2010
Location: Bangalore
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by anishakaul View Post
Did you read the post number 16 ?
yeah, but i have doubt?

[quote]are modules and drivers are different things?[/b]
 
Old 07-09-2010, 05:56 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
Originally Posted by boidi View Post
yeah, but i have doubt?

are modules and drivers are different things?
Read the following link:
http://tldp.org/HOWTO/Module-HOWTO/x73.html
 
Old 07-09-2010, 06:19 AM   #7
boidi
Member
 
Registered: Jun 2010
Location: Bangalore
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by anishakaul View Post

this is a very gud article
thanx a lot and bye
 
1 members found this post helpful.
Old 07-09-2010, 06:22 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
You re welcome
 
Old 07-23-2010, 01:12 AM   #9
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
Originally Posted by boidi View Post
can u suggest me how to write a device driver for USB
http://linuxusbguide.sourceforge.net...0.9/book1.html
and
http://www.lrr.in.tum.de/Par/arch/usb/usbdoc/
and
http://www.linux.it/~rubini/docs/usb/usb.html
and
Enjoy

Last edited by TheIndependentAquarius; 07-23-2010 at 01:16 AM.
 
Old 07-24-2010, 01:39 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
Moderator note:
Posts moved from [SOLVED] make: Nothing to be done for `default'.
 
1 members found this post helpful.
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Steps to write a device driver trkecea Programming 12 11-26-2009 11:40 PM
Write a simple driver for a usb device abhinit Linux - Hardware 5 07-17-2009 02:24 AM
how to write device driver for Irda santu432 Programming 1 07-23-2004 12:29 PM
how to write a device driver raghu mitra Linux - Software 1 07-22-2004 02:26 PM
how to write a device driver dummyagain Programming 3 10-20-2003 08:36 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration