opnsense-src/stand
Ad Schellevis cbee2bc03f stand: add EFI support for mmio serial consoles
When no legacy serial is found, we may be looking at a non-legacy mmio
serial device mapping, in which case the efi_devpath_name() for name
ConOutDev looks like this:

    VenHw(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,0090DCFE00000000)/Uart(115200,8,N,1)/VenVt100()

Which should tell the kernel to attach a console to 0xfedc9000
(little endian 64 bit value).  The value is stored behind the
VENDOR_DEVICE_PATH struct as a byte stream hence we need to check
if said address is appended behind the node.  Also enforce use for
uart by requiring the console speed read from the same device.

There is no scientific process for "rs:2" derivation, but evidence would
indicate that this is the correct setting for existing MMIO EFI consoles.

See also: http://bsdimp.blogspot.com/2018/07/how-to-get-memory-mapped-serial-console.html
2024-06-03 11:06:55 +02:00
..
arm64 stand: Automated cleanup of cdefs and other formatting 2024-04-15 20:32:05 -06:00
common loader: rename gfx_interp_md to gfx_interp_ref 2024-04-16 13:54:27 -06:00
defaults stand/lua: always allow overriding with local config files 2024-04-16 13:54:21 -06:00
efi stand: add EFI support for mmio serial consoles 2024-06-03 11:06:55 +02:00
fdt libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
ficl stand: Remove dangling mips references 2024-04-16 13:54:28 -06:00
ficl32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fonts Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
forth loader.4th dictthreshold too small 2024-04-16 13:54:30 -06:00
i386 libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
images Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kboot kboot: kbootfdt: fix error handling 2024-04-16 13:54:29 -06:00
kshim Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
liblua stand: Spell LUA_COMPILE_SET correctly. 2024-05-21 14:08:28 -06:00
liblua32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libofw libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
libsa libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
libsa32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua loader/lua: Remove workaround for command_error 2024-04-16 13:54:29 -06:00
man loader.efi.8: Fix a typo 2024-04-15 20:32:04 -06:00
powerpc loader/powerpc: Share ldscript 2024-04-16 13:54:27 -06:00
uboot uboot/Makefile move BINDIR 2024-04-16 13:54:29 -06:00
usb Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
userboot userboot: allow for overriding the version file location 2024-04-16 13:54:30 -06:00
defs.mk kboot: Add our own lua bindings 2024-04-16 13:54:24 -06:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -05:00
ficl.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
veriexec.mk libsecureboot do not report expected unverified files 2024-04-16 13:54:22 -06:00