Hi dear friends,
i have rooted my phone and installed Android 2.3.3 Original with kernel version of 2.6.35.10-g997575f.
There is no default tun.ko module in /system/lib/modules and i searched alot for suitable tun file, but for each file when i type :
$su
[Grant super user]
#cd mnt/sdcard
#insmod tun.ko
i got this error :
insmod: init_module 'tun.ko' failed (Exec format error)
1) is this error for my mistakes in commands or the tun.ko file is not suitable ?
2) i found 2.6.35.10 tun.ko file here :
http://forum.xda-developers.com/showpost.php?p=13586304&postcount=5
but the magic version was : g0956377
and for mine : g997575f
what is the differences ? it does matter ?
3)i found in htc developers the kernel 2.6.35 but they did not mention any thing about magic version, can i compile the tun file myself with this kernel ? can you give me some instruction or articles about that ?
Thanks alot !
Related
Is it just me or is compcache not working on 4.1.8?
I've found this rom slows down quite a lot after a few days so started looking at tweaking my swap/compcache settings .. checked my compcache and it seems to be broken?
Code:
# rzscontrol /dev/block/ramzswap0 -s
Failed to open /dev/block/ramzswap0: No such file or directory
modprobe ramzswap also fails ...
Code:
# modprobe ramzswap
modprobe: module 'xvmalloc' not found
modprobe: 'compcache/ramzswap.ko': unknown symbol in module or invalid parameter
If I try to modprobe to the full path of ramzswap.ko it also fails:
Code:
# modprobe /system/modules/lib/modules/2.6.29.6-cm41/compcache/ramzswap.ko
modprobe: module '/system/modules/lib/modules/2.6.29.6_cm41/compcache/ramzswap.ko' not found
I notice that the reference to the kernel version has an underscore in it (2.6.29.6_cm41), when the actual path (that exists) is:
/system/modules/lib/modules/2.6.29.6-cm41/compcache
Is there a way to get this working?
The CyanogenMod experimental thread is discussing this. It's apparently accidental and it should be fixed in the next release. There is a file and instructions in the thread for enabling the cache.
http://forum.xda-developers.com/showthread.php?t=539744
ok thanks for the info. Looks like this is now fixed and working in 4.1.10.1.
I downloaded a tun.ko from a link in http://forum.xda-developers.com/showthread.php?t=889736 for the NC kernel 2.6.32.9. My NC is with that kernel and with CM7 nightly from 11142011 (Nov 14, 2011) build.
The tun.ko I DL'ed was 194388 bytes and when I get to the insmod part, I get the error:
# su
# insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
Any insights will be greatly appreciated. Thanks.
Maybe this is the problem? How do I overcome this? Thanks.
# dmesg | grep tun
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<3>tun: version magic '2.6.32.9 preempt mod_unload modversions ARMv7 ' should be '2.6.32.9 preempt mod_unload ARMv7 '
stderr:
stderr: losetup: /dev/block/loop0: Device or resource busy
stderr:
stderr: ioctl LOOP_SET_FD failed: Device or resource busy
stderr
Im trying to use some of my milestone2 internal storage as a virtual sdcard following the storage.img method, but when i try to mount it, this is the output i got.
any one has any idea what it could be? I havent found this problem in any other user
Im currently at 2.3.6 Brazil oficial
Thnks!
Hello,I followed instructions from http://bcmon.blogspot.co.at/2012/09/...nexus-one.html, but after command sh setup.sh at the end appears insmod: init_module 'dhd.ko' failed (Exec format error).
I have read that it should be a wrong compilation of dhd.ko file for kernel used, but unfortunately am not an expert.
Has anyone solved the problem?
Samsung S2, Omnirom 4.4.2 Nightly, kernel 3.0.6.4 _CM-g87d4016.
I have a RD9700 ethernet adapter
Root, busybox, android 4.4.2
I have compiled the The sources attached with kernel with of my device.
Copied jp.ko in
/system/lib/modules
Command
su
insmod jp.ko
I receive
init_module qf9.ko failed (exec format error)
can you help me ?