Skip to contentSkip to conversation

help for loading pwc module (solved)

DISCUSSION Beffe 1 participant 1 message Sep 4, 2002

lore
Share & tools
lore

Beffe

author
#0 lore 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:

Quoted 11 lines

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.

Quoted 26 lines

I would be really greatful for any help.

Thanks,
Beffe

Am Fre, 2002-08-30 um 23.51 schrieb Beffe:

Quoted 20 lines

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 Lev Prnt Port Cnt Dev#=  6 Spd  MxCh= 0
D:  Ver= 1.10 Cls(>ifc ) Sub Prot MxPS= 8 #Cfgs=  1
P:  Vendor71 ProdID08 Rev= 0.06
S:  SerialNumber130211A0105BF5

C:* #Ifs= 3 Cfg#= 1 Atr  MxPwrP0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 196 Ivl=1ms
I:  If#= 0 Alt= 2 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 292 Ivl=1ms
I:  If#= 0 Alt= 3 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 448 Ivl=1ms
I:  If#= 0 Alt= 4 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 592 Ivl=1ms
I:  If#= 0 Alt= 5 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 704 Ivl=1ms
I:  If#= 0 Alt= 6 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 776 Ivl=1ms
I:  If#= 0 Alt= 7 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 840 Ivl=1ms
I:  If#= 0 Alt= 8 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 3 lines
Quoted 3 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 896 Ivl=1ms
I:  If#= 0 Alt= 9 #EPs= 2 Cls

(data ) Subÿ Prot Driver=(none)

Quoted 53 lines
Quoted 41 lines
E:  Ad‚(I) Atr(Int.) MxPS=   1 Ivl0ms
E:  Ad„(I) Atr(Isoc) MxPS= 960 Ivl=1ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls(audio) Sub Prot Driver=(none)
I:  If#= 2 Alt= 0 #EPs= 1 Cls(audio) Sub Prot Driver=(none)
E:  Ad…(I) Atr(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 2 Alt= 1 #EPs= 1 Cls(audio) Sub Prot Driver=(none)
E:  Ad…(I) Atr(Isoc) MxPS=  90 Ivl=1ms
I:  If#= 2 Alt= 2 #EPs= 1 Cls(audio) Sub Prot Driver=(none)
E:  Ad…(I) Atr(Isoc) MxPS=  46 Ivl=1ms
I:  If#= 2 Alt= 3 #EPs= 1 Cls(audio) Sub Prot Driver=(none)
E:  Ad…(I) Atr(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 2 Alt= 4 #EPs= 1 Cls(audio) Sub Prot Driver=(none)
E:  Ad…(I) Atr(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

Quoted 8 lines

-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Quoted 8 lines

-------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel