Subject: port-sparc64/25763: ofwboot.net doesn't look for alternate kernel names
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <michael@nosflow.com>
List: netbsd-bugs
Date: 05/31/2004 16:21:47
>Number:         25763
>Category:       port-sparc64
>Synopsis:       ofwboot.net doesn't look for alternate kernel names
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 31 16:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Wolfson
>Release:        2.0_BETA
>Organization:
>Environment:
etBSD  2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Thu May 20 18:40:11 UTC 2004  aut
obuild@tgm.netbsd.org:/autobuild/netbsd-2-0/sparc64/OBJ/autobuild/netbsd-2-0/src
/sys/arch/sparc64/compile/GENERIC sparc64

>Description:
When netbooting, ofwboot.net ignores all attempts to boot an alternate kernel name.

That is, 'boot net netbsd.gz' fails.  Also 'boot net' fails, even though it should be trying to find netbsd.gz also.

Additionally, ofwboot.net ignores contents of DHCP "filename" attribute.
    host ultra.nosflow.com {
     hardware ethernet 08:00:20:CC:CC:CC;
     fixed-address 10.0.1.30;
     filename "netbsd.gz";
     next-server 10.0.1.2;
     option root-path "/mnt/hd/export/ultra/root";
    }


ok boot net
Boot device: /pci@1f,4000/network@1,1  File and args:
13000 >> NetBSD/sparc64 OpenFirmware Boot, Revision 1.7
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 >> (autobuild@tgm.netbsd.org, Thu May 20 16:29:20 UTC 2004)
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying netbsd.gz ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying netbsd.old ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying netbsd.old.gz ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying onetbsd ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying onetbsd.gz ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 : trying vmunix ...
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 open /pci@1f,4000/network@1,1/netbsd: No such file or directory
 
 Boot: netbsd.gz
 net_open: client addr: 10.0.1.30
 net_open: subnet mask: 255.255.255.0
 net_open: net gateway: 10.0.1.1
 net_open: server addr: 10.0.1.2
 net_open: server path: /mnt/hd/export/ultra/root
 net_open: file name: netbsd.gz
 Using BOOTP protocol: ip address: 10.0.1.30, netmask: 255.255.255.0, gateway: 10
 .0.1.1
 root addr=10.0.1.2 path=/mnt/hd/export/ultra/root
 loadfile: reading header
 elf64_exec: Booting /pci@1f,4000/network@1,1/netbsd.gz
 4968344@0x1000000+165008@0x1800000+4029296@0x1828490
 symbols @ 0xfef6a400 149+380952+226892 start=0x1000000
 chain: calling OF_chain(800000, cbc8, 1000000, fff8fa80, 18)
 console is /pci@1f,4000/ebus@1/se@14,400000:a
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 2.0_BETA (GENERIC) #0: Thu May 20 18:40:11 UTC 2004
         autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/sparc64/OBJ/autobuild/net
 bsd-2-0/src/sys/arch/sparc64/compile/GENERIC
 [...]