LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2015, 07:22 AM   #1
Hayat2015
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Rep: Reputation: Disabled
Trouble with Realtek ethernet driver on redhat 5 enterprise edition


hi everybody, i am new to linux. I have a Dell Optiplex 3020 core i5 machine. I have installed redhat enterprise edition 5 having kernel 2.6.18-164.el5PAE. The builtin ethernet card was not working so i took some help from a thread online http://ubuntuforums.org/showthread.php?t=1661489 . But unfortunately it didnt workout for me. Here is some output
#lsmod | grep r816*

r8169 37573 0
mii 9409 1 r8169

i downloaded the driver from http://www.realtek.com.tw/downloads/...Cbr%3ERTL8105E

when trying to run the autorun.sh got this

#./autorun.sh
check old driver and unload it.
rmmod r8169
Build the module and install
In file included from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168.h:34,
from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:73:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_dash.h:193:33: warning: no newline at end of file
In file included from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168.h:35,
from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:73:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_realwow.h:117:36: warning: no newline at end of file
In file included from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:73:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168.h:338:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:140,
from include/linux/pci.h:804,
from /u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:40:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c: In function ‘rtl8168_proc_module_init’:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:1292: error: ‘init_net’ undeclared (first use in this function)
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:1292: error: (Each undeclared identifier is reported only once
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:1292: error: for each function it appears in.)
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c: In function ‘rtl8168_init_board’:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:22173: warning: left shift count >= width of type
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c: In function ‘rtl8168_init_one’:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:22505: warning: assignment discards qualifiers from pointer target type
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c: In function ‘rtl8168_cancel_schedule_work’:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:24195: error: implicit declaration of function ‘cancel_work_sync’
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c: In function ‘rtl8168_cleanup_module’:
/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.c:25356: error: ‘init_net’ undeclared (first use in this function)
make[3]: *** [/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/u02/0002-r8168-8.040.00.tar.bz2_FILES/r8168-8.040.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2


-------------------------
so i got the clue that old driver are being loaded and its preventing it from installation and i removed it with rmmod command. still same problem


so i further googled the issue and found some where that kernel development rpm must be installed so i installed it from the dvd.

but still getting the same error.


I would highly appreciate any help.

Many thanks in Advance.
 
Old 10-03-2015, 11:38 AM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
You compile the driver with ./configure ; make ; make install

Code:
ifdown eth0
ifdown wlan0
ifdown --force wlan0
rmmod rtl8192cu
rmmod rtl8192cu

cd /home/xeratul/linux/wifi/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911
insmod 8192cu.ko

ls  8192cu.ko | grep 8192cu
 
1 members found this post helpful.
Old 10-03-2015, 01:16 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Hayat2015

WHY!!!

Why are you using the OLD legacy support RHEL5 ????
this is the LEGACY hardware / software OS from redhat
-- GREAT for 10+ year old hardware and 10+ YEAR OLD software

RHEL5 is however VERY CRAPPY for NEW hardware

Also you are using the even OLDER rhel5.4
"kernel 2.6.18-164.el5PAE" in in 5.4


the current in the OLD legacy support OS is RHEL 5.11 ( it is out of official full support and is now in the MAINTENANCE only support )

UPGRADE to 5.11 in the old legacy support OS
the current kernel in 5.11 2.6.18-406 should support it


-- think of RHEL5.4 as Windows XP or ME

the current operating system is RHEL 7.1



Quote:
working so i took some help from a thread online http://ubuntuforums.org/showthread.php?t=1661489

i take it you are NOT aware that RedHat is almost the exact opposite of UBUNTU
ubuntu is a Debian based OS
and redhat is well a REDHAT based os

use the REDHAT DOCUMENTATION
you really can NOT use the UBUNTU docs for redhat

( think of it as using a TOYOTA truck repair manual for a FORD TRUCK !!! )
-- it will not work out well

you did buy the REQUIRED support contract for the old LEGACY support OS ( for old legacy HARDWARE )
the std 1 year license for a desktop install is $ 299 per year

If you do not buy the required support contract , basically you DO NOT install anything

redhat really is not "FREE"

Last edited by John VV; 10-03-2015 at 01:50 PM.
 
1 members found this post helpful.
Old 10-03-2015, 02:11 PM   #4
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
@John, just curious why you like to use caps so much.
 
Old 10-03-2015, 04:12 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by oldtechaa View Post
@John, just curious why you like to use caps so much.
he likes colors. He has a right.

However, he might have not pull too much about the choice of @op. The OP decided to use some OSes, and it's his choice.
 
Old 10-03-2015, 07:28 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

I would agree that installing a newer version of Red Hat would most likely resolve this issue, if you are willing to pay (if you haven't already) for Red Hat's support package.

Regards...

Last edited by ardvark71; 10-03-2015 at 07:30 PM. Reason: Changed wording.
 
Old 10-03-2015, 11:05 PM   #7
Hayat2015
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
@ John VV: Thank you for your detailed reply. I am planning to install Oracle 11g R2 afterward installing a server version of linux based OS to work as database server. Which server side linux flavour would you recommend out of both paid and free ones.


Once again thanks for your earlier reply.
 
Old 10-03-2015, 11:07 PM   #8
Hayat2015
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Xeratul View Post
You compile the driver with ./configure ; make ; make install

Code:
ifdown eth0
ifdown wlan0
ifdown --force wlan0
rmmod rtl8192cu
rmmod rtl8192cu

cd /home/xeratul/linux/wifi/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911
insmod 8192cu.ko

ls  8192cu.ko | grep 8192cu
Thanks for the suggestion. I have already tried make and make install and will checkout ./configure.
 
Old 10-04-2015, 01:58 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are installing a oracle DATABASE than you really DO NOT!!!!! want to use a operating system that is missing SIX YEARS OF SECURITY FIXES AND UPDATES !!!
rhel5.4 is missing 6 years of security updates

and it is NOT FREE

nor is the oracle database really free you really do need to buy oracles support

contact redhat sales and BUY the current rhel

or
the BEST bet for running oracles database is to install ORACLES clone of redhat
OracleLinux
it is explicitly optimized to run oracles database

and dose so better than redhat
 
1 members found this post helpful.
Old 10-04-2015, 08:18 PM   #10
Hayat2015
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
@ John VV . Thanks a million.
 
  


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
redhat enterprise edition 5 javimd786 Linux - Newbie 1 01-01-2010 12:57 PM
VI Editor on RedHat Enterprise Edition dhirajsharma Red Hat 2 11-12-2007 08:18 PM
commands in redhat enterprise 5 edition iron_michael86 Linux - General 1 06-13-2007 10:10 PM
Realtek ethernet card with RedHat kengraham Linux - Newbie 1 05-09-2007 09:08 AM
R-Driver II usb 2.0 to ide cable driver for red hat Enterprise Edition 4. byju_das Linux - Hardware 0 11-22-2006 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:34 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