From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Running GRUB under qemu on PowerPC
Date: Wed, 16 Jan 2008 11:40:39 +0100 [thread overview]
Message-ID: <20080116104039.GA10888@thorin> (raw)
In-Reply-To: <20080116031949.qvrrwl9868o4cwsc@webmail.spamcop.net>
On Wed, Jan 16, 2008 at 03:19:49AM -0500, Pavel Roskin wrote:
>
> The unresolved problem is that the "/memory/available" property is not
> available. I get the "grub rescue" prompt, but all commands fail with
> "out of memory".
Does this mean all memory is ours to deal with as pleased? :-)
I suggest you try poking it by trying to read all existing memory in your
address space.
> + if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom)) {
> + rc = grub_ieee1275_get_property (bootrom, "model",
> + tmp, sizeof (tmp), 0);
> +#define OHW "PPC Open Hack'Ware"
> + if (rc >= 0 && !grub_strncmp (tmp, OHW, sizeof (OHW) - 1)) {
> + grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_BROKEN_OUTPUT);
> + grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_BROKEN_COLORS);
> + }
> + }
> }
Please add a newline (and double-space indent) before '{'.
> - /* Set the right fg and bg colors. */
> - grub_ofconsole_setcolorstate (GRUB_TERM_COLOR_NORMAL);
> + if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_BROKEN_COLORS)) {
Same here.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
next prev parent reply other threads:[~2008-01-16 10:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 8:19 [PATCH] Running GRUB under qemu on PowerPC Pavel Roskin
2008-01-16 10:40 ` Robert Millan [this message]
2008-01-16 18:22 ` Pavel Roskin
2008-01-16 19:33 ` Robert Millan
2008-01-16 21:52 ` Pavel Roskin
2008-01-16 22:51 ` Robert Millan
2008-01-18 5:07 ` Pavel Roskin
2008-01-18 15:05 ` Robert Millan
2008-01-23 11:07 ` Marco Gerards
2008-01-23 11:22 ` Robert Millan
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=20080116104039.GA10888@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.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 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.