Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Free Guide: Linux from Scratch
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.
Click Here to receive the Linux from Scratch Guide absolutely free.
I was wondering if anybody had this problem: I'm trying to compile Highpoint Rocketraid 2310 driver v2.2 on CentOS 5.3 x86_64 (kernel 2.6.18-128.el5). When I run make I get this warning:
Code:
make KERNELDIR=/lib/modules/2.6.18-128.el5/build/ ARCH=x86_64
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-x86_64'
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/os_linux.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/osm_linux.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/div64.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/hptinfo.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/config.o
LD [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/rr2310_00.o
Building modules, stage 2.
MODPOST
WARNING: could not find /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/.him_rr2310pm.o.cmd for /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/him_rr2310pm.o
LD [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/rr2310_00.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-x86_64'
and make install gives me this error:
Code:
make install
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-x86_64'
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/os_linux.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/osm_linux.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/div64.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/hptinfo.o
CC [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/config.o
LD [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/rr2310_00.o
Building modules, stage 2.
MODPOST
WARNING: could not find /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/.him_rr2310pm.o.cmd for /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/him_rr2310pm.o
LD [M] /root/rr231x_0x-linux-src-v2.2/product/rr2310pm/linux/.build/rr2310_00.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-x86_64'
You made a module which is for current kernel 2.6.18-128.el5.
Deleting previous installed driver module rr2310_00...
Install the new driver module...
Removing conflicted driver module...
Updating module dependencies...Done.
Checking for initrd images to be updated...
No module sata_mv found for kernel 2.6.18-128.el5, aborting.
make: *** [install] Error 1
Did anyone else have this problem and how did you fix this?
It seems you need to build the sata_mv module for your kernel. I found some info about it here: http://hardware4linux.info/module/sata_mv/
You can see if that matches the hardware you are using.
cheers,
jdk
It seems you need to build the sata_mv module for your kernel. I found some info about it here: http://hardware4linux.info/module/sata_mv/
You can see if that matches the hardware you are using.
cheers,
jdk
Well, the thing is sata_mv is loaded into kernel already but make doesn't find it for some reason. How could I "tell" it that's the module is actually present? Thanks.
Well, the thing is sata_mv is loaded into kernel already but make doesn't find it for some reason. How could I "tell" it that's the module is actually present? Thanks.
Code:
sudo modprobe | grep sata_mv
What is the output of the above command?
cheers,
jdk
I would either take it back, complaining bitterly that selling "fake RAID" cards is tantamout to fraud;
or just use it as an expensive disk controller for Linux s/w RAID.
BTW, I got sucked in by a "works w/ Linux" claim on the box of an earlier Highpoint Rocketraid card.
It's "fake RAID" & not worth the money paid for the card, nor the time to compile the driver.
This one gave me a little bit of a headache so I thought I'd post some notes from my experience with a RocketRaid 1740 PCI card on CentOS 5.4.
First, some clarification on the error. The message "No module sata_mv found for kernel..." is from mkinitrd. It is unhappy because the "sata_mv.ko" module is missing and there is still a dependency for it. The module is missing because the install script you just ran... deleted it. This is actually okay for the most part since that module is very incompatible with the one from highpoint. So basically, you don't have or want the sata_mv module, you just want to tell your system to ignore it.
The good thing about this error is that it happens at the very last stage of the install script. This means that the module is very likely already compiled and installed in the correct location. Your kernel version and card type will vary but the path is probably something like...
/lib/modules/2.6.18-164.el5/kernel/drivers/scsi/rr174x/rr174x.ko
I haven't figured out how to properly remove the dependency for sata_mv but was able to get around it by specifying the "--builtin=sata_mv" option to mkinitrd. I don't really like the idea of telling the system a module is built into the kernel when in fact it's actually missing. You may want to "blacklist" sata_mv which might help prevent devices even trying to bind to it. Anyway if you have the module in the correct location you can now run mkinitrd by hand or you can edit the install script and re-run "make install".
The install script is triggered by "make install". It is located at "osm/linux/install.sh" in the package folder and is also kinda lame. It actually renames your ramdisk module image in "/boot" before successfully creating a new image. That means that if you get this error you should NOT reboot your machine until renaming the boot image back to match your kernel. Anyway, whenever I use this script I modify it in a few ways. I replace any calls to "modinfo" with "/sbin/modinfo" and "mkinitrd" with "mkinitrd --builtin=sata_mv". I usually have the appropriate sbin folders in the path but, like I said, this script is kinda lame. Make sure you check the locations for those commands on your system before making changes. Also, when I run "make install" I don't use sudo but instead become root using "su -".
As a side note, it may be possible to totally avoid this issue by simply installing linux with your raid card detached. For obvious reasons, this isn't an option for everyone.
p.s. It's not related to compiling this module but with this card and my hardware I needed to add the kernel argument "edd=off" after my system began to hang during boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.