Project

General

Profile

Actions

Bug #10570

closed

Need workaround to EFI boot on AMI BIOS

Added by John Levon about 4 years ago. Updated about 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

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

Actions #1

Updated by John Levon about 4 years 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.

Actions #2

Updated by John Levon about 4 years 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).

Actions #3

Updated by Electric Monk about 4 years 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>

Actions

Also available in: Atom PDF