lkml.org 
[lkml]   [1996]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: adding scsi devices

Adaptec 2940 kernel 2.0.26
mark
On 17-Dec-96 davidg@soupy.sbi.com wrote:
--->--->If I may be so bold --
--->
--->What scsi controller are you using with your jaz drive? I recently
--->purchased an Adaptec 2940AU and am having trouble getting it recognized
--->by my linux -- kernel 1.2.13.
--->
--->My next step is to try building the 2.0.27 kernel and hope for the best. If
--->you have any advice/direction/hope/despair to share, I would greatly
--->appreciate it.
--->
--->Thanks.
--->
--->David
--->
--->> From owner-linux-scsi-outgoing@vger.rutgers.edu Tue Dec 17 13:14:27 1996
--->> X-Mailer: XFMail 0.4 [p0] on Linux
--->> Content-Type> : > text/plain> ; > charset=us-ascii>
--->> Content-Transfer-Encoding: 8bit
--->> Mime-Version: 1.0
--->> Date: Tue, 17 Dec 1996 12:53:32 -0500 (EST)
--->> From: "Mark F. burgo" <mfburgo@lrkimball.com>
--->> To: "Marty Leisner" <leisner@sdsp.mc.xerox.com>
--->> Subject: RE: adding scsi devices
--->> Cc: aeb@cwi.nl, linux-kernel@vger.rutgers.edu, linux-scsi@vger.rutgers.edu
--->> Sender: owner-linux-scsi@vger.rutgers.edu
--->> Content-Length: 2458
--->>
--->>
--->> if you have only one scsi card your host would be 0. If it has only one s
csi
--->> channel then the channel would be 0, the id is the scsi id on the drive co
uld
--->> be 0 to 7 depending on the configuration and the lun should be 0.
--->>
--->> the command is for adding a scsi device that you may have forgotten to tur
n on
--->> before system powerup. syntax is:
--->>
--->> echo "scsi add-single-device <host> <channel> <id> <lun>" > /proc/scsi/scs
i
--->>
--->> I have used this to add my jaz drive after the systems is running.
--->>
--->> you could also shutdown your machine, add the device, and restart. This i
s the
--->> best solution. If you have problems restarting check the scsi id's of all
devic
--->> es
--->> currently connected.
--->>
--->> mark
--->>
--->> On 17-Dec-96 "Marty Leisner" wrote:
--->> --->--->
--->> --->
--->> --->
--->> --->Well, I never got this working satisfactorily, but the kernel code
--->> --->in 2.0.27 has:
--->> --->
--->> --->(in scsi.c)
--->> --->f(!strncmp("add-single-device", buffer + 5, 17)) {
--->> ---> p = buffer + 23;
--->> --->
--->> ---> host = simple_strtoul(p, &p, 0);
--->> ---> channel = simple_strtoul(p+1, &p, 0);
--->> ---> id = simple_strtoul(p+1, &p, 0);
--->> ---> lun = simple_strtoul(p+1, &p, 0);
--->> --->
--->> ---> printk("scsi singledevice %d %d %d %d\n", host, channel,
--->> ---> id, lun);
--->> --->
--->> --->The man page (PROC(5) Linux Programmer's Manual
PROC
--->> (5)
--->> --->22 July 1996 1
--->> --->has
--->> ---> An echo `scsi singledevice 1 0 5 0' >
--->> ---> /proc/scsi/scsi will cause host scsi1 to
--->> ---> scan on SCSI channel 0 for a device on ID 5
--->> ---> LUN 0. If there is already a device known on
--->> ---> this address or the address is invalid an
--->> ---> error will be returned.
--->> --->`
--->> --->
--->> --->I find this strategy awkward (to say the least) and I'm not sure what
number
--->> s
--->> --->to fill in (unless I write it down). I understand LUNs, is channel 0
the
--->> --->first scsi board (if we have only one board?).
--->> --->
--->> --->On a syquest disk, do they just have ID 0 (one device??)
--->> --->
--->> --->It would make sense to allow a rescan via user control if no devices a
re ope
--->> n.
--->> --->It would be good to allow a rescan with active devices (but this will
be mor
--->> e
--->> --->complicated).
--->> --->
--->> --->marty leisner@sdsp.mc.xerox.com
--->> --->Don't confuse education with schooling.
--->> ---> Milton Friedman to Yogi Berra
--->>
--->> ----------------------------------
--->> E-Mail: Mark F. burgo <mfburgo@lrkimball.com>
--->> Date: 12/17/96
--->> Time: 12:53:32
--->>
--->> This message was sent by XF-Mail
--->> ----------------------------------
--->>

----------------------------------
E-Mail: Mark F. burgo <mfburgo@lrkimball.com>
Date: 12/18/96
Time: 14:56:07

This message was sent by XF-Mail
----------------------------------

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.050 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site