[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Kernel 2.6.15.4 and Xen


  • To: "Mark Turner" <mark@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • 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
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.