The SCSI disk driver was compiled in the kernel, and for some reason was no 
working. I compiled it as a module and it now works fine. Well, at least, a 
scsi disk device is created for the flash card.

Here's the output of dmesg

root@hufflepuf:~# dmesg
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
usb-uhci.c: interrupt, status 3, frame# 1229
  Vendor: STM(CMG)  Model: FlashCardReader   Rev: 1.28
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-uhci.c: interrupt, status 3, frame# 1257
usb-uhci.c: interrupt, status 3, frame# 1271
usb-uhci.c: interrupt, status 3, frame# 1285
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sense key Not Ready
Additional sense indicates Medium not present
sda : block size assumed to be 512 bytes, disk size 1GB.
 /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:00, sector 0
 unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

The flash card is a 64MB Smartmedia.

And here's what I get when I try to read the flash.

root@hufflepuf:~# dd if=/dev/scsi/host1/bus0/target0/lun0/disc of=/tmp/flash
dd: reading `/dev/scsi/host1/bus0/target0/lun0/disc': Input/output error
0+0 records in
0+0 records out

Any idea ?

Laurent Pinchart

> You need to load the apropriate SCSI high-level driver... sd.o for disks,
> sr.o for CD devices, and st.o for tapes.
>
> Matt
>
> >
> > The device uses a transparent SCSI protocol in bulk-only mode, and so is
> > supported by the usb-storage driver, but only as a generic scsi
> > peripheral.
> >
> > I thus get a /dev/scsi/host1/bus0/target0/lun0/generic device, but what
> > should I do with it ? I can't mount it or copy data from / to it. It's
> > only a generic scsi device, not a disk device.
> >
> > Laurent Pinchart

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to