From owner-freebsd-hackers Thu Jan 28 11:30:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29118 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 11:30:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA29111 for ; Thu, 28 Jan 1999 11:30:09 -0800 (PST) (envelope-from wilko@yedi.iaf.nl) Received: by uni4nn.gn.iaf.nl with UUCP id AA09566 (5.67b/IDA-1.5 for FreeBSD-hackers@freebsd.org); Thu, 28 Jan 1999 20:15:22 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.8/8.6.12) id UAA00828 for FreeBSD-hackers@freebsd.org; Thu, 28 Jan 1999 20:11:09 +0100 (CET) From: Wilko Bulte Message-Id: <199901281911.UAA00828@yedi.iaf.nl> Subject: strange error during de device probe To: FreeBSD-hackers@FreeBSD.ORG (FreeBSD hackers list) Date: Thu, 28 Jan 1999 20:11:09 +0100 (CET) X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL38 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Every now and then I get: Jan 28 19:05:18 yedi /kernel: de0 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