insmod not working by module name in Linux 2.4.30 / MIPS

RiCH Busybox busybox at richud.com
Sun Sep 26 21:03:50 UTC 2010


Hi,


I am trying to upgrade Busybox from busybox-1.1.0.5VT to 1.17.2 on a
Belkin F5D8235 v1 router. (Cross compiling under ubuntu x64 with
supplied toolchain , which works all fine using supplied old busybox
etc.)

I am currently stuck because insmod won't load from the module name
alone, although it is fine pointing it to the module with full path -
the problem being loading via name is hard coded in a sysinit binary so
I need loading via name to work :)

Here is sample output. (USB storage module was allready loaded with full
path in sysinit, the only one that had a full path specified)

/ # lsmod
    Not tainted
usb-storage            69960   1
/ # modinfo rtl
filename:       /lib/modules/2.4.30/kernel/drivers/net/rtl8366/rtl.o
license:        GPL
/ # insmod rtl
insmod: can't insert 'rtl': Operation not permitted
/ # insmod /lib/modules/2.4.30/kernel/drivers/net/rtl8366/rtl.o
rtl_major = 253
0 smi_init check[0x0105]=0x8366
Gemtek Link status init.
/ # rmmod rtl
rtl_exit
/ # insmod rtl
insmod: can't insert 'rtl': Operation not permitted
/ # cat /lib/modules/2.4.30/modules.dep
/lib/modules/2.4.30/kernel/drivers/net/rt2880ps/rt2880ps.o:

/lib/modules/2.4.30/kernel/drivers/net/wireless/rt2860v2_ap/rt2860v2_ap.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_nat_proto_gre.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_pptp.o:      /lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_nat_pptp.o:    /lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o

/lib/modules/2.4.30/kernel/drivers/net/rtl8366/rtl.o:

/lib/modules/2.4.30/kernel/drivers/usb/storage/usb-storage.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o:

/ # cat /modules.dep
/lib/modules/2.4.30/kernel/drivers/net/rt2880ps/rt2880ps.o:

/lib/modules/2.4.30/kernel/drivers/net/wireless/rt2860v2_ap/rt2860v2_ap.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_nat_proto_gre.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_pptp.o:      /lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_nat_pptp.o:    /lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o

/lib/modules/2.4.30/kernel/drivers/net/rtl8366/rtl.o:

/lib/modules/2.4.30/kernel/drivers/usb/storage/usb-storage.o:

/lib/modules/2.4.30/kernel/net/ipv4/netfilter/ip_conntrack_proto_gre.o:

/ # uname -a
Linux (none) 2.4.30 #402 Tue Sep 21 09:17:05 BST 2010 mips GNU/Linux
/ #


n.b.
/modules.dep is location with original Makefiles when depmod.pl was more
lax and /lib/modules/2.4.30/modules.dep is where the new depmod.pl wants
it
I just have it in copied in both locations, I don't know how relevant
this is, if at all.

Config
-------
With separate modules using 'old' method and 2.2/2.4 kernel support
enabled. Both of the locations as default; /lib/modules, modules.dep .
Tried with and without things ticked under 2.2/2.4 support but doesnt
seem to make any difference.

insmod doesnt work at all using 'simplified mod utils' using name or
full path to load, see below.

/ # lsmod
/ # insmod rtl
insmod: can't read 'rtl': No such file or directory
/ # insmod  /lib/modules/2.4.30/kernel/drivers/usb/storage/usb-storage.o
insmod: can't insert
'/lib/modules/2.4.30/kernel/drivers/usb/storage/usb-storage.o': unknown
symbol in module or invalid parameter
/ # modinfo rtl
filename:       /lib/modules/2.4.30/kernel/drivers/net/rtl8366/rtl.o
license:        GPL
/ #

Any help / fix much appreciated!

Thanks

Rich.



More information about the busybox mailing list