LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 06: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, 06:49 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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, 06: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, 06:52 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Did you read the post number 16 ?
 
Old 07-09-2010, 06: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, 06:56 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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, 07: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, 07:22 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

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

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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 02:16 AM.
 
Old 07-24-2010, 02:39 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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-27-2009 12:40 AM
Write a simple driver for a usb device abhinit Linux - Hardware 5 07-17-2009 03:24 AM
how to write device driver for Irda santu432 Programming 1 07-23-2004 01:29 PM
how to write a device driver raghu mitra Linux - Software 1 07-22-2004 03:26 PM
how to write a device driver dummyagain Programming 3 10-20-2003 09:36 AM


All times are GMT -5. The time now is 02:36 AM.

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