From: Alexander Graf Date: Tue, 20 Jun 2017 14:08:08 +0200 Subject: [U-Boot] [PATCH v2] efi: Export mbr partition for EFI. In-Reply-To: References: <20170620063553.8637-1-manu@bidouilliste.com> Message-ID: <9422f523-8bf2-abf8-e4ef-700d11418ca0@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20.06.17 14:02, Ard Biesheuvel wrote: > On 20 June 2017 at 13:55, Alexander Graf wrote: >> >> >> On 20.06.17 08:35, Emmanuel Vadot wrote: >>> >>> While MBR partition isn't supposed to work in a EFI environment some >> >> >> It actually is supposed to work :). I've used it on edk2 based systems a few >> times already. >> > > Correct. Even though UEFI reinvented everything including > partitioning, the spec mandates support for MBR, GPT and El Torito for > platforms that have the ability to boot from SSD/HDD drives and/or > optical drives. > >>> board rely partially or fully on MBR (BeagleBone, RPI and probably >>> others). >>> This export the MBR partition as logical partition which is useful to efi >>> application that cannot read raw disks. >>> >>> Signed-off-by: Emmanuel Vadot >> >> >> I think we should do whatever edk2 does here to stay compatible. Ard, can >> you please enlighten me what that would be? Does edk2 expose logical >> partitions as raw disks? >> > > The UEFI partition driver consumes block and disk I/O protocols of raw > devices and produces the same protocols for each individual partition > that it recognizes. > > I hope this answers your question, otherwise could you elaborate? This basically answers my question, yes. So we really should just provide block devices for *every* partition type we support, not just MBR as is done in this patch. Emmanuel, could you please extend the patch to cover all partition label types? Thanks, Alex