Re: adding support for new PHY?
Johan A. van Zanten <[email protected]>
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Message-ID | <[email protected]> |
Johan A. van Zanten <[email protected]> wrote: > > > Johan A. van Zanten <[email protected]> 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. > > "Perry E. Metzger" <[email protected]> wrote: > > > > Generally speaking, gig e switches demand that you autonegotiate. Try > > it again with autonegotiation instead of nailing it. > > If i set the switch to "auto" and do: > > ifconfig re0 media autoselect > > ...then i get 10 Mbps half-duplex. > > I even rebooted the machine to see. Without me issuing any (manual) > ifconfig commands, here's what the interface looks like: > > sarasvati:/root # ifconfig re0 > re0: flags=8a02<BROADCAST,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 > capabilities=87<IP4CSUM,TCP4CSUM,UDP4CSUM,TSO4> > enabled=0 > address: 00:e0:4c:77:79:80 > media: Ethernet autoselect (10baseT) > status: active OK, my apologies for not being more thorough before posting -- the store-bought (not home-made) cable i was using with the card seems to have been the problem. I got another CAT 5E cable today, and when i plug it in, success!: sarasvati:/tew/001/rdist # ifconfig re0 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 capabilities=87<IP4CSUM,TCP4CSUM,UDP4CSUM,TSO4> enabled=0 address: 00:e0:4c:77:79:80 media: Ethernet autoselect (1000baseT full-duplex) status: active inet 192.168.100.99 netmask 0xffffff00 broadcast 192.168.100.255 inet6 fe80::2e0:4cff:fe77:7980%re0 prefixlen 64 scopeid 0x3 From /var/run/dmesg: 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 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto I think the problem i was having with the other machine (and a home-made cable) was related to using ukphy instead of rgephy. Thanks for your help, as well as the others! -johan