From owner-freebsd-sparc64@FreeBSD.ORG Tue Jul 26 16:28:03 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB0E116A41F for ; Tue, 26 Jul 2005 16:28:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B3A643D45 for ; Tue, 26 Jul 2005 16:28:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j6QGS0NV021078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Jul 2005 12:28:01 -0400 Received: from obsecurity.dyndns.org (fields.fields.utoronto.ca [128.100.216.11]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j6QGRx6P023323; Tue, 26 Jul 2005 12:28:00 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8C11E512BD; Tue, 26 Jul 2005 12:27:55 -0400 (EDT) Date: Tue, 26 Jul 2005 12:27:55 -0400 From: Kris Kennaway To: Miles Nordin Message-ID: <20050726162755.GA67178@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-sparc64@freebsd.org Subject: Re: network boot X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 16:28:04 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2005 at 03:18:12AM -0400, Miles Nordin wrote: > Is there a way to netboot FreeBSD/sparc64? >=20 > I'm coming to FreeBSD from NetBSD, where I netboot NetBSD/sparc64 and > just about everything except PeeCees, so I already know how to set up > rarp, dhcp, tftp, NFS. Also I was able to cat the split FreeBSD > release chunks and untar them---I don't know if you're supposed to do > that, but I did it and poked around---so I have something like a root > filesystem and am able to read man pages. >=20 > However I don't understand FreeBSD's booting process, and I don't see > where to get the second-stage loader binary to feed OpenPROM over > tftp, something like NetBSD's /usr/mdec/ofwboot.net. =20 >=20 > Also something like the diskless(8) man page to explain how the > second-stage loader likes to load, on NetBSD the kernel but on FreeBSD > I guess it has to load a great many things like the several files that > make up the rest of the bootloader and kernel modules and whatever, > once I have the tftp second-stage loader how do I direct the booting > system to these other files? Basically, you use rarp and tftp to pull a copy of /boot/loader onto the machine, then dhcp to advertise an installed root image of freebsd (basically unpack a freebsd image from the release media, or use installworld into a DESTDIR, etc). You'll need to configure it appropriately, e.g. set up /etc, diskless booting per diskless(8), etc. Here's a snippet from my dhcpd.conf host deo-ultra5 { hardware ethernet 08:00:20:fd:69:bd; fixed-address 216.136.204.95; always-reply-rfc1048 on; option host-name "deo-ultra5.freebsd.org"; option root-path "216.136.204.22:/a/nfs/sparc64/6.dir1/"; } Kris --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC5mSLWry0BWjoQKURAn33AKDNRMzcCJVQ26M9+TKvwTEwOdLesACffcXv 3vHjoI4XWvStbHXxwHiJ9tU= =JX+w -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--