[Bug 135] insmod cannot load modules under mipsle (AR7)

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 3 18:14:50 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=135





--- Comment #8 from Denys Vlasenko <vda.linux at googlemail.com>  2009-03-03 18:14:49 UTC ---
With the following options in .config:

#
# Linux Module Utilities
#
# CONFIG_MODPROBE_SMALL is not set
# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set
# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set
CONFIG_INSMOD=y
CONFIG_RMMOD=y
CONFIG_LSMOD=y
CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y
CONFIG_MODPROBE=y
CONFIG_FEATURE_MODPROBE_BLACKLIST=y
CONFIG_DEPMOD=y
#
# Options common to multiple modutils
#
CONFIG_FEATURE_2_4_MODULES=y
CONFIG_FEATURE_INSMOD_VERSION_CHECKING=y
CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS=y
CONFIG_FEATURE_INSMOD_LOADINKMEM=y
CONFIG_FEATURE_INSMOD_LOAD_MAP=y
CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL=y
CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
CONFIG_FEATURE_MODUTILS_ALIAS=y
CONFIG_FEATURE_MODUTILS_SYMBOLS=y
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"

I can run these commands and each one works:

Full name:
# ./busybox modprobe
/lib/modules/2.6.29-0.28.rc1.fc11.x86_64/kernel/fs/minix/minix.ko

Full name without .ko extension:
# ./busybox modprobe /lib/modules/2.6.29-0.28.rc1.fc11.x86_64/kernel/fs/udf/udf

Just a module name:
# ./busybox modprobe romfs

This is on the system with modprobes.dep file present. strace has these
syscalls:

chdir("/lib/modules")                   = 0
chdir("2.6.29-0.28.rc1.fc11.x86_64")    = 0
open("/proc/modules", O_RDONLY|O_LARGEFILE) = 3
open("/etc/modprobe.conf", O_RDONLY|O_LARGEFILE) = 3
open("/etc/modprobe.d", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
open("/etc/modprobe.d/blacklist-visor", O_RDONLY|O_LARGEFILE) = 5
open("/etc/modprobe.d/floppy-pnp", O_RDONLY|O_LARGEFILE) = 5
open("/etc/modprobe.d/i915modeset", O_RDONLY|O_LARGEFILE) = 5
open("/etc/modprobe.d/blacklist", O_RDONLY|O_LARGEFILE) = 5
open("/etc/modprobe.d/modprobe.conf.dist", O_RDONLY|O_LARGEFILE) = 5
open("modules.alias", O_RDONLY|O_LARGEFILE) = 3
open("modules.dep", O_RDONLY|O_LARGEFILE) = 3
open("/lib/modules/2.6.29-0.28.rc1.fc11.x86_64/kernel/fs/udf/udf.ko",
O_RDONLY|O_LARGEFILE) = 5


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list