Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 21:59:08 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        =?iso-8859-1?Q?Sd=E4vtaker?= <sdavtaker@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: RLT8139d drivers?
Message-ID:  <20080121205908.GA63780@owl.midgard.homeip.net>
In-Reply-To: <c37d69f60801211008l7d2a9a10ha0d17da7f283acb8@mail.gmail.com>
References:  <c37d69f60801210657j6a255bfj1aa98557a81b109c@mail.gmail.com> <20080121155947.GA62290@owl.midgard.homeip.net> <c37d69f60801211008l7d2a9a10ha0d17da7f283acb8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 21, 2008 at 03:08:03PM -0300, Sd=E4vtaker wrote:
> It doesnt appear in pciconf (output is pasted below). I removed it and
> tryed make it work in a winxp machine and it was successfully working,
> so is not hardware problem (at least not in the nic).
> Any idea why is not working?, the card chip says "8139d", my kernel is
> release generic.
> Is it the none0?
> thanks for reply me :-)

Yes, it looks very much like the "none0" entry is your NIC.
That particular chip-id (0x81391904) is not one that is currently recognized
by the rl(4) driver, which is why the driver is not attaching to the card.

Most likely all that is needed to make work is to add that id to the list
of chips the rl(4) driver is supposed to attach to, but this requires
modifying the kernel source code and rebuilding the kernel.

Most likely the following quick, dirty, and ugly patch would suffice to make
it work, but since I do not have such a card I cannot test that it works:


Index: sys/pci/if_rl.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /ncvs/src/sys/pci/if_rl.c,v
retrieving revision 1.152.2.8
diff -u -r1.152.2.8 if_rl.c
--- sys/pci/if_rl.c	2 Dec 2007 08:54:59 -0000	1.152.2.8
+++ sys/pci/if_rl.c	21 Jan 2008 20:55:24 -0000
@@ -176,6 +176,8 @@
 		"LevelOne FPC-0106TX" },
 	{ EDIMAX_VENDORID, EDIMAX_DEVICEID_EP4103DL, RL_8139,
 		"Edimax EP-4103DL CardBus" },
+	{ 0x1904, RT_DEVICEID_8139, RL_8139,
+		"Unknown 8139 10/100BaseTX" },
 	{ 0, 0, 0, NULL }
 };
=20
=20




>=20
> pciconf -lv
> agp0@pci0:0:0:  class=3D0x060000 card=3D0x00001106 chip=3D0x31231106 rev=
=3D0x00 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT8623 Apollo CLE266 CastleRock CPU to PCI Bridge'
>     class    =3D bridge
>     subclass =3D HOST-PCI
> pcib1@pci0:1:0: class=3D0x060400 card=3D0x00000080 chip=3D0xb0911106 rev=
=3D0x00 hdr=3D0x01
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT8633 Apollo Pro 266 CPU to AGP Controller'
>     class    =3D bridge
>     subclass =3D PCI-PCI
> none0@pci0:8:0: class=3D0x020000 card=3D0x00000000 chip=3D0x81391904 rev=
=3D0x01 hdr=3D0x00
>     class    =3D network
>     subclass =3D ethernet
> uhci0@pci0:16:0:        class=3D0x0c0300 card=3D0x30381106 chip=3D0x30381=
106
> rev=3D0x80 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
>     class    =3D serial bus
>     subclass =3D USB
> uhci1@pci0:16:1:        class=3D0x0c0300 card=3D0x30381106 chip=3D0x30381=
106
> rev=3D0x80 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
>     class    =3D serial bus
>     subclass =3D USB
> uhci2@pci0:16:2:        class=3D0x0c0300 card=3D0x30381106 chip=3D0x30381=
106
> rev=3D0x80 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
>     class    =3D serial bus
>     subclass =3D USB
> ehci0@pci0:16:3:        class=3D0x0c0320 card=3D0x31041106 chip=3D0x31041=
106
> rev=3D0x82 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT6202 USB 2.0 Enhanced Host Controller'
>     class    =3D serial bus
>     subclass =3D USB
> isab0@pci0:17:0:        class=3D0x060100 card=3D0x00001106 chip=3D0x31771=
106
> rev=3D0x00 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT8235 PCI to ISA Bridge'
>     class    =3D bridge
>     subclass =3D PCI-ISA
> atapci0@pci0:17:1:      class=3D0x01018a card=3D0x05711106 chip=3D0x05711=
106
> rev=3D0x06 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT82xxxx EIDE Controller (All VIA Chipsets)'
>     class    =3D mass storage
>     subclass =3D ATA
> none1@pci0:17:5:        class=3D0x040100 card=3D0x41611106 chip=3D0x30591=
106
> rev=3D0x50 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller'
>     class    =3D multimedia
>     subclass =3D audio
> none2@pci0:17:6:        class=3D0x078000 card=3D0x4c211543 chip=3D0x30681=
106
> rev=3D0x80 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT82C686/A/B,VT8233/A Modem Codec'
>     class    =3D simple comms
> vr0@pci0:18:0:  class=3D0x020000 card=3D0x01021106 chip=3D0x30651106 rev=
=3D0x74 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT6102 Rhine II PCI Fast Ethernet Controller'
>     class    =3D network
>     subclass =3D ethernet
> none3@pci1:0:0: class=3D0x030000 card=3D0x31221106 chip=3D0x31221106 rev=
=3D0x03 hdr=3D0x00
>     vendor   =3D 'VIA Technologies Inc'
>     device   =3D 'VT8623 Apollo CLE266 CastleRock AGP 8X Controller'
>     class    =3D display
>     subclass =3D VGA
>=20
> On Jan 21, 2008 12:59 PM, Erik Trulsson <ertr1013@student.uu.se> wrote:
> >
> > On Mon, Jan 21, 2008 at 11:57:24AM -0300, Sd=E4vtaker wrote:
> > > Hello.
> > > Im running FBSD 6.2release.
> > > I got an old RLT 8139 1/10m working in my ia32 pc, used it for long
> > > time and wanted to buy a second one for routing, couldnt find one of
> > > those, and bought a 10/100/1000 rlt8139d, FBSD is not detecting it, i
> > > was googling  and found out that 8139c+ drivers are not compatible
> > > with the old drivers.
> > > Is there any way to make it work?
> > > Thanks for any help.
> > > Sdav
> >
> > The RTL8139D is a 10/100Mbit chip that is supported by the rl(4) driver=
 and
> > can be found on the majority of really cheap NICs these days,
> > The RTL8169/8169S is a 10/100/1000Mbit chip that is supported by the re=
(4) driver
> > and is quite common on cheap gigabit-NICs.
> > The RTL8139C+ (which is not the same as the RTL8139C or RTL8139D) is a
> > 10/100M chip which is also supported by the re(4) driver.
> >
> > If FreeBSD cannot detect your NIC then you will have to send more
> > information to help people figure out what exact hardware you have
> > and what would be needed to make it work.
> >
> > The output of 'pciconf -lv' should be a good start.  (Include the full
> > output, not just the lines you think are important.)
> >
> >
> >
> >
> >
> >
> > --
> > <Insert your favourite quote here.>
> > Erik Trulsson
> > ertr1013@student.uu.se
> >
>=20
>=20
>=20
> --=20
> Sd=E4vtaker prays to Rikku goddess for a good treasure.

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"


--=20
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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