FORUMS
Remove All Ads from XDA

[MOD] 10MB RAM Increase kernels/boot.img for Dream and Magic 32B[01/13]

166 posts
Thanks Meter: 1
 
By daproy, Senior Member on 1st October 2009, 09:32 AM
Post Reply Email Thread
The original thread troubleshooting and creating this patch can be found here

Kernel source for the boot.img I post here can be found here. The patch is here.

Discussion on whether to include this in future Cyanogen Mods can be found here

By modifying the memory map in the kernel we are able to increase the amount of usable linux memory by 10MB bringing the mapped LINUX ram to 110MB (minus kernel used memory making it around 107MB).

The patch moves the ram console and framebuffer memory to SMI on chip and changes the GPU1 ram from 8MB to 0MB. GPU0 still has 7MB mapped in SMI so only 3D intensive applications and games seem to suffer after this patch. The benefit is more RAM memory for linux to use. Several people have reported system performance improvements at the sacrifice of 3D graphics applications.

Note: you will not see extra ram under in recovery since it uses it's own (unpatched) kernel to boot.

CM 4.2.14.1 CFS boot.img
MD5SUM fd12d3635858d1da00e2590566b73564
http://www.mediafire.com/?aydmodmkdqk
http://www.sendspace.com/file/uqcy2e

CM 4.2.13 CFS boot.img by pershoot
http://rapidshare.com/files/33498770...213-dp_mem.zip
http://www.sendspace.com/file/9dvmvi

CM 4.2.13 CFS boot.img
MD5SUM be744f56306f1733ccabe48d4c8c974e
http://www.mediafire.com/?1hnzmnmfw2j
http://www.sendspace.com/file/t0sdkx

CM 4.2.13 BFS-313 boot.img
MD5SUM a82f08a68ec393f0d8bee416588d5b16
http://www.mediafire.com/?xwkeoidw52z
http://www.sendspace.com/file/2nmh6a

CM 4.2.12.2 CFS boot.img
MD5SUM 27601954b73c857ff6b70d112667ca69
http://www.mediafire.com/?ouzmzygguxz

CM 4.2.12.2 BFS-313 boot.img
MD5SUM c8d6a1aa4ad853406b3dd4bb683e043d
http://www.mediafire.com/?5noz0njajiz

CM 4.2.11.1 BFS-313 boot.img with ext fix
MD5SUM 70a1ce95a9017de62d7276a84e58e804
http://www.mediafire.com/?nodemj2xnet

CM 4.2.11.1 BFS-313 boot.img
MD5SUM 7fe910461d09d84b1a856de926e29311
http://www.mediafire.com/?z5tnmnmg4rq

CM 4.2.11.1 CFS boot.img
MD5SUM a5b229fc4704b8dbb1c12af170fd95e1
http://www.mediafire.com/?yyxzmyewjtq

CM 4.2.9.1 BFS-311 boot.img
MD5SUM 0582eb144c761d46fd097960ab9ce2c5
http://www.mediafire.com/?djvmmkozzkz

CM 4.2.9.1 CFS boot.img
MD5SUM 45fee1ab029af69a521ddae2f7c36f91
http://www.mediafire.com/?nm2mnmdyiwu

CM 4.2.9 CFS boot.img by dumfuq
http://www.mediafire.com/?zmdmhjmyzjy

CM 4.2.8 BFS-311 boot.img
http://www.mediafire.com/?fm1yngfm4fz
MD5SUM 72e990cf1bdeb9cc2e2c61f658fbc0dd

CM 4.2.8 CFS boot.img
http://www.mediafire.com/?xlwwmlzny2n
MD5SUM 9157e804c101bc41e4d4ce93f4466543

CM 4.2.7.1 BFS-311 boot.img
http://www.mediafire.com/?2mjywndydz1
MD5SUM 6a19bb778e912ef2ec8d53a2cbd4305e

CM 4.2.7.1 CFS boot.img by dwang
http://drop.io/f2hwhjz#

CM 4.2.6 BFS-311 boot.img
http://www.mediafire.com/?djmrreijnzk
MD5SUM bd4fc8d8bb25f326bcfa08fa30c1199d

CM 4.2.6 CFS boot.img
http://www.mediafire.com/?uzbnnmz124j
MD5SUM a7f8d6882abc9d583abe1aff46f8656b

CM 4.2.6 CFS boot.img by dumfuq
http://www.mediafire.com/?2gtjwngtydn

CM 4.2.5 CFS boot.img by dwang
http://drop.io/ga5vgpk#

CM 4.2.4 CFS boot.img
http://www.mediafire.com/?ndmjkk2zmga
MD5SUM 9672701c93db85da3e98755a7c12eb3d

CM 4.2.3.1 CFS boot.img
http://www.mediafire.com/?tzdnyjyg4iq
MD5SUM e874ada3f78fb709814e7e65ebc1e7f3

CM 4.2.1 BFS-304 boot.img
http://www.mediafire.com/?2znaudyduy3
MD5SUM 8c0e51737dc19ed192572b2f51c99bca

CM 4.2.1 CFS boot.img
http://www.mediafire.com/?tm5jbqv1ouf
MD5SUM eb7107ebb2025ce517b1af308de2fb28

CM 4.1.9999 BFS-304 boot.img
http://www.mediafire.com/?emeyhmzmqiz
MD5SUM c3f76045c7737d99f50518cb912f0f08

CM 4.1.999 BFS-303 boot.img packed by statickaos
https://home.statickaos.net/public/boot-new.img

CM 4.1.99 BFS-303 boot.img
http://www.mediafire.com/?nnk2mtiuioi
MD5SUM 8b11ace91c745138cde58b4bd1d7848a

CM 4.1.99 BFS-302 boot.img
http://www.mediafire.com/?ndwmmw2ti2y
MD5SUM 80cda08de15da8af824ffcb665c21c2f

CM 4.1.99 BFS-300 boot.img
http://www.mediafire.com/?mtlujofbkml
MD5SUM bc8c356d1b97c7c0ebc46c50a03b9eaa

CM 4.1.11.1 BFS-302 boot.img
MD5SUM 9d7f189db371ac3cc8ac7845d513be50
http://www.mediafire.com/?emzyyk5zwve

CM 4.1.11.1 BFS-300 boot.img
MD5SUM ab8978a92436f600ecd05fbf7ddbf027
http://www.mediafire.com/?yztwczjnzgo

CM 4.1.11.1 kernel boot.img
MD5SUM 9e49829ad466b2f3adf9402bcba9c9c0
http://www.mediafire.com/?dvwmwyit4yn
http://drop.io/mempatch

CM 4.1.11.1 kernel with CFS instead of BFS boot.img (by dumfuq only for Dream)
http://www.mediafire.com/?nzyg1f4jniu

CM 4.0.4 kernel boot.img (by dumfuq only for Dream)
http://www.mediafire.com/?12xboktlldj

HTC sourced kernel (by cyrowski and jac)
http://forum.xda-developers.com/showthread.php?t=534479

Stock Android 1.6 Kernel (by dwang)
http://forum.xda-developers.com/showthread.php?t=566676

Installation Instructions where boot.img is the name of the boot.img you download

As suggested by IConrad01 it is advisable to test a new boot.img before flashing it with:

Code:
fastboot boot boot.img
Make a nandroid backup before installing or download the stock boot.img to go back.

Fastboot Install

Code:
fastboot flash boot boot.img
fastboot reboot
Terminal Emulator Install

Copy the boot.img to the root of your sdcard. Then issue these commands from the terminal emulator.

Code:
su
flash_image boot /sdcard/boot.img
reboot
Check Linux Memory from Terminal Emulator

free or cat /proc/meminfo

Check Linux Memory from ADB

adb shell free or adb shell cat /proc/meminfo

Obviously, there is still room for improvement with this patch. Currently working on getting GPU1 RAM moved to SMI successfully and potentially accessing another 18MB of RAM if the specs on EBI memory are correct (128MB). Any ideas?
 
 
1st October 2009, 10:08 AM |#2  
Senior Member
Thanks Meter: 13
 
More
Cheers, i tried one of the earlier patches and seemed to suffer from the display dieing.



This (flashed from recovery comsole) so far seems far more stable.
1st October 2009, 10:34 AM |#3  
Senior Member
Thanks Meter: 315
 
More
Its 107.5 megs right? Not 110 megs?
1st October 2009, 10:40 AM |#4  
Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by dwang

Its 107.5 megs right? Not 110 megs?

I, also, get 107.5 instead of 110. either way it has been running nicely for me.
1st October 2009, 11:00 AM |#5  
Senior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by david1171

I, also, get 107.5 instead of 110. either way it has been running nicely for me.

actually if you do the conversion from kilobytes, its roughly 105MB, but who's counting anyways? lol.

thanks daproy for the boost
1st October 2009, 11:40 AM |#6  
Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by andonnguyen

actually if you do the conversion from kilobytes, its roughly 105MB, but who's counting anyways? lol.

thanks daproy for the boost

more=better, i have more then before; therefore, i am happy.

john has 2 apples; jill has 3 oranges; and bill has 4 stamps of acid, so the real question is, which 1 is your friend?

numbers are fun.
1st October 2009, 12:18 PM |#7  
Senior Member
Thanks Meter: 10
 
More
Great! I've been finding the patch for cm4.0.4 for a long time.

The performance improved is great but I just have 104mb ram......
1st October 2009, 01:08 PM |#8  
skrki's Avatar
Senior Member
Flag Vozdovac
Thanks Meter: 2
 
More
Thumbs up
Just reporting:
Code:
              total         used         free
  Mem:       107292       105836         1456
 Swap:        30864         4356        26508
Total:       138156       110192        27964
Nice
Haven't flashed it yet, I'm just gonna monitor the behaviour for a while...
Thanks!!!!!
1st October 2009, 02:51 PM |#9  
jokersax11's Avatar
Inactive Recognized Developer
Thanks Meter: 7,055
 
Donate to Me
More
some of the winmo mods had camera hacks and programs to set the ram to different settings without flashing all the time. how hard would it be to create a program that flashes the files necessary with the simple clicking of no extra gpu or default. also can we look into pulling from other sources this way like wifi and camera.
1st October 2009, 03:38 PM |#10  
Junior Member
Thanks Meter: 1
 
More
I, also, get 107.5 instead of 110
1st October 2009, 03:48 PM |#11  
Senior Member
Thanks Meter: 107
 
More
Hi, did it fixed the problem with 3D games?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes