[Q] Loop module help please - Android Software/Hacking General [Developers Only]

I'm a little new at this but I have a good feeling that somebody here can help.
My phone doesn't have a loop module built specifically for it yet so I have been trying to improvise. I'm doing this because I want to chroot a ubuntu image. My phone is a Droid 2. I found loop.ko and cryptoloop.ko binaries from a Droid Eris kernal. I extracted them and tried to insmod them and got the error "failed (Exec format error)." The error is supposed to mean the binary is for the wrong architecture. The Eris is supposedly ARMv6. I have run v6 binaries on my phone before.
Basically what I'm asking for is this: I need some way of installing loop modules on my phone. I need either the source of somebody's, or need to figure out what I'm doing wrong in installing these binaries. (Maybe somebody has binaries that will work).

Related

[Q] Cisco AnyConnect for Rooted Devices

Has anyone got the Cisco Any Connect for Rooted Devices App to work on the TF??? I keep getting the "This device does not meet minimum requirements to run this software (TunTap driver could not be located)" error. Anyone find a workaround?
I'd root my TF in a sec if it will work. I've been trying to get this to work on my D2G but it also doesn't have a TunTap driver. I found tun.ko in one of the forums but have to had the chance to see how one might install it. I know some custom ROMs have it included.
works fine rooted prime + clemsyn 16
It seems that it is not able to load the tun.ko if it is present as a module. I had to use insmod /system/lib/modules/tun.ko to make it work. I have a stock kernel with just added tun.ko module.
Woah, didn't know this came out...thanks. Will give it a shot.
Edit: Appears to work fine, but I need get get my ASA license.
Awesome! Finally!
The app installs fine but when you try to connect is when you get that error. @ljs_cz, does the stock 3.1 come with the tun.ko module? If not where can I find one? I found a post with a module but its for 3.0.
Totally wasn't aware this existed. Works flawlessly on my TF running prime and clemsyn. This combined with RemoteRDP means I don't need to carry round my laptop when I'm on call!
Thank you OP, life-changer.
For those who are on stock 3.1 root, copy tun.ko to /system/lib/modules and
install it from a terminal, command "insmod tun.ko".
Check with command lsmod, you should see tun.ko loaded.
Install cisco anyconnect for rooted device and you are set.
Note, you will need to load tun.ko again after a reboot.
tun.ko, http://db.tt/ad4m1qB
Sent from my Transformer TF101 using Tapatalk
Thanks ill give that a try!!!
Ok its works great but when i restart the device the module isn't installed anymore and i have to insmod again. Any way to keep is installed after device boots???
help
gpmg762 said:
For those who are on stock 3.1 root, copy tun.ko to /system/lib/modules and
install it from a terminal, command "insmod tun.ko".
Check with command lsmod, you should see tun.ko loaded.
Install cisco anyconnect for rooted device and you are set.
Note, you will need to load tun.ko again after a reboot.
tun.ko,
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
i tried copying the tun.ko to /system/lib/modules but i got Permission Denied.
Is there another way to make this work?
I am rooted with build model 8.4.4.11
You need to mount the /system as RW before you can copy it. I am not sure of the ADB command, but you can do it through total commander (file manager) which is how I did it.
is it possible that you could give me a step by step guide as to how to accomplish this? i am trying but seem to be failing.
Bump, I could also use some help with ssretz's problem.
hmm..on ICS, tried your solution anyway. copied the file over to the location you specified, but when i run the command in the terminal it says no such file or directory.
Edit...i ran su -c insmod /system/xxx/xxx/tun.ko
i ran su earlier, but not on the same line.
that seems to register it. will test later.
still failing to copy files
Hi,
im running the TF PRIME 2 with ICS 4
im trying all of the suggested aboe and still failing to copy a file to the system/library/modules folder
any help?
i think it's a permission issue, my device IS rooted and i CAN copy files to the other SD folders
zipper9 said:
Hi,
im running the TF PRIME 2 with ICS 4
im trying all of the suggested aboe and still failing to copy a file to the system/library/modules folder
any help?
i think it's a permission issue, my device IS rooted and i CAN copy files to the other SD folders
Click to expand...
Click to collapse
I've done it via command line (you must mount the system directory in RW mode) using multiple iteration of the proper switches until it finally worked, but if you're struggling, just spend a couple bucks to buy Root Explorer. The aggravation you'll save will be well worth it.
Root Explorer has a button that will eliminate the command line instructions necessary to mount the system directory in RW mode and return it to R only, along with allowing you a simple copy/paste interface to move the files.
connects but does not route over tunnel with CM9/Megatron 1.0.1
Current system with issue: Megatron 1.0.1 with stock kernel.
Details:
I am able to connect using Rooted anyconnect, and I see my route table getting updated but when I try to access a resource on the vpn network it can not reach. I am not able to ping, ssh, rdc to any resource thru the tunnel. Local lan resources such as my own computer work fine or internet resources
I see the following interfaces get created after I connect:
-csctun0
-droptun0
My route table displays updated routes after vpn connects showing to use the iface of the cscotun0 for the resources that need to be routed thru. (192.*, 10.*, etc)
Funny thing is that I am able to use the stock 4.0 ICS and/or older honeycomb releases and it works fine. It's just with Megatron 1.0.1 or any CM9 rom. I tried using update-cm-9-20120329-NIGHTLY-tf101-signed.zip, still a nogo. Leads me to believe could be related to the CM9 trunk.
The logs between stock and CM9 flavored roms look the same on anyconnect. Nothing glaring.
lsmod doesn't show the tun module in as I believe now tun is compiled directly in the kernel (can someone confirm this?) (Running lsmod with stock doesn't show tun, nor in CM9/Megatron).
I love me some cyanogen and really like ricardopvz work especially the quick apps, but I need my vpn working for production support as its nice to work off the tablet when I am not near a computer.
Any help or direction will be greatly appreciated. Thanks in advance.
Confirmed that my problem only exists with CM9/Megatron roms
AOKP and stock based roms work fine. Any one else have this issue?
Sent from my Incredible 2 using XDA

[Q] HP touchpad overclocking issue

I just wanted to overclock my TouchPad but it doesn't seem to work.
First i wanted to try it with UberKernel, it gave me an IPKG error.
Now i tried this guide and when installing the F15c Eagle Kernel again i get the IPKG error. here's what the log says:
Postinst
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps/bin/sh/media/cryptofs/apps/usr/lip/ipkg
Kernel confirmed to be compatible with thie webOS version
Verifying no existing modifications to target files...
Verification failed on /boot/System.map-2.6.35-palm-tenderloin
Verification failed on /boot/config-2.6.35-palm-tenderloin
...
and a couple more
...
Device kernel is not in factory condition, refusin to install replacement.
Wondering if someone could tell me how to install the webos kernel? Read that re installing that may help? I completely wiped my touchpad and tried re OCing and still came up with this error
jmcdougal8 said:
I just wanted to overclock my TouchPad but it doesn't seem to work.
First i wanted to try it with UberKernel, it gave me an IPKG error.
Now i tried this guide and when installing the F15c Eagle Kernel again i get the IPKG error. here's what the log says:
Postinst
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps/bin/sh/media/cryptofs/apps/usr/lip/ipkg
Kernel confirmed to be compatible with thie webOS version
Verifying no existing modifications to target files...
Verification failed on /boot/System.map-2.6.35-palm-tenderloin
Verification failed on /boot/config-2.6.35-palm-tenderloin
...
and a couple more
...
Device kernel is not in factory condition, refusin to install replacement.
Wondering if someone could tell me how to install the webos kernel? Read that re installing that may help? I completely wiped my touchpad and tried re OCing and still came up with this error
Click to expand...
Click to collapse
try this,
open preware, in the top left corner, press the down arrow button, preferences, actions, select no to avoid webos bugs, install palm pre kernel first and then uber or f15c or whatever you want to install. make sure you follow steps 6, 7 and 8 in this guide
http://forum.xda-developers.com/showthread.php?t=1230912
this should work. one thing i havne't been able to install is muffle logging system, yet to figure that out.

[Q] CIFS Manager compatibility?

Just got my A700 and it appears the kernel is not CIFS-compatible. I understand there are modules which can be used with CIFS Manager to make it work with non-compatible kernels. Does anybody know if one exists that will work with the A700?
Funny timing, I was researching this last night! I ran out of time, but essentially if you grab the kernel source, you should be able to compile the needed module, which we can then load.
I'll update this post later this morning when I dig up that URL.
--
Here are the two sources that I was referring to:
http://facti.net/drupal/node/151
http://facti.net/drupal/node/150
These articles were written for the TF101, but with the A700 kernel source available (go to Acer's Support site), there's no reason anyone cannot do this as well.
I'm going to try and find some time tonight, but we'll see.
Is this something that requires recompiling the whole kernel, or can you load the module into CIFS manager separately? If you manage to compile the module, can you post it here?
candre23 said:
Is this something that requires recompiling the whole kernel, or can you load the module into CIFS manager separately? If you manage to compile the module, can you post it here?
Click to expand...
Click to collapse
If I'm reading/researching everything correctly, all we need is a cifo.ko module from our kernel source. You should not have to recompile and install a completely new kernel.
Work is really busy today, but I've already downloaded the kernel source to a machine at home. Hoping to get time tonight to get it set up and run some tests. I'll post updates here for sure.
Thank you. I'm sure I'm not the only one who would appreciate it.
Alright, please try this file.
I cannot test myself, since I have not yet rooted (another topic entirely). Please let me know if this works for you.
No joy. Stuck the file where it wanted it, but I'm still getting "no such device".
candre23 said:
No joy. Stuck the file where it wanted it, but I'm still getting "no such device".
Click to expand...
Click to collapse
You're rooted, right?
Can you execute the following command, to "force" the module to be loaded?
insmod /system/lib/modules/cifs.ko
You can use either ADB SHELL or Terminal Emulator. Be sure you're root when you do this too (sorry, not sure what your current knowledge level is).
Thx for your effort. Unfortunately i get the following error:
# insmod /system/lib/modules/cifs.ko
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
Regards,
Dos
dosboot99 said:
Thx for your effort. Unfortunately i get the following error:
# insmod /system/lib/modules/cifs.ko
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
Regards,
Dos
Click to expand...
Click to collapse
Thank you for posting this. I think I might know what I goofed. Hopefully will get another one compiled and posted tonight.
when you compile the modules are they tablet specific? i tried the cifs.ko and md4.ko from the a500 thread in my a510, and they would load up fine with insmod, but when i used cifsmanager to mount a windows share, or tried to mount from adb shell, the tablet would reboot.
Rusty_Gunn said:
when you compile the modules are they tablet specific? i tried the cifs.ko and md4.ko from the a500 thread in my a510, and they would load up fine with insmod, but when i used cifsmanager to mount a windows share, or tried to mount from adb shell, the tablet would reboot.
Click to expand...
Click to collapse
They are specific to the kernel source code, yes.
I most likely did not have the correct kernel configuration in place, when I attempted my recompile. But since I'm returning the A700, I didn't feel like delving into it further. The articles I linked to earlier should be a good start if you wish to give it a go.
Any idea how to make CifsManager work on A510?

[Q] Adding new executable to Clockwork recovery

Hi,
I was wondering if anyone had done this before or maybe give me some advice.
I've gotten programs to compile for aosp/cm builds. I've written for example a helloworld program in external/helloworld
I've been able to push them onto data/local and have them run perfectly. Also I've been able to include them in the builds, so that when I build an aosp/cm image it includes the executable.
I'm trying to compile the program so that it is available in clockwork recovery as well.
but when I try pushing it onto the clockwork recovery it fails to run,
I don't understand whats going wrong since the same executable runs fine when in Android mode
I have tried to search around, but have not found any information on how to add new executables into clockwork recovery
thanks for any help you may be able to give.

[Q] Only position independent executables (PIE) are supported

Hello forums, I've got an annoying problem I've stumbled into. I wanted to download and install KBOX2 onto my OPO for the sake of being able to play gblorb files, I download the OneBox Package Manager that should do that automatically by executing a script in Terminal Emulator and instantly an error pops up as seen in the title of the thread, the whole PIE thing. Now, after extensive googling it seemed like a very early problem that eventually either got patched, or it was exclusive to early nexus models and fixed but some zip.
I have found no info on PIE in Lollipop 5.0 or 5.1, or for my OPO, outside of one website having an article on how to run python in the terminal - it had a subsection devoted to bypassing PIE, which included renaming your original linker to linker.old and then substituting in a patched linker in /system/bin/ that would avoid the whole PIE thing. The next problem I have stumbled into is that even after unlocking my boot, installing TWRP and rooting the device after a lot of hassle with drivers:
Whenever I would mount my /system for the sake of modifying the linker file, it would either keep trying indefinitely or fail promptly, after which I all of the sudden had no root access anymore, root checker showed I didn't have root anymore, and upon restarting my device it would be unable to boot into the OS, and instead boot into TWRP. After even more hassle I have some backups ready to easily mitigate all that but I simply cannot comprehend what the problem is. Seemingly I rooted the phone correctly yet when I want to execute a root action like changing something in /system/bin, it just unroots itself and bam. I have also tried doing all of the above through TWRP itself, mounting system, changing the files (successfully), and then unmounting it / leaving it mounted, it would still not be able to boot into the OS.
Bumping.
exactly the same.
i cant flash anything into /system/bin
i also want to patch linker file, to use SSHTunnel properly in Lollipop.
i use CyanogenOS (CM12S), and TWRP.
how to flash it?
Bumping once more. Does no one have this problem at all ?
I mean fine, PIE might not be common now, or the linker file I have might be the fix i need, but what about the system partition thing ?

Categories

Resources