*BSD News Article 48413


Return to BSD News archive

Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!news.sprintlink.net!newsfeed.internetmci.com!news.uoregon.edu!vixen.cso.uiuc.edu!news.ecn.bgu.edu!news.moneng.mei.com!hookup!lll-winken.llnl.gov!ames!cnn.nas.nasa.gov!lestat.nas.nasa.gov!thorpej
From: thorpej@lestat.nas.nasa.gov (Jason R. Thorpe)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Sun-3 NetBSD boot question
Date: 8 Aug 1995 07:12:54 GMT
Organization: Numerical Aerodynamic Simulation Project - NASA Ames
Lines: 50
Message-ID: <4072pm$66b@cnn.nas.nasa.gov>
References: <406c45$6tu@news1.deltanet.com>
NNTP-Posting-Host: lestat.nas.nasa.gov

In article <406c45$6tu@news1.deltanet.com>,
 <brapp@PROBLEM_WITH_INEWS_DOMAIN_FILE> wrote:

>I have the boot program from SunOS 4.1.1, and have been using it to boot over
>the network for quite some time. Is this the boot program I need to use for the
>NetBSD bootstrap from the SCSI disk? When the rom monitor tries to load the
>bootstrap the disk light flashes for about a tenth of a second, then it hangs.

Suns have a 2-stage boot process.  The first stage is a really small program
that lives after the superblock.  It has to be small because it can't
run past the end of the sector.  This small program loads a larger boot
program wich resides in the filesystem proper.  Since the first stage program
doesn't have room for filesystem lookup code, the location of the second
stage program is hard-coded by installboot(8) into the first-stage.

The prom is expecting to find this first stage program and the first stage
program is expecting to find the second stage.  If either of them are mising,
it's not going to work.

>I was trying to use the disklabel -B command, but the disklabel binary that was
>included in the Sun3 NetBSD package doesn't seem to support it, even though
>the man page lists -B (bootstrap specification) as a valid option.

Yah ... `disklabel -B' works on _some_ ports.  However, due to the nature
of the sun3 boot process, it doesn't work on the sun3.  However, in
/usr/mdec you should find:
	installboot
	bootxx
	ufsboot
	netboot

If you do the following in single-user (so you have access to the
character device):

[ assuming you've netbooted into single-user, fsck'd the new root fs and
  mounted it on /mnt, and mounted your /usr partition in single-user ]

	# cd /usr/mdec
	# cp ufsboot /mnt
	# ./installboot -v /mnt/ufsboot bootxx /dev/rsd0a

...you should be set.  Of course, adjust the procedure as necessary.

Hope this helps...

-- 
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939