Hi All,

I'm currently trying to use ndiswrapper on my Mandrake Cooker box but
currently loading driver failed when ndiswrapper used usb_get_descriptor
and get an EPROTO error

My kernel is a 2.6.12 one (not the vanilla but the mandrake one) on
which I enabled debugfs and usbmon to start some debugging. It seems in
fact that performing usb_get_descriptor by libusb is working.

Here's my USB controller description :
(output from /var/log/messages)
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.2: OHCI Host
Controller
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.2: new USB bus
registered, assigned bus number 1
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.2: irq 5, io mem
0xdfffa000
Aug  2 07:13:40 caribou kernel: hub 1-0:1.0: USB hub found
Aug  2 07:13:40 caribou kernel: hub 1-0:1.0: 3 ports detected
Aug  2 07:13:40 caribou kernel: ACPI: PCI Interrupt Link [LNKH] enabled
at IRQ 5
Aug  2 07:13:40 caribou kernel: ACPI: PCI Interrupt 0000:00:02.3[A] ->
Link [LNKH] -> GSI 5 (level, low) -> IRQ 5
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.3: OHCI Host
Controller
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.3: new USB bus
registered, assigned bus number 2
Aug  2 07:13:40 caribou kernel: ohci_hcd 0000:00:02.3: irq 5, io mem
0xdfffb000

(output from lspci)
00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0
Controller (rev 07) (prog-if 10 [OHCI])
        Subsystem: Silicon Integrated Systems [SiS] USB 1.0 Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (20000ns max), cache line size 08
        Interrupt: pin D routed to IRQ 5
        Region 0: Memory at dfffa000 (32-bit, non-prefetchable)
[size=4K]

00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0
Controller (rev 07) (prog-if 10 [OHCI])
        Subsystem: Silicon Integrated Systems [SiS] USB 1.0 Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR+ <PERR-
        Latency: 64 (20000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 5
        Region 0: Memory at dfffb000 (32-bit, non-prefetchable)
[size=4K]

Here's the device description (/proc/bus/usb/devices):
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1385 ProdID=4250 Rev= 0.01
S:  Manufacturer=Atheros Communications Inc
S:  Product=WG111T
S:  SerialNumber=1.0
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

Here's the kernel usb_get_descriptor output through usbmon:
ead2f700 715558472 S Ci:003:00 -115 18 <
ead2f700 715559815 C Ci:003:00 0 18 = 00000000 00000000 00000000
00000000 0000
ead2f700 715559835 S Ci:003:00 -115 18 <
ead2f700 715562809 C Ci:003:00 0 18 = 00000000 00000000 00000000
00000000 0000
ead2f700 715562831 S Ci:003:00 -115 18 <
ead2f700 715565809 C Ci:003:00 0 18 = 00000000 00000000 00000000
00000000 0000

Here's the libusb usb_get_descriptor output through usbmon:
ead2fe00 897702367 S Ci:003:00 -115 18 <
ead2fe00 897704175 C Ci:003:00 0 18 = 12010002 ff000040 85135042
01000102 0301

Any help welcome

Laurent




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to