List Info

Thread: adding support for new PHY?




adding support for new PHY?
user name
2007-01-26 07:52:00
Which mailing list is best for discussions about adding support for a new PHY? I recently bought a couple of Rosewill RC-400 gigabit Ethernet interfaces, hoping they would work with NetBSD because they are based on the Realtek 8169S. They are recognized by 3.1_STABLE on alpha or i386: re0 at pci0 dev 14 function 0: RealTek 8169S Single-chip Gigabit Ethernet re0: interrupting at dec 6600 irq 35 re0: Ethernet address 00:e0:4c:77:79:80 re0: using 512 tx descriptors Unfortunately, i suspect there might be a problem with the cards' PHY, which is matched by the Generic PHY driver: ukphy0 at re0 phy 7: Generic IEEE 802.3u media interface I can't get the card to work with my Netgear GS724T gigabit switch, even when i set the media and mediaopts to "Ethernet 1000baseT full-duplex" and set the port accordingly on the switch. So i suspect the problem may be that the ukphy driver doesn't work well with the RC-400's PHY, which is a "TAIMAG IH-002." http://www.rosewill.com/RosewillPhoto/RC400-640.jpg I am not a programmer, but i'm wondering how difficult it would be to try and write a PHY driver for the IH-002. The files for the various PHY drivers are too big. -johan
Re: adding support for new PHY?
user name
2007-01-26 15:21:35
On Fri, Jan 26, 2007 at 07:52:00AM -0600, Johan A. van Zanten wrote: > re0 at pci0 dev 14 function 0: RealTek 8169S Single-chip Gigabit Ethernet > re0: interrupting at dec 6600 irq 35 > re0: Ethernet address 00:e0:4c:77:79:80 > re0: using 512 tx descriptors > > Unfortunately, i suspect there might be a problem with the cards' PHY, > which is matched by the Generic PHY driver: > > ukphy0 at re0 phy 7: Generic IEEE 802.3u media interface > > I can't get the card to work with my Netgear GS724T gigabit switch, even > when i set the media and mediaopts to "Ethernet 1000baseT full-duplex" and > set the port accordingly on the switch. > > So i suspect the problem may be that the ukphy driver doesn't work well > with the RC-400's PHY, which is a "TAIMAG IH-002." I don't know about writing a PHY driver, but that chip isn't a PHY; it's a transfomer. http://www.taimag.com/Products/LAN-IH.htm According to the re(4) manpage, the 8169S has a built-in PHY. Try adding rgephy to your kernel config. -- Name: Dave Huang | Mammal, mammal / their names are called / INet: khymazeotrope.org | they raise a paw / the bat, the cat / FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG Dahan: Hani G Y+C 31 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
Re: adding support for new PHY?
user name
2007-01-26 16:23:47
khymazeotrope.org wrote:

> I don't know about writing a PHY driver, but that chip
isn't a PHY;
> it's a transfomer. http://www.
taimag.com/Products/LAN-IH.htm

Ah, i should have realized that.

> According to the re(4) manpage, the 8169S has a
built-in PHY. Try adding
> rgephy to your kernel config.

 I built a new kernel with:

     rgephy* at mii? phy ?


 And it is recognized during the boot:

re0 at pci0 dev 14 function 0: RealTek 8169S Single-chip
Gigabit Ethernet
re0: interrupting at dec 6600 irq 35
re0: Ethernet address 00:e0:4c:77:79:80
re0: using 512 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media
interface, rev. 0

 But i can't get it to work (via 'ifconfig re0 media
100baseTX mediaopt
full-duplex' for example) with the switch at anything other
than 10baseT.

 (This is NetBSD 3.1.)

Thanks for your help.

 -johan

Re: adding support for new PHY?
user name
2007-01-28 19:54:09
Johan A. van Zanten <johangiantfoo.org> writes:
>  I built a new kernel with:
>
>      rgephy* at mii? phy ?
>  And it is recognized during the boot:
>
> re0 at pci0 dev 14 function 0: RealTek 8169S
Single-chip Gigabit Ethernet
> re0: interrupting at dec 6600 irq 35
> re0: Ethernet address 00:e0:4c:77:79:80
> re0: using 512 tx descriptors
> rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media
interface, rev. 0
>
>  But i can't get it to work (via 'ifconfig re0 media
100baseTX mediaopt
> full-duplex' for example) with the switch at anything
other than 10baseT.

Generally speaking, gig e switches demand that you
autonegotiate. Try
it again with autonegotiation instead of nailing it.

Perry

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )