Subject: Re: netboot problem
To: Radoslaw Kujawa <radoslaw.kujawa@altkom.pl>
From: Jaime Fournier <ober@linbsd.org>
List: port-sparc64
Date: 12/09/2006 14:55:43
I use bootp/dhcp with the following dhcpd.conf
host sparc64 { # dragonfly
hardware ethernet 00:03:ba:03:de:0c; # Adjust to your
MAC address
fixed-address 192.168.0.184; # Adjust
option root-path "/stuff/sparc64a";
server-name="192.168.0.183";
next-server 192.168.0.183;
}
The sparc64 will look to tftp for a file named something
like 19998FBD.SUN4M dependant on your ip.
Not sure this helps if you can not change settings on the
dhcpd/bootp/nfs/tftp server.
-Jaime Fournier
On Wed, 6 Dec 2006, Radoslaw Kujawa wrote:
> Date: Wed, 6 Dec 2006 22:50:03 +0100 (CET)
> From: Radoslaw Kujawa <radoslaw.kujawa@altkom.pl>
> To: port-sparc64@NetBSD.org
> Subject: netboot problem
>
> Hello list.
> Today I've tried netbooting sparc64 machines on a network, where I had
> no administravie access to DHCP/BOOTP server.
> I've set up my own RPC bootparams server, but I couldn't find a way to
> force machines to use that server.
>
> ok boot net
> Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args:
>>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.9
>>> (me@spam.goes.here.com, Wed Dec 6 21:14:18 CET 2006)
> net_open: client addr: 10.73.210.186
> net_open: subnet mask: 255.255.128.0
> net_open: net gateway: 10.73.255.254
> net_open: server addr: 0.0.0.0
> Using BOOTP protocol: ip address: 10.73.210.186, netmask: 255.255.128.0,
> gateway: 10.73.255.254
> root addr=0.0.0.0 path=
> open netbsd: Unknown error: code 60
> Failed to load 'netbsd'.
> (...)
>
> Clients were stuck trying to netboot many different kernels from
> 0.0.0.0. Finally, after trying "vmunix" it failed with:
>
> Boot:
>
> Typing anything started netbooting with BOOTP again.
>
> So I've written a simple patch. It adds new parameter -B to ofwboot.
> Using this paramater swaps BOOTP with bootparams (so bootparams are
> tried first, BOOTP second). This solved my problem.
>
> http://strim.aster.net.pl/stuff/bootparamsfirst.diff
>
> It is against -current.
>
> Maybe this patch is worth including in NetBSD. Sorry for not updating
> manual page, but I feel that my english is lacking.
>
> BTW. I noticed that ofwboot options -C and -D are also undocumented.
> What does -C do?
>
> Greets
> Radek Kujawa
>
>