LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-07-2012, 12:30 AM   #1
ddalley
Member
 
Registered: Jul 2009
Posts: 31
Blog Entries: 4

Rep: Reputation: 0
Compiling RealTek RTL8111/8168B driver keeps on failing


I am plagued by the mess with RealTek networking drivers for the RTL8111/8168B, but when I try to follow the instructions to "make" the driver, it keeps on failing because something is not installed.

According to the package manager, the correct linux-source is installed. However...

Code:
make: *** /lib/modules/3.0.0-16-generic/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2
I don't have a drawer for "build".

Now what?
 
Old 04-07-2012, 12:38 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
That hardware is already supported by your kernel, why do you want to compile that driver in the first place?
 
Old 04-07-2012, 03:15 AM   #3
ddalley
Member
 
Registered: Jul 2009
Posts: 31

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Because many distros try to use the incorrect driver, so since the distros, such as Ubuntu or Linux Mint, are not fixing this error, users are left to fend for themselves.

Look up the driver number above and you will see.

Unfortunately, I can't get past this make error.
 
Old 04-07-2012, 05:08 AM   #4
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Rep: Reputation: 15
Latest driver RTL8111/8168B has all the compiling built into a shell script - just execute and it does the lot including the init stuff.

Ive just downloaded it and used it on my mint12 64 installation

IK
 
Old 04-07-2012, 07:43 PM   #5
ddalley
Member
 
Registered: Jul 2009
Posts: 31

Original Poster
Blog Entries: 4

Rep: Reputation: 0
I tried again last night, with version 8.029.00 dated 2012/3/29, after updating to 3.0.0.17, and no joy.

Code:
$ ./autorun.sh

Check old driver and unload it.
rmmod r8169
ERROR: Removing 'r8169': Operation not permitted
Build the module and install
make: *** /lib/modules/3.0.0-17-generic/build: No such file or directory.  Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
 
Old 04-07-2012, 08:29 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
Seems to me that you have to execute that script as root.
 
Old 04-07-2012, 10:25 PM   #7
ddalley
Member
 
Registered: Jul 2009
Posts: 31

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Tried that, too.
Didn't see a difference.

Code:
# ./autorun.sh

Check old driver and unload it.
rmmod r8169
Build the module and install
make: *** /lib/modules/3.0.0-17-generic/build: No such file or directory.  Stop.
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
 
Old 04-08-2012, 04:12 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871Reputation: 4871
On my system (Slackware) /lib/modules/3.2.13/build is a symlink to my kernel source (/usr/src/linux-3.2.13). Try to create such a symlink to your kernel source and do it again.
 
Old 04-08-2012, 05:51 AM   #9
ddalley
Member
 
Registered: Jul 2009
Posts: 31

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Theoretically, I created a symlink, but since this was my first attempt to do so, maybe theory is not reality because I still got an error.
 
Old 04-19-2012, 04:00 PM   #10
ddalley
Member
 
Registered: Jul 2009
Posts: 31

Original Poster
Blog Entries: 4

Rep: Reputation: 0
I finally figured out why the driver would not compile.

The instructions said to install two dev files (linux-source and linux-source-3.0.0) and I had; however, there was some sort of install error that meant that they wouldn't run properly and kept on causing an indeterminate error. No install error was given to me, so I had no idea there was a problem with them.

After contacting RealTek, I got the idea to check the installed program list, to see what state these two files were in. They were listed with an exclamation mark, so I re-installed them and then I was able to compile completely.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek RTL8111/8168B PCI does not work kea_kea Linux - Newbie 5 05-07-2012 09:33 PM
Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller morphynoman Slackware 31 07-18-2011 11:50 AM
Realtek new Driver for RTL8111/8168B mrgreen Linux - Networking 0 05-29-2011 09:47 AM
[SOLVED] Realtek driver RTL8111/8168B jwater1968 Linux - Networking 3 11-10-2010 05:34 AM
Realtek RTL8111/8168B IRQ clash with IDE driver? madbrad Linux - Hardware 23 04-15-2008 07:13 AM

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

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