Skip to contentSkip to conversation

EFI disk IO

DISCUSSION Phillip Susi 3 participants 3 messages Jan 6, 2011

lore
Share & tools
lore
#0 lore raw

IIRC, EFI provides filesystem IO support, so I was wondering: does grub-efi use the EFI file IO calls, or does it still use its built in partition and fs parsing modules, and only rely on EFI for the low level disk block IO?

It seems like you would want to build the grub fs modules as EFI drivers to extent the entire EFI system if needed, and rely on EFI for file IO.

#1 lore raw
Quoted 6 lines · Phillip Susi

IIRC, EFI provides filesystem IO support, so I was wondering: does grub-efi use the EFI file IO calls, or does it still use its built in partition and fs parsing modules, and only rely on EFI for the low level disk block IO?

GRUB uses own drivers.

Quoted 4 lines

It seems like you would want to build the grub fs modules as EFI drivers to extent the entire EFI system if needed, and rely on EFI for file IO.

It's not a goal of GRUB to extend a firmware. It's here to abstract from it and load the kernels. It's especially true for such poor-design firmwares as EFI

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
In reply to Phillip Susi
Quoted 1 line · Phillip Susi

IIRC, EFI provides filesystem IO support,

Only for filesystems EFI supports, which is typically a much smaller range than GRUB. You're basically only guaranteed to get FAT, and as far as I can tell it's only designed for reading from EFI System Partitions or the equivalent.

Quoted 3 lines

so I was wondering: does grub-efi use the EFI file IO calls, or does it still use its built in partition and fs parsing modules, and only rely on EFI for the low level disk block IO?

GRUB uses its own partition and file handling.

Quoted 2 lines

It seems like you would want to build the grub fs modules as EFI drivers to extent the entire EFI system if needed, and rely on EFI for file IO.

It doesn't seem worth it given the extremely limited scope of the EFI File Protocol. It would be substantial work for little benefit, and GRUB's own drivers probably work better for reading from general filesystems anyway.

Signature · 1 line
Colin Watson                                       [[email protected]]