From owner-freebsd-usb@FreeBSD.ORG Sat Apr 26 07:19:36 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D526A106564A for ; Sat, 26 Apr 2008 07:19:36 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id AF14D8FC2B for ; Sat, 26 Apr 2008 07:19:36 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so6034564waf.3 for ; Sat, 26 Apr 2008 00:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qMzx+EbZ480aHJJ39UnZREVgik2g7SxtOohaSMe8ovw=; b=EIkkRfizMSgoTNio6+erpEre6r2z99rkb6o7WpgvQYrWasE7OjbCtGpsRciJ0Xx3b2Rnqsn5b420V0FV+lIrvLqILZ6kqoCfIoK0KMPAoCDIOx2vpSAOl9rvzZh21lwG+ISHXZb3StY17Fs7ysWCd1ZpikX62xfHRMuZzjh/m2U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JUNUKmT5ljh8Kr78JiofVnlW60m30ysUv+dfTW3ju1ZZSei7kBOz9K+IYq/6LK9M9jXwbmpWSGy2NjIjF9CxawB/AWQPKOxtwetnKCts03zT3VlX5LM3XhCebQxXeL8DoLYIN9JdgEeV2jaddeqMToR6KizKQLe+/w/WgN9MHrc= Received: by 10.114.58.1 with SMTP id g1mr4142469waa.179.1209194376182; Sat, 26 Apr 2008 00:19:36 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Sat, 26 Apr 2008 00:19:36 -0700 (PDT) Message-ID: Date: Sat, 26 Apr 2008 15:19:36 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804252349.25954.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804252349.25954.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Mass Storage Device with HPS Stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2008 07:19:36 -0000 On Sat, Apr 26, 2008 at 5:49 AM, Hans Petter Selasky wrote: > On Friday 25 April 2008, Xiaofan Chen wrote: > > I've got a free USB flash disk from National Semiconductor. It may > > be the so-called U3 device since it comes up as a CDROM and > > a removable USB drive. The removable USB drive part works fine. > > But I am not able to mount the CD part which contains some datasheets > > from National Semiconductor. Any tips on this? > > Since I have some other mass storage device and it seems the latest HPS stack works fine with the normal ones (Kingston Data Traveler 256MB, IMation 1GB Flash Drive and Nokia 6280 with 1GB MicroSD card in storage mode) but not the strange ones like a 23040 Bytes PIC18F2550 USB mass storage device. 1) 23040B PIC18F2550 device (using internal Flash as the storage) http://sourceforge.net/projects/pic18fusb http://forum.microchip.com/tm.aspx?m=164912 dmesg: umass1: on usb0 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1: Get Max Lun not supported (USBD_ERR_SHORT_XFER) umass1:1:1:-1: Attached to scbus1 da1 at umass-sim1 bus 1 target 0 lun 0 da1: Removable Direct Access SCSI-4 device da1: 1.000MB/s transfers da1: 0MB (49 512 byte sectors: 64H 32S/T 0C) (da1:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 [mcuee@freebsd7 ~]$ sudo mount_msdosfs /dev/da1 /media/usbdisk2 mount_msdosfs: /dev/da1: : Input/output error And Nokia 6280 in default mode will crash FreeBSD just as it crashes Linux last time. The computer immediately freezes and I have to hit the reset button. It did not work last time under my XP SP2 but later Nokia host software seems to solve the issue. It did not work under Linux either with the USB storage mode. http://www.mail-archive.com/linux-usb-users@lists.sourceforge.net/msg17810.html Later it seems to me that 2GB MicroSD card is the problem and I have replaced it with a 1GB card and it works better. With default mode, last time Linux will crash as well but it seems the problem has been solved. http://bugzilla.kernel.org/show_bug.cgi?id=7201 Strangely I could not find any crash log this time. It happened to me yesterday with the Kingston Data Traveler 256MB but today it works fine with revision 711 HPS stack. Xiaofan