opnsense-src/stand/efi
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
..
boot1 loader: Move ldscripts to match more standard practices 2024-04-16 13:54:27 -06:00
fdt stand: Automated cleanup of cdefs and other formatting 2024-04-15 20:32:05 -06:00
gptboot stand: Install gptboot.efi(8) 2024-04-16 13:54:30 -06:00
include stand/efi: Changes to efichar to allow it to be used in the kernel 2024-04-16 13:54:30 -06:00
libefi stand/efi: Changes to efichar to allow it to be used in the kernel 2024-04-16 13:54:30 -06:00
loader stand: add EFI support for mmio serial consoles 2024-12-11 11:10:50 +01:00
loader_4th Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader_lua Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader_simp 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.inc stand: bump arbitrary build date to 2024-01-01 2024-09-05 11:02:36 -04:00