Project

General

Profile

Bug #10570

Need workaround to EFI boot on AMI BIOS

Added by John Levon 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2019-03-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Some BIOS types are very pick about the GPT header size.

History

#1

Updated by John Levon 6 months ago

SmartOS bug OS-7585.

On one Quanta S210-X22RQ system, running an AMI BIOS identifying itself as:

Version 2.14.1219. Copyright (C) 2011 American Megatrends, Inc.
BIOS Date: 10/31/2013 08:14:56 Ver: S2RQ3A27
Compliancy UEFI 2.1; PI 0.9

failed to boot our loader-based USB image in EFI mode. It believes the EFI GPT to be invalid.

This turned out to be due to us setting the HeaderSize to sizeof (efi_gpt_t) (512) instead of the defined structure size from the spec (92).
Our value is entirely valid, but let's pander to this system by using 92 instead.

#2

Updated by John Levon 6 months ago

Also, while it didn't matter for this case, let's fix up the beginning CHS to be what the spec mandates (0,2,0).

#3

Updated by Electric Monk 5 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit fd7977362aae2eaa5dcb89671159f4fd82f22ca1

commit  fd7977362aae2eaa5dcb89671159f4fd82f22ca1
Author: John Levon <john.levon@joyent.com>
Date:   2019-04-23T16:49:06.000Z

    10570 Need workaround to EFI boot on AMI BIOS
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF