From: Andreas Barth <aba@not.so.argh.org>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Loongson 2E boot failure
Date: Sat, 13 Aug 2011 12:32:31 +0200 [thread overview]
Message-ID: <20110813103231.GP2657@mails.so.argh.org> (raw)
In-Reply-To: <4E4522C1.9010508@gmail.com>
* Vladimir 'φ-coder/phcoder' Serbinenko (phcoder@gmail.com) [110812 15:15]:
> On 03.08.2011 13:21, Robert Millan wrote:
> > 2011/7/26 Colin Watson <cjwatson@ubuntu.com>:
> >>> Looks like memory allocations are wrong. Try hardcoding heap at e.g.
> >>> 81000000-82000000
> >> Sorry, I've not had to mess with this before. Can you point me to what
> >> I'd need to change to hardcode a specific heap region?
> > Try replacing grub_machine_mmap_iterate() with something like:
> >
> > grub_err_t
> > grub_machine_mmap_iterate (grub_memory_hook_t hook)
> > {
> > hook (0x81000000, 82000000, GRUB_MEMORY_AVAILABLE);
> > return GRUB_ERR_NONE;
> > }
> >
> This code is wrong for at least 4 reasons:
> 1) 0x8.... is just to access kseg0, it's not part of physical address
> 2) second argument is a size, not end
> 3) and it's lacking 0x
> 4) on yeeloong memory init doesn't use mmap.
> Correct way is to replace:
> grub_mm_init_region ((void *) modend, (grub_arch_memsize << 20)
> - (modend - GRUB_ARCH_LOWMEMVSTART));
> with:
> grub_mm_init_region (0x81000000, 16 << 20);
No real behaviour change - still fails within grub_font_init (using
the for(;;);-method).
Only change compared with
http://lists.gnu.org/archive/html/grub-devel/2011-07/msg00085.html is
that the last line on the vga console is now
80211ebc 7091181e .word 7091181e # ...p
Andi
next prev parent reply other threads:[~2011-08-13 10:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 13:12 Loongson 2E boot failure Colin Watson
2011-07-26 15:25 ` Colin Watson
2011-07-26 15:53 ` David Kuehling
2011-07-26 16:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-26 16:04 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-26 16:20 ` Colin Watson
2011-08-03 11:21 ` Robert Millan
2011-08-11 17:26 ` Andreas Barth
2011-08-12 12:55 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-08-13 10:32 ` Andreas Barth [this message]
2011-08-21 0:27 ` Loongson 2E support available (was Re: Loongson 2E boot failure) Vladimir 'φ-coder/phcoder' Serbinenko
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=20110813103231.GP2657@mails.so.argh.org \
--to=aba@not.so.argh.org \
--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.