On Sat, 20 Sep 2003, Dave Ulrick wrote:

> On Fri, 19 Sep 2003, Stephen J. Gowdy wrote:
>
> > It should have found the first device though, even if that was off. You
> > might want to check other scsi support options too.
>
> OK, I've recompiled 2.4.20 with MULTI_LUN support on and rebooted with my
> newly compiled kernel.  Additionally, I've added this to
> /etc/modules.conf:
>
>       options scsi_mod max_scsi_luns=32
>
> although I get the same results whether or not this statement is present.
>
> However, I'm continuing to see only /dev/sda defined for the Y-E unit.
> No devices are being defined for the card slots.  In short, nothing has
> changed compared to before I enabled MULTI_LUN support on.

I didn't realise you did see /dev/sda before. I didn't think MULTI_LUNs
would help due to that. If you did see /dev/sda before I would have
expected you to see the other devices. I am currently running the RH
2.4.20-20.7 (on a RH73 laptop) and therefore don't have MULTI_LUN support
enabled.

> Here's the device as shown in /proc/scsi/scsi:
>
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>   Vendor: Y-E DATA Model: CF Card Reader   Rev: 1.03
>   Type:   Direct-Access                    ANSI SCSI revision: 02

After plugging it in I have;

[antonia] ~ > cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: Y-E DATA Model: CF Card Reader   Rev: 1.03
  Type:   Direct-Access                    ANSI SCSI revision: 02

too.

> Here's what appears in /var/log/messages if I issue 'fdisk -l /dev/sda':
>
> Sep 20 14:22:19 dino kernel: usb-uhci.c: interrupt, status 3, frame# 1071
> Sep 20 14:22:19 dino kernel: sda : READ CAPACITY failed.
> Sep 20 14:22:19 dino kernel: sda : status = 1, message = 00, host = 0,
> driver =
> 08
> Sep 20 14:22:19 dino kernel: Current sd00:00: sense key Not Ready
> Sep 20 14:22:19 dino kernel: Additional sense indicates Medium not present
> Sep 20 14:22:19 dino kernel: sda : block size assumed to be 512 bytes,
> disk size
>  1GB.
> Sep 20 14:22:19 dino kernel:  sda: I/O error: dev 08:00, sector 0
> Sep 20 14:22:19 dino kernel:  I/O error: dev 08:00, sector 0
> Sep 20 14:22:19 dino kernel:  unable to read partition table

And pretty much the same;

[antonia] ~ > dmesg | tail -20
hub.c: new USB device 00:1d.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x57b/0x20) is not claimed by any active
driver.
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# 634
  Vendor: Y-E DATA  Model: CF Card Reader    Rev: 1.03
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
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.
 sda: I/O error: dev 08:00, sector 0
 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.


> Since enabling MULTI_LUN support didn't do the trick, I'm sure I must be
> doing something else wrong.  Any suggestions of what I ought to look into
> next?

As I don't have MULTI_LUN enabled I do;

bash-2.05a# echo >/proc/scsi/scsi "scsi add-single-device 1 0 0 1"

(I had ide-scsi loaded for CDRW use so this one is SCSI host 1 and not 0)
and then;

bash-2.05a# dmesg |tail -13
scsi singledevice 1 0 0 1
usb-uhci.c: interrupt, status 3, frame# 557
  Vendor: Y-E DATA  Model: SM Card Reader    Rev: 1.03
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 1
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sense key Not Ready
Additional sense indicates Medium not present
sdb : block size assumed to be 512 bytes, disk size 1GB.
 sdb: I/O error: dev 08:10, sector 0
 I/O error: dev 08:10, sector 0
 unable to read partition table

I don't have any media in the drive which is why it can't read the
partition table. I then repeat this for LUNs 2 and 3 and then
/proc/scsi/scsi has;

bash-2.05a# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: Y-E DATA Model: CF Card Reader   Rev: 1.03
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
  Vendor: Y-E DATA Model: SM Card Reader   Rev: 1.03
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 02
  Vendor: Y-E DATA Model: MS Card Reader   Rev: 1.03
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 03
  Vendor: Y-E DATA Model: SD Card Reader   Rev: 1.03
  Type:   Direct-Access                    ANSI SCSI revision: 02

I don't have the message you saw;

> Sep 20 14:22:19 dino kernel: usb-uhci.c: interrupt, status 3, frame# 1071

but I think that is just a debugging message. Perhaps you somehow don't
really have SCSI_CONFIG_MULTI_LUN on?

                                                regards,

                                                Stephen.

> Thanks,
> Dave
>

--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | SLAC, MailStop 34,       |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
|http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
|EMail: [EMAIL PROTECTED]       | Tel: +1 650 926 3144     |
 \------------------------------------+-------------------------/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to