[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, 08: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 CFS boot.img
MD5SUM fd12d3635858d1da00e2590566b73564

CM 4.2.13 CFS boot.img by pershoot

CM 4.2.13 CFS boot.img
MD5SUM be744f56306f1733ccabe48d4c8c974e

CM 4.2.13 BFS-313 boot.img
MD5SUM a82f08a68ec393f0d8bee416588d5b16

CM CFS boot.img
MD5SUM 27601954b73c857ff6b70d112667ca69

CM BFS-313 boot.img
MD5SUM c8d6a1aa4ad853406b3dd4bb683e043d

CM BFS-313 boot.img with ext fix
MD5SUM 70a1ce95a9017de62d7276a84e58e804

CM BFS-313 boot.img
MD5SUM 7fe910461d09d84b1a856de926e29311

CM CFS boot.img
MD5SUM a5b229fc4704b8dbb1c12af170fd95e1

CM BFS-311 boot.img
MD5SUM 0582eb144c761d46fd097960ab9ce2c5

CM CFS boot.img
MD5SUM 45fee1ab029af69a521ddae2f7c36f91

CM 4.2.9 CFS boot.img by dumfuq

CM 4.2.8 BFS-311 boot.img
MD5SUM 72e990cf1bdeb9cc2e2c61f658fbc0dd

CM 4.2.8 CFS boot.img
MD5SUM 9157e804c101bc41e4d4ce93f4466543

CM BFS-311 boot.img
MD5SUM 6a19bb778e912ef2ec8d53a2cbd4305e

CM CFS boot.img by dwang

CM 4.2.6 BFS-311 boot.img
MD5SUM bd4fc8d8bb25f326bcfa08fa30c1199d

CM 4.2.6 CFS boot.img
MD5SUM a7f8d6882abc9d583abe1aff46f8656b

CM 4.2.6 CFS boot.img by dumfuq

CM 4.2.5 CFS boot.img by dwang

CM 4.2.4 CFS boot.img
MD5SUM 9672701c93db85da3e98755a7c12eb3d

CM CFS boot.img
MD5SUM e874ada3f78fb709814e7e65ebc1e7f3

CM 4.2.1 BFS-304 boot.img
MD5SUM 8c0e51737dc19ed192572b2f51c99bca

CM 4.2.1 CFS boot.img
MD5SUM eb7107ebb2025ce517b1af308de2fb28

CM 4.1.9999 BFS-304 boot.img
MD5SUM c3f76045c7737d99f50518cb912f0f08

CM 4.1.999 BFS-303 boot.img packed by statickaos

CM 4.1.99 BFS-303 boot.img
MD5SUM 8b11ace91c745138cde58b4bd1d7848a

CM 4.1.99 BFS-302 boot.img
MD5SUM 80cda08de15da8af824ffcb665c21c2f

CM 4.1.99 BFS-300 boot.img
MD5SUM bc8c356d1b97c7c0ebc46c50a03b9eaa

CM BFS-302 boot.img
MD5SUM 9d7f189db371ac3cc8ac7845d513be50

CM BFS-300 boot.img
MD5SUM ab8978a92436f600ecd05fbf7ddbf027

CM kernel boot.img
MD5SUM 9e49829ad466b2f3adf9402bcba9c9c0

CM kernel with CFS instead of BFS boot.img (by dumfuq only for Dream)

CM 4.0.4 kernel boot.img (by dumfuq only for Dream)

HTC sourced kernel (by cyrowski and jac)

Stock Android 1.6 Kernel (by dwang)

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:

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

Fastboot Install

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.

flash_image boot /sdcard/boot.img
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, 09:08 AM |#2  
Senior Member
Thanks Meter: 13
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, 09:34 AM |#3  
Senior Member
Thanks Meter: 323
Its 107.5 megs right? Not 110 megs?
1st October 2009, 09:40 AM |#4  
Senior Member
Thanks Meter: 166
Donate to Me
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, 10:00 AM |#5  
Senior Member
Thanks Meter: 3
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, 10:40 AM |#6  
Senior Member
Thanks Meter: 166
Donate to Me
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, 11:18 AM |#7  
Senior Member
Thanks Meter: 10
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, 12:08 PM |#8  
skrki's Avatar
Senior Member
Flag Canberra
Thanks Meter: 2
Thumbs up
Just reporting:
              total         used         free
  Mem:       107292       105836         1456
 Swap:        30864         4356        26508
Total:       138156       110192        27964
Haven't flashed it yet, I'm just gonna monitor the behaviour for a while...
1st October 2009, 01:51 PM |#9  
jokersax11's Avatar
Inactive Recognized Developer
Thanks Meter: 7,055
Donate to Me
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, 02:38 PM |#10  
Junior Member
Thanks Meter: 1
I, also, get 107.5 instead of 110
1st October 2009, 02:48 PM |#11  
Senior Member
Thanks Meter: 108
Hi, did it fixed the problem with 3D games?
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes