APKTool Updated with Android Lollipop Support

One of the beauties of Android is the level of flexibility we have over our devices. Whether … more

Lollipop Leak for Sprint Galaxy S5, TWRP for Micromax Canvas Magnus – XDA TV

Android 5.0 Lollipop has been leaked for the Sprint … more

Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Deleted

Change yourself the size of RAMDisk and Pagepool in Himalaya ROM

OP c_shekhar

16th October 2006, 09:57 AM   |  #1  
c_shekhar's Avatar
OP Recognized Developer
Thanks Meter: 34
 
1,941 posts
Join Date:Joined: Jun 2005
(A) For changing RAMDisk size:
Pl change the registry as follows:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 00 MB RAMDisk
"Size"=dword:00000000
"Address"=dword:98000000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 16 MB RAMDisk
"Size"=dword:00000000
"Address"=dword:97000000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 32 MB RAMDisk
"Size"=dword:02000000
"Address"=dword:96000000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 40 MB RAMDisk
"Size"=dword:02800000
"Address"=dword:95800000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 48 MB RAMDisk
"Size"=dword:03000000
"Address"=dword:95000000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 64 MB RAMDisk
"Size"=dword:04000000
"Address"=dword:94000000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RAMDisk] --> 80 MB RAMDisk
"Size"=dword:05000000
"Address"=dword:93000000
Open the nk.nba using any hex-editor find the following byte sequence, or
Go To Address
0x004032e8
(0x0040c2e8for WM6 nk.nba),
Goto Address 0x00456250 for WM6.1
Goto Address 0x004562E8 for WM6.1 build 19209
and modify as follows:
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 08 --> 128MB Program, Memory: RAMDisk= 0MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 06 --> 96 MB program, memory: RAMdisk= 32MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 80 05 --> 88 MB program, memory: RAMdisk= 40MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 05 --> 80MB program, memory: RAMdisk= 48MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 04 --> 64 MB program, memory: RAMdisk= 64MB
and the registry to the mentioned values above.


(B) Increasing Paging Pool for Hima WM5

1. Extract NK.nba
> xda2nbftool -x NK.nbf NK.nba 0×20040304

2. Open with a Hex Editor
3. Go To Address 0×00404650
(0x0040d650 for WM6 nk.nba),
Goto Address 0x004575B8 for WM6.1
Goto Address 0x00457650 for WM6.1 build 19209
Change it to look like
64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 50 00 --> 5MB PagePool(Default)
64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 00 01 --> 16MB PagePool
64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 80 01 --> 24MB PagePool
64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 00 02 --> 32MB PagePool

4. Update Image Check Sum
> xda2nbftool -c -u NK.nba

5. Repack as NK.nbf
> xda2nbftool -x NK.nba NK.nbf 0×20040304

6. Put in the same directory as HimaUpgradeUt.exe or HimaUpgradeUt_NoID.exe

7. Flash as you normally do.
With this you can achieve the desired RAMDisk size and pagepool size in any ROM

Hope you find the info useful. Enjoy changing....cheers....

EDIT(7.2.2007): To improve understanding added the info as suggested by @llbasha
Last edited by c_shekhar; 8th May 2008 at 01:51 PM.
16th October 2006, 11:28 AM   |  #2  
double_ofour's Avatar
Recognized Developer
Thanks Meter: 66
 
852 posts
Join Date:Joined: Jul 2004
More
Cool
CoOL... Let me try..
16th October 2006, 03:58 PM   |  #3  
Senior Member
Thanks Meter: 10
 
459 posts
Join Date:Joined: May 2006
where address of ram disk and program memory...?
16th October 2006, 04:06 PM   |  #4  
Senior Member
Thanks Meter: 10
 
459 posts
Join Date:Joined: May 2006
how about 48 page file and 96 mb for program memory ??
how ....?
17th October 2006, 06:06 AM   |  #5  
c_shekhar's Avatar
OP Recognized Developer
Thanks Meter: 34
 
1,941 posts
Join Date:Joined: Jun 2005
@rheza02
You must keep in mind that the total of pagepool+Program memory+RAMDisk must 128MB
17th October 2006, 03:39 PM   |  #6  
Senior Member
Thanks Meter: 10
 
459 posts
Join Date:Joined: May 2006
thank you..

how to know size of page file...?
17th October 2006, 04:45 PM   |  #7  
Senior Member
Thanks Meter: 1
 
158 posts
Join Date:Joined: Mar 2005
Exclamation
Quote:
Originally Posted by c_shekhar

Pl change the registry as follows:

FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 08 --> 128MB Program, Memory: RAMDisk= 0MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 06 --> 96 MB program, memory: RAMdisk= 32MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 80 05 --> 88 MB program, memory: RAMdisk= 40MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 05 --> 80MB program, memory: RAMdisk= 48MB
FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 04 --> 64 MB program, memory: RAMdisk= 64MB
and the registry to the mentioned values above.


Hope you find the info useful. Enjoy changing....cheers....

Hello! c_shekhar

I still don't get it! I don't understand how to change the registry! I do find the registry file for ramdisk and I did change it according to your instruction. But I still don't understand the above "lines". What does it mean???

Help!!!

Panda2020
Last edited by panda2020; 17th October 2006 at 04:54 PM.
17th October 2006, 05:24 PM   |  #8  
c_shekhar's Avatar
OP Recognized Developer
Thanks Meter: 34
 
1,941 posts
Join Date:Joined: Jun 2005
1. Open nk.nba with hex editor. search for the byte pattern corresponding to RAMDisk and pagepool size. Modify the byte according to your requirement. For example for pagepool look for 64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 and modify the next two bytes. Similarly for RAMDisk size.
2. change the registry in the folder \OEM\ROM_Himalaya_v1.50. It should be probably 0ffd60e6-162d-4643-850c-58fcc4e34579.rgu in your folder too. And cook.
17th October 2006, 05:24 PM   |  #9  
dotfred's Avatar
Retired Recognized Developer
Flag Near Brussels, Belgium
Thanks Meter: 6
 
445 posts
Join Date:Joined: Dec 2005
More
Quote:
Originally Posted by panda2020

Hello! c_shekhar

I still don't get it! I don't understand how to change the registry! I do find the registry file for ramdisk and I did change it according to your instruction. But I still don't understand the above "lines". What does it mean???

Help!!!

Panda2020

Right, I will try to explain.
When you cook your Rom, you decide what will be the size of the RamDisk and the size of the page pool.

So first of all, you adapt the rgu file of the ramdisk to have the size you want for ramdisk then you go in the ROM directory where the nk.nba file is. You open it with an hex editor and you modify it in order to define the size of the page pool you desire. Then you cook your rom in order to have your final nk.nbf.

In my nk.nba RamDisk pattern is located at address : 0x004032e8

Hope it's clear

Cheers,

.Fred
Last edited by dotfred; 17th October 2006 at 05:34 PM.
17th October 2006, 09:35 PM   |  #10  
bluecream4's Avatar
Senior Member
Flag Bangkok, Thailand
Thanks Meter: 0
 
106 posts
Join Date:Joined: Oct 2006
More
I do appriciate your efford for everybody ))



Thank you

Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes