Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2011 12:42:51 +0100
From:      Marius Strobl <marius@alchemy.franken.de>
To:        Jason Hellenthal <jhell@DataIX.net>
Cc:        svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   Re: svn commit: r227278 - in stable/8/sys: arm/conf conf dev/bm dev/dc dev/mii dev/nge dev/sis dev/smc dev/ste dev/stge dev/tl dev/wb dev/xl modules/mii pci
Message-ID:  <20111107114251.GA93221@alchemy.franken.de>
In-Reply-To: <20111107020759.GA45996@DataIX.net>
References:  <201111062109.pA6L9OLV042060@svn.freebsd.org> <20111107020759.GA45996@DataIX.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 06, 2011 at 09:07:59PM -0500, Jason Hellenthal wrote:
> 
> 
> The following commmit broke building without device miibus at least on i386.
> 
> if_dc.o(.text+0x24b4): In function `dc_miibus_writereg':
> /usr/src/sys/dev/dc/if_dc.c:806: undefined reference to `mii_bitbang_writereg'
> if_dc.o(.text+0x26cc): In function `dc_miibus_readreg':
> /usr/src/sys/dev/dc/if_dc.c:743: undefined reference to `mii_bitbang_readreg'
> 
> If you try to use the modular device mii and the single *phy you will get the above error when it comes time to link the kernel.

Yes, you now need to additionally put "options mii_bitbang" into your
kernel configuration file if you don't use "options miibus" but
"options mii" and individual PHY drivers in combination with one of
the MAC drivers that where converted to use the common MII bitbang'ing
code, see sys/conf/NOTES. Given that this is a rather exotic approach
intended for embedded use it didn't occur to me to note it beyond NOTES.
However, thinking about it I decided for stable/7 and stable/8 to
automatically drag in the common MII bitbang'ing code if one of the MAC
drivers depending on it is compiled into the kernel in order to not
break POLA.

Marius




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111107114251.GA93221>