Subject: Re: Problems getting Classic to net boot
To: None <pk@NetBSD.ORG>
From: Gordon W. Ross <email@example.com>
Date: 09/22/1997 10:52:02
> From: Paul Kranenburg <firstname.lastname@example.org>
> Date: Mon, 10 Mar 1997 22:42:36 +0100 (MET)
> > This looks like it's due to a change that has netbsd now no longer
> > insert the sun magic number from the second stage boot program.
> > Someone else encountered this recently while trying to netboot;
> > the program that gets tftp'd across needs to be fixed up with:
> > (echo -n 01 | tr 01 '\01\03'; tail +3c boot ) >fixedboot
> > to give it a magic number that the Sparc boot proms will understand.
> There's still a "helper" script (`/usr/mdec/binstall') that might be
> inspected (or even run, but there's no guarantee on foreign tftp hosts)
> for guide-lines.
> It currently has:
> cp /usr/mdec/boot tempfile
> printf '\01\03\01\07\060\200\0\07' | dd of=$TARGET bs=32 conv=sync
> dd if=tempfile of=$TARGET bs=32 skip=1 seek=1
> which should produce an image that is acceptable to both sun4 and sun4[cm]
> ROMs. (See installboot.c for an explanation of the numbers..)
Would it be possible to do the "magic number frob" at build time?
Does the frobbing depend on the target machine type?