[Touch Diamond, MDA Compact IV ROM Development] shaks1979:
After having done some research in changing the pagepool on the new 2.0x based diamond roms I have made some interesting discoveries.

The new roms have another 4Mb missing e.g.

2.0x ROMs with 12Mb pagepool have 107.02Mb Program Memory, 8Mb Roms have 111.02Mb, 0Mb Roms have 119.02Mb & if you see 113.02Mb then pagepool is 6Mb

In Comparison

1.93 ROMS with 12Mb pagepool have 111.02Mb Program Memory, 8Mb Roms have 115.02Mb, 0Mb Roms have 123.02Mb & if you see 117.02Mb then pagepool is 6Mb

So this means all new 2.0x Roms are actually set to 12Mb Pagepool and not 16Mb as previously thought.

The best way to definitely be sure what your pagepool is is to run devhealth.exe on your device. This will create the following file on your internal storage mem_1.txt. This file will detail how your physical memory is shared out into pagepool and other areas. 2.00Roms show up in devhealth as having 120.12Mb of total physical memory (including pagepool) and previous roms have 124.12Mb total memory.

Devhealth.exe is available at the following link:

http://xdaforums.com/showthread.php?t=416334

Most of the time there is not much point in editing the pagepool on these new roms as they are already 12Mb and lowering that I feel they do not run as well.

If you would still like to change the pagepool there are two methods. the easiest is to use pagepool changer however it does not work without modifying the rom first with a hex editor as the pagepool appears to be set in two places and one can override the other.

Now how do we change the pagepool on these new roms?

Method 1 Using Pagepool Editor

Pagepool Edit 2.21 will not work on the rom properly unless a hex key is changed in the rom image file or your rom has been pagepool patched by the chef.

1. In a hex editor search for the following key 03 25 A0 E3 03 15 A0 E3 00 20 83 E5

2. If this key exists, replace 20 83 E5 with 00 A0 E1 This disables this key and lets pagepool changer work.

If the key in step 1 does not exist and you are using a cooked rom then search for the following 03 25 A0 E3 03 15 A0 E3 00 00 A0 E1. If this exists then the pagepool changer should work without any hex edits as the chef has already made the required change.

3. Save the image file.

4. The rom will now not use this key to change the pagepool and it can now be set using the key changed by pagepool editor. If you don't run pagepool editor the rom is now set to 6Mb.

5. Any changes made through the pagepool changer will now be carried out correctly and will reflect in program memory and devhealth.exe

Method 2 Using hex edits only

This method will probably not work if the rom has already had the above key changed by the chef. If this is the case use the pagepool changer.

1. Search for the following Hex key in a hex editor 389FE554089FE5. This is slightly different to the previous key.

2. You need to change the two numbers after it to the numbers shown further down. The first numbers are 02 25

3. Search for the string again (it appears twice). Again change the two numbers after it which will currently be 03 25

4. Save the image file then flash

0Mb Pagepool: 00 25

8Mb Pagepool: 02 25

12Mb Pagepool: 0C 26 (No point using this as it makes no difference already 12Mb)

16Mb Pagepool: 10 26

Method 3 Using ervius's Visual kitchen

Use the following kitchen to change the pagepool:

http://xdaforums.com/showthread.php?t=469420

Thanks ervius

P.S Credits to everybody who found the edits for the previous roms. I wouldn't have found these without them.