USB memory stick

Jean-Baptiste Quenot jb.quenot at caraldi.com
Thu Oct 2 22:03:23 PDT 2003


* Michael L. Hostbaek:

> I have just purchased a MP3 player - which basically consists of a USB
> 128MB memory  stick, with some  audio hardware.. Anyways, when  I plug
> the USB stick into my 5.1-RELEASE-p3 box, I am seeing the following in
> /var/log/messages:
> 
> Oct  2 15:31:27  kernel: umass0: SigmaTel, Inc. USBMSC Audio Player, rev 1.10/0.01, addr 2
> Oct  2 15:31:27  kernel: umass0: Get Max Lun not supported (IOERROR)
> Oct  2 15:31:27  kernel: da0 at umass-sim0 bus 0 target 0 lun 0
> Oct  2 15:31:27  kernel: da0: <SigmaTel MSCN 0001> Removable Direct Access SCSI-4 device
> Oct  2 15:31:27  kernel: da0: 1.000MB/s transfers
> Oct  2 15:31:27  kernel: da0: 123MB (251904 512 byte sectors: 64H 32S/T 123C)
>
> [...]
>
> Oct  2 15:32:22  kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
>
> [...]
> 
> If I try and mount it, the box just freezez until I remove the device.
> 
> Any ideas ?

The relevant info in the logs is  that the device does not recognize the
« Synchronize cache »  command.  You may want to add a  « kernel quirk »
in scsi_da.c, it  consists of adding an entry for  your memory stick and
telling that it does not support that command.

You can use the  following PR as a model for chaning  the kernel, it's a
PR I wrote for my own memory stick:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/54786

But first, be sure to upgrade  your system to the latest current FreeBSD
sources (checkout  HEAD).  Most quirks are  now no more needed  due to a
recent refactoring of USB mass storage drivers.

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


More information about the freebsd-questions mailing list