USB Mass Storage Device with HPS Stack

Xiaofan Chen xiaofanc at gmail.com
Sat Apr 26 07:19:36 UTC 2008


On Sat, Apr 26, 2008 at 5:49 AM, Hans Petter Selasky <hselasky at c2i.net> 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: <I-Tuner Networks product 0x0004, class 0/0, rev 2.00/0.00,
addr 3> 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: <Didlet MSD\\000\\030\\030\\030\\030\\030\\030\\030\\030\\030\\030 1\\000
==> 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 at 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


More information about the freebsd-usb mailing list