Subject: Re: wm0 mediachange panic
To: None <current-users@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: current-users
Date: 12/03/2006 12:24:31
On Sun, Dec 03, 2006 at 12:02:45PM +0100, haad wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> When I boot 4.99.4 newly compiled kernel I got this panic message.
> 
> wm0_gmii_mediachange: bad media 0x22.

Hmm, 0x22 == IFM_ETHER + ????
The ethernet defines start at 3 and ends at 20.

Thats strange, but

> My functional dmesg:
> 
> wm0 at pci2 dev 1 function 0: Intel i82540EP 1000BASE-T Ethernet, rev. 3
> wm0: interrupting at irq 9
> wm0: 32-bit 33MHz PCI bus
> wm0: 64 word (6 address bits) MicroWire EEPROM
> wm0: Ethernet address 00:0d:60:37:3d:87
> OUI 0x000ac2 model 0x0002 rev 4 at wm0 phy 1 not configured
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Imho, thats your problem.

My guess is that your custom kernel doesn't include makphy:

makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs

Bernd