Subject: RE: Intel Dual Gigabit Adapter i82546GB not supported...
To: 'Christoph Kaegi' <kgc@zhwin.ch>
From: Li Mingyu <limingyu@huawei-3com.com>
List: tech-net
Date: 12/07/2004 19:33:28
The kernel you mailed me can't work well, cause it is a scsi driver.
So I don't have a real test on my board. But you can try the following way:
in src/sys/pci/if_wm.c
1.
/*
* Toggle the LSB of the MAC address on the second port
* of the i82546.
*/
if (sc->sc_type == WM_T_82546 || sc->sc_type == WM_T_82546_3) {
// if ((CSR_READ(sc, WMREG_STATUS) >> STATUS_FUNCID_SHIFT) & 1)
pci_decompose_tag(pc, pa->pa_tag, NULL, NULL, &function);
if (function == 1)
{
enaddr[5] ^= 1;
CSR_WRITE(sc, WMREG_STATUS, CSR_READ(sc,
WMREG_STATUS) | 0x04);
}
}
2.
// if (cfg1 & EEPROM_CFG1_ILOS)
// sc->sc_ctrl |= CTRL_ILOS;
sc->sc_ctrl &= ~(0x1 << 21);
then you can ping a host(A) from the host(B) with the new kernel to test if
the PHY can send the packets out.
for example, sniffer the packets on host A, if the driver is OK, you can
receive the ARP request packet from host B.
Any question, plx feel free to contact me.
> -----Original Message-----
> From: Christoph Kaegi [mailto:kgc@zhwin.ch]
> Sent: Monday, December 06, 2004 3:37 PM
> To: Li Mingyu
> Subject: Re: Intel Dual Gigabit Adapter i82546GB not supported...
>
>
> On 04.12-13:16, Li Mingyu wrote:
> > which chipset your motherboard uses? E7501+P64H2?
>
> Yes exactly. I attached the dmesg
>
> >
> > can you mail me the kernel image file you using(netbsd). I
> will test
> > on my machine.
>
> The kernel image is attached. Also the configfile which I
> used to build it.
>
> Chris
>
> --
> ----------------------------------------------------------------------
> Christoph Kaegi kgc@zhwin.ch
> ----------------------------------------------------------------------
>