Subject: Re: Problems getting Classic to net boot
To: William O Ferry <WOFerry+@CMU.EDU>
From: Curt Sampson <cjs@portal.ca>
List: port-sparc
Date: 09/22/1997 01:36:47
On Mon, 22 Sep 1997, William O Ferry wrote:
> The file just loaded is intended for a different CPU type.
This seems to come up on a regular basis. See the appended message.
cjs
Curt Sampson cjs@portal.ca Info at http://www.portal.ca/
Internet Portal Services, Inc. `And malt does more than Milton can
Vancouver, BC (604) 257-9400 To justify God's ways to man.'
=-=-=-=-=-=-=-=-=-=
From: Paul Kranenburg <pk@cs.few.eur.nl>
Subject: Re: Q: netbsd/sparc newbie problems
To: Curt Sampson <cjs@portal.ca>
Date: Mon, 10 Mar 1997 22:42:36 +0100 (MET)
Cc: kwellsch@math.usf.edu, port-sparc@NetBSD.ORG
> 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