Lines Matching +full:mode +full:- +full:loader
2 .\" SPDX-License-Identifier: BSD-2-Clause
4 .\" Copyright (c) 2019-2022 Netflix, Inc
37 .Nm loader.efi
38 .Nd UEFI kernel loader
69 .Dv 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
108 On x86 platforms, if you wish to redirect the loader's output to a serial port
154 .Bl -column -offset indent ".Sy Windows Name" ".Sy I/O Port Address" ".Sy Typical FreeBSD device"
170 These flags can be controlled by setting loader environment variables
179 .Bl -column -offset indent ".Sy boot flag" ".Sy loader variable" ".Sy Kernel RB_ flag"
180 .It Sy boot flag Ta Sy loader variable Ta Sy Kernel RB_ flag
195 .Bl -column -offset indent ".Sy Flags" ".Sy Kernel Flags" ".Sy Kernel Consoles" ".Sy Primary Consol…
211 .Pa /efi/freebsd/loader.env
215 .Bd -literal -offset indent
243 kernels retained the old BIOS-boot protocol of loading at exactly 2MB.
251 .Bl -tag -width disable
253 Force-disable copying staging area to
256 Force-enable copying staging area to
260 from non-2M physical base.
267 mode from their inception, so there is no
270 Riscv, 32-bit arm and arm64 have always loaded at any
275 .Bd -ragged -offset indent
285 since it avoided modifications for the loader/kernel hand-off protocol,
301 Because it executes in x86 protected mode, the amd64 version of
320 CPU tables to their pre-installation state.
329 .Bl -tag -width "/boot/loader.efi"
330 .It Pa /boot/loader.efi
331 The location of the UEFI kernel loader within the system.
336 .Bl -tag -width "efi/freebsd/loader.efi"
338 The default location for any EFI loader
345 .It Pa efi/freebsd/loader.efi
348 EFI loader.
354 .Ss Updating loader.efi on the ESP
367 .Bd -literal -offset indent
371 614440 7500862048 2 freebsd-zfs (3.5T)
379 .Bd -literal -offset indent
384 .Bd -literal -offset indent
385 # mount -t msdosfs /dev/nda0p1 /boot/efi
390 .Bd -literal -offset indent
391 # efibootmgr -v
397 +Boot0001* FreeBSD ZPOOL HD(1,GPT,b5d0f86b-265d-1e1b-18aa-0ed55e1e73bd,0x28,0x96000)/File(\eEFI\eFR…
398 nda0p1:/EFI/FREEBSD/LOADER.EFI /boot/efi//EFI/FREEBSD/LOADER.EFI
406 .Pa /EFI/FREEBSD/LOADER.EFI
410 loader, which varies by architecture.
411 .Bl -column -offset indent "Architecture" "Default Path"
419 However, care must be taken: some multiple-boot environments rely on a special
424 file, make sure it is the FreeBSD boot loader before updating it:
425 .Bd -literal -offset indent
427 FreeBSD/amd64 EFI loader, Revision 3.0
432 .Pa loader.efi
436 .Bd -literal -offset indent
437 # cmp /boot/efi/EFI/FREEBSD/LOADER.EFI /boot/efi/EFI/BOOT/BOOTX64.EFI
439 Copy the loader:
440 .Bd -literal -offset indent
441 # cp /boot/loader.efi /boot/efi/EFI/FREEBSD/LOADER.EFI
446 .Pa /FREEBSD/LOADER.EFI
447 and LOADER.EFI and BOOTX64.EFI were identical in the cmp step,
448 copy the loader to the default location:
449 .Bd -literal -offset indent
450 # cp /boot/loader.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
454 .Bd -literal -offset indent
458 .Xr loader 8 ,
461 Non-x86 serial console handling is even more confusing and less well documented.
467 U-Boot implements a subset of the UEFI standard.
468 Some versions do not support fetching loader variables, so
476 so just copy loader.efi there if there are loaders there).
477 Typically in these embedded situations, there is only one .efi file (loader.efi
478 or a copy of loader.efi).
482 updating the UEFI default loader.
489 A modern loader.efi will not fit.
491 it since it will chain boot /boot/loader.efi from a copy that