9 – Red Hat Linux Driver Installation

 

Install or Update the Driver (Installed Operating

￿

System)

a.If you have Red Hat Linux 6.2 and want the qla2x00 driver added as a choice in make config, make menuconfig, or make xconfig, add the following line to the /usr/src/linux/drivers/scsi/Config.in file after line 116:

dep_tristate ’QLA2x00 QLC driver support’ CONFIG_SCSI_QLOGIC_QLA2100 $CONFIG_SCSI

b.Copy all the zipped qla2x00 source files to the /usr/src/linux/drivers/scsi directory.

#cp /home/qla2x00/*.c /usr/src/linux/drivers/scsi

#cp /home/qla2x00/*.h /usr/src/linux/drivers/scsi

c.For Red Hat Linux 6.2, add the following lines to the Makefile in /usr/src/linux/drivers/scsi. Use the vi editor or equivalent text editor to edit the file.

After line 634 add:

**************** (Makefile) ****************

ifeq ($(CONFIG_SCSI_QLOGIC_QLA2100),y) L_OBJS += qla2x00.o

else

ifeq ($(CONFIG_SCSI_QLOGIC_QLA2100),m) M_OBJS += qla2x00.o

endif

endif

****************** (end) *******************

After line 664 add the following. Use the TAB key to move the $ (CC)....

line:

**************** (Makefile) ****************

qla2x00.o: ql2100_fw.h ql2200_fw.h ql2300_fw.h qla2x00.h qla2x00.c

$(CC) $(CFLAGS) -c qla2x00.c -o qla2x00.o

****************** (end) *******************

After line 338 add:

**************** (hosts.c) *****************

#ifdef CONFIG_SCSI_QLOGIC_QLA2100 #include "qla2x00.h"

#endif

****************** (end) *******************

9-6

FC2354601-00 A

Page 96
Image 96
Q-Logic 2300 manual After line 338 add