umass problem with Hitachi DVDCAM

Lars Eggert larse at ISI.EDU
Tue May 20 14:26:41 PDT 2003


Nate Lawson wrote:
> 
> It amazes me that a device wouldn't be able to answer a simple INQUIRY.
> Try adding a NO_INQUIRY quirk in umass.c.

Thanks, that seems to work somewhat better (patch attached):

umass0: Hitachi, Ltd. DVDCAM USB HS Interface, rev 2.00/1.40, addr 2
da2 at umass-sim0 bus 0 target 0 lun 0
da2: <  > Removable Direct Access SCSI-2 device
da2: 1.000MB/s transfers
da2: 1338MB (685296 2048 byte sectors: 255H 63S/T 42C)

However, the device doesn't seem to have a valid partition table:

[root at nik: /] fdisk da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=42 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=42 heads=255 sectors/track=63 (16065 blks/cyl)

fdisk: invalid fdisk partition table found
fdisk: /boot/mbr: length must be a multiple of sector size

AFAIK the camera should show up as a regular hard disk, even though 
internally it uses a DVD file system. Any ideas?

Lars

PS: The attached patch also has an additional usbdevs entry for a 
Toshiba e740 PocketPC that I had in my local tree.
-- 
Lars Eggert <larse at isi.edu>           USC Information Sciences Institute
-------------- next part --------------
Index: usbdevs
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.124
diff -u -r1.124 usbdevs
--- usbdevs	2003/05/11 23:55:28	1.124
+++ usbdevs	2003/05/20 21:26:07
@@ -115,6 +115,7 @@
 vendor STMICRO		0x0483	STMicroelectronics
 vendor YAMAHA		0x0499	YAMAHA
 vendor COMPAQ		0x049f	Compaq Computers
+vendor HITACHI		0x04a4	Hitachi, Ltd.
 vendor ACERP		0x04a5	Acer Peripherals
 vendor VISIONEER	0x04a7	Visioneer
 vendor CANON		0x04a9	Canon
@@ -306,6 +307,7 @@
 vendor ALATION		0x0910	Alation Systems
 vendor GOHUBS		0x0921	GoHubs
 vendor BIOMETRIC	0x0929	American Biometric Company
+vendor TOSHIBA		0x0930	Toshiba Corporation
 vendor YANO		0x094f	Yano
 vendor KINGSTON		0x0951	Kingston Technology
 vendor BLUEWATER	0x0956	BlueWater Systems
@@ -659,6 +661,9 @@
 /* Hauppauge Computer Works */
 product HAUPPAUGE WINTV_USB_FM	0x4d12	WinTV USB FM
 
+/* Hitachi, Ltd. products */
+product HITACHI DVDCAM_USB	0x001e	DVDCAM USB HS Interface
+
 /* HP products */
 product HP 895C			0x0004	DeskJet 895C
 product HP 4100C		0x0101	Scanjet 4100C
@@ -1116,6 +1121,9 @@
 
 /* Thrustmaster products */
 product THRUST FUSION_PAD	0xa0a3	Fusion Digital Gamepad
+
+/* Toshiba Corporation products */
+product	TOSHIBA POCKETPC_E740	0x0706	PocketPC e740
 
 /* Trek Technology products */
 product TREK THUMBDRIVE		0x1111	ThumbDrive
Index: umass.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/umass.c,v
retrieving revision 1.83
diff -u -r1.83 umass.c
--- umass.c	2003/05/20 18:04:42	1.83
+++ umass.c	2003/05/20 21:26:11
@@ -308,6 +308,10 @@
 };
 
 Static struct umass_devdescr_t umass_devdescrs[] = {
+	{ USB_VENDOR_HITACHI, USB_PRODUCT_HITACHI_DVDCAM_USB, RID_WILDCARD,
+	  UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I,
+	  NO_INQUIRY
+	},
 	{ USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD,
 	  UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I,
 	  RS_NO_CLEAR_UA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3529 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030520/17173ca9/smime.bin


More information about the freebsd-current mailing list