PQI 128MB USB flash drive mount problems

2003-08-15 Thread leon j. breedt
hi,

i have a PQI Intelligent Stick 128MB USB flash drive that
i'm trying to get working on -CURRENT.

i added:

  device da
  device scbus
  device umass

to my kernel configuration.

when i attach the drive, it detects it correctly, and
i get the following kernel messages on the console:

umass0: Intelligent Stick Intelligent Stick, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB Card IntelligentStick 1.00 Removable Direct Access SCSI-0
device
da0: 1.000MB/s transfers
da0: 127MB (260448 512 byte sectors: 64H 32S/T 127C)
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi
status == 0x0

after the above is printed, it prints:

Opened disk da0 - 5
Opened disk da0 - 5
Opened disk da0 - 5
Opened disk da0 - 5

4 times, and then it appears to give up. any attempt to mount
/dev/da0s1 fails after a timeout of about 15-20 seconds or so.

ash# mount -t msdos /dev/da0s1 /mnt/istick
msdosfs: /dev/da0s1: Input/output error

any ideas what to do to debug this? given pointers, i'm willing
to play with some code.

thanks!
leon

nb: please cc me on responses.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PQI 128MB USB flash drive mount problems

2003-08-15 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], leon j. breedt write
s:
hi,

i have a PQI Intelligent Stick 128MB USB flash drive that
i'm trying to get working on -CURRENT.

For another PQI product I need this patch.  There is a good
chance they use the same controller chip:

Index: scsi_da.c
===
RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
retrieving revision 1.151
diff -u -r1.151 scsi_da.c
--- scsi_da.c   6 Aug 2003 17:30:03 -   1.151
+++ scsi_da.c   7 Aug 2003 07:39:29 -
@@ -364,6 +364,16 @@
{T_DIRECT, SIP_MEDIA_REMOVABLE, MITSUMI, USB FDD, *},
/*quirks*/ DA_Q_NO_SYNC_CACHE
},
+   {
+   /*
+* PQI Travel Flash, rev 1.10/2.05, addr 2
+* General Flash Disk Drive 2.05
+* Serial Number ST92163-2000
+*/
+   {T_DIRECT, SIP_MEDIA_REMOVABLE, General Flash Disk Drive,
+*, *},
+   /*quirks*/ DA_Q_NO_SYNC_CACHE
+   }
 #endif /* DA_OLD_QUIRKS */
 };
 
-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PQI 128MB USB flash drive mount problems -- RESOLVED

2003-08-15 Thread leon j. breedt
On Fri, Aug 15, 2003 at 09:45:25PM +0200, Poul-Henning Kamp wrote:
 For another PQI product I need this patch.  There is a good
 chance they use the same controller chip:
applied, added DA_OLD_QUIRKS to config, recompiled, rebooted,
and it works flawlessly.

thanks!
leon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]