View previous topic :: View next topic |
Author |
Message |
txykumat Tux's lil' helper

Joined: 24 Nov 2014 Posts: 104
|
Posted: Mon Nov 24, 2014 9:49 pm Post subject: Network driver .ko file does not load |
|
|
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 |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 16494
|
Posted: Tue Nov 25, 2014 2:56 am Post subject: |
|
|
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 |
|
 |
txykumat Tux's lil' helper

Joined: 24 Nov 2014 Posts: 104
|
Posted: Tue Nov 25, 2014 6:16 am Post subject: |
|
|
what do these number stand for when you make entry into /etc/conf.d/modules such as "2" and "6" in
|
|
Back to top |
|
 |
txykumat Tux's lil' helper

Joined: 24 Nov 2014 Posts: 104
|
Posted: Tue Nov 25, 2014 3:32 pm Post subject: |
|
|
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 |
|
 |
dataking Apprentice


Joined: 20 Apr 2005 Posts: 251
|
Posted: Tue Nov 25, 2014 6:30 pm Post subject: |
|
|
txykumat wrote: | what do these number stand for when you make entry into /etc/conf.d/modules such as "2" and "6" in
|
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 |
|
 |
txykumat Tux's lil' helper

Joined: 24 Nov 2014 Posts: 104
|
Posted: Tue Nov 25, 2014 7:07 pm Post subject: |
|
|
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
|
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 |
|
 |
recursion n00b

Joined: 03 Nov 2014 Posts: 22
|
Posted: Thu Nov 27, 2014 5:23 pm Post subject: |
|
|
If I recall correctly the most specific kernel version wins so you'll have to uncomment modules_2_6 too |
|
Back to top |
|
 |
txykumat Tux's lil' helper

Joined: 24 Nov 2014 Posts: 104
|
Posted: Thu Nov 27, 2014 5:37 pm Post subject: |
|
|
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 |
|
 |
|