OpenVZ Forum


Home » General » Support » Compiling iscsitarget modules on 2.6.32-budarin
Compiling iscsitarget modules on 2.6.32-budarin [message #40101] Fri, 16 July 2010 13:53 Go to next message
glic3rinu is currently offline  glic3rinu
Messages: 16
Registered: January 2009
Junior Member
Hi!
I spend all day trying to compile the last dev svn iscsitarget module for the last openvz dev kernel, but I can't be able to do that Sad

cd /usr/src/modules/
svn co https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget iscsitarget

cd iscsitarget/trunk/
make

....

make[1]: Leaving directory `/usr/src/modules/iscsitarget/trunk/usr'
make -C /lib/modules/2.6.32-budarin.1/build SUBDIRS=/usr/src/modules/iscsitarget/trunk/kernel modules
make[1]: Entering directory `/lib/modules/2.6.32-budarin.1/build'
CC [M] /usr/src/modules/iscsitarget/trunk/kernel/tio.o
In file included from include/linux/blkdev.h:6,
from /usr/src/modules/iscsitarget/trunk/kernel/iscsi.h:11,
from /usr/src/modules/iscsitarget/trunk/kernel/tio.c:7:
include/linux/sched.h:50:36: error: asm/param.h: No such file or directory
In file included from include/linux/capability.h:16,
from include/linux/sched.h:52,
from include/linux/blkdev.h:6,
from /usr/src/modules/iscsitarget/trunk/kernel/iscsi.h:11,
from /usr/src/modules/iscsitarget/trunk/kernel/tio.c:7:
include/linux/types.h:4:23: error: asm/types.h: No such file or directory
In file included from include/linux/types.h:14,
from include/linux/capability.h:16,
from include/linux/sched.h:52,
from include/linux/blkdev.h:6,
from /usr/src/modules/iscsitarget/trunk/kernel/iscsi.h:11,
from /usr/src/modules/iscsitarget/trunk/kernel/tio.c:7:


...


any idea about why those files are not there? (in asm/)

Thanks!!
marc

[Updated on: Fri, 16 July 2010 14:46]

Report message to a moderator

Re: Compiling iscsitarget modules on 2.6.32-budarin [message #40118 is a reply to message #40101] Sun, 18 July 2010 17:45 Go to previous messageGo to next message
glic3rinu is currently offline  glic3rinu
Messages: 16
Registered: January 2009
Junior Member
I finally had success compiling the iscsi-target kernel module, building the kernel myself from sources, following the openvz indications. unfortunately when I start the iscsi-target daemon I get a fatal error related with loading crc32c_intel module (modprobe -q crc32c).


t1000:/# /etc/init.d/iscsi-target start
Starting iSCSI Target: ietdFATAL: Error inserting crc32c_intel (/lib/modules/2.6.32.15/kernel/arch/x86/crypto/crc32c-intel. ko): No such device

t1000:/# modprobe -q crc32c
FATAL: Error inserting crc32c_intel (/lib/modules/2.6.32.15/kernel/arch/x86/crypto/crc32c-intel. ko): No such device


t1000:/# file /lib/modules/2.6.32.15/kernel/arch/x86/crypto/crc32c-intel.k o
/lib/modules/2.6.32.15/kernel/arch/x86/crypto/crc32c-intel.k o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped


with my Ubuntu (kernel 2.6.32) I can load the module without problems. Is this an openvz bug?
Re: Compiling iscsitarget modules on 2.6.32-budarin [message #40119 is a reply to message #40118] Sun, 18 July 2010 17:49 Go to previous messageGo to next message
glic3rinu is currently offline  glic3rinu
Messages: 16
Registered: January 2009
Junior Member
with the debian version of the openvz kernel 2.6.32-5-openvz-amd64 the module crc32c load correctly.

Why this doesn't work with my self compiled kernel? Sad
Re: Compiling iscsitarget modules on 2.6.32-budarin [message #40490 is a reply to message #40101] Sun, 22 August 2010 23:06 Go to previous message
sipvoip is currently offline  sipvoip
Messages: 4
Registered: March 2010
Junior Member
I am having the same problem compiling the latest SVN. Turns out the /lib/modules/2.6.32-budarin.1/build/include/asm directory has only 1 file in it!!!!

Where are all the asm files???

-Nathan
Previous Topic: enter into VE 101 failed
Next Topic: linux vserver to openvz migration
Goto Forum:
  


Current Time: Sat Nov 16 08:36:26 GMT 2024

Total time taken to generate the page: 0.03280 seconds