WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have
preserved to ensure that existing links to archives are not broken.
The live archive, which contains the latest emails, can be found at
http://lists.xen.org/

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Mark Turner
> Sent: 02 March 2006 13:38
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Cc: Mark Turner
> Subject: [Xen-users] Kernel 2.6.15.4 and Xen
>
> How do I compile a 2.6.15.4 kernel in a Xen-friendly way?
>
> From the FAQ at xensource.com:
>
> 5.1. How do I configure a Linux domain 0 kernel for my hardware?
>
> You should be able to edit the .config file and then
> just type make at the top level. For example, to use Linux's
> graphical config editor:
>
> # cd linux-2.6.9-xen0
> # make ARCH=xen xconfig (configure however you want)
> # cd ..
> # make
>
> When I try similar:
>
> dom0a:~# cd /usr/src/linux-2.6.15.4
> dom0a:/usr/src/linux-2.6.15.4# make ARCH=xen menuconfig
> Makefile:449:
> /usr/src/linux-2.6.15.4/arch/xen/Makefile: No such file or directory
> make: *** No rule to make target
> `/usr/src/linux-2.6.15.4/arch/xen/
> Makefile'. Stop.
> dom0a:/usr/src/linux-2.6.15.4#
>
> Thanks,
>
> Mark.
At some point after 2.6.12 the Xen "architecture" was converted into a
x86 subarch, so you would just need to set the "subarchitecture" to Xen
inside your menuconfig. So what you need to do is:
'make menuconfig'
Select processor type and features
Now select "Xen compatible kernel".
Save config file.
'make clean bzImage'
'make modules'
And of course whatever other steps you have to perform to make
everything work out (such as mkinitrd, make install, make
install-modules [which I never get right, because I'm not sure if it's
install-modules, install_modules, modules_install or ...], etc, etc).
--
Mats
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users