All of lore.kernel.org
 help / color / mirror / Atom feed
From: Beffe <beffe@beffe.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: help for loading pwc module (solved)
Date: Wed, 04 Sep 2002 21:03:23 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-103117372526421@msgid-missing> (raw)

Hi again,

i don't know if anybody reads this list, but i`ll tell you how i solved
my problem anyway. As i told you, usbmodules didn't find the pwc module
for my webcam allthough it is there in modules.usbmap.
Now the problem was that the function load_drivers didn't execute the
usb_map_modules function either cause it had the LISTER variable set.
So i simply had to change line 122 in hotplug.functions from 

   if [ "$LISTER" = "" ]; then

to 
   if [ "$LISTER" = "" -o "$DRIVERS" = "" ]; then

to let it execute usb_map_modules which finds the pwc module.



Another question:
in usb.agent you first call load_drivers with modules.usbmap, then you
call load_drivers with usb.handmap and last you call it with
usb.usermap, regardless if the prior call did already load a module.
Also, if load_modules has found a module, first it tries to load the
kernel module and then it executes the userscript.
In my opinion, if i have a userscript i would like to have it precedence
before the kernel module. That means that first load_drivers has to be
called with the usermap and it has to try to execute the userscript
before loading a kernel driver.
Also if there has been a driver found and loaded, why not just stop but
trying to find one or two more times a driver again? 
In my case, where usbmodules takes some 5 seconds on the webcam before
it cancels, this means about 15 seconds slowdown at boot time.

I would be really happy if one would answer. Maybe everybody is on
holiday?

Bye,
Beffe


Am Die, 2002-09-03 um 22.25 schrieb Beffe:
> Hi all,
> 
> at least i would have expected an RTFM or something. But nothing. OK. I
> did some more debugging and found out, that usbmodules on the webcam
> device takes some seconds and then gives a "cannot get config descriptor
> 0, Connection timed out (110)"
> Does anybody (if there is someone) know what that means and what i can
> do to help usbmodules to find the right driver?
> Also, where can i find this shell script "usb_map_modules"? Maybe that
> would find my driver.
> 
> I would be really greatful for any help.
> 
> Thanks,
> Beffe
> 
> Am Fre, 2002-08-30 um 23.51 schrieb Beffe:
> > 
> > 
> > Hi List,
> > 
> > first thanks for your great work on hotplug, i like it.
> > 
> > Now i have a Philips Webcam, the PCVC680K "Vesta Pro" and i don't know
> > how to tell hotplug to load the pwc module.
> > 
> > when i plug it in, hotplug says: 
> > {syslog}/etc/hotplug/usb.agent: ... no modules for USB product 471/308/6
> > 
> > the entry in /proc/bus/usb/devices looks like this:
> > 
> > T:  Bus\x01 Lev\x02 Prnt\x02 Port\x03 Cnt\x02 Dev#=  6 Spd\x12  MxCh= 0
> > D:  Ver= 1.10 Cls\0(>ifc ) Sub\0 Prot\0 MxPS= 8 #Cfgs=  1
> > P:  Vendor\x0471 ProdID\x0308 Rev= 0.06
> > S:  SerialNumber\x02130211A0105BF5
> > C:* #Ifs= 3 Cfg#= 1 Atr  MxPwrP0mA
> > I:  If#= 0 Alt= 0 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS=   0 Ivl=1ms
> > I:  If#= 0 Alt= 1 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 196 Ivl=1ms
> > I:  If#= 0 Alt= 2 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 292 Ivl=1ms
> > I:  If#= 0 Alt= 3 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 448 Ivl=1ms
> > I:  If#= 0 Alt= 4 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 592 Ivl=1ms
> > I:  If#= 0 Alt= 5 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 704 Ivl=1ms
> > I:  If#= 0 Alt= 6 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 776 Ivl=1ms
> > I:  If#= 0 Alt= 7 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 840 Ivl=1ms
> > I:  If#= 0 Alt= 8 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 896 Ivl=1ms
> > I:  If#= 0 Alt= 9 #EPs= 2 Cls
(data ) Subÿ Prot\0 Driver=(none)
> > E:  Ad‚(I) Atr\x03(Int.) MxPS=   1 Ivl\x100ms
> > E:  Ad„(I) Atr\x01(Isoc) MxPS= 960 Ivl=1ms
> > I:  If#= 1 Alt= 0 #EPs= 0 Cls\x01(audio) Sub\x01 Prot\0 Driver=(none)
> > I:  If#= 2 Alt= 0 #EPs= 1 Cls\x01(audio) Sub\x02 Prot\0 Driver=(none)
> > E:  Ad…(I) Atr\x05(Isoc) MxPS=   0 Ivl=1ms
> > I:  If#= 2 Alt= 1 #EPs= 1 Cls\x01(audio) Sub\x02 Prot\0 Driver=(none)
> > E:  Ad…(I) Atr\x05(Isoc) MxPS=  90 Ivl=1ms
> > I:  If#= 2 Alt= 2 #EPs= 1 Cls\x01(audio) Sub\x02 Prot\0 Driver=(none)
> > E:  Ad…(I) Atr\x05(Isoc) MxPS=  46 Ivl=1ms
> > I:  If#= 2 Alt= 3 #EPs= 1 Cls\x01(audio) Sub\x02 Prot\0 Driver=(none)
> > E:  Ad…(I) Atr\x05(Isoc) MxPS=  25 Ivl=1ms
> > I:  If#= 2 Alt= 4 #EPs= 1 Cls\x01(audio) Sub\x02 Prot\0 Driver=(none)
> > E:  Ad…(I) Atr\x05(Isoc) MxPS=  16 Ivl=1ms
> > 
> > now i tried several lines in usb.distmap, usb.handmap and usb.usermap,
> > the last try was:
> > pwc                  0x0003 0x0471   0x0308    0x0000       0x0000      
> > 0x00         0x00            0x00            0x00            0x00
> >   0x00         0x00000000
> > 
> > but nothing worked. Always " ... no modules for USB product 471/308/6"
> > 
> > Can anybody tell me the right line??
> > Thanks in advance.
> > 
> > Just for understanding:
> > this line in usb.distmap would try to load the pwc kernel module, while
> > this line in usb.usermap would execute a script called
> > /etc/hotplub/usb/pwc ? is this right? i have this script but it is not
> > executed.
> > 
> > What are these parameters, especially the match_flags?
> > 
> > It would be great if one could help.
> > Bye,
> > Beffe
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> > Linux-hotplug-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2002-09-04 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04 21:03 Beffe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-21 20:45 help for loading pwc module (solved) David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-103117372526421@msgid-missing \
    --to=beffe@beffe.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.