Steps for Utilizing the SWR5 Driver Update (RPM) Package


1) The SWR5 driver update package utilizes the DKMS package which can be found at the following 
link (can be subject to change):

http://linux.dell.com/dkms/

 
2) Download the Latest stable RPM. The format will be: 

dkms-x.x.xx.x-x.noarch.rpm

 
3) Save it in a folder on the system, then open up a Terminal window and navigate to the folder.

 
4) Install the dkms rpm first using the following command:

rpm -ivh dkms-x.x.xx.x-x.noarch.rpm


5) Install the megasr-dkms rpm using the following command:

rpm -ivh megasr-x.x.xx.x-x.noarch.rpm

6) If megasr rpm is installed to claim SCU controller, run blacklist_script.sh by typing the following command.
   "blacklist_script.sh isci" ."blacklist_script.sh" script is available in the driver package. 
   This will prevent the native isci driver from claiming SCU controller on RHEL5.7, RHEL5.8, RHEL6.x, SLES11.

   If megasr rpm is installed to claim AHCI controller, run blacklist_script.sh by typing the following command.
   "blacklist_script.sh ahci"
   This will prevent the native achi driver from claiming AHCI controller.
 
7) The driver should now be compiled and loaded. Reboot the system to verify that the driver has been updated.

8) Providing megasr DKMS rpm for Supported RHEL 6 & SLES11 OS's is stopped,
	instead megasr KMOD rpms are provided for supported RHEL 6 OS's & megasr KMP rpms are
	provided for supported SLES11 OS's.

	Below are the stepts for upgrading driver with KMP, KMOD rpms on the systems where megasr dkms
	rpm is installed previously,

	Steps are same for RHEL and SLES OS's.
	======================================
	a) Query the installed dkms rpm:
		rpm -qa | grep "megasr-18.0"
		megasr-18.01.2018.0427-1

	b) Remove the installed rpm
		sles11sp3x8664:/tmp/tmp # rpm -e megasr-18.02.2018.0427-1
		-------- Uninstall Beginning --------
		Module:  megasr
		Version: 18.02.2018.0427
		Kernel:  3.0.76-0.11-default (x86_64)
		-------------------------------------
		DKMS: uninstall Completed.

	c) Install kmp module:
		rpm -ivh lsi-megasr-kmp-3.0.76-0.11.sles11SP3.x86_64.rpm

	d) Install kmp module:
		rpm -ivh lsi-megasr-kmp-3.0.76-0.11.sles11SP3.x86_64.rpm

	Verify rpm installation;
		rpm -qa | grep "megasr"

NOTES:
- It is advisable that the kernel source packages are installed before the RPM package is applied.
- The SWR5 RPM package applies to those kernels that are included in the driver package.  Successful Use with 
other kernels nor compatibility with older DKMS & MegaSR RPM packages is not guaranteed.

Known Restrictions:
1.      For SLES-11 (32bit and 64bit) platform after installing the driver RPM
        edit the file /etc/modprobe.d/unsupported-modules Change the entries as below.
        allow_unsupported_modules 1
        Then reboot the system to load the driver.

2.      For SLES-11 SP1 (32bit and 64bit) platform SWR RPM upgrade fails with latest dkms (dkms-2.1.1.2-1.noarch).
        For SWR RPM upgrade on SLES-11 SP1 (32bit and 64bit) platform, install the older dkms rpm (dkms-2.0.5-1.noarch).

3.      For RHEL5 and RHEL5.x (32bit and 64bit) platforms if the megasr driver is not loading after installing the RPM
	Please try below mentioned steps.
	Before installing the driver RPM, remove if any megasr rpm's are installed, reboot the system.
        edit the file /etc/modprobe.conf make an entry as below.
        alias scsi_hostadapter<x> megasr [ x : Next numerical number of the number of entries in modprobe.conf ]
        Then install the driver RPM, reboot the system to load the driver.

4.	The use of a 32-bit hypervisor as a virtualization host is deprecated on SLES11-SP1.
        The following link provides more information.
        http://www.suse.com/releasenotes/x86_64/SUSE-SLES/11-SP1/#rnotes-deprecated.

5.      Installing megasr rpm in SLES15:
        In SLES15, If driver rpm is installed for non inbox driver module, initrd image will not be generated.
        Due to this after reboot still old driver is getting loaded.

        User have to create initrd image manually. Or use "install_rpm.sh" to install driver rpm.

        Install_rpm.sh.
        1) Remove/Delete the existing megasr driver RPM.
        #rpm -e lsi-megasr-kmp-default-18.01.*
        2) run install_rpm.sh helper script
        #./install_rpm.sh ahci -> For ahci

        Creating initrd image manually. (Take backup of existing initrd image (initrd-4.12.14-23-default) in /boot folder)
	Make sure new megasr.ko is present in /lib/modules/4.12.14-23-default/updates/ (install rpm/copy megasr.ko 
	to /lib/modules/4.12.14-23-default/updates/)
        Create initrd image 
       	#mkinitrd with=megasr Or dracut --force
