Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Feb 2018 16:38:31 -0800
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        Warner Losh <imp@bsdimp.com>, Devin Teske <devin@shxd.cx>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Devin Teske <dteske@freebsd.org>
Subject:   Re: Feedback on proposed loader changes
Message-ID:  <11401110.65I9PsZnfs@ralph.baldwin.cx>
In-Reply-To: <CANCZdfqM4GRteQx1HqurKOxjS0Dg0CiuLgLLmoQwfZnucTbj4w@mail.gmail.com>
References:  <CANCZdfoF4M1k=wOzueg0KQk9tRoQT-hO0SrB51wxv=-n3ESiUw@mail.gmail.com> <E8FCC310-5401-43D1-85CB-6A59E64BFE63@shxd.cx> <CANCZdfqM4GRteQx1HqurKOxjS0Dg0CiuLgLLmoQwfZnucTbj4w@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Thursday, February 01, 2018 10:59:14 AM Warner Losh wrote:
> On Thu, Feb 1, 2018 at 9:58 AM, Devin Teske <devin@shxd.cx> wrote:
> > And as the principal author of the Forth menu since 9.0:
> >
> > 3. Please give me a way to run my code (at the very least until I can
> > bring the Lua up to snuff; and if I can’t just let me run Forth
> > in-perpetuity).
> >
> > Interrupting boot1 so I can drive the system in the pre-boot Execution env
> > is very important to me.
> 
> 
> For !EFI, this is relatively easy. boot1 you can type /boot/loader_forth
> instead of the default /boot/loader if the symlink changes and you want to
> go back.
> 
> For EFI the answer is more complicated. boot1.efi is going away, so
> loader.efi will move to the ESP in \efi\freebsd\loader.efi, but it's easy
> enough to have multiple versions there (loader_lua.efi and
> loader_forth.efi) and select via EFI Shell or EFI Env variables which one
> you want should you need to fall back.
> 
> Does that answer your concerns?

I think there is an even easier route for doing scripted loader development
now: Use bhyve with bhyveload.  You get to run the loader as a plain userland
program (so you can use normal debuggers on it while it is running) while
being able to test all the menu features.  You can even make it use the
builtin host: filesystem without requiring a disk image so you can modify the
lua files directly on the host that are getting pulled in for a fast
edit-debug cycle.

-- 
John Baldwin


home | help

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