aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/efi/boot1/fat-i386.tmpl.bz2.uu
Commit message (Collapse)AuthorAgeFilesLines
* Increase EFI boot file size frok 128k to 384kAllan Jude2017-09-131-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generate_fat.sh does the following: - create an 800kb zero-filled file - create an md device backed by this file - format the device fat12 - mount the filesystem - create the EFI ESP directory structure - create the EFI boot file (BOOTx64 for amd64, BOOTaa64 for aarch64, etc) - Adds a marker to the beginning of the file, and pad it to 384kb - 384kb was chosen as it is less than half of 800kb, thus allowing users to keep a backup of their older boot file in the small partition - Unmount the filesystem - Scan the image and find the offset where the marker was inserted - The process requires root, to make image generation easier, images for each architecture are pregenerated, compressed with xz, and checked into svn. The Makefile that generates boot1.efifat does the following: - Ensure the compiled boot1.efi file is no larger than the generated image - Decompress the template created by generate-fat.sh - dd the contents of boot1.efi into boot1.efifat starting at the offset where the marker is found. This allows any file less than the maximum size to be written into the fat filesystem without having to mount it, so no root privileges are required. Later work by imp and myself makes bsdinstall create a 200mb fat16 instead of using this process, but it is retained to make image generation easier. Submitted by: Eric McCorkle (original version) Reviewed by: emaste, tsoome, Eric McCorkle MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D9680 Notes: svn path=/head/; revision=323554
* boot1: regenerate FAT templates after r297871Ed Maste2016-04-121-19/+20
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=297872
* Update generated efi boot image templatesSteven Hartland2016-01-081-20/+19
| | | | | | | | | | | | | | | | r279533 increased the boot1 size from 64k to 128k but didn't regenerate the fat templates, hence the change was never activated. With recent and upcoming changes the efi boot1 binary is now > 64k. To avoid fat corruption in the created boot images regenerate the templates to activate the boot1 size increase. MFC after: 2 weeks X-MFC-With: r293268 Notes: svn path=/head/; revision=293422
* Add EFI boot1 for i386Ed Maste2015-04-071-0/+26
loader.efi still needs work, but boot1.efi now builds. Differential Revision: https://reviews.freebsd.org/D2244 Reviewed by: rpaulo Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281238