OpenVZ Forum


Home » General » Support » howto compile kernel with some special features ? [SOLVED]
Re: howto compile kernel with some special features ? [message #37337 is a reply to message #37292] Thu, 03 September 2009 13:32 Go to previous messageGo to previous message
dvazart is currently offline  dvazart
Messages: 37
Registered: October 2008
Location: France
Member
Hi !

Ok, the kernel is working now !

But, it isn't an enterprise kernel so I'm limited to 50 containers.

Do you have an etrprise kernel for x64 in your debian repository ?

I'm also trying to compile my own kernel, following this tutorial: http://wiki.openvz.org/Kernel_build

this is what I'm doing:

cd /usr/src

wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2

wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab064.4/patches/patch-128.2.1.el5.028stab064.4-combined.gz

tar vjxf linux-2.6.18.tar.bz2

cp patch-128.2.1.el5.028stab064.4-combined.gz linux-2.6.18

cd linux-2.6.18

gzip -dc patch-128.2.1.el5.028stab064.4-combined.gz | patch -p1

rm patch-128.2.1.el5.028stab064.4-combined.gz

wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab064.4/configs/kernel-2.6.18-i686-ent.config.ovz -O .config

make oldconfig

make


And I got this error :

 LD      .tmp_vmlinux1
arch/x86_64/kernel/built-in.o: In function `alloc_iommu':
pci-gart.c:(.text+0x111b4): undefined reference to `iommu_area_alloc'
pci-gart.c:(.text+0x111ee): undefined reference to `iommu_area_alloc'
arch/x86_64/kernel/built-in.o: In function `gart_unmap_single':
(.text+0x11627): undefined reference to `iommu_area_free'
make: *** [.tmp_vmlinux1] Erreur 1


** Edit **
ok, I could pass the problem enabling all IOMMU options during make oldconfig, and now I got this other message:

Root device is (8, 2)
Boot sector 512 bytes.
Setup is 7233 bytes.
System is 1762 kB
Kernel: arch/x86_64/boot/bzImage is ready  (#1)
  Building modules, stage 2.
  MODPOST
WARNING: "arch_setup_additional_pages" [kernel/cpt/vzrst.ko] undefined!
WARNING: "syscall32_page" [kernel/cpt/vzrst.ko] undefined!
WARNING: "syscall32_page" [kernel/cpt/vzcpt.ko] undefined!
make[1]: *** [__modpost] Erreur 1
make: *** [modules] Erreur 2


May you help me with this please ?


----------- Daniel Vazart ------------
"Knowledge is power, Sharing is human"
------- http://www.vazart.net --------

[Updated on: Thu, 03 September 2009 14:38]

Report message to a moderator

 
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: PCI Passthrough
Next Topic: Kernel Panic with 028stab064.4 ?
Goto Forum:
  


Current Time: Sun Jul 14 23:13:35 GMT 2024

Total time taken to generate the page: 0.02306 seconds