Have trick, not sure where to document...
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Nov 6 10:23:57 UTC 2020
I had some trouble with a particular remote site, and wanted to have
the hardware watchdog protect the boot-sequence, but the BIOS had no
support for this.
The solution I found was to use the UEFI shell to arm the watchdog
before the actuall boot.
After digging around in the abysmal UEFI ecosystem some time, I ended
up with a bunch of "MM" commands in startup.nsh, before it launches
BOOTx64.efi:
MM 4e ;IO :87 -n
MM 4e ;IO :87 -n
MM 4e ;IO :20 -n
MM 4f ;IO -n
MM 4e ;IO :21 -n
MM 4f ;IO -n
[...]
MM 4e ;IO :aa -n
BOOTx64.efi
This seems like a genuinely useful trick to have in the tool-box
and now I'm trying to find out where in our documentation something
like this belongs ?
It seems too specialized and with too many sharp edges for the handbook ?
Wiki/UEFI seems rather historical...
Suggestions ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-hackers
mailing list