From: Patrick Georgi <patrick@georgi-clan.de>
To: grub-devel@gnu.org
Subject: Booting Linux from coreboot+grub2
Date: Thu, 1 May 2008 14:30:49 +0000 (UTC) [thread overview]
Message-ID: <fvck6o$6pa$1@ger.gmane.org> (raw)
Hi,
I just want to report that booting linux from grub2/i386-linuxbios
doesn't work in my tests.
To solve this, I'd propose to start from the i386-efi loader, which
(other than the i386-pc loader which is currently used by the linuxbios
platform) doesn't use the real mode code of linux (which relies on bios
calls)
In my tests, it mostly works (initrd has issues, but linux boots) when
stripping all the EFI bits, while replacing all memory allocations with
simple grub_malloc() calls (and not copy the real mode code at all).
That's probably nothing to rely on, given that the 32bit-boot
specification of linux gives some "hints" on where things should be
stored.
Some more capable memory management functions might help reconcile the
i386-{efi,ieee1275,linuxbios} loaders eventually, such as a generic way
to request "page aligned memory in the memory range (x,y) of size z", and
a generic way to get a memory map. Currently that seems to be done as-
needed in the various loaders.
Regards,
Patrick
next reply other threads:[~2008-05-01 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-01 14:30 Patrick Georgi [this message]
2008-05-01 15:06 ` Booting Linux from coreboot+grub2 Bean
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='fvck6o$6pa$1@ger.gmane.org' \
--to=patrick@georgi-clan.de \
--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.