UEFI: Difference between revisions

m
[unchecked revision][unchecked revision]
m (Fixed links)
Line 190:
:''Main article: [[Bootable Disk]]
 
To launch a UEFI application you will need to create a disk image and present it to QEMU. UEFI firmware expects UEFI applications to be stored in a FAT12, FAT16, or FAT32 file system (called [[EFI System Partition]]) on a [[GPT]]-partitioned disk. Many firmwares only support FAT32, so that's what you'll want to use. Depending on your platform, there are several different ways to create a disk image containing your UEFI application, but they all start by creating a zeroed disk image file. The minimum FAT32 partition size is 33,548,800 bytes, plus you will need space for the primary and secondary GPT tables, plus some slack space so the partition can be aligned correctly. Throughout these examples we will be creating a 48,000,000 byte (93750 512-byte sectors, or 48 MB) disk image.
<source lang="bash">
$ dd if=/dev/zero of=/path/to/uefi.img bs=512 count=93750
Anonymous user