Advertisement
Guest User

asr71605 - source install readme

a guest
Feb 29th, 2020
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.45 KB | None | 0 0
  1.  
  2. CONTENTS
  3. I. INSTALLATION INSTRUCTIONS FOR SUPPORTED LINUX OS.
  4. II. STEPS TO INSTALL PACKAGES FROM DVD
  5. III. COPYRIGHT
  6.  
  7.  
  8. I.INSTALLATION INSTRUCTIONS FOR SUPPORTED LINUX OS.
  9. ---------------------------------------------------
  10.  
  11. The type of OS , can be figured out on most Linux systems with the
  12. following command
  13.  
  14. # lsb_release -a
  15.  
  16.  
  17. A. RHEL based OS
  18. =================
  19.  
  20. The following instructions assume that the user is able to install packages
  21. from the RHEL repositories if not, please take a look at SECTION II for
  22. using the DVD as an instruction medium.
  23.  
  24. Red Hat® Enterprise Linux/CentOS 7.2, 7.1, 7.0 (32-bit and 64-bit)
  25. Red Hat® Enterprise Linux/CentOS 6.8, 6.7, 6.6 (32-bit and 64-bit)
  26.  
  27. 1.In order to build the driver from the sources, superuser
  28. permissions are required.
  29.  
  30. $ sudo su
  31.  
  32. 2.Install the following driver dependency packages and
  33. reboot the system if necessary
  34.  
  35. #yum install kernel kernel-devel kernel-headers gcc
  36.  
  37. 3.Once the dependency packages have been installed ,extract
  38. the driver source code from the source tgz file.
  39.  
  40. #tar –xzvf aacraid_source-1.2.1.xxxxx.tgz
  41.  
  42. 4.After the source is extracted , the aacraid.ko needs to be compiled.
  43. The command to do that is given below.At the end of the compilation you
  44. will get an aacraid.ko driver file which is our driver module.
  45.  
  46. #make –C /lib/modules/`uname -r`/build M=`pwd` modules
  47.  
  48. 5.Backup the already existing inbox driver if in case you want to revert at
  49. a later point of time
  50.  
  51. # mv /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko \
  52. /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko.org
  53.  
  54. 6.Install the created aacraid.ko driver file to its destination so it can
  55. be included in the initramfs.
  56.  
  57. #cp ./aacraid.ko /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid
  58.  
  59. 7.To make sure that the newly installed aacraid.ko modules is included in
  60. the Linux kernel once it reboots, it needs to be placed into the initramfs
  61. file. RHEL provides dracut to do it. The command to rebuild initramfs with
  62. our newly installed aacraid driver is given below
  63.  
  64. #dracut -v -f --add-drivers aacraid
  65.  
  66. 8.Once the dracut process ends, the system needs to be rebooted to load the
  67. new initramfs which will contain our newly installed aacraid.ko driver
  68.  
  69. Red Hat® Enterprise Linux/CentOS 5.11, 5.10 (32-bit and 64-bit)
  70.  
  71. 1.In order to build the driver from the sources, superuser
  72. permissions are required.
  73.  
  74. $ sudo su
  75.  
  76. 2.Install the following driver dependency packages and reboot the system if
  77. necessary
  78.  
  79. # yum install kernel kernel-devel kernel-headers gcc
  80.  
  81. 3.Once the dependency packages have been installed ,extract the driver
  82. source code from the source tgz file.
  83.  
  84. #tar –xzvf aacraid_source-1.2.1.xxxxx.tgz
  85.  
  86. 4.After the source is extracted , the aacraid.ko needs to be compiled. The
  87. command to do that is given below.At the end of the compilation you will
  88. get an aacraid.ko driver file which is our driver module.
  89.  
  90. # make –C /lib/modules/`uname -r`/build M=`pwd` modules
  91.  
  92. 5.Backup the already existing inbox driver if in case you want to revert at
  93. a later point of time
  94.  
  95. # mv /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko \
  96. /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko.org
  97.  
  98. 6.Copy the kernel driver file to its destination for including in the
  99. initramfs.
  100.  
  101. # cp ./aacraid.ko /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid
  102.  
  103. 7.To make sure that the newly installed aacraid.ko modules is inlucded in
  104. the linux kernel once it reboots, it needs to be placed into the initramfs.
  105. RHEL provides mkinitrd to do it. The command to rebuild initramfs with the
  106. newly installed aacraid driver is given below
  107.  
  108. # mkinitrd -f -v --preload aacraid /boot/initrd-`uname -r`.img `uname -r
  109.  
  110. 8.Once the mkinitrd process ends, the system needs to be rebooted to load
  111. the new initramfs which will contain our newly installed aacraid.ko driver
  112.  
  113.  
  114. B. Debian based OS images
  115. =========================
  116.  
  117. Ubuntu Linux 16.04.x (32bit and 64bit)
  118. Ubuntu Linux 14.04.x (32bit and 64bit)
  119. Ubuntu Linux 12.04.x (32bit and 64bit)
  120.  
  121. 1.In order to build the driver from the sources, superuser permissions are
  122. required.
  123.  
  124. $sudo su
  125.  
  126. 2.Install the following driver dependency packages and reboot the system
  127. if necessary
  128.  
  129. # apt-get install build-essential linux-headers-`uname -r`
  130.  
  131. 3.Once the dependency packages have been installed ,extract the driver
  132. source code from the source tgz file.
  133.  
  134. # tar –xzvf aacraid_source-1.2.1.xxxxx.tgz
  135.  
  136. 4.After the source is extracted , the aacraid.ko needs to be compiled. The
  137. command to do that is given below.At the end of the compilation you will
  138. get an aacraid.ko driver file which is our driver module.
  139.  
  140. # make –C /lib/modules/`uname -r`/build M=`pwd` modules
  141.  
  142. 5.Backup the already existing inbox driver if in case you want to revert at
  143. a later point of time
  144.  
  145. # mv /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko \
  146. /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko.org
  147.  
  148. 6.Copy the kernel driver file to its destination for including
  149. in the initramfs.
  150.  
  151. # cp ./aacraid.ko /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid
  152.  
  153. 7.To make sure that the newly installed aacraid.ko modules is included in
  154. the linux kernel once it reboots, it needs to be placed into the initramfs
  155. file. Ubuntu provides update-initramfs to do it. The command to rebuild
  156. initramfs with the newly installed aacraid driver is given below
  157.  
  158. #update-initramfs -k `uname -r` -c -v
  159.  
  160. 8. Once the mkinitrd process ends, the system needs to be rebooted to
  161. load the new initramfs which will contain our newly installed aacraid.ko
  162. driver
  163.  
  164. C. SUSE base OS images
  165. ======================
  166.  
  167. The following instructions assume that the use is able to install packages
  168. from the RHEL repositories if not, please take a look at APPENDIX.B for
  169. using the DVD as an instruction medium.
  170.  
  171. SuSE Linux Enterprise Server 12 SP1, SP2 (32-bit and 64-bit)
  172. SuSE Linux Enterprise Server 11 SP4, SP3 (32-bit and 64-bit)
  173.  
  174. 1.In order to build the driver from the sources, superuser
  175. permissions are required.
  176.  
  177. $ sudo su
  178.  
  179. 2.Install the following driver dependency packages
  180. and reboot the system if necessary
  181.  
  182. # zypper install kernel-devel gcc make
  183.  
  184. 3.Once the dependency packages have been installed ,extract
  185. the driver source code from the source tgz file.
  186.  
  187. #tar –xvf aacraid_source-1.2.1-xxxxx.tgz
  188.  
  189. 4.After the source is extracted , the driver aacraid.ko needs to be
  190. compiled. The command to do that is given below.At the end of the
  191. compilation you will get an aacraid.ko driver file which is our driver
  192. module.
  193.  
  194. # make –C /lib/modules/`uname -r`/build M=`pwd` modules
  195.  
  196. 5.Backup the already existing inbox driver if in case you want to revert at
  197. a later point of time
  198.  
  199. # mv /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko \
  200. /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid/aacraid.ko.org
  201.  
  202. 6.Copy the kernel driver file to its destination for including into the
  203. initramfs.
  204.  
  205. # cp ./aacraid.ko /lib/modules/`uname -r`/kernel/drivers/scsi/aacraid
  206.  
  207. 7.To make sure that the newly installed aacraid.ko modules is included
  208. in the linux kernel once it reboots, it needs to be placed into the
  209. initramfs file. SLES provides mkinitrd to do it. The command to rebuild
  210. initramfs with the newly installed aacraid driver is given below.
  211.  
  212. # mkinitrd -v –m aacraid
  213.  
  214. 8.Once the mkinitrd process ends, the system needs to be rebooted to
  215. load the new initramfs which contains our newly installed aacraid.ko
  216. driver
  217.  
  218.  
  219. II. STEPS TO INSTALL PACKAGES FROM DVD
  220. --------------------------------------
  221.  
  222. Given below are instructions to install packages from OS installation DVD RHEL
  223. based OS and Sles OS. These steps do not need the systems to have subscriptions,
  224. but rather leverage the DVD's as repositories to install packages from.
  225.  
  226. A. RHEL based OS
  227. ================
  228.  
  229. THe following steps allow the user to install the packages required to compile
  230. the driver modules from source. The DVD is made into a package repository, from
  231. where yum can get and install packages from.
  232.  
  233. 1.Since the below steps involve editing and making changes to various system
  234. files requiring superuser permissions, we need to become superuser
  235. $ sudo su
  236.  
  237. 2. First we need to get the name of our installation DVD entry in /dev
  238. directory. The DVD usually shows up as /dev/srX. The lsscsi command.
  239. allows us to list all the scsi devices on the system, making it easier
  240. to find which of them is the DVD disk.
  241. # lsscsi
  242.  
  243. 3. Once the name of the DVD is figured out, we need to create a location
  244. to mount the DVD, lets mount it in /media/iso
  245. # mkdir /media/iso
  246.  
  247. 4. After the directory is created, a /etc/fstab entry is required for mount
  248. command to mount the DVD to the /media/iso directory. The entry in
  249. /etc/fstab can be given as follows
  250. /dev/srX /media/iso udf,iso9660 noauto,user,ro 0 0
  251.  
  252. 5.Once the entry is placed in /etc/fstab, we can go ahead and mount the DVD
  253. using the following command
  254. # mount /dev/srX
  255.  
  256. 6.Now for yum to use the packages from the mounted DVD location, we will
  257. need to create a dvd.repo with the following
  258.  
  259. [dvd]
  260. name=Red Hat Enterprise Linux Installation DVD
  261. baseurl=file:///media/iso
  262. enabled=1
  263.  
  264. 7.Next the GPG keys need to be imported for yum to authenticate the rpm
  265. packages in the DVD. The following command accomplishes that.
  266. # rpm --import /media/iso/RPM-GPG*
  267.  
  268. 8. Once the gpg keys are imported run the following commands to enabled
  269. the DVD repository.
  270. # yum repolist
  271. # yum install
  272.  
  273. B. SLES based OS
  274. ================
  275.  
  276. 1.Since the below steps involve editing and making changes to various system
  277. files requiring superuser permissions, we need to become superuser
  278. $ sudo su
  279.  
  280. 2.First we need to get the name of our installation DVD entry in /dev
  281. directory. The DVD usually shows up as /dev/srX. The lsscsi command allows
  282. us to list all the scsi devices on the system, making it easier
  283. to find which of them is the DVD disk.
  284. #lsscsi
  285.  
  286. 3.Once the name of the DVD is figured out, we need to create a location
  287. to save the DVD image.
  288. # mkdir /var/iso
  289.  
  290. 4.Create an iso image from installation disk, Once the dvd image is saved
  291. zypper will use the ISO as an installation service and install the packages
  292. from it.
  293.  
  294. # dd if=/dev/srX of=/var/iso/sles.iso
  295.  
  296. 5.Once the installation disk is saved as an ISO image, set it as an
  297. installation servcice (xy z is the sles distribution ID eg 10 sp1)
  298. # zypper sa “iso:/?iso=/var/iso/sles.iso” “SLES xy spz”
  299.  
  300. 6.After adding the iso as an installation service, run the following command
  301. to make sure that it worked.
  302. # zypper sl
  303.  
  304.  
  305. III.COPYRIGHT
  306. -------------
  307. Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of
  308. semiconductor and system solutions for communications, defense and security,
  309. aerospace, and industrial markets. Products include high-performance and
  310. radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs, and
  311. ASICs; power management products; timing and synchronization devices and
  312. precise time solutions; voice processing devices; RF solutions; discrete
  313. components; enterprise storage and communications solutions; security
  314. technologies and scalable anti-tamper products; Ethernet solutions;
  315. Power-over-Ethernet ICs and midspans; custom design capabilities and services.
  316. Microsemi is headquartered in Aliso Viejo, California and has approximately
  317. 4,800 employees world-wide. Learn more at www.microsemi.com.
  318.  
  319. Microsemi makes no warranty, representation, or guarantee regarding the
  320. information contained herein or the suitability of its products and services
  321. for any particular purpose, nor does Microsemi assume any liability whatsoever
  322. arising out of the application or use of any product or circuit. The products
  323. sold hereunder and any other products sold by Microsemi have been subject to
  324. limited testing and should not be used in conjunction with mission-critical
  325. equipment or applications.Any performance specifications are believed to be
  326. reliable but are not verified, and Buyer must conduct and complete all
  327. performance and other testing of the products, alone and together with, or
  328. installed in, any end-products. Buyer shall not rely on any data and
  329. performance specifications or parameters provided by Microsemi. It is the
  330. Buyer's responsibility to independently determine suitability of any products
  331. and to test and verify the same. The information provided by Microsemi
  332. hereunder is provided "as is, where is" and with all faults, and the entire
  333. risk associated with such information is entirely with the Buyer. Microsemi
  334. does not grant, explicitly or implicitly, to any party any patent rights,
  335. licenses, or any other IP rights, whether with regard to such information
  336. itself or anything described by such information. Information provided in this
  337. document is proprietary to Microsemi, and Microsemi reserves the right to make
  338. any changes to the information in this document or to any products and services
  339. at any time without notice. The technology discussed in this document may be
  340. protected by one or more patent grants.
  341.  
  342. Microsemi Corporate Headquarters
  343. One Enterprise, Aliso Viejo,
  344. CA 92656 USA
  345. © 2016 Microsemi Corporation. All rights
  346. reserved. Microsemi and the Microsemi logo
  347. are trademarks of Microsemi Corporation. All
  348. other trademarks and service marks are the
  349. property of their respective owners.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement