Change yourself the size of RAMDisk and Pagepool in Himalaya ROM

Search This thread

c_shekhar

Inactive Recognized Developer
Jun 7, 2005
1,979
40
(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:

c_shekhar

Inactive Recognized Developer
Jun 7, 2005
1,979
40
@rheza02
You must keep in mind that the total of pagepool+Program memory+RAMDisk must 128MB
 

panda2020

Senior Member
Mar 2, 2005
158
1
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:

c_shekhar

Inactive Recognized Developer
Jun 7, 2005
1,979
40
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.
 

dotfred

Retired Recognized Developer
Dec 30, 2005
445
6
49
Near Brussels, Belgium
www.dotfred.net
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:

panda2020

Senior Member
Mar 2, 2005
158
1
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


Thanks a lot! I already did it! But how can I know the cooked rom have such page pool size? Since the ramdisk size is shown (I cooked 32MB page pool and 32MB ramdisk)???

Panda2020
 

patbisch

Senior Member
Jun 15, 2005
71
1
Bruxelles
So if I want a 32 MB pagepool and no ramdisk, I must have 96 MB for program but I modify .nba file : FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 06 for program memory and 64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 00 02 for pagepool size and when I go to settings, system and memory in my device it show only 64 MB for program, what do I wrong ?
 
Last edited:

c_shekhar

Inactive Recognized Developer
Jun 7, 2005
1,979
40
You are right. For changing the size of the RAMDisk you have to change registry as well the hex editting the nk.nba .
 

c_shekhar

Inactive Recognized Developer
Jun 7, 2005
1,979
40
your1337l33ch3r said:
master, what im trying to do is change the program memory to 96mb and no ramdisk. 32 pagepool

1. Look for FF FF FF FF FF FF FF FF FF FF FF FF 00 00 and then make next two bytes as 00 08 to make it look like FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 08 .
2. No registry values to be placed for the RAMDisk.
3. Remove the folder ROM_Himalaya_v1.50_3.00a.40 from the OEM (if you are cooking the ROM yourself) which contains ramdisk.dll and the relevent registries.
4. look for 64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 and make next two byte as 00 02 to achieve the 32MB PagePool.
And voila you shouls achieve the desired... ANy prob you may get back to me..
 

your1337l33ch3r

Senior Member
Aug 12, 2006
58
1
1. Look for FF FF FF FF FF FF FF FF FF FF FF FF 00 00 and then make next two bytes as 00 08 to make it look like FF FF FF FF FF FF FF FF FF FF FF FF 00 00 00 08 .
2. No registry values to be placed for the RAMDisk.
3. Remove the folder ROM_Himalaya_v1.50_3.00a.40 from the OEM (if you are cooking the ROM yourself) which contains ramdisk.dll and the relevent registries.
4. look for 64 00 00 00 D8 FF 21 80 01 00 00 00 00 00 and make next two byte as 00 02 to achieve the 32MB PagePool.
And voila you shouls achieve the desired... ANy prob you may get back to me..

master im cooking your rom kitchen but the only problem i have is to locate the address of these FF FF FF FF FF FF FF FF FF FF FF FF 00 00?... i have a hard time searching for it... thank you so much for your HELP and REPLY... youre truly a MASTER...
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I have successfully flashed my i-mate by changing value in NK.nba into 32MB pagepool & 0MB RAMdisk according to your intructions; step1. Then after flashing I have modified in the Regedit to get 32MB RAMDisk. It shows 93.22MB RAM & 31.96 RAMDisk, may I right?
    After all these I'm interested about Contacts which show Sim-contacts, can u help me?
    Thnx to your advice, waiting for .........