Date: Mon, 31 Jul 2000 03:02:30 +0900 (JST) From: sakichan@lares.dti.ne.jp To: FreeBSD-gnats-submit@freebsd.org Subject: kern/20300: [Patch] support for Panasonic USB FDD Message-ID: <200007301802.DAA19232@shrike.dti.ad.jp>
next in thread | raw e-mail | index | archive | help
>Number: 20300
>Category: kern
>Synopsis: [Patch] support for Panasonic USB FDD
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 30 11:10:04 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: SAKIYAMA Nobuo
>Release: FreeBSD 4.1-STABLE i386
>Organization:
none
>Environment:
machines with USB interfaces and a Panasonic USB FDD
>Description:
Panasonic USB FDD "MATSHITA FDD CF-VFDU03" does not work.
The FDD is detected, but when trying to read or write,
errors occur.
In dmesg:
umass0: MATSHITA CF-VFDU03 , rev 1.00/0.00, addr 2
da0 at umass-sim32 bus 0 target 0 lun 0
da0: <MATSHITA FDD CF-VFDU03 1026> Removable Direct Access SCSI-0 device
da0: 20KB/s transfers
da0: 1MB (2880 512 byte sectors: 2H 18S/T 80C)
but, when I executed "dd if=/dev/da0 of=/dev/null",
umass0: Unsupported UFI command 0x08, 6 byte command should have been converted
da0: reading primary partition table: error reading fsbn 0
umass0: Unsupported UFI command 0x35
(da0:umass-sim32:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0
>How-To-Repeat:
as described in "Description:"
>Fix:
I think that the auto detection of UFI based drives in CAM is the best,
but I don't know the CAM architecture well.
So I wrote a patch similar to the quirks for YE-DATA USB FDD Drives.
--- sys/cam/scsi/scsi_da.c.dist Sat Jul 8 23:24:08 2000
+++ sys/cam/scsi/scsi_da.c Mon Jul 31 02:14:50 2000
@@ -198,6 +198,13 @@
*/
{T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU", "*"},
/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
+ },
+ {
+ /*
+ * See above.
+ */
+ {T_DIRECT, SIP_MEDIA_REMOVABLE, "MATSHITA", "FDD CF-VFDU*", "*"},
+ /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
}
};
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007301802.DAA19232>
