Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-15-2008, 02:35 PM
|
#1
|
|
Member
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46
Rep:
|
Manually change module dependencies
I'm running openslug on a Linksys NSLU2, and I'm trying to get my USB wireless dongle to work. I got it running with no problems using openwrt, but I'd like to use the slug as a printserver among other things, and openwrt doesn't seem flexible enough.
My problem is the kernel-module-ieee80211-crypt-wep package requires a crypt module and isn't finding it. (I will update this post with the exact package, module and error message, I'm currently at work). I think the problem is that the necessary module isn't listed as a dependency for kernel-module-ieee80211-crypt-wep, so it isn't loaded beforehand.
Is there some way to manually change the module dependencies or, at the very least, some way to make sure one module is loaded before another?
Thanks a lot, more specific info coming soon.
UPDATE: The error message is "ieee80211_crypt_wep: could not allocate crypto API arc4" There's a arc4 module, but I can't ensure it loads before ieee802111_crypt_wep
Last edited by DeadlyMuffin; 01-15-2008 at 09:48 PM.
|
|
|
|
01-15-2008, 03:38 PM
|
#2
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
See man depmod. Chances are you don't have that module. Which means you have to build it.
|
|
|
|
01-15-2008, 09:20 PM
|
#3
|
|
Member
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46
Original Poster
Rep:
|
I have depmod, but it doesn't seem to change anything. It just lists dependencies.
|
|
|
|
01-15-2008, 09:52 PM
|
#4
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
It certainly does. See man depmod. It builds modules.dep file in modules directory. What module is required? You may need to build it.
|
|
|
|
01-16-2008, 10:30 AM
|
#5
|
|
Member
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46
Original Poster
Rep:
|
Yes, it does build the modules.dep file, but that file is regenerated every time I boot, so I can't change the dependency there. I don't see anything on the man page describing how depmod can change dependencies, it seems only to list them.
From the man page: "depmod creates a list of module dependencies, by reading each module under /lib/modules/version and determining what symbols it exports, and what symbols it needs. By default this list is written to modules.dep in the same directory."
I've got the module, and I can see from modules.dep where the dependency needs to be, I just can't change it! The module loads fine, but I don't think it's loading before ieee80211_crypt_wep
|
|
|
|
01-16-2008, 10:59 AM
|
#6
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
I regret I cannot help much here. I build always my own kernels, I use modules only in very rare cases if I need to pass parameters to them. There is /etc/modules.autoload.d/<kernelversion> file in Gentoo to load modules at boot time. There probably is something similar in your distro, too.
|
|
|
|
01-16-2008, 11:04 AM
|
#7
|
|
Member
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46
Original Poster
Rep:
|
I understand, I'm used to building my own kernels too. I'm a bit stuck at this point as I really can't recompile the kernel on the slug itself. I may end up going back to openwrt, as much as I'd rather not.
|
|
|
|
01-16-2008, 11:15 AM
|
#8
|
|
Senior Member
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,756
Rep: 
|
Other thoughts:
1. Do not let depmod run at boot time, it really isn't necessary.
2. Use a custom script to load the module you need earlier than rest.
|
|
|
|
01-16-2008, 11:21 AM
|
#9
|
|
Member
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46
Original Poster
Rep:
|
Quote:
Originally Posted by Emerson
Other thoughts:
1. Do not let depmod run at boot time, it really isn't necessary.
2. Use a custom script to load the module you need earlier than rest.
|
I thought of that, I just can't find out what's starting it! I'll search for a bit longer,then switch back if I can't figure it out.
Even if I can stop depmod, I'll have to re-edit modules.dep and add my changes every time I install a new module since it will be regenerated.
This is killing me because on any other computer I'd simply put arc4 into the kernel instead of as a module!
Last edited by DeadlyMuffin; 01-16-2008 at 11:25 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|