From owner-freebsd-hackers@freebsd.org Fri Nov 6 15:13:51 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A82F440F2B for ; Fri, 6 Nov 2020 15:13:51 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CSP6k3Rg9z3sjd for ; Fri, 6 Nov 2020 15:13:50 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: by mailman.nyi.freebsd.org (Postfix) id 760C0440F29; Fri, 6 Nov 2020 15:13:50 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 75D28440B71 for ; Fri, 6 Nov 2020 15:13:50 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id 4CSP6k276hz3t5m for ; Fri, 6 Nov 2020 15:13:49 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [194.32.164.27] ([194.32.164.27]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 0A6FDhJE046923; Fri, 6 Nov 2020 15:13:43 GMT (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Have trick, not sure where to document... From: Bob Bishop In-Reply-To: <57254.1604658230@critter.freebsd.dk> Date: Fri, 6 Nov 2020 15:13:43 +0000 Cc: hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0BAC0602-9CA6-4C5B-8AA7-46986714C8CF@gid.co.uk> References: <57254.1604658230@critter.freebsd.dk> To: Poul-Henning Kamp X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4CSP6k276hz3t5m X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2020 15:13:51 -0000 Hi, > On 6 Nov 2020, at 10:23, Poul-Henning Kamp wrote: >=20 > 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. >=20 > The solution I found was to use the UEFI shell to arm the watchdog > before the actuall boot. >=20 > 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: >=20 > 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 >=20 > 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 ? >=20 > It seems too specialized and with too many sharp edges for the = handbook ? >=20 > Wiki/UEFI seems rather historical... >=20 > Suggestions ? boot(8). If that is deemed inappropriate, then boot(8) should definitely = have a reference to the actual place. > --=20 > 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. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org" >=20 -- Bob Bishop rb@gid.co.uk