svn commit: r204129 - head/sys/boot/powerpc/ofw

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Feb 20 16:28:38 UTC 2010


Author: nwhitehorn
Date: Sat Feb 20 16:28:37 2010
New Revision: 204129
URL: http://svn.freebsd.org/changeset/base/204129

Log:
  Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
  PowerPC Book-S hardware, which had been broken for a very long time.
  
  Submitted by:	Andreas Tobler
  MFC after:	1 week

Modified:
  head/sys/boot/powerpc/ofw/Makefile

Modified: head/sys/boot/powerpc/ofw/Makefile
==============================================================================
--- head/sys/boot/powerpc/ofw/Makefile	Sat Feb 20 16:23:29 2010	(r204128)
+++ head/sys/boot/powerpc/ofw/Makefile	Sat Feb 20 16:28:37 2010	(r204129)
@@ -56,6 +56,11 @@ CFLAGS+=	-DBOOT_FORTH -I${.CURDIR}/../..
 LIBFICL=	${.OBJDIR}/../../ficl/libficl.a
 .endif
 
+# Avoid the open-close-dance for every file access as some firmwares perform
+# an auto-negotiation on every open of the network interface and thus causes
+# netbooting to take horribly long.
+CFLAGS+=	-DNETIF_OPEN_CLOSE_ONCE
+
 # Always add MI sources
 .PATH:		${.CURDIR}/../../common
 .include	"${.CURDIR}/../../common/Makefile.inc"


More information about the svn-src-head mailing list