xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: blallo@riseup.net
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Daniel Kiper <daniel.kiper@oracle.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [Xen-users] xl info displays less ram than the total available
Date: Wed, 26 Oct 2016 09:26:39 -0400	[thread overview]
Message-ID: <20161026132638.GA7146@localhost.localdomain> (raw)
In-Reply-To: <20161026083018.q2nktdwh4giukelr@riseup.net>

On Wed, Oct 26, 2016 at 10:30:18AM +0200, blallo@riseup.net wrote:
> Blallo:
> > 
> > 
> > 
> > -------- Original Message --------
> > From: Daniel Kiper <daniel.kiper@oracle.com>
> > Sent: 6 October 2016 15:16:18 CEST
> > To: blallo@riseup.net
> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, George Dunlap <george.dunlap@citrix.com>, Jan Beulich <JBeulich@suse.com>, Andrew Cooper <andrew.cooper3@citrix.com>, "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
> > Subject: Re: [Xen-devel] [Xen-users] xl info displays less ram than the total available
> > 
> > On Thu, Oct 06, 2016 at 02:58:57PM +0200, blallo@riseup.net wrote:
> > 
> > [...]
> > 
> > > 	multiboot /xen.gz
> > > 	echo	'Loading Xen with linux-grsec...'
> > > 	module	/vmlinuz-linux root=/dev/mapper/leonovo-rootvol rw  cryptdevice=UUID=02bbde36-5fda-478f-a54f-b6f495e24961:leonovo root=/dev/mapper/leonovo-rootvol
> > > 	echo	'Loading initial ramdisk to launch dom0 (linux-grsec)...'
> > > 	module  /initramfs-linux.img
> > 
> > Forget about multiboot on EFI platforms. It does not work.
> > At least with Xen. Please load xen.efi binary directly
> > (as Jan suggested) or if you wish GRUB2 then you must use
> > relevant patches for Xen and GRUB2. Check this threads for
> > more details:
> >  - http://lists.gnu.org/archive/html/grub-devel/2016-03/msg00299.html
> >  - https://lists.xen.org/archives/html/xen-devel/2016-09/msg03330.html
> > 
> > Daniel
> > 
> > 
> 
> Ok, I've been stuck at this point. I am not able, just following the two
> strategies suggested in the wiki [*] to obtain a working efi image of xen. If I
> understood well, the cross toolchain is a compiler/linker that outputs PE efi
> images, so I tried in three different ways:
> 
> 1. As suggested here [1] I recompiled binutils with x86_64-pep support
> and did a make && configure. The build process exited with errors [2].
> Nevertheless I got an efi image in dist/install/usr/lib64/efi/
> 
> % ls dist/install/usr/lib64/efi/
> 
> xen-4.8.0-rc.efi
> xen-4.8.efi -> xen-4.8.0-rc.efi
> xen-4.efi -> xen-4.8.0-rc.efi
> xen.efi -> xen-4.8.0-rc.efi
> 
> Note: I set EFI_VENDOR=archlinux and mkdir'd
> dist/install/boot/efi/efi/archlinux
> 
> I will explain later as I tried to boot these images.
> 
> 2. I installed mingw from the Arch Linux repos. Then configure && I set
> 
> CROSSCOMPILE=x86_64-w64-mingw32- make world -j8

Never used that.
> 
> at compile time. But again no xen.efi image in dist/install/ and a non
> bootable dist/install/usr/lib64/efi/. After the build I get [3].
> 
> 3. At last I manually implemented [4] the Fedora patch [5] (because I'm trying to
> compile 4.8.0-rc3 and that patch is for another version, don't know which).

Yeah that one needs a bit of tweaking.
> Again, same result as before: no efi image in dist/install and those in
> dist/install/usr/lib64/efi/ are not bootable.

You can also look at this:

https://bugzilla.redhat.com/show_bug.cgi?id=1376870

and recompile binutils with the patch.
> 
> I switched to systemd-boot to chainload the xen.efi image. I
> successfully boot my Arch Linux system, therefore i assume that this
> bootloader works. I have (hopefully) properly configured [6] a xen.cfg file
> in the same path as the xen.efi images obtained before.
> I can't boot yet.
> Trying to bypass the bootloader I created an efi boot entry with
> efibootmgr and, via the laptop firmware interface, I tried to boot
> directly in xen.
> Again no results.
> 
> Is there anybody patient enough to explain to me how to proceed?
> 
> Greetings :)
> 
> --
> Leonardo
> 
> [*] https://wiki.xen.org/wiki/Xen_EFI#Compiling_Xen_as_EFI
> [1] https://bbs.archlinux.org/viewtopic.php?id=174226
> [2] http://pastebin.com/bEVvX8w6
> [3] http://pastebin.com/cfZLbeC3
> [4] http://pastebin.com/vDVqn9it
> [5] http://pkgs.fedoraproject.org/cgit/rpms/xen.git/tree/xen.fedora.efi.build.patch
> [6] http://pastebin.com/FPg6DcPa

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-10-26 13:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161005101600.odbvl632lmjigvsi@riseup.net>
     [not found] ` <CAFLBxZYWiGWTf2zhVOF3yfWQvtNpndF9avcOVgEGPDg7PZ1wog@mail.gmail.com>
     [not found]   ` <20161005125229.ixcvhldn4ra62prn@riseup.net>
2016-10-05 13:02     ` [Xen-users] xl info displays less ram than the total available George Dunlap
2016-10-05 13:06       ` Andrew Cooper
2016-10-05 13:32         ` blallo
2016-10-05 14:01           ` Jan Beulich
2016-10-06 10:55             ` George Dunlap
2016-10-06 10:59               ` Blallo
2016-10-06 12:06                 ` Konrad Rzeszutek Wilk
2016-10-06 12:39                   ` blallo
2016-10-06 13:00                     ` Jan Beulich
2016-10-06 12:56                   ` blallo
     [not found]                   ` <20161006125650.ww7lq7gpn7ovvqrr@supernova>
2016-10-06 12:58                     ` blallo
2016-10-06 13:16                       ` Daniel Kiper
     [not found]                         ` <53339FBD-ABBC-4047-A787-74F97867015A@riseup.net>
2016-10-26  8:30                           ` blallo
2016-10-26 13:26                             ` Konrad Rzeszutek Wilk [this message]
2016-10-27  8:24                             ` Daniel Kiper
     [not found]                     ` <20161006125857.7kavmrfe27yudsud@supernova>
2016-10-06 13:03                       ` blallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161026132638.GA7146@localhost.localdomain \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=blallo@riseup.net \
    --cc=daniel.kiper@oracle.com \
    --cc=george.dunlap@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).