PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Diamond > CDMA Diamond Development

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2008, 06:13 PM
tsab's Avatar
Lurker
Offline
Pocket PC: touch
Carrier: sprint
 
Join Date: Nov 2008
Posts: 12
Reputation: 60
tsab is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Diamond Pagepool Offset

Chefs who are cooking roms based off the Sprint Diamond WM 6.1 stock rom (1.09) that are interested in changing the default pagepool settings, read below. To perform this change, you should have a basic understanding of hex code and should be comfortable using a hex editor.

Disclaimer -

1. Altering incorrect hex values or using invalid hex values may produce a rom that will not boot. Chefs nor I shall not be responsible for any damages to your device if you do not follow the instructions given below.
2. Only verified to work with the actual Sprint Diamond WM 6.1 stock rom (1.09) or a custom rom based off of it. See screen attachments.
3. If this information, in regards to the Sprint Diamond pagepool offset, has been repeated elsewhere at PPCGeeks, please remove this thread.

Credit goes to Swiftblade over at XDA for the examples below of the various pagepool settings along with the brief explanation of static versus dynamic pagepools. Questions about pagepool in general, instead of posting here, please search over at XDA. Everything you wanted to know about pagepool has already been discussed there more than likely.

Here we go:

The unique hex string pattern responsible for the pagepool in the Sprint Diamond WM 6.1 stock rom (1.09) was found to be:
Code:
03 15 A0 03 06 16 A0 13 00 10 83 E5 E9 BB FF EB
This default offset produces a dynamic pagepool of 12MB.

[HOW TO CHANGE PAGEPOOL]

1. Open the OS.nb or Ruu_Signed.nbh file from the Sprint Diamond WM 6.1 stock rom (1.09) with a Hex Editor
2. Search for the hex string pattern mentioned above (Two occurrences should be found)
3. At the first address found, change the first two bytes "03 15" to "12 16" for a 18MB static pagepool or change the first two bytes to your desired pagepool. See further below for additional examples.
4. Repeat Step 3 at the 2nd address found
5. Save & Exit the Hex Editor
6. If you are using the OS.nb, start cooking your new rom with it
7. Flash the new Ruu_Signed.nbh and enjoy your new pagepool

[PAGEPOOL EXAMPLES]

Below are examples of some possible values for the first two bytes of the pagepool offset.

03 15 - Sprint Diamond WM 6.1 stock rom (1.09) default; 12MB dynamic (When viewed under Settings -> System -> Memory, you should have around 203.84MB of Total Program memory available.)
02 15 - 8MB dynamic
01 15 - 4MB dynamic
18 16 - 24MB static (should give you around 191.84MB Total Program memory)
10 16 - 16MB static (should give you around 199.84MB Total Program memory)

[PAGEPOOL EXPLANATIONS AND CALCULATIONS]


"XX 15" pagepools are dynamic based (first byte value multiplied by 4 to determine pagepool size)
"XX 16" pagepools are static based (first byte value multiplied by 1 to determine pagepool size)

03 15 = 0x03 * 0x400000=0xC00000=decimal 12582912 bytes = 12 MB dynamic pagepool
02 15 = 0x02 * 0x400000=0x800000=decimal 8388608 bytes = 8 MB dynamic pagepool
18 15 = 0x18 * 0x400000=0x6000000=decimal 100663296 bytes = 96 MB dynamic pagepool
18 16 = 0x18 * 0x100000=0x1800000=decimal 25165824 bytes = 24 MB static pagepool
10 16 = 0x10 * 0x100000=0x1000000=decimal 16777216 bytes = 16 MB static pagepool
20 16 = 0X20 * 0x100000=0x2000000=decimal 33554432 bytes = 32 MB static pagepool

Attached are two screen captures from my Sprint Diamond. First is a 16MB pagepool. Second is a 24MB pagepool.

Be sure to post results of the various combinations of pagepools (size and static versus dynamic) that everyone tests. Finally, I'm assuming this same pagepool modification technique should work for the Telus Diamond and Alltel Diamond once the pagepool offsets have been determined based off of their respective stock roms. Any other devices and Windows Mobile versions, your mileage may vary.

Enjoy.

-tsab
Attached Images
File Type: jpg 16MB static pagepool.jpg (20.1 KB, 310 views) Click for barcode!
File Type: jpg 24MB static pagepool.jpg (20.0 KB, 320 views) Click for barcode!

Last edited by tsab; 11-06-2008 at 08:40 PM.
Reply With Quote
This post has been thanked 3 times.
  #2 (permalink)  
Old 11-04-2008, 06:38 PM
tobeychris's Avatar
Kitchen Builder
Offline
Pocket PC: HTC Touch + Touch Diamond
Carrier: Telus
Location: Niagara Falls
 
Join Date: Feb 2008
Posts: 1,837
Reputation: 7370
tobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the communitytobeychris is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Nice tutorial, and very thorough.

Why not use PagePool Changer though?

http://forum.xda-developers.com/showthread.php?t=323269
Reply With Quote
  #3 (permalink)  
Old 11-04-2008, 06:49 PM
tsab's Avatar
Lurker
Offline
Pocket PC: touch
Carrier: sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 12
Reputation: 60
tsab is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Doesn't change the correct values, at least not for Sprint. Can't speak directly to Telus or Alltel.

http://forum.ppcgeeks.com/showthread.php?t=42774

Last edited by tsab; 11-04-2008 at 07:00 PM.
Reply With Quote
  #4 (permalink)  
Old 11-05-2008, 07:39 PM
06gmc's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro
Carrier: Sprint
Location: St. Louis
 
Join Date: Apr 2007
Posts: 195
Reputation: 90
06gmc is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

when i did a search i only found one string. should i just change the one?
Reply With Quote
  #5 (permalink)  
Old 11-06-2008, 01:25 AM
tsab's Avatar
Lurker
Offline
Pocket PC: touch
Carrier: sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 12
Reputation: 60
tsab is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Both occurrences of the unique hex string pattern need to be modified accordingly to reflect a change in the pagepool. If you are only seeing one occurrence, my guess is the OS.nb or Ruu_Signed.nbh you are attempting to edit is not based entirely off of the Sprint Diamond WM6.1 stock rom (1.09). The first occurrence of the unique hex string pattern is located in S000 of nk.exe (device kernel). If this kernel has been hex edited or replaced entirely as part of a new XIP in the rom you are attempting to edit, then, more than likely, the pattern has been altered or removed entirely and only one occurrence will exist.

Hope this helps. Good luck.

-tsab
Reply With Quote
  #6 (permalink)  
Old 11-06-2008, 11:02 AM
colonel's Avatar
Retired Staff
Offline
Pocket PC: HTC Harrier, HTC Apache, HTC Titan, HTC Vogue....
Carrier: Sprint
Location: Shawnee, KS
 
Join Date: Jan 2007
Posts: 2,434
Reputation: 508
colonel knows their stuffcolonel knows their stuffcolonel knows their stuffcolonel knows their stuffcolonel knows their stuffcolonel knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Nice work tsab. Good information.

Here is an alternative for you. If you replace the referenced string in the OP:

Code:
03 15 A0 03 06 16 A0 13 00 10 83 E5 E9 BB FF EB
With:

Code:
03 15 A0 03 06 16 A0 13 00 00 A0 E1 E9 BB FF EB
it will read the value set by the pagepool changers that are available. However, it will probably not do the dynamic/static variable. I believe it will only be static pagepools at that point.
__________________
Kitchen updates at www.ppckitchen.org and you can get BuildOS help Here

If you have been helped by me or would like to support developers like Olipro, helmi_c, and others please feel free to Donate

ALWAYS FLASH BACK TO YOUR CARRIER'S OFFICIAL ROM BEFORE TAKING YOUR PHONE IN FOR SERVICE OF ANY KIND


Last edited by colonel; 11-06-2008 at 11:18 AM.
Reply With Quote
This post has been thanked 1 times.
  #7 (permalink)  
Old 11-06-2008, 12:07 PM
06gmc's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro
Carrier: Sprint
Location: St. Louis
 
Join Date: Apr 2007
Posts: 195
Reputation: 90
06gmc is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Quote:
Originally Posted by colonel View Post
Nice work tsab. Good information.

Here is an alternative for you. If you replace the referenced string in the OP:

Code:
03 15 A0 03 06 16 A0 13 00 10 83 E5 E9 BB FF EB
With:

Code:
03 15 A0 03 06 16 A0 13 00 00 A0 E1 E9 BB FF EB
it will read the value set by the pagepool changers that are available. However, it will probably not do the dynamic/static variable. I believe it will only be static pagepools at that point.
So your saying replace the original string with 03 15 A0 03 06 16 A0 13 00 00 A0 E1 E9 BB FF EB then make the changes to the first 4 digits?

I would like to use 32mb static
Reply With Quote
  #8 (permalink)  
Old 11-06-2008, 01:53 PM
tsab's Avatar
Lurker
Offline
Pocket PC: touch
Carrier: sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 12
Reputation: 60
tsab is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Colonel is saying if you replace the default pagepool offset with the hex string that he referenced, with no additional changes, the pagepool changer will then work.

-tsab
Reply With Quote
This post has been thanked 1 times.
  #9 (permalink)  
Old 11-06-2008, 03:02 PM
06gmc's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro
Carrier: Sprint
Location: St. Louis
 
Join Date: Apr 2007
Posts: 195
Reputation: 90
06gmc is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

Thanks. Trying it now.
Reply With Quote
  #10 (permalink)  
Old 11-06-2008, 04:25 PM
ppcninjaz's Avatar
N00b
Offline
Pocket PC: Sprint Touch Pro
Carrier: Sprint
 
Join Date: Aug 2008
Posts: 37
Reputation: 25
ppcninjaz is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Diamond Pagepool Offset

lol... i did this on JD's rom to 18 16 for 24mb static... and my actualy total memory says it went UP from ~203 to ~207. wtf? X_X

nevermind i'm retarded and used the wrong hex value rofl

Last edited by ppcninjaz; 11-06-2008 at 04:28 PM.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Diamond > CDMA Diamond Development

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 05:15 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com