no network card visible while using PCI RTL 8139D card....

Forum thread started by Troll81 on Fri, 2009-11-13 23:43

Hello

I just installed Haiku on my old PC. However i cannot see my network card. In the network the list of devices is empty. It is my first try of Haiku (alpha). The ethernet card has been manufactured by pentagram and it is using Realtek chip RTL 8139d chip.

Comments

Re: no network card visible while using PCI RTL 8139D card....

I am fairly sure Realtek 8139 chipset is supported by Haiku.

Can you provide listdev output for network card? Can you also provide ls /dev/net (/dev/network?)?

At very least, these will tell us if your card id is in the driver and if your 8139 was picked up by the 8139 driver.

Re: no network card visible while using PCI RTL 8139D card....

ls /dev/net gives nothing (empty?)

listdev gives a couple of devices but the most important is:

device network controller (ethernet controller) [2|0|0]
vendor 10ec: Realtek Semiconductor co., ltd.
device 8139: RTL 9139/8139c/8139c+

so it seems that the system is seeing my card but no driver has been installed....

Re: no network card visible while using PCI RTL 8139D card....

listdev just shows your computer hardware.

My Haiku system is packed away so I am not sure if there is /dev/network. Does this exist?

Since you do not have driver in /dev/net then the driver is not loading with your card.

You should file a bug report http://dev.haiku-os.org.
Include listdev output, same as you have above, include syslog ( from /var/log ), state Haiku revision and the issue you have.

First though, try a recent nightly image to see if that works for you.

Re: no network card visible while using PCI RTL 8139D card....

/dev/net exists :D but it is empty....

where can i find the latest build?

Re: no network card visible while using PCI RTL 8139D card....

Under Nightly Images:
http://www.haiku-files.org/

EDIT:
Haiku has rtl8139 driver and it should work with your hardware since your listdev reports standard (supported) ids for vendor and device.

Looking through syslog may show what is going on with network card & driver.

Re: no network card visible while using PCI RTL 8139D card....

I tried to paste here some of the lines from syslog but it was taken for a spam. So here is another try

KERN: PCI: [dom 0, bus 0] bus 0, device 10, function 0: vendor 00ec, device 8139, revision 20
KERN: PCI: class_base 02, class_function 00, class_api 00
KERN: PCI: vendor 00ec: Unknown
KERN: PCI: device 8139: Unknown
KERN: PCI: info: Network controller (Ethernet controller)
KERN: PCI: line_size 08, latency 20, header_type 00, BIST 00
KERN: PCI: ROM base host 00000000, pci 00000000, size 00020000
KERN: PCI: cardbus_CIS 00000000, subsystem_id 8139, subsystem_vendor_id 00ec
KERN: PCI: interrupt_line ff, interrupt_pin 01, min_grant 20, max_latency 40
KERN: PCI: base reg 0: host 0000c000, pci 0000c000, size 00000100, flags 01
KERN: PCI: base reg 1: host e3400000, pci e3400000, size 00000100, flags 00
KERN: PCI: base reg 2: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 3: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 4: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 5: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: Capabilities: PM

Re: no network card visible while using PCI RTL 8139D card....

the next position in syslog is

KERN: rtl8139: init_hardware(0x8064d834)
KERN: [rtl8139] (rl) bus_alloc_resource(4, [16], 0x0, 0xffffffff, 0x1, 0x2)
KERN: rtl8139: no hardware found.
KERN: rtl81xx: init_hardware(0x8064f1f4)
KERN: rtl81xx: no hardware found.

Re: no network card visible while using PCI RTL 8139D card....

next the card seems to be recognized

KERN: PCI: [dom 0, bus 0] bus 0, device 10, function 0: vendor 10ec, device 8139, revision 20
KERN: PCI: class_base 02, class_function 00, class_api 00
KERN: PCI: vendor 10ec: Realtek Semiconductor Co., Ltd.
KERN: PCI: device 8139: RTL-8139/8139C/8139C+
KERN: PCI: info: Network controller (Ethernet controller)
KERN: PCI: line_size 08, latency 20, header_type 00, BIST 00
KERN: PCI: ROM base host 00000000, pci 00000000, size 00020000
KERN: PCI: cardbus_CIS 00000000, subsystem_id 8139, subsystem_vendor_id 10ec
KERN: PCI: interrupt_line 05, interrupt_pin 01, min_grant 20, max_latency 40
KERN: PCI: base reg 0: host 0000d000, pci 0000d000, size 00000100, flags 01
KERN: PCI: base reg 1: host e3400000, pci e3400000, size 00000100, flags 00
KERN: PCI: base reg 2: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 3: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 4: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: base reg 5: host 00000000, pci 00000000, size 00000000, flags 00
KERN: PCI: Capabilities: PM

Re: no network card visible while using PCI RTL 8139D card....

but still something is wrong

KERN: rtl8139: init_hardware(0x8064d834)
KERN: [rtl8139] (rl) bus_alloc_resource(4, [16], 0x0, 0xffffffff, 0x1, 0x2)
KERN: rtl8139: no hardware found.
KERN: rtl81xx: init_hardware(0x8064f1f4)
KERN: rtl81xx: no hardware found.

Re: no network card visible while using PCI RTL 8139D card....

Well, this is an issue right here:

KERN: rtl8139: no hardware found.
KERN: rtl81xx: no hardware found.

Haiku has two Realtek drivers (those listed above), each handles specific Realtek network cards. Neither one recognizes your card as supported.

File bug report to have a developer look into it and fix this issue with Realtek driver. Include syslog & listdev output & mention nothing under /dev/net & no network adapter in preferences & Haiku revision. Regards,

EDIT:
For some reason the vendor id was incorrect on your first post

KERN: PCI: vendor 00ec: Unknown

Should have been 10ec (for Realtek). Not sure why this would happen if you did a copy of syslog to your forum post. Strange.

Re: no network card visible while using PCI RTL 8139D card....

the card was made by pentagram...... maybe that is the problem....

Re: no network card visible while using PCI RTL 8139D card....

maybe i can reinstall the driver somehow?

Re: no network card visible while using PCI RTL 8139D card....

no, made by pentagram should not matter. The driver looks for vendor & device ids (chipset based - example: Realtek 8139), those that you posted above from listdev & syslog. your vendor id: 10ec, device id: 8139

from memory, the rtl8139 driver is haiku native network driver. They still use this for 8139 cards. The rtl81xx is bsd driver and has 8139 card commented out.

These drivers are built with Haiku (part of the OS). Either, the rtl8139 driver has to be fixed, if that is the issue or switch to rtl81xx (by letting it handle 8139 too).

There could also be something happening with your hardware that is causing it to fail - may not be driver issue. For instance, I've seen 2 people say turning on PXE, SmartLAN in BIOS solved their network issue. Turning off Plug & Play OS might help too, etc.

You should report it to have a developer look into it further to check the driver since I'm guessing you had this issue with 2 revisions of Haiku.

Re: no network card visible while using PCI RTL 8139D card....

It was simpler for me to change the motherboard. Now i ma using Asrock board with integrated via rhine network card and it seems to work just fine :D in fact i am now writing form my Haiku host :D

Re: no network card visible while using PCI RTL 8139D card....

Great to hear you found another solution. Reporting the bug first and trying to get it fixed would have been better because it may have helped others out. Anyways, enjoy your Haiku install.

Re: no network card visible while using PCI RTL 8139D card....

The problem might have been the shity motherboard (it sometimes failed to boot) so instead of starting a fire (that something is wrong with the system) i just switched to more reliable motherboard. I am now running BOINC on Haiku :D

Re: no network card visible while using PCI RTL 8139D card....

"The problem might have been the shitty motherboard (it sometimes failed to boot)"

Alright, true if it had problems booting it was unreliable to start with. ( I've had this problem too on 1 or 2 motherboards and it was blown/bulging capacitors but it could be anything ).

"I am now running BOINC on Haiku :D"

For others interested in BOINC on Haiku, they can read the news here:
http://www.teamhaiku.com/index.php?option=com_content&task=view&id=183&I...

Re: no network card visible while using PCI RTL 8139D card....

I have already read that :D No i am planning to port another project on Haiku :D Because SETI is not enough :D It might be a little problem, as i never did it before and i use haiuk only for 3 days :D

Re: no network card visible while using PCI RTL 8139D card....

Oh, I actually built a new BOINC package after R1/Alpha1 was released:

ftp://ftp.binarychicken.com/umccullough/haiku-boinc-seti-r1a1-gcc4.zip

I should update the teamhaiku page :(

Re: no network card visible while using PCI RTL 8139D card....

I've always had the best luck with cisco of 3com cards, i 'm a member to a bunch of cpa programs and the last thing i want is issues with my network.

Re: no network card visible while using PCI RTL 8139D card....

8139C+ was added to Haiku in revision 35452. I believe 8139D will work too with this change. Try a newer nightly to see if this is fixed.

http://dev.haiku-os.org/changeset/35452

device network controller (ethernet controller) [2|0|0]
vendor 10ec: Realtek Semiconductor co., ltd.
device 8139: RTL 9139/8139c/8139c+

EDIT: I can say it should very well work with the change I pointed out, after seeing this:
KERN: PCI: [dom 0, bus 0] bus 0, device 10, function 0: vendor 10ec, device 8139, revision 20