Re: USBDMSC emulated device does not work on FreeBSD
Date: Fri, 12 Nov 2021 14:22:13 UTC
On Fri, 12 Nov 2021 14:26:32 +0100 Hans Petter Selasky <hps@selasky.org> wrote: > On 11/12/21 14:25, Hans Petter Selasky wrote: > > hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_MSC_NO_SYNC_CACHE" > > hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_NO_STRINGS" > > Should be "1" for second quirk. > > hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_MSC_NO_SYNC_CACHE" > hw.usb.quirk.1="0x1514 0x0001 0 0xffff UQ_NO_STRINGS" > > --HPS > Thanks for hint, it works now. For some reason, only one quirk works on system under test (it is 12.2-STABLE, r368192). I checked it with 'usbconfig dump_device_quirks', just the second one was shown. For completeness, necessary lines in loader.conf files are usb_quirk_load=YES hw.usb.quirk.0="0x1514 0x0001 0 0xffff UQ_NO_STRINGS" hw.usb.quirk.1="0x1514 0x0001 0 0xffff UQ_MSC_NO_SYNC_CACHE" (I think UQ_NO_STRINGS could be omitted, did not test without, but 'usbconfig dump_device_quirks | grep 1514' outputs just VID=0x1514 PID=0x0001 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_MSC_NO_SYNC_CACHE nothing more.) I am reading from /dev/da0 now... next check would be write, I'll test later. If you'd like me to test anything else, just drop a note. Again, thanks for help. Regards, Milan