View previous topic :: View next topic |
Author |
Message |
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Thu Jan 31, 2013 12:16 pm Post subject: after system-upgrade: modprobe won't work, insmod does |
|
|
hello!
yesterday i upgraded my system to current udev, kernel and all and now i face a strange behaviour:
several (but not all) modules cannot be loaded using modprobe, but insmod (with full path) works.
all paths and module locations are right, but modprobe doesn't find them.
Code: |
# modprobe iwlwifi
modprobe: FATAL: Module iwlwifi not found.
|
but using
works.
but when i use insmod with the full path the iwlwifi module loads and works.
i followed all comments on emerging and read (and followed) the news, also i searched the forum but found nothing so far.
i'm thankful for any suggestions!
regards,
andy _________________ bill who? micro what? |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Thu Jan 31, 2013 12:20 pm Post subject: |
|
|
Forgot to run `depmod -a` before trying to use `modprobe` after modules install, perhaps? And `modprobe` is part of the new sys-apps/kmod, and not the old sys-apps/module-init-tools? |
|
Back to top |
|
|
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Thu Jan 31, 2013 12:23 pm Post subject: |
|
|
i already tried that, didn't help.
and the upgrade migrated to kmod, no more module-init-tools. _________________ bill who? micro what? |
|
Back to top |
|
|
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Sun Feb 10, 2013 8:51 am Post subject: |
|
|
meanwhile this problem exists on 3 independent gentoo-systems, after boot no modules are loaded, if i load a module with insmod the dependencies cannot be loaded so i have to load all modules single by single using insmod and the full path.
any ideas? _________________ bill who? micro what? |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Sun Feb 10, 2013 8:56 am Post subject: |
|
|
Missing CONFIG_MODULE_UNLOAD or CONFIG_MODULES in the kernel? I'm quite sure both are required, but currently kmod's ebuild only checks for MODULES, will add the another after verification.
Code: |
# zgrep CONFIG_MODULE /proc/config.gz
# grep CONFIG_MODULE /usr/src/linux/.config
|
|
|
Back to top |
|
|
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Tue Feb 12, 2013 11:53 am Post subject: |
|
|
Code: |
# zgrep CONFIG_MODULE /proc/config.gz
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
i'm not sure, but if i missed the CONFIG_MODULES option i would not be able to config kernel modules at all, or at least ismod would not work also. for now i entered some lines into my /etc/local.d/baselayout1.start file:
Code: |
insmod /lib64/modules/`uname -r`/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
insmod /lib64/modules/`uname -r`/kernel/drivers/net/wireless/iwlwifi/dvm/iwldvm.ko
insmod /lib64/modules/`uname -r`/block/vhba.ko
|
so my system can be booted without the need for some root-action. _________________ bill who? micro what? |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Feb 12, 2013 12:07 pm Post subject: |
|
|
superwutze wrote: |
Code: |
insmod /lib64/modules/`uname -r`/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
[ ... ]
|
|
The kernel module directory is /lib/modules, not /lib64/modules. But I guess in your system it's a symlink from lib to lib64. However this is not always the case. |
|
Back to top |
|
|
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Tue Feb 12, 2013 12:30 pm Post subject: |
|
|
that's true, it is a symlink. but at least it is a workaround to use my wireless again and insmod needs the path. still no luck with modprobe. _________________ bill who? micro what? |
|
Back to top |
|
|
pjvenda n00b
Joined: 17 Feb 2013 Posts: 2
|
Posted: Sun Feb 17, 2013 8:11 pm Post subject: |
|
|
Sorry to jump in, but I've got the same issue. Can't figure out what's happening with kmod as insmod works OK but modprobe does not work at all.
depmod -a works ok and writes its files to /lib/modules/$(uname -r)/ correctly...
I've straced modprobe and insmod but haven't yet found any notable differences that would explain this behaviour... will have a poke around a recent working gentoo with kmod. |
|
Back to top |
|
|
pjvenda n00b
Joined: 17 Feb 2013 Posts: 2
|
Posted: Sun Feb 17, 2013 10:21 pm Post subject: |
|
|
For some reason, /lib/modules/$(uname -r)/*.bin are not being generated or read correctly. modprobe reads these files preferentially and the non binary variants if they don't exist...
Deleting these binary dependency files will remove the error messages from modprobe's output but modules still aren't loaded.
Then I reinstalled all modules fro the source, and did a few more tests. I've narrowed down the issue to /lib/modules/3.6.2/modules.builtin*. The original file is installed by the kernel make file on make modules_install.
Deleting said modules.builtin* makes modprobe work again (depmod not required). I'm now researching about the purpose of this file (which seems obvious) and the effects of it not being there.
Last edited by pjvenda on Sun Feb 17, 2013 10:41 pm; edited 1 time in total |
|
Back to top |
|
|
superwutze Tux's lil' helper
Joined: 09 Dec 2004 Posts: 137 Location: Europe/Vienna
|
Posted: Fri Feb 22, 2013 1:00 pm Post subject: |
|
|
thanks for the research, i can confirm this!
Code: |
rm /lib/modules/`uname -r`/modules.builtin*
|
does the trick! i can load modules again!
but why?
thanks,
andy _________________ bill who? micro what? |
|
Back to top |
|
|
vadanila n00b
Joined: 05 Mar 2013 Posts: 1
|
Posted: Tue Mar 05, 2013 12:56 am Post subject: |
|
|
Got the same problem after moving from module-init-tools to kmod. Thanks for saving my box.
Removing modules.builtin.bin helped me too, but only until the next depmod. E.g. rebuilding nvidia.ko (from nvidia-drivers) caused modprobe to fail again, just because modules.builtin.bin had been regenerated.
Yet updating to sys-apps/kmod-9999 and running "depmod -a" had fixed the problem permanently. I've downgraded back to the stable kmod-12-r1, rebooted and modprobe still works. Ran "depmod -a" again and still no problems. |
|
Back to top |
|
|
|