LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-09-2006, 02:54 AM   #1
Kuma
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2005 LE x86_64
Posts: 6

Rep: Reputation: 0
Realtek rtl8168


I'm not exactly sure where this should go, but I have mandriva 2k5 LE x86_64 installed on another partition for experimentation, so I guess this is the right place.

Mandriva installed just peachy on my athlon 64 3k+, detected my x300se well, and everything works just great. however the onboard gigE port riding the pci-e bus on it does not work, not even detected on harddrake.

If you want to know exactly what motherboard and all that that I have it's an ASRock 939sli32 esataII. (got a nice deal on it =D )
Drake detects the firewire port and dubs it eth0, but I can't use that.

I got the driver from the realtek website but I am relatively new when it comes to working with linux (hence the experimentation) and I don't know how to install it. reading the readme file, it says that if I am running the target kernel that I can "make clean modules," "make install," and "depmod -a"
Well I get an error every time I make a command while in that directory.

I read a post by mr coffee (I can't post the url to that topic), but it seems he has a different ethernet chipset than I do. Either way, I will try rebooting into my installation again to see if it works.

Thank you very much,
~bear
 
Old 04-09-2006, 05:02 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
check you have enabled your realtek in your bios pls?

/var/log/messages do a search for r8169?

you should be able to just load a module without needing any special download

while booted with su powers check command
lsmod for r8169 if not there you can do a manual load with command
modprobe r8169

if lsmod then works you can add it to your start up scripts with an entry in
/etc/modprobe.preload


anyhow you will also need to have a look at ifconfig -a after loading the module

I am on dial up so thats as far as I can go....good luck

Last edited by aus9; 04-09-2006 at 05:03 AM.
 
Old 04-09-2006, 02:00 PM   #3
Kuma
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2005 LE x86_64
Posts: 6

Original Poster
Rep: Reputation: 0
The onboard ethernet Was enabled in the bios.
In /var/log/messages, nothing resembling that number showed up, and Lsmod didn't have it either.

modprobe r8168 didn't do anything, it seemed. When I entered it it simply went back to root@mypcname#

Well i think I may have to recompile the kernel with the driver I downloaded. I don't seem to have the kernel source on the cd, though. I can, however, download it and place it on my fat32 hd and access it later. Even if I get it, I don't know how to do it.
I'll keep reading these posts in hopes of finding answers.

Thank you for your time anyway.
 
Old 04-13-2006, 09:32 AM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
too much aussie beer, sorry.....does there appear any mention of r(number) in /var/log/messages ....not 8169?

here is my bit so you do not have to use grep

Jan 22 15:54:36 localhost kernel: r8169: eth0: PHY reset until link up

you could also search under eth0 - zero not ohh
 
Old 04-13-2006, 11:47 PM   #5
Kuma
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2005 LE x86_64
Posts: 6

Original Poster
Rep: Reputation: 0
No, in /var/log/messages there is no mention of Rxxxx anything.
And I don't exactly know what you mean by searching under eth0. If it makes any sense, It only detects the onboard firewire port and automatically detected a PCI ethernet card that I plugged into it to get SOME form of internet connection. It works and is recognized as eth1.

On a side note, I cant seem to find any archiving utility to extract various source tarballs that I have downloaded (namely the kernel source.)
 
Old 04-15-2006, 01:40 AM   #6
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
re-looking at your modprobe did nothing post......once you have done a modprobe (it inserts the module one time while booted....) then you re-do a lsmod with su powers to tell if its loaded.....could you be more explicit and tell me if in then reports that module loaded pls

I have stopped mine and redone it to show what it should look like with su powers

[root@localhost g]# modprobe r8169
[root@localhost g]# lsmod
Module Size Used by
r8169 21740 0


change yours to r8168 if you are confident that is what it is pls


if it is correct you can then add the correct line
modprobe r81XX to /etc/modprobe.preload for each boot up


and then whatever is the correct r number will show up in /var/log/messages and of course with su powers
ifconfig -a should then list both your eth0 and eth1 card details

Last edited by aus9; 04-15-2006 at 01:42 AM.
 
Old 04-15-2006, 04:37 PM   #7
bobbelfield
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Mandriva 2006
Posts: 154

Rep: Reputation: 30
Quote:
Originally Posted by Kuma
On a side note, I cant seem to find any archiving utility to extract various source tarballs that I have downloaded (namely the kernel source.)
In KDE or gnome click on the file it opens the directory then open a terminal there and try ./configure from there

else in a console its a command tar or untar with options and then the file you want to open

type "man tar" for info
 
Old 04-16-2006, 01:32 AM   #8
Kuma
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2005 LE x86_64
Posts: 6

Original Poster
Rep: Reputation: 0
Hmm. I did modprobe r8168 (It is in fact, r8168 and not 8169), but there is no module to load, at least that is what it tells me. I downloaded the Rtl8168 driver from the realtek website, but it doesn't make properly.
Well, I'll post exactly what happened. (It seems that something like this has allready happend to a few people as it is)
Code:
[root@mercedes r1000]# make install
make -C src/ install
make[1]: Entering directory `/home/mercedes/r1000/src'
install -m 644 -c r1000.ko /lib/modules/2.6.11-6mdk/kernel/drivers/net/
install: cannot stat `r1000.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mercedes/r1000/src'
make: *** [install] Error 2
I have been a long time windows user and have only dabbled in these things. Mdk has treated me well but this is the first time I've ever had to make a driver for my hardware.

in reply to bob: ./configure gives me a 'no such file or directory' response, untar tells me that there is no such command. I can extract the bz2 archive though, it seems that clicking a tarball on the desktop does not agree with it. Probably just a fluke though.
 
Old 04-16-2006, 02:57 AM   #9
bobbelfield
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Mandriva 2006
Posts: 154

Rep: Reputation: 30
Excuse me interupting Rus9 please continue Kuma you did type "make" first yes? I think thats what should come first if there is no configure file Also I note I could not find a 2.6 kernel driver only a 2.4 version here
So I hope you got the right one?
http://www.opendrivers.com/driver/22...-download.html

Last edited by bobbelfield; 04-16-2006 at 03:12 AM.
 
Old 04-16-2006, 03:12 AM   #10
Kuma
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2005 LE x86_64
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bobbelfield
Excuse me interupting Rus9 please continue
Kuma you did type "make" first yes?
Yes, I got a similar error.
On another side note, I attempted to install gtkspell, saying to run the configure file in the console before anything, but it says that I don't have a viable C compiler. Does mandriva 2005 not have it?

Added: as for the kernel compatibility, the downloaded realtek files said explicitly that it had the ability to be used for both 2.4.x and 2.6.x

Second addition: What I mean is This chipset. To stop any more confusion

Last edited by Kuma; 04-16-2006 at 03:21 AM.
 
Old 04-16-2006, 03:35 AM   #11
bobbelfield
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Mandriva 2006
Posts: 154

Rep: Reputation: 30
Hmm Ok I just had a look at the realtek sitehttp://www.realtek.com.tw/downloads/...16Unix (Linux)
and it only lists as 2.4

Yes to compile programs like these you must have a compiler installed and if you don't choose the developer options on first install you won't get one
The pre-compiled binaries are more available these days and if you go here http://easyurpmi.zarb.org/
and follow the instructions you can get the video and audio codecs and other stuff they cant put in the distros for legal reasons.

The driver may be precompiled on the plf or main library
Normally the compile process is
Go to the chosen directory
./configure
make
make install
but you probably know that also you did it as root so thats not it
Interestingly I dont have it installed and I get an error typing in "make"
so your machine may have it installed already
just type "su -" enter pass
then type "make" or "gcc" and see what comes up .Ill keep thinking till Rus9 comes back
 
Old 05-07-2006, 11:10 AM   #12
bodean
LQ Newbie
 
Registered: May 2006
Distribution: UBuntu
Posts: 9

Rep: Reputation: 0
I downloaded the realtek rtl8168/8111 linux driver, and moved it to linux partition, and when I go into terminal, and type make clean install it says "make: command not found"
I'm following the directions on how to install this driver, but not sure why this isnt working. using ubuntu (dapper beta 2)
 
Old 09-16-2006, 08:44 PM   #13
liuzexi2002
LQ Newbie
 
Registered: Sep 2006
Location: GuangZhou of China
Distribution: fedora
Posts: 6

Rep: Reputation: 0
hello Kuma

[QUOTE=Kuma]Hmm. I did modprobe r8168 (It is in fact, r8168 and not 8169), but there is no module to load, at least that is what it tells me. I downloaded the Rtl8168 driver from the realtek website, but it doesn't make properly.
Well, I'll post exactly what happened. (It seems that something like this has allready happend to a few people as it is)
[code]
[root@mercedes r1000]# make install
make -C src/ install
make[1]: Entering directory `/home/mercedes/r1000/src'
install -m 644 -c r1000.ko /lib/modules/2.6.11-6mdk/kernel/drivers/net/
install: cannot stat `r1000.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mercedes/r1000/src'
make: *** [install] Error 2


I met the same errors too,wo use the FC5,do you have resolve this questions?
if yes, I holp you can give me a mail,
my mial is:liuzexi2002@126.com
thanks advance!
 
Old 09-17-2006, 04:43 AM   #14
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
bobbelfield
thanks for the link so it is for a kernel 2.6 as well...when you unpack the download you will read this in the release note
_______
r1000 v1.04 <2006/07/07>
solve the compile issue in Linux kernel 2.6.x
end of quote_________________




Kuma


back to you, me thinks it is a dependency ( a file or more) you are missing from your system that causes the failure.



lets go back a step and forgive any patronising none intended.

1) Have you been able to compile any other software on your current troublesome setup?

2) Have you got the headers and the source kernel for the one you are running?

a quick check in /boot should show kernel header then what kernel=vmlinuz you are booting....then go to /usr/src to see what kernels you have and where they point to ....for me they point to /opt/ folder yours may differ

Check and search your mcc install software for the keyword kernel and binutils etc to install the stuff (I hope)

2) try these commands and report what the actual error message pls

I use KDE...terminal application called Konsole which has a copy and paste function if you need to copy any errors to a new opened text file for pasting into your reply

________
cd /home/yourname/path to file/

eg [g@]$ cd Download/
[g@ Download]$ ls
r1000_v1.04.tgz
[g@ Download]$ tar vzxf r1000_v1.04.tgz
r1000_v1.04/
r1000_v1.04/release_note.txt
r1000_v1.04/README
r1000_v1.04/src/
r1000_v1.04/src/Makefile_linux24x
r1000_v1.04/src/Makefile_linux26x
r1000_v1.04/src/r1000_ioctl.c
r1000_v1.04/src/r1000.h
r1000_v1.04/src/Makefile
r1000_v1.04/src/r1000_n.c
r1000_v1.04/Makefile

if you do not get above output then you may have attempted to run the command with the readme command of r1000_vX.YZ.tgz instead of the correct version that you just downloaded?

lets move on

cd into the new folder
eg cd r1000_v1.04/

now change to root powers

su
(then root passwd)

changes prompt from $ to #
eg
[g@ Download]$ su
Password:
[root@ Download]#

make clean modules
make install
depmod -a

Now I run a vanilla kernel which I won't explain but you are attempting to build a module that is then installed and linked for the kernel to grab.

However, Mandriva and other distros may have different hardware detections so go into Mcc and check the services area and that you have on boot ...Hal and hardware detection or whatever its called pls
 
Old 09-17-2006, 04:54 AM   #15
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
oh I fogot to mention some more details that may affect you
see this link
http://www.realtek.com.tw/products/p...odelid=2005011

well it mentions certain protocols, they may not be in your current config file for your current kernel.

a copy of the config file is in /boot
open it with a text file and search for expressions (not case sensitive orwhole words) like
ethernet
ieee
network


and after module is installed search for
8168

Of course my kernel has 8169 loaded like this
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
CONFIG_R8169=y
 
  


Reply

Tags
driver, tar


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
realtek 8180 again! sundevil Mandriva 5 06-03-2006 10:00 AM
realtek rtl8139 rokstar Linux - Wireless Networking 1 09-22-2004 04:06 PM
realtek Sheltraw Linux - Networking 1 05-05-2004 02:27 PM
realtek 8139 poortl9109 Linux - Hardware 6 12-18-2002 02:39 PM
RealTek 3193 blankx87@m-i-m. Linux - Networking 2 11-17-2002 06:05 AM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration