Subject: USB/umass issues with Creative Zen Nano Plus
To: None <netbsd-users@netbsd.org>
From: Jesse Peterson <jpeterson275@comcast.net>
List: netbsd-users
Date: 08/31/2006 20:10:57
Hello,

Right into it... when I plug the device in:

Aug 29 22:38:42 localhost /netbsd: umass0 at uhub4 port 7 configuration 1 interface 0
Aug 29 22:38:42 localhost /netbsd: 
Aug 29 22:38:42 localhost /netbsd: umass0: CREATIVE Zen Nano Plus, rev 2.00/11.23, addr 2
Aug 29 22:38:42 localhost /netbsd: umass0: using SCSI over Bulk-Only
Aug 29 22:38:42 localhost /netbsd: scsibus0 at umass0: 2 targets, 1 lun per target
Aug 29 22:38:43 localhost /netbsd: sd0 at scsibus0 target 0 lun 0: <CREATIVE, Zen Nano Plus, 1123> disk removable
Aug 29 22:38:43 localhost /netbsd: sd0: fabricating a geometry
Aug 29 22:38:43 localhost /netbsd: sd0: 245 MB, 245 cyl, 64 head, 32 sec, 512 bytes/sect x 502912 sectors
Aug 29 22:40:07 localhost sudo: jpeterson : TTY=ttyp2 ; PWD=/home/jpeterson ; USER=root ; COMMAND=/bin/dd if=/dev/rsd0e of=/dev/null count=5
Aug 29 22:40:07 localhost /netbsd: sd0: fabricating a geometry

Which would appear somewhat normal, except that this device has 1 GB of
flash so it should in theory have four times as many sectors, right?

Beyond that, whenever anything is done with actually accessing the
device the command in question simply hangs, be it dd, fisk, or
mbrlabel.  Usually after a while I'll get multiple:

Aug 29 22:41:12 localhost /netbsd: umass0: BBB reset failed, TIMEOUT

Usually after a while the entire system will hang.  At times I've been
able to unplug it to get this:

Aug 29 22:41:12 localhost /netbsd: umass0: BBB reset failed, TIMEOUT
Aug 29 22:42:00 localhost /netbsd: umass0: BBB reset failed, IOERROR
Aug 29 22:42:00 localhost /netbsd: umass0: BBB bulk-in clear stall failed, IOERROR
Aug 29 22:42:00 localhost /netbsd: umass0: at uhub4 port 7 (addr 2) disconnected
Aug 29 22:42:00 localhost /netbsd: sd0(umass0:0:0:0): generic HBA error
Aug 29 22:42:00 localhost /netbsd: sd0: dos partition I/O error
Aug 29 22:42:00 localhost /netbsd: sd0(umass0:0:0:0): generic HBA error
Aug 29 22:42:00 localhost /netbsd: sd0(umass0:0:0:0): generic HBA error
Aug 29 22:42:00 localhost /netbsd: sd0 detached
Aug 29 22:42:00 localhost /netbsd: scsibus0 detached
Aug 29 22:42:00 localhost /netbsd: umass0 detached

But again, usually I just get a system hang.

This device should work by most accounts - I've seen mention to it
working on FreeBSD and Linux, and I know it works on WinXP with no
separate drivers (standard USB mass storage).

For reference, uhub4 above is this:

ehci0 at pci0 dev 16 function 4: VIA Technologies VT8237 EHCI USB Controller (rev. 0x86)
ehci0: interrupting at irq 11
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA Technologie EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered

...and (uname -a)...

NetBSD localhost 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC
2005
builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC
i386


I've tried the device on another machine running NetBSD 3.0 with the
same results -- though that machine had SiS-chipset USB/1.1 ports.

My next thoughts are to try NetBSD 3.1 RC1.

Any ideas?  I'd be interested in helpinging debug the device.. what should I do next?


-- 
Jesse Peterson <jpeterson275@comcast.net>