On Sat, 20 Sep 2003, Stephen J. Gowdy wrote:
> 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.
I've made another stab at recompiling the kernel. (I'd omitted 'make
mrproper' the first try.) Since doing so, I still see this in
/proc/scsi/scsi, and device name 'sda' is assigned to this upon its first
access, such as with 'fdisk -l /dev/sda':
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
> > 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?
For what it's worth, here's some of my USB- and SCSI-related stuff from
/usr/src/linux/.config:
CONFIG_SCSI=m
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
CONFIG_SD_EXTRA_DEVS=40
CONFIG_CHR_DEV_ST=m
CONFIG_CHR_DEV_OSST=m
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_SR_EXTRA_DEVS=4
CONFIG_CHR_DEV_SG=m
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_DEBUG_QUEUES is not set
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
CONFIG_USB_LONG_TIMEOUT=y
#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI=m
CONFIG_USB_UHCI_ALT=m
CONFIG_USB_OHCI=m
> 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've just now tried entering that command. Even that doesn't detect the
LUNs. :-(
> (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 wish I could see those wonderful messages. :-)
> 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?
If I issue 'gcc -E' on scsi_scan.c (otherwise using the same command parms
issued by 'make modules'), I see this in the output:
static unsigned int max_scsi_luns = 0xFFFFFFFF;
I think that strongly suggests that I have CONFIG_SCSI_MULTI_LUN set to y.
> regards,
>
> Stephen.
Still puzzled,
Dave
--
Dave Ulrick
Email: [EMAIL PROTECTED]
Web: http://www.niu.edu/~ulrick/
-------------------------------------------------------
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