[Defy General] filip.zyzniewski:
Hi,

big thanks for building these :).

I am having a problem loading them on my defy running on this froyo kernel with cyanogenmod 7.

To verify that we are talking about the same files:

filip@cacko:~/tmp$ wget 'http://xdaforums.com/attachment.php?attachmentid=625029&d=1308059056' -O nfs.zip
--2011-07-17 10:47:37-- http://xdaforums.com/attachment.php?attachmentid=625029&d=1308059056
Resolving xdaforums.com... 50.23.231.72
Connecting to xdaforums.com|50.23.231.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 122327 (119K) [application/zip]
Saving to: `nfs.zip'

100%[===================================================================================>] 122,327 54.4K/s in 2.2s

2011-07-17 10:47:39 (54.4 KB/s) - `nfs.zip' saved [122327/122327]

filip@cacko:~/tmp$ md5sum nfs.zip
1af24766fa7fa43c014675c3744b1b28 nfs.zip

filip@cacko:~/tmp$ unzip nfs.zip
Archive: nfs.zip
creating: nfs/
inflating: nfs/lockd.ko
inflating: nfs/nfs.ko
inflating: nfs/sunrpc.ko

filip@cacko:~/tmp$ cd nfs

filip@cacko:~/tmp/nfs$ md5sum *
20ba7c5a6b407347b0d58375894c63ba lockd.ko
8a4576594dd865f88d705f5fd6ce84e9 nfs.ko
84fd57a86e5778e3f72d15cedd167091 sunrpc.ko

filip@cacko:~/tmp/nfs$ /sbin/modinfo *
filename: lockd.ko
license: GPL
description: NFS file locking service version 0.5.
author: Olaf Kirch <okir@monad.swb.de>
depends: sunrpc
uts_release: 2.6.32.9
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: nsm_use_hostnames:bool
parm: nlm_max_connections:uint
filename: nfs.ko
license: GPL
author: Olaf Kirch <okir@monad.swb.de>
depends: sunrpc,lockd
uts_release: 2.6.32.9
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: cache_getent:Path to the client cache upcall program (string)
parm: cache_getent_timeout:Timeout (in seconds) after which the cache upcall is assumed to have failed (ulong)
parm: enable_ino64:bool
filename: sunrpc.ko
license: GPL
depends:
uts_release: 2.6.32.9
vermagic: 2.6.32.9 preempt mod_unload ARMv7
parm: min_resvport:portnr
parm: max_resvport:portnr
parm: tcp_slot_table_entries:slot_table_size
parm: udp_slot_table_entries:slot_table_size

Copying them to the phone:

filip@cacko:~/tmp/nfs$ adb push nfs.ko /sdcard/nfs.ko
2182 KB/s (103348 bytes in 0.046s)

filip@cacko:~/tmp/nfs$ adb push lockd.ko /sdcard/lockd.ko
1752 KB/s (41696 bytes in 0.023s)

filip@cacko:~/tmp/nfs$ adb push sunrpc.ko /sdcard/sunrpc.ko
2226 KB/s (130152 bytes in 0.057s)

Trying to load lockd:

filip@cacko:~/tmp/nfs$ adb shell
# cd /sdcard
# insmod lockd.ko
insmod: init_module 'lockd.ko' failed (Exec format error)
# dmesg | tail -1
<4>[127361.915008] lockd: module has no symbols (stripped?)

Kernel version matches:

# uname -r
2.6.32.9-ga28fcc4
#

Since the kernel complains about lack of symbols, let's see them:

filip@cacko:~/tmp/nfs$ objdump -t lockd.ko
BFD: lockd.ko: warning: sh_link not set for section `.ARM.exidx'
BFD: lockd.ko: warning: sh_link not set for section `.ARM.exidx.exit.text'
BFD: lockd.ko: warning: sh_link not set for section `.ARM.exidx.init.text'

lockd.ko: file format elf32-little

SYMBOL TABLE:
no symbols

filip@cacko:~/tmp/nfs$

Let's see what objdump has to say about tun.ko present on the device:

filip@cacko:~/tmp/nfs$ adb pull /system/lib/modules/tun.ko
167 KB/s (16220 bytes in 0.094s)

filip@cacko:~/tmp/nfs$ objdump -t tun.ko

tun.ko: file format elf32-little

SYMBOL TABLE:
00000000 l d .text	00000000 .text
00000000 l d .init.text	00000000 .init.text
00000000 l d .rodata	00000000 .rodata
00000000 l d .rodata.str1.1	00000000 .rodata.str1.1
00000000 l d .data	00000000 .data
00000000 l d .bss	00000000 .bss
00000000 l F .text	00000024 tun_net_open
00000024 l F .text	00000024 tun_net_close
00000048 l F .text	00000004 tun_net_mclist
0000004c l F .text	00000028 tun_net_change_mtu
00000074 l F .text	0000002c tun_setup
00000568 l F .text	00000028 tun_free_netdev
000000a0 l F .text	00000008 tun_validate
000000a8 l F .text	0000003c tun_get_settings
000000e4 l F .text	00000008 tun_get_msglevel
000000ec l F .text	00000004 tun_set_msglevel
000000f0 l F .text	00000010 tun_get_link
00000100 l F .text	00000010 tun_get_rx_csum
00000110 l F .text	00000020 tun_set_rx_csum
000002e0 l F .text	000000dc tun_chr_fasync
000003bc l F .text	000000ec tun_chr_poll
000004a8 l F .text	000000c0 tun_chr_close
00000590 l F .text	00000060 tun_chr_open
000005f0 l F .text	00000078 tun_get_drvinfo
00000668 l F .text	0000000c tun_sock_destruct
00000674 l F .text	00000018 tun_show_group
0000068c l F .text	00000018 tun_show_owner
000006a4 l F .text	0000003c tun_show_flags
000006e0 l F .text	00000050 tun_net_uninit
00000730 l F .text	00000178 tun_net_xmit
00000a74 l F .text	0000007c tun_sock_write_space
00000af0 l F .text	000009c4 tun_chr_ioctl
000014b4 l F .text	00000434 tun_chr_aio_write
000018e8 l F .text	00000364 tun_chr_aio_read
00000000 l d .ARM.extab	00000000 .ARM.extab
00000000 l d .ARM.exidx	00000000 .ARM.exidx
00000000 l d .ARM.extab.init.text	00000000 .ARM.extab.init.text
00000000 l d .ARM.exidx.init.text	00000000 .ARM.exidx.init.text
00000000 l d .modinfo	00000000 .modinfo
00000000 l d .gnu.linkonce.this_module	00000000 .gnu.linkonce.this_module
00000000 l d .note.gnu.build-id	00000000 .note.gnu.build-id
00000000 l d .comment	00000000 .comment
00000000 l d .ARM.attributes	00000000 .ARM.attributes
00000000 *UND*	00000000 strcpy
00000000 *UND*	00000000 rtnl_unlock
00000000 *UND*	00000000 misc_deregister
00000000 *UND*	00000000 eth_mac_addr
00000000 *UND*	00000000 skb_put
00000000 *UND*	00000000 rtnl_is_locked
00000000 *UND*	00000000 skb_copy_datagram_from_iovec
00000000 g O .gnu.linkonce.this_module	00000144 __this_module
00000000 *UND*	00000000 __netif_schedule
00000000 *UND*	00000000 __aeabi_unwind_cpp_pr0
00000000 *UND*	00000000 skb_dequeue
00000000 *UND*	00000000 kill_fasync
00000000 *UND*	00000000 rtnl_link_register
00000130 g F .text	00000020 cleanup_module
00000000 *UND*	00000000 dev_alloc_name
00000000 *UND*	00000000 memcpy
00000000 *UND*	00000000 do_sync_write
00000000 *UND*	00000000 kfree
00000000 *UND*	00000000 add_wait_queue
00000000 *UND*	00000000 eth_validate_addr
00000000 *UND*	00000000 __wake_up
00000000 *UND*	00000000 bitrev32
00000000 *UND*	00000000 __dev_get_by_name
00000000 *UND*	00000000 ether_setup
00000000 *UND*	00000000 netdev_features_change
00000000 g F .init.text	0000008c init_module
00000000 *UND*	00000000 eth_type_trans
00000000 *UND*	00000000 local_bh_enable
00000000 *UND*	00000000 dump_stack
00000000 *UND*	00000000 do_sync_read
00000000 *UND*	00000000 kfree_skb
00000000 *UND*	00000000 schedule
00000000 *UND*	00000000 alloc_netdev_mq
00000000 *UND*	00000000 __put_user_4
00000000 *UND*	00000000 kmem_cache_alloc
00000000 *UND*	00000000 local_bh_disable
00000000 *UND*	00000000 capable
00000000 *UND*	00000000 skb_queue_tail
00000000 *UND*	00000000 unlock_kernel
00000000 *UND*	00000000 device_create_file
00000000 *UND*	00000000 rtnl_link_unregister
00000000 *UND*	00000000 preempt_schedule
00000000 *UND*	00000000 sk_free
00000000 *UND*	00000000 skb_copy_datagram_const_iovec
00000000 *UND*	00000000 crc32_le
00000000 *UND*	00000000 fasync_helper
00000000 *UND*	00000000 memcpy_toiovecend
00000000 *UND*	00000000 free_netdev
00000000 *UND*	00000000 lock_kernel
00000000 *UND*	00000000 printk
00000000 *UND*	00000000 sk_alloc
00000000 *UND*	00000000 dev_set_mac_address
00000000 *UND*	00000000 netif_rx_ni
00000000 *UND*	00000000 memset
00000000 *UND*	00000000 skb_queue_purge
00000000 *UND*	00000000 __memzero
00000000 *UND*	00000000 misc_register
00000000 *UND*	00000000 __f_setown
00000000 *UND*	00000000 default_wake_function
00000000 *UND*	00000000 __init_waitqueue_head
00000000 *UND*	00000000 jiffies
00000000 *UND*	00000000 sprintf
00000000 *UND*	00000000 skb_partial_csum_set
00000000 *UND*	00000000 memcpy_fromiovecend
00000000 *UND*	00000000 sock_alloc_send_pskb
00000000 *UND*	00000000 no_llseek
00000000 *UND*	00000000 rtnl_lock
00000000 *UND*	00000000 remove_wait_queue
00000000 *UND*	00000000 malloc_sizes
00000000 *UND*	00000000 get_random_bytes
00000000 *UND*	00000000 __wake_up_sync
00000000 *UND*	00000000 in_egroup_p
00000000 *UND*	00000000 __copy_to_user
00000000 *UND*	00000000 strchr
00000000 *UND*	00000000 unregister_netdevice
00000000 *UND*	00000000 __copy_from_user
00000000 *UND*	00000000 sock_init_data
00000000 *UND*	00000000 __kmalloc
00000000 *UND*	00000000 register_netdevice

filip@cacko:~/tmp/nfs$

Are you sure that these modules work properly on your device? Maybe you have stripped them after putting them on your phone and before uploading them here?