Senin, 03 Mei 2010

RAMdisk storage reminder

http://forum.xda-developers.com/showthread.php?t=332215

30.53 MB of storage - REMINDER
As people keep asking over and over... I'll remind you all the procedure of joining your ExtROM with a storage space, giving you as much storage, as 30.53 MB


First, you have to download ExtROM Unlocker, install it on your device' storage (not on SD card, nor on RAMDisk!). This will give you 4 shortcuts in Programs folder:

- unhide ExtROM
- hide ExtROM
- unlock ExtROM
- lock ExtROM


First, choose "Unhide ExtROM" and perform a soft reset. After that, choose "Unlock ExtROM". Perform a soft reset.


Now, get HimaDOCTool. Run it, and do a DOC (disk-on-chip) format.

Then, hard reset. Generally it should be enough, but you'll be safier if you will do it this way:

1. Hold Camera and Record button and press reset. Hold it a while, until you'll see three options at the top. Choose:

* Enable KITL: No
* Clean Registry Hive: Yes
* Format Storage: Yes

You can walk between them and change with Camera and Record buttons.

And press Action on your DPad.

Change yourself the size of RAMDisk and Pagepool in xda II 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