EC2Kernel

Revision 1 as of 2010-01-14 05:19:05

Clear message

The EC2 kernel is a topic branch of the Ubuntu kernel with Xen Dom0 patch set applied.

Working with the EC2 topic branch

Getting the EC2 topic branch

Get a copy of the Ubuntu kernel git tree.

  • git clone git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git

Checkout the ec2 branch

  • git checkout --track origin/ec2 -b ec2

The branch will have a debian.ec2 directory which is used for building the kernel.

Building the EC2 kernel

The EC2 kernel is built using the same infrastructure as the standard Ubuntu kernel except the ec2 name is used.

  • fdr binary-ec2

Uploading a test kernel

  • Install the kernel to test on a test machine or into a chroot environment, to gain access to the kernel image and initrd.
  • Bundle and upload the kernel and initrd that was installed.

Getting the Xen patchset

The ec2 topic branch is based on the xen patchset that SuSE is using. It is currently pulled directly from the SuSE kernel of the day.

  • Visit http://ftp.suse.com/pub/projects/kernel/kotd/HEAD/src/

  • Download the kernel-source-<version>.src.rpm file where <version> is a kernel version string

    • eg. kernel-source-2.6.32.3-0.0.44.81788a2.src.rpm
  • unpack the rpm
    • mkdir tmp cd tmp

      rpm2cpio <kernel-source-<version>.src.rpm | cpio -idmv --no-absolute-filenames

  • unpack patches.xen.tar.bz2
    • tar -xvjf patches.xen.tar.bz2
  • compare the unpacked xen patches to the patches in the ec2 git tree in debian.ec2/patches/
    • For released kernels any update will need to be done as new patches to the EC2 tree. For development kernels update the corresponding git commit with a rebase.
  • update the debian.ec2/patches dir to ensure it is kept up to date, so base patches are maintained.

Kernel Release Notes

Release specific information for Ubuntu EC2 kernels

Hardy

The hardy kernel is not maintained as described above. The EC2 kernel for Hardy is the Xen Dom0 kernel that is handled as a custom binary.

The Xen patchset for the Hardy kernel is obtained as described above for the topic branch EC2 kernels.

Intrepid

Jaunty

There is no EC2 compatible kernel for Jaunty.

Karmic

The Karmic kernel is the first kernel that matches the description above.

Lucid

no - notes at this time