Subject: Re: INTEL 82573E on CURRENT
To: Marcin Jessa <lists@yazzy.org>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 10/29/2005 01:51:25
Hi.

Since there was no response to my question I correctly assumed the
card is not supported yet. 
So I took a look at /usr/src/sys/dev/pci/if_wm.c and added device
definition there.
It's being recognised now, I can assign an IP to it but it's yet not
fully functioning. Output of dmesg shows:
wm0 at pci2 dev 0 function 0: Intel i82573E 1000BASE-T Ethernet, rev. 3
wm0: interrupting at irq 10
wm0: 32-bit 33MHz PCI bus
wm0: 256 word (8 address bits) SPI EEPROM
wm0: Ethernet address ff:00:13:d4:b0:3c

ifconfig wm0 shows:
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=2bf80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Tx,UDP6CSUM_Tx>
        enabled=0
        address: ff:00:13:d4:b0:3c
        media: Ethernet autoselect (100baseTX
full-duplex,flowcontrol,rxpause,txpause) status: active
        inet 192.168.14.1 netmask 0xffffff00 broadcast 192.168.14.255
        inet6 fe80::20a:cdff:fe0a:78ba%wm0 prefixlen 64 scopeid 0x1

I can make it ping itself but nothing outside on
the network (although the arp table shows corrspondning MAC-addresses
of the IPs i am trying to ping) and it in general behaves incorrectly.
Now I would need some help from you guys to learn from this experience
and to finish my work. The first question is what is MII/PHY and how to
find out if my network card requires it?
/usr/src/sys/dev/mii/inphy.c and iophy.c has some code for misc I825XX
cards. Mine is not listed there.
The nic is an onboard nic shiped with ASUS P5LD2-VM motherboards.

Any pointers, manuals, pdfs etc would be highly appreciated.

Cheers,
Marcin.


On Fri, 28 Oct 2005 14:07:37 +0200
Marcin Jessa <lists@yazzy.org> wrote:

> Hi guys.
> 
> At
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/pcidevs?rev=1.733&content-type=text/x-cvsweb-markup
> I found my network card got added it's PCI id:
> product INTEL 82573E            0x108b  i82573E Gigabit Ethernet
> 
> Running pcictl /dev/pci2 list 
> it says:
> 002:00:0: Intel product 0x108b (ethernet network, revision 0x03)
> 
> dmesg lists it as
> Intel i82573E Gigabit Ethernet (ethernet network, revision 0x03) at
> pci2 dev 0 function 0 not configured
> 
> Yet, no driver picks it up and I am pretty sure I have all of the
> drivers from GENERIC enabled.
> 
> Running grep 8257 /usr/src/sys/arch/i386/conf/* 
> gives no results.
> 
> Which one should be used for that nic and is it supported at all?
> 
> # uname -a
> NetBSD sax01.witelcom.com 3.99.10 NetBSD 3.99.10 (SAX) #0: Fri Oct 28
> 21:33:22 CEST 2005
> root@sax01.witelcom.com:/usr/obj/sys/arch/i386/compile/SAX i386
> 
> Cheers,
> Marcin.