Q-Logic 2300 Building a Driver from the Sources, Building a Uniprocessor Version of the Driver

Page 102

9 – Red Hat Linux Driver Installation

￿

Building a Driver from the Sources

To load the qla2300 driver, do one of the following:

For Red Hat Linux 6.2 and 7.0, copy qla2300.o to /lib/modules/<kernel release version>/scsi directory. For Red Hat Linux 7.1 and 7.2, copy qla2300.o to /lib/modules/<kernel release version>/drivers/scsi directory.

Update the dependency file.

You can either run “depmod” or make sure that the following line is in the /lib/modules/<kernel release version>/modules.dep file:

/lib/modules/<kernel version>/kernel/drivers/scsi/qla2300.o: /lib/modules/<kernel version>/kernel/drivers/scsi/scsi_mod.o

Type the following command:

#modprobe qla2300

Under the directory that contains the qla2300.o file, type:

#insmod qla2300.o

Type the following to unload the qla2x00 driver manually:

# modprobe r qla2300

9.5

Building a Driver from the Sources

If your Linux kernel version does not match the one built by QLogic prebuilt driver binaries, you need to build the driver in your configuration locally. To build a single-processor or uniprocessor (UP) version of the qla2x00 or qla2300 driver, see section 9.5.1. To build a symmetric multiprocessor (SMP) version of the qla2x00 or qla2300 driver, see section 9.5.2.

9.5.1

Building a Uniprocessor Version of the Driver

Perform the following steps to build a uniprocessor version of the qla2x00 driver:

1.Extract the kernel-header and kernel-source RPM files from the first Red Hat CD-ROM.

#cd /mnt/cdrom/RedHat/RPMS

#rpm -iv kernel-headers*.rpm

#rpm -iv kernel-source*.rpm

2.Using the source code driver floppy disk you created in section 9.2.3, copy the qla2x00src-x.xx.tgz file to the /home/qla2x00 directory.

#cd /home

#mkdir qla2x00

#cd /home/qla2x00

#mcopy a:*.tgz . (The period [.] at the end is required.)

#tar -xvzf qla*.tgz

9-12

FC2354601-00 A

Image 102
Contents SANblade 2300 Series User’s Guide Page Table of Contents Section QLA2342/2342L Part Software Section Windows NT Driver Installation Section NetWare Driver Installation Section Solaris Sparc Driver Installation FCode 10-4FC2354601-00 a Introduction How to Use this GuideWhat is Fibre Channel? General DescriptionFeatures Compliance with PCI Local Bus Specification revisionHardware Hardware FC2354601-00 a QLA2340/2340L QLA2340/2340L HBA ComponentsInstallation in the Computer LEDsJumpers QLA2340/2340L Installation Help SunSPARC systems do not display the Bios bannerConfiguration Settings IntroductionHost Adapter Settings Selectable Boot SettingsRestore Default Settings Advanced Adapter SettingsRaw Nvram Data Setting Options Extended Firmware Settings Extended Firmware SettingsRIO Operation Modes Scan Fibre Channel Devices Fibre Disk UtilitySelect Host Adapter FCode Flashing a QLA2340/2340L HBA with FCodeSetting the QLA2340/2340L HBA Connection Mode Connection mode and options display. For exampleNew connection mode displays. For example New loop ID displays. For example Setting the QLA2340/2340L HBA Loop IDSetting and Viewing the Fibre Channel Data Rate Type the followingSelecting the Boot Device Ok show-devs Pci@1f,0/pci@1/QLGC,qla@4Building the Bootable Disk Following displaysNewfs -v /dev/rdsk/c3t130d0s0 Boot from the newly created boot disk. For example View the current dump device setting. For exampleShut down the system. Type the following Specifications Tables 2-7and 2-8define the QLA2340/2340L specificationsEMI and EMC Requirements LabelAgency Certification Conducted EmissionProduct Safety Requirements QLA2340/2340L Agency Certification FC2354601-00 a QLA2342/2342L QLA2342/2342L HBA ComponentsQLA2342/2342L HBA LED Activity QLA2342/2342L Installation Help Fast!UTIL QLA2342/2342L Fast!UTIL Restore Default Settings Setting Options Extended Firmware Settings RIO Operation Modes Scan Fibre Channel Devices Flashing a QLA2342/2342L HBA with FCode Setting the QLA2342/2342L HBA Connection Mode Setting the QLA2342/2342L HBA Loop ID Selecting the Boot Device Building the Bootable Disk Newfs -v /dev/rdsk/c3t130d0s0 Shut down the system. Type the following Tables 3-7and 3-8define the QLA2342/2342L specifications QLA2342/2342L HBA Operating EnvironmentQLA2342/2342L Label Product Safety Requirements QLA2342/2342L Agency Certification FC2354601-00 a Hardware Problem Checklist TroubleshootingProblems After Installation System Configuration Problem ChecklistFibre Channel Problem Checklist Software Operating SystemII Software II-2 FC2354601-00 a Windows NT Driver Installation QL2300.SYS Windows NT InstallationWindows NT Driver Files Installing or Updating the Windows NT Driver Click OKRemove the disk, then click Yes to restart the computer Updating the Windows NT Driver QldirectQldirect Driver Files Qldirect InstallationInitial Installation of Qldirect Updating to Qldirect from QlfilterQL2x00IP Ndis Network Driver Installation Initial Installation of the QL2x00IP Ndis Network DriverWindows NT networking software must be installed Updating the QL2x00IP Ndis Network Driver QL2x00IP Ndis Driver and IP Address Configuration Driver ConfigurationIP Address Configuration Removing the QL2x00IP Ndis Driver Click Close Click Yes to restart the computerPage Windows 2000 Driver Installation QL2300.SYS Windows 2000 InstallationCreating the Driver Disk Installing the Windows 2000 Driver Updating the Windows 2000 Driver Windows 2000 Driver Installation Windows Driver Installation QL2x00IP Ndis Network \W2k\Ip QL2x00IP Ndis Driver Configuration Adapter IP address Subnet mask255.255.0.0 Restart the computer Page Windows XP Driver Installation QL2300.SYS Installing the Windows XP DriverInstalling Windows XP with the QLA23xx HBA as an Add-On Installing the QL2300.SYS Driver Click Yes to continue with the installationClick Yes Updating the Existing QLA2300.SYS Driver Double-clickQLogic QLA2300 PCI Fibre Channel AdapterRemoving the Driver System Registry ParametersMaximumSGList FCTape CurrentControlSet Services Ql2300 Parameters DeviceNumberOfRequests Ql2300 Parameters DeviceUseSameNN Page NetWare Driver Installation QL2300.HAM NetWare Driver Files and ParametersInstalling the NetWare Driver Select Driver options from the main menuCreating the Driver Floppy Disk Red Hat Linux Driver InstallationDriver Floppy Disk 1 New Operating System Installation Download the driver to the temporary directoryDriver Floppy Disk 2 Installed Operating System Source Code Driver Floppy DiskInstall a New Operating System and Driver Red Hat Linux Install or Update the Driver Installed Operating SystemInstalling the Driver on the Boot Drive To upgrade the existing qla2x00 drivers, typeLoading the Driver # mcopy a*.tgz . The period . at the end is requiredAfter line 338 add After line 609 add Type the following command to access the Main MenuCreate a bootable kernel image by typing the following From the Main Menu, select Scsi support and press Enter# cd arch/i386/boot # cp bzImage /boot/newsmp Building a Ramdisk Image to Load the Driver Automatically For a multiprocessor system, change the following line fromLoading and Unloading the qla2x00 Driver Manually Building a Ramdisk Image to Load the qla2300 DriverLoading and Unloading the qla2300 Driver Manually New text isRestart the system. The qla2300 driver loads automatically Building a Driver from the Sources Building a Uniprocessor Version of the DriverBuilding a Multiprocessor Version of the Driver For Red Hat Linux 7.1 and 7.2, typeFor Red Hat 7.1 and 7.2, type # make dep Solaris Sparc Driver Installation QLA2300 Installing the Solaris Sparc Driver from a CD-ROMProduces a file in the same directory called qla2300 At the command prompt, type pkgadd -d ./qla2300 You are prompted to select a driver package. For examplePress Enter to accept the default 10.4