Subject: port-mac68k/3312: fix ae driver of NetBSD/mac68k
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kei_sun@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 03/10/1997 23:51:48
>Number:         3312
>Category:       port-mac68k
>Synopsis:       Kernel fail to get MAC address with Farallon's Ethernet card
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 10 07:05:01 1997
>Last-Modified:
>Originator:     SUNAGAWA Keiki
>Organization:
	
>Release:        NetBSD-current of 07 March 1997
>Environment:
System: NetBSD/mac68k 1.2C
		Hardware: Farallon's Ethernet Card
			  (especially Farallon EtherMac II-TN)

>Description:
	Missing to call ae_nb_get_enaddr() in ae_nubus_attach(),
	kernel fails to get MAC address on boot time with
	Farallon's Ethernet Card.
>How-To-Repeat:
	To build kernel with option AE_OLD_GET_ENADDR undefined.
>Fix:
	Apply following patch.

--- if_ae_nubus.c.orig	Fri Feb 28 21:21:14 1997
+++ if_ae_nubus.c	Mon Mar 10 22:28:09 1997
@@ -224,6 +224,11 @@
 		for (i = 0; i < ETHER_ADDR_LEN; ++i)
 			sc->sc_arpcom.ac_enaddr[i] =
 			    bus_space_read_1(bst, bsh, (FE_ROM_OFFSET + i));
+#else
+		if (ae_nb_get_enaddr(na, sc->sc_arpcom.ac_enaddr)) {
+			printf(": can't find MAC address\n");
+			break;
+		}
 #endif
 
 		success = 1;
>Audit-Trail:
>Unformatted: