Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with detecting kernel modules??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Kas_
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2012
Posts: 124

PostPosted: Wed Dec 12, 2012 9:17 pm    Post subject: Problem with detecting kernel modules?? Reply with quote

So, I'm not too sure what's wrong. (So, the title might be unrelated) Basically, gentoo was working fine yesterday and now things seem pretty messed up.
First, when I startx, neither the mouse nor the keyboard seems to work. The log says that I loaded the wrong module for my mouse...

Second, interface eth0 seems to not exist. It gave me a message telling me to 'Ensure that you have loaded the correct kernel module for your hardware'.

Third, when I tried to modprobe, I got an error that says, 'FATAL: Could not load /lib/modules/3.4.9-gentoo/modules.dep: No such file or directory.


I think that perhaps it's not detecting certain files because I have this problem with 40-monitor.conf in X. I use dual monitors but when I first start the computer up and startx, it completely ignores 40-monitor.conf.

Anyway, here's my logs.
Xorg.0.log.old = http://pastebin.com/aMgFGc2n
Xorg.1.log = http://pastebin.com/pKLeWtZ4
dmesg = http://pastebin.com/phefgCkg
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Dec 12, 2012 10:29 pm    Post subject: Reply with quote

Kas_,

Does ls /lib/modules/$(uname -r) return anything :?:

How did you build your kernel and did you upgrade it :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Kas_
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2012
Posts: 124

PostPosted: Wed Dec 12, 2012 10:50 pm    Post subject: Reply with quote

It returns:

build
kernel
source
modules:
alias
alias.bin
ccwmap
devnmae
isapnpmap
pcimap
symbols
builtin
dep
ieee1394map
ofmpa
seriomap
symbols.bin
alias
builtin.bin
dep.bin
inputmap
order
softdep
usbmap

I build it with make && make modules_install when I first compiled it. I didn't upgrade it. I recorded each service starting up, here the results. i think the problem is in udev.http://pastebin.com/zugacKHu
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Dec 12, 2012 11:43 pm    Post subject: Reply with quote

Kas_,

That directory doesn't look quite right :?

My list is:
Code:
stable bill # ls -l /lib/modules/$(uname -r)
total 300
lrwxrwxrwx 1 root root    27 Oct 20 21:17 build -> /usr/src/linux-3.5.7-gentoo/
drwxr-xr-x 7 root root  4096 Oct 20 21:17 kernel/
drwxr-xr-x 2 root root  4096 Oct 20 21:21 misc/
-rw-r--r-- 1 root root 37388 Oct 20 21:21 modules.alias
-rw-r--r-- 1 root root 28705 Oct 20 21:21 modules.alias.bin
-rw-r--r-- 1 root root  8142 Oct 20 21:17 modules.builtin
-rw-r--r-- 1 root root 10659 Oct 20 21:21 modules.builtin.bin
-rw-r--r-- 1 root root    69 Oct 20 21:21 modules.ccwmap
-rw-r--r-- 1 root root  3440 Oct 20 21:21 modules.dep
-rw-r--r-- 1 root root  5484 Oct 20 21:21 modules.dep.bin
-rw-r--r-- 1 root root   100 Oct 20 21:21 modules.devname
-rw-r--r-- 1 root root    73 Oct 20 21:21 modules.ieee1394map
-rw-r--r-- 1 root root   141 Oct 20 21:21 modules.inputmap
-rw-r--r-- 1 root root    81 Oct 20 21:21 modules.isapnpmap
-rw-r--r-- 1 root root    74 Oct 20 21:21 modules.ofmap
-rw-r--r-- 1 root root  1609 Oct 20 21:17 modules.order
-rw-r--r-- 1 root root 66620 Oct 20 21:21 modules.pcimap
-rw-r--r-- 1 root root    43 Oct 20 21:21 modules.seriomap
-rw-r--r-- 1 root root   131 Oct 20 21:21 modules.softdep
-rw-r--r-- 1 root root 36090 Oct 20 21:21 modules.symbols
-rw-r--r-- 1 root root 39517 Oct 20 21:21 modules.symbols.bin
-rw-r--r-- 1 root root   189 Oct 20 21:21 modules.usbmap
lrwxrwxrwx 1 root root    27 Oct 20 21:17 source -> /usr/src/linux-3.5.7-gentoo/

Yours doesn't show a modules.order, modules.dep etc. It look like the prefix of the file name is missing :?

Try running depmod -a then check the directory again with ls -l.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5586

PostPosted: Thu Dec 13, 2012 12:34 am    Post subject: Reply with quote

Actually, missing modules.dep would suggest that kernel wasn't built yet.
Back to top
View user's profile Send private message
Kas_
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2012
Posts: 124

PostPosted: Thu Dec 13, 2012 12:35 am    Post subject: Reply with quote

K, I solved it, probably with help from the irc gentoo guys. Udev was the problem so I chrooted and emerge sync, emerge udev, and ran dispatch-conf.
Then, reboot, re-install r8168 (the module i was missing) and all is well :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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