How to support an Ethernet PHY without ID registers?

Sepherosa Ziehau sepherosa at gmail.com
Wed Oct 8 04:15:23 UTC 2008


On Wed, Oct 8, 2008 at 3:09 AM, Bruce M Simpson <bms at incunabulum.net> wrote:
> Hi,
>
> I have been trying to get FreeBSD onto the Freecom FSG3 Storage Gateway.
> It is an xScale based ARM system.
>
> Whilst the npe(4) driver appears to attach, the PHY does not. It is a
> Realtel RTL8305SB switch chip in dual miibus mode. Unfortunately the
> RTL8305SB does not have ID registers. The RTL8305SC does, but it's a totally

Are you sure you could read from BMSR?  Return invalid value from BMSR
is the usual cause of miibus attaching/probing failure.  For ID1/ID2
reading, you could just fake some values in npe(4)'s miibus_readreg
implementation.

Best Regards,
sephe

-- 
Live Free or Die


More information about the freebsd-net mailing list