From owner-freebsd-sparc64@FreeBSD.ORG Tue Jan 3 14:37:52 2006 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 EE4F216A41F for ; Tue, 3 Jan 2006 14:37:51 +0000 (GMT) (envelope-from njriley@shrug.csl.uiuc.edu) Received: from shrug.csl.uiuc.edu (shrug.csl.uiuc.edu [130.126.137.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91B5B43D55 for ; Tue, 3 Jan 2006 14:37:51 +0000 (GMT) (envelope-from njriley@shrug.csl.uiuc.edu) Received: from shrug.csl.uiuc.edu (njriley@localhost [127.0.0.1]) by shrug.csl.uiuc.edu (8.13.4/8.13.4) with ESMTP id k03Ebkl0041697; Tue, 3 Jan 2006 08:37:46 -0600 (CST) (envelope-from njriley@shrug.csl.uiuc.edu) Received: (from njriley@localhost) by shrug.csl.uiuc.edu (8.13.4/8.12.11/Submit) id k03Ebk6P041696; Tue, 3 Jan 2006 08:37:46 -0600 (CST) (envelope-from njriley) Date: Tue, 3 Jan 2006 08:37:46 -0600 From: Nicholas Riley To: Gianluca Camporeale Message-ID: <20060103143746.GA40204@uiuc.edu> References: <20060103013246.GB34161@uiuc.edu> <20060103142149.3311c15b@blackdog.umbrella.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060103142149.3311c15b@blackdog.umbrella.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-sparc64@freebsd.org Subject: Re: NFS install writability on Netra t1 105 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, 03 Jan 2006 14:37:52 -0000 On Tue, Jan 03, 2006 at 02:21:49PM +0100, Gianluca Camporeale wrote: > could you explain the procedure that you used to boot from > network and start installation from nfs? I'll tray netboot with > tftp installation on ultra2 and ultra5 machines but with no > fortune. Sure. At worst you'll get stuck like I am :-) I installed rarpd (on Linux, since I could not get the OS X version to do anything beyond printing "got a packet") and edited /etc/ethers as follows: 08:00:20:c2:8d:f0 10.0.0.200 where the first part is the MAC address of the first ethernet interface on the Sun, and the second is an IP address I picked. Newer Suns can do DHCP, but I think the OpenBoot version on mine is too old. Then I copied boot/loader from the first FreeBSD install CD to /tftpboot, made a symlink named with a hex version of the IP address, and started tftpd (on a different machine from the rarpd server). If you're using OS X 10.4 as I was, you can start tftpd with "sudo launchctl start com.apple.tftpd". The relevant part of the (/private)/tftpboot directory looks like: lrwxr-xr-x 1 root wheel 6B Dec 31 14:02 0A0000C8@ -> loader -r-xr-xr-x 1 root wheel 195K Dec 31 14:01 loader* Next I set up a NFS server. I first tried directly exporting the automounted CD image (/Volumes/FreeBSD_Install), but when I tried to mount that, the mount point was empty; not quite sure what was going on there. So instead, I copied the contents to a local disk: % nidump exports / /Users/Shared/FreeBSD_Install -ro -mapall=nobody (that'd be /etc/exports or /etc/dfs/dfstab on a more normal Unix system) and I was able to mount it successfully. Finally, I set up a DHCP server (ISC dhcpd 3) to serve the NFS root information. The network already has a DHCP server device which I couldn't add arbitrary information to - actually, I plan for this Sun to be the new DHCP server if I ever get it installed! dhcpd.conf is: ddns-update-style none; default-lease-time 600; max-lease-time 7200; log-facility local7; subnet 10.0.0.0 netmask 255.255.255.0 { } host install { hardware ethernet 08:00:20:c2:8d:f0; fixed-address 10.0.0.200; always-reply-rfc1048 on; option root-path "10.0.0.3:/Users/Shared/FreeBSD_Install"; } At that point all that remained was typing 'boot net' on the Sun. Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args: /platform/sun4u/kernel/unix 34e00 Consoles: Open Firmware console FreeBSD/sparc64 bootstrap loader, Revision 1.0 (root@s-dallas.cse.buffalo.edu, Wed Nov 2 09:45:36 UTC 2005) bootpath="/pci@1f,0/pci@1,1/network@1,1" boot: ethernet address: 08:00:20:c2:8d:f0 net_open: server addr: 10.0.0.3 net_open: server path: /Users/Shared/FreeBSD_Install There'll be a short delay, then "Loading /boot/defaults/loader.conf", then a longer delay before the FreeBSD kernel starts booting. >From looking at boot/loader.conf on the CD, it looks like I'm supposed to get a MFS root, but instead I get a (read-only) NFS root. During boot I do see this line: md0: Preloaded image 4194304 bytes at 0xc056435 and I was able to mount /dev/md0 after startup, but I can't figure out how to get it to be used as a root device. -- Nicholas Riley |