LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 01-15-2008, 02:35 PM   #1
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Rep: Reputation: 15
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.
 
Old 01-15-2008, 03:38 PM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,007

Rep: Reputation: Disabled
See man depmod. Chances are you don't have that module. Which means you have to build it.
 
Old 01-15-2008, 09:20 PM   #3
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
I have depmod, but it doesn't seem to change anything. It just lists dependencies.
 
Old 01-15-2008, 09:52 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,007

Rep: Reputation: Disabled
It certainly does. See man depmod. It builds modules.dep file in modules directory. What module is required? You may need to build it.
 
Old 01-16-2008, 10:30 AM   #5
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
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
 
Old 01-16-2008, 10:59 AM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,007

Rep: Reputation: Disabled
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.
 
Old 01-16-2008, 11:04 AM   #7
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
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.
 
Old 01-16-2008, 11:15 AM   #8
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,007

Rep: Reputation: Disabled
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.
 
Old 01-16-2008, 11:21 AM   #9
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson View Post
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.
 
  


Reply

Tags
nslu2, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
manually fixing dependencies 144419855310001 Debian 11 06-12-2007 11:08 AM
AC97 module(snd_intel8x0) not loading, when loaded manually - no sound Slasher66 Linux - Hardware 7 05-10-2007 02:43 PM
My sound module (snd-mia) works, but without manually restarting the initscript... jacksonscottsly Linux - Hardware 0 07-31-2005 08:19 AM
Is it safe to manually change the /etc/passwd file? stefaandk Linux - Newbie 2 06-29-2005 11:10 PM
Clean distro GREAT but please... how do I manually find out dependencies? Wim_Woittiez Slackware 5 12-01-2003 02:56 AM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration