Subject: Re: Intel 82562EX and Intel 82540EI
To: Havard Eidnes <he@netbsd.org>
From: Selvan Naidoo <selvany@cat.co.za>
List: netbsd-users
Date: 10/21/2003 11:10:28
This is a multi-part message in MIME format.

------=_NextPart_000_019B_01C397C3.EF7FC190
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi Havard,

I have made the relevant changes that you outlined below.
After making these changes, I noticed that the dmesg file does configure the
device but
the mac address is not resolved.
I can ping x.x.x.1 or x.x.x.255 or the IP address of the unit but I can not
ping any of the other units on the network or the gateway.
I presume that this is because of the unit not having a unique IP address.
I have included the dmesg file from the unit.

Your assistance is greatly appreciated,

Selvan
----- Original Message ----- 
From: "Havard Eidnes" <he@netbsd.org>
To: <selvany@cat.co.za>
Cc: <netbsd-users@NetBSD.org>
Sent: Monday, October 20, 2003 10:42 AM
Subject: Re: Intel 82562EX and Intel 82540EI


> I have checked the kernel config file and the wm driver is
> enabled.  You mentioned that there just may be a simple change
> that needs to be made.  Can you please elaborate on this.

It may seem that I didn't read carefully enough the first time around.
Your motherboard can apparently be equipped with two different LAN
controllers, one being 82562EX and one being 82540EI.  The former is a
10/100 LAN controller, the latter a 10/100/1000 controller.

What I managed to glean from

  http://www.yourvote.com/pci/pciread.asp?venid=0x8086

is that you probably have the 10/100 part (PCI product code 0x1051);
by physical inspection of the motherboard you should be able to
confirm that the LAN controller chip has 82562 printed on it.

The 82562 family of chips is driven by the fxp driver, and that driver
already supports other variants of the 82562 chip, but not this one
which appears to just have a different packaging compared to the
others in the same family.  The 82540 would be the wm driver.

So, here is how you could go about adding support for for the 82562
variant you have:

1) Modify sys/dev/pci/pcidevs to contain an entry for the chip, e.g.

   product INTEL PRO_100_VM_7 0x1051 PRO/100 VM Network Controller

   (I'm not sure the name is completely right, but that doesn't matter
   here.)

2) run "make -f Makefile.pcidevs" in sys/dev/pci/.  This will
   regenerate pcidevs.h and pcidevs_data.h.

3) Modify sys/dev/pci/if_fxp_pci.c so that fxp_pci_products
   contains an entry for the controller.  I.e. add

   { PCI_PRODUCT_INTEL_PRO_100_VM_7,
     "Intel PRO/100 VM Network Controller" },

   to the existing array.

4) Add PCI_PRODUCT_INTEL_PRO_100_VM_7 to the case statement in
   fxp_pci_attach, just below PCI_PRODUCT_INTEL_PRO_100_VM_6.

Compile a new kernel and boot with it, and pray that the above works.
If it does, I'd like to see the "dmesg" output, please, including any
phy found.

The above is of course provided without any guarantee of any sort; if
it fries your controller, "tough!" ;-)

Regards,

- Håvard

------=_NextPart_000_019B_01C397C3.EF7FC190
Content-Type: text/plain;
	name="dmesg.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="dmesg.txt"

hub0: 2 ports with 2 removable, self powered=0A=
uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller #1 =
(rev. 0x02)=0A=
uhci1: interrupting at irq 5=0A=
usb1 at uhci1: USB revision 1.0=0A=
uhub1 at usb1=0A=
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub1: 2 ports with 2 removable, self powered=0A=
uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller #2 =
(rev. 0x02)=0A=
uhci2: interrupting at irq 10=0A=
usb2 at uhci2: USB revision 1.0=0A=
uhub2 at usb2=0A=
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub2: 2 ports with 2 removable, self powered=0A=
uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller #3 =
(rev. 0x02)=0A=
uhci3: interrupting at irq 11=0A=
usb3 at uhci3: USB revision 1.0=0A=
uhub3 at usb3=0A=
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1=0A=
uhub3: 2 ports with 2 removable, self powered=0A=
ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller =
(rev. 0x02)=0A=
ehci0: interrupting at irq 9=0A=
ehci0: EHCI version 1.0=0A=
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3=0A=
ehci0: reset timeout=0A=
ehci0: init failed, error=3D13=0A=
ppb0 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. =
0xc2)=0A=
pci1 at ppb0 bus 1=0A=
pci1: i/o space, memory space enabled=0A=
rtk0 at pci1 dev 0 function 0: RealTek 8139 10/100BaseTX=0A=
rtk0: interrupting at irq 10=0A=
rtk0: Ethernet address 00:50:fc:6e:7c:a6=0A=
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface=0A=
ukphy0: OUI 0x000000, model 0x0000, rev. 0=0A=
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0A=
=0A=
fg0 at pci1 dev 2 function 0: irq 3 fg0(334000) DMASync Clear Error on =
card 0 - voeCrit 0 status 0=0A=
=0A=
fg0: S/N `VOEMOD 000106  ' Date `02/01/30' PLD Issue `5' PLD Date =
`02/01/16' New Card!!=0A=
NewInitDEBI=0A=
=0A=
=0A=
ahc1 at pci1 dev 4 function 0=0A=
ahc1: interrupting at irq 10=0A=
ahc1: aic7880 Wide Channel A, SCSI Id=3D7, 16/255 SCBs=0A=
scsibus0 at ahc1: 16 targets, 8 luns per target=0A=
=0A=
pciio0 at pci1 dev 5 function 0: irq 3 pciio0=0A=
 at pciio0: port 0 not configured=0A=
 at pciio0: port 1 not configured=0A=
 at pciio0: port 2 not configured=0A=
 at pciio0: port 3 not configured=0A=
=0A=
=0A=
fxp0 at pci1 dev 8 function 0: Intel PRO/100 VM Network Controller, rev 2=0A=
fxp0: interrupting at irq 9=0A=
fxp0: Ethernet address ff:ff:ff:ff:ff:ff=0A=
ukphy1 at fxp0 phy 1: Generic IEEE 802.3u media interface=0A=
ukphy1: i82562ET 10/100 media interface (OUI 0x005500, model 0x0033), =
rev. 0=0A=
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0A=
pcib0 at pci0 dev 31 function 0=0A=
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)=0A=
pciide0 at pci0 dev 31 function 1: Intel 82801EB IDE Controller (ICH5) =
(rev. 0x02)=0A=
pciide0: bus-master DMA support present=0A=
pciide0: primary channel wired to compatibility mode=0A=
wd0 at pciide0 channel 0 drive 0: <WDC WD100EB-00BHF0>=0A=
wd0: drive supports 16-sector PIO transfers, LBA addressing=0A=
wd0: 9541 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19541088 =
sectors=0A=
wd0: 32-bit data port=0A=
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)=0A=
pciide0: primary channel interrupting at irq 14=0A=
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using =
DMA data transfers)=0A=
pciide0: secondary channel wired to compatibility mode=0A=
pciide0: disabling secondary channel (no drives)=0A=
pciide1 at pci0 dev 31 function 2: Intel 82801EB Serial ATA Controller =
(rev. 0x02)=0A=
pciide1: bus-master DMA support present, but unused (no driver support)=0A=
pciide1: primary channel configured to native-PCI mode=0A=
pciide1: using irq 10 for native-PCI interrupt=0A=
pciide1: secondary channel configured to native-PCI mode=0A=
Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at =
pci0 dev 31 function 3 not configured=0A=
Intel 82801EB/ER AC'97 Audio Controller (audio multimedia, revision =
0x02) at pci0 dev 31 function 5 not configured=0A=
isa0 at pcib0=0A=
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo=0A=
pckbc0 at isa0 port 0x60-0x64=0A=
pckbd0 at pckbc0 (kbd slot)=0A=
pckbc0: using irq 1 for kbd slot=0A=
wskbd0 at pckbd0: console keyboard, using wsdisplay0=0A=
pms0 at pckbc0 (aux slot)=0A=
pckbc0: using irq 12 for aux slot=0A=
wsmouse0 at pms0 mux 0=0A=
=0A=
Watchdog match called (IOBase 00000304)=0A=
watchdog0 at isa0 port 0x304-0x30b iomem  irq  drq =0A=
Watchdog attach=0A=
Board version : 7=0A=
Port value    : 772=0A=
Max processes : 40=0A=
lpt0 at isa0 port 0x378-0x37b irq 7=0A=
pcppi0 at isa0 port 0x61=0A=
midi0 at pcppi0: PC speaker=0A=
spkr0 at pcppi0=0A=
sysbeep0 at pcppi0=0A=
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support=0A=
npx0 at isa0 port 0xf0-0xff: using exception 16=0A=
isapnp0: no ISA Plug 'n Play devices found=0A=
biomask ef65 netmask ef65 ttymask ffef=0A=
scsibus0: waiting 2 seconds for devices to settle...=0A=
Kernelized RAIDframe activated=0A=
boot device: wd0=0A=
root on wd0a dumps on wd0b=0A=
root file system type: ffs=0A=
=0A=
Started watchdog threadwsdisplay0: screen 1 added (80x25, vt100 =
emulation)=0A=
wsdisplay0: screen 2 added (80x25, vt100 emulation)=0A=
wsdisplay0: screen 3 added (80x25, vt100 emulation)=0A=
wsdisplay0: screen 4 added (80x25, vt100 emulation)=0A=
wsdisplay0: screen 5 added (80x25, vt100 emulation)=0A=
wsdisplay0: screen 6 added (80x25, vt100 emulation)=0A=
wsdisplay0: screen 7 added (80x25, vt100 emulation)=0A=
=0A=
Enable Watchdog for : 4 : PID =3D 3815694804=0A=
Enable Watchdog for : 24 : PID =3D 3818811404=0A=
Enable Watchdog for : 5 : PID =3D 3818811864=0A=
Enable Watchdog for : 2 : PID =3D 3818812324=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!=0A=
I2C READ ERROR!NewInitFRU ver 20a0 PAL=0A=
FRU set!=0A=
Init 7111 # 0=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 1=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 2=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 3=0A=
=0A=
fg0: SAA7111A EVIP ver 2NewInitADV6=0A=
NewADVHardReset=0A=
	 ADV6 CODEC ver 1.2=0A=
Enable Watchdog for : 7 : PID =3D 3818812784=0A=
Enable Watchdog for : 13 : PID =3D 3815695724Clear Error on card 0 - =
voeCrit 10 status 23=0A=
Clear Busy voeCrit 10 card 0=0A=
Clear Error voeCrit 10 card 0 status c3=0A=
 171 successful transactions=0A=
count 1=0A=
=0A=
WriteByte dwstatus 3 - 1 card 0 voeCrit 10=0A=
ReadByteSlow ERROR 76, 20=0A=
Enable Watchdog for : 0 : PID =3D 3818813704=0A=
Can't find app!!!=0A=
Init Video: Size=3D2; PhysMem=3D006e9000; CPP=3D4; PAL; Non-LineLock; =
CVBSClear Error on card 0 - voeCrit 12 status 0=0A=
NewInitFRU ver 20a0 PAL=0A=
FRU set!=0A=
Init 7111 # 0=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 1=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 2=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 3=0A=
=0A=
fg0: SAA7111A EVIP ver 2NewInitADV6=0A=
NewADVHardReset=0A=
NewInitFRU ver 20a0 PAL=0A=
FRU set!=0A=
Init 7111 # 0=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 1=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 2=0A=
=0A=
fg0: SAA7111A EVIP ver 2FRU set!=0A=
Init 7111 # 3=0A=
=0A=
fg0: SAA7111A EVIP ver 2=0A=
Enable Watchdog for : 19 : PID =3D 3819031256=0A=
Enable Watchdog for : 26 : PID =3D 3819160032=0A=
Enable Watchdog for : 27 : PID =3D 3818814164=0A=
Enable Watchdog for : 14 : PID =3D 3819029416=0A=
Enable Watchdog for : 25 : PID =3D 3819159572=0A=
Enable Watchdog for : 15 : PID =3D 3819030336=0A=
Enable Watchdog for : 16 : PID =3D 3819029876=0A=
Enable Watchdog for : 3 : PID =3D 3819160492=0A=
Disable Watchdog for : 3 : PID =3D 3819160492=0A=
App 0 set=0A=
Enable Watchdog for : 10 : PID =3D 3819028956 Now reset FRU and ADV cam =
0 card 0=0A=
Enable Watchdog for : 12 : PID =3D 3818814624=0A=
Enable Watchdog for : 17 : PID =3D 3819030796=0A=
Enable Watchdog for : 23 : PID =3D 3819031716=0A=
App 1 set=0A=
Enable Watchdog for : 1 : PID =3D 3819028496CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0=0A=
Disable Watchdog for : 23 : PID =3D 3819031716 Now reset FRU and ADV cam =
0 card 0 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0 Now reset FRU and ADV cam 0 card =
0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0 Now reset FRU and ADV cam 0 card =
0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (e0000)=0A=
 Now reset FRU and ADV cam 0 card 0CAMERA FAILED!!! (f0000)=0A=
 Now reset FRU and ADV cam 0 card 0=0A=

------=_NextPart_000_019B_01C397C3.EF7FC190--