[elrepo] kmod-rr174x for el7
Leon Fauster
leonfauster at googlemail.com
Thu Dec 25 07:58:10 EST 2014
Hi Alan,
Am 22.12.2014 um 18:20 schrieb Alan Bartlett <ajb at elrepo.org>:
> I have spent some time attempting to build the most current version of
> the rr174x code on RHEL7 without success. :(
>
> I started by putting the kmod package together only to find that it
> failed to build. I then went back to the Adaptec site and ensured that
> I had to latest source tarball. Extracting the contents and testing a
> fundamental "make" showed that the code in its current format is not
> compatible with a 3.x.y Linux kernel.
>
> So, unfortunately, a EL7 version of the rr174x kmod package is
> currently a "non-starter".
elrepo's mantis doesn't send me a verification mail after signing up. Therefore
over this channel (instead http://elrepo.org/bugs/view.php?id=541):
I took a look at my EL5 workstation with a 3.2 kernel and generated
a patch file (not test with a 3.10 kernel):
http://pastebin.centos.org/14751/raw/ (pastboard will survive 1 month)
MD5: rr174x-linux-src-v2.4-1.1.patch = 6642a29737a71962ac20724a4f95cca7
Following process ends up with a compiled module:
# cat /etc/redhat-release
CentOS release 5.11 (Final)
# rpm -qa |grep kernel-lt
kernel-lt-headers-3.2.65-1.el5.elrepo
kernel-lt-devel-3.2.65-1.el5.elrepo
kernel-lt-3.2.65-1.el5.elrepo
# tar zxf rr174x-linux-src-v2.4-091009-1434.tar.gz
# cd rr174x-linux-src-v2.4
# cat ../rr174x-linux-src-v2.4-1.1.patch | patch -p0 -b
# cd product/rr1740pm/linux/
# make KERNELDIR=/lib/modules/3.2.65-1.el5.elrepo/build/
# echo $?
0
# # i do not use install.sh, therefore not patched
# cp rr174x.ko /lib/modules/3.2.65-1.el5.elrepo/kernel/drivers/scsi/rr174x.ko
# chmod 744 /lib/modules/3.2.65-1.el5.elrepo/kernel/drivers/scsi/rr174x.ko
# depmod -a 3.2.65-1.el5.elrepo
# depmod -aeF "/boot/System.map-3.2.65-1.el5.elrepo" "3.2.65-1.el5.elrepo"
# mv /boot/initrd-3.2.65-1.el5.elrepo.img /boot/initrd-3.2.65-1.el5.elrepo.img.$(date +%s)
# mkinitrd /boot/initrd-3.2.65-1.el5.elrepo.img 3.2.65-1.el5.elrepo
# cat /etc/modprobe.d/blacklist-sata
blacklist sata_mv
# reboot
Unfortunately I can't do some tests on real controllers
because all workstations I have are in production state.
So, I actually haven't boot such kernel on my systems
with harddisks attached. Conclusion, no warranty - only
for testing purposes! Maybe some one have more knowledge
to verify this module - at least, it boots fine so far:
# cat /proc/scsi/rr174x/6
RocketRAID 174x controller driver v2.4 (Dec 25 2014 13:06:41)
Controller 1: RocketRAID 174x/2210 Controller
------------------------------------------------
Logical devices
------------------------------------------------
# uname -a
Linux leon.localdomain 3.2.65-1.el5.elrepo #1 SMP PREEMPT Sun Dec 14 17:31:28 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
--
LF
More information about the elrepo
mailing list