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
 
LinkBack Search this Thread
Old 02-19-2006, 11:27 AM   #1
BeGosV
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Problem compiling r8169 driver


-----

PROBLEM IS SOLVED ALREADY. DON'T KNOW HOW TO REMOVE MY THREAD.....

------


Hello,

I am running Suse 9.3 Pro with all kernel components installed and I have a problem compiling the driver for the US Robotics Gigabit Ethernet PCI adapter. The only info is in the readme and says:

-----
<RTL8169 Linux kernel driver>

Version: 2.0
Date: 2004-04-16
This is the Linux kernel driver released for
RealTek RTL8169s/8110s Gigabit Ethernet controller.

<Requirements>

- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
Unpack the tarball :
unzip r8169_linuxdrv_vxx.zip

Change to the directory:
cd r8169

If you are running the target kernel, then you should be
able to do :

make clean modules (as root or with sudo)
make install
depmod -a
-----

I meet all the requirements but when I do "make clean modules" I get the following output:

make -C src/ clean
make[1]: Entering directory `/root/r8169/src'
rm -f *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags
make[1]: Leaving directory `/root/r8169/src'
make -C src/ modules
make[1]: Entering directory `/root/r8169/src'
make -C /lib/modules/2.6.11.4-20a-default/build SUBDIRS=/root/r8169/src modules
make[2]: Entering directory `/usr/src/linux-2.6.11.4-20a-obj/i386/default'
make -C ../../../linux-2.6.11.4-20a O=../linux-2.6.11.4-20a-obj/i386/default modules
/root/r8169/src/Makefile:28: /usr/src/linux-2.6.11.4-20a/src/Makefile_linux26x: Onbekend bestand of map (unknown file or directory)
make[5]: *** Geen regel voor het maken van doel `/usr/src/linux-2.6.11.4-20a/src/Makefile_linux26x'. Stop.
make[4]: *** [_module_/root/r8169/src] Fout 2
make[3]: *** [modules] Fout 2
make[2]: *** [modules] Fout 2
make[2]: Leaving directory `/usr/src/linux-2.6.11.4-20a-obj/i386/default'
make[1]: *** [modules] Fout 2
make[1]: Leaving directory `/root/r8169/src'
make: *** [modules] Fout 2
-----

'Fout 2' is dutch for 'Error 2'

Can somebody please help me solve this problem?

Kind regards,

Berry Goossens

Last edited by BeGosV; 02-19-2006 at 01:39 PM.
 
Old 02-20-2006, 04:15 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 51
Happy you found the solution but may I ask you how you solved the problem?
 
Old 02-23-2006, 02:25 PM   #3
BeGosV
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Solution to problem compiling r8169 driver

Sure I can tell you my solution, here it is:

The output of the compiler says at some point

/root/r8169/src/Makefile:28: /usr/src/linux-2.6.11.4-20a/src/Makefile_linux26x: unknown file or directory

The bold part is not correct. The file Makefile_linux26x is located in the src directory which is located in the directory I am compiling from (In my case /root/r8169). So the bold part is correct looking from this directory but not if one is looking from the linux kernel source directory. So somewhere an error is present in the makefile which makes the compiler search for the file in the wrong directory.
I solved it by making a src directory in /usr/src/linux-2.6.11.4-20a/ and put the file Makefile_linux26x in there and with this giving the compiler what it wants.
After this it compiled correctly.

It is a rather rough solution but I think it works.

However I still can't get it to initialise during boot, but I think this is a common problem which I already came across earlier. I will tackle this problem later.

Hope this is clear.

Kind regards,

Berry
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem compiling cx88 driver EchO Linux - Software 1 02-04-2006 11:02 PM
_very_ strange problems with r8169 nic driver outwardlymobile Linux - Hardware 3 11-24-2004 03:41 PM
Compiling r8169.c network card driver on Alpha... Minuteman Linux - Hardware 1 04-03-2004 06:59 AM
Problem with compiling modem driver csspcman Linux - Software 1 08-14-2003 01:36 PM
driver install problem. It's for redhat 6.2, but compiling in 7.3 hardigunawan Linux - Software 3 09-09-2002 07:01 PM


All times are GMT -5. The time now is 01:13 PM.

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
Open Source Consulting | Domain Registration