summaryrefslogtreecommitdiffstats
path: root/sys/boot/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-02-20 16:28:37 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-02-20 16:28:37 +0000
commit238d0be5d06d3c6bd1f038e62fdbe89fec04081c (patch)
treed97de550f341af2646a91a79d981b5617efa7567 /sys/boot/powerpc
parent4eb3d8da4ba4bc61625838d1ae482a16d4e66fcd (diff)
downloadFreeBSD-src-238d0be5d06d3c6bd1f038e62fdbe89fec04081c.zip
FreeBSD-src-238d0be5d06d3c6bd1f038e62fdbe89fec04081c.tar.gz
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
Diffstat (limited to 'sys/boot/powerpc')
-rw-r--r--sys/boot/powerpc/ofw/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/powerpc/ofw/Makefile b/sys/boot/powerpc/ofw/Makefile
index dfc80db..d42fa92 100644
--- a/sys/boot/powerpc/ofw/Makefile
+++ b/sys/boot/powerpc/ofw/Makefile
@@ -56,6 +56,11 @@ CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/powerpc
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"
OpenPOWER on IntegriCloud