Hi,
Am Dienstag, 4. Juni 2002 20:55 schrieb Balint Cristian:
> Hi guys !
>
> After little happy hacking on kernel of my new Pentacon DCZ 1.3 Alias
> "Praktica" camera wich claim to be an usb-storage compliant , due to
> this modification in:
>
> /usr/src/linux/drivers/usb/storage/unusual_devs.h :
>
> Add this line:
>
> UNUSUAL_DEV( 0x0784, 0x1310, 0x0000, 0xffff,
> "Pentacon",
> "DCZ-1.3/2.1/3.3",
> US_SC_SCSI, US_PR_BULK, NULL,
> US_FL_FIX_INQUIRY | US_FL_START_STOP),
>
>
>
>
> I am so happy with it now !
>
> BECAUSE IS WORKING !!!!!!!!!!!!!!!
Thanks!
I wanted to answer before, but didn't have the time for proper testing.
I would like to know how you tacled the unusual_devs.h - I tried this
myself before but gave up because it seemed too many possible
combinations to try.
> Tested only DCZ 1.3 model but suppose for other 2.1 3.3 model to work
> at least.
I have a Praktica(Pentacon) DCZ 2.1 and was not able to get it running
with Linux befor (see my mail from January the 15th on this list,
Message-Id: <[EMAIL PROTECTED]>).
I'm currently running kernel 2.4.18 (stock SuSE 8.0) with
/* Driver for USB Mass Storage compliant devices
*
* $Id: usb.c,v 1.73 2002/01/27 09:02:15 mdharm Exp $
*
* Current development and maintenance by:
* (c) 1999-2002 Matthew Dharm ([EMAIL PROTECTED])
*
* Developed with the assistance of:
* (c) 2000 David L. Brown, Jr. ([EMAIL PROTECTED])
*
Now taking your patch for unusual_devs.h, I gave it another go:
--- snip -----
--- /usr/src/linux-2.4.18.SuSE/drivers/usb/storage/unusual_devs.h.orig
Wed Mar 27 13:57:17 2002
+++ /usr/src/linux-2.4.18.SuSE/drivers/usb/storage/unusual_devs.h Thu
Jun 6 19:51:54 2002
@@ -378,6 +378,19 @@
US_FL_SINGLE_LUN | US_FL_START_STOP ),
#endif
+UNUSUAL_DEV( 0x0784, 0x1310, 0x0000, 0xffff,
+ "Pentacon",
+ "DCZ-1.3/2.1/3.3",
+ US_SC_SCSI, US_PR_BULK, NULL,
+ US_FL_FIX_INQUIRY | US_FL_START_STOP),
+
+UNUSUAL_DEV( 0x0784, 0x1688, 0x0000, 0xffff,
+ "Pentacon/Praktica",
+ "DCZ-2.1",
+ US_SC_SCSI, US_PR_BULK, NULL,
+ US_FL_FIX_INQUIRY | US_FL_START_STOP),
+
+
#ifdef CONFIG_USB_STORAGE_FREECOM
UNUSUAL_DEV( 0x07ab, 0xfc01, 0x0000, 0x9999,
"Freecom",
--- snap -----
The result is, that it sometimes works, but most times it does not.
I have compiled the usb-storage with and without DEBUG switched on.
When it works, /var/log/messages looks like this:
--- snip (messages, success, without debug) -----
kernel: hub.c: USB new device connect on bus1/1, assigned device number
3
kernel: usb.c: USB device 3 (vend/prod 0x784/0x1688) is not claimed by
any active driver.
kernel: Initializing USB Mass Storage driver...
kernel: usb.c: registered new driver usb-storage
kernel: usb-uhci.c: interrupt, status 2, frame# 1041
kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: Pentacon Model: DCZ-2.1 Rev: 0000
kernel: Type: Direct-Access ANSI SCSI
revision: 02
kernel: Attached scsi removable disk sda at scsi1, channel 0, id
0, lun 0
kernel: SCSI device sda: 125184 512-byte hdwr sectors (64 MB)
kernel: sda: test WP failed, assume Write Enabled
insmod: Using
/lib/modules/2.4.18-4GB/kernel/drivers/usb/storage/usb-storage.o
insmod: Symbol version prefix ''
kernel: sda: sda1
kernel: WARNING: USB Mass Storage data integrity not assured
kernel: USB Mass Storage device found at 3
kernel: USB Mass Storage support registered.
--- snap (messages, success, without debug) -----
I can then mount /dev/sda1 and do all the things you would expect to be
able to do.
Now, as I said, success is not guaranteed. In fact, most of the times it
fails. Without DEBUG switched on, the messages look like this:
--- snip (messages, failure, without debug) -----
kernel: hub.c: USB new device connect on bus1/1, assigned device number
4
kernel: usb.c: USB device 4 (vend/prod 0x784/0x1688) is not claimed by
any active driver.
kernel: Initializing USB Mass Storage driver...
kernel: usb.c: registered new driver usb-storage
kernel: usb-uhci.c: interrupt, status 2, frame# 607
kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: Pentacon Model: DCZ-2.1 Rev: 0000
kernel: Type: Direct-Access ANSI SCSI revision:
02
kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun
0
kernel: SCSI device sda: 125184 512-byte hdwr sectors (64 MB)
kernel: usb-uhci.c: interrupt, status 3, frame# 1032
kernel: usb.c: USB disconnect on device 4
kernel: hub.c: USB new device connect on bus1/1, assigned device number
5
kernel: usb-uhci.c: interrupt, status 3, frame# 2016
kernel: scsi: device set offline - not ready or command retry failed
after bus reset: host 1 channel 0 id 0 lun 0
insmod: Using
/lib/modules/2.4.18-4GB/kernel/drivers/usb/storage/usb-storage.o
insmod: Symbol version prefix ''
/etc/hotplug/usb.agent[4632]: cannot open /proc/bus/usb/001/004, No such
file or directory (2)
kernel: sda: test WP failed, assume Write Enabled
kernel: sda: I/O error: dev 08:00, sector 0
kernel: I/O error: dev 08:00, sector 0
kernel: unable to read partition table
kernel: WARNING: USB Mass Storage data integrity not assured
kernel: USB Mass Storage device found at 4
kernel: USB Mass Storage support registered.
kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: Pentacon Model: DCZ-2.1 Rev: 0000
kernel: Type: Direct-Access ANSI SCSI revision:
02
kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun
0
kernel: SCSI device sdb: 125184 512-byte hdwr sectors (64 MB)
/etc/hotplug/usb.agent[4632]: Can't ignore signal CHLD, forcing to
default.
/etc/hotplug/usb.agent[4665]: Can't ignore signal CHLD, forcing to
default.
--- snap (messages, failure, without debug) -----
With DEBUG on there is a lot more data of course:
--- snip (messages, failure, with debug) -----
kernel: usb.c: USB device 3 (vend/prod 0x784/0x1688) is not claimed by
any active driver.
kernel: Initializing USB Mass Storage driver...
kernel: usb.c: registered new driver usb-storage
kernel: usb-storage: act_altsettting is 0
kernel: usb-storage: id_index calculated to be: 52
kernel: usb-storage: Array length appears to be: 88
kernel: usb-storage: Vendor: Pentacon/Praktica
kernel: usb-storage: Product: DCZ-2.1
kernel: usb-storage: USB Mass Storage device detected
kernel: usb-storage: Endpoints: In: 0xc523eb00 Out: 0xc523eb14 Int:
0x00000000 (Period 0)
kernel: usb-storage: New GUID 078416880000000004810816
kernel: usb-uhci.c: interrupt, status 2, frame# 426
kernel: usb_control/bulk_msg: timeout
kernel: usb-storage: GetMaxLUN command result is -110, data is 196
kernel: usb-storage: Transport: Bulk
kernel: usb-storage: Protocol: Transparent SCSI
kernel: usb-storage: *** thread sleeping.
kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Faking INQUIRY command
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: Vendor: Pentacon Model: DCZ-2.1 Rev: 0000
kernel: Type: Direct-Access ANSI SCSI revision:
02
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad LUN (0/1)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (1/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (2/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (3/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (4/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (5/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (6/0)
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Bad target number (7/0)
kernel: usb-storage: *** thread sleeping.
kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun
0
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0x28 Trg 0 LUN 0 L 0 F
0 CL 6
kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x28 R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command READ_CAPACITY (10 bytes)
kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0x29 Trg 0 LUN 0 L 8 F
128 CL 10
kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 8 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 8/8
kernel: usb-storage: usb_stor_transfer_partial(): transfer complete
kernel: usb-storage: Bulk data transfer result 0x0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: Bulk status result = 0
kernel: usb-storage: Bulk status Sig 0x53425355 T 0x29 R 0 Stat 0x0
kernel: usb-storage: scsi cmd done, result=0x0
kernel: usb-storage: *** thread sleeping.
kernel: SCSI device sda: 125184 512-byte hdwr sectors (64 MB)
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command MODE_SENSE (6 bytes)
kernel: usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0x2a Trg 0 LUN 0 L 255
F 128 CL 6
kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 13/255
kernel: usb-storage: Bulk data transfer result 0x1
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: command_abort() called
kernel: usb-storage: -- transport indicates command was aborted
kernel: usb-storage: scsi command aborted
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0x2a Trg 0 LUN 0 L 0 F
0 CL 6
kernel: usb-storage: Bulk command transfer result=0
kernel: usb-storage: Attempting to get CSW...
kernel: usb-storage: command_abort() called
kernel: usb-storage: -- transport indicates command was aborted
kernel: usb-storage: scsi command aborted
kernel: usb-storage: *** thread sleeping.
kernel: usb-storage: device_reset() called
kernel: usb-storage: Bulk reset requested
kernel: usb-uhci.c: interrupt, status 3, frame# 1864
kernel: usb-storage: Bulk soft reset failed -32
kernel: usb-storage: bus_reset() called
kernel: usb.c: USB disconnect on device 3
kernel: usb-storage: bus_reset() complete
kernel: hub.c: USB new device connect on bus1/1, assigned device number
4
kernel: usb-storage: queuecommand() called
kernel: usb-storage: *** thread awakened.
kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00 00 00
kernel: usb-storage: Bulk command S 0x43425355 T 0x2a Trg 0 LUN 0 L 0 F
0 CL 6
kernel: usb-uhci.c: interrupt, status 3, frame# 800
kernel: usb-storage: Bulk command transfer result=-110
kernel: usb-storage: -- transport indicates error, resetting
kernel: usb-storage: Bulk reset requested
insmod: Using
/lib/modules/2.4.18-4GB/kernel/drivers/usb/storage/usb-storage.o
insmod: Symbol version prefix ''
kernel: usb-storage: Bulk soft reset failed -110
kernel: usb-storage: scsi cmd done, result=0x70000
kernel: usb-storage: *** thread sleeping.
kernel: scsi: device set offline - not ready or command retry failed
after bus reset: host 1 channel 0 id 0 lun 0
kernel: sda: test WP failed, assume Write Enabled
kernel: sda: I/O error: dev 08:00, sector 0
kernel: I/O error: dev 08:00, sector 0
kernel: unable to read partition table
kernel: WARNING: USB Mass Storage data integrity not assured
kernel: USB Mass Storage device found at 3
.
.
.
--- snap (messages, failure, with debug) -----
Can anybody tell from the debug output what goes wrong here? And any
idea, why it sometimes works and sometimes not?
Greetings from Bremen
hartmut
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel