This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

realtek rtl8139 not connecting

david55

Sat Mar 14, 2015 8:24:56 pm

I'm new to Zorin os 9. I uploaded it to a old hp desktop Pavilion a1340n. It running XP media center 2005.
It not connect to the network. no light on card. Here is list of pc.
david@david-EL470AA-ABA-A1340N:~$ lspci -nnk | grep -1A2 net
Kernel driver in use: radeon
02:05.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10)
Subsystem: Hewlett-Packard Company Device [103c:2a31]
Kernel driver in use: 8139too


david@david-EL470AA-ABA-A1340N:~$ lsusb
Bus 001 Device 002: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


root@david-EL470AA-ABA-A1340N:/home/david# lshw -c network
*-network
description: Ethernet interface
product: RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 5
bus info: pci@0000:02:05.0
logical name: eth0
version: 10
serial: 00:14:2a:eb:39:ce
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half ip=192.168.1.18 latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s
resources: irq:10 ioport:e800(size=256) memory:febffc00-febffcff


Usage: lsmod
david@david-EL470AA-ABA-A1340N:~$ lsmod
Module Size Used by
nls_iso8859_1 12713 1
rfcomm 69160 0
bnep 19624 2
bluetooth 391196 10 bnep,rfcomm
binfmt_misc 17468 1
snd_hda_codec_realtek 61438 1
snd_hda_intel 52355 3
snd_hda_codec 192906 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13602 1 snd_hda_codec
snd_pcm 102099 2 snd_hda_codec,snd_hda_intel
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
snd_seq_midi 13324 0
snd_seq_midi_event 14899 1 snd_seq_midi
snd_rawmidi 30144 1 snd_seq_midi
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
dm_multipath 22873 0
scsi_dh 14882 1 dm_multipath
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29482 2 snd_pcm,snd_seq
snd 69238 16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
mac_hid 13205 0
serio_raw 13462 0
soundcore 12680 1 snd
i2c_piix4 22155 0
parport_pc 32701 1
ppdev 17671 0
lp 17759 0
parport 42348 3 lp,ppdev,parport_pc
shpchp 37032 0
btrfs 835954 0
xor 21411 1 btrfs
raid6_pq 97812 1 btrfs
libcrc32c 12644 1 btrfs
dm_mirror 22135 0
dm_region_hash 20862 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
pata_acpi 13038 0
usb_storage 62209 1
radeon 1522422 3
i2c_algo_bit 13413 1 radeon
ttm 85115 1 radeon
drm_kms_helper 53081 1 radeon
firewire_ohci 40409 0
psmouse 106678 0
8139too 33544 0
8139cp 27953 0
firewire_core 68769 1 firewire_ohci
crc_itu_t 12707 1 firewire_core
mii 13934 2 8139cp,8139too
pata_atiixp 13271 0
drm 303102 5 ttm,drm_kms_helper,radeon
sata_sil 13512 2

david@david-EL470AA-ABA-A1340N:~$ sudo iw reg get
country US:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
(57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR

Wolfman

Sat Mar 14, 2015 8:33:19 pm

Hi,

try running DPKG per the update guide and see if that helps. (A network cable connection is required):

viewtopic.php?f=5&t=2247

You can also try running the following terminal (Ctrl + Alt + t) command and then restart:

Code:
sudo apt-get update && sudo apt-get install -f


Also, boot the Zorin disk and see if the WiFi works, if it does, when you install; it should load the drivers for you but make sure you are connected to the internet using a network cable or it won't download the additional drivers automatically!.

Do you still have the Windows drivers disk?, if you do, you can use Windows Wireless Tool which is pre-installed in Zorin OS:

viewtopic.php?f=6&t=7359

https://www.youtube.com/watch?v=wchimaoe9KE

You can also try using the Additional drivers tool:

https://www.youtube.com/watch?v=4VVosf9p5GM

Let us know if it helps. :D

david55

Sun Mar 15, 2015 11:05:12 am

The hp a1340n is a desktop. I don't have wireless for it. It show it connected. But i can not ping to router.

Wolfman

Sun Mar 15, 2015 12:47:44 pm

Hi,

sorry when you said card, I thought you meant a USB dongle!.

Check your internet cable and change the position in the router, it seems to just be a faulty connection with the cable or router as your ethernet card is showing as working!. "autonegotiation=on broadcast=yes"

Borrow a cable from a friend or neighbour if necessary!.

david55

Mon Mar 16, 2015 1:03:13 am

Wolfman wrote:Hi,

sorry when you said card, I thought you meant a USB dongle!.

Check your internet cable and change the position in the router, it seems to just be a faulty connection with the cable or router as your ethernet card is showing as working!. "autonegotiation=on broadcast=yes"

Borrow a cable from a friend or neighbour if necessary!.



I tested cable and router all is good to go but still not connecting

Wolfman

Mon Mar 16, 2015 7:33:06 am

Hi,

what make of router is it? and did you try resetting the router?. (Only do a reset when you know 100% that you can access the router from your web browser!).

david55

Mon Mar 16, 2015 11:08:40 am

Wolfman wrote:Hi,

what make of router is it? and did you try resetting the router?. (Only do a reset when you know 100% that you can access the router from your web browser!).


Netgear N150 I did try resetting router still not connecting.

i still think it the computer the lights on build in net work card do not flash.

Wolfman

Mon Mar 16, 2015 11:41:24 am

Hi,

did you try the Live CD and see if it connects when in live mode?. :D

madvinegar

Mon Mar 16, 2015 2:25:58 pm

From your lsmod results I see that your card is using the driver 8139too. However, there is another driver loaded, namely 8139cp.
So these two drivers conflict and fight with each other creating a problem to your connection. We will get the second driver (8139cp) out of the way and hopefully your connection will be established.

Open terminal and run the following 3 commands, one by one:

Code:
sudo su
echo "blacklist 8139cp" >> /etc/modprobe.d/blacklist.conf
exit


Now reboot. Is your connection ok?
If yes, great. If not, open terminal and now run the following 4 commands, one by one:

Code:
sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too


If when you run the last command, you see that your card is working and you have internet, in order to make it permanent, you must add the above 4 commands inside your rc.local file.

Open terminal and run:
Code:
sudo gedit /etc/rc.local


and add (copy/paste) the following 4 commands ABOVE the last line that says "exit0".

Code:
sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too


Save, exit, reboot, and see if all is ok with your connection.

david55

Mon Mar 16, 2015 3:58:59 pm

madvinegar wrote:From your lsmod results I see that your card is using the driver 8139too. However, there is another driver loaded, namely 8139cp.
So these two drivers conflict and fight with each other creating a problem to your connection. We will get the second driver (8139cp) out of the way and hopefully your connection will be established.

Open terminal and run the following 3 commands, one by one:

Code:
sudo su
echo "blacklist 8139cp" >> /etc/modprobe.d/blacklist.conf
exit


Now reboot. Is your connection ok?
If yes, great. If not, open terminal and now run the following 4 commands, one by one:

Code:
sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too


If when you run the last command, you see that your card is working and you have internet, in order to make it permanent, you must add the above 4 commands inside your rc.local file.

Open terminal and run:
Code:
sudo gedit /etc/rc.local


and add (copy/paste) the following 4 commands ABOVE the last line that says "exit0".

Code:
sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too


Save, exit, reboot, and see if all is ok with your connection.



The last set of command have turn one light on on the card but still will not connect to router.
If I try yo ping router i get destination host unreachable.

madvinegar

Mon Mar 16, 2015 4:47:06 pm

Try reseting the settings of the router because I do not know if you have altered any setting.

david55

Mon Mar 16, 2015 6:07:47 pm

madvinegar wrote:Try reseting the settings of the router because I do not know if you have altered any setting.



Reset router no change

madvinegar

Mon Mar 16, 2015 9:01:49 pm

Try the commands like that:

sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 10baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too



If the above does not help, reboot and try to run only the 3 commands

sudo rmmod -f 8139cp
sudo rmmod -f 8139too
sudo modprobe 8139too

david55

Wed Mar 18, 2015 1:53:04 pm

madvinegar wrote:Try the commands like that:

sudo rmmod -f 8139cp
sudo mii-tool eth0 -F 10baseT-FD
sudo rmmod -f 8139too
sudo modprobe 8139too



If the above does not help, reboot and try to run only the 3 commands

sudo rmmod -f 8139cp
sudo rmmod -f 8139too
sudo modprobe 8139too



I ran the commands and reboot computer and router no change one light on ethernet card . If ping router i get Destination Host Unreachable.

madvinegar

Wed Mar 18, 2015 2:26:48 pm

The only thing I can think of, is to try to use the 2nd driver and blacklist the 1st one.

Run the command:
Code:
sudo gedit /etc/modprobe.d/blacklist.conf


In the file that will open find the line that says:
blacklist 8139cp


and replace it with:
blacklist 8139too


Save, exit and Reboot.

See if you can get connection. If not, run the commands:

Code:
sudo rmmod -f 8139too
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139cp
sudo modprobe 8139cp


Wait for 5-6 seconds and see if you getter any better results.

david55

Wed Mar 18, 2015 4:22:33 pm

madvinegar wrote:The only thing I can think of, is to try to use the 2nd driver and blacklist the 1st one.

Run the command:
Code:
sudo gedit /etc/modprobe.d/blacklist.conf


In the file that will open find the line that says:
blacklist 8139cp


and replace it with:
blacklist 8139too


Save, exit and Reboot.

See if you can get connection. If not, run the commands:

Code:
sudo rmmod -f 8139too
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139cp
sudo modprobe 8139cp


Wait for 5-6 seconds and see if you getter any better results.


8139cp not found
so i reset to 8139too
just power light no connecting light

david55

Thu Mar 19, 2015 6:46:44 pm

david55 wrote:
madvinegar wrote:The only thing I can think of, is to try to use the 2nd driver and blacklist the 1st one.

Run the command:
Code:
sudo gedit /etc/modprobe.d/blacklist.conf


In the file that will open find the line that says:
blacklist 8139cp


and replace it with:
blacklist 8139too


Save, exit and Reboot.

See if you can get connection. If not, run the commands:

Code:
sudo rmmod -f 8139too
sudo mii-tool eth0 -F 100baseT-FD
sudo rmmod -f 8139cp
sudo modprobe 8139cp


Wait for 5-6 seconds and see if you getter any better results.


8139cp not found
so i reset to 8139too
just power light no connecting light

I run more test and here they are I hope this will help to find a fix
david@david-EL470AA-ABA-A1340N:~$ sudo ethtool eth0
\[sudo] password for david:
Sorry, try again.
[sudo] password for david:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes

david@david-EL470AA-ABA-A1340N:~$ lsmod | grep 8139
8139too 33544 0
mii 13934 1 8139too
david@david-EL470AA-ABA-A1340N:~$





david@david-EL470AA-ABA-A1340N:~$ dmesg |grep 8139
[ 0.162852] pci 0000:02:05.0: [10ec:8139] type 00 class 0x020000
[ 1.519004] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[ 1.519052] 8139cp 0000:02:05.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip, use 8139too
[ 1.548667] 8139too: 8139too Fast Ethernet driver 0.9.28
[ 1.549933] 8139too 0000:02:05.0 eth0: RealTek RTL8139 at 0x000000000001e800, 00:14:2a:eb:39:ce, IRQ 10
[ 17.728261] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 23.490616] 8139too: 8139too Fast Ethernet driver 0.9.28
[ 23.506320] 8139too 0000:02:05.0 eth0: RealTek RTL8139 at 0x000000000001e800, 00:14:2a:eb:39:ce, IRQ 10
[ 23.544253] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 35.839366] NETDEV WATCHDOG: eth0 (8139too): transmit queue 0 timed out
[ 35.839368] Modules linked in: 8139too snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event rfcomm bnep bluetooth snd_rawmidi snd_seq binfmt_misc dm_multipath scsi_dh snd_seq_device snd_timer snd mac_hid serio_raw soundcore i2c_piix4 shpchp parport_pc ppdev lp parport btrfs xor raid6_pq libcrc32c dm_mirror dm_region_hash dm_log usb_storage radeon i2c_algo_bit pata_acpi ttm firewire_ohci drm_kms_helper firewire_core drm psmouse crc_itu_t mii pata_atiixp sata_sil [last unloaded: 8139too]
[ 38.847713] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 50.848992] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 62.851240] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 74.857219] 8139too 0000:02:05.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

madvinegar

Fri Mar 20, 2015 7:17:15 am

This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip, use 8139too


As you see it states clearly what I was expecting, i.e. that 8139cp should be blacklisted and that you should only use 8139too.

Let's take it from the beginning.

Open terminal and run:

Code:
sudo gedit /etc/modprobe.d/blacklist.conf


Add the line:
Code:
blacklist 8139cp


(delete the line that says "blacklist 8139too" if you have not already done so).

Reboot.

Once you are back, open terminal and run

Code:
sudo modprobe -r 8139cp
sudo modprobe -r 8139too
sudo modprobe 8139too


See if that works and also let me have again the results of:

Code:
lsmod

david55

Fri Mar 20, 2015 10:17:11 am

madvinegar wrote:
This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip, use 8139too


As you see it states clearly what I was expecting, i.e. that 8139cp should be blacklisted and that you should only use 8139too.

Let's take it from the beginning.

Open terminal and run:

Code:
sudo gedit /etc/modprobe.d/blacklist.conf


Add the line:
Code:
blacklist 8139cp


(delete the line that says "blacklist 8139too" if you have not already done so).

Reboot

Once you are back, open terminal and run

Code:
sudo modprobe -r 8139cp
sudo modprobe -r 8139too
sudo modprobe 8139too


See if that works and also let me have again the results of:

Code:
lsmod


made changes to blacklist and rebooted. No change the power light is on test cable with my laptop works good.
her is list of lsmod
david@david-EL470AA-ABA-A1340N:~$ lsmod
Module Size Used by
8139too 33544 0
mii 13934 1 8139too
snd_hda_codec_realtek 61438 1
snd_hda_intel 52355 3
snd_hda_codec 192906 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13602 1 snd_hda_codec
snd_pcm 102099 2 snd_hda_codec,snd_hda_intel
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
snd_seq_midi 13324 0
bnep 19624 2
rfcomm 69160 0
snd_seq_midi_event 14899 1 snd_seq_midi
bluetooth 391196 10 bnep,rfcomm
snd_rawmidi 30144 1 snd_seq_midi
binfmt_misc 17468 1
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29482 2 snd_pcm,snd_seq
dm_multipath 22873 0
scsi_dh 14882 1 dm_multipath
snd 69238 16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
mac_hid 13205 0
serio_raw 13462 0
soundcore 12680 1 snd
i2c_piix4 22155 0
shpchp 37032 0
parport_pc 32701 1
ppdev 17671 0
lp 17759 0
parport 42348 3 lp,ppdev,parport_pc
btrfs 835954 0
xor 21411 1 btrfs
raid6_pq 97812 1 btrfs
libcrc32c 12644 1 btrfs
dm_mirror 22135 0
dm_region_hash 20862 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
pata_acpi 13038 0
usb_storage 62209 0
radeon 1522422 3
i2c_algo_bit 13413 1 radeon
ttm 85115 1 radeon
drm_kms_helper 53081 1 radeon
firewire_ohci 40409 0
drm 303102 5 ttm,drm_kms_helper,radeon
psmouse 106678 0
firewire_core 68769 1 firewire_ohci
crc_itu_t 12707 1 firewire_core
pata_atiixp 13271 0
sata_sil 13512 2

I get warning when i open blacklist is this ok.
david@david-EL470AA-ABA-A1340N:~$ sudo gedit /etc/modprobe.d/blacklist.conf
[sudo] password for david:

** (gedit:2687): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (gedit:2687): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

Swarfendor437

Fri Mar 20, 2015 12:50:58 pm

Interesting article here:

http://ftp.sun.ac.za/ftp/pub/documentat ... l8139.html

Not sure if it is up-to-date or not. ;)