diff --git a/qla2x00t/doc/qla2x00t-howto.html b/qla2x00t/doc/qla2x00t-howto.html index 96bb05b70..5f4519378 100644 --- a/qla2x00t/doc/qla2x00t-howto.html +++ b/qla2x00t/doc/qla2x00t-howto.html @@ -8,6 +8,7 @@ How to configure QLogic target driver for 22xx/23xx/24xx/25xx adapters
@@ -35,13 +36,17 @@ pre {color:brown;}qla2xxx 0000:13:00.0: Firmware image unavailable. qla2xxx 0000:13:00.0: Failed to initialize adapter- In this case I had to download ql2300_fw.bin.
apt-get install gcc patch linux-headers libcunit1-ncurses libncurses5-dev cramfsprogs bootcd-mkinitramfs subversion lsscsi-
[root@proj ]# apt-get install gcc libncurses5-dev linux-headers lsscsi patch subversion+On RHEL/CentOS/SL systems these packages can be installed as follows: +
[root@proj ]# yum install gcc ncurses-devel kernel-devel lsscsi patch subversion+And on SUSE systems these packages can be installed by running the following command: +
[root@proj ]# zypper install gcc ncurses-devel kernel-devel lsscsi patch subversion+
[root@proj ] svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk scst+
[root@proj ]# svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk scstAfter the above command finished a directory called 'scst' will have been created in the current directory, which is /root in this how-to. +
[root@proj ]# rmmod qla2xxx +[root@proj ]# echo blacklist qla2xxx >/etc/modprobe.d/blacklist-qla2xxx.conf
export BUILD_2X_MODULE=y CONFIG_SCSI_QLA2XXX_TARGET=y- -
[root@proj src ] -[root@proj src ] tar -xjf /usr/src/linux-2.6.26.tar.bz2+
[root@proj src ]# tar -xjf /usr/src/linux-2.6.26.tar.bz2Instructions for obtaining a distribution-specific kernel source tree vary. An example for Debian: -
[root@proj src ] apt-get install linux-source-2.6 -[root@proj src ] tar xjf linux-source-2.6.32.tar.bz2+
[root@proj src ]# apt-get install linux-source-2.6 +[root@proj src ]# tar xjf linux-source-2.6.32.tar.bz2
[root@proj src ] pwd +[root@proj src ]# pwd /usr/src -[root@proj src ] ln -s /usr/src/linux-2.6.26 linux -[root@proj src ] ln -s /usr/src/linux-2.6.26 kernel+[root@proj src ]# ln -s /usr/src/linux-2.6.26 linux +[root@proj src ]# ln -s /usr/src/linux-2.6.26 kernel
[root@proj ] cd /usr/src/linux-2.6.26 -[root@proj linux-2.6.26] patch -p1 < /root/scst/scst/kernel/scst_exec_req_fifo-2.6.26.patch+
[root@proj ]# cd /usr/src/linux-2.6.26 +[root@proj linux-2.6.26]# patch -p1 < /root/scst/scst/kernel/scst_exec_req_fifo-2.6.26.patch
[root@proj ] grep -i highmem /usr/src/linux/.config +[root@proj ]# grep -i highmem /usr/src/linux/.config CONFIG_NOHIGHMEM=y # CONFIG_HIGHMEM4G is not set # CONFIG_HIGHMEM64G is not setIf you have a system with more than 1GB of memory, consider to change CONFIG_VMSPLIT option to the corresponding value. -[root@proj linux ] pwd +[root@proj linux ]# pwd /usr/src/linux -[root@proj linux ] make menuconfig -[root@proj linux ] make bzImage -[root@proj linux ] make modules -[root@proj linux ] make modules_install -[root@proj linux ] make install+[root@proj linux ]# make menuconfig +[root@proj linux ]# make bzImage +[root@proj linux ]# make modules +[root@proj linux ]# make modules_install +[root@proj linux ]# make install
[root@proj ] cd /root/scst/scst/src -[root@proj ] make all -[root@proj ] make install+
[root@proj ]# cd /root/scst/scst/src +[root@proj ]# make all +[root@proj ]# make install
rm -f /lib/modules/`uname -r`/{kernel/drivers/scsi/qla2xxx,extra}/qla2*
- [root@proj trunk] pwd +[root@proj trunk]# pwd /root/scst
[root@proj trunk] BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y make -s -C qla2x00t/qla2x00-target install+
[root@proj trunk]# BUILD_2X_MODULE=y CONFIG_SCSI_QLA_FC=y CONFIG_SCSI_QLA2XXX_TARGET=y \ +make -s -C qla2x00t/qla2x00-target install
[root@proj trunk] ls -l /lib/modules/`uname -r`/extra/qla2* +[root@proj trunk]# ls -l /lib/modules/`uname -r`/extra/qla2* -rw-r--r-- 1 root root 36756 Jun 20 18:46 qla2x00tgt.ko -rw-r--r-- 1 root root 160192 Jun 20 18:46 qla2xxx_scst.ko@@ -188,7 +190,7 @@ CONFIG_NOHIGHMEM=y
[root@proj ] for _mod in scst qla2xxx qla2x00tgt scst_vdisk scst_user scst_disk ...; do modprobe $_mod; done+
[root@proj ]# for m in scst qla2xxx_scst qla2x00tgt scst_vdisk scst_user scst_disk ...; do modprobe $m; doneThis will result in the following dmesg output: @@ -241,17 +243,31 @@ scst: Virtual device handler vdisk for type 0 registered successfully scst: Virtual device handler "scst_user" registered successfully
[root@proj ]# update-initrd -c -k $(uname -r)+For Ubuntu systems: +
[root@proj ]# update-initramfs -c -k $(uname -r)+For RHEL/CentOS/SL systems: +
[root@proj ]# mkinitrd -f /boot/initramfs-$(uname -r).img $(uname -r)+And for SUSE systems: +
[root@proj ]# mkinitrd+
[root@proj ] dd if=/dev/zero of=/mnt/disk1 bs=1024k count=512 +[root@proj ]# dd if=/dev/zero of=/mnt/disk1 bs=1024k count=512 512+0 records in 512+0 records out -[root@proj ] ls -l /mnt/disk1 +[root@proj ]# ls -l /mnt/disk1 -rw-r--r-- 1 root root 536870912 Jun 23 13:27 /mnt/disk1 -[root@proj ] file /mnt/disk1 +[root@proj ]# file /mnt/disk1 /mnt/disk1: data
[root@initiator ] echo "- - -" >/sys/class/scsi_host/hostX/scan+
[root@initiator ]# echo "- - -" >/sys/class/scsi_host/hostX/scanwhere X is the host number.