Subject: port-sparc/1438: bootpath fake wrong for network boot
To: None <gnats-bugs@gnats.netbsd.org>
From: Rolf Grossmann <grossman@kate.informatik.tu-muenchen.de>
List: netbsd-bugs
Date: 09/05/1995 18:49:32
>Number:         1438
>Category:       port-sparc
>Synopsis:       bootpath fake wrong for network boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep  5 13:05:01 1995
>Last-Modified:
>Originator:     
>Organization:
	
>Release:        -current as of now
>Environment:
	
System: NetBSD kate 1.0A NetBSD 1.0A (TIGKI) #30: Tue Jul 11 01:22:30 MET DST 1995 grossman@kiss:/export/netbsd/src/sys/arch/sparc/compile/TIGKI sparc


>Description:
	When booting NetBSD via network (still using SunOS bootblocks :( )
	on a SS1 with V0 proms,	the kernel will panic with
		panic: boot device not known
	This is, because the generated fake bootpath does not give the
	correct address for the le device.

>How-To-Repeat:
	Setup network boot and watch it panic.

>Fix:
	Here's a patch:

Index: autoconf.c
===================================================================
RCS file: /export/netbsd/mastersrc/netbsd/sys/arch/sparc/sparc/autoconf.c,v
retrieving revision 1.1.1.7
diff -c -r1.1.1.7 autoconf.c
*** autoconf.c	1995/09/04 16:29:26	1.1.1.7
--- autoconf.c	1995/09/05 16:36:50
***************
*** 478,488 ****
  
  	/*
  	 * ethenet: le
! 	 * fake looks like: /sbus@0,0/le@0,0
  	 */
  	if (cp[0] == 'l' && cp[1] == 'e') {
  		BP_APPEND(bp,"sbus",0,0);
! 		BP_APPEND(bp,"le",v0val[0],0);
  		return;
  	}
  
--- 488,498 ----
  
  	/*
  	 * ethenet: le
! 	 * fake looks like: /sbus@0,0/le@0,c00000
  	 */
  	if (cp[0] == 'l' && cp[1] == 'e') {
  		BP_APPEND(bp,"sbus",0,0);
! 		BP_APPEND(bp,"le",-1,v0val[0]);
  		return;
  	}
  

>Audit-Trail:
>Unformatted: