Re: Custom boot loader stub

Sad Clouds <[email protected]> Thu, 16 Oct 2025 14:32:15 +0100
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On Thu, 16 Oct 2025 14:40:24 +0200
Martin Husemann <[email protected]> wrote:

> That "flat binary" in our case is /usr/mdec/bootblk
> 
> -r-xr-xr-x  1 builds  builds    7550 Apr 25 09:58 bootblk*
> 
> which is a tokenized FCode object file (created by $TOOLDIR/bin/nbfgen
> from the source I referenced earlier, src/sys/arch/sparc/stand/bootblk/bootblk.fth
> with a bit of constants generated automatically)

Hello, this probably takes Forth source code and converts into machine
independent byte codes. This is not the same as a SPARC binary.

I think OpenBoot can execute both, Forth byte codes and SPARC binaries.
So I'm trying to understand how to execute SPARC binaries and in what
format they should be.