Guest apsande Posted June 6, 2010 Report Posted June 6, 2010 I installed the online kitchen rom 3.1 for my desire. I followed the instructions here http://android.modaco.com/content/htc-desi...r-uvoc-version/ but cannot get anything to work. I have updated the binaries as suggested in this thread, On openvpn settings if I click on start the tunnel, nothing happens and I can't get the tick to stay in the box. I tried using a command line using the terminal emulator. I typed "su" but could not load insmod. I get the message that tun.ko is an invalid module format. Thanks Andrew
Guest persko Posted June 7, 2010 Report Posted June 7, 2010 There is already a tun.ko driver included with the r3.1 kitchen custom rom, and that one works OK, as far as I can see: # insmod /system/lib/modules/tun.ko # lsmod tun 11200 0 - Live 0xbf031000 bcm4329 189976 0 - Live 0xbf000000 I see there is 3 different versions of tun.ko in the zip files: c53288cb3b3ec21b3f57d50e3da65675 system/lib/modules/tun.ko This is the original from Pauls r3.1 hitchen 065ed65312fa82a4566c41009226fd09 system/lib/modules/tun.ko This is from vpnupdatedesire_2.6.29_97da29ed_signed.zip 5b3fdd27e9b906b977190ddda10ebc82 system/lib/modules/tun.ko This is from vpnupdatedesire_2.6.29_82821fb5_signed.zip e48ba3aa81076709f941e39fa23b1ec5 system/lib/modules/tun.ko and this is from vpnupdatedesire_uvoc_signed.zip You should try to get the phone in recovery mode, and replace system/lib/modules/tun.ko with the one from Pauls kitchen. (You need to manually mount /system when in recovery mode). Hope this helps. Per
Guest agent8080 Posted June 7, 2010 Report Posted June 7, 2010 OK, so here is what I did to fix this. Unzip the tun.ko file from mcr 3.1Boot phone into recovery using Paul's recovery script.Then use the adb (adb-linux adb-windows.exe etc) file that comes with Paul's rooting package to get to shellexample ./adb-linux shellmkdir /tempsysmount /dev/block/mtdblock3 /tempsysmv /tempsys/lib/modules/tun.ko /tempsys/lib/modules/tun.ko.old./adb-linux push tun.ko /tempsys/lib/modules (I did this from another tab, pushing the tun.ko I unzipped)umount /tempsysrmdir /tempsysreboot phone, fixed.
Guest apsande Posted June 7, 2010 Report Posted June 7, 2010 Hi, Thanks so much this worked and I am able to connect to my router. I can't ping though or pass any traffic. If anyone who like to share the scripts they are using that would be really helpful. I am usng these scripts with my dd-wrt router as a server On the server I have openvpn --mktun --dev tap0 brctl addif br0 tap0 ifconfig tap0 0.0.0.0 promisc up echo " -----BEGIN OpenVPN Static key V1----- ...INSERT YOUR STATIC KEY HERE... -----END OpenVPN Static key V1----- " > /tmp/static.key ln -s /usr/sbin/openvpn /tmp/myvpn /tmp/myvpn --dev tap0 --secret /tmp/static.key --comp-lzo --port 1194 --proto udp --verb 3 --daemon and on the phone # Use the following for simple connections: remote XXXX port 1194 dev tap secret static.key proto udp comp-lzo Thanks Again Andrew OK, so here is what I did to fix this.Unzip the tun.ko file from mcr 3.1Boot phone into recovery using Paul's recovery script.Then use the adb (adb-linux adb-windows.exe etc) file that comes with Paul's rooting package to get to shellexample ./adb-linux shellmkdir /tempsysmount /dev/block/mtdblock3 /tempsysmv /tempsys/lib/modules/tun.ko /tempsys/lib/modules/tun.ko.old./adb-linux push tun.ko /tempsys/lib/modules (I did this from another tab, pushing the tun.ko I unzipped)umount /tempsysrmdir /tempsysreboot phone, fixed.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now