Jump to content


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

- - - - -

  • Please log in to reply
37 replies to this topic

#21
droiddruid

droiddruid

    Enthusiast

  • Members
  • PipPipPip
  • 210 posts
  • Gender:Male
  • Location:Newcastle, UK
off topic but they done a decent job with xcom :)

Edited by droiddruid, 09 November 2012 - 06:23 PM.


#22
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300
Aye :) I guess they had to, or thousands of old farts would've complained vociferously... Just waiting for a bugfix update so 'classic' ironman is possible without hair loss ;)

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#23
droiddruid

droiddruid

    Enthusiast

  • Members
  • PipPipPip
  • 210 posts
  • Gender:Male
  • Location:Newcastle, UK
PS3 had a patch hit today but it's still a buggy mess.


#24
tmor

tmor

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:Huawei Ascend G300

View Postunaszplodrmann, on 09 November 2012 - 05:16 PM, said:

It was discussed briefly on IRC lastnight, as it happens ;) :rolleyes:

I have an OTG cable but not a hub. Like I said, I might give it a whirl soon, if I can drag myself from XCOM for an evening. I doubt the G300 can supply power and it would be better if someone with a hub and a power meter (for the safety of the precious G300) tested it.

Thanks for the reply


#25
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300
No dice. It does indeed appear that an external hub is required for power, or that some or all G300s do not have a Micro AB USB jack.

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#26
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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


#27
dalyer

dalyer

    Addict

  • Members
  • PipPipPipPipPip
  • 631 posts
  • Gender:Male
  • Location:Dublin, Ireland
  • Devices:Huawei Ascend G300
I think you're in the wrong place. This is a Huawei Ascend G300 forum....


#28
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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.


#29
dalyer

dalyer

    Addict

  • Members
  • PipPipPipPipPip
  • 631 posts
  • Gender:Male
  • Location:Dublin, Ireland
  • Devices:Huawei Ascend G300
Sorry - I didn't realise what the thread title was! :blush:


#30
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300
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.

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#31
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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?


#32
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300

View PostDJ_Grom, on 07 February 2013 - 03:54 PM, said:

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.

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#33
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
I have installed Linux, download the source code of the 8860,8800

Compiled module tun.ko
By the instruction http://blog.tatarano...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?


#34
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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, 12 February 2013 - 05:07 PM.


#35
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300

View PostDJ_Grom, on 12 February 2013 - 01:42 PM, said:

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'.

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#36
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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" ??


#37
unaszplodrmann

unaszplodrmann

    Diehard

  • Members
  • PipPipPipPip
  • 397 posts
  • Gender:Male
  • Devices:Huawei G300
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.

Kill the bee... and ultimately... you'll have nothing to spread on your toast — John Shuttleworth

#38
DJ_Grom

DJ_Grom

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:3Q QS0716D
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?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users