Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dr.notor
Old
(Last edited by dr.notor; 10th August 2011 at 05:18 PM.) Reason: Added remove-zram.zip
#1  
dr.notor's Avatar
Senior Member - OP
Thanks Meter 353
Posts: 681
Join Date: Jul 2011
Exclamation [FIX][SCRIPT] Fixed zram for franco 2.6.32.x kernels (v18,v19) plus remount speedups

Quote:
If you do not know what is this about and do not have any problems, leave the scripts alone and go on with your life.

Attached.

1a. Fixed zram.zip for franco kernels v18/v19

Fixed by removing the 00remount script from /system/etc/init.d, since it messes up with boot on phones with DT's apps2sd (and probably other similar scripts) - a2sd fails to mount sd-ext partition, phone "hangs" on LG logo.

If you are already stuck after flashing franco's original zram.zip due to this issue, then go to recovery, mount /system there, and

Code:
> adb shell
# rm -f /system/etc/init.d/00remount
# exit
> adb reboot
Alternatively, flash remove-zram.zip and reboot. This will remove ZRAM altogether.

Quote:
There is no ZRAM support on franco's 2.6.35.x (v1) kernels, flashing this there is absolutely useless
1b. remove-zram.zip: Removes ZRAM. Deletes the following files if they exist:

Code:
/system/bin/zramconfig
/system/etc/zram.sh
/system/etc/init.d/00remount
/system/etc/init.d/00zram

2. remount-noatime.zip

Remounts all your filesystems with noatime,nodiratime options (potential I/O speedup). Taken from the original zram.zip and renamed to 98remount so that it comes after all other stuff is done.

3. remount-noatime-nobarrier.zip

Same as above, plus remounts ext4 with barrier=0 option for users with sd-ext on ext4. (potential I/O speedup)

Q: What is zram?! I do not understand what is this about!
A: Read the red warning.

Q: How can I find whether my kernel supports ZRAM?
A: Use the shell.

Code:
# zcat /proc/config.gz | grep ZRAM | grep -v ^#
CONFIG_ZRAM=y
Q: What is noatime, nodiratime, barriers?
A: Google it!

Q: I deleted the 00remount script as advised in recovery, but still have issues with A2SD not mounting my sd-ext!
A: If you are using CM7 ROM, then delete /system/etc/init.d/05mountsd as well. (Rename to _05mountsd or whatever else that does not start with digits should do as well.)
Attached Files
File Type: zip zram.zip - [Click for QR Code] (159.7 KB, 1724 views)
File Type: zip remount-noatime.zip - [Click for QR Code] (155.7 KB, 513 views)
File Type: zip remount-noatime-nobarrier.zip - [Click for QR Code] (155.7 KB, 543 views)
File Type: zip remove-zram.zip - [Click for QR Code] (124.6 KB, 362 views)
The Following 14 Users Say Thank You to dr.notor For This Useful Post: [ Click to Expand ]
 
samcad
Old
#2  
Senior Member
Thanks Meter 17
Posts: 400
Join Date: Apr 2011
Location: mangalore
Em a newbie.... just asking ... is this improves battery life?



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
________________________

LG OpTimUs OnE wiTH DragOn LOaDeD bAttERy LiFe


CyanOnmaTT v1.1

________________________
WaitiNg FoR anDy'S bOmB rom
 
dr.notor
Old
#3  
dr.notor's Avatar
Senior Member - OP
Thanks Meter 353
Posts: 681
Join Date: Jul 2011
Quote:
Originally Posted by samcad View Post
em a newbie.... Just asking ... Is this improves battery life?
no!

1234567890
 
logo_32
Old
#4  
logo_32's Avatar
Senior Member
Thanks Meter 76
Posts: 222
Join Date: Jul 2011
Location: Rajkot
Quote:
Originally Posted by samcad View Post
Em a newbie.... just asking ... is this improves battery life?



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!

If your phone is working fine then this is not for you...!!!
 
franciscofranco
Old
#5  
franciscofranco's Avatar
Recognized Developer
Thanks Meter 44488
Posts: 10,333
Join Date: Dec 2010
Location: Mountain View, CA

 
DONATE TO ME
Good one.

Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
franco.Kernel - Galaxy Nexus
franco.Kernel - Nexus 4
franco.Kernel - Nexus 7
franco.Kernel - Nexus 10


Google+ | Twitter | Portfolio

CruzerLite franco.Kernel case for the Nexus 4
CruzerLite franco.Kernel case for the Galaxy Nexus

You don't like my reply? Read this

However, if you put any trust in Quadrant scores you could use them to prove that dancing naked for 5 minutes in your garden affects device performance. By Chainfire
The Following 8 Users Say Thank You to franciscofranco For This Useful Post: [ Click to Expand ]
 
samcad
Old
#6  
Senior Member
Thanks Meter 17
Posts: 400
Join Date: Apr 2011
Location: mangalore
Quote:
Originally Posted by imiki2421 View Post
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!

If your phone is working fine then this is not for you...!!!
I have read it... but m just knowing anyway in improving in this script



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
________________________

LG OpTimUs OnE wiTH DragOn LOaDeD bAttERy LiFe


CyanOnmaTT v1.1

________________________
WaitiNg FoR anDy'S bOmB rom
 
dr.notor
Old
#7  
dr.notor's Avatar
Senior Member - OP
Thanks Meter 353
Posts: 681
Join Date: Jul 2011
Quote:
Originally Posted by franciscofranco View Post
Prepare for 40 thousand posts asking if this script makes coffee and cleans the house for you.
My /dev/null is ready
 
ciolnadu
Old
#8  
ciolnadu's Avatar
Senior Member
Thanks Meter 39
Posts: 370
Join Date: Dec 2010
Location: Simeria
And does it make coffe? )

Sent from my LG-P500 using XDA App
LG P-500
Android 2.3 CM 7
ClockworkMod
-------------
XPERIA X-10 MINI
Android 2.2 CM 6
ClockworkMod
 
mprou
Old
#9  
mprou's Avatar
Senior Member
Thanks Meter 47
Posts: 412
Join Date: Mar 2011
Location: Athens
Fresh installed 6.5.7 then fk19 then revised zram then noatime then dt a2sd (rebooting in between ofc) and got stuck again after flashing a2sd.

Got in recovery and deleted the 2 scripts from init.d via adb then reboot. It rebooted ok and I thought yeeah we're done. I did another reboot afterwards and it stuck again.
Trying to figure out what to try next. That's a way to spend my vacations lol
~ LG Optimus One P500 ~
Rom: CosmIcEXperia v3.2 by trettet
Kernel: Goldenleaf .v111206
Recovery: TWRP v1.1.1.1
Running at: 480/768@SmartassV2
(outdated sig and too bored to change it xD)
 
dr.notor
Old
#10  
dr.notor's Avatar
Senior Member - OP
Thanks Meter 353
Posts: 681
Join Date: Jul 2011
See adb logcat

 
Post Reply+
Tags
ext4, noatime, nodiratime, remount, zram
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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...