From owner-freebsd-net@FreeBSD.ORG Thu Dec 17 19:27:49 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12D621065672 for ; Thu, 17 Dec 2009 19:27:49 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.221.175]) by mx1.freebsd.org (Postfix) with ESMTP id 8647A8FC18 for ; Thu, 17 Dec 2009 19:27:48 +0000 (UTC) Received: by qyk5 with SMTP id 5so1089316qyk.8 for ; Thu, 17 Dec 2009 11:27:47 -0800 (PST) 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=1Cp98vui4w5PwmK315fDdtucvkCl9QiRl1H4LJRwqvI=; b=hy13jRjYQdLyZBC1KftJHbevjqCCzWbDw5BzVT3LReJ0ZsAAH+Ou9ZC6cUI6KwbGqV /GQvb4o/wbNLkpUgisWeRFWygYxOs1GPLEznsRblx2euXRAxYAD4HrdQ1gqWxyKMS88D ihrhCTfnBdbaerXCWDamhBCCg6BcGPOjo1/Uk= 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=rWRg9U10rNZ882GUx4N87nCxMcQbrUuRSN7oW5H9P6vAwfG2+SGGbYp1mvTNbFYThc RT2ZHTN+GtQ3IqedAhkkVAuMygMdYmAbPhleW7z8mY532rPIuy8R+FDumaRmvaG8HzuV w5el07SonZkhsLvhQlnGU67+sU/FprMwD7I+s= Received: by 10.224.118.81 with SMTP id u17mr1834270qaq.301.1261078066677; Thu, 17 Dec 2009 11:27:46 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 8sm6218540qwj.23.2009.12.17.11.27.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Dec 2009 11:27:45 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 17 Dec 2009 11:27:37 -0800 From: Pyun YongHyeon Date: Thu, 17 Dec 2009 11:27:37 -0800 To: Alexander Kaphuk Message-ID: <20091217192737.GB12063@michelle.cdnetworks.com> References: <20091217185204.GA12063@michelle.cdnetworks.com> <4B2A8387.9040304@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B2A8387.9040304@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: trouble with Realtek NIC RTL8101E/RTL8102E under FreeBSD 7.2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 19:27:49 -0000 On Thu, Dec 17, 2009 at 09:16:23PM +0200, Alexander Kaphuk wrote: > Pyun YongHyeon wrote: > >On Thu, Dec 17, 2009 at 12:00:17PM +0200, Alexander Kapshuk wrote: > > > >>Dear FreeBSD-net Community, > >> > >>I have trouble with FreeBSD 7.2 as well as PCBSD 7.1.1 detecting my > >>NIC properly. > >> > >>Please see below for some technical details related to the problem. > >> > >>output of less /var/run/dmesg.boot | grep re0 > >> > >>re0: port 0x2000-0x20ff > >>mem 0xd4010000-0xd4010fff,0xd4000000-0xd400ffff irq 17 at device 0.0 > >>on pci3 > >>re0: Using 1 MSI messages > >>re0: Chip rev. 0x24800000 > >>re0: MAC rev. 0x00400000 > >>re0: Unknown H/W revision: 0x24c00000 > >>device_attach: re0 attach returned 6 > >>re0: port 0x2000-0x20ff > >>mem 0xd4010000-0xd4010fff,0xd4000000-0xd400ffff irq 17 at device 0.0 > >>on pci3 > >>re0: Using 1 MSI messages > >>re0: Chip rev. 0x24800000 > >>re0: MAC rev. 0x00400000 > >>re0: Unknown H/W revision: 0x24c00000 > >>device_attach: re0 attach returned 6 > >>re0: port 0x2000-0x20ff > >>mem 0xd4010000-0xd4010fff,0xd4000000-0xd400ffff irq 17 at device 0.0 > >>on pci3 > >>re0: Using 1 MSI messages > >>re0: Chip rev. 0x24800000 > >>re0: MAC rev. 0x00400000 > >>re0: Unknown H/W revision: 0x24c00000 > >>device_attach: re0 attach returned 6 > >>re0: port 0x2000-0x20ff > >>mem 0xd4010000-0xd4010fff,0xd4000000-0xd400ffff irq 17 at device 0.0 > >>on pci3 > >>re0: Using 1 MSI messages > >>re0: Chip rev. 0x24800000 > >>re0: MAC rev. 0x00400000 > >>re0: Unknown H/W revision: 0x24c00000 > >>device_attach: re0 attach returned 6 > >> > >> > > > >Support for the controller was made in r195675 and the change was > >already MFCed to stable/8 and stable7. Try recent CURRENT or > >8/stable and 7/stable. I guess you can download the following files > >from latest stable/7 via web interface and rebuilding both re(4) > >and rl(4) on your 7.2-RELEASE should make your controller > >recognized. > >http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c > >http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rl.c > >http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rlreg.h > > > > > >>output of pciconf -l | grep re0 > >> > >>re0@pci0:3:0:0: class=0x020000 card=0x306a103c chip=0x813610ec > >>rev=0x02 hdr=0x00 > >> > >>output of ifconfig > >> > >>ath0: flags=8802 metric 0 mtu 1500 > >> ether 00:24:2c:5e:06:f2 > >> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > >> status: no carrier > >> ssid "" channel 1 (2412 Mhz 11b) > >> authmode OPEN privacy OFF txpower 50 bmiss 7 scanvalid 60 bgscan > >> bgscanintvl 300 bgscanidle 250 roam:rssi11b 7 roam:rate11b 1 burst > >> bintval 0 > >>lo0: flags=8049 metric 0 mtu 16384 > >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > >> inet6 ::1 prefixlen 128 > >> inet 127.0.0.1 netmask 0xff000000 > >>pflog0: flags=0<> metric 0 mtu 33204 > >>pfsync0: flags=0<> metric 0 mtu 1460 > >> syncpeer: 224.0.0.240 maxupd: 128 > >> > >> > >>Please let me know if you require further details that might be of help. > >> > >>Look forward to hearing from anyone who would care to help at your > >>convenience. > >> > >>Regards, > >> > >>Alexander Kapshuk. > >> > > > > > Thanks a lot! I'll give it a go. > > I've never rebuilt a driver before. So I'll have to look into it. Can > the info on how to do it be found in the Handbook, or should I look > elsewhere? > Basically you may have to save your old driver sources to safe place. And download the three files above and copy them to appropriate source directory and rebuild kernel/reboot. For instance, after downloading, Copy if_re.c to /usr/src/sys/dev/re/ Copy if_rl.c to /usr/src/sys/pci/ Copy if_rlreg.h to /usr/src/sys/pci/ And rebuild kernel. Handbook may have instructions how to rebuild kernel. Good luck. > Thanks. > >