Skip to contentSkip to conversation

problems compiling Xen 3.1.3 after making changes to the config

DISCUSSION Girish V 2 participants 3 messages Apr 2, 2008 – Apr 3, 2008

lore
Share & tools
lore

Girish V

author
#0 lore raw

Hello,

I am trying to compile and boot Xen 3.1.3 with linux-2.6.18.8-xen on a FC5 machine (gcc 4.1.0).

I modified the default linux-2.6.18.8-xen/.config file by doing the following

1) cd xen-3.1.3/linux-2.6.18.8-xen/
2) make menuconfig (marked ide drivers to be compiled in instead of as modules)
3) cd ../
4) make

Make fails with the following message
-------------------------------------------------------------------------------------------------------

make[3]: Entering directory `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32'
make -C /root/xen-3.1.3/linux-2.6.18.8-xen O=/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 vmlinuz
Using /root/xen-3.1.3/linux-2.6.18.8-xen as source for kernel /root/xen-3.1.3/linux-2.6.18.8-xen is not clean, please run 'make
mrproper'
in the '/root/xen-3.1.3/linux-2.6.18.8-xen' directory.
make[5]: *** [prepare3] Error 1
make[4]: *** [vmlinuz] Error 2
make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32' make[2]: *** [build] Error 2
make[2]: Leaving directory `/root/xen-3.1.3'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/root/xen-3.1.3'
make: *** [install-kernels] Error 1

-------------------------------------------------------------------------------------------------------

Any help is appreciated.

Thanks,
Girish

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 9 lines · Girish V

Hello,

I am trying to compile and boot Xen 3.1.3 with linux-2.6.18.8-xen on a FC5 machine (gcc 4.1.0).

I modified the default linux-2.6.18.8-xen/.config file by doing the following

1) cd xen-3.1.3/linux-2.6.18.8-xen/

This should be xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 then the rest of your commands should work OK.

You will need to run "make mrproper" in xen-3.1.3/linux-2.6.18.8-xen to undo what you did already.

The issues is that the Xen build system uses out of tree builds (the O= in the output below) so source is in linux-2.6.18.8-xen and objects are in build-* (this saves having multiple copies of the source).

You have caused the source tree to be used as an object tree which leads to the error you have observed.

Quoted 42 lines

2) make menuconfig (marked ide drivers to be compiled in instead of as modules)
3) cd ../
4) make

Make fails with the following message
-------------------------------------------------------------------------------------------------------

make[3]: Entering directory `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32'
make -C /root/xen-3.1.3/linux-2.6.18.8-xen O=/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 vmlinuz
Using /root/xen-3.1.3/linux-2.6.18.8-xen as source for kernel /root/xen-3.1.3/linux-2.6.18.8-xen is not clean, please run 'make
mrproper'
in the '/root/xen-3.1.3/linux-2.6.18.8-xen' directory.
make[5]: *** [prepare3] Error 1
make[4]: *** [vmlinuz] Error 2
make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32' make[2]: *** [build] Error 2
make[2]: Leaving directory `/root/xen-3.1.3'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/root/xen-3.1.3'
make: *** [install-kernels] Error 1

-------------------------------------------------------------------------------------------------------

Any help is appreciated.

Thanks,
Girish

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#2 lore raw

Thanks Ian. I tried what you suggested and Xen compiled fine.

Now another problem has cropped up. When I try to boot up dom0, I get a kernel panic. I am compiling Xen 3.1.3 on FC5. I have made sure that all IDE modules (my disk is IDE) are compiled in and are not modules using the make menuconfig.

I am building the ramdisk using mkinitrd initrd.img 2.6.18.8-xen

My grub.conf is

------------------------------------------------

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/hda1
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.15-1.2054_FC5.img

title Xen 3.1.3 (2.6.18-xen)

        root (hd0,0)
        kernel /boot/xen.gz dom0_mem=256M noreboot com1=38400,8n1
sync_console
        module /boot/vmlinuz-2.6.18-xen ro root=LABEL=/ console=ttyS0
console=tty pnacpi=off
        module /boot/initrd-3.1.3-xen.img
        #module /boot/initrd-3.0.2-xen-readme.img
        #module /boot/initrd-3.0.2-xen-preload.img

---------------------------------------

I have shown the panic message below. (Full boot up message in file attached)

________________________________________________

Freeing unused kernel memory: 196k freed
input: ImExPS/2 Generic Explorer Mouse as /class/input/input1
ide_disk: no version for "struct_module" found: kernel tainted.

BUG: unable to handle kernel paging request at virtual address 1eee0077
 printing eip:
c0161739
003e1000 -> *pde = 00000000:1ebe0001
003e0000 -> *pme = 00000000:00000000
Oops: 0000 [#1]
SMP
Modules linked in: ext3 jbd ide_disk
CPU:    0
EIP:    0061:[<c0161739>]    Tainted: GF     VLI
EFLAGS: 00000246   (2.6.18.8-xen #1)

EIP is at unmap_vmas+0x489/0x910
eax: 00000000 ebx: 1eee0067 ecx: 00000000 edx: 1eee0067
esi: 1eee0067 edi: 1eee0067 ebp: c03cca28 esp: c00d7eac
ds: 007b es: 007b ss: 0069
Process init (pid: 1, ti=c00d6000 task=c00d55f0 task.ti=c00d6000)

Stack: 1eee0067 00000000 d0250088 1eee0067 1eee0067 1eee0067 00000000
b7f45000
       c03dbf3c c00d7f68 1eee0067 00000000 003ff000 b7f45000 00000000
00000000
       b7f46000 c03e1010 c03e2e40 1eee0067 c1212200 00000000 00000000
c03e2e84
Call Trace:
 [<c015ab46>] __pagevec_lru_add_active+0xe6/0x130
 [<c016669b>] unmap_region+0x9b/0x120
 [<c01671ad>] do_munmap+0x14d/0x1e0
 [<c0167272>] sys_munmap+0x32/0x50
 [<c010562f>] syscall_call+0x7/0xb
Code: 00 3b b0 98 00 00 00 0f 84 5a 02 00 00 81 fe 00 e1 34 c0 0f 84 4e 02

00 00 8b 44 24 08 89 45 04 c7 45 00 40 00 00 00 8b 54 24 4c <f6> 42 10 01 0f 84 c2 01 00 00 83 6c 24 54 01 8b 44 24 4c e8 0f
EIP: [<c0161739>] unmap_vmas+0x489/0x910 SS:ESP 0069:c00d7eac
<0>Kernel panic - not syncing: Attempted to kill init!
(XEN) Domain 0 crashed: 'noreboot' set - not rebooting.

________________________________________________

I tried searching for this "unable to handle kernel paging" error on the mailing list, but I could not find any fix for it.

Any ideas why the kernel panic happens?

Thanks,
Girish

Quoted 56 lines · Ian Campbell
Quoted 9 lines · Girish V

Hello,

I am trying to compile and boot Xen 3.1.3 with linux-2.6.18.8-xen on a FC5 machine (gcc 4.1.0).

I modified the default linux-2.6.18.8-xen/.config file by doing the following

1) cd xen-3.1.3/linux-2.6.18.8-xen/

This should be xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 then the rest of your commands should work OK.

You will need to run "make mrproper" in xen-3.1.3/linux-2.6.18.8-xen to undo what you did already.

The issues is that the Xen build system uses out of tree builds (the O= in the output below) so source is in linux-2.6.18.8-xen and objects are in build-* (this saves having multiple copies of the source).

You have caused the source tree to be used as an object tree which leads to the error you have observed.

Quoted 7 lines

2) make menuconfig (marked ide drivers to be compiled in instead of as modules)
3) cd ../
4) make

Make fails with the following message

-------------------------------------------------------------------------------------------------------

Quoted 13 lines

make[3]: Entering directory `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32'
make -C /root/xen-3.1.3/linux-2.6.18.8-xen O=/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 vmlinuz
Using /root/xen-3.1.3/linux-2.6.18.8-xen as source for kernel /root/xen-3.1.3/linux-2.6.18.8-xen is not clean, please run 'make
mrproper'
in the '/root/xen-3.1.3/linux-2.6.18.8-xen' directory.
make[5]: *** [prepare3] Error 1
make[4]: *** [vmlinuz] Error 2

Quoted 10 lines

make[3]: *** [vmlinuz] Error 2
make[3]: Leaving directory
`/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/root/xen-3.1.3'
make[1]: *** [linux-2.6-xen-install] Error 2
make[1]: Leaving directory `/root/xen-3.1.3'
make: *** [install-kernels] Error 1

Quoted 15 lines

-------------------------------------------------------------------------------------------------------

Quoted 12 lines

Any help is appreciated.

Thanks,
Girish

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel