Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dventurin
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jun 2011
Default [Q] Tun/tap driver for infuse sgh 1997

Hello!
I'm very new to the android os and owner of an infuse (android 2.2.1, kernel version: 2.6.32.9, froyo.uckd5) since a couple of weeks.

Honestly I feel a bit lost because I'm looking for a tun.ko module for this device and as far as I can see there isn't, at least for the production rom. All the tun.ko I found are compiled for kernel different from mine.

I really need openvpn and now I'm wondering if I should:
1) keep looking
2) figure out how to compile a tun.ko on my linux machine for the arm7 architecture
3) look at some modified rom with the module built in

Do you have any suggestion?
Thank you

Cheers
 
Entropy512
Old
#2  
Elite Recognized Developer
Thanks Meter 20766
Posts: 11,471
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by dventurin View Post
Hello!
I'm very new to the android os and owner of an infuse (android 2.2.1, kernel version: 2.6.32.9, froyo.uckd5) since a couple of weeks.

Honestly I feel a bit lost because I'm looking for a tun.ko module for this device and as far as I can see there isn't, at least for the production rom. All the tun.ko I found are compiled for kernel different from mine.

I really need openvpn and now I'm wondering if I should:
1) keep looking
2) figure out how to compile a tun.ko on my linux machine for the arm7 architecture
3) look at some modified rom with the module built in

Do you have any suggestion?
Thank you

Cheers
3) As far as I can tell, all of the alternative kernels have this module. The Infused ROM contains the Voodoo kernel, but I believe you can run the Voodoo or Infusion kernels on the stock ROM.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following User Says Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
dventurin
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jun 2011
ok I see.
Could you suggest to me a starting point to deal with the custom roms?
I'm have a good experience with linux since years but not enough on smart phones and android in general.
For instance, is there an official website for Infused ROM?

Any tip is welcome.
Thank you!
 
3GBeyotch
Old
#4  
Senior Member
Thanks Meter 8
Posts: 112
Join Date: Dec 2010
@dventurin - I had the same issue. I have the Infused rom installed and it has the same issue. I installed SL4A and wrote my own scripts, the app is what's broke everything works at the CLI. I then used Tasker but I think you can do it with Gscripts as well build my own shortcuts. As for where to find the Infused ROM look in the Dev section here. There a several ROM's available but I've only used Infused.
The Following User Says Thank You to 3GBeyotch For This Useful Post: [ Click to Expand ]
 
dventurin
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jun 2011
@3GBeyotch
were did you get the Infused rom? Is there an official website with documentation? Honestly I don't feel comfortable when I have to use stuff found on a forum: how can I trust them?
 
bassistguy
Old
#6  
Member
Thanks Meter 2
Posts: 30
Join Date: May 2011
Location: St. Louis
Quote:
Originally Posted by dventurin View Post
were did you get the Infused rom? Is there an official website with documentation? Honestly I don't feel comfortable when I have to use stuff found on a forum: how can I trust them?


If you want the Infused ROM, head over to the "Infuse 4G Android Development" forum....
http://forum.xda-developers.com/forumdisplay.php?f=1161


From there, you will want to look at 2 threads....

1. You need to root your device first. Check out the very first thread (entitled: [How To] Root the Samsung Infuse 4G) shows how to root your device.....
http://forum.xda-developers.com/show....php?t=1082247

(the second link under SOURCE: has a video tutorial)

Side note: When downloading Superoneclick, make sure to get the one that has the drivers included. Also, make sure your external SD card is unmounted!


======================


2. Next, you'll need to install the Infused ROM. Look at the thread (entitled: [ROM] Infused v1.5.0 - (06/18/11) - Faster and smoother than ever!), which has the instructions, etc, for installing the Infused ROM.....
http://forum.xda-developers.com/show....php?t=1105413



You basically need to root your device first, then install the Infused ROM.

As far as feeling comfortable with using the sources from the forum, you have nothing to worry about. In regards to the Infused ROM, gtg465x is the one who developed it. All you have to do is follow the instructions, and if you feel uncomfortable about doing one of the steps, ask someone here!

I've had the Infused ROM installed now for a few weeks, and I have not been disappointed! Hope this helps.
The Following User Says Thank You to bassistguy For This Useful Post: [ Click to Expand ]
 
iovchinn
Old
#7  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Aug 2011
Default Open VPN on Infused ROM tun.ko problems?

Greetings! This discussion is about what I am trying to solve, so I decided to post here. I have searched and read other threads, but can not figure out a solution. I am a noob in this.

Anyway, I also would like to make OpenVPN working on my Samsung Infuse.

I have rooted it, installed the Infused ROM Version 1.5.3 (awesme!)

About Phone gives me the following info:

Firmware version 2.2.1
Baseband version i997UCKE3
Kernel version 2.6.32.9
Build number Infused v1.5.3

No the problem. I have openvpn installed with OpenVPN Installer. My config, key, certificate files are in /sdcard/openvpn folder. Everything seems okay.

When I try to connect to my router at home, however, the tun.ko module would not load. It gives an error. I even tried to load it manually from the Terminal Emulator (insmod /system/lib/modules/tun.ko) It gives me an error still. The module file is in the folder.

What am I doing wrong? Has anyone been able to make openvpn work on the Infused ROM?

I had the same problem on the original AT&T ROM, but that one did not have the tun.ko at all, so it was understandable.

I would appreciate any suggestions.

Thank you in advance.
 
Entropy512
Old
#8  
Elite Recognized Developer
Thanks Meter 20766
Posts: 11,471
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by iovchinn View Post
Greetings! This discussion is about what I am trying to solve, so I decided to post here. I have searched and read other threads, but can not figure out a solution. I am a noob in this.

Anyway, I also would like to make OpenVPN working on my Samsung Infuse.

I have rooted it, installed the Infused ROM Version 1.5.3 (awesme!)

About Phone gives me the following info:

Firmware version 2.2.1
Baseband version i997UCKE3
Kernel version 2.6.32.9
Build number Infused v1.5.3

No the problem. I have openvpn installed with OpenVPN Installer. My config, key, certificate files are in /sdcard/openvpn folder. Everything seems okay.

When I try to connect to my router at home, however, the tun.ko module would not load. It gives an error. I even tried to load it manually from the Terminal Emulator (insmod /system/lib/modules/tun.ko) It gives me an error still. The module file is in the folder.

What am I doing wrong? Has anyone been able to make openvpn work on the Infused ROM?

I had the same problem on the original AT&T ROM, but that one did not have the tun.ko at all, so it was understandable.

I would appreciate any suggestions.

Thank you in advance.
What's the error?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
iovchinn
Old
#9  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Aug 2011
Quote:
Originally Posted by Entropy512 View Post
What's the error?
OpenVPN Settings gives the following error: "FATAL: Cannot allocate tun/tap dev dynamically".

When I run "insmod /system/lib/modules/tun.ko" it gives me: "Failed (Exec format error)

Again, thank you for your response.
 
Entropy512
Old
#10  
Elite Recognized Developer
Thanks Meter 20766
Posts: 11,471
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by iovchinn View Post
OpenVPN Settings gives the following error: "FATAL: Cannot allocate tun/tap dev dynamically".

When I run "insmod /system/lib/modules/tun.ko" it gives me: "Failed (Exec format error)

Again, thank you for your response.
out of curiosity, is there also a tun.ko in /lib/modules in addition to /system/lib/modules?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations

 
Post Reply+
Tags
kernel, openvpn, tap, tun
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...