opnsense-src/stand/efi/loader
Ad Schellevis d7d6d360f4 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-12-11 11:10:50 +01:00
..
arch stand/efi: Fix for binutils when targeting arm64 2024-07-15 12:26:00 +00:00
autoload.c libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
bootinfo.c stand: add EFI support for mmio serial consoles 2024-12-11 11:10:50 +01:00
conf.c libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
copy.c stand: Automated cleanup of cdefs and other formatting 2024-04-15 20:32:05 -06:00
efi_main.c libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
framebuffer.c libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
framebuffer.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
loader_efi.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
main.c stand: add EFI support for mmio serial consoles 2024-12-11 11:10:50 +01:00
Makefile Bump lld LINKER_FREEBSD_VERSION for reproducibility fix 2024-10-08 10:37:14 +02:00
Makefile.depend loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
Makefile.depend.arm loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
Makefile.depend.arm64 loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
Makefile.depend.options loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
Makefile.depend.riscv loader: add target for dirdeps build 2024-04-15 20:32:03 -06:00
version loader: Bump all versions to 3.0 2024-08-01 08:49:54 -06:00
version.veriexec loader: Bump all versions to 3.0 2024-08-01 08:49:54 -06:00