LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to write an USB device driver? (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-write-an-usb-device-driver-821919/)

boidi 07-09-2010 05:44 AM

How to write an USB device driver?
 
Quote:

Originally Posted by anishakaul (Post 4028158)
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

Aquarius_Girl 07-09-2010 05:49 AM

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

boidi 07-09-2010 05:50 AM

Quote:

Originally Posted by anishakaul (Post 4028161)
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...

Aquarius_Girl 07-09-2010 05:52 AM

Did you read the post number 16 ?

boidi 07-09-2010 05:54 AM

Quote:

Originally Posted by anishakaul (Post 4028172)
Did you read the post number 16 ?

yeah, but i have doubt?

[quote]are modules and drivers are different things?[/b]

Aquarius_Girl 07-09-2010 05:56 AM

Quote:

Originally Posted by boidi (Post 4028176)
yeah, but i have doubt?

are modules and drivers are different things?

Read the following link:
http://tldp.org/HOWTO/Module-HOWTO/x73.html

boidi 07-09-2010 06:19 AM

Quote:

Originally Posted by anishakaul (Post 4028177)


this is a very gud article
thanx a lot and bye

Aquarius_Girl 07-09-2010 06:22 AM

You re welcome :)

Aquarius_Girl 07-23-2010 01:12 AM

Quote:

Originally Posted by boidi (Post 4028163)
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 :)

Mara 07-24-2010 01:39 PM

Moderator note:
Posts moved from [SOLVED] make: Nothing to be done for `default'.


All times are GMT -5. The time now is 09:34 AM.