Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2006 16:10:57 -0600
From:      Nicholas Riley <njriley@uiuc.edu>
To:        Marius Strobl <marius@alchemy.franken.de>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: NFS install writability on Netra t1 105
Message-ID:  <20060111221057.GA19242@uiuc.edu>
In-Reply-To: <20060111170403.B42977@newtrinity.zeist.de>
References:  <20060103013246.GB34161@uiuc.edu> <20060111170403.B42977@newtrinity.zeist.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 11, 2006 at 05:04:03PM +0100, Marius Strobl wrote:
> Sysinstall(8) doesn't work for installing FreeBSD on a hard disk
> when it's not used in place of init(8). AFAIK that's a MI "feature"
> of sysinstall(8). I'm not sure whether it'll work if you copy
> /stand/sysinstall to /sbin/init in the NFS-root.

Aha, that's how sysinstall is supposed to work.  I was able to get the
installer to boot by replacing init with sysinstall (guess I could
probably have set init_path in the loader too), and it got to the
point of newfs'ing, but failed trying to get the network configured.
It first complained it couldn't write to /etc/resolv.conf; when I made
the NFS root writable, it said "unable to configure the hme0
interface!".  From looking at the sysinstall source, this appears to
be because ifconfig failed, but I can't see the ifconfig output and
don't know what broke.  The emergency holographic shell doesn't work,
and I couldn't find another way to get a shell when booted this way.

So, next I tried to install directly from the NFS root as a "local"
filesystem.  This time it complained it couldn't create
/etc/fstab... on to the next option.

> What should work for doing a netbooted install however is either
> extract the El Torito boot image from the ISO image and netboot the
> former or netboot your existing setup, label the hard disk using
> sunlabel(8), write the miniroot.ufs from the FTP install bits to the
> swap-partition of the hard disk using dd(1) and then boot the
> machine from the swap-partition.

I labeled the disk as I plan to have it installed, and dd'ed
miniroot.ufs onto /dev/da0b.  I needed to use sunlabel -B /dev/da0b to
get a boot block on that partition.  It booted, and I tried a NFS
install, but it panicked:

  37168128 bytes read from base dist, chunk 27 of 41 @ 1238.9 KBytes/sec.
anic: trap: fast instruction access mmu miss

I tried again with a FTP install, and it worked perfectly.

Thanks very much for the help.  It would really be good if this stuff
were documented somewhere. :-)

-- 
Nicholas Riley <njriley@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060111221057.GA19242>