Greg,

I'm sorry if I wasn't clear.  I think your article is very good.  My device
is a simple bulk in & out (2 pipes) which fits nicely into the
read()/write() model.  For someone new to Linux kernel/device drivers but
knows all about USB and Windows drivers I'm asking this:

**again, assume that the article answered questions about how to modify the
code and that has been done**

**I refer to skeleton source to make things clear - I know this should be
renamed to my_usb.c or something like that**

1- How do I build the code as a module?  It looks like the Makefile in
/driver/usb is pretty straightforward.  I suppose I have run "make modules"
from TOPDIR - is this what you have to run every time you make a change to
the skeleton source?  Why descend into all of the modules?  Is there a way
to build JUST the usb modules, or better yet just the skeleton usb  module?

2- What does "make modules_install" do?  Apparently this is run after make
modules.

3- Okay, so now I've got my skeleton.o or whatever.  What has to be
configured as far as hotplug goes to get it loaded when I plug in my device?
We make a grand assumption that VID/PID were set up correctly in the
skeleton.c file and that this matches the VID/PID of the device that is
being plugged in!  Assume there are no bugs either!

4- how do the /dev/usb entries get setup properly so I can open() the device
from a user mode app.?

All this is a pretty much a follow on to your article - kind of showing how
to use usb-skeleton and something you probably do without thinking! :-)

Thanks for your time...

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Greg KH
> Sent: Friday, September 20, 2002 7:20 PM
> To: Andrew Pargeter
> Cc: [EMAIL PROTECTED]
> Subject: Re: [linux-usb-devel] usb skeleton
>
>
> On Fri, Sep 20, 2002 at 07:00:10PM -0400, Andrew Pargeter wrote:
> >
> > I am looking for a step-by-step to building the driver and getting it
> > running.  I know it might be a lot to ask....
>
> Heh, that is a pretty big thing to ask.  What's wrong with the existing
> documentation for usb-skeleton.c?  (hint, it's in the
> Documentation/DocBook/writing_usb_driver.* file in the 2.5 kernel tree).
>
> Specific questions about specific problems are much easier to answer on
> this list.
>
> How about I start:
>       - what kind of device are you trying to write a driver for?
>
> thanks,
>
> greg k-h
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to