Subject: Re: Q: netbsd/sparc newbie problems
To: Curt Sampson <cjs@portal.ca>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: port-sparc
Date: 03/10/1997 22:42:36
> 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..)

-pk