Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2020 10:23:50 +0000
From:      Poul-Henning Kamp <phk@phk.freebsd.dk>
To:        hackers@freebsd.org
Subject:   Have trick, not sure where to document...
Message-ID:  <57254.1604658230@critter.freebsd.dk>

next in thread | raw e-mail | index | archive | help
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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57254.1604658230>