Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 20:11:09 +0100 (CET)
From:      Wilko Bulte <wilko@yedi.iaf.nl>
To:        FreeBSD-hackers@FreeBSD.ORG (FreeBSD hackers list)
Subject:   strange error during de device probe
Message-ID:  <199901281911.UAA00828@yedi.iaf.nl>

next in thread | raw e-mail | index | archive | help
Every now and then I get:

Jan 28 19:05:18 yedi /kernel: de0 <Digital 21140A Fast Ethernet> rev 34 int a ir
q 14 on pci0:9:0
Jan 28 19:05:18 yedi /kernel: de0: can't find phy 0
Jan 28 19:05:18 yedi /kernel: de0: can't read ENET ROM (why=-4) (462601000000000
000000000000000006b00030100c0f03041fb001e00000008
Jan 28 19:05:18 yedi /kernel: de0: 21140A [10-100Mb/s] pass 2.2
Jan 28 19:05:18 yedi /kernel: de0: address unknown

during boot. This is 2.2.8-stable, the card is a Kingston PCI 10/100 mbit.
Only a power cycle fixes it.

Looks like:

    /*
     * Make sure there won't be any interrupts or such...
     */
    TULIP_CSR_WRITE(sc, csr_busmode, TULIP_BUSMODE_SWRESET);
    DELAY(100); /* Wait 10 microseconds (actually 50 PCI cycles but at
                   33MHz that comes to two microseconds but wait a
                   bit longer anyways) */
 
    if ((retval = tulip_read_macaddr(sc)) < 0) { 
#if defined(__FreeBSD__)
        printf(TULIP_PRINTF_FMT, TULIP_PRINTF_ARGS); 
#endif
        printf(": can't read ENET ROM (why=%d) (", retval);
        for (idx = 0; idx < 32; idx++)
            printf("%02x", sc->tulip_rombuf[idx]);

handles this. Could it be that the DELAY is too short? The mainboard is
an Asus T2P4 btw. When the card gets probed successfully it works like
a charm.

Wilko
_     ______________________________________________________________________
 |   / o / /  _  Bulte 				  email: wilko@yedi.iaf.nl 
 |/|/ / / /( (_) Arnhem, The Netherlands          WWW  : http://www.tcja.nl
______________________________________________ Powered by FreeBSD __________

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901281911.UAA00828>