Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Realtek RTL8168 & Modules Issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dazzed
n00b
n00b


Joined: 19 Dec 2006
Posts: 2

PostPosted: Tue Dec 19, 2006 6:32 pm    Post subject: Realtek RTL8168 & Modules Issue Reply with quote

I recently decided to install Gentoo on my Asus W3J. I've been a Fedora user and everything is pretty simple with it so I knew this would be a bit harder.

Of course, Gentoo doesn't support neither my lan or wifi card. So I used the 2006.1 live cd and did the GTK networkless install. So now I'm trying to set up my Realtek RTL8168 with the drivers found on the wiki.

I've run into some errors, I think it has to do with the modules. See if you can take a look at what I'm getting when I try to compile r1000.

Code:
localhost linux # uname -r
2.6.17-gentoo-r7


I set it up this way from another forum topic saying to do so:
Code:
localhost linux # ls -l
total 16
-rw-r--r-- 1 root root  490 Aug 30 04:35 Makefile
-rw-r--r-- 1 root root 1892 Aug 30 04:35 README
drwxr-xr-x 3 root root 4096 Dec 18 21:07 r1000
-rw-r--r-- 1 root root  567 Nov 14 23:09 release_note.txt
lrwxrwxrwx 1 root root   24 Dec 18 21:08 src -> /usr/src/linux/r1000/src


from the /usr/src/linux/r1000 dir
Code:
localhost r1000 # make clean modules
make -C src/ clean
make[1]: Entering directory `/usr/src/linux/r1000/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions
make[1]: Leaving directory `/usr/src/linux/r1000/src'
make -C src/ modules
make[1]: Entering directory `/usr/src/linux/r1000/src'
make -C /lib/modules/2.6.17-gentoo-r7/build SUBDIRS=/usr/src/linux/r1000/src modules
make: *** /lib/modules/2.6.17-gentoo-r7/build: No such file or directory.  Stop.make: Entering an unknown
directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux/r1000/src'
make: *** [modules] Error 2


from the /usr/src/linux dir
Code:
localhost linux # make modules_install
make: *** No rule to make target `modules_install'.  Stop.


i've also changed:
Code:
#ifdef MODULE_PARM
MODULE_PARM (speed, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(speed,"Link speed");
MODULE_PARM (duplex, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(duplex,"Link duplex");
MODULE_PARM (autoneg, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(autoneg,"Autonegotiation");
#else //MODULE_PARM


to
Code:
#ifdef MODULE_PARM
MODULE_PARM_DESC (speed, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(speed,"Link speed");
MODULE_PARM_DESC (duplex, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(duplex,"Link duplex");
MODULE_PARM_DESC (autoneg, "1-" __MODULE_STRING(MAX_UNITS) "i");
MODULE_PARM_DESC(autoneg,"Autonegotiation");
#else //MODULE_PARM


and still no luck.

I think the issue has to do with the modules, seeing how it looks for the build directory but it doesn't exist.

Anyone know what I should?

Thanks in advance!
Back to top
View user's profile Send private message
dazzed
n00b
n00b


Joined: 19 Dec 2006
Posts: 2

PostPosted: Wed Dec 20, 2006 4:14 am    Post subject: Reply with quote

Anyone with any ideas on how to fix this? Thanks
Back to top
View user's profile Send private message
gr650
n00b
n00b


Joined: 07 Jan 2005
Posts: 43
Location: Wil SG, Switzerland

PostPosted: Wed Dec 20, 2006 2:45 pm    Post subject: Reply with quote

yep, just encountered the same problem. Enable the Realtek 8169 module in the kernel config; I just modprobed that and it gave me eth0 straightaway :)

(Running kernel 2.6.18-r4)
Back to top
View user's profile Send private message
gr650
n00b
n00b


Joined: 07 Jan 2005
Posts: 43
Location: Wil SG, Switzerland

PostPosted: Wed Dec 20, 2006 3:52 pm    Post subject: Reply with quote

Just as an update:

The corresponding kernel module is located under
Code:
Device Drivers
-Network Device Support
--Ethernet (1000MBit)
---Realtek 8169 gigabit ethernet support


compile this as a module and then try
Code:
modprobe r8169
, this works fine for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum