[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re:[Xen-users] Problem compiling a custom kernel for xen-3.0
Hi there, your approach will never work - as the howto you use was made for xen2. Just have a short look a the xen3 user manual and you'll find the solution of your prolem :-) cheers, Mat -----Original Message----- Sent: Montag 06.03.06 12:15:04 Subject: [Xen-users] Problem compiling a custom kernel for xen-3.0 >Hello, > > I am trying to run xen-3.0 in some of my dell servers. I have tried the >binary distribution of xen, but it doesn't boot in my test system (a >dell poweredge 750) because a module driver problem (I get an error >message during booting saying it doesn't load a NFS root filesystem). > > So I am trying to compile a custom kernel. So I have downloaded linux >source 2.6.12. I am doing the next steps (found at >http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu_p3): > >1. cp -al linux-2.6.12 linux-2.6.12-xen0 >2. cd xen-3.0.1/linux-2.6.11-xen-sparse/ >3. ./mkbuildtree ../../linux-2.6.12-xen0/ >4. cd ../.. >5. echo "-xen0" > linux-2.6.12-xen0/localversion-xen >6. diff -Naur linux-2.6.12 linux-2.6.12-xen0 > >archive/linux-2.6.12-xen0.patch > >7. cd linux-2.6.12 >8. patch -p1 < ../archive/linux-2.6.12-xen0.patch >9. cd ../ >10. mkdir install >11. cd linux-2.6.12-xen0 >12. cp arch/xen/configs/xen0_defconfig .config >13. ARCH=xen; INSTALL_PATH=../install; INSTALL_MOD_PATH=../install >14. export ARCH INSTALL_PATH INSTALL_MOD_PATH >15. make oldconfig >16. make menuconfig >17. make modules > > But I get an error: > CHK include/linux/version.h > CC arch/i386/kernel/asm-offsets.s >In file included from include/asm-xen/asm/processor.h:18, > from include/asm/thread_info.h:17, > from include/linux/thread_info.h:21, > from include/linux/spinlock.h:12, > from include/linux/capability.h:45, > from include/linux/sched.h:7, > from arch/i386/kernel/asm-offsets.c:7: >include/asm-xen/asm/system.h:11:25: asm/smp_alt.h: No such file or >directory >In file included from include/asm-xen/asm/processor.h:18, > from include/asm/thread_info.h:17, > from include/linux/thread_info.h:21, > from include/linux/spinlock.h:12, > from include/linux/capability.h:45, > from include/linux/sched.h:7, > from arch/i386/kernel/asm-offsets.c:7: >include/asm-xen/asm/system.h: In function `__cmpxchg': >include/asm-xen/asm/system.h:256: error: `LOCK' undeclared (first use in >this function) >include/asm-xen/asm/system.h:256: error: (Each undeclared identifier is >reported only once >include/asm-xen/asm/system.h:256: error: for each function it appears >in.) >include/asm-xen/asm/system.h:256: error: syntax error before string >constant >include/asm-xen/asm/system.h:262: error: syntax error before string >constant >include/asm-xen/asm/system.h:268: error: syntax error before string >constant >make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 >make: *** [arch/i386/kernel/asm-offsets.s] Error 2 > > so I can't compile it. I have tried to compile the 2.6.12 kernel with >the same configuration (but without xen options) and it compiles >perfectly. > > Any idea? > >-- >Angel L. Mateo Martínez >Sección de Telemática >Área de Tecnologías de la Información _o) >y las Comunicaciones Aplicadas (ATICA) / \\ >http://www.um.es/atica _(___V >Tfo: 968367590 >Fax: 968398337 > > >_______________________________________________ >Xen-users mailing list >Xen-users@xxxxxxxxxxxxxxxxxxx >http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |