From owner-freebsd-stable@FreeBSD.ORG Sat Sep 24 20:19:37 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC1C31065670 for ; Sat, 24 Sep 2011 20:19:36 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id A5E958FC1F for ; Sat, 24 Sep 2011 20:19:36 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id E84141CC68; Sat, 24 Sep 2011 17:19:27 -0300 (BRT) Received: from 189.93.157.53 (SquirrelMail authenticated user matheus) by eternamente.info with HTTP; Sat, 24 Sep 2011 17:19:27 -0300 Message-ID: <73a60aa11fb5447170894bc1bfc814bc.squirrel@eternamente.info> In-Reply-To: <20110924121001.GA14219@icarus.home.lan> References: <4E7DB740.9070206@rdtc.ru> <20110924111221.GA11624@icarus.home.lan> <36bdbdceb6cc95300d91690d1cf3e0e6.squirrel@eternamente.info> <20110924121001.GA14219@icarus.home.lan> Date: Sat, 24 Sep 2011 17:19:27 -0300 From: "Nenhum_de_Nos" To: freebsd-stable@freebsd.org, "YongHyeon PYUN" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: Realtek integrated nic problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 20:19:37 -0000 On Sat, September 24, 2011 09:10, Jeremy Chadwick wrote: > On Sat, Sep 24, 2011 at 08:44:20AM -0300, Nenhum_de_Nos wrote: >> >> On Sat, September 24, 2011 08:12, Jeremy Chadwick wrote: >> > On Sat, Sep 24, 2011 at 05:56:00PM +0700, Eugene Grosbein wrote: >> >> > I have a box using this Realtek nic: >> >> > >> >> > re0@pci0:1:0:0: class=0x020000 card=0x81051019 chip=0x813610ec >> >> rev=0x05 >> >> > hdr=0x00 >> >> > class = network >> >> > subclass = ethernet >> >> > >> >> > but FreeBSD is unable to use it. Its 8.1 pfSense. Newer versions >> would >> >> run >> >> > it ? >> >> > >> >> > thanks, >> >> > >> >> > matheus >> >> > >> >> >> >> Your card is supported with re(4) driver in 8.2-RELEASE and later >> >> versions. >> > >> > Based on what I can tell his 8.1-based pfSense box detects the card >> > and binds it to re(4) -- look closely at the first few digits of the >> > first pciconf line. >> > >> > Whether or not the card actually **functions properly** in 8.1 is a >> > different story altogether. The OP doesn't explain what "unable to >> use >> > it" means. My guess: it's probably a revision of card that 8.1 did >> not >> > have proper code for. >> >> pciconf -lv finds that I sent, but ifconfig won't list the card. it's >> useless as a nic. > > Right, the problem is what I assumed: the re(4) driver in 8.1 binds to > the card, but the card/driver/network layer is not functional. This > means the code in 8.1 probably does not work with this revision (not > "model"!) of card. > > If it's possible for you to get dmesg(8) output from the machine, that > would be useful. Chances are there is something being emitted during > kernel boot when re(4) is initialised that indicates failure. > > It would also help if you could provide "pciconf -lvcb" output; note the > additional flags. The BAR details are sometimes useful. thanks, as this box is from work, as soon as I get there I'll try to do this. >> is it possible to use if_re from 8.2 in 8.1 ? > > I would strongly recommend you avoid doing this unless the existing > maintainer of re(4) says it's okay. You should not get in the habit of > doing this; there is no guarantee it will work (kernel ABI structures > and semantics can/do change between versions). > > You might be able to take the re(4) source code from 8.2 and make it > compile 8.1. I don't know if you'll be able to, say, steal if_re.ko > from an 8.2 mirror site and load that on 8.1. It may load, but it may > not work correctly. > > CC'ing YongHyeon to verify/dismiss my claims. well, as its a pfsense box (2.0R), I guess it will be harder to compile it, that's why I asked about taking it. thanks again, and I'll wait for the maintainer also, thanks, matheus > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, US | > | Making life hard for others since 1977. PGP 4BD6C0CB | > > -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style