LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-17-2004, 05:45 AM   #1
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Rep: Reputation: 15
How to bring up my RTL8139 in FreeBSD? sysinstall can not recognise it


I used the sysinstall -> configure -> Network -> Network Interfaces, There is no rl0 device. It only have the device list below:
plip0
sl0
ppp0
sl0
ppp0

run "uname -a "
FreeBSD fancy-man 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386

run "ifconfig "
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2

run "dmesg"
rl0: <RealTek 8139 10/100BaseTX> port 0xcc00-0xccff mem 0xdfffff00-0xdfffffff irq 11 at device 14.0 on pci0
rl0: Ethernet address: 00:e0:7d:5e:5d:c7
rl0: unknown device ID: 814c
device_probe_and_attach: rl0 attach returned 6

Is here any body can help me? Thanks a lot.
My keyboard can't work in FreeBSD, then I just buy a new keyboard for It, but I find my Network Card can't work, too. So sad... ...

Last edited by tx-cary; 08-17-2004 at 05:47 AM.
 
Old 08-17-2004, 11:08 AM   #2
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
I have same NIC and FreeBSD 5.2.1 .... it is not recognizing your card on boot. Assuming that your system is physically functioning try this ... reboot choosing nr. 2 option on FreeBSD boot page "with ACPI ... " If that doesn't do it, try toggling the PNP option in BIOS....reboot. Then with ACPI option. One of those three should work. Once it is set it will continue to recognize on boot even if you change setttings back for other operating systems. In my meager experience.
 
Old 08-17-2004, 11:20 AM   #3
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
OOPS, didnĚt read you dmesg part.. check /etc/rc.conf .. rl0 must be added if it is not there. See /etc/defaults/rc.conf for options.
 
Old 08-19-2004, 12:07 AM   #4
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
I added rl0 to rc.conf, but it can not work too...
 
Old 08-19-2004, 05:38 AM   #5
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Did you reboot. Did you reboot trying "with acpi" as mentioned above? Will saunter over to my FreeBSD machine a little later to review my setup. Cheers.
 
Old 08-19-2004, 08:47 AM   #6
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
I had follow you words step by step, but i can't work too.

sysinstall can not recognise it, means it have no driver, dosn't it?

I think the key word of the message above is: "rl0: unknown device ID: 814c". Do you think so?
I nearly to give up...
 
Old 08-25-2004, 01:01 PM   #7
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
Sure it is a compatibility problem betwen rl0 and the motherboard.
I have two those realteks and it worked from FreeBSD-4.4 and above.
 
Old 08-25-2004, 06:12 PM   #8
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Code:
device_probe_and_attach: rl0 attach returned 6
Surely the keyword is the above. It doesn't matter that the kernel recognized your card (it did) what matters is that the card failed to attach -- meaning it failed to communicate the way it should be. We need to determine what is causing this problem and find a solution.

Do you have any conflicts with this device and another device? This card is PCI but that does not mean an ISA card is not fighting for the same interrupt -- it means they shouldn't be but it doesn't make it not happen in real life. Check your dmesg... is another card/device trying to use irq 11?

What other problems are you having, if any?
 
Old 08-25-2004, 06:14 PM   #9
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Wait, turn off pnp in your BIOS if it is still on.

Edit: this idea is not really my own creation. Most of the pages I can find this error on relate the information that it resoved itself after PNP was turned off in their BIOS.

Last edited by frob23; 08-25-2004 at 06:16 PM.
 
Old 08-25-2004, 10:18 PM   #10
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by frob23
Code:
device_probe_and_attach: rl0 attach returned 6
... ...
What other problems are you having, if any?
Well thanks, the whole output of dmesg is
Code:
Copyright (c) 1992-2004 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 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004
    root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a35000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a3521c.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Celeron (901.60-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (511 MB)
avail memory = 511766528 (488 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 8 entries at 0xc00f7580
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
acpi_cpu0: <CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 7 INTD is routed to irq 9
pcib0: slot 7 INTC is routed to irq 10
pcib0: slot 14 INTA is routed to irq 11
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge> mem 0xe0000000-0xefffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686A UDMA66 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 9 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: ALCOR Generic USB Hub, class 9/0, rev 1.10/3.12, addr 2
uhub1: 4 ports with 4 removable, self powered
ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev 1.10/3.00, addr 3, iclass 3/1
ums0: 3 buttons and Z dir.
pci0: <serial bus, SMBus> at device 7.4 (no driver attached)
pci0: <multimedia, audio> at device 7.5 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xcc00-0xccff mem 0xdfffff00-0xdfffffff irq 11 at device 14.0 on pci0
rl0: Ethernet address: 00:e0:7d:5e:5d:c7
rl0: unknown device ID: 814c
device_probe_and_attach: rl0 attach returned 6
acpi_button0: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 901599327 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
GEOM: create disk ad0 dp=0xc48f9c60
ad0: 78167MB <Maxtor 6Y080L0> [158816/16/63] at ata0-master UDMA66
acd0: CDROM <LTN526D> at ata0-slave PIO4
GEOM: create disk ad2 dp=0xc48f9660
ad2: 19473MB <Maxtor 52049H4> [39566/16/63] at ata1-master UDMA66
acd1: CDRW <SAMSUNG CDRW/DVD SM-348B> at ata1-slave PIO4
Mounting root from ufs:/dev/ad2s1a
Is there any problem?

Any I try to modify my BIOS settings. I find there is two options about "PNP":
IRQ 11: 1.PNP/PCI 2.ISA/EISA
and
DMA: 1.PNP 2.ISA

The defult setting is "PNP", I try to change it to "ISA", but the problem is still there.
 
Old 08-25-2004, 10:22 PM   #11
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Dan Angelescu
Sure it is a compatibility problem betwen rl0 and the motherboard.
I have two those realteks and it worked from FreeBSD-4.4 and above.
I have not been use FreeBSD-4, I am using FreeBSD-5.2.1.
My motherboard is MSI-6309-1.0, the chip is VIA694X+VIA868A.
I have no ISA device, and the only PCI device is my Network card 8139.
 
Old 08-26-2004, 10:37 AM   #12
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
The kernel recognize the ethernet card and that is a good news.
What have you added to rc.conf ?
At me it is something like
ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.250"
Best wishes !
 
Old 08-26-2004, 09:32 PM   #13
tx-cary
Member
 
Registered: Jan 2004
Location: China
Distribution: Mandrake lastest
Posts: 59

Original Poster
Rep: Reputation: 15
I have already add this line into my rc.conf
 
Old 08-26-2004, 09:54 PM   #14
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Yeah, tx... you should just ignore advice like that. Sometimes people don't read all the way through a thread or miss the important line. Clearly most people are seeing that the kernel is finding your card... they are missing the error at the bottom where the kernel states it can't attach it.

I have done some looking but I can't seem to find anything other than the PNP thing (which you said didn't work). Have you tried booting without ACPI (sorry... I don't think this has been asked and I don't think it will help here but it is worth a shot). You might want to ask on the official mailing lists. They are full of the people actually developing parts of the system... there is a good chance that your message might be seen by the person who actually works on that device. He (or others) could help you get it working if it is at all possible.

I admit the mailing list is a little more intimidating than this board. But the concentration of people who REALLY know the internals of FreeBSD is much higher. Those times when I have gotten stuck ... really stuck ... the mailing list was able to offer help when no one else could.

I hate to send people to a different place for help when they come here... but you might want to consider that.
 
Old 08-26-2004, 10:04 PM   #15
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I am going to be honest.

RealTek cards do not have a reputation for being high quality. In many cases they work perfectly (I have one in a box at home that works just fine) and in others they just don't. They don't always use the same chipset which can cause problems but the real issue is that they are cheap cards -- not that cheap is bad... cheap is all I can afford at the moment. I've found that high quality hardware has less problems when it comes to being supported out of the box.

I've known people who just could not get a $10 network card to work at all. But I have yet to run into a person who plopped down $60-$100 for a quality card that has had a problem. I was ticked when I found I could only buy one card at my college bookstore (I had a book voucher no cash to shop elsewhere).... I was even more upset that the card cost me over $80 bucks at the time. But the card has never failed to work flawlessly with any *nix operating system I have thrown at it.

Sorry to preach here. But don't make the mistake I made. I once assumed that *nix expected cheap hardware because it wasn't a "gaming" system... why did I need a $300 video card if I wasn't a gamer? Well, because a $300 video card is likely to be one that is supported. Next time you need to buy hardware... consider the fact that it is almost ALWAYS wiser to buy quality parts. That goes for every part of the system.

[rant-mode == off] now back to your regularly scheduled help, please try the lists. If it can be made to work (and you post a good message) they will help you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone recognise this? brundles Linux - General 5 03-24-2005 08:45 AM
sysinstall Tuttle *BSD 9 12-19-2004 02:45 PM
interrupting sysinstall mathfeel *BSD 4 05-23-2004 05:39 PM
RE:> realtek rtl8139 XtermX62 Linux - Hardware 2 02-16-2003 08:00 AM
bash to recognise CR/LF jhorvath Programming 2 12-04-2002 01:03 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration