From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 22:03:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD3716A4BF for ; Thu, 2 Oct 2003 22:03:23 -0700 (PDT) Received: from mail.caraldi.com (caraldi.com [62.212.102.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0687243FF2 for ; Thu, 2 Oct 2003 22:03:22 -0700 (PDT) (envelope-from jbq@caraldi.com) Received: from watt.intra.caraldi.com (watt.intra.caraldi.com [192.168.100.101]) by mail.caraldi.com (Postfix) with ESMTP id 61846211E for ; Fri, 3 Oct 2003 07:03:20 +0200 (CEST) Received: by watt.intra.caraldi.com (Postfix, from userid 1001) id 7FD3588; Fri, 3 Oct 2003 07:03:21 +0200 (CEST) Date: Fri, 3 Oct 2003 07:03:21 +0200 From: Jean-Baptiste Quenot To: questions@FreeBSD.org Message-ID: <20031003050319.GA982@watt.intra.caraldi.com> Mail-Followup-To: questions@FreeBSD.org References: <20031002135214.GJ63427@mich2.itxmarket.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20031002135214.GJ63427@mich2.itxmarket.com> User-Agent: Mutt/1.5.4i Subject: Re: USB memory stick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 05:03:23 -0000 * 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: 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/