xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Jitendra Kanitkar <jkanitkar@apm.com>,
	Sanjeev Pandita <spandita@apm.com>,
	Pranavkumar Sawargaonkar <psawargaonkar@apm.com>,
	xen-devel@lists.xen.org
Subject: Re: Pygrub on ARM64
Date: Thu, 25 Feb 2016 10:47:40 +0000	[thread overview]
Message-ID: <1456397260.6225.193.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1602251030210.17248@kaball.uk.xensource.com>

On Thu, 2016-02-25 at 10:35 +0000, Stefano Stabellini wrote:
> On Thu, 25 Feb 2016, Ian Campbell wrote:
> > On Thu, 2016-02-25 at 13:20 +0530, Sanjeev Pandita wrote:
> > >  
> > > Terminal 3: (manually running the pygrub command)
> > > [root@dhcp-194 xen]# export LD_LIBRARY_PATH=/usr/lib
> > > [root@dhcp-194 xen]# mkdir -p /var/run/xen/bootloader.2.d
> > > [root@dhcp-194 xen]# touch /var/run/xen/bootloader.2.out
> > > [root@dhcp-194 xen]# /usr/lib/xen/bin/pygrub --args="root=/dev/xvda4
> > > rw
> > > console=hvc0 earlyprintk=xen" --output=/var/run/xen/bootloader.2.out
> > > --
> > > output-format=simple0 --output-directory=/var/run/xen/bootloader.2.d
> > > /mnt/xen/CentOS-7-aarch64.img
> > > 
> > > (nothing comes on console after this) 
> > 
> > I don't remember ever seeing pygrub fail silently in this way.
> > 
> > I think at this point I would be trying a few different things, firstly
> > using strace(1) on the pygrub invocation to see if I could see where it
> > was
> > blocked. I think you can drop all of the arguments except for the
> > image,
> > e.g.
> > 
> >     pygrub /mnt/xen/CentOS-7-aarch64.img
> > 
> > leading to
> > 
> >     strace -o pygrub.strace pygrub /mnt/xen/CentOS-7-aarch64.img
> > 
> > (maybe add -fff if it looks to be using threads)
> > 
> > Secondly manually mounting CentOS-7-aarch64.img (e.g. "mount -o loop
> > etc",
> > or maybe kpartx -a first if the image has a partition table) to check
> > it
> > really is some sort of sensible/readable image.
> 
> CentOS's first partition is fat to boot on efi systems, but it only
> contains the grub efi binary. All the other partitions are xfs. Does
> pygrub support it?

I don't know, but pygrub is normally pretty vocal in these situations if it
doesn't ("cannot find partition" style message), here it is apparently just
silently hanging, which is pretty odd.

Ian.

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

  reply	other threads:[~2016-02-25 10:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-24 10:22 Pygrub on ARM64 Sanjeev Pandita
2016-02-24 10:27 ` Ian Campbell
2016-02-24 11:05   ` Sanjeev Pandita
2016-02-24 12:08     ` Ian Campbell
2016-02-25  7:50       ` Sanjeev Pandita
2016-02-25  9:39         ` Ian Campbell
2016-02-25 10:35           ` Stefano Stabellini
2016-02-25 10:47             ` Ian Campbell [this message]
2016-02-25 10:53               ` Ian Campbell
2016-02-25 11:12                 ` Ian Campbell
2016-02-25 11:22                   ` Ian Campbell
2016-02-25 11:04           ` Sanjeev Pandita

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=1456397260.6225.193.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=jkanitkar@apm.com \
    --cc=psawargaonkar@apm.com \
    --cc=spandita@apm.com \
    --cc=stefano.stabellini@eu.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).