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

Marius Strobl marius at
Mon Nov 7 11:42:59 UTC 2011

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.


More information about the svn-src-stable-8 mailing list