Subject: Re: Correction to previous post
To: Allen Briggs <briggs@canolog.ninthwonder.com>
From: Mike Frager <fragermk@drthunder.ml.org>
List: port-mac68k
Date: 02/27/1999 16:45:14
One of the other 68k architectures would probably have a second stage
loader that we could build from, Next68k's booter looks promising. Also,
we could used a modified MacOS booter to test the second stager booter.
That would make debugging a LOT easier.

Thanks,
Mike Frager
mike@frager.org

On Sat, 27 Feb 1999, Allen Briggs wrote:

> > There is something I want to change already. The first stage loader should
> > probably go in the boot blocks. Does anyone know a good way to access them
> > from NetBSD?
> 
> What do you mean by "access them from NetBSD"?  fd=open("/dev/rsd0c", O_RDWR)
> will open the raw disk partition that maps to the entire disk.  Block 0
> is the boot block {u_int8_t bootblock[512]; read(fd, bootblock, 512);}
> 
> BTW, large parts of the second-stage booter can probably be cloned from
> one of the other ports.  libsa, for example, includes much of the code 
> for reading the filesystem, etc.  (libsa -> lib stand-alone).
> src/sys/arch/<arch>/stand is where the loaders usually live in the
> NetBSD source tree.
> 
> Cheers,
> -allen
>