From owner-freebsd-alpha Sat Dec 9 1:41:30 2000 From owner-freebsd-alpha@FreeBSD.ORG Sat Dec 9 01:41:24 2000 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 169ED37B400; Sat, 9 Dec 2000 01:41:23 -0800 (PST) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 144gVN-0007Xj-00; Sat, 09 Dec 2000 09:41:21 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.11.1/8.11.0) id eB99ecp05886; Sat, 9 Dec 2000 10:40:38 +0100 (CET) (envelope-from wkb) Date: Sat, 9 Dec 2000 10:40:38 +0100 From: Wilko Bulte To: Bill Paul Cc: jhb@freebsd.org, freebsd-alpha@freebsd.org Subject: Re: cvs commit: src/sys/alpha/conf GENERIC Message-ID: <20001209104038.A5866@freebie.demon.nl> References: <20001208232403.A1471@freebie.demon.nl> <20001208222642.4B9E837B401@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001208222642.4B9E837B401@hub.freebsd.org>; from wpaul@freebsd.org on Fri, Dec 08, 2000 at 02:26:42PM -0800 X-OS: FreeBSD 4.2-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Dec 08, 2000 at 02:26:42PM -0800, Bill Paul wrote: > > > > Looks like I lack a .h somewhere: > > > > mx5# make > > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > > -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include > > -D_KERNEL -include opt_global.h -elf -mno-fp-regs -Wa,-mev56 > > ../../pci/if_tx.c > > ../../pci/if_tx.c: In function `epic_rx_done': > > ../../pci/if_tx.c:930: `ETHER_ALIGN' undeclared (first use in this function) > > ../../pci/if_tx.c:930: (Each undeclared identifier is reported only once > > ../../pci/if_tx.c:930: for each function it appears in.) > > *** Error code 1 > > Grrr. I screwed up. For now, add a line to the top of if_tx.c that > says: > > #define ETHER_ALIGN 2 > > and try compiling again. I added this to my copy of if_txvar.h the other > day when I was tinkering withh this, but forgot to make a diff for that > when I made the other changes today. Better, no panic anymore. But no traffic yet. Have not looked in the source where these errors originate. But here is the transcript: mx5# ifconfig -a dc0: flags=8843 mtu 1500 inet 192.168.200.24 netmask 0xffffff00 broadcast 192.168.200.255 ether 00:00:f8:75:3c:6a media: 100baseTX status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX tx0: flags=8802 mtu 1500 ether 00:e0:29:15:b9:43 media: autoselect () supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 mx5# ifconfig dc0 down mx5# ifconfig tx0 192.168.200.24 rtx0: can't stop Tx DMA tinit: wrong ifa (0xfffffe000049ab00) was (0xfffffe000049b400) mx5# Dec 19 10:36:00 mx5 /kernel: rtx0: can't stop Tx DMA Dec 19 10:36:00 mx5 /kernel: rtx0: can't stop Tx DMA Dec 19 10:36:00 mx5 /kernel: tinit: wrong ifa (0xfffffe000049ab00) was (0xfffffe000049b400) Dec 19 10:36:00 mx5 /kernel: tinit: wrong ifa (0xfffffe000049ab00) was (0xfffffe000049b400) << I moved the UTP cable from dc0 to tx0 here >> mx5# mx5# tx0: device timeout 1 packets, reinitialization tx0: can't stop Tx DMA Dec 19 10:36:07 mx5 /kernel: tx0: device timeout 1 packets, reinitialization Dec 19 10:36:07 mx5 /kernel: tx0: device timeout 1 packets, reinitialization Dec 19 10:36:07 mx5 /kernel: tx0: can't stop Tx DMA Dec 19 10:36:07 mx5 /kernel: tx0: can't stop Tx DMA mx5# mx5# mx5# ifconfig -a dc0: flags=8802 mtu 1500 inet 192.168.200.24 netmask 0xffffff00 broadcast 192.168.200.255 ether 00:00:f8:75:3c:6a media: 100baseTX status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX tx0: flags=8843 mtu 1500 inet 192.168.200.24 netmask 0xffffff00 broadcast 192.168.200.255 ether 00:e0:29:15:b9:43 media: autoselect (100baseTX) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 << The ethernet hub appears to negotiate for 100Mbit OK, according to it's LEDs >> mx5# ping 192.168.200.1 PING 192.168.200.1 (192.168.200.1): 48 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.200.1 ping statistics --- 10 packets transmitted, 0 packets received, 100% packet loss mx5# tx0: device timeout 5 packets, reinitialization tx0: can't stop Tx DMA Dec 19 10:37:04 mx5 /kernel: tx0: device timeout 5 packets, reinitialization Dec 19 10:37:04 mx5 /kernel: tx0: device timeout 5 packets, reinitialization Dec 19 10:37:04 mx5 /kernel: tx0: can't stop Tx DMA Dec 19 10:37:04 mx5 /kernel: tx0: can't stop Tx DMA mx5# hth -- Wilko Bulte Arnhem, the Netherlands wilko@freebsd.org http://www.freebsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message