* Re: help for loading pwc module (solved)
@ 2002-09-04 21:03 Beffe
0 siblings, 0 replies; 2+ messages in thread
From: Beffe @ 2002-09-04 21:03 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: help for loading pwc module (solved)
@ 2002-11-21 20:45 David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2002-11-21 20:45 UTC (permalink / raw)
To: linux-hotplug
Beffe wrote:
> 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.
I just checked in a similar patch to hotplug.functions, so at least
the fix is in CVS now.
> 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.
Right. Some devices need more than one module, and in fact the
modules are all just _candidates_ to bind to the device. The
shell script can't assume that loading the first module was enough.
> 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.
That couldn't work ... remember that when the driver has already been
loaded (either statically or dynamically linked), the kernel already gave
it a chance to bind to the device. The only sequencing that can be
established in all cases is kernel first, then userspace.
> 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?
See above: when two drivers are candidates, you can't know that the
first one will always bind to the device.
> In my case, where usbmodules takes some 5 seconds on the webcam before
> it cancels, this means about 15 seconds slowdown at boot time.
Just disable "usbmodules" then ... "cd /sbin; mv usbmodules usbmodules-".
Sounds like for you, it's not adding any value. Though I'm not sure
why it'd be having any problems reading config descriptors.
- Dave
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-21 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 21:03 help for loading pwc module (solved) Beffe
-- strict thread matches above, loose matches on Subject: below --
2002-11-21 20:45 David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).