Busybox 1.01 insmod on Linux 2.6.8

Andrew McKay amckay at iders.ca
Thu Apr 20 19:43:07 UTC 2006


On important piece of information I forgot to mention is that I am working on an 
ARM core.

> I seem to recall that, in BB-1.01, disabling support for linux-2.4 also disabled
> some code that was used for linux-2.6. That was changed later (BB-1.1.?) Try
> re-enabling 2.4 support, 

I will give this another try, but I think I had both enabled before.  It is 
worth another shot.

or switch to the latest svn or BB-1.1.2.

I finally successfully compiled BB-1.1.2 (had some tool problems with linking 
__isnan and __isinf into sort.o, but I disabled SuSv3 support and this fixed it).

I am getting the same error message:

/mnt/drive # ./busybox insmod iderspe.ko
iderspe: disagrees about version of symbol struct_module
insmod: cannot insert `iderspe.ko': Invalid module format (-1): Exec format error
/mnt/drive #

This is my config information for BB-1.1.2 regarding Kernel Module support:

#
# Linux Module Utilities
#
CONFIG_INSMOD=y
CONFIG_FEATURE_INSMOD_VERSION_CHECKING=y
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
CONFIG_RMMOD=y
CONFIG_LSMOD=y
# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
CONFIG_MODPROBE=y
CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS=y

#
# Options common to multiple modutils
#
CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
CONFIG_FEATURE_2_4_MODULES=y
CONFIG_FEATURE_2_6_MODULES=y
# CONFIG_FEATURE_QUERY_MODULE_INTERFACE is not set

I am starting to wonder if I'm having tool problems.  I have compiled uCgcc 
twice now, once with each set of Kernel headers (2.4 and 2.6).  Neither 
toolchain seems to play nice with the 2.6 Kernel.

My tool chain consists of:
	binutils-2.15
	gcc-3.4.2
	uClibc-0.9.28

The other application I'm having problems with is mount.  I can mount a nfs 
share, but I get a message of:

~ # mount /mnt/zen/
nfs warning: mount version older than kernel

I can do a ls in the nfs mount, but when I try to read a file it segfaults:
cat lpcdiff.txt
Unable to handle kernel NULL pointer dereference at virtual address 00000014
pgd = c34fc000
[00000014] *pgd=05777011, *pte=00000000, *ppte=00000000
Internal error: Oops: 7 [#1]
Modules linked in:
CPU: 0
PC is at $a+0x24/0x3c
LR is at $a+0x18/0x3c
pc : [<c00c790c>]    lr : [<c00c7900>]    Not tainted
sp : c03f9bd0  ip : c03f9bd0  fp : c03f9be0
r10: c3412a00  r9 : c3611c74  r8 : c13fa280
r7 : c3611bdc  r6 : 00000000  r5 : c033b180  r4 : c3601660
r3 : 60000093  r2 : 60000013  r1 : c3412a00  r0 : 00000000
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  Segment user
Control: C000717F  Table: 054FC000  DAC: 00000015
Process cat (pid: 268, stack limit = 0xc03f8190)
Stack: (0xc03f9bd0 to 0xc03fa000)
9bc0:                                     c3601660 c03f9c0c c03f9be4 c00c02b8
9be0: c00c78f8 c00c53d0 c033b180 c3611bdc 00001000 c03f9cac c03f9cac c00c2c8c
9c00: c03f9c30 c03f9c10 c00c2cf8 c00c01d4 00001000 c033b198 c033b180 c03f9d5c
9c20: 00000000 c03f9ca4 c03f9c34 c0050adc c00c2c9c 00000000 00000000 c03f9c5c
9c40: c03f9c4c c01c0144 c003089c c03f9cd4 c03f9c74 c03f9c60 c01c4988 c01c00f0
9c60: c03f9cd4 c03f9d5c c03f9cc8 c03f9c78 c01c4d24 c01c487c 00000000 c03f9d5c
9c80: c03f9cb4 c3611ae0 c3611c74 c13fa280 c03f9d5c c3412a00 c03f9cdc c03f9ca8
9ca0: c00c2e34 c0050a14 c03f9cb4 c03f9cb4 c3412a00 c03f9cb4 c03f9cb4 00000008
9cc0: 00000008 c3611c74 c3611c74 00000000 c03f9d50 c03f9ce0 c0050bf8 c00c2dd0
9ce0: c004d354 00000002 20000013 00000000 c02153e0 00000001 c021576c 000001d2
9d00: 00000000 00000010 c35223e0 c03f9d50 c03f9d1c c004ddf0 c004dae0 00000000
9d20: c03f8000 00000000 00000008 00000008 c3611c74 00000008 c03f9d5c 0000003c
9d40: 00000007 c03f9d8c c03f9d54 c0051024 c0050bc8 00000000 c3412a00 c033b298
9d60: c033b258 c03f9dd0 00000000 00000000 c3412a00 00000001 c3611c74 00000000
9d80: c03f9db0 c03f9d90 c00511e0 c0050edc c03f9dd0 00000000 c3611c10 00007872
9da0: 00000000 c03f9e24 c03f9db4 c004a20c c0051060 c03f9e9c c3611c10 00000000
9dc0: 00000007 c03f9f10 c3412a00 c3412a48 00000000 0000003c 0000003c 00000000
9de0: 00000000 00000000 00000001 0000003c 00000078 00000000 00000000 00000001
9e00: 00000000 00000000 c3412a00 00000001 c03f9ed4 c03f9e70 c03f9e6c c03f9e28
9e20: c004c6ac c004a15c c03f9e34 c004a5a8 c03f9f10 00000000 00001000 beffedd0
9e40: 00000000 00000000 00000000 00000000 00001000 c03f9ed4 beffedd0 beffedd0
9e60: c03f9e8c c03f9e70 c004c844 c004c4f8 beffedd0 00001000 c3611bdc 00000000
9e80: c03f9ec0 c03f9e94 c00bc120 c004c7fc 00000000 00000000 00000000 00000000
9ea0: 00000000 c03f9ed4 c35223e0 c03f9f78 c03f9f10 c03f9f40 c03f9ec8 c00654ac
9ec0: c00bc064 00000000 00000000 00000000 00000000 c0019220 00000001 00000000
9ee0: 00000001 ffffffff c3412a00 c0019350 00000000 c0019220 00000000 c03f9f08
9f00: c0058f44 c35223e0 c360fff8 c34fefb8 00000000 00000000 beffe000 00000000
9f20: c3412a00 00000000 00000000 00001000 c03f9f78 c03f9f74 c03f9f44 c00655c0
9f40: c0065430 c03f9f88 c03f9f54 c3412a24 c3412a00 c03f9f78 00000000 00000000
9f60: c03f8000 00000001 c03f9fa4 c03f9f78 c0065824 c00654ec 00000000 00000000
9f80: 00000000 0006b100 00001000 beffedd0 00000003 c001ee04 00000000 c03f9fa8
9fa0: c001ec80 c00657e8 0006b100 c0025750 00000004 beffedd0 00001000 00000001
9fc0: 0006b100 00001000 beffedd0 00000004 beffedd0 00000004 00000001 beffedb8
9fe0: beffedbc beffeda8 00048584 00062364 60000010 00000004 5345525f 363a5445
Backtrace:
[<c00c78e8>] ($a+0x0/0x3c) from [<c00c02b8>] ($a+0xf4/0xfc)
  r4 = C3601660
[<c00c01c4>] ($a+0x0/0xfc) from [<c00c2cf8>] ($a+0x6c/0x130)
[<c00c2c8c>] ($a+0x0/0x130) from [<c0050adc>] (read_cache_pages+0xd8/0x1ac)
  r7 = 00000000  r6 = C03F9D5C  r5 = C033B180  r4 = C033B198
[<c0050a04>] (read_cache_pages+0x0/0x1ac) from [<c00c2e34>] ($a+0x74/0xa4)
[<c00c2dc0>] ($a+0x0/0xa4) from [<c0050bf8>] ($a+0x40/0x14c)
  r8 = 00000000  r7 = C3611C74  r6 = C3611C74  r5 = 00000008
  r4 = 00000008
[<c0050bb8>] ($a+0x0/0x14c) from [<c0051024>] ($a+0x158/0x180)
[<c0050ecc>] ($a+0x0/0x180) from [<c00511e0>] ($a+0x190/0x21c)
[<c0051050>] ($a+0x0/0x21c) from [<c004a20c>] ($a+0xc0/0x458)
  r8 = 00000000  r7 = 00007872  r6 = C3611C10  r5 = 00000000
  r4 = C03F9DD0
[<c004a14c>] ($a+0x0/0x458) from [<c004c6ac>] (__generic_file_aio_read+0x1c4/0x1e4)
[<c004c4e8>] (__generic_file_aio_read+0x0/0x1e4) from [<c004c844>] 
(generic_file_aio_read+0x5c/0x64)
[<c004c7ec>] (generic_file_aio_read+0x4/0x64) from [<c00bc120>] ($a+0xd0/0xe0)
  r5 = 00000000  r4 = C3611BDC
[<c00bc054>] ($a+0x4/0xe0) from [<c00654ac>] (do_sync_read+0x8c/0xbc)
[<c0065420>] (do_sync_read+0x0/0xbc) from [<c00655c0>] (vfs_read+0xe4/0x11c)
[<c00654dc>] (vfs_read+0x0/0x11c) from [<c0065824>] ($a+0x4c/0x74)
[<c00657d8>] ($a+0x0/0x74) from [<c001ec80>] ($a+0x0/0x2c)
  r8 = C001EE04  r7 = 00000003  r6 = BEFFEDD0  r5 = 00001000
  r4 = 0006B100
Code: ebfff954 e10f2000 e3823080 e121f003 (e5903014)
  Segmentation fault

Andrew



More information about the busybox mailing list