Skip to contentSkip to conversation

Compiling 2.6.24 Dom0 Kernel

DISCUSSION Heiko Rehder 6 participants 7 messages May 16, 2008 – May 20, 2008

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm new to the list and I like to create a Xen Dom0 kernel with 2.6.24 kernel-sources, because I need the drivers of that kernel version.

I downloaded the Xen 3.2 Soruces tar.gz and tried to compile, but that failed.

I think that only do "make world" will build an 2.6.18 Kernel but I couldn't check that yet. So I think I need to connect the Xen sources somehow to my recent kernel sources.

The information on the net are a little bit confusing.

I'm using gentoo and I'm firm compiling my own kernel, so that would not be the problem. But I can't get it how i can patch my kernel sources for build the dom0.

Can someone tell me what to do to build the desired kernel?

Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgtTZwACgkQ364kUuqz/D6nOQCgsLXHMG0axZ/r28CwjIaifuPh cEcAn0KLDliNq6C+WjsIApboxwz5GjDN
=rrSs
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 2 lines · Heiko Rehder

I'm new to the list and I like to create a Xen Dom0 kernel with 2.6.24 kernel-sources, because I need the drivers of that kernel version.

We are in the same situation - 2.6.18 doesn't support the latest hardware we are getting in.

Quoted 6 lines

I downloaded the Xen 3.2 Soruces tar.gz and tried to compile, but that failed.

I think that only do "make world" will build an 2.6.18 Kernel but I couldn't check that yet. So I think I need to connect the Xen sources somehow to my recent kernel sources.

The way I've done this is the past is to do

make mkpatches

In the xen source tree. This produces linux-2.6-xen.patch which you can then apply to the kernel tree of your choice.

However the kernel has moved on since 2.6.18 and bits of Xen have gone upstream so that patch no longer applies to current kernels.

Some distributions (eg Fedora and Debian) seem to have Xen enabled kernels for recent kernel versions, but I don't know how they got made
- I'd be interested to learn!

Signature · 1 line
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
#2 lore raw
Quoted 21 lines · Nick Craig-Wood
Quoted 2 lines · Heiko Rehder

I'm new to the list and I like to create a Xen Dom0 kernel with 2.6.24 kernel-sources, because I need the drivers of that kernel version.

We are in the same situation - 2.6.18 doesn't support the latest hardware we are getting in.

Quoted 6 lines

I downloaded the Xen 3.2 Soruces tar.gz and tried to compile, but that failed.

I think that only do "make world" will build an 2.6.18 Kernel but I couldn't check that yet. So I think I need to connect the Xen sources somehow to my recent kernel sources.

The way I've done this is the past is to do

make mkpatches

In the xen source tree. This produces linux-2.6-xen.patch which you can then apply to the kernel tree of your choice.

Quoted 6 lines

However the kernel has moved on since 2.6.18 and bits of Xen have gone upstream so that patch no longer applies to current kernels.

Some distributions (eg Fedora and Debian) seem to have Xen enabled kernels for recent kernel versions, but I don't know how they got made
- I'd be interested to learn!

Those kernels are currently domU (and 32 bit) only. Dom0 support for the paravirt kernels is being worked on by the Fedora guys for F10
http://git.et.redhat.com/?p=linux-2.6-dom0-pvops.git;a=summary
http://fedoraproject.org/wiki/Features/XenPvopsDom0

Ian.

#3 lore raw
Quoted 8 lines · Ian Campbell
Quoted 3 lines

Some distributions (eg Fedora and Debian) seem to have Xen enabled kernels for recent kernel versions, but I don't know how they got made
- I'd be interested to learn!

Those kernels are currently domU (and 32 bit) only. Dom0 support for the paravirt kernels is being worked on by the Fedora guys for F10
http://git.et.redhat.com/?p=linux-2.6-dom0-pvops.git;a=summary
http://fedoraproject.org/wiki/Features/XenPvopsDom0

Actually, Ubuntu 8.04 claims to offer a 2.6.24 kernel that can run on 64-bit, dom0 and domU.. from my 64-bit machine:

nc@nc-desktop:~$ apt-cache show linux-image-2.6.24-16-xen | grep ^Desc
Description: Linux kernel image for version 2.6.24 on This kernel can be used for Xen dom0 and domU

I keep meaning to try it out, and then figure out where their patches came from, but haven't gotten to it yet. ;)

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

| nate carlson | [email protected] | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |

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

#5 lore raw

Todd Deshane writes ("Re: [Xen-devel] Compiling 2.6.24 Dom0 Kernel"):

Quoted 3 lines

There has been quite a bit of testing of this see:
http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-repositories
http://deshantm.livejournal.com/29959.html

This is very interesting. I wanted to see what those 2.6.24 dom0 kernels were like but THERE WAS NO SOURCE CODE for the unofficial fixed kernels ! [1][2] Could you please get the source code for those kernels put up alongside them, as a matter of urgency ?

Failing to provide source code makes it impossible for anyone to work properly with this software, and violates the copyright licence.

[1] http://www.il.is.s.u-tokyo.ac.jp/%7Ehiranotaka/
[2] http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/

In the meantime I'll take a look at what's in the stock Ubuntu 8.04 2.6.24 kernels.

Ian.

#6 lore raw
Quoted 10 lines · Ian Jackson

Todd Deshane writes ("Re: [Xen-devel] Compiling 2.6.24 Dom0 Kernel"):

Quoted 3 lines

There has been quite a bit of testing of this see:
http://www.howtoforge.com/ubuntu-8.04-server-install-xen-from-ubuntu-repositories
http://deshantm.livejournal.com/29959.html

This is very interesting. I wanted to see what those 2.6.24 dom0 kernels were like but THERE WAS NO SOURCE CODE for the unofficial fixed kernels ! [1][2] Could you please get the source code for those kernels put up alongside them, as a matter of urgency ?

Quoted 9 lines

Failing to provide source code makes it impossible for anyone to work properly with this software, and violates the copyright licence.

[1] http://www.il.is.s.u-tokyo.ac.jp/%7Ehiranotaka/
[2] http://downloads.howtoforge.com/ubuntu_8.04_server_xen_from_repositories/

In the meantime I'll take a look at what's in the stock Ubuntu 8.04 2.6.24 kernels.

I forward the message to Hirano, but in the mean time, his patches and links to them are described in an email to the Ubuntu kernel team here:

https://lists.ubuntu.com/archives/kernel-team/2008-April/002347.html

Cheers,
Todd