From owner-freebsd-hardware@FreeBSD.ORG Thu Jul 1 23:40:25 2010 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 170A2106566C for ; Thu, 1 Jul 2010 23:40:25 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id D923B8FC13 for ; Thu, 1 Jul 2010 23:40:24 +0000 (UTC) Received: by pxi3 with SMTP id 3so1151001pxi.13 for ; Thu, 01 Jul 2010 16:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=iL4JhpEGh/wXgyGuaht+fhSPz40N2u4hNJuzz7RDOhA=; b=nysgZjOBNY9SAs5cmLlHxytiatxRRKTh9RKz75V1rCOnGU3Rap45PhIaioeB7IhHee p6+9oDgQDORYZ4o1T3QMaILnsXFo6ifgE27nWh0Faha/omQ3uDoCLki5OG7ZB7Teyax9 RAOa+56uh8eu1on0HkvqOwEtB8rbZfFElEWSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=dvUS0aDfTI3fofF/UX1dZILjdWumZqJ63szo0s9168VgIaGxe2XeV/A/ymQuuRR/b4 A09Yan6JownDMggsTuVv5i+zLiSLf/cfjFBIo+3cypAK17vDO1lZB/MwhgrXDBmrF+TF PZZnqAyXj6fTSjChlEXVLcHoW4d+yiuZCbNP8= Received: by 10.142.132.12 with SMTP id f12mr298167wfd.130.1278027617668; Thu, 01 Jul 2010 16:40:17 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 21sm32260wfi.17.2010.07.01.16.40.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 16:40:16 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 1 Jul 2010 16:39:51 -0700 From: Pyun YongHyeon Date: Thu, 1 Jul 2010 16:39:51 -0700 To: Oliver Crow Message-ID: <20100701233951.GI7090@michelle.cdnetworks.com> References: <4C23E2CB.1070008@skymind.com> <4C29864F.1070609@skymind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C29864F.1070609@skymind.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hardware@freebsd.org Subject: Re: JMicron JMC250 jme interface not receiving X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 23:40:25 -0000 On Mon, Jun 28, 2010 at 10:36:15PM -0700, Oliver Crow wrote: > > After getting stuck on this I left it for a couple of days while I tried > to install Ubuntu on the same machine. Then I came back to try FreeBSD > again, and it was working fine, as if by magic. I don't know what to In previous mail, you mentioned that other host that initiated ping got ethernet address of jme0 which in turn means both TX and RX of jme0 works as expected. The subsequent unresponsive ping indicates jme0 didn't receive unicast ping(ICMP ECHO) request. I'm not sure how this can happen and I never seen this kind of issue with my sample boards that JMicron sent to me. > make of this, whether somehow the Ubuntu fiddling had an effect, or for > some other reason it settled down into a working condition. Perhaps I > had some odd problem with incorrect arp cache entries that finally timed > out. I can't really understand it. > Yeah, it may explain it. If you encounter the same issue again, please compare the ethernet hardware address of jme0 and ethernet address of ARP entry on another host. > In any event, I now see the jme driver working fine on the Eee Box B202 > under both FreeBSD 7.2-RELEASE and 8.0-RELEASE. > Ok, thanks for letting me know. > Oliver > > On 6/24/2010 3:57 PM, Oliver Crow wrote: > > > >I'm asking for help getting a JMicron JMC250 network interface working > >under FreeBSD. It appears that the jme driver is not functioning > >correctly on this hardware. The machine is an Asus Eee Box B202 with a > >JMicron JMC250 ethernet chip on the motherboard. I'm running the > >8.0-RELEASE Generic kernel. The machine boots fine, recognizing the > >interface as jme0, but I can't connect to any hosts on the network. > >When I ping the router or another host on the subnet, I see the packet > >lights flash on the router, but I get no ping responses. The arp cache > >remains empty. > > > >I know that it's not a hardware problem, because the machine can > >connect to the network fine under Windows XP, using the same NIC, > >cable and router port. Under FreeBSD I can assign an IP address, take > >the interface down and up, and can see the link light on the router > >turn off and on again when the interface comes up, but I can't ping > >any hosts. > > > >When I ping the EeeBox from another host the EeeBox MAC address is > >added to the other hosts' arp cache, but no ping response packets are > >received. On the EeeBox the arp cache remains empty. Perhaps the > >EeeBox can transmit packets, but somehow not receive? > > > >I have tried booting with MSI and MSI-X disabled (in loader.conf: > >hw.jme.msi_disable="1", hw.jme.msix_disable="1"). The interface came > >up without MSI, but I was still unable to connect to any hosts. I > >tried disabling the following interface options using ifconfig, also > >without result: -rxcsum, -txcsum, -tso, -wol, -vlanhwtag. > > > ># pciconf -vlbc > >... > >jme0@pci0:1:0:0: class=0x020000 card=0x839c1043 chip=0x0250197b > >rev=0x11 hdr=0x00 > > vendor = 'JMicron Technology Corp.' > > class = network > > subclass = ethernet > > bar [10] = type Memory, range 32, base 0xfbefc000, size 16384, > >enabled > > bar [18] = type I/O Port, range 32, base 0xec80, size 128, enabled > > bar [1c] = type I/O Port, range 32, base 0xe800, size 256, enabled > > cap 01[68] = powerspec 3 supports D0 D3 current D0 > > cap 10[50] = PCI-Express 1 legacy endpoint max data 128(128) link > >x1(x1) > > cap 11[40] = MSI-X supports 8 messages in map 0x10 enabled > > cap 05[70] = MSI supports 8 messages, 64 bit, vector masks > > > ># ifconfig jme0 > > > >jme0: flags=8843 metric 0 mtu > >1500 > > > >options=219b > > > > ether e0:cb:4e:08:37:f5 > > inet 10.25.2.49 netmask 0xffffff00 broadcast 10.25.2.255 > > media: Ethernet autoselect (100baseTX ) > > status: active > > > ># netstat -nr > > > >Routing tables > > > >Internet: > >Destination Gateway Flags Refs Use Netif > >Expire > >10.25.2.0/24 link#1 U 0 15 jme0 > >10.25.2.49 link#1 UHS 0 0 lo0 > >127.0.0.1 link#2 UH 0 4 lo0 > > > ># arp -a > > > ># ping 10.25.2.1 > > > >PING 10.25.2.1 (10.25.2.1): 56 data bytes > >ping: sendto: Host is down > >ping: sendto: Host is down > >ping: sendto: Host is down > >ping: sendto: Host is down > >^C > >--- 10.25.2.1 ping statistics --- > >9 packets transmitted, 0 packets received, 100.0% packet loss > > > ># uname -a > > > >FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC > >2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > > > ># dmesg > > > >Copyright (c) 1992-2009 The FreeBSD Project. > >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > >FreeBSD is a registered trademark of The FreeBSD Foundation. > >FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 > > root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > >Timecounter "i8254" frequency 1193182 Hz quality 0 > >CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1608.02-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0x106c2 Stepping = 2 > > > >Features=0xbfe9fbff > > > > > >Features2=0x40c39d> > > AMD Features=0x100000 > > AMD Features2=0x1 > > TSC: P-state invariant > >real memory = 1073741824 (1024 MB) > >avail memory = 1027768320 (980 MB) > >ACPI APIC Table: > >FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > >FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads > > cpu0 (BSP): APIC ID: 0 > > cpu1 (AP/HT): APIC ID: 1 > >ACPI Warning: Optional field Pm2ControlBlock has zero address or > >length: 0 820/0 20090521 tbfadt-655 > >ACPI Warning: Invalid length for Pm2ControlBlock: 0, using default 8 > >20090521 tbfadt-707 > >ioapic0: Changing APIC ID to 2 > >ioapic0 irqs 0-23 on motherboard > >kbd1 at kbdmux0 > >acpi0: on motherboard > >acpi0: [ITHREAD] > >acpi0: Power Button (fixed) > >acpi0: reservation of 0, a0000 (3) failed > >acpi0: reservation of 100000, 3f700000 (3) failed > >Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > >acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > >acpi_hpet0: iomem 0xfed00000-0xfed003ff > >on acpi0 > >Timecounter "HPET" frequency 14318180 Hz quality 900 > >pcib0: port 0xcf8-0xcff on acpi0 > >pci0: on pcib0 > >vgapci0: port 0xdc80-0xdc87 mem > >0xfbd00000-0xfbd7ffff,0xd0000000-0xdfffffff,0xfbcc0000-0xfbcfffff irq > >16 at device 2.0 on pci0 > >agp0: on vgapci0 > >agp0: detected 7932k stolen memory > >agp0: aperture size is 256M > >vgapci1: mem 0xfbd80000-0xfbdfffff at device > >2.1 on pci0 > >pci0: at device 27.0 (no driver attached) > >pcib1: irq 16 at device 28.0 on pci0 > >pci3: on pcib1 > >pcib2: irq 17 at device 28.1 on pci0 > >pci2: on pcib2 > >pci2: at device 0.0 (no driver attached) > >pcib3: irq 18 at device 28.2 on pci0 > >pci1: on pcib3 > >jme0: port > >0xec80-0xecff,0xe800-0xe8ff mem 0xfbefc000-0xfbefffff irq 18 at device > >0.0 on pci1 > >jme0: Using 8 MSIX messages. > >miibus0: on jme0 > >jmphy0: PHY 1 on miibus0 > >jmphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > >1000baseT-FDX, auto > >jme0: Ethernet address: e0:cb:4e:08:37:f5 > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >jme0: [FILTER] > >uhci0: port 0xd480-0xd49f > >irq 23 at device 29.0 on pci0 > >uhci0: [ITHREAD] > >uhci0: LegSup = 0x0f30 > >usbus0: on uhci0 > >... > > > >Thanks for any assistance, > >Oliver > > > >_______________________________________________ > >freebsd-hardware@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > >To unsubscribe, send any mail to > >"freebsd-hardware-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org"