LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2005, 06:36 PM   #1
syrtisambiguous
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
Rmmod problems - kernel unload support - acx_pci


Thanks in advance for your help--this is quite frustrating. I have recompiled my kernel to include module unloading yet STILL this error persists:
#lsmod | grep acx_pci
acx_pci 145188
# rmmod acx_pci
FATAL: Kernel does not have unload support.

Here is a excerpt from my kernel .config:
...
CONFIG_MODULES=y
CONFIG_MODULES_UNLOAD=y
CONFIG_OBSOLETE_MODPARAM=y
#CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y
...
What is going on here? If anyone has any idea please let me know! Thank you.
 
Old 06-01-2005, 07:20 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
well, sorry to ask, but how have you recompiled your kernel? I mean, wich steps/commands have you done? And what is your new kernel version?
The only reason I could see why you get this msg is that your recompilation went bad.
 
Old 06-01-2005, 09:47 PM   #3
syrtisambiguous
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Well, I just started using gentoo linux (its been about a year since I have been using linux) (with gentoo_sources version 2.6.11-gentoo-r8), and I followed the steps outlined on their website which consists of:
# make menuconfig
(included unload support for modules)
(saved kernel configuration)
# make && make clean
(says bzImage is ready)
cp arch/i386/boot/bzImage /boot/kernel-2.6.11-gentoo-r8
cp System.map /boot/System.map-2.6.11-gentoo-r8
cp .config /boot/config-2.6.11-gentoo-r8
then I proceeded to modify grub's config file to add an entry for the new kernel

I know that I'm using the new kernel because I removed support for other hardware and it quit working.

Hope you see something that I don't--and thanks for the reply!
 
Old 06-02-2005, 06:40 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
well, you are suppose to do a "make modules_install" at some point, as it is not included in "make". But I doubt this is your problem...

Are you able to remove other modules? And what is "acx_pci"? Some modules can't be removed, but usually you get a "in use" error msg, nothing about missing unload support... but maybe the error msg is wrong?
 
Old 06-02-2005, 09:05 PM   #5
syrtisambiguous
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Acx_pci is a module for my D-Link wireless card and I had to compile it myself, as it was not included in the 2.6 kernel. I tried removing all the other modules in the kernel as listed by modprobe -l, but they all gave me the message "Error: Module i915 does not exist in /proc/modules." I guess that's because I didn't insert them myself, support was included for them in the kernel (thats why lsmod only lists acx_pci and none of the others). I wish I had another piece of hardware to test an inserted module, but I don't think I have any others that require an inserted module. On another forum someone said that the kernel has really vague error messages, that in fact its crashing for another reason other than the lack of unload support. Of course, that's why I'm out here polling the audience ;-) -- trying to find out what the "other reason" might be. I was under the impression that even if the module is in use, you could force remove it, as long as you enabled support for that as well, however, in my kernel config that option is entirely absent! I don't think it is in use because I make sure that I do a ifconfig wlan0 down before attempting to remove it. I think what I might try is emerging the vanilla sources and see whether that distro will behave in the same manner. Btw I did a "make modules_install" and nothing happened so your instincts were correct.
Thanks again for the assistance!
 
Old 06-02-2005, 09:07 PM   #6
syrtisambiguous
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Oops I just realized there was a typo
Error: Module i915 does not exist in /proc/modules.
Should be generic--
Error: Module xxxxx does not exist in /proc/modules.
 
Old 06-02-2005, 09:11 PM   #7
syrtisambiguous
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Another interesting thing I noticed is that before I run the start_net script to insert the card modprobe -l shows the acx_pci card in existence, however lsmod does not. I guess I don't completely understand the difference between the two commands.
Btw the website that described to me the process in which to install my card is:
http://www.houseofcraig.net/acx100_howto.php
I don't know if this will give you a little more of a context from which to problem solve, but I hope it helps.
Thanks yet again!
 
  


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
how to unload kernel module dynamically kushneeraj Programming 1 10-26-2005 11:46 PM
Can't unload (or power off) wireless card (ndiswrapper won't unload) shadowsnipes Linux - Wireless Networking 6 10-02-2005 10:48 AM
gentoo: pentium4 smp support and kernel 2.6.7 problems iliah Linux - Hardware 0 08-01-2004 11:35 AM
rmmod segfaulting and causing lsmod to hang withh 2.6.3 kernel Kurt M. Weber Linux - Software 5 02-25-2004 11:51 AM
Unable to unload eepro100 module in Kernel 2.6 simjii Linux - General 0 12-08-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:08 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