View previous topic :: View next topic |
Author |
Message |
jessicavampirehunter Tux's lil' helper
Joined: 22 Jul 2005 Posts: 79 Location: Portland, OR
|
Posted: Fri Aug 05, 2005 4:14 pm Post subject: I broke modutils, can't load kernel modules [solved] |
|
|
So I've been fighting a spiritual war with ALSA, trying to get it to compile as a kernel module. I gave up and moved on to bigger and better things, like trying to get it to work with alsa-driver. The ALSA guide in the documentation said I needed modprobe from the modutils (since modprobe wasn't a recognized command), but emerge -va modutils gave me the message that a package was already installed on the system, and it was blocking modutils. I needed modprobe, so I took a deep breath, unmerged that package, and emerged modutils.
Everything was going well...until...I rebooted. Lots and lots of errors, and all the kernel modules being autoloaded failed. Specifically, the error message was
Code: | QM_MODULES: Function not implemented |
Everything that wasn't a module worked fine, so I hunted around in the man pages for a while, and I got a general idea of what's going on. I think. It all starts with the files in /etc/modules.d. modules-update takes all those files and assembles them into /etc/modules.conf. /etc/modules.conf defines the behavior of modprobe and depmod. modprobe and depmod help configure new modules. Is that right?
At first, I couldn't run modules-update. I got a bunch of "I see weird characters in my driver files" error messages. This problem appears to have been driven off by a good sound emerge --sync, though. However, I still get problems at boot, and it keeps telling me that modprobe, lsmod, and depmod aren't implemented.
What is going on? _________________ She's a fluffy psychic physicist with a deep-seated love of David Bowie. Her girlfriend's a semi-devout pagan linguistics major who loves sex like whoa. They fight crime!
Last edited by jessicavampirehunter on Fri Aug 05, 2005 6:47 pm; edited 1 time in total |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri Aug 05, 2005 4:24 pm Post subject: |
|
|
OK..
Let me guess...
2.6 series kernel, right ??
modprobe for the 2.6 series kernels is provided by sys-apps/module-init-tools, not sys-apps/modutils (which is for the 2.4 kernel...
modprobe lives in /sbin so normally you need to be the root user to use this...
Unmerge sys-apps/modutils and re-emerge sys-apps/module-init-tools..
This should solve your module errors on startup..
Code: | # emerge -C modutils && emerge module-init-tools |
_________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
GordSki Guru
Joined: 18 Oct 2004 Posts: 329
|
Posted: Fri Aug 05, 2005 4:33 pm Post subject: |
|
|
TheRAt is right, you need to make sure you have the right package for your kernel version.
The other thing to check is that you have module support compiled into your kernel.
Quote: |
modprobe and depmod help configure new modules. Is that right?
|
'modprobe' does more than configure the module, it actually loads the code for the module into the kernel. 'depmod' figures out if there are any other modules that need to be loaded before loading the one you want to load.
G. |
|
Back to top |
|
|
jessicavampirehunter Tux's lil' helper
Joined: 22 Jul 2005 Posts: 79 Location: Portland, OR
|
Posted: Fri Aug 05, 2005 6:46 pm Post subject: |
|
|
It worked!
Although, it reconfigured my ethernet to eth0 and my wireless to eth1, whereas before it was the other way.
Thank you!
~Jessica _________________ She's a fluffy psychic physicist with a deep-seated love of David Bowie. Her girlfriend's a semi-devout pagan linguistics major who loves sex like whoa. They fight crime! |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Sat Aug 06, 2005 3:41 am Post subject: |
|
|
Completely off the topic.. but where is your signature line from ?? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
jessicavampirehunter Tux's lil' helper
Joined: 22 Jul 2005 Posts: 79 Location: Portland, OR
|
Posted: Sun Aug 07, 2005 12:14 am Post subject: |
|
|
'twas modified from http://theyfightcrime.net/ . Deeply cool site. _________________ She's a fluffy psychic physicist with a deep-seated love of David Bowie. Her girlfriend's a semi-devout pagan linguistics major who loves sex like whoa. They fight crime! |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Sun Aug 07, 2005 1:57 am Post subject: |
|
|
B-R-I-L-L-I-A-N-T !!!
Thanks _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
ThreadSafe n00b
Joined: 09 Mar 2004 Posts: 5 Location: Virginia
|
Posted: Mon Aug 08, 2005 1:44 am Post subject: |
|
|
Thanks for the help. Everything works again. And to think....I had just unmerged module-init-tools and emerged modutils. _________________ This space intentionally has nothing but text explaining why this
space has nothing but text explaining that this space would otherwise
have been left blank, and would otherwise have been left blank. |
|
Back to top |
|
|
|