Re: umass problem with Hitachi DVDCAM

From: Lars Eggert <larse_at_ISI.EDU>
Date: Tue, 20 May 2003 14:26:39 -0700
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

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
_at__at_ -115,6 +115,7 _at__at_
 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
_at__at_ -306,6 +307,7 _at__at_
 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
_at__at_ -659,6 +661,9 _at__at_
 /* 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
_at__at_ -1116,6 +1121,9 _at__at_
 
 /* 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
_at__at_ -308,6 +308,10 _at__at_
 };
 
 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

Received on Tue May 20 2003 - 12:26:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:08 UTC