OpenVZ Forum


Home » General » Support » /* solved */ kernel panic with megaraid_sas-v00.00.03.16-1 patch
Re: kernel panic with megaraid_sas-v00.00.03.16-1 patch [message #30304 is a reply to message #30298] Tue, 20 May 2008 14:59 Go to previous messageGo to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
First of all -- I wold note that you need to build this driver by the same comiler that was used for the kernel build.

Do you have RHEL5 host OS? If not -- You need to create new Container based on this template, and install the kernel and kernel-devel packages -- it contains the Makefiles and headers reuired for the driver compilation.

Then you need take megaraid_sas-v00.00.03.16-src.tgz tarball, it is included into megaraid_sas-v00.00.03.16-1.noarch.rpm, in /usr/src/megaraid_sas-v00.00.03.16-1 directory.

Extract it by using "tar xvzf" command, cd to dkms_source_tree/ directory and look at the following files:
Makefile
megaraid_sas.c
megaraid_sas.h

Then you can compile the driver by using the following command:
make -C /lib/modules/<kernel version>/build \
SUBDIRS=<full_path_to_the_current_dir> modules

for example

# make -C /lib/modules/2.6.18-028stab053.10/build \
SUBDIRS=/root/dkms_source_tree/ modules
make: Entering directory `/usr/src/kernels/2.6.18-028stab053.6-i686'
CC [M] /root/dkms_source_tree/megaraid_sas.o
/root/dkms_source_tree/megaraid_sas.c: In function ‘megasas_probe_one’:
/root/dkms_source_tree/megaraid_sas.c:2650: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/dkms_source_tree/megaraid_sas.c: In function ‘megasas_resume’:
/root/dkms_source_tree/megaraid_sas.c:2881: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
Building modules, stage 2.
MODPOST
CC /root/dkms_source_tree/megaraid_sas.mod.o
LD [M] /root/dkms_source_tree/megaraid_sas.ko
make: Leaving directory `/usr/src/kernels/2.6.18-028stab053.6-i686'
#

As you can see it generates some warnings but I think it is not an issue in our case.
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ftp error
Next Topic: vpnc in a VE locks out local traffic ?
Goto Forum:
  


Current Time: Mon Sep 16 12:44:16 GMT 2024

Total time taken to generate the page: 0.04449 seconds