LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

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

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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 Aquarius_Girl; 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,696

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:23 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
Open Source Consulting | Domain Registration