LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-28-2011, 05:23 PM   #61
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Installing Ethernet Driver returns Error


Quote:
Originally Posted by corp769 View Post
Did you look at the bug report? The information provided should be able to help you.

Yes i did but, yum upgrade python* needs internet connection too. Back to square one :-)

alright i need some rest now, i'll be back tomorrow, thnx alot eventhough u said i shouldn't thnk u, but i just have too.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-29-2011, 12:40 AM   #62
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
@OP

You can use yum to install gcc from the dvd repo and hopefully it will also install its dependencies.
The rest of the "Development Tools" you might need can be found here. Use yum to install them too.

Regards
 
Old 03-29-2011, 02:48 PM   #63
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Installing Ethernet Driver returns Error

Quote:
Originally Posted by bathory View Post
@OP

You can use yum to install gcc from the dvd repo and hopefully it will also install its dependencies.
The rest of the "Development Tools" you might need can be found here. Use yum to install them too.

Regards

Hope u r doing good today? I've just re-installed the whole Red Hat O.S and included the gcc nd much more from the installation dvd. Then tried to install the Atheros Ethernet driver after i untar it and i got the following result. Any idea of what should i do next?

[root@localhost tmp]# cd r8168-8.022.00
[root@localhost r8168-8.022.00]# ls
autorun.sh Makefile README src
[root@localhost r8168-8.022.00]# vi README
[root@localhost r8168-8.022.00]# ./autorun.sh

Check old driver and unload it.
Build the module and install
Backup r8169.ko
rename r8169.ko to r8169.bak
Depending module. Please wait.
load module r8168
Completed.
 
Old 03-29-2011, 03:45 PM   #64
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Hi,

Looks like the driver was built successfully and loaded into the kernel. You can run (as root):
Code:
system-config-network
to configure the interface

Regards
 
Old 03-29-2011, 04:24 PM   #65
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Installing Ethernet Driver returns Error

Quote:
Originally Posted by bathory View Post
Hi,

Looks like the driver was built successfully and loaded into the kernel. You can run (as root):
Code:
system-config-network
to configure the interface

Regards
i ran system-config-network and a window popped up which has 2 options: device configuration and DNS configuration, i selected Device configuration but it is empty there is nothing in it, which shows that the ethernet card is still not being recognised. I also ran ifconfig and got the following result:


[root@localhost r8168-8.022.00]# system-config-network
[root@localhost r8168-8.022.00]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

virbr0 Link encap:Ethernet HWaddr BA:30:3F:280:B6
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
 
Old 03-29-2011, 04:50 PM   #66
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Well, according to the driver compilation output, the module was built successfully and loaded into the kernel, while the old one was renamed to r8169.bak. Check if this is true:
Code:
lsmod|grep r816
If not, you need to unload the old r8169 and load the new r8168:
Code:
rmmod -f r8169
modprobe r8168
Run "dmesg" to see if you got any errors and if everything goes well, try to rerun the network configuration tool, or run directly
Code:
ifconfig eth0 x.x.x.x netsmask 255.255.255.0 up
to give an IP to the interface
 
Old 03-29-2011, 05:04 PM   #67
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Unhappy Installing Ethernet Driver returns Error

Hello all,
For several days i've been trying to make my ethernet card work so i can connect to the internet. I was told that i needed to get the driver for my card which i did. At first when i installed the driver there was some errors which suggested that i needed a kernel devel package, after getting the correct kernel devel from redhat then i needed gcc, and then several dependencies for the gcc and so on. The problem was becoming endless so i decided to reinstall the operating system and include all the needed packages from the dvd which i did successfully. Now i'm back to install my atheros ethernet card and i got the following results after running ./autorun.sh

[root@localhost tmp]# cd r8168-8.022.00
[root@localhost r8168-8.022.00]# ls
autorun.sh Makefile README src
[root@localhost r8168-8.022.00]# vi README
[root@localhost r8168-8.022.00]# ./autorun.sh

Check old driver and unload it.
Build the module and install
Backup r8169.ko
rename r8169.ko to r8169.bak
Depending module. Please wait.
load module r8168
Completed.


i then ran system-config-network and a window popped up which has 2 options: device configuration and DNS configuration, i selected Device configuration but it is empty there is nothing in it, which shows that the ethernet card is still not being recognised. I also ran ifconfig and got the following result:


[root@localhost r8168-8.022.00]# system-config-network
[root@localhost r8168-8.022.00]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

virbr0 Link encap:Ethernet HWaddr BA:30:3F:280:B6
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Any idea how to detect and configure my card?
 
Old 03-29-2011, 05:41 PM   #68
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Installing Ethernet Driver returns Error

Quote:
Originally Posted by bathory View Post
Well, according to the driver compilation output, the module was built successfully and loaded into the kernel, while the old one was renamed to r8169.bak. Check if this is true:
Code:
lsmod|grep r816
If not, you need to unload the old r8169 and load the new r8168:
Code:
rmmod -f r8169
modprobe r8168
Run "dmesg" to see if you got any errors and if everything goes well, try to rerun the network configuration tool, or run directly
Code:
ifconfig eth0 x.x.x.x netsmask 255.255.255.0 up
to give an IP to the interface
Thanks for ur reply but there's still no soln

I ran lsmod|grep r816 but there's nothing.

I ran rmmod -f r8169 to unload it but it says command not found

I ran modprobe r8168 it accepted the command

I ran dmesg, didn't see any error

I ran ifconfig eth0 x.x.x.x netsmask 255.255.255.0 up but it says Host name lookup failure

Last edited by Zahar2011; 03-29-2011 at 05:43 PM.
 
Old 03-30-2011, 12:56 AM   #69
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
I ran lsmod|grep r816 but there's nothing.
That means there is no module loaded. Neither r6168 or r6169.
Quote:
I ran rmmod -f r8169 to unload it but it says command not found
I guess it said no such module or something like that.

Quote:
I ran modprobe r8168 it accepted the command
Apparently the new module was loaded without any errors. You can verify it with lsmod.

Quote:
I ran dmesg, didn't see any error
You should see something regarding the module and the network interface created

Quote:
I ran ifconfig eth0 x.x.x.x netsmask 255.255.255.0 up but it says Host name lookup failure
I did a typo, sorry. It's netmask not netsmask. Also the interface name could be something else instead of eth0, if you already have an eth0 interface. You can edit /etc/modprobe.conf and use
Code:
alias ethX r8168
so the driver is used by ethX (replace X with the appropriate number)

Regards
 
Old 03-30-2011, 05:55 AM   #70
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Although I said that I won't post in this thread anymore, I just have one thing to say. The r8168 and r8169 modules are for Realtek-chips, but you have an Atheros-chip. The r8168/9-module will simply not work for you.
I posted that also back in post #25 in this thread.
 
2 members found this post helpful.
Old 03-30-2011, 01:02 PM   #71
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Installing Ethernet Driver returns Error

Quote:
Originally Posted by TobiSGD View Post
Although I said that I won't post in this thread anymore, I just have one thing to say. The r8168 and r8169 modules are for Realtek-chips, but you have an Atheros-chip. The r8168/9-module will simply not work for you.
I posted that also back in post #25 in this thread.
Hello there,

You are absolutely right! i made a mistake, i downloaded both the atheros and realtek drivers and put them in one folder. Believe me i thought i was dealing with atheros driver all along..i'm sorry 4 everything. Now i'm using the atheros driver but not so sure whether it is the exact one. My computer's ethernet chip is AR8151 pci-E gigabite ethernet controller but i can't find the same name but i got the general AR81Family for linux. it comes as a compressed tar file i.e AR81Family-linux-v1.0.1.14.tar.gz, so i untar it using tar xvfz [pckg name]. I then moved to the src file, ran make install and i got the following result:

[root@localhost tmp]# cd src/
[root@localhost src]# make install
make -C /lib/modules/2.6.32-71.el6.x86_64/build SUBDIRS=/tmp/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-71.el6.x86_64'
CC [M] /tmp/src/at_common_main.o
CC [M] /tmp/src/atl1e_main.o
CC [M] /tmp/src/atl1c_main.o
CC [M] /tmp/src/atl1c_hw.o
CC [M] /tmp/src/atl1e_hw.o
CC [M] /tmp/src/atl1e_param.o
CC [M] /tmp/src/atl1c_param.o
CC [M] /tmp/src/atl1e_ethtool.o
CC [M] /tmp/src/atl1c_ethtool.o
CC [M] /tmp/src/kcompat.o
LD [M] /tmp/src/atl1e.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/src/atl1e.mod.o
LD [M] /tmp/src/atl1e.ko.unsigned
NO SIGN [M] /tmp/src/atl1e.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.x86_64'
gzip -c ../atl1e.7 > atl1e.7.gz
# remove all old versions of the driver
find /lib/modules/2.6.32-71.el6.x86_64 -name atl1e.ko -exec rm -f {} \; || true
find /lib/modules/2.6.32-71.el6.x86_64 -name atl1e.ko.gz -exec rm -f {} \; || true
install -D -m 644 atl1e.ko /lib/modules/2.6.32-71.el6.x86_64/kernel/drivers/net/atl1e/atl1e.ko
/sbin/depmod -a || true
install -D -m 644 atl1e.7.gz /usr/share/man/man7/atl1e.7.gz
man -c -P'cat > /dev/null' atl1e || true
Formatting page, please wait...

i then ran ifconfig

[root@localhost src]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

virbr0 Link encap:Ethernet HWaddr E2:505:4D:0C:10
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

I then ran system-config-network-tui but still there's nothing loaded!

Any idea what's going on?

Last edited by Zahar2011; 03-30-2011 at 02:16 PM.
 
Old 03-30-2011, 04:34 PM   #72
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Hi,

Now you have the correct driver for your nic, try to load it and see what happens:
Code:
modprobe atl1e
dmesg
ifconfig -a
 
1 members found this post helpful.
Old 03-30-2011, 06:53 PM   #73
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
: Installing Ethernet Driver returns Error

Quote:
Originally Posted by bathory View Post
Hi,

Now you have the correct driver for your nic, try to load it and see what happens:
Code:
modprobe atl1e
dmesg
ifconfig -a
Hi,

i got the following at the end of running the 3 commands:

[root@localhost src]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 60:EB:69:A0:45:1B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

virbr0 Link encap:Ethernet HWaddr D68:0E:4B:69:AE
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

i ran system-config-network-tui, still there's nothing loaded!
 
Old 03-31-2011, 05:04 AM   #74
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Hi,

You now have an eth0 interface.
Quote:
i got the following at the end of running the 3 commands:

[root@localhost src]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 60:EB:69:A0:45:1B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17
...
What was the output of dmesg? You should see if the device eth0 uses the atl1e module.
Then try to configure it manually and see what happens:
Code:
ifconfig eth0 x.x.x.x netmask 255.255.255.0 up
(replace x.x.x.x with the ip you want to assign to that interface)
 
1 members found this post helpful.
Old 03-31-2011, 09:43 AM   #75
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by bathory View Post
Hi,

You now have an eth0 interface.
What was the output of dmesg? You should see if the device eth0 uses the atl1e module.
Then try to configure it manually and see what happens:
Code:
ifconfig eth0 x.x.x.x netmask 255.255.255.0 up
(replace x.x.x.x with the ip you want to assign to that interface)
Hi,

Many thanks for your responses.
the output of dmesg shows eth0 interface is using Atl1C not atl1e as u can see below, but nontherless i configured it and assigned it and ip of 192.168.1.102 and the output shows that its up and running yet i am still not connected to the internet!

SELinux: initialized (dev proc, type proc), uses genfs_contexts
fuse init (API version 7.13)
alloc irq_desc for 35 on node -1
alloc kstat_irqs on node -1
atheros_eth 0000:03:00.0: irq 35 for MSI/MSI-X
atheros_eth 0000:03:00.0: ATL1C: eth0 NIC Link is Up<100 Mbps Full Duplex>
eth0: no IPv6 routers present
[root@localhost /]#

[root@localhost /]# ifconfig
eth0 Link encap:Ethernet HWaddr 60:EB:69:A0:45:1B
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::62eb:69ff:fea0:451b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:2070 (2.0 KiB) TX bytes:468 (468.0 b)
Interrupt:35

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)

virbr0 Link encap:Ethernet HWaddr 0A:0C:79:B2:CB:0A
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

so what should i do next to get connected?
 
  


Reply



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
[SOLVED] Installing Ethernet Driver gives me Error Hassan989 Linux - Software 4 03-22-2011 02:34 PM
Installing Ethernet Driver gives me Error Hassan989 Linux - Hardware 3 03-22-2011 11:03 AM
error while installing bcm4400 RPM ethernet driver ksr Red Hat 1 10-08-2004 02:33 PM
installing GDAM returns GTK error b_s Linux - Software 1 08-31-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:19 AM.

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