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. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mark Turner > Sent: 02 March 2006 13:38 > To: xen-users@lists.xensource.com > 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@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mats, thanks for the reply. On 2 Mar 2006, at 13:55, Petersson, Mats wrote:> 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.Ah, Ok.> 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''When I "make menuconfig" I can''t see any mention of Xen in the "Processor type and features" section or any of the sections below there. In fact I''m fairly sure I looked through every branch of the menus. Could you be more specific please and describe exactly where it is in case I missed it?> 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).Same here. :) Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2 Mar 2006, at 14:05, Mark Turner wrote:> When I "make menuconfig" I can''t see any mention of Xen in the > "Processor type and features" section or any of the sections below > there. In fact I''m fairly sure I looked through every branch of the > menus. Could you be more specific please and describe exactly where > it is in case I missed it?Also.... dom0a:/usr/src/linux-2.6.15.4# grep -i xen .config dom0a:/usr/src/linux-2.6.15.4# Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mark Turner > Sent: 02 March 2006 14:58 > To: xen-users@lists.xensource.com > Cc: Mark Turner > Subject: Re: [Xen-users] Kernel 2.6.15.4 and Xen > > On 2 Mar 2006, at 14:05, Mark Turner wrote: > > When I "make menuconfig" I can''t see any mention of Xen in the > > "Processor type and features" section or any of the sections below > > there. In fact I''m fairly sure I looked through every branch of the > > menus. Could you be more specific please and describe > exactly where it > > is in case I missed it?Is this a Xen supplied linux.tar.bz2 or a generic (e.g. from kernel.org etc)? You still need a patch from the Xen to apply to the standard kernel. In the Xen distribution, you''ll find a patch-2.6.16-rc4.bz2 for example, which is the patch for the latest(ish) Xen & kernel. You''d need a 2.6.15 patch for the 2.6.15 kernel, of course. This obviously applies also for kernel 2.6.12 for example, so nothing changed here, although the format of the patch was more like a patch directory structure (.../patches/linux-2.6.12/* for example).> > Also.... > > dom0a:/usr/src/linux-2.6.15.4# grep -i xen .config > dom0a:/usr/src/linux-2.6.15.4# >quad:~/xen-unstable.hg/linux-2.6.16-rc4-xen0 # grep -i xen .config # Linux kernel version: 2.6.16-rc4-xen0 CONFIG_X86_64_XEN=y CONFIG_X86_XEN_GENAPIC=y CONFIG_XEN_PCIDEV_FRONTEND=y # CONFIG_XEN_PCIDEV_FE_DEBUG is not set CONFIG_XEN=y # XEN CONFIG_XEN_PRIVILEGED_GUEST=y # CONFIG_XEN_UNPRIVILEGED_GUEST is not set CONFIG_XEN_PCIDEV_BACKEND=y # CONFIG_XEN_PCIDEV_BACKEND_VPCI is not set CONFIG_XEN_PCIDEV_BACKEND_PASS=y # CONFIG_XEN_PCIDEV_BE_DEBUG is not set CONFIG_XEN_BLKDEV_BACKEND=y # CONFIG_XEN_BLKDEV_TAP_BE is not set CONFIG_XEN_NETDEV_BACKEND=y # CONFIG_XEN_NETDEV_PIPELINED_TRANSMITTER is not set # CONFIG_XEN_TPMDEV_BACKEND is not set CONFIG_XEN_BLKDEV_FRONTEND=y CONFIG_XEN_NETDEV_FRONTEND=y # CONFIG_XEN_BLKDEV_TAP is not set # CONFIG_XEN_TPMDEV_FRONTEND is not set CONFIG_XEN_SCRUB_PAGES=y CONFIG_XEN_DISABLE_SERIAL=y quad:~/xen-unstable.hg/linux-2.6.16-rc4-xen0 # -- Mats> Cheers, > > Mark. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2 Mar 2006, at 15:31, Petersson, Mats wrote:> Is this a Xen supplied linux.tar.bz2 or a generic (e.g. from > kernel.org > etc)?From kernel.org.> You still need a patch from the Xen to apply to the standard > kernel. In > the Xen distribution, you''ll find a patch-2.6.16-rc4.bz2 for example, > which is the patch for the latest(ish) Xen & kernel. You''d need a > 2.6.15 > patch for the 2.6.15 kernel, of course. > > This obviously applies also for kernel 2.6.12 for example, so nothing > changed here, although the format of the patch was more like a patch > directory structure (.../patches/linux-2.6.12/* for example).In http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-3.0- testing-src.tgz I see patches for 2.6.12. Are patches available for other kernel versions, i.e. 2.6.15.4? If not, maybe I''d be better using a Xen-supplied kernel source tarball. Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mark Turner > Sent: 02 March 2006 15:58 > To: xen-users@lists.xensource.com > Cc: Mark Turner > Subject: Re: [Xen-users] Kernel 2.6.15.4 and Xen > > On 2 Mar 2006, at 15:31, Petersson, Mats wrote: > > Is this a Xen supplied linux.tar.bz2 or a generic (e.g. from > > kernel.org etc)? > > From kernel.org. > > > You still need a patch from the Xen to apply to the > standard kernel. > > In the Xen distribution, you''ll find a patch-2.6.16-rc4.bz2 for > > example, which is the patch for the latest(ish) Xen & kernel. You''d > > need a > > 2.6.15 > > patch for the 2.6.15 kernel, of course. > > > > This obviously applies also for kernel 2.6.12 for example, > so nothing > > changed here, although the format of the patch was more > like a patch > > directory structure (.../patches/linux-2.6.12/* for example). > > In http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-3.0- > testing-src.tgz I see patches for 2.6.12. > > Are patches available for other kernel versions, i.e. > 2.6.15.4? If not, maybe I''d be better using a Xen-supplied > kernel source tarball.There are patches for other kernel sources, but you''d have to look up which ones are in which changeset. I think 2.6.15 is in 3.0.1 - but I could have that wrong. Xen-supplied linux is probably the easiest solution. -- Mats> > Cheers, > > Mark. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mats, On 2 Mar 2006, at 16:12, Petersson, Mats wrote:> There are patches for other kernel sources, but you''d have to look up > which ones are in which changeset. I think 2.6.15 is in 3.0.1 - but I > could have that wrong. > > Xen-supplied linux is probably the easiest solution.I think I''ve come to that conclusion too. I have Mercurial installed and ready to point at the appropriate repository, though I''m not sure which one to use. I''d like to use 3.0.1 but the wiki (http://wiki.xensource.com/xenwiki/ XenDownloads) appears to only give .hg links for 2.0-testing, 2.0.6 and unstable. I''ve also found 3.0-testing (http:// xenbits.xensource.com/xen-3.0-testing.hg), but that was last changed 4 days ago so obviously isn''t the same as 3.0.1. Is there a .hg link for 3.0.1 somewhere? Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Turner wrote:> Hi Mats, > > On 2 Mar 2006, at 16:12, Petersson, Mats wrote: >> There are patches for other kernel sources, but you''d have to look up >> which ones are in which changeset. I think 2.6.15 is in 3.0.1 - but I >> could have that wrong.That''s not correct, unfortunately. 3.0.1 is still 2.6.12.5.>> Xen-supplied linux is probably the easiest solution. > > I think I''ve come to that conclusion too. > > I have Mercurial installed and ready to point at the appropriate > repository, though I''m not sure which one to use. > > I''d like to use 3.0.1 but the wiki (http://wiki.xensource.com/xenwiki/ > XenDownloads) appears to only give .hg links for 2.0-testing, 2.0.6 and > unstable. I''ve also found 3.0-testing (http:// > xenbits.xensource.com/xen-3.0-testing.hg), but that was last changed 4 > days ago so obviously isn''t the same as 3.0.1. > > Is there a .hg link for 3.0.1 somewhere?Repositories are listed here: http://xenbits.xensource.com/ (www.xensource.com -> Xen Community -> Downloads -> Mercurial Repository) xen-3.0-testing.hg is the "stable" tree, from which 3.0.1 was release. It includes 3.0.1 + a few bug-fix patches. This is linux 2.6.12.5, with xen still as complete arch -- i.e. for your own kernel configuration you must do "make ARCH=xen menuconfig" etc. xen-unstable.hg is the development tree. This will be 3.0.2. It has linux 2.6.16rcX with the new subarch layout, i.e. the "make menuconfig" will let you choose to build a Xen compatible kernel. Hope that helps. Best Regards, Michael Paesold _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 3 Mar 2006, at 10:24, Michael Paesold wrote:> Repositories are listed here: > http://xenbits.xensource.com/ > (www.xensource.com -> Xen Community -> Downloads -> Mercurial > Repository) > > xen-3.0-testing.hg is the "stable" tree, from which 3.0.1 was > release. It includes 3.0.1 + a few bug-fix patches. This is linux > 2.6.12.5, with xen still as complete arch -- i.e. for your own > kernel configuration you must do "make ARCH=xen menuconfig" etc. > > xen-unstable.hg is the development tree. This will be 3.0.2. It has > linux 2.6.16rcX with the new subarch layout, i.e. the "make > menuconfig" will let you choose to build a Xen compatible kernel. > > Hope that helps.Yes, thank-you. So, I tried using the linux-2.6-hg kernel tree. I chose this one because I''d like to use known repeatable Xen installations if possible, i.e. 3.0.1 at the moment, and build a kernel that will work with those stable releases. I did.... cd /usr/src hg clone http://xenbits.xensource.com/linux-2.6-xen.hg cd linux-2.6-xen.hg make menuconfig Processor type and features Subarchitecture type Choose Xen-compatible Exit and save make The build process fails like this.... dom0a:/usr/src/linux-2.6-xen.hg# make CHK include/linux/version.h CHK include/linux/compile.h CHK usr/initramfs_list CC [M] drivers/char/rio/rio_linux.o In file included from drivers/char/rio/rio_linux.c:60: drivers/char/rio/typdef.h:67: error: conflicting types for `paddr_t'' include/asm/mach-xen/asm/page.h:153: error: previous declaration of `paddr_t'' drivers/char/rio/rio_linux.c: In function `fix_rio_pci'': drivers/char/rio/rio_linux.c:976: warning: passing arg 1 of `readl'' makes pointer from integer without a cast drivers/char/rio/rio_linux.c:979: warning: passing arg 2 of `writel'' makes pointer from integer without a cast make[3]: *** [drivers/char/rio/rio_linux.o] Error 1 make[2]: *** [drivers/char/rio] Error 2 make[1]: *** [drivers/char] Error 2 make: *** [drivers] Error 2 dom0a:/usr/src/linux-2.6-xen.hg# grep paddr_t drivers/char/rio/ typdef.h include/asm/mach-xen/asm/page.h|grep typedef drivers/char/rio/typdef.h:typedef unsigned int paddr_t; include/asm/mach-xen/asm/page.h:typedef unsigned long long paddr_t; include/asm/mach-xen/asm/page.h:typedef unsigned long paddr_t; dom0a:/usr/src/linux-2.6-xen.hg# I''m trying http://xenbits.xensource.com/xen-3.0-testing.hg instead now. Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Mar 03, 2006 at 11:13:17AM +0000, Mark Turner wrote:> The build process fails like this.... > > dom0a:/usr/src/linux-2.6-xen.hg# make > CHK include/linux/version.h > CHK include/linux/compile.h > CHK usr/initramfs_list > CC [M] drivers/char/rio/rio_linux.oBuilding the character device driver for the RIO MP3 player? Seems like something you''d not need in a Xen system, unless you happen to own a device. Why not disable this module/code and retry the build? Steve -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 3 Mar 2006, at 11:17, Steve Kemp wrote:> Building the character device driver for the RIO MP3 player? > > Seems like something you''d not need in a Xen system, unless you > happen to own a device. > > Why not disable this module/code and retry the build?Blush. Good point. :) Deselecting that character device allows the kernel to build Ok. Cheers, Mark. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 3 Mar 2006, at 10:24, Michael Paesold wrote:> So, I tried using the linux-2.6-hg kernel tree. I chose this one because > I''d like to use known repeatable Xen installations if possible, i.e. > 3.0.1 at the moment, and build a kernel that will work with those stable > releases.Xen 3.0.1 is based on 2.6.12. I was wondering how stable/safe this is, as many bugfixes and security fixes have gone in since then. If someone actually wanted to run Xen in anger, is there any "safe" version? Given how hard it is to run a "recent" kernel, is there any documentation of this sort of thing? Joel -- "Only a life lived for others is a life worth while." -Albert Einstein Joel Becker Principal Software Developer Oracle E-mail: joel.becker@oracle.com Phone: (650) 506-8127 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dnia środa, 15 marca 2006 00:40, Joel Becker napisał:> On 3 Mar 2006, at 10:24, Michael Paesold wrote: > > So, I tried using the linux-2.6-hg kernel tree. I chose this one because > > I''d like to use known repeatable Xen installations if possible, i.e. > > 3.0.1 at the moment, and build a kernel that will work with those stable > > releases. > > Xen 3.0.1 is based on 2.6.12. I was wondering how stable/safe > this is, as many bugfixes and security fixes have gone in since then. > If someone actually wanted to run Xen in anger, is there any "safe" > version? Given how hard it is to run a "recent" kernel, is there any > documentation of this sort of thing?Install unstable version. -- __ __ Rafał Zawadzki [jid/mail: bluszcz@jabberpl.org, skype: blvszcz] | |--.| |.--.--.-----.-----.----.-----. [www: http://bluszcz.jabberpl.org] | _ || || | |__ --|-- __| __|-- __| [ http://pyrss.jabberstudio.org/ ] |_____||__||_____|_____|_____|____|_____| つた _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users