Failing controls transfers in VMware

Markus Dolze bsdfan at nurfuerspam.de
Wed Jul 1 18:26:39 UTC 2009



Hans Petter Selasky wrote:
> On Tuesday 30 June 2009 22:04:34 Markus Dolze wrote:
>> Hans Petter Selasky wrote:
>>> On Tuesday 30 June 2009 20:46:22 Markus Dolze wrote:
>>>> Hello,
>>>>
>>>> for several days I ways trying to get devel/avrdude to work with an
>>>> USBasp compatibel device (www.ullihome.de) on FreeBSD 7.2 running as a
>>>> guest in VMware Workstation 6.5.2.
>>>>
>>>> ...
>>> FYI: Not a solution maybe, but 8-current has a new USB stack.
>>>
>>> Works with AVRDUDE.
>>>
>>> --HPS
>> Hi,
>>
>> yes, I know. Therefore I already tried and the result is even worse.
>> Output from the test program:
>>
>> freebsd8# ./main
>> ./main: Command not found.
>> freebsd8# ./test
>> Found AVR-USB device
>> USB_control_msg result: 20
>> 2e 00
>> Found device from vendor: (null)
>> USB_control_msg result: 6
>> 61 00
>> Found device: (null)
>>
>> freebsd8# uname -v
>> FreeBSD 8.0-CURRENT-200906 #0: Mon Jun 29 23:38:52 CEST 2009
>> root at freebsd8.intra.mdolze.de:/usr/obj/usr/src/sys/CUSTOM
>>
>> It does not even get string descriptors back (second byte of buffer is
>> 0x00).
>>
>>
>> Avrdude doesn't work either:
>>
>> freebsd8# avrdude -c usbasp -p atmega8 -U eeprom:r:-:h
>> avrdude: error: usbasp_transmit: Unknown error
>>
> 
> That's maybe a bug in the firmware in your USB device! Can you try reading the 
> strings using usbconfig -u XXX -a YYY dump_string ZZZ
> 
> What does usbconfig output?
> 
> --HPS
> 

Here's the output:

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.

Thanks,
Markus




More information about the freebsd-usb mailing list