From owner-freebsd-sparc Fri Nov 29 1:56:43 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E88F837B401 for ; Fri, 29 Nov 2002 01:56:38 -0800 (PST) Received: from brainlink.com (mail.brainlink.com [66.228.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44CE443EC2 for ; Fri, 29 Nov 2002 01:56:38 -0800 (PST) (envelope-from anthonyv@brainlink.com) Received: from [24.189.7.159] (account ) by brainlink.com (CommuniGate Pro WebUser 3.5.3) with HTTP id 17253905 for ; Fri, 29 Nov 2002 05:06:45 -0500 From: "Anthony Volodkin" Subject: Re: netbooting an ultra2 into DP2 To: freebsd-sparc@freebsd.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.3 Date: Fri, 29 Nov 2002 05:06:45 -0500 Message-ID: In-Reply-To: <3DE6D3BC.4010300@brainlink.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, The GENERIC kernel shipped with the release did not include the following kernel options that are apparently required to do a successful NFSROOT boot: options BOOTP # Use BOOTP to obtain IP address/hostname options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info options BOOTP_NFSV3 # Use NFS v3 to NFS mount root options BOOTP_COMPAT # Workaround for broken bootp daemons. options BOOTP_WIRED_TO=hme0 # Use interface fxp0 for BOOTP I compiled a kernel with those options by cvsup'ing current and using the following commands make TARGET_ARCH=sparc64 buildworld make TARGET_ARCH=sparc64 buildkernel I then coped the contents of /usr/obj/sparc64/usr/src/sys/DIVINE/ into /boot/kernel on my nfs share and booted with the prodecure outlined below. And now I am up :) On Thu, 28 Nov 2002 21:41:00 -0500 Anthony Volodkin wrote: > Hi, > > Today I've been trying to boot an ultra2 into > freebsd-sparc64 DP2. > Unfortunately my machine seems to refuse mount an NFS > root fs. Does > anyone know what could be wrong? > > Here is my setup: > On one machine I have setup dhcpd/tftpd that serve the > ultra2 ip and OpenFirmware loader. Then the machine > loads a kernel via NFS from another server and is > supposed to mount nfsroot from the very same share it > downloaded the kernel from. > Below are some config file excerpts and the log of my > boot attempt. > > inetd.conf: > tftp dgram udp wait root > /usr/libexec/tftpd tftpd -l -s /tftpboot > > dhcpd.conf: > default-lease-time 3000; > max-lease-time 90000; > option subnet-mask 255.255.255.0; > option broadcast-address 192.168.1.255; > option routers 192.168.1.1; > option domain-name-servers 192.168.1.3, 167.206.112.138, > 167.206.7.4; > option domain-name "local.non-standard.net"; > ddns-update-style ad-hoc; > option root-path "/tftpboot"; > > host divine { > hardware ethernet 08:00:20:89:cf:f3; > option host-name "divine.local.non-standard.net"; > fixed-address 192.168.1.5; > always-reply-rfc1048 on; > filename "loader.nfs"; > next-server 192.168.1.3; > option root-path > "192.168.1.3:/storage3/sparc64-nfsroot"; > } > > Inside my NFS share i also have an /etc/fstab with the > following: > 192.168.1.3:/storage3/sparc64-nfsroot / > nfs rw 0 0 > > /etc/exports on the nfs server: > /storage3/sparc64-nfsroot -maproot=root 192.168.1.5 > > BOOT: > {0} ok boot net:dhcp,192.168.1.1,loader.nfs > Boot device: > /sbus/SUNW,hme@e,8c00000:dhcp,192.168.1.1,loader.nfs > File and args: > 1d400 Console: OpenFirmware console > FreeBSD/sparc64 loader > bootpath="/sbus@1f,0/SUNW,hme@e,8c00000:dhcp,192.168.1.1,loader.nfs" > loaddev=net0: > boot: ethernet address: 08:00:20:89:cf:f3 > net_open: server addr: 192.168.1.3 > net_open: server path: /storage3/sparc64-nfsroot > > \ > \: unknown command > /boot/kernel/kernel data=0x317708+0x48838 > syms=[0x8+0x45ab0+0x8+0x36f8f] > Hit [Enter] to boot immediately, or any other key for > command prompt. > Booting [/boot/kernel/kernel]... > nothing to autoload yet. > jumping to kernel entry at 0xc0038000. > stray vector interrupt 2033 > Copyright (c) 1992-2002 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, > 1992, 1993, 1994 > The Regents of the University of California. All > rights reserved. > FreeBSD 5.0-DP2 #2: Wed Nov 20 15:24:09 GMT 2002 > root@foo.baldwin.cx:/usr/obj/usr/src/sys/GENERIC > Preloaded elf kernel "/boot/kernel/kernel" at 0xc03e0000. > Timecounter "tick" frequency 295986656 Hz > cpu0: Sun Microsystems UltraSparc-II Processor (295.99 > MHz CPU) > Model: SUNW,Ultra-2 > cpu1: Sun Microsystems UltraSparc-II Processor (295.99 > MHz CPU) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > Initializing GEOMetry subsystem > nexus0: > sbus0: clock 25.000 MHz > DVMA map: 0xff800000 to 0xffffffff > initialializing counter-timer > Timecounter "counter-timer" frequency 1000000 Hz > sbus0: on nexus0 > sbus0: , type (unknown) (no driver attached) > sbus0: , type (unknown) (no driver attached) > sbus0: , type (unknown) (no driver attached) > sbus0: , type block (no driver attached) > eeprom0: mem 0x1200000-0x1201fff on > sbus0 > eeprom0: model mk48t59 > eeprom0: hostid 8089cff3 > sbus0: , type serial (no driver attached) > sbus0: , type serial (no driver attached) > sbus0: , type (unknown) (no driver attached) > sbus0: , type (unknown) (no driver attached) > sbus0: , type scsi (no driver attached) > hme0: mem > 0x8c07000-0x8c0701f,0x8c06000-0x8c07fff,0x8c04000-0x8c05fff,0x8c02000-0x8c03fff,0x8c00000-0x8c00107 > irq 2017 on sbus0 > hme0: Ethernet address: 08:00:20:89:cf:f3 > miibus0: on hme0 > nsphy0: on miibus0 > nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > auto > sbus0: , type (unknown) (no driver attached) > hme1: mem > 0x8c07000-0x8c0701f,0x8c06000-0x8c07fff,0x8c04000-0x8c05fff,0x8c02000-0x8c03fff,0x8c00000-0x8c00107 > irq 2012 on sbus0 > hme1: Ethernet address: 08:00:20:89:cf:f3 > miibus1: on hme1 > nsphy1: on miibus1 > nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > auto > Timecounters tick every 10.000 msec > SMP: AP CPU #1 Launched! > Mounting root from > nfs:192.168.1.3:/storage3/sparc64-nfsroot > setrootbyname failed > Root mount failed: -1 > > Manual root filesystem specification: > : Mount using filesystem > > eg. ufs:da0a > ? List valid disk boot devices > Abort manual input > > mountroot> > > > Sincerely, > Anthony Volodkin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-sparc" in the body of the > message -- Anthony Volodkin http://non-standard.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message