Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2011 05:10:01 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Nenhum_de_Nos <matheus@eternamente.info>
Cc:        YongHyeon PYUN <pyunyh@gmail.com>, freebsd-stable@freebsd.org
Subject:   Re: Realtek integrated nic problem
Message-ID:  <20110924121001.GA14219@icarus.home.lan>
In-Reply-To: <36bdbdceb6cc95300d91690d1cf3e0e6.squirrel@eternamente.info>
References:  <d6a76212cd5aa52db069f851ec3123f2.squirrel@eternamente.info> <4E7DB740.9070206@rdtc.ru> <20110924111221.GA11624@icarus.home.lan> <36bdbdceb6cc95300d91690d1cf3e0e6.squirrel@eternamente.info>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

> 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.

-- 
| 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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110924121001.GA14219>