Dane-Elec PhotoMate Combo
(NB I'm not a subscriber to linux-kernel, I picked up this thread from one of the NNTP gateways; please cc me on any replies. Thanks)
I've recently purchased one of these to use with the SmartMedia cards from my Fuji FinePix 4700 (yes, I know the camera is already supported as a USB mass storage device). Searching for information on using it with Linux pointed me to this thread.
I've been unable to get the card reader to work - i.e. get the card mounted - using the 2.4.2-2 kernel which came with RedHat 7.1, although the device itself appears to be recognised (according to /proc/bus/usb/devices). I've also tried 2.4.4, but had even less success.
The discussion here between Matt Dharm and Andries Brouwer seems to revolve around the fact that the patch Andries has proposed is "risky". Clearly I don't have Matt's level of knowledge in this area, so I'm following his advice for the moment.
I'd quite like to get the device working and stable, and so would Andries and at least one other person who has posted to the list of supported USB devices hosted at http://www.qbik.ch/usb/devices/ ... so the question is simple: what can we do to help? I've not currently got any experience contributing to the kernel, and I have next-to-no knowledge of USB, but I'm prepared to put some effort in here.
Andy
Signature · 3 lines
Andy Piper - Fareham, Hampshire (UK) [email protected] - ICQ #86489434 http://www.andyp.uklinux.net
Quoted 2 lines · Andy Piper
I'd quite like to get the device working and stable, and so would Andries
I can speak for myself, thank you.
For me the Dane-Elec is working and stable.
Andries
Quoted 8 lines · Guest section DW
Quoted 2 lines · Andy Piper
I'd quite like to get the device working and stable, and so would Andries
I can speak for myself, thank you.
For me the Dane-Elec is working and stable.
I'm sorry to have caused offense, Andries - I realise I'm a newcomer, and I should not have been so presumptuous.
You are using the Compact Flash reader part of the device, right? I don't think it is working with SmartMedia. I've tried the latest kernel 2.4.5-pre1, which incorporates your patch to allow the device to be recognised. The Dane-Elec / SCM eUSB adapter can be seen in /proc/bus/usb/devices, but I cannot mount a SmartMedia card (which I'm assuming I should be able to mount on /dev/sda; mind you, /proc/scsi/scsi shows it only as a Compact Flash device, and doesn't mention SmartMedia...)
This part looks good:
castor kernel: Initializing USB Mass Storage driver... castor kernel: usb.c: registered new driver usb-storage castor kernel: scsi1 : SCSI emulation for USB Mass Storage devices castor kernel: Vendor: eUSB Model: Compact Flash Rev: castor kernel: Type: Direct-Access ANSI SCSI revision: 02 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1982 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1987 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1992 castor kernel: USB Mass Storage support registered.
... this bit doesn't look good ...
castor kernel: Detected scsi removable disk sda at scsi1, channel 0, id 0, lun 0
castor kernel: usb-uhci.c: interrupt, status 3, frame# 1960 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1973 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1985 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1997 castor kernel: sda : READ CAPACITY failed.
castor kernel: sda : status = 1, message = 00, host = 0, driver = 08 castor kernel: sda : extended sense code = 2
castor kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
castor kernel: sda: I/O error: dev 08:00, sector 0 castor kernel: unable to read partition table
... and this stuff looks plain wrong!
castor kernel: Device not ready. Make sure there is a disc in the drive.
castor kernel: usb-uhci.c: interrupt, status 3, frame# 1737 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1749 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1760 castor kernel: usb-uhci.c: interrupt, status 3, frame# 1771 castor kernel: sda : READ CAPACITY failed.
castor kernel: sda : status = 1, message = 00, host = 0, driver = 08 castor kernel: sda : extended sense code = 2
castor kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
castor kernel: usb-uhci.c: interrupt, status 3, frame# 1785 castor kernel: sda: test WP failed, assume Write Enabled castor kernel: sda: I/O error: dev 08:00, sector 0 castor kernel: unable to read partition table castor kernel: usb-uhci.c: interrupt, status 3, frame# 1803 castor kernel: Device not ready. Make sure there is a disc in the
drive.
castor kernel: Device busy for revalidation (usage=1) castor kernel: usb-uhci.c: interrupt, status 2, frame# 1821 castor kernel: Device 08:00 not ready.
castor kernel: I/O error: dev 08:00, sector 0 castor kernel: FAT bread failed
I've also tried another hack I found in a news posting, advising that CONFIG_USB_STORAGE_SDDR09 support should be added to the Config.in for /usr/src/linux/drivers/usb and enabled; it hasn't helped.
The card will not mount as either vfat or msdos format (I note from your earlier posting you mounted as msdos)
Aside from the card reader, my Fuji FinePix 4700 is recognised perfectly by the USB / SCSI subsystems (although I can only ever mount it write-protected, for some reason...); I can read the same SmartMedia card in Linux via the camera, but not with the card reader, so I know the partition table is sound.
Is this a discussion I should take to the usb-devel mailing list?
Signature · 3 lines
Andy Piper - Fareham, Hampshire (UK) [email protected] - ICQ #86489434 http://www.andyp.uklinux.net
Quoted 3 lines · Andy Piper
Quoted 1 line
For me the Dane-Elec is working and stable.
You are using the Compact Flash reader part of the device, right?
Yes.
Quoted 1 line
I don't think it is working with SmartMedia.
I cannot test that part - don't think I have any SmartMedia.
Quoted 5 lines
I've tried the latest
kernel 2.4.5-pre1, which incorporates your patch to allow the device to be recognised. The Dane-Elec / SCM eUSB adapter can be seen in/proc/bus/usb/devices, but I cannot mount a SmartMedia card (which I'm assuming I should be able to mount on/dev/sda; mind you,
Probably sdb.
Quoted 8 lines
/proc/scsi/scsishows it only as a Compact Flash device, and doesn't mention SmartMedia...)This part looks good:
castor kernel: Vendor: eUSB Model: Compact Flash Rev: castor kernel: Type: Direct-Access ANSI SCSI
Quoted 8 lines
... this bit doesn't look good ...
castor kernel: Detected scsi removable disk sda at scsi1, channel 0, castor kernel: sda : READ CAPACITY failed.
I've also tried another hack I found in a news posting, advising that
CONFIG_USB_STORAGE_SDDR09support should be added to the Config.in for/usr/src/linux/drivers/usband enabled; it hasn't helped.
Yes. If I do that, I see:
<4> Vendor: eUSB Model: Compact Flash Rev: <4> Type: Direct-Access ANSI SCSI revision: 02 <4> Vendor: SCM Micr Model: eUSB SmartMedia Rev: 0207 <4> Type: Direct-Access ANSI SCSI revision: 02
that is, the enabling of CONFIG_USB_STORAGE_SDDR09 turns this reader into two devices: a CF reader and a SM reader.
Inserting sd.o yields
Detected scsi removable disk sdb at scsi2, channel 0, id 0, lun 0 Detected scsi removable disk sdc at scsi2, channel 0, id 0, lun 1
that is, the two logical units of this device turn into sdb (the CF reader) and sdc (the SM reader). The CF reader contains a card, and reading capacity is successful:
SCSI device sdb: 15872 512-byte hdwr sectors (8 MB)
If one makes the MODE SENSE command read the vendor page 0, it succeeds, and:
sdb: Write Protect is off
There is a single partition on sdb:
sdb1
On the other hand, sdc does not contain anything, so unsurprisingly:
sdc : READ CAPACITY failed.
Quoted 1 line
Is this a discussion I should take to the usb-devel mailing list?
Probably, yes. You might cc me, I am not subscribed to that list.
Andries - [email protected]