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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Kernel 2.6.15.4 and Xen

To: "Mark Turner" <mark@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Kernel 2.6.15.4 and Xen
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Thu, 2 Mar 2006 14:55:53 +0100
Delivery-date: Thu, 02 Mar 2006 13:56:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcY9/oCL5rsc5PgUTFaDVpjTtpw7lgAAc82w
Thread-topic: [Xen-users] Kernel 2.6.15.4 and Xen
> -----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