All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Justin Ferguson <jnferguson@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: build problems
Date: Tue, 29 Dec 2009 13:13:05 +0000	[thread overview]
Message-ID: <1262092385.31374.19.camel@localhost.localdomain> (raw)
In-Reply-To: <705543260912290429w47ac934jd886cb2fc2972c3e@mail.gmail.com>

On Tue, 2009-12-29 at 12:29 +0000, Justin Ferguson wrote:
> That said I may be making things unnecessarily stupid on myself by
> using some new-fangled version of grub (that shipped with the distro).

Have you tried using the distro supplied Xen and kernel packages?

> > I think there is a target in the 2.6.18-xen tree which will perform this
> > strip and compress step for you but I don't recall what it is, it might
> > be the "vmlinuz" target although note that people often rename whatever
> > image they have built to that name so if you find one lying around it
> > isn't necessarily in any particular format.
> 
> Well a make kernels leaves you with the top level image necessary (or
> other ones in the arch directories). A full make world/make install
> installs a bzImage. The implication here of course is that the default
> image installed from a make install is the bzImage that cannot
> possibly work. (v2.04-v2.08 thing)

If you do "make world KERNELS=linux-2.6-xen" it will build a 2.6.18-xen
kernel and do the correct thing by not using bzImage. I guess you are
using the default which I think is equivalent to KERNELS=linux-2.6-pvops
and assumes bzImage support is new enough, if you just drop in some
other kernel than the one it would clone itself it may not work.

> > If you need to post again please include the exact grub config file you
> > are using and the precise error messages rather than paraphrasing.
> 
> So, the grub.cfg I have at the moment contains the entry from the last
> make world/make install, since then I've attempted to boot the top
> level images on the command line as described. To satify you're
> request, the relevant entry is as follows:
> 
> menuentry "xen" {
>         multiboot /boot/xen-3.4.gz dom0_mem=512M
>         module /boot/vmlinuz-2.6.18-xen root=/dev/sda5 ro
>         module /boot/initrd-2.6-xen.img
> }

IIRC grub2 (which is what you appear to be using) strips the image name
itself, while grub1/legacy did not. I think you need a placeholder
command line argument to work around this, perhaps a "." , e.g.
"multiboot /boot/xen-3.4.gz . dom0_mem" and "module /boot/vmlinuz-... .
root=etc..."

I've not used grub2 myself though and I'm not sure if this relates the
the magic error you refer too.

> I'm not attempting to clutter the dev list with user list type things,
> but I'm fairly certain there is a bug here.

I'm pretty certain it is a configuration error, which might translate to
a bug in the docs or something like that. You will likely find more
people who have been through this on the users list.

Ian.

  reply	other threads:[~2009-12-29 13:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29  6:24 build problems Justin Ferguson
2009-12-29  9:11 ` Keir Fraser
2009-12-29 10:07   ` Ian Campbell
2009-12-29 10:10     ` Justin Ferguson
2009-12-29 10:19       ` Ian Campbell
2009-12-29 12:29         ` Justin Ferguson
2009-12-29 13:13           ` Ian Campbell [this message]
2009-12-30  9:27             ` Justin Ferguson
  -- strict thread matches above, loose matches on Subject: below --
2024-06-03 23:34 Build problems Ananth, Rajesh
2024-06-04 20:28 ` Patrick Williams
2009-01-27 12:25 Paolo Cremonese
2009-01-27 13:18 ` Charlton, John
2009-01-27 13:35 ` Marco Cavallini
2009-01-28  9:49   ` Paolo Cremonese
2009-01-28 10:03     ` Marco Cavallini
2009-01-29 11:14       ` Paolo Cremonese
2009-01-29 12:35         ` Yuri Bushmelev
2009-01-30 16:33         ` Marco Cavallini
2009-02-02 14:57           ` Paolo Cremonese
2009-02-02 15:17             ` Ihar Hrachyshka
2009-02-02 16:46               ` Philip Balister
2009-02-02 16:13             ` Marco Cavallini
2009-02-04  9:27               ` Paolo Cremonese
2009-02-04 11:29                 ` Koen Kooi
2009-02-04 15:48                   ` Paolo Cremonese
2009-02-04 17:47                     ` Marcin Juszkiewicz
2009-01-28 10:04     ` Elena of Valhalla

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=1262092385.31374.19.camel@localhost.localdomain \
    --to=ian.campbell@citrix.com \
    --cc=Keir.Fraser@eu.citrix.com \
    --cc=jnferguson@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.