LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2005, 12:03 PM   #1
biscristi
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 51

Rep: Reputation: 15
Problem loading modules


Hy.
I'm currently having some problems with module loading. When i compile something as a module and later load that module the process hangs .. without beeing able to kill it. On the other hand when compiling as kernel module everything goes fine.
I'll give you an example: I compiled block devices - loopback as module and then i tried mounting an iso image with mount -o loop and the process hanged. When compilin loopback as kernel module mount -o loop worked perfectly.

Please help me solve this thing out. Here's a part of my kernel configuration. I think this could be the problem ...


#
# loadable module support
#
config_modules=y
config_module_unload=y
config_module_force_unload=y
config_obsolete_modparm=y
# config_modversions is not set
# config_module_srcversion_all is not set
config_kmod=y
config_stop_machine=y

I hope this helps .. i'm sorry if i didn't make it clear enough
 
Old 03-07-2005, 12:36 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Re: Problem loading modules

Quote:
Originally posted by biscristi
I compiled block devices - loopback as module and then i tried mounting an iso image with mount -o loop and the process hanged. When compiling loopback as kernel module mount -o loop worked perfectly.

explain what a "module" is that's not a "kernel module"
do you mean the difference between "y" and "m"
in the config ?
if you put "m" then before you can use the module you must do
modprobe <module>
if you have a modern system that uses "udev" to dynamically create device nodes then the equation is a bit more complicated.
 
Old 03-07-2005, 12:39 PM   #3
biscristi
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 51

Original Poster
Rep: Reputation: 15
Yes .. that's what i ment. Using y works .. using m no.
Also i'm running gentoo .. freshly installed 2 weeks ago.
 
Old 03-07-2005, 04:03 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
first i don't really see any reason to make the loopback device "m" really ever
beyond that since udev systems are new to everyone and loading modules is a little difficult
i recomend starting out only making the sound system and the video driver if needed (if it's third party)
as "m". The sound system doesn't work right if it's built in and you obviously can't build in third party modules without patching the kernel.
once you learn to load those then it seems esier and you can try other loadable modules.



a couple of things to check

you need module-init-tools not modutils for a 2.6 series kernel

what's going on:
because of udev all modules you need i think should be loaded explicitly at boot with
/etc/modules.autoload.d/kernel-2.6
so you get the device nodes in /dev
i think for this to work you also need hotplug enabled as "y" in the kernel config
the way this works is before udev starts if you load the module it triggers a hotplug event
that get cued so devices get made as modules are loaded later (i think)
otherwise when you try to load a module it won't load because there is no device node and there is no device node bacause the module won't load (stuck in a module udev catch 22)

(i don't use gentoo so i don't know all the details)
gentoo seems to also have a folder /etc/modules.d that takes aliases and what not -- not sure how that works
 
Old 03-09-2005, 01:55 PM   #5
biscristi
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 51

Original Poster
Rep: Reputation: 15
Compiling the sound driver as "m" causes stability problems and often crashes of my system. I really think something's wrong with my configuration. I'm a bit of a newbie and i compiled my whole system from scratch so i could have made some mistakes...
 
Old 03-09-2005, 02:04 PM   #6
biscristi
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 51

Original Poster
Rep: Reputation: 15
Also i tried to install the alsa sound driver from alsa's home page and everything goes fine untill i run the command modules-update, when the system hangs.
wtf ?
 
Old 03-09-2005, 10:22 PM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
if i were you i would repost this problem with the word gentoo in the title
this needs someone with specific gentoo experience
and ask on the gentoo boards

to me -- i tried to read the gentoo docs -- geeeez
those guys got monster build_foo but they make the linux thing way more complicated than it needs to be
 
Old 03-22-2005, 07:54 AM   #8
biscristi
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 51

Original Poster
Rep: Reputation: 15
Problem solved by upgrading to kernel 2.6.11
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem after loading modules into kernel scr02bcg Linux - General 2 07-21-2005 10:23 AM
Problem loading modules Nerox Programming 0 12-29-2004 05:25 AM
Problem with alsa modules (not loading into the kernel) fsateler Linux - Hardware 3 07-04-2004 10:53 PM
Problem with auto-loading modules on boot (2.6.0, but not specific) Emp202 Fedora 5 01-02-2004 10:26 AM
alsa : a strange problem loading modules TrueLenny Linux - General 4 03-29-2001 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration