Failing controls transfers in VMware

Markus Dolze bsdfan at nurfuerspam.de
Mon Jul 13 21:11:10 UTC 2009


Hans Petter Selasky wrote:
> On Wednesday 01 July 2009 20:26:35 Markus Dolze wrote:
>> Hans Petter Selasky wrote:
>>> On Tuesday 30 June 2009 22:04:34 Markus Dolze >
>> freebsd8# usbconfig -u 0 -a 3 dump_string 1
>> STRING_0x01 = <www.fischl.de>
>> freebsd8# usbconfig -u 0 -a 3 dump_string 2
>> STRING_0x02 = <USBasp>
>>
>> I already took a problem with the usb stack into account. The stack used
>> is V-USB formerly known as AVR-USB
>> (http://www.obdev.at/products/vusb/index.html). As written previously I
>> tried several different devices including GPS and smartcard terminals
>> with the same bad result.
>>
>> It may also be a problem with VMware's virtual devices or host drivers.
>>
> 
> Try without VM-ware, and see if the result is the same.
> 
> --HPS
> 

I had the time to set up -current (2009-06) on real hardware. Here are
the results:

Running on real hardware (I used do_request directly):

root at mireille:~# usbconfig -u 2 -a 2
ugen2.2: <USBasp www.fischl.de> at usbus2, cfg=0 md=HOST spd=LOW
(1.5Mbps) pwr=ON
root at mireille:~# usbconfig -u 2 -a 2 do_request 0x80 0x06 0x0301 0x0409 256
REQUEST = <0x1c 0x03 0x77 0x00 0x77 0x00 0x77 0x00 0x2e 0x00 0x66 0x00
0x69 0x00 0x73 0x00 0x63 0x00 0x68 0x00 0x6c 0x00 0x2e 0x00 0x64 0x00
0x65 0x00><www.fischl.de>

Compare this to the results from VMware:

freebsd8# usbconfig -u 0 -a 3
ugen0.3: <USBasp www.fischl.de> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON
freebsd8# usbconfig -u 0 -a 3 do_request 0x80 0x06 0x0301 0x0409 256
REQUEST = <0x2e 0x00 0x66 0x00 0x69 0x00 0x73 0x00 0x63 0x00 0x68 0x00
0x6c 0x00 0x2e 0x00 0x64 0x00 0x65 0x00><.fischl.de>


Within VMware the first bytes from the response are missing! The only
difference I can see is the speed being LOW vs FULL (where LOW is correct).

I give up on this. And remember that VMware and FreeBSD don't play well
with USB devices.

Thanks so far!

Markus


More information about the freebsd-usb mailing list