Subject: Re: ofwboot diskless boot problem?
To: None <port-sparc64@netbsd.org>
From: Chris Ross <cross+netbsd@distal.com>
List: port-sparc64
Date: 07/09/2004 15:08:20
   Looking at ../arch/sparc/stand/ofwboot/ofdev.c, it looks
like devopen is being repeatedly called with it's second
arg (name) set to "netbsd".  Where does devopen() get
called from in this case?  It must be outside of the
ofwboot code, yes?

                       - Chris

 >> NetBSD/sparc64 OpenFirmware Boot, Revision 1.8
 >> (cross@snailshell.mcilink.com, Thu Jul  8 01:15:26 EDT 2004)
devopen: you want netbsd
filename: OF_finddevice(netbsd) sez ffffffff
filename: found netbsd
devopen: trying /pci@1f,0/pci@1,1/network@1,1
devopen: found /pci@1f,0/pci@1,1/network@1,1
devopen: /pci@1f,0/pci@1,1/network@1,1 is called network
devopen: /pci@1f,0/pci@1,1/network@1,1 is a network device
devopen: opening /pci@1f,0/pci@1,1/network@1,1
devopen: /pci@1f,0/pci@1,1/network@1,1 is now open
net_open: client addr: 153.39.108.166
net_open: subnet mask: 255.255.255.224
net_open: net gateway: 153.39.108.161
net_open: server addr: 153.39.108.170
net_open: server path: /data/clients/sparc64
Using BOOTP protocol: ip address: 153.39.108.166, netmask: 
255.255.255.224, gate
way: 153.39.108.161
root addr=153.39.108.170 path=/data/clients/sparc64
open /pci@1f,0/pci@1,1/network@1,1/netbsd: No such file or directory
: trying netbsd.gz ...
devopen: you want netbsd
filename: OF_finddevice(netbsd) sez ffffffff
filename: found netbsd
devopen: trying /pci@1f,0/pci@1,1/network@1,1
devopen: found /pci@1f,0/pci@1,1/network@1,1
devopen: /pci@1f,0/pci@1,1/network@1,1 is called network
devopen: /pci@1f,0/pci@1,1/network@1,1 is a network device
devopen: opening /pci@1f,0/pci@1,1/network@1,1
devopen: /pci@1f,0/pci@1,1/network@1,1 is now open
net_open: client addr: 153.39.108.166
net_open: subnet mask: 255.255.255.224
net_open: net gateway: 153.39.108.161
net_open: server addr: 153.39.108.170
net_open: server path: /data/clients/sparc64
Using BOOTP protocol: ip address: 153.39.108.166, netmask: 
255.255.255.224, gate
way: 153.39.108.161
root addr=153.39.108.170 path=/data/clients/sparc64
open /pci@1f,0/pci@1,1/network@1,1/netbsd: No such file or directory
: trying netbsd.old ...
devopen: you want netbsd
filename: OF_finddevice(netbsd) sez ffffffff
filename: found netbsd


Chris Ross wrote:
> 
>   The ofwboot (from -current as of yesterday) seems not to
> work as I expect it too.  I'm booting a sparc64, and
> running rarpd, dhcpd and NFS from another sparc64 on
> a local network.
> 
>   When I name the kernel "netbsd", it works fine.
> However, when I gzip the kernel, it doesn't ever
> load it.  The boot messages suggest that it's trying
> the documented list of names to try, but the error
> message is always the same, saying that it failed
> to load ...../netbsd.  Setting filename in dhcpd.conf
> appears to also have no effect at all.