Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network driver .ko file does not load
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
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Mon Nov 24, 2014 9:49 pm    Post subject: Network driver .ko file does not load Reply with quote

The first time I tried to install Gentoo, I could not get network to work. But the boot disk can get my network going and I found out that I need r8169 module for my network card. I enable it in kernel but didn't load any driver. So I copied r8169.ko file from boot disk to
Code:
/mnt/gentoo/lib/modules/3.16.5-gentoo/kernel/drivers/net/ethernet/realtek/
and then entered
Code:
module_2__6="r8169"

in /etc/conf.d/modules.

Then I did
Code:
ln -s net.lo net.enp1s0
rc-update add net.enp1s0 default


before I did that, I also entered
Code:
config_enp1s0="dhcp"

in /etc/conf.d/net. Then miracle! My network started to work via dhcpcd.

Later on, I had problem with sound because I cannot get sound module to load in similar fashion. I tinkered and tinkered and could not figure out so I wiped hdd and restarted from scratch. Now even though I did exactly the same as above, network is not working; it appears that no module is loading at all. Any help would be appreciated. Is there something in make menuconfig that I need enable for the modules to load?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13504

PostPosted: Tue Nov 25, 2014 2:56 am    Post subject: Reply with quote

You must have CONFIG_MODULES=y or your kernel will be unable to load modules. If you enabled module signing, you also need to sign the modules before they can be loaded. Modules built by the kernel build process will be signed automatically. Modules imported from some other source may not be signed or may be signed with a different key than your kernel expects. In general, you should only copy modules from another source if you know they were built with a compatible kernel configuration. You may find an explanation for the failure to load in dmesg.
Back to top
View user's profile Send private message
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Tue Nov 25, 2014 6:16 am    Post subject: Reply with quote

what do these number stand for when you make entry into /etc/conf.d/modules such as "2" and "6" in
Code:
module_2_6="r8169"
Back to top
View user's profile Send private message
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Tue Nov 25, 2014 3:32 pm    Post subject: Reply with quote

Kernel was configured to load module but still module is not loading at all. I uncommented all the module but none loads. I have no network no sound. This is hopeless.
Back to top
View user's profile Send private message
dataking
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 251

PostPosted: Tue Nov 25, 2014 6:30 pm    Post subject: Reply with quote

txykumat wrote:
what do these number stand for when you make entry into /etc/conf.d/modules such as "2" and "6" in
Code:
module_2_6="r8169"

I believe that specifies the general kernel version. Try "modules="r8169"" if you are using a 3.x kernel.
_________________
-= the D@7@k|n& =-
Back to top
View user's profile Send private message
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Tue Nov 25, 2014 7:07 pm    Post subject: Reply with quote

dataking wrote:
txykumat wrote:
what do these number stand for when you make entry into /etc/conf.d/modules such as "2" and "6" in
Code:
module_2_6="r8169"

I believe that specifies the general kernel version. Try "modules="r8169"" if you are using a 3.x kernel.


Thank you, I will try plain module="r8169"
Back to top
View user's profile Send private message
recursion
n00b
n00b


Joined: 03 Nov 2014
Posts: 22

PostPosted: Thu Nov 27, 2014 5:23 pm    Post subject: Reply with quote

If I recall correctly the most specific kernel version wins so you'll have to uncomment modules_2_6 too
Back to top
View user's profile Send private message
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Thu Nov 27, 2014 5:37 pm    Post subject: Reply with quote

recursion wrote:
If I recall correctly the most specific kernel version wins so you'll have to uncomment modules_2_6 too


this mean module_3_16_5="r8169" would work best since I have 3.16.5-gentoo kernel. I am having problem loading audio driver/modules...
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