freebsd-dev/stand
Kyle Evans 5f8cfbe134 UEFI: Ditch console mode setting, choose optimal GOP mode later in boot
boot1 is too early to be deciding a good resolution. Console modes don't map
cleanly/predictably to actual screen resolutions, and GOP does not reflect
the actual screen resolution after a console mode change. Rip it out.

Add an efi-autoresizecons command to loader to choose an optimal screen
resolution based on the current environment. We'll explicitly execute this
later, preferably before we draw anything of value but after we load config
and pick up any tunables we may need to decide where we're going.

This method also allows us to actually pass the correct framebuffer
information on to the kernel.

UGA autoresizing is not implemented because it doesn't have the kind of mode
enumeration that GOP does. If an interested person with relevant hardware
could get in contact, we can take a look at implementing UGA autoresize.

This effectively "fixes" the breakage caused by r327058, but doesn't
actually set the resolution correctly until the interpreter calls
efi-autoresizcons. The lualoader version of this has been included for
reference; the forth equivalent will follow.

Reviewed by:	imp (with some hestitation), manu
Differential Revision:	https://reviews.freebsd.org/D14788
2018-03-21 20:36:57 +00:00
..
arm Go back to one loader.conf 2018-02-26 03:16:47 +00:00
arm64
common Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
defaults Amend missed reference to /boot/overlays, moved to /boot/dtb/overlays 2018-03-19 16:17:10 +00:00
efi UEFI: Ditch console mode setting, choose optimal GOP mode later in boot 2018-03-21 20:36:57 +00:00
fdt Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
ficl32
forth These two directories build man pages, so it's incorrect to tag them 2018-02-26 15:41:20 +00:00
geli Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
i386 Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua lualoader: Expose loader.parse and add cli_execute_unparsed 2018-03-07 18:25:27 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libsa Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
libsa32
lua UEFI: Ditch console mode setting, choose optimal GOP mode later in boot 2018-03-21 20:36:57 +00:00
man
mips Remove d_type from devdesc. It's not needed as we can fetch it from 2018-03-12 21:39:59 +00:00
ofw Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
powerpc Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
sparc64 Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
uboot ubldr: Bump heap size from 512K to 1M 2018-03-14 02:35:49 +00:00
usb Move the stand/usb test loader into its own directory. 2018-02-07 19:20:59 +00:00
userboot Fix typo that misteriously passes compilation. 2018-03-13 22:54:29 +00:00
zfs Remove d_type from devdesc. It's not needed as we can fetch it from 2018-03-12 21:39:59 +00:00
zfs32
defs.mk Don't add links or cleanfiles for NO_OBJ case, in addition to not 2018-03-18 18:50:48 +00:00
fdt.mk
ficl.mk Now that we no longer conditionally compile some files outside of ficl 2018-02-02 15:01:54 +00:00
loader.mk stand: Fix copy-paste-o, unbreaks libi386 lualoader build 2018-03-09 14:16:33 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.amd64 Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00