VPN working on 3.29.651.5 - EVO 4G General

I just installed 3.29.651.5 and to my surprise, I am finally able to connect to our servers using VPN. This is really great.
I was not able to use PPTP with 3.26 nor with CM6. I will stay with 3.29 until VPN works on CM6.

I wonder what changed? i've never been able to connect to my company VPN either. maybe this will fix it.

I read the release notes and nothing mentions changes to VPN. I have not flashed the new radio.

What about l2tp?

really? with pptp encryption enabled? it was the first thing I tested after I got the update this morning and it wasn't working for me.

I just tried connection to my L2TP VPN server at home and it's a no-go even with the latest update.
Maybe I just have bad luck though, I'm really hoping that's the case.

If you are using Cisco VPN use this for the tun.ko. and VPNC. btedeski made this but the source code was not released yet so its based off the 3.26 kernel. It works. It locks up when disconnect but thats fine by me until the source code is released
http://forum.xda-developers.com/showpost.php?p=8285195&postcount=5

Is there any way a guru can explain to someone like myself, who doesn't even know what tun.ko is, how he can connect to his work's l2tp vpn, or if it's even possible?
Running the previous froyo ota stock rooted with king's bfs #9 kernel...

nabbed said:
Is there any way a guru can explain to someone like myself, who doesn't even know what tun.ko is, how he can connect to his work's l2tp vpn, or if it's even possible?
Running the previous froyo ota stock rooted with king's bfs #9 kernel...
Click to expand...
Click to collapse
It all depends on how his work is set up. For example my work uses Cisco IPSec with Group Authentication. I need to use VPNC and am required to install the tun.ko (specific to the kernel) and busybox symlink and some tunneldroid files to get mine to work http://sourceforge.net/projects/tunneldroid/files/

dwertz said:
It all depends on how his work is set up. For example my work uses Cisco IPSec with Group Authentication. I need to use VPNC and am required to install the tun.ko (specific to the kernel) and busybox symlink and some tunneldroid files to get mine to work http://sourceforge.net/projects/tunneldroid/files/
Click to expand...
Click to collapse
If I gave you precise details on the work set up, would you be able to point it me in the right direction?
Thanks.

nabbed said:
If I gave you precise details on the work set up, would you be able to point it me in the right direction?
Thanks.
Click to expand...
Click to collapse
I only figured out the IPSec. I assume the L2TP is self explanatory. If he has IPSec then I can point you in the right direction. He will need to get the pcf file that contains all the connection information.
You could install the tun.ko. I know most of the rom makers put this in. Right now its a so so tun.ko because they source code for the kernel is not released but it does work.

dwertz said:
I only figured out the IPSec. I assume the L2TP is self explanatory. If he has IPSec then I can point you in the right direction. He will need to get the pcf file that contains all the connection information.
You could install the tun.ko. I know most of the rom makers put this in. Right now its a so so tun.ko because they source code for the kernel is not released but it does work.
Click to expand...
Click to collapse
It is IPSec. And I have been using various custom kernels with tun.ko compiled (Netarchy's and Kingclick's.) The problem is that I could never connect to the vpn server.
I'll ask the guy for extra details and that file.
Thanks.

nabbed said:
It is IPSec. And I have been using various custom kernels with tun.ko compiled (Netarchy's and Kingclick's.) The problem is that I could never connect to the vpn server.
I'll ask the guy for extra details and that file.
Thanks.
Click to expand...
Click to collapse
Put the tun.ko in the /system/lib/modules/ by doing the following
>adb push /sdcard/tun.ko /system/lib/modules/tun.ko
-------install the tun.ko
#insmod /system/lib/modules/tun.ko
-------check to see if it installed
#lsmod
----this should show up if installed
tun 10734 0 - Live 0xbf000000000
I replaced and added these files to the /system/lib/
http://sourceforge.net/projects/tunneldroid/files/.
> adb remount
> adb shell
------backup originals
# cd /system/lib
# cp libcrypto.so libcrypto-orig.so
# cp libssl.so libssl-orig.so
------replace files
> adb push libcrypto.so /system/lib/
> adb push liblzo.so /system/lib/
> adb push libssl.so /system/lib/
install VPNC apk
Grab the pcf file from the Cisco VPN on the PC open it with notepad and decrypt the group password use this or just do a search for a decryptor Get the rest of the info from the pcf and fill in the VPNC.
Hope this helps. With the current one I believe it locks up the phone when VPN is disconnected. I think its because this tun.ko is not based on the source code since it has not been released

dwertz said:
Put the tun.ko in the /system/lib/modules/ by doing the following
>adb push /sdcard/tun.ko /system/lib/modules/tun.ko
-------install the tun.ko
#insmod /system/lib/modules/tun.ko
-------check to see if it installed
#lsmod
----this should show up if installed
tun 10734 0 - Live 0xbf000000000
I replaced and added these files to the /system/lib/
http://sourceforge.net/projects/tunneldroid/files/.
> adb remount
> adb shell
------backup originals
# cd /system/lib
# cp libcrypto.so libcrypto-orig.so
# cp libssl.so libssl-orig.so
------replace files
> adb push libcrypto.so /system/lib/
> adb push liblzo.so /system/lib/
> adb push libssl.so /system/lib/
install VPNC apk
Grab the pcf file from the Cisco VPN on the PC open it with notepad and decrypt the group password use this or just do a search for a decryptor Get the rest of the info from the pcf and fill in the VPNC.
Hope this helps. With the current one I believe it locks up the phone when VPN is disconnected. I think its because this tun.ko is not based on the source code since it has not been released
Click to expand...
Click to collapse
I don't think they are running Cisco. I think it's open vpn.

nabbed said:
I don't think they are running Cisco. I think it's open vpn.
Click to expand...
Click to collapse
If they are running open vpn then install the tunnel and files from prior, also add the openvpn file. Download openvpn installer and openvpn settings.
instructions http://android.modaco.com/index.php?showtopic=291919&view=findpost&p=1078175

Related

getting get-a-robot-vpnc working on vogue

I am trying to get the get-a-robot-vpnc (http://code.google.com/p/get-a-robot-vpnc/) working on my vogue. I am running from nand, using the donut ASOP build.
The first step would be to get tun.ko installed. I downloaded the one included on the google code page and pushed it to /system/lib/modules via adb. When I try to insmod it, i get:
Code:
# pwd
pwd
/system/lib/modules
# insmod tun.ko
insmod tun.ko
insmod: can't insert 'tun.ko': unknown symbol in module or invalid parameter
I am thinking that I need to compile my own tun.ko for vogue. But I am pretty lost. Can anyone suggest any resources to get the kernel cross compiling for vogue set up? A while back when I was hanging out in vogue IRC channel craig0r gave me some good links.. but I have since lost those.
EDIT: found a link for compiling kernel: http://www.androidonhtc.com/get_involved . In the process of doing this now..
EDIT: built a copy of tun.ko that will properly insmod on the vogue. Now the problem is that I can't specify the port through the software! It seems to be assuming 62465. Looks like this is already marked as an issue: http://code.google.com/p/get-a-robot-vpnc/issues/detail?id=34
If anyone wants the tun.ko I built for vogue just PM me.

VPN over android on HD2 ?

I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
hhhawasly said:
I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
Click to expand...
Click to collapse
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
dcordes said:
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
Click to expand...
Click to collapse
Thank you very much, with this module it should then be possible to have openvpn functionality.
Update: Ok, I am now using latest kernel with tun support.
With this kernel I am able to load the module tun.ko with insmod.
There are no errors and lsmod shows me the module as active.
Where to put an entry to load this module by default on boot?
I have tried the latest kernel build, on SHUBCRAFT CM6 froyo build, the module is loaded successfully and the device /dev/tun is also created successfully.
Thanks a lot.
Anyway I couldn't try the VPN functionality since the Wireless/3G didn't work after kernel upgrade! although I have successfully loaded the wireless modules.
--------
BTW, it didn't work with mattc Leo android build.
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Downy said:
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Click to expand...
Click to collapse
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
try 1.3. VPN is enabled - not tested.
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
I am running mattec release version 1.5 with the most current kernel (zImage) and the most current modules bcm4329.ko and tun.ko extracted from http://oe.netripper.com/files/htcleo_autobuild/modules-htcleo-latest.tgz.
For wifi it is very important to always use the correct bcm4329.ko according to your currently used zImage file.
So when I update a new kernel I also always download the newest modules and extract bcm4329.ko.
To get wifi working, I have extracted the bcm4329.ko out of the modules-htcleo-latest.tgz file and then used adb (I am using ADB Magic GUI to make things easier) to push the file to /system/lib/modules. Changed permissions at the end.
So
step 1:
I boot to wimo and replace zImage in my android folder.
step 2: boot back to android and connect via adb
step 3: extract bcm4329.ko out of modules-htcleo-latest.tgz
step 4: using adb I push this bcm4329.ko file to /system/lib/modules (command: adb push bcm4329.ko /system/lib/modules)
step 5: last but not least I change permissions, but dunno know if its really neccessary. (command: adb shell chmod 777 /system/lib/modules/bcm4329.ko)
Thats it. And thats what I am always doing when I am using a new zImage.
If you have further questions, just ask!
Currently I am running the latest kernel from today, 08/13/10 without any wifi or openvpn problems.
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
hhhawasly said:
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
Click to expand...
Click to collapse
vpn module is in first post
shu8i said:
vpn module is in first post
Click to expand...
Click to collapse
Oooops
I need a glasses for my eyes
I have tried the ROM and the module and everything was running smoothly.
Thank you all very much
Sorry To Bump This Post Up
But I AM NOt Able To Connect To Vpn PPTp On Any ANdroid Cyanogen Mod
What Should I DO Is There Update Or Solution Or ANything Around ?

[TUT] OpenVPN (TAP Device) with Android 2.2 (FroYo) [24.08.2010]

Hello folks
I need a OpenVPN connection to my Server and as like (nearly) evertime nobody has a solution or the same problems.
Or I get answers like "It works for me" or "I don't know" or other less helpful hints.
So I want discribe you how I solved this Problem
I use the [BUILD][21.08.2010][Xcelsior's Android FroYo V1.00a][Kernel: htc-msm-2.6.32 #82] ROM with the [Kernel][Latest GIT][Overclocking][Undervolting][Extbatts] [email protected] #56 (r6) Kernel.
1. Copy your OpenVPN config (incl. certificates) to a folder called "openvpn" into the root of your SD Card.
- Please change the extension of your config file to "conf"
2. Make a link from "/bin" to "/system/xbin/bb"
- With adb:
Code:
adb shell ln -s /bin /system/xbin/bb
- Or from Terminal:
Code:
ln -s /bin /system/xbin/bb
3. Install "OpenVPN Installer" from market.
- Run it
- OpenVPN directory "/system/bin"
- ifconfig/route directory "/system/xbin/bb"
4. Install "OpenVPN Settings" from market.
5. Open OpenVPN Settings:
- Then you should see your config.
- Tap and hold your config and then select "Preferences"
- Check "Use VPN DNS Server" (optional)
- Enter a VPN DNS Server (optional)
- "Script Security Level" -> "Build-in + scripts"
- Go back to the main OpenVPN Settings screen
6. Open the menu (press the windows button on your phone)
- Select "Advanced"
- Check "Load tun kernel module"
- Tap on "TUN module settings"
- "Load module using" -> insmod
- "Path to tun module" -> /system/lib/modules/tun.ko
- leave the rest as default
- If you can't see your config, change the "Path to configurations" to /mnt/sdcard/openvpn
7. Open "OpenVPN Settings" and enable OpenVPN (if it is not yet enabled) and then tap on your config (sometimes twice )
8. Enjoy
My Configs:
Server Config (Windows, bridged):
Code:
dev tap
dev-node Chris
proto tcp-server
port 443
server-bridge 192.168.1.1 255.255.255.0 192.168.1.3 192.168.1.99
tls-server
dh dh384.pem
ca ca.crt
cert server.crt
key server.key
status Chris.log
ping 15
ping-restart 60
push "ping 15"
push "ping-restart 60"
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"
comp-lzo
verb 3
script-security 2
Client Config (Android 2.2):
Code:
remote little.britain.usa 443 #address changed :D
client
proto tcp
tls-client
ca ca.crt
cert Chris.crt
key Chris.key
http-proxy star.trek.ds9 80 #address changed :D
http-proxy-retry
http-proxy-option AGENT HTC_Touch_HD_T8282 Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11)
dev tap
dev-node /dev/tun
resolv-retry infinite
persist-key
persist-tun
script-security 2
verb 3
log status.log
comp-lzo
The http-proxy* commands only for those who have to tunnel through a proxy.
And now... Try it and let me know if it works for you, too
I've noticed, that OpenVPN needs a lot of energy.
Maybe the ecryption is the reason. No... That was not the reason...
Hello, thnx for the useful information.
I'm trying this on SE X10 with Donut, apparently it doesn't have /system/xbin/bb
How do I proceed then?
Where shall I set the link to?
aldoyh said:
Hello, thnx for the useful information.
I'm trying this on SE X10 with Donut, apparently it doesn't have /system/xbin/bb
How do I proceed then?
Where shall I set the link to?
Click to expand...
Click to collapse
The folder "/system/xbin/bb" does not exist. Only "/system/xbin".
I you run the command "ln -s /bin /system/xbin/bb" it will be created.
Like a shortcut to a folder in windows
Hi
I have recently bought a VPN service to change my IP to USA.
I connect to it using openvpn-2.1.3 client in my laptop (windows 7).
But I don't know how to connect my htc desire using openvpn!
They only provide me an application which downloads the settings and starts the openvpn itself. I know nothing about its configuration. I only provide a user-name and password and Vola!
here is the link to that application:
www(dot)speedex(dot)info(dot)tm/SPEEDEXVPN.exe
I would appreciate it if you can help me making the config file for desire.
and here is the config in openvpn client in my laptop:
Code:
client
dev tun
proto udp
remote-random
remote 216.155.148.9 1194
remote 216.155.148.9 5000
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
auth-user-pass
verb 3
I'm looking forward to hear from you guys
and I'm currently using modaco custom ROMs r9 with openvpn option
Hi
Did you try to follow my tutorial?
Your config seems to be ok...
maybe you can add "script-security 2" to your config... It is necessary in the new openvpn versions
But don't forget to copy the certificates to the openvpn folder on your SD card, too
the reason that I want to use openvpn is to access Android market and facebook in my phone. So, I couldn't install "OpenVPN Installer" (but I think modaco r9 already has it and it says "includes the OpenVPN binary, settings application and tunnel module.") and I can't tap and hold my config in openvpn setting program.
And one more thing, I don't know if there is any certificate?! I couldn't find any certificate in here:
C:\Program Files\OpenVPN
and I don't know how this speedex program configures my openvpn!
AND, I don't know where I should provide the user-name and password?
I couldn't use the market without OpenVPN, too.
But I connect via WLAN to download the necessary applications and then all works fine
The certificates are in "config" in the OpenVPN Folder and there should be your config file, too.
I tried the "ln -s /bin /system/xbin/bb" command using Terminal directly on my Froyo Galaxy S i9000 and got an error: Link failed, permission denied...
What can I do to make it work?
Hi,
Maybe you should type "su" (for admin rights) before starting to link the "bin" folder.
I'll hope this will solve your problem.
Crusoe86 said:
Hi,
Maybe you should type "su" (for admin rights) before starting to link the "bin" folder.
I'll hope this will solve your problem.
Click to expand...
Click to collapse
I just noticed there is no root on my phone... I will try to figure out how to do that soon as I just bought it 2 days ago in HK but already had JP2 firmware on it.
Thanks for your fast reply!
What does any of this have to do with android development. And how is your phone not rooted?
Sent from my HTC HD2 using XDA App
chrisgto4 said:
What does any of this have to do with android development.
Click to expand...
Click to collapse
Do you mean my tutorial?
chrisgto4 said:
And how is your phone not rooted?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Maybe he means, that he/she has no su access
I rooted my phone after installing JPA and got the tun.ko from http://forum.xda-developers.com/showthread.php?t=793712&highlight=tun.ko but now I get following error:
Linux ifconfig failed: could not excecute external program
I have not found a solution to it yet... anyone?
stassano said:
I rooted my phone after installing JPA and got the tun.ko from http://forum.xda-developers.com/showthread.php?t=793712&highlight=tun.ko but now I get following error:
Linux ifconfig failed: could not excecute external program
I have not found a solution to it yet... anyone?
Click to expand...
Click to collapse
First you should install only the right modules for your Kernel.
Mostly you can download the modules together with the kernel.
Your error message could be a sign of missing busybox.
Hello Guys,
I tried to start the conf with su but at Get Config -> I become an Error Message
FATAL: Cannot allocate TUN/TAP dev dynamically
Anyone knows this Error?
greetz
Crusoe86 said:
First you should install only the right modules for your Kernel.
Mostly you can download the modules together with the kernel.
Your error message could be a sign of missing busybox.
Click to expand...
Click to collapse
busybox is installed properly, I checked it through titanium backup: root access => OK (BusyBox 1.17.1 from system)
so it should be the wrong modules I downloaded... just for my info... what modules do I need exactly? is tun.ko enough or should I add more?
stassano said:
busybox is installed properly, I checked it through titanium backup: root access => OK (BusyBox 1.17.1 from system)
so it should be the wrong modules I downloaded... just for my info... what modules do I need exactly? is tun.ko enough or should I add more?
Click to expand...
Click to collapse
Yeah tun.ko should be eaugh...
But you should install "OpenVPN Installer" from market and set the right directory to Busybox. you can set a shortcut from your busybox installation (in my case "/bin") to /system/xbin/bb (that should be available in the "OpenVPN Installer" Setup process).
You should also check if you have already a folder "bb" in "xbin" and delete it if it contains a file called "placeholder". Then all should be fine if your config is correct
mschoenknecht said:
Hello Guys,
I tried to start the conf with su but at Get Config -> I become an Error Message
FATAL: Cannot allocate TUN/TAP dev dynamically
Anyone knows this Error?
greetz
Click to expand...
Click to collapse
Check you busybox installation
Take a look in my last post
Which one is the right install dir of busybox? i can choose /bin/ and /system/xbin/
My phone is rooted BusyBox v. 1.17.1 but my VPN could not execute external program!
mschoenknecht said:
Which one is the right install dir of busybox? i can choose /bin/ and /system/xbin/
My phone is rooted BusyBox v. 1.17.1 but my VPN could not execute external program!
Click to expand...
Click to collapse
It's working...
What I've done: ?!
1. Copy my Config and Certifikates on my SDCARD
2. ln -s /bin/route /system/xbin/route
3. ln -s /bin/ifconfig /system/xbin/ifconfig
4. OpenVPN Installer -> /system/xbin
5. OpenVPN Settings -> insmod -> /system/lib/modules/tun.ko
6. The Connection is successfully establish but there is still an error when i type route (Terminal) the route which normally its pushed isn't there!
any idea??? thx a lot for ur help
Tue Oct 26 18:24:58 2010 us=37445 PUSH: Received control message: 'PUSH_REPLY,route 192.168.12.0 255.255.255.0 vpn_gateway,route 192.168.18.0 255.255.255.0 vpn_gateway,route 10.40.7.1,ping 10,ping-restart 120,ifconfig 10.40.7.6 10.40.7.5'
Tue Oct 26 18:24:58 2010 us=37811 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:1: route (2.1.1)
Tue Oct 26 18:24:58 2010 us=38146 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:2: route (2.1.1)
Tue Oct 26 18:24:58 2010 us=38391 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:3: route (2.1.1)
Tue Oct 26 18:24:58 2010 us=38726 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:6: ifconfig (2.1.1)
Tue Oct 26 18:24:58 2010 us=38940 OPTIONS IMPORT: timers and/or timeouts modified
Tue Oct 26 18:24:58 2010 us=50292 TUN/TAP device tun1 opened
Tue Oct 26 18:24:58 2010 us=50628 TUN/TAP TX queue length set to 100
Tue Oct 26 18:24:58 2010 us=51147 Initialization Sequence Completed
greez

[FIXED] WPA-EAP working?

Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
network={
ssid="myCorp"
key_mgmt=WPA-EAP
eap=PEAP
identity="xxxx"
password="yyyyy"
ca_cert="keystore://CACERT_my"
phase2="auth=MSCHAPV2"
priority=1
disable_pm=1
}
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
bobybc said:
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
Click to expand...
Click to collapse
I use peap at home and leap at work. No certs though. Get yourself WIFI Advanced Configuration Editor from the market. It has all those options. That's how I got leap to work.
I've used this editor too
but it seems that there is a bug with certificates :
code.google.com/p/android/issues/detail?id=8804
Click to expand...
Click to collapse
if someone can build wpa_supplicant with proposed patch ...
Anyone obtain the following files from Eclair 2.1 ?
/system/bin/wpa_supplicant
/system/bin/wlan_loader
/system/bin/wlan_cu
i can`t
i can`t! anydon try?
10x 2 Steve , we have fixed version, but unfortunately it doesn't work on my Archos
http://code.google.com/p/android/issues/detail?id=8804
Let someone else try and confirm pls :
download
just unzip and copy to /system/bin
Anyone tried?
Sent from my A70S using Tapatalk
finally i managed to get it working
with wpa_supplicant module from CyanogenMod for Motorola Droid - see it attached
just unzip and copy to /system/bin and delete /data/misc/wifi/tiwlan.ini
of cource you need root access
you need to delete tiwlan.ini on every restart, because it's been always recovered
wpa_supplicant.conf file looks like :
ctrl_interface=tiwlan0
update_config=1
network={
ssid="MYCorporate"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="XXXX"
password="YYYY"
priority=1
}
Click to expand...
Click to collapse

[How to] CIFS after 4.1.83 update

Anybody who wants to get CIFS working after 1.8.3 update (assumes you have cifs.ko and slow-work.ko from 1.5.7)
1) adb
2) su
3) mkdir /lib/modules/2.6.32.9-00007-g527fe10
4) cp <slow-work.ko location>/slow-work.ko /lib/modules/2.6.32.9-00007-g527fe10
5) cp <cifs.ko location>/cifs.ko /lib/modules/2.6.32.9-00007-g527fe10
6) depmod -a
7) modprobe slow-work.ko
8) modprobe cifs.ko
9) reboot
This will load up CIFS automatically after every boot.
-F
I will move this to development when you reach the posts limit so you can have the chance to discuss overthere.
Thanks,
Can you upload these two files
I don't have them from 1.5.7
Thanks much,
Foogl said:
Anybody who wants to get CIFS working after 1.8.3 update (assumes you have cifs.ko and slow-work.ko from 1.5.7)
1) adb
2) su
3) mkdir /lib/modules/2.6.32.9-00007-g527fe10
4) cp <slow-work.ko location>/slow-work.ko /lib/modules/2.6.32.9-00007-g527fe10
5) cp <cifs.ko location>/cifs.ko /lib/modules/2.6.32.9-00007-g527fe10
6) depmod -a
7) modprobe slow-work.ko
8) modprobe cifs.ko
9) reboot
This will load up CIFS automatically after every boot.
-F
Click to expand...
Click to collapse
Anybody who wants to get CIFS working after 1.8.3 update (assumes you have cifs.ko and slow-work.ko from 1.5.7)
Click to expand...
Click to collapse
Can you explain how to get CIFS if we don't have cifs.ko and slow-work.ko from 1.57? Not new to linux, but new to working with android so step-by-steps are apprecaited.
Thanks
ibscum said:
Can you explain how to get CIFS if we don't have cifs.ko and slow-work.ko from 1.57? Not new to linux, but new to working with android so step-by-steps are apprecaited.
Thanks
Click to expand...
Click to collapse
Well, you can build them from the source. But here are some useful ko's build for 1.57
Sorry for the noon question but what is cifs
Sent from my MB860 using XDA Premium App
CIFS ...
... is a network protocol for sharing various thinks (files, printers, ...).
See http://en.wikipedia.org/wiki/Server_Message_Block
You are using in Windows to share folders on network. Linux implementation is called Samba. If you have that capability on your phone, you can mount your home network shares, watch movies directly from your phone without actually copying them on the phone and all sort of good thinks.
It is absolutely essential service, if you want to use your phone more extensively.
Do you know how to get nls_utf8.ko working with cifs?
Insmod nls_utf8.ko says "error inserting 'nls_utf8.ko': -1 Invalid module format
Foogl said:
... is a network protocol for sharing various thinks
Click to expand...
Click to collapse
Grr, hopefully this doesn't cause a double post - having user error even getting a quick reply in...
I followed your directions above but had some issues. When copying the files over, I kept getting 'cannot stat ..." I gave it the full path, it was under the c directory, I even tried placing the files directly under C but no matter what it kept giving the same issue. I then just copied them onto the phone using mass storage method and then did a cp from adb shell to put them in the modules directory. I assume it needed to be copied using the shell as su in order for permissions to work out?
Then I did depmod -a, which worked fine. However, modprobe .. did not. It only retuns FATAL cannot find module etc. I tried giving it the full path to the files with no success. So a google search showed some people saying to try insmod instead. I treid that giving the full path to the files and it didn't return any errors. So I ASSUME it worked?
Not sure why this didn't go as smooth as your instructions. I feel like I hacked my way through it and it's likely gone awry. I wont be able to test this out with CIFS manager until later tonight. Any suggestions on where I went wrong or what I might need to redo?
Thanks!
Well, it worked like a champ. Thanks for the quick how-to and help. Now if I could find an app that will play .iso format movies it would all be perfect...
Update:
Not only does it work, it works great. Had some time to really play with it and I couldn't be happier. No more streaming from PC to phone (except for iso formats) via apps like VLC S&C. Simply browse to the mount which looks just like any other folder on my phone and open and play my media, or open my docs. Quality is excellent, can seek/skip whatever without any hesitation. In short, it acts just as though it's a local folder. I know this is old news to most of you. Just thought I'd share for those who aren't familiar with CIFS. I swear, this connects/mounts to my windows server and plays better than my windows PC.
Just to clarify, for those who my run into the same issues I did.
If it refuses to copy the files from your pc to phone under adb shell, just copy them to your phone via the usual usb mass storage drag/drop method. I placed them in a temp folder. then back to the adb shell, do the cp commands just adjust the path where the files live to the path on your phone (i.e. in the temp dir). I suppose you might be able to just move these into the modules dir using a file explorer w/ root privs but I wanted to be sure the correct file permissions existed by doing it with adb shell as su.
Then if, after doing depmod -a the modprobe doesn't work, use insmod. I gave the full path to where you copy these files in (/lib/modules/2.6.32.9-00007-g527fe10/<filename>). Again, not sure if thats needed or if it's smart enough to scan the full modules hierarchy for the file names.
This doesn't seem to work for me anymore after the GB OTA update. Anyone has it working for them?
norm688 said:
This doesn't seem to work for me anymore after the GB OTA update. Anyone has it working for them?
Click to expand...
Click to collapse
Me either..
Cifs.ko for 4.5.91 would be awesome.
Me either..
Cifs.ko for 4.5.91 would be awesome.
Click to expand...
Click to collapse
Agreed! Any help on getting Cifs running would be greatly appreciated.
Been searching for something and found this:
http://forum.xda-developers.com/showthread.php?t=1113191
Is there any harm in using a cifs.ko intended for a different device? I'm at work now, but might give this a shot when I get home to see if it's functional for Atrix. There's another thread under the development section asking the same question of where we can get a Gingerbread friendly module.
Any direction is appreciated.
theres a bunch of kernels (some included in ROMs) with baked in CIFs support such as the popular faux123's overclock/undervolt kernel.
Flash a kernel via clockwork, no muss no fuss.
theres a bunch of kernels (some included in ROMs) with baked in CIFs support such as the popular faux123's overclock/undervolt kernel.
Flash a kernel via clockwork, no muss no fuss.
Click to expand...
Click to collapse
Hmm. Haven't taken the leap to unlock the BL. Haven't had a need for a custom ROM yet. Really, the only functionality missing for my purposes is this cifs module. I'd rather not have to unlock and bake a custom ROM just for a cifs module if possible.
fair enough. I figure if I'm rooting around system files (pun intended) might as well go the whole hog.
Then again I've run custom ROMs on all 3 droids I've owned so I'm kinda used to the assumption that whatever stock is, I can get it much faster/better
ibscum said:
Is there any harm in using a cifs.ko intended for a different device?
Any direction is appreciated.
Click to expand...
Click to collapse
There shouldn't be... but I'm pretty sure the Module (cifs.ko) needs to be compiled for the specific kernel version. (2.6.32.9-00001-g41bc3e0 [email protected] #2) The Actual Android version (GB 2.3.4) does not matter.
So if you find a cifs.ko for THAT kernel version (or a Kernel thats close enough) it might work. It's trial and error.
There are lots of folks (far smarter than I am), who can grab the kernel source and compile a cifs.ko... I'll have to learn one of these days.
fair enough. I figure if I'm rooting around system files (pun intended) might as well go the whole hog.
Click to expand...
Click to collapse
True. I have the official OTA 2.3.4 update and haven't seen any clear direction on whether I can unlock - looks like most of the information is related to those who unlocked with the leaked update. Granted, I haven't put much time into it since I've been content up until now. Might be time to start digging for info.
So if you find a cifs.ko for THAT kernel version (or a Kernel thats close enough) it might work. It's trial and error.
There are lots of folks (far smarter than I am), who can grab the kernel source and compile a cifs.ko... I'll have to learn one of these days.
Click to expand...
Click to collapse
I believe the module I linked was from a Samsung device so I'm guessing it's a no go. Appreciate the info guys!
wintermute000 said:
theres a bunch of kernels (some included in ROMs) with baked in CIFs support such as the popular faux123's overclock/undervolt kernel.
Flash a kernel via clockwork, no muss no fuss.
Click to expand...
Click to collapse
Took this advice and flashed faux123's kernel.
Not only does cifs work... my data speeds went from 300k average.. to 2mb average.
Thanks for the advice

Categories

Resources