public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Rafael Machado <rafaelrodrigues.machado@gmail.com>
To: Igor Skochinsky <skochinsky@gmail.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: What Bios data is sent to the Bootloader/OS ?
Date: Wed, 16 Aug 2017 09:56:35 +0000	[thread overview]
Message-ID: <CACgnt79WCc9gseWCDfqa3f8JtMy=-q=-NtMQDsu4Bo-a1fqF5g@mail.gmail.com> (raw)
In-Reply-To: <CACq7zKmZp5--QQ3=VrKurL3Hp4g+4garL-hY-MK_hU4bB15a0A@mail.gmail.com>

Hi Igor

Nice catch.
Thanks for this idea!

Rafael Machado

On seg, 14 de ago de 2017 17:49 Igor Skochinsky <skochinsky@gmail.com>
wrote:

>
> Hi Rafael,
>
> It's certainly possible although not trivial.
> One possible approach is DUET which can emulate UEFI environment on top of
> the legacy BIOS. So you could have your legacy bootloader load DUET, which
> would in turn load and boot the UEFI-compatible OS. This page may be of
> use: http://www.rodsbooks.com/bios2uefi/index.html
>
> AFAIK GRUB already supports both BIOS and UEFI booting, so you may not
> have to do anything except set it up correctly.
>
> On Fri, Aug 11, 2017 at 3:00 PM, Rafael Machado <
> rafaelrodrigues.machado@gmail.com> wrote:
>
>> Hi everyone
>>
>> I have a question that probably some guys here can help.
>> The scenario I have, is that I need to create a OS image that must be able
>> to boot at a UEFI system (with no csm module), and at a legacy bios
>> system.
>> My fist thought is that this is not possible.
>>
>> The first thing I see that is different is the what the memory map is
>> presented to the Bootloader/OS. At legacy bios the int15/0xE820 is used,
>> and at a UEFI bios the GetMemoryMap() from the boot service is used. Is my
>> understanding correct?
>>
>> Besides that. Is there any other change that could not make it possible to
>> create a single BootloaderLoader/OS image able to boot on a UEFI BIOS(with
>> no CSM) and on a Legacy Bios ?
>>
>> I would like to create a list or arguments to talk with my client that
>> requested this, in case this is really not possible.
>>
>> The OS in this case is Linux, and the bootloader is Grub or Syslinux.
>>
>> Thanks and Regards
>> Rafael R. Machado
>>
> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel
>>
>
>
>
> --
> WBR, Igor
>


      reply	other threads:[~2017-08-16  9:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 13:00 What Bios data is sent to the Bootloader/OS ? Rafael Machado
2017-08-11 22:21 ` Andrew Fish
2017-08-12  3:22   ` Rod Smith
2017-08-13 13:07     ` Rafael Machado
2017-08-13 18:08       ` Andrew Fish
2017-08-14 17:43         ` Rafael Machado
2017-08-14 20:49 ` Igor Skochinsky
2017-08-16  9:56   ` Rafael Machado [this message]

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-list 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='CACgnt79WCc9gseWCDfqa3f8JtMy=-q=-NtMQDsu4Bo-a1fqF5g@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /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