Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,429 Members 53,678 Now Online
XDA Developers Android and Mobile Development Forum

Change yourself the size of RAMDisk and Pagepool in Himalaya ROM

Tip us?
 
c_shekhar
Old
(Last edited by c_shekhar; 8th May 2008 at 12:51 PM.)
#1  
c_shekhar's Avatar
Recognized Developer - OP
Thanks Meter 32
Posts: 1,941
Join Date: Jun 2005
Default Change yourself the size of RAMDisk and Pagepool in Himalaya ROM

(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
Please -DONATE


Samsung Galaxy S Plus
My own ROM
GB 2.3.6 KQE/Feamod NOC 1.4Fix/SkyHigh Kernel 1.4d

HTC HD2
My HD2 3.04.23569bCS (Build 23563.5.5.0)

HTC Touch Diamond
My Diam 2.10.21051A.CS (Build 21051.1.6.3)
My Diam 2.11.21056c.CS (Build 21056.1.6.9)

HTC Touch Cruise
My Pola ROM 1.60.21014aCS (Build 21014)
My Pola ROM 1.60.931aCS (Build 20931)
Radio 1.58.25.14

HTC Himalaya
My Hima ROM 6.1.2a16CS(build 19209)
My Hima ROM 6.1.1c16CS(Build 19199)
 
double_ofour
Old
#2  
double_ofour's Avatar
Recognized Developer
Thanks Meter 65
Posts: 854
Join Date: Jul 2004
CoOL... Let me try..

[M7] HTC One
Android 4.3 Jelly Bean : Sense 5
S-OFF SuperCID

[Endeavor/Edge] HTC One X
Android 4.1.1 Jelly Bean : Sense 4+

[Leo] HTC HD2
Android 4.0.1 ICS NAND

[Buzz] HTC Wildfire
Android 2.3.2 Gingerbread
Rooted/OC'd

[Wizard] o2 XDA II Mini S
Windows Mobile 6 Crossbow
G3 - CID Unlocked
Radio: 2.69.11
IPL/SPL: 3.08

[Himalaya] o2 XDA II
Windows Mobile 5 Magneto AKU3.5
Radio: 1.19
 
rheza02
Old
#3  
Senior Member
Thanks Meter 10
Posts: 459
Join Date: May 2006
where address of ram disk and program memory...?
 
rheza02
Old
#4  
Senior Member
Thanks Meter 10
Posts: 459
Join Date: May 2006
how about 48 page file and 96 mb for program memory ??
how ....?
 
c_shekhar
Old
#5  
c_shekhar's Avatar
Recognized Developer - OP
Thanks Meter 32
Posts: 1,941
Join Date: Jun 2005
@rheza02
You must keep in mind that the total of pagepool+Program memory+RAMDisk must 128MB
Please -DONATE


Samsung Galaxy S Plus
My own ROM
GB 2.3.6 KQE/Feamod NOC 1.4Fix/SkyHigh Kernel 1.4d

HTC HD2
My HD2 3.04.23569bCS (Build 23563.5.5.0)

HTC Touch Diamond
My Diam 2.10.21051A.CS (Build 21051.1.6.3)
My Diam 2.11.21056c.CS (Build 21056.1.6.9)

HTC Touch Cruise
My Pola ROM 1.60.21014aCS (Build 21014)
My Pola ROM 1.60.931aCS (Build 20931)
Radio 1.58.25.14

HTC Himalaya
My Hima ROM 6.1.2a16CS(build 19209)
My Hima ROM 6.1.1c16CS(Build 19199)
 
rheza02
Old
#6  
Senior Member
Thanks Meter 10
Posts: 459
Join Date: May 2006
thank you..

how to know size of page file...?
 
panda2020
Old
(Last edited by panda2020; 17th October 2006 at 03:54 PM.)
#7  
Senior Member
Thanks Meter 0
Posts: 154
Join Date: Mar 2005
Quote:
Originally Posted by c_shekhar View Post
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
 
c_shekhar
Old
#8  
c_shekhar's Avatar
Recognized Developer - OP
Thanks Meter 32
Posts: 1,941
Join Date: 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.
Please -DONATE


Samsung Galaxy S Plus
My own ROM
GB 2.3.6 KQE/Feamod NOC 1.4Fix/SkyHigh Kernel 1.4d

HTC HD2
My HD2 3.04.23569bCS (Build 23563.5.5.0)

HTC Touch Diamond
My Diam 2.10.21051A.CS (Build 21051.1.6.3)
My Diam 2.11.21056c.CS (Build 21056.1.6.9)

HTC Touch Cruise
My Pola ROM 1.60.21014aCS (Build 21014)
My Pola ROM 1.60.931aCS (Build 20931)
Radio 1.58.25.14

HTC Himalaya
My Hima ROM 6.1.2a16CS(build 19209)
My Hima ROM 6.1.1c16CS(Build 19199)
 
dotfred
Old
(Last edited by dotfred; 17th October 2006 at 04:34 PM.)
#9  
dotfred's Avatar
Retired Recognized Developer
Thanks Meter 6
Posts: 445
Join Date: Dec 2005
Location: Near Brussels, Belgium
Quote:
Originally Posted by panda2020 View Post
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
~()~ DotFred ~()~
FdcSoft
Device: Qtek 2020 PH10A
OS: WM2005 rom 3.33.32WWE(dotfred)
Radio: Radio 1.19

Device: Qtek 9100 WIZA200
OS: WM2006 rom 10.1.0.811WWE(dotfred)
Radio: Radio 2.61.11

Device: HTC Touch Pro T7272
OS: WM 6.1 rom 1.90.401.1WWE
Radio: Radio 1.02.25.19

www.dotfred.net

 
bluecream4
Old
#10  
bluecream4's Avatar
Senior Member
Thanks Meter 0
Posts: 106
Join Date: Oct 2006
Location: Bangkok, Thailand
I do appriciate your efford for everybody ))



Thank you

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Easily Combine Text and Manage Your Android Clipboard with StuffMerge

Android clipboard management has always been impractical without the … more

Pale Moon Browser Ported to Android

Having a wide choice of third party applications is one of the most beautiful things that Android has to … more

Partial Android Wear Source Uploaded to AOSP

2014 is certainly shaping up to be theyear of the wearables. And thanks to its innovative … more