From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 256CB21E1452F for ; Wed, 16 Aug 2017 02:54:21 -0700 (PDT) Received: by mail-qt0-x233.google.com with SMTP id p3so17862322qtg.2 for ; Wed, 16 Aug 2017 02:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gkEPgWqp4CN5h/CGBqV+z1kwvdW50O+N89Ne9ttvJQE=; b=tDkH4FMSZer5oSKUzyXRYvONMzUuIGUH7Se0yLJiqk2aF6hSVn5vX4CzEiFO9eUauX 0b43MCYZCOTDZNFqPmwB1VOrV0Nra+3I3l3RtRxeFAbKttYQUfHrLIyr3MQtEfzqsG15 4TXxxAt5BAUEGxnKrgWfmJNcBozC7kuFynPkAjsrF+SF2S3jcSYgiyaSFaWbEZ/7Yjrn umNUs9+MdxVHAY0ZV1OBSOT0y8/WZaiLxYj+8GZJoH47rD8PCugBPwfVwCf8lY49VdqM zclT2Up/gip/L6BHshSXnqc/fPB0se7qQAPD8RtGRvXqB/EsMncXK8MyRMaIY2b2Mx9w tasw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gkEPgWqp4CN5h/CGBqV+z1kwvdW50O+N89Ne9ttvJQE=; b=J5zQfeRbKw6uYEnYup2Y6XbqWeuZu0VjslvVno44jkjujaegIOuX/T5RmYWeyUDaaR hBcZJAdmZZn0mUcmfw3bGgKipRWaR4QF9cx97v1noLjmSmR9YYC4QCgMSIlZkN8hGWy+ wRs6dQR3gyykLh2JDRMfTqTTXzvWdnHHAT5pq4C2NSfSCHZn+VbZcwFWI1Bu8tP7smAe 9opknv/eiMsp+9BUw/b91DqhNG8E0l9G5FmEAw+HIai24h+CaX7037JHJQ4jfgLvyJxT Rp6wZCTNVIfc6ga1sa+j2UpDOaaWnzCA43j2dMNc+hP0u1lB5lSzwz1/NXdAX5zn4krJ onnA== X-Gm-Message-State: AHYfb5gtUIN00CZjR0rKvyqnZkNydwpUqEMyPEIGE0DsoBEezF2G5LXR T93zVJ2wMp40i7+3/r+mGEpBm5bkLA== X-Received: by 10.237.53.83 with SMTP id b19mr1357320qte.312.1502877406100; Wed, 16 Aug 2017 02:56:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rafael Machado Date: Wed, 16 Aug 2017 09:56:35 +0000 Message-ID: To: Igor Skochinsky Cc: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: What Bios data is sent to the Bootloader/OS ? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 09:54:21 -0000 Content-Type: text/plain; charset="UTF-8" Hi Igor Nice catch. Thanks for this idea! Rafael Machado On seg, 14 de ago de 2017 17:49 Igor Skochinsky 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 >