Re: USBDMSC emulated device does not work on FreeBSD

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 12 Nov 2021 13:25:38 UTC
On 11/12/21 14:22, Milan Obuch wrote:
> On Fri, 12 Nov 2021 14:13:08 +0100
> Hans Petter Selasky <hps@selasky.org> wrote:
> 
> [ snip ]
> 
>> It crashes on synchronize cache:
>>
>> Try adding this quirk:
>>
>> usbconfig -d ugen1.3 add_quirk UQ_MSC_NO_SYNC_CACHE
>>
>> Then re-plug the device.
>>
>> --HPS
>>
> 
> Could this be done before device attach? Trouble is, after synchronize
> crashes, USB firmware crashes as well. This means there is basically no
> ugen1.3 device anymore, so doing this command just tells (after some
> delay)
> 
> Adding quirk 'UQ_MSC_NO_SYNC_CACHE' failed, continuing.
> 
> Next I must reset the board, but before I am able to do anything, it
> crashes again.
> 
> Regards,
> Milan
> 

Hi,

man usb_quirk

      To install a quirk at boot time, place one or several lines like the
      following in loader.conf(5):

hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_MSC_NO_SYNC_CACHE"
hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_NO_STRINGS"

--HPS