Synchronize cache failed.

Daniel Eischen deischen at freebsd.org
Tue Jun 2 15:30:02 UTC 2009


On Tue, 2 Jun 2009, Wojciech Puchar wrote:

> i bought new digital camera+"8GB" flash card, and when i plug it into USB 
> port, it's detected properly
>
> umass0: <OLYMPUS FE20,X15,C25, class 0/0, rev 2.00/1.00, addr 2> on uhub1
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <OLYMPUS FE20,X15,C25 1.00> Removable Direct Access SCSI-0 device
> da0: 1.000MB/s transfers
> da0: 7646MB (15659008 512 byte sectors: 255H 63S/T 974C)
>
>
> i can do everything fine, but i'm getting
>
> umass0: Phase Error, residue = 0
> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status 
> == 0x0
>
>
> every some time.
>
> so i added a device line to usbdevs, then i edited umass.c
>
> to add
>
>        { USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_FE20, RID_WILDCARD,
>          UMASS_PROTO_SCSI,
>          NO_SYNCHRONIZE_CACHE
>        },
>
> to static struct umaumass_devdescrs[]
>
>
> it compiled, all fine, but when i attached camera again system rebooted.
>
> i was in X session and had tail -f /var/log/messages running, and i was able 
> to see a message that my camera is unknown device, for maybe 1 second before 
> getting reboot.

Try disabling hal (comment out hald_enable in /etc/rc.conf).
If you need hal for X, try booting without X and hal/dbus.

You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, or
UMASS_PROTO_DEFAULT in your quirk.

-- 
DE


More information about the freebsd-hackers mailing list