Skip to contentSkip to conversation

EFI and binary distributors

DISCUSSION Robert Millan 5 participants 6 messages May 1, 2007 – May 3, 2007

lore
Share & tools
lore
#0 lore raw

Hi there,

What is the recommended way for binary distributors of GRUB to support PC/BIOS and EFI at the same time? Is it possible to build a mixed binary that supports both systems somehow? (and if it isn't, are there plans or ongoing work for that?)

Also, which are the cpu platforms that may use EFI? From what I could find, it seems that:

- ia32 doesn't have it
- ia64 always has it
- amd64 only has it on Intel-Macs, and will have it on more devices in the future

Am I missing something?

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#1 lore raw

Robert Millan <[email protected]> writes:

Hi,

Quoted 4 lines

What is the recommended way for binary distributors of GRUB to support PC/BIOS and EFI at the same time? Is it possible to build a mixed binary that supports both systems somehow? (and if it isn't, are there plans or ongoing work for that?)

Currently there is a i386-efi.rmk. Perhaps this can be merged somehow with i386-pc.rmk? I assume this is what Robert means. I won't object to this, although I wonder what Okuji thinks of this.

Quoted 4 lines

Also, which are the cpu platforms that may use EFI? From what I could find, it seems that:

- ia32 doesn't have it

My MacBook does.

Quoted 3 lines

- ia64 always has it
- amd64 only has it on Intel-Macs, and will have it on more devices in the future

There are some non-apple boards that does. But usually on servers, where one normally needs big partitions.

It's safe to assume EFI can be used anywhere or even will eventually show up on every kind of PC system you can think of.

--
Marco

#2 lore raw
In reply to Robert Millan
Quoted 4 lines · Robert Millan

What is the recommended way for binary distributors of GRUB to support PC/BIOS and EFI at the same time? Is it possible to build a mixed binary that supports both systems somehow? (and if it isn't, are there plans or ongoing work for that?)

I don't think so. The size restriction is too severe for PC BIOS.

One possibility is to bundle binary images both for PC BIOS and EFI in a package, and selectively use one of them by grub-install. But this has a serious issue, on a EFI platform which supports Legacy Boot, because the user can use both.

Personally, I think it is much cleaner to use just EFI on EFI platforms instead of Legacy Boot. But this depends on a preference... For now, I have no good idea.

Quoted 4 lines

Also, which are the cpu platforms that may use EFI? From what I could find, it seems that:

- ia32 doesn't have it

You forgot about Intel Mac. :)
In fact, my Mac Mini is with Intel Core Solo, which definitely does not support 64-bit.

Quoted 3 lines

- ia64 always has it
- amd64 only has it on Intel-Macs, and will have it on more devices in the future

Do Intel Mac have AMD processors, or do you mean EM64T? If you just mean IA-32 architecture with 64-bit extensions (both Intel's and AMD's), the canonical name in GNU is "x86_64".

Quoted 1 line

Am I missing something?

No idea. In theory, nothing prevents porting EFI to other architectures. Wikipedia mentions XScale:

http://en.wikipedia.org/wiki/Extensible_Firmware_Interface

Okuji

#3 lore raw
Quoted 8 lines · Yoshinori K. Okuji
Quoted 4 lines · Robert Millan

What is the recommended way for binary distributors of GRUB to support PC/BIOS and EFI at the same time? Is it possible to build a mixed binary that supports both systems somehow? (and if it isn't, are there plans or ongoing work for that?)

I don't think so. The size restriction is too severe for PC BIOS.

Quoted 8 lines

One possibility is to bundle binary images both for PC BIOS and EFI in a package, and selectively use one of them by grub-install. But this has a serious issue, on a EFI platform which supports Legacy Boot, because the user can use both.

Personally, I think it is much cleaner to use just EFI on EFI platforms instead of Legacy Boot. But this depends on a preference... For now, I have no good idea.

Uhm sounds overcomplicated. I think we can sort it out with two separate binary packages for now (e.g. grub-pc and grub-efi).

Quoted 8 lines
Quoted 4 lines

Also, which are the cpu platforms that may use EFI? From what I could find, it seems that:

- ia32 doesn't have it

You forgot about Intel Mac. :)
In fact, my Mac Mini is with Intel Core Solo, which definitely does not support 64-bit.

What about powerpc? Has EFI ever been used there?

Quoted 7 lines
Quoted 3 lines

- ia64 always has it
- amd64 only has it on Intel-Macs, and will have it on more devices in the future

Do Intel Mac have AMD processors, or do you mean EM64T? If you just mean IA-32 architecture with 64-bit extensions (both Intel's and AMD's), the canonical name in GNU is "x86_64".

Yeah, I meant x86_64. I suppose I'm too much "debian tainted" ;-)

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#4 lore raw
Quoted 6 lines · Robert Millan
Quoted 6 lines
Quoted 2 lines

- amd64 only has it on Intel-Macs, and will have it on more devices in the future

Do Intel Mac have AMD processors, or do you mean EM64T? If you just mean IA-32 architecture with 64-bit extensions (both Intel's and AMD's), the canonical name in GNU is "x86_64".

Calling it IA-32 or i*86 is equally wrong when it comes down to x86 based CPUs ;-) Remember, AMD invented the AMD64 architecture, and Intel started cloning that architecture.

BTW: You are not supposed to call them EM64T without writing out the full name Extended Memory 64 Technology (tm) first somewhere in the same document. ;-)

Signature · 3 lines
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [email protected]  • http://www.coresystems.de/