From owner-freebsd-sparc64@FreeBSD.ORG Wed Oct 12 20:24:49 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD98A106564A for ; Wed, 12 Oct 2011 20:24:49 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id A20F58FC08 for ; Wed, 12 Oct 2011 20:24:49 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LSY00A00WLCGP00@smtpauth2.wiscmail.wisc.edu> for freebsd-sparc64@freebsd.org; Wed, 12 Oct 2011 14:24:48 -0500 (CDT) Received: from wanderer.tachypleus.net ([unknown] [128.104.255.9]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LSY00MG3WLBCM20@smtpauth2.wiscmail.wisc.edu>; Wed, 12 Oct 2011 14:24:47 -0500 (CDT) Date: Wed, 12 Oct 2011 14:24:47 -0500 From: Nathan Whitehorn In-reply-to: <4E95E340.3060308@boland.org> To: Michiel Boland Message-id: <4E95E97F.9040304@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.255.9 X-Spam-PmxInfo: Server=avs-13, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.10.12.191514, SenderIP=128.104.255.9 References: <4E95E340.3060308@boland.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20110928 Thunderbird/7.0 Cc: freebsd-sparc64@freebsd.org Subject: Re: netbooting 9.0-beta3 with serial console 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: Wed, 12 Oct 2011 20:24:49 -0000 On 10/12/11 13:58, Michiel Boland wrote: > Hi. How do I install 9.0-BETA3 on sparc64 via netbooting and a serial > console? > > This used to work on previous releases simply by exporting the mounted > cdrom over nfs, and having > vfs.root.mountfrom="ufs:/dev/md0" > in /tftpboot/boot/loader.conf.local > > But there is no longer an mfsroot on the dvd or bootonly images, so the > boot fails with > > Trying to mount root from ufs:/dev/md0 []... > mountroot: waiting for device /dev/md0 ... > Mounting from ufs:/dev/md0 failed with error 19. There's no longer a special root, so just netbooting in the regular way should work. > the system will then continue booting: > > Trying to mount root from nfs: []... > NFS ROOT: 192.168.61.11:/cdrom > gem0: link state changed to DOWN > gem0: link state changed to UP > /etc/rc.initdiskless: cannot create /dev/null: Read-only file system > ps: /dev/null: No such file or directory > /etc/rc: cannot create /dev/null: Read-only file system > /etc/rc: cannot create /dev/null: Read-only file system It looks like rc.diskless has failed you here, and somewhat broken devfs, so there's likely a bug there which should be looked into. If you just want to test the installer, you can make a netboot environment by doing: mkdir /path/to/nfs/export cd /path/to/nfs/export tar xvzf /cdrom/usr/freebsd-dist/*.txz cp /cdrom/etc/rc.local etc and then booting from there, which will be read-write. I'll try to find out what goes wrong when FreeBSD netboots from read-only media. -Nathan