kern/73766: [patch] Add USB storage flash: TwinMOS Memory Disk IV

Valentin Nechayev netch at netch.kiev.ua
Wed Nov 10 01:40:28 PST 2004


>Number:         73766
>Category:       kern
>Synopsis:       [patch] Add USB storage flash: TwinMOS Memory Disk IV
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 10 09:40:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Valentin Nechayev
>Release:        FreeBSD 5.3-RC2 i386
>Organization:
private
>Environment:
System: FreeBSD moiva.carrier.kiev.ua 5.3-RC2 FreeBSD 5.3-RC2 #0: Wed Nov 3 22:41:38 EET 2004 root at moiva.carrier.kiev.ua:/usr/BSD/obj/usr/src/sys/moiva i386


>Description:

Having USB flash: TwinMOS Memory Disk IV, USB2.0, 256MB
To run it under FreeBSD added detection to driver, seems working OK in tests
(attach/detach, mount/umount, read/write)

umass0: TTI-MSA USB 2.0 Mobile Disk, rev 2.00/1.00, addr 2
da1 at umass-sim0 bus 0 target 0 lun 0
da1: <USB 2.0 Mobile Disk N4M 1.00> Removable Direct Access SCSI-2 device
da1: 1.000MB/s transfers
da1: 244MB (499712 512 byte sectors: 64H 32S/T 244C)

scbus3 on umass-sim0 bus 0:
<USB 2.0 Mobile Disk N4M 1.00>     at scbus3 target 0 lun 0 (da1,pass1)

The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
    start 32, size 499680 (243 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 487/ head 31/ sector 32


>How-To-Repeat:

>Fix:


--- usbdevs.0	Wed Nov 10 10:20:10 2004
+++ usbdevs	Wed Nov 10 10:21:31 2004
@@ -358,6 +358,7 @@
 vendor JRC		0x1145	Japan Radio Company
 vendor DELORME		0x1163	Delorme Publishing
 vendor ACERCM		0x1189	Acer Communications & Multimedia Inc.
+vendor TWINMOS		0x126f  TwinMOS
 vendor BELKIN2		0x1293	Belkin Components
 vendor MOBILITY		0x1342	Mobility
 vendor SHARK		0x13d2	Shark
@@ -1363,3 +1364,6 @@
 /* ZyXEL Communication Co. products */
 product ZYXEL OMNI56K		0x1500	Omni 56K Plus
 product ZYXEL 980N		0x2011	Scorpion-980N keyboard
+
+/* TwinMOS */
+product TWINMOS MDIV		0x1325	Memory Disk IV

--- umass.c.0	Wed Nov 10 10:39:33 2004
+++ umass.c	Wed Nov 10 10:40:23 2004
@@ -457,6 +457,10 @@
 	  UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I,
 	  FORCE_SHORT_INQUIRY
 	},
+	{ USB_VENDOR_TWINMOS, USB_PRODUCT_TWINMOS_MDIV, RID_WILDCARD,
+	  UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
+	  NO_QUIRKS
+	},
 	{ VID_EOT, PID_EOT, RID_EOT, 0, 0 }
 };
 
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list