Jump to content

Additional Kernel Modules (cifs.ko and tun.ko)


Guest unaszplodrmann

Recommended Posts

Guest DJ_Grom

Hi there

Can you help me with my tablet.

I'm searching for Tun.ko module.

Tryed many versions of modules, but no one works.

insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)

My tablet has android 4.0.3 and kernel 3.0.8-perf

255|app_102@android:/ # cat /proc/version

Linux version 3.0.8-perf (zhengqz@ubuntu10) (gcc version 4.4.3 (GCC) ) #2 PREEMPT Mon Aug 6 17:43:21 CST 2012

Can you help with compiling module.

Big Thanks

Link to comment
Share on other sites

Guest DJ_Grom

I understand that this topic not for other kings of tablets, but i'm googling much forums and can't find the answer.

I've read in this topic logical solution to the question i'm asking for help.

The essence of it is not in the device , but in the module.

Link to comment
Share on other sites

Guest unaszplodrmann

You can't just take any old tun module you've found; the module must match the exact kernel included with the OS on your tablet. Are you sure that the kernel in your tablet does not have tun support built-in, rather than as a module? You can find out with the following command:


stat /dev/tun

If it does, you will see output similar to:

File: '/dev/tun'

Size: 0	 Blocks: 0		 IO Block: 4096 character special file

Device: bh/11d Inode: 867		 Links: 1	 Device type: a,c8

Access: (0660/crw-rw----) Uid: ( 1000/ system) Gid: ( 1016/	 vpn)

Access: 2013-02-07 00:57:26.000000000

Modify: 2013-02-07 00:57:26.000000000

Change: 2013-02-07 00:57:26.000000000

I get the impression you've been trying various modules, none worked and now you're asking me to provide a kernel/module building tutorial. If you're not familiar with working with linux and kernel sources then I suggest that you either download a userspace OpenVPN implementation from Google Play, such as the official Android client (it doesn't require tun support in the kernel), or start reading up via the wealth of kernel building help already out there.

Link to comment
Share on other sites

Guest DJ_Grom

Hi

Writes "stat:not found"

So I realized that I haven't module on my tab. And I can't neither one of them somehow connect.

I used DroidVPN, Vanilla for them requires the tun. App OpenVPN does not support login group configured on the cisco my organization.

So can you help?

Link to comment
Share on other sites

Guest unaszplodrmann

I used DroidVPN, Vanilla for them requires the tun. App OpenVPN does not support login group configured on the cisco my organization.

So can you help?

DroidVPN uses its own protocol, so I am confused as to how it interoperates with a commercial Cisco device. My guess is that it doesn't. There are many VPN variants; you're attempting to put an square peg in a round hole, it seems. I could help you, but to be honest, I have no reason to do so. The modules I built were for a particular G300 kernel. The fact that I built them does not mean that I wish to spend my personal time compiling kernels for anyone who wants a particular module for a particular kernel for any other device out there.

But that doesn't mean you can't help yourself. If you absolutely must obtain a working tun module, then I suggest you install linux on a desktop machine, grab the kernel sources for your device and get reading some of the many tutorials out there.

Link to comment
Share on other sites

Guest DJ_Grom

I have installed Linux, download the source code of the 8860,8800

Compiled module tun.ko

By the instruction http://blog.tataranovich.com/2012/08/android.html

but can't start it.

writes "Failed (Exec format error)"

Principle as with the other modules which are found.

Tried to write a version of the file and recompile the module as in the forum instructions. but nothing helps me.

command -urmane -r don't work.

Kernel shows 3.0.8-perf version

Straight trouble.

Can you help me what is wrong?

Link to comment
Share on other sites

Guest DJ_Grom

modinfo tun.ko

дал результат

ilename: tun.ko

alias: devname:net/tun

alias: char-major-10-200

license: GPL

author: © 1999-2004 Max Krasnyansky <[email protected]>

description: Universal TUN/TAP device driver

depends:

vermagic: 3.0.8-perf preempt mod_unload modversions ARMv7

dmesg writed

tun: no symbol version for module_layout

Edited by DJ_Grom
Link to comment
Share on other sites

Guest unaszplodrmann

command -urmane -r don't work.

Kernel shows 3.0.8-perf version

If that is what you typed, it won't work. You should use the following command to check the version of string of your kernel:

uname -a

The version string shown by 'modinfo tun.ko' must match that of your kernel (i.e. 3.0.8-perf-alphanumeric_string). You can also get the kernel version string from /proc/cpuinfo. Information on matching this string in your kernel build is provided in post #8. Also note that you will need to run 'make' to do a full kernel build, rather than 'make modules'.

Link to comment
Share on other sites

Guest DJ_Grom

root@android:/ # uname -a

Linux localhost 3.0.8-perf #2 PREEMPT Mon Aug 6 17:43:21 CST 2012 armv7l GNU/Linux

root@android:/ # cat /proc/cpuinfo

Processor : ARMv7 Processor rev 2 (v7l)

BogoMIPS : 163.60

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls

CPU implementer : 0x51

CPU architecture: 7

CPU variant : 0x1

CPU part : 0x00f

CPU revision : 2

Hardware : QCT MSM8X55 SURF

Revision : 0000

Serial : 0000000000000000

root@android:/ #

So what will be "3.0.8-perf-alphanumeric_string" ??

Link to comment
Share on other sites

Guest unaszplodrmann

Sorry, I mean't /proc/version, not cpuinfo - derp.

OK, so your kernel version doesn't have a localversion appended; its is just 3.0.8-perf, which makes life easier. From what I can tell, you're getting 'tun: no symbol version for module_layout' because module.symvers is not being generated before the modules are built. Where it says:

make modules ARCH=arm CROSS_COMPILE=arm-eabi- O=build KERNELRELEASE=2.6.32.9-perf

You need to remove 'modules', so it's just 'make ARCH=arm...'

That command will build both the kernel image and the modules, so there no need do a 'make modules' afterwards.

Link to comment
Share on other sites

Guest DJ_Grom

Tryed to compile whole kernel image, but tun.ko module doesn't work.

insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)

Any suggestions?

Link to comment
Share on other sites

  • 7 months later...
Guest summersuccess

Please I meed your help to get tun.ko for my device infinix Joypad x700 kernel version 3.0.8-perf-g9d5151f. I have tried tun.ko installer what iI get is your device has no compartible modules. But going through this thread iI saw that iI have people that are guru. Please iI need your help has iI cacan't use openvpn on my device.

.# begin build properties

# autogenerated by buildinfo.sh

ro.build.id=IMM76D

ro.build.display.id=msm7627a-eng 4.0.4 IMM76D eng.yindeyun.20130327.092144 test-keys

ro.build.version.incremental=eng.yindeyun.20130327.092144

ro.build.version.sdk=15

ro.build.version.codename=REL

ro.build.version.release=4.0.4

ro.build.date=Wed Mar 27 09:22:22 CST 2013

ro.build.date.utc=1364347342

ro.build.type=eng

ro.build.user=yindeyun

ro.build.host=andriodsw

ro.build.tags=test-keys

ro.product.model=JOYPAD

ro.product.brand=qcom

ro.product.name=msm7627a

ro.product.device=msm7627a

ro.product.board=7x27

ro.product.cpu.abi=armeabi-v7a

ro.pw.device_name=NONE

ro.product.cpu.abi2=armeabi

ro.product.manufacturer=unknown

ro.product.locale.language=en

ro.product.locale.region=US

ro.wifi.channels=

ro.board.platform=msm7627a

# ro.build.product is obsolete; use ro.product.device

ro.build.product=msm7627a

# Do not try to parse ro.build.description or .fingerprint

ro.build.description=msm7627a-eng 4.0.4 IMM76D eng.yindeyun.20130327.092144 test-keys

ro.build.fingerprint=qcom/msm7627a/msm7627a:4.0.4/IMM76D/eng.yindeyun.20130327.092144:eng/test-keys

ro.build.characteristics=tablet

# end build properties

#

# system.prop for surf

#

rild.libpath=/system/lib/libril-qc-1.so

rild.libargs=-d /dev/smd0

persist.rild.nitz_plmn=

persist.rild.nitz_long_ons_0=

persist.rild.nitz_long_ons_1=

persist.rild.nitz_long_ons_2=

persist.rild.nitz_long_ons_3=

persist.rild.nitz_short_ons_0=

persist.rild.nitz_short_ons_1=

persist.rild.nitz_short_ons_2=

persist.rild.nitz_short_ons_3=

ril.subscription.types=NV,RUIM

DEVICE_PROVISIONED=1

debug.sf.hw=1

debug.composition.7x27A.type=mdp

debug.composition.7x25A.type=mdp

dalvik.vm.heapsize=48m

#

# system props for the cne module

#

persist.cne.UseCne=none

persist.cne.bat.range.low.med=30

persist.cne.bat.range.med.high=60

persist.cne.loc.policy.op=/system/etc/OperatorPolicy.xml

persist.cne.loc.policy.user=/system/etc/UserPolicy.xml

persist.cne.bwbased.rat.sel=false

persist.cne.snsr.based.rat.mgt=false

persist.cne.bat.based.rat.mgt=false

persist.cne.rat.acq.time.out=30000

persist.cne.rat.acq.retry.tout=0

persist.cne.fmc.mode=false

persist.cne.fmc.init.time.out=30

persist.cne.fmc.comm.time.out=130

persist.cne.fmc.retry=false

#persist.dsds.enabled=true

#

# system props for the MM modules

#

media.stagefright.enable-player=true

media.stagefright.enable-meta=false

media.stagefright.enable-scan=true

media.stagefright.enable-http=true

media.stagefright.enable-fma2dp=true

media.stagefright.enable-aac=true

media.stagefright.enable-qcp=true

#

# system prop for opengles version

#

ro.opengles.version=131072

#

# system props for the data modules

#

ro.use_data_netmgrd=true

persist.data.ds_fmc_app.mode=0

#

# system props for IMS module

#

persist.ims.regmanager.mode=0

#

#system prop for Bluetooth hci transport

ro.qualcomm.bt.hci_transport=uart

#

#

# system prop for requesting Master role in incoming Bluetooth connection.

#

ro.bluetooth.request.master=true

#

# system prop for Bluetooth FTP profile

#

ro.qualcomm.bluetooth.ftp=true

#

# system prop for Bluetooth SAP profile

#

ro.qualcomm.bluetooth.sap=true

#

# system prop for Bluetooth Auto connect for remote initated connections

#

ro.bluetooth.remote.autoconnect=true

#

#system property for Bluetooth discoverability timeout in seconds

#0: Always discoverable

#debug.bt.discoverable_time=0

#

# System prop to disable strict mode flash on display

#

persist.sys.strictmode.visual=false

#

# System prop to enable/disable OMH. Enabled by default

#

persist.omh.enabled=1

#System prop to enable ehrpd capability

ro.config.ehrpd=true

# System property for cabl

ro.qualcomm.cabl=1

#

#System prop to determine availability of

#analog fm path

#

ro.fm.analogpath.supported=true

#

#System property for FM transmitter

#

ro.fm.transmitter=false

#

#System property for single instance recording

#

ro.fm.mulinst.recording.support=false

#

#System property for msm

#

ro.hw_plat=7x27a

#

# for using emmc partition instead sdcard

#

persist.sys.emmcsdcard.enabled=1

#

# for disable emmc partition support

#

persist.sys.emmcpartition=1

#

# system props for SD card emulation of emmc partition

#

ro.emmc.sdcard.partition=18

#

# system property to enforce Phone Mode view

#

ro.screen.layout=normal

#

# Turn off tiled rendering

#

debug.enabletr=false

#

#System prop for setting the pixel format

#

ro.staticwallpaper.pixelformat=RGB_565

#

#System prop for disabling the meta data mode for encoder

#

debug.camcorder.disablemeta=0

#

# Simulate sdcard on /data/media

#

persist.fuse_sdcard=false

#

# System prop for using landscape preview layout in camera

#

debug.camera.landscape=true

#

# System prop for capping scroll velocity

#

ro.max.fling_velocity=4000

#

# System prop for disabling the rendering dirty regions

#

hwui.render_dirty_regions=false

# for enable poweroff charging feature

persist.pwroffcharging.enabled=true

#

# System prop for enabling discontinuity for HLS Variant Playlist

#

httplive.enable.discontinuity=true

#

# System prop for enabling camera shutter sound

#

ro.camera.sound.forced=1

persist.data_netmgrd_mtu=1300

# System prop for enabling the cdrom feature

#

persist.service.cdrom.enable=1

#

# ADDITIONAL_BUILD_PROPERTIES

#

pwv.project=I790

pwv.custom.custom=106

pwv.custom=ACT

pwv.headset.btn.function=HANGUP

pwv.time.format=24

pwv.date.format=dd-MM-yyyy

pwv.homepage=http://www.af1234.com/?S=240_320&M=JOYPAD&V=S&Z=7227

pwv.pb.match.num.length=7

pwv.voip.menu=false

pwv.lcd.size=1024X600

pwv.root.permission=NO

pwv.wapi.type=BCM4330

pwv.sql.validity.check=false

pwv.gauge.support=true

pwv.chargeric.type=FAN5405

pwv.shield.communication=false

pwv.receiver.exist=true

pwv.sim.support=true

pwv.default.backlight=102

pwv.cdma.reset.calltime=false

pwv.rf.type=WX

ro.pwv.livewallpaper=null

pwv.settings.multipanel=false

pwv.network.mode.enable=true

pwv.hide.part.development=true

pwv.have.first.contacts=false

pwv.first.contacts.phonename=NULL

pwv.first.contacts.phonenumber=NULL

pwv.first.contacts.phoneemail=NULL

pwv.mainmenu.iconsize.same=true

pwv.default.inputmethod=ANDROID

pwv.isshow.voicebtn.desk=true

pwv.ring.volume=5

pwv.default.acceler.rotation=1

pwv.screenoff.timeout=15000

pwv.gps.support=false

pwv.default.animation.scale=1

pwv.music.volume=11

pwv.default.location.allow=gps

pwv.allow.geolocation.origins=NONE

pwv.cdma.voicemail.enabled=false

pwv.data.space.install.limit=false

pwv.default.install.location=3

pwv.phone.network.mode=empty

pwv.default.touch.sounds=1

pwv.default.screen.lock.sounds=1

pwv.waln.security.type=6

pwv.lockscreen.password.type=NONE

pwv.bt.tether.hide=false

pwv.bluetooth.name=JOYPAD

pwv.hide.development.retain=true

ro.sf.lcd_density=240

persist.dsds.enabled=false

persist.sys.timezone=Africa/Lagos

pwv.light_sensor.support=false

pwv.psensor.menu=false

pwv.have.inand=true

pwv.have.otg=true

pwv.sdcc.boot=false

pwv.camera.size.2m_to_3m=true

ro.pw.version=I790_P2_14WX_AC106_H44_R_0_130327_01

pwv.sw.version.inner=I790_P2_14WX_AC106_H44_R_0_130327_01

pwv.hardware.type=TABLET

dalvik.vm.heapstartsize=5m

dalvik.vm.heapgrowthlimit=36m

dalvik.vm.heapsize=128m

keyguard.no_require_sim=true

ro.com.android.dataroaming=false

ro.com.android.dateformat=MM-dd-yyyy

ro.config.ringtone=Default.ogg

ro.config.notification_sound=Default.ogg

ro.config.alarm_alert=Alarm_Classic.ogg

persist.sys.language=en

persist.sys.country=US

ro.vendor.extension_library=/system/lib/libqc-opt.so

wifi.interface=wlan0

wifi.supplicant_scan_interval=15

ro.kernel.android.checkjni=0

net.bt.name=Android

dalvik.vm.stack-trace-file=/data/anr/traces.txt

build.txt

Edited by summersuccess
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.