Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 05:06:45 -0500
From:      "Anthony Volodkin" <anthonyv@brainlink.com>
To:        freebsd-sparc@freebsd.org
Subject:   Re: netbooting an ultra2 into DP2
Message-ID:  <web-17253905@brainlink.com>
In-Reply-To: <3DE6D3BC.4010300@brainlink.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <anthonyv@brainlink.com> 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: <OpenFirmware Nexus device>
> sbus0: clock 25.000 MHz
> DVMA map: 0xff800000 to 0xffffffff
> initialializing counter-timer
> Timecounter "counter-timer"  frequency 1000000 Hz
> sbus0: <U2S UPA-SBus bridge> on nexus0
> sbus0: <SUNW,CS4231>, type (unknown) (no driver attached)
> sbus0: <auxio>, type (unknown) (no driver attached)
> sbus0: <flashprom>, type (unknown) (no driver attached)
> sbus0: <SUNW,fdtwo>, type block (no driver attached)
> eeprom0: <SBus EEPROM/clock> mem 0x1200000-0x1201fff on
>  sbus0
> eeprom0: model mk48t59
> eeprom0: hostid 8089cff3
> sbus0: <zs>, type serial (no driver attached)
> sbus0: <zs>, type serial (no driver attached)
> sbus0: <sc>, type (unknown) (no driver attached)
> sbus0: <SUNW,pll>, type (unknown) (no driver attached)
> sbus0: <SUNW,fas>, type scsi (no driver attached)
> hme0: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme0
> nsphy0: <DP83840 10/100 media interface> on miibus0
> nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
>  auto
> sbus0: <SUNW,bpp>, type (unknown) (no driver attached)
> hme1: <Sun HME 10/100 Ethernet> 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: <MII bus> on hme1
> nsphy1: <DP83840 10/100 media interface> 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:
>  <fstype>:<device>  Mount <device> using filesystem
>  <fstype>
>                       eg. ufs:da0a
>  ?                  List valid disk boot devices
>  <empty line>       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




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