Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2003 14:26:39 -0700
From:      Lars Eggert <larse@ISI.EDU>
To:        Nate Lawson <nate@root.org>
Cc:        current@freebsd.org
Subject:   Re: umass problem with Hitachi DVDCAM
Message-ID:  <3ECA9D8F.3070506@isi.edu>
In-Reply-To: <20030520115122.O92084@root.org>
References:  <3ECA703F.3060705@isi.edu> <20030520115122.O92084@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms040703080303090704050606
Content-Type: multipart/mixed;
 boundary="------------040703050405030106020004"

This is a multi-part message in MIME format.
--------------040703050405030106020004
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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@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@isi.edu>           USC Information Sciences Institute

--------------040703050405030106020004
Content-Type: text/plain;
 name="usb.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="usb.patch"

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

--------------040703050405030106020004--

--------------ms040703080303090704050606
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJtjCC
AzgwggKhoAMCAQICEGZFcrfMdPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAwgdExCzAJBgNV
BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgG
A1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vydmlj
ZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkG
CSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMDA4MzAwMDAw
MDBaFw0wNDA4MjcyMzU5NTlaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD
YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2Vy
dGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAw
LjguMzAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7SbngnZ4HF2ogZ
gpcO40QpimM1Km1wPPrcrvfudG8wvDOQf/k0caCjbZjxw0+iZdsN+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gNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNh
cGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNl
czEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDCCVBMIGtBgsq
hkiG9w0BCRACCzGBnaCBmjCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2Fw
ZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRp
ZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44
LjMwAgMIJUEwDQYJKoZIhvcNAQEBBQAEggEAvqcKEQIxnVrAvvElKQp/A6YV6KW40/CSs526
mms/a5e5JX4zuks7SRXBowJmlIXzhyXmB89913yv04sW4MOROodm/gzg4/6c39Xzc/oi2hng
6vyROy29IVOAu5mdizS5mdtPuXQPVNYifPCo1aQsMdllTs0DB/8OY/JBe7s3jUREcXWTWfve
fhhXI8MltiwfqiHag5aE+HzLmxuWmfvVWSZCZIb7ieQriu0BhBP7Lzv2moWxnapy6RV9o/sj
qAam+leI3n8Xwz8O8B1BWSDVUdH9MqLeurfy/NT5CdawWl79cTHk3JG3NkW1SQGcLSgskt1f
Kd2umxMNIfEnxsYeoAAAAAAAAA==
--------------ms040703080303090704050606--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ECA9D8F.3070506>