Ana Yuseepi wrote:
> 
>  By point-to-point, I mean directly connecting 
> "device->HBA->host" and not "device->switch->HBA->host".
> 
> Am trying to think now that my method of scsi programming
> is depracated. I have downloaded sg3119.tgz which is said 
> to be sg version 3. After downloading, I unzip and untar 
> it, it have produced directory: drivers, include... But I 
> don't know what to do with these files.. i would like to 
> replace the sg that comes with kernel 2.2.14. can someone 
> show me the steps to take?

Ana,
Firstly, why not use the sg driver provided with your kernel?

Secondly, sg3119.tgz is for the lk 2.4 series. You could
use sg2140.tgz (production version for lk 2.2 series) or 
sg3019.tgz (optional sg version 3 driver) for lk 2.2.14 .

See http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html for
instructions on how to build a kernel.

Here is a quick summary ...
Assuming that you have the appropriate kernel source
in the /usr/src/linux directory then you would do
the following to rebuild sg as a module:
 $ cd /usr/src/linux
 $ # before the next step you may wish to take backup
 $ # copies of include/scsi/sg.h and drivers/scsi/sg.c
 $ tar xzvf /tmp/sg2140.tgz
 $ make modules
 $ make modules_install
 $ rmmod sg
 $ modprobe sg

> After further reading some documents, I think the 
> scsi-programming i used is SCSI_IOCTL_SEND_COMMAND 
> which did work with qla2100 card(qlogicfc) but does
> not work with qla2x00 drivers downloaded from qlogic.

The LDP people won't replace the dated SCSI-Programming-HOWTO
until I "DocBook"-ise my plain text sg documentation. That
is still work in progress. In the meantime you can follow
the links in sg.h found within sg2140.tgz for up to date
documentation. SCSI_IOCTL_SEND_COMMAND does work but it
is a little difficult to use. There is an example of using
it (as well as several other examples using the sg 
interface) in the sg_utils package found at 
http://www.torque.net/sg .

[snip]

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to