Is this specific to your kernel, or is this universal for setting up swap on stl13?
specific to koumakernel 2.5
Everything else will cause error messages
Upvote
0
Is this specific to your kernel, or is this universal for setting up swap on stl13?
perm(0, 0, 0755, "/system/bin/filename")
I'm having a permission problem.
I'm using
But it does not set as execute. could you tell me the proper permission? my Google-fu returned vague results, and looking at permissions for some of the roms didn't help, almost all were different...Code:perm(0, 0, 0755, "/system/bin/filename")
chmod 755 /system/bin/filename
Swap Enable/Disable - Hacks & Mods - CyanogenMod Forum
These are the scripts we were attempting to use for MIUI. I tried flashing all of them in CWM.
Always got the same result but with a lot of text cut off
Must use edify for script to work basically
Installation aborted
Lordvincent did make a flashable zip but we weren't sure about the swapfile. Been following your thread closely as well
Good stuff!
well, 755 is definitely the right permission. If it's not setting, it's one of 2 possible reasons.
1) /system is not mounted as R/W
---If it were not mounted rw, wouldn't the files fail to copy?---
2) /system/bin does not allow writing for the recovery 'user' (though it should be root)
---Any way to check this?---
make sure /system is mounted and writable. and check the permissions on /system/bin, make sure they are at least 666
correct. so if the same cwm script is successfully making the file, you should be able to set permissions as well.If it were not mounted rw, wouldn't the files fail to copy?
do an ls -l in /system and see what permissions are set for /system/binAny way to check this?
set_perm(0, 0, 0755, /system/bin/filename)
One last question for you... What am i "allowed" to mount stl13 as? i tried something last night (/data-ext) i know i was reaching... Lol just was getting tired and sick of reading lol. Will it work if i mount it as "/system/swap" as in your instructions to slayer?
Also, i was reading up on mknod, but not sure the proper usage, or if i even need it
(one of the scripts used it when mounting sdext(s) )
It was also put together for my setup with my 16 GB SD Card, so unless you have that size card and his 2.5 kernel installed I would advise not to use that info so nothing detrimental happens to your phone...
Just making you aware of my setup that it was made for bro...
I had been using an app called "SwapIt Expander" (available off of Google Play Store). It wouldn't work when I installed KK2.4, but with 2.5 works fine. It isn't a free app, but it is easy to setup and use for those who are feeling lazy (me lol). you can set swap size and swappines and it does allow you to pick where to put the swap file, though it wouldn't let me put it on /data (haven't tried to figure it out). I do take a slight hit on benchmark test, but overall use I get an improvement. I know it is harder on your SD card but i have the swappiness set to 0 so i don't hit it that often.
I have been expirementing with swap space for my kernel as well, but I have been using "Swapper2 for Root Users" free from the market. It gives you the ability to set swappiness as well as the option to use a swapfile or swap partition.
Both sound pretty good. Takes some pressure off of me while I play with adding the same kinds of stuff to my APK
I'm having a permission problem.
I'm using
But it does not set as execute. could you tell me the proper permission? my Google-fu returned vague results, and looking at permissions for some of the roms didn't help, almost all were different...Code:perm(0, 0, 0755, "/system/bin/filename")
unless I'm misunderstanding what your trying to do. that should add execute permissions to a script.
Still learning all the acceptable syntax.
if kouma's suggestion doesn't work i will try that, I'm working on it now.
Can i use mkdir in edify? Or what is the proper way?
Still learning all the acceptable syntax.
if kouma's suggestion doesn't work i will try that, I'm working on it now.
Can i use mkdir in edify? Or what is the proper way?
no but if you want a new folder in /system you can just
package_extract_dir("system", "/system")
and all subfolders present in your zip installer will be written/created.
a good resource
I got ssm with dalvik and made 48mb /data/swap/swapfile.swp .not on extension tho just threw swap file in there and it was sitting on stl13 with rest of data minus app and dalvik. haven't tested results tho but this right idea? internal space not problem still got room. why does Dalvik Swype to Facebook if I don't correct. and auto to salvia when typed. anyways.....
if I move /data/app back to internal and /data/dalvik to mmcblk0p2 and make swap partition mmcblk0p3 will I see better performance maybe? and wipe dalvik in cwm by format sd-extra. class 4 2gb. just moving dalvik cache give me enough app space and extra apps I don't use alot I just reinstall from .apks on sdcard. and I still Swyped Facebook every time like I couldn't learn word
We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.