[Pkg-xen-devel] Bug#703586: Bug#703586: Bug#703586: Xen fails to boot Linux dom0 under UEFI

Ian Campbell ijc at hellion.org.uk
Wed Sep 10 19:22:54 UTC 2014


On Sun, 2014-09-07 at 13:42 +0200, John Keates wrote:
> 1. Rebuild the debian package with a small change
> 
> Do your usual apt-sourcing and build-depping, but add the pep target to debian/rules:
> 
> (I put it right underneath include debian/rules.defs)
> 
> DEB_CONFIGURE_EXTRA_FLAGS  += --enable-targets=x86_64-pep

This isn't actually necessary, the Xen build will automatically produce
xen.efi if the tools are new enough and contain the necessary support.
--enable-targets=x86_64-pep is actually something which needs to be
passed to the *binutils* configure, and this is done on Debian.

> then do your usual binary run to produce the files needed.
> You’ll find xen.efi in ./debian/build/build-hypervisor_amd64_amd64/xen/xen.efi

It turns out that the Debian build is already building xen.efi today, it
just isn't putting it in the package!

I think it would be sensible to pickup this binary for inclusion, either
in the existing xen-hypervisor package or into a new EFI package.

> 2. Allow UEFI to find your xen.efi
> 
> UEFI uses your ESP to launch the efi binaries, so that’s where it needs to go.
> Simply put (not symlink) xen.efi in /boot/efi/EFI/debian/

This should be taken care of by packaging it in the right place, I
think, or possibly by the postinst moving it there.

> 3. Configure dom0 booting

This and the rest would need a bit more infrastructure putting into
place to do automagically, which I don't see happening for Jessie given
the looming freeze, but at least by packaging the xen.efi binary we can
simplify things for people who want to set this stuff up themselves.

Hopefully for Jessie+1 grub will be able to launch xen.efi itself, and
most of this will go away.

Ian.



More information about the Pkg-xen-devel mailing list