Hi,

I finally got my Phison 5in1 card reader working with kernel 2.4.18.
However, I have a question (at the end of this all) regarding how the
device is attached into my system.

I had to make a patch to the kernel:
http://www.jaist.ac.jp/~fjt/src/mcrw-2.4.16.patch

After that the usb-storage is correctly loaded into system and I see
from syslog:

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

At this point the /proc/scsi/scsi shows that there are no attached
devices.
In /proc/scsi/usb-storage-0/0 I see:
   Host scsi0: usb-storage
       Vendor: Phison
      Product: Multi-card R/W
Serial Number: None
     Protocol: Transparent SCSI
    Transport: Control/Bulk/devices 
         GUID: 0d7d02400000000000000000
     Attached: Yes

And /proc/bus/usb/devices (the relevant part):
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0d7d ProdID=0240 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00
Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=255ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=255ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

Should the usb-storage module add the device automatically into
/proc/scsi/scsi?
It doesn't seem to, and indeed only after a manual "scsiadd -a 0 0 0 1"
I can start using my card reader:

scsi singledevice 0 0 0 1
  Vendor: Phison    Model: Multi-card R/W    Rev: 0100
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 1
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
 /dev/scsi/host0/bus0/target0/lun1: p1
SCSI error: host 0 id 0 lun 1 return code = 8000002
        Sense class 7, sense error 0, extended sense 0

And then "mount -t vfat /dev/sda1 /mnt/usbdisk".
The disk seems to work OK, but the question is: why do I need to make
this "scsiadd"? Do I miss something in the usb-storage driver? I really
didn't find this mentioned by any usb-storage FAQ or guide. Possibly I
have a misconfigured /etc/modules.conf.

I've seen that there are others too in this list who have this card
reader in particular. How do you have your system working? No tricks?

TIA,
++Tero

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

Reply via email to