RE: Only 100baseTX with bge BCM5722

From: Josep Pujadas i Jubany <josep_at_bellera.cat>
Date: Wed, 2 Apr 2008 11:55:18 +0200
On Tue, 1 Apr 2008 18:30:34 -0700, David Christensen wrote
> > >
> > > What's the dmesg output?  Is it using ukphy or brgphy?
> > >
> >
> > Partial dmesg, concerning the NIC:
> >
> > pcib4: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
> > pci14: <ACPI PCI bus> on pcib4
> > bge0: <HP NC105i PCIe Gigabit Server Adapter, ASIC rev. 0xa200> mem
> > 0xed000000-0xed00ffff irq 17 at device 0.0 on pci14
> > miibus0: <MII bus> on bge0
> > ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
> > ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
> > 1000baseT-FDX, auto
> > bge0: Ethernet address: XXXXXXXXXXXXXXXXXXXXX
> > bge0: [ITHREAD]
> >
> > bge0: link state changed to UP
> >
> > Must I try 1000baseT-FDX instead than 1000baseTX in my ifconfig line?
> 
> The 5722 PHY ID is available in -HEAD (see
> http://fxr.watson.org/fxr/source/dev/mii/miidevs#L139)
> but isn't present in RELENG_7_0 (see
> http://fxr.watson.org/fxr/source/dev/mii/miidevs?v=RELENG70#L115).
> 
> Look at the diffs between sys/dev/mii/miidevs and sys/dev/mii/brgphy
> between HEAD and RELENG_7_0 and pull in the changes for the 5722 and
> build them into your kernel.  If successful you should see brgphy0
> and not ukphy0.
> 
> Dave
> _______________________________________________

Dave,

Many thanks for your help! I'm working at 1 Gigabit! I'm very happy, it is 
my first driver modification using FreeBSD!

I had to modify also /usr/src/sys/dev/mii/brgphy.c

The conclusion is if using FreeBSD 7.0, BCM5722 must be included in the 
following source files:

/usr/src/sys/dev/bge/if_bge.c
/usr/src/sys/dev/bge/if_bgereg.h
/usr/src/sys/dev/mii/miidevs
/usr/src/sys/dev/mii/brgphy.c

Regards,

Josep Pujadas
Received on Wed Apr 02 2008 - 07:55:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC