Re: Custom boot loader stub
Martin Husemann <[email protected]> Thu, 16 Oct 2025 12:45:15 +0200
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Oct 16, 2025 at 01:32:39PM +0300, Valery Ushakov wrote: > On Wed, Oct 15, 2025 at 08:24:05 +0100, Sad Clouds wrote: > > > 2. Binary format > > > > Some information I've read states that the binary OpenBoot loads must > > be in the old a.out format. This may have been the case for older > > 32-bit sparc hardware, but for sun4u/sun4v does anyone know if OpenBoot > > also supports elf32 or elf64 formats? > > From a sparc64 nfs root: > > $ file /export/root/aurinko/usr/mdec/ofwboot > /export/root/aurinko/usr/mdec/ofwboot: ELF 64-bit MSB executable, SPARC V9, relaxed memory ordering, version 1 (SYSV), statically linked, not stripped Just curious - this is loaded via the primary boot block (from src/sys/arch/sparc/stand/bootblk/bootblk.fth) from the proper partition and file system, and evaluate'd, but would it also work (if small enough and what have you) as primary boot block? My guess is: yes - but I don't really know. Martin