PDA

View Full Version : PagePool Patcher for WM6.1 (AT&T 3.51 Rom) and others


kyphur
29th April 2008, 06:43 PM
Here it is:

Requires you have Dot NET Framework 2.0.0x or better installed.

This simple tool will easily change your PagePool. It support the following sizes: Dynamic, 6mb, 12mb, 16mb, 18mb, 24mb & 32mb.

Easy to use:


1. Click [Browse] and find your NBH File
2. Click [Find PP], it will find the PP Settings and tell you what they are.
3. Select the desired PP Size from the dropdown (even supports returning to OEM Dynamic PP)
4. Click [Set PP]
5. Set the Left DatePicker to the Rom Date (i.e. Apr 19 2008 for AT&T 3.51)
6. Click [Find Date]
7. Set the Right DatePicker to the Date you want for the Rom
8. Click [Set Date]
9. Click [Save]


1. Click [Browse] and find your NBH File
2. Click [Analyze], it will find the Rom Version, Rom Date and PagePool Settings and tell you what they are.
3. Make the desired changes.
4. Click [Modify]
5. If you click [Analyze] again it will verify that your changes were made to the image (imemory).
6. Click [Save]

You have changed your PagePool and/or Update the Rom Date!

NOTE: This is tested to work with the At&t 3.51 Rom Base. Use at your own risk.

I will be keeping it in my 4shared Public Folder: Kyphur.4shared.com (http://www.4shared.com/dir/6777977/93cbf343/Kyphur_Public_Folder.html). There is now a folder for the PagePool Patcher, go there for the orignal & latest Versions.

Special thanks to duttythroy, Tayton & Sleuth255 it was their info that got this started.


Per user requests: Support XDA-Live Tilt Rom Development via PayPal (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=PayPal@Kyphur.org&item_name=XDA-Live%20for%20Tilt&no_shipping=1&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8)...

P1Tater
29th April 2008, 07:06 PM
Here it is:

Requires you have Dot NET Framework 2.0.0x or better installed.

This simple tool will easily change your PagePool. It support the following sizes: Dynamic, 6mb, 12mb, 16mb, 18mb, 24mb & 32mb.


Nice, can't wait to try once I get back up and running. Thanks for all your hard work.

duttythroy
29th April 2008, 07:09 PM
Here it is:

Requires you have Dot NET Framework 2.0.0x or better installed.

This simple tool will easily change your PagePool. It support the following sizes: Dynamic, 6mb, 12mb, 16mb, 18mb, 24mb & 32mb.

Easy to use:

1. Click Browse and find your NBH File
2. Click "Find PP", it will find the PP Settings and tell you what they are.
3. Select the desired PP Size from the dropdown (even supports returning to OEM Dynamic PP)
4. Click "Set PP"

You have changed your PagePool!

NOTE: This is tested to work with the At&t 3.51 Rom Base. Use at your own risk.


Per user requests: Support XDA-Live Tilt Rom Development via PayPal (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=PayPal@Kyphur.org&item_name=XDA-Live%20for%20Tilt&no_shipping=1&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8)...


nice one kyphur, great job

kyphur
29th April 2008, 07:14 PM
nice one kyphur, great job

Based on your hard work digging up the info we needed.

duttythroy
29th April 2008, 07:15 PM
Based on your hard work digging up the info we needed.

Well i'm glad i can participate in helping the kaiser community out, I saw some benchmarks on your graphics seems like u crack it:eek:

Knumb
29th April 2008, 07:23 PM
Wow! Great job on the pp tool!

Laurentius26
29th April 2008, 07:24 PM
Very cool, nice one, thanks :):):)

Saves a lot of work!

MickyMax
29th April 2008, 07:39 PM
What is "Dynamic" ? :confused:

kyphur
29th April 2008, 07:44 PM
Dynamic is the default.

As I understand it, dymanic reserves 12mb but the actual amount used is adjusted on the fly.

I can't believe that adding the overhead of managing a dynamic pp give better performance than a 12mb static pp.


What is "Dynamic" ? :confused:

MickyMax
29th April 2008, 07:45 PM
Thanks for this fast response ;)

jcespi2005
29th April 2008, 07:48 PM
Really Great Work, mate ;)

Thanks....

_Alex_
29th April 2008, 07:50 PM
Great work, Kyphur. Thanks for sharing!

scotchua
29th April 2008, 07:55 PM
Thanks man! You guys are awesome!

rallaster
29th April 2008, 07:58 PM
You just became my new hero for the day Kyphur. I'm in the process of flashing a new 6.1 ROM that I patched, gonna find out how rockin this thing can be.

GSLEON3
29th April 2008, 08:01 PM
Dynamic is the default.

As I understand it, dymanic reserves 12mb but the actual amount used is adjusted on the fly.

I can't believe that adding the overhead of managing a dynamic pp give better performance than a 12mb static pp.

FIRSTLY, Great work Kyphur! Quick on the draw, like to see that!

Second, as to Dynamic PP's, it will work equivilent to trhe static 12mb PP, except at times ity can create an enormous load on the ram as it has the ability to page out endlessly, which can cause the old WM5 type problem of "Garbage Collection" as I believe Mike Caligro put it.

kyphur
29th April 2008, 08:09 PM
Second, as to Dynamic PP's, it will work equivilent to trhe static 12mb PP, except at times ity can create an enormous load on the ram as it has the ability to page out endlessly, which can cause the old WM5 type problem of "Garbage Collection" as I believe Mike Caligro put it.

See I'm more of a desktop guy, for us dynamic means it can go down but never exceed the max alloted!

MickyMax
29th April 2008, 09:01 PM
kyphur, it does work with all 6.1 ? Right ?

I have tested it with TNT Vanilla, but it doesn't find the value...

kyphur
29th April 2008, 09:08 PM
I'm not sure.

This is dynamic, it searchs for the known string and if it doesn't find it there is no change to make.

BTW, coming soon --> Change the Rom Date! (working on it right now).

kyphur, it does work with all 6.1 ? Right ?

I have tested it with TNT Vanilla, but it doesn't find the value...

Tayton
29th April 2008, 09:35 PM
Great work Kyphur. I am glad to see someone with programming skills took up the challenge.
I checked and it works great for the att 3.51.
I tried it on one of Duttys HTC rom and it couldnt find the values. I noticed it still allowed me to select Set PP but when I checked the file the values had not changed.

A couple of questions if I may.
1) If it doesnt find a match and one clicks the SetPP button does it write to a different memory block or does it have a safety not to change the value if it doesnt find a match? If not maybe consider adding it.

2) What string are you using to find the pattern A0 03 00 E0 84 05 03 00 00 ?
That string only exists in the att 3.51 roms so this program doesnt seem to work for the non att3.51. Perhaps that is what you intended I just saw the "and others"

Consider changing the pattern match to be more universal. I am posting a sample explanation on the main threads that I will link to once its up.

Keep up the great work!

kyphur
29th April 2008, 09:52 PM
Now supports changing the Rom Date...

Will add support for currently unsupported Roms as I get the needed info.

If no PP or Date is found it won't update anything. Next version the buttons won't enable if this happens.

kyphur
29th April 2008, 10:00 PM
I'll have to change the program logic a little bit but not a problem. I want this to work for as many roms as possible.

I found your "Universal" solution in the same thread where I got the info to do the inital PP Patch.


Now, who knows how to change the Rom Version that shows in the bootloader?



Consider changing the pattern match to be more universal. I am posting a sample explanation on the main threads that I will link to once its up.

Keep up the great work!

sirooga
29th April 2008, 10:07 PM
Maybe the info you need can be gleaned from Sakajati's PP changer (http://forum.xda-developers.com/showpost.php?p=2131301&postcount=3) for info about other builds. His works on his 19202 and 19400 ROMS. Been using it for a few days now.

kyphur
29th April 2008, 11:17 PM
Use the link in post #1...

Feedback appreciated...

rock4mayo
29th April 2008, 11:22 PM
Maybe the info you need can be gleaned from Sakajati's PP changer (http://forum.xda-developers.com/showpost.php?p=2131301&postcount=3) for info about other builds. His works on his 19202 and 19400 ROMS. Been using it for a few days now.

What the different between sakajati pp changer this one?

cheers

dyetheskin
29th April 2008, 11:42 PM
hope this works for 19199 roms,if it does already then i can't wait to try once i'm home,hope setting it to 32mb will work for this rom

kyphur
29th April 2008, 11:44 PM
1. This one should work on almost all Kaiser Roms (especially the AT&T 3.51 Rom Base)

2. If it can't find your PP Settings you don't get the button to change it.

3. This is a single program that supports many PP Sizes.

4. You can change the Initial Rom Date.

5. As soon as I get the info on how, this one will be updated to change the Rom version displayed during boot.

What the different between sakajati pp changer this one?

cheers

rock4mayo
29th April 2008, 11:51 PM
1. This one should work on almost all Kaiser Roms (especially the AT&T 3.51 Rom Base)

2. If it can't find your PP Settings you don't get the button to change it.

3. This is a single program that supports many PP Sizes.

4. You can change the Initial Rom Date.

5. As soon as I get the info on how, this one will be updated to change the Rom version displayed during boot.

Thanks for quick reply...it's flying now with me:)
And change the initial rom date....wow this is great

cheers

RizwanKhan
29th April 2008, 11:55 PM
okay i actually have a question:

a) do i run this prog on desktop and make changes to nbh be4 flashing or after flashing to my tilt?

thank u for your time and hardwork.

kyphur
30th April 2008, 12:21 AM
You must modify the NBH file BEFORE FLASHING.

okay i actually have a question:

a) do i run this prog on desktop and make changes to nbh be4 flashing or after flashing to my tilt?

thank u for your time and hardwork.

RizwanKhan
30th April 2008, 12:50 AM
thanks 4 the prompt reply :-) only been a month @ xda so i have alot to learn ...

appreciate everyones dedication to us users.

GSLEON3
30th April 2008, 01:09 AM
Using this on Dutty's Apr 29 Cube Rom release I get a non-booting image. Hangs at first splash screen.

kyphur
30th April 2008, 01:18 AM
What's the Base for that Rom?

Also what did you set the PagePool to?

Using this on Dutty's Apr 29 Cube Rom release I get a non-booting image. Hangs at first splash screen.

BUMP THAT
30th April 2008, 01:21 AM
So is the dynamic PP is the same as the default PP in an untouched ROM like the 3.02wm6.1? Or is it better? I was thinking of using the Dynamic instead of a 18MB PP, if its faster.

scotchua
30th April 2008, 01:31 AM
Using this on Dutty's Apr 29 Cube Rom release I get a non-booting image. Hangs at first splash screen.

I used it on Dutty's April 29th none cube version that's compatible w/ radio 1.65.17.10 and changed the pagepool to 24, and i am not having any troubles at all. Just for what that's worth.

GSLEON3
30th April 2008, 01:36 AM
The Dutty version w/ cube is default 18mb & I tried to adjust to 16mb.

kyphur
30th April 2008, 01:36 AM
Personally, I'd set it to 12mb instead of Dynamic if you really don't want to increase the PP.

IMHO, Dynamic memory allocation simply allows the OS to f-up your system at random.

So is the dynamic PP is the same as the default PP in an untouched ROM like the 3.02wm6.1? Or is it better? I was thinking of using the Dynamic instead of a 18MB PP, if its faster.

kyphur
30th April 2008, 02:04 AM
That's what you get for using a Rom other than XDA Live!!

Seriously, make sure you have the latest version. at try it again.

The Dutty version w/ cube is default 18mb & I tried to adjust to 16mb.

BUMP THAT
30th April 2008, 02:35 AM
So do you think 18 mb PP is an overkill? I am just asking because I want an expert opinion. :D

Personally, I'd set it to 12mb instead of Dynamic if you really don't want to increase the PP.

IMHO, Dynamic memory allocation simply allows the OS to f-up your system at random.

kyphur
30th April 2008, 02:47 AM
Nope, I'm running 18mb, a lot of guys seem to agree that 18 is the sweet spot, maybe 24mb is slight overkill.

I do however think that Static 12mb is better than Dynamic.

So do you think 18 mb PP is an overkill? I am just asking because I want an expert opinion. :D

AllTheWay
30th April 2008, 02:53 AM
Nope, I'm running 18mb, a lot of guys seem to agree that 18 is the sweet spot, maybe 24mb is slight overkill.

I do however think that Static 12mb is better than Dynamic.

How much device memory do you have right now with the 18mb pp

BUMP THAT
30th April 2008, 03:01 AM
Nope, I'm running 18mb, a lot of guys seem to agree that 18 is the sweet spot, maybe 24mb is slight overkill.

I do however think that Static 12mb is better than Dynamic.

Thank you for helping me.

rallaster
30th April 2008, 03:19 AM
On XDA Live2.0a I have 47.20 program mem free with 18MB PP

See my specs HERE (http://forum.xda-developers.com/showthread.php?p=2161191#post2161191)

Tayton
30th April 2008, 04:48 AM
New version works great.
I tried it on duttys new lite rom and it found and changed the page pool. I checked it and the numbers are right. Excellent work!

kyphur
30th April 2008, 04:52 AM
New version works great.
I tried it on duttys new lite rom and it found and changed the page pool. I checked it and the numbers are right. Excellent work!

Thanks, it uses your trick exactly:

Finds the common string in front of the first occurance.

Then grabs the next 9 bytes after the PP settings and sets off to confirm both locations.

Now if I could just find the info for changing the Rom Numbers reported while booting, you wouldn't happen to know where those psots went to would you?

sakajati
30th April 2008, 05:21 AM
Good job mate! :)

Laurentius26
30th April 2008, 10:00 PM
Hi Kyphur,

Thanks again for the great work!

A question; recently I swopped from the AT&T 3.14 build to the newer 3.51 build.

In both ROM's I used 18mb pagepool.

First one with Dutty's method and second with your tool.

Can you explain why program memory is different please?

(btw. I used the same set of packages when cooking)

3.14: 97.30mb
3.51: 79.30mb

Thanks!

Leo

kyphur
30th April 2008, 10:09 PM
I know that the amount of RAM you start with is determined by how much is allocated by MS & the OEM for System use. I would venture to guess that the 3.51 Base has claimed an aditional 16mb of that Ram to give us better performance so we are starting with a smaller bucket of User configurable Ram.

Can you explain why program memory is different please?

(btw. I used the same set of packages when cooking)

3.14: 97.30mb
3.51: 79.30mb

Thanks!

Leo

Laurentius26
30th April 2008, 10:18 PM
Thank you for the prompt reply :D

Cheers,

Leo :)

I know that the amount of RAM you start with is determined by how much is allocated by MS & the OEM for System use. I would venture to guess that the 3.51 Base has claimed an aditional 16mb of that Ram to give us better performance so we are starting with a smaller bucket of User configurable Ram.

kyphur
30th April 2008, 10:20 PM
So how did you like the functionality of my utility?

I wanted to make it as simple as possible. If you have a suggestions, please let me know.


Thank you for the prompt reply :D

Cheers,

Leo :)

Laurentius26
30th April 2008, 10:36 PM
What can I say, very handy tool, saves a lot of searching in hex.

Only I couldn't find the date in ROM to change.

Also changing the Developer name would be nice? :D

So how did you like the functionality of my utility?

I wanted to make it as simple as possible. If you have a suggestions, please let me know.

kyphur
30th April 2008, 10:43 PM
For the date, you need to set the left date picker to the original Rom Date (i.e. AT&T 3.51 the date is Apr 19 2008) so it can find it.

What can I say, very handy tool, saves a lot of searching in hex.

Only I couldn't find the date in ROM to change.

Also changing the Developer name would be nice? :D

Laurentius26
30th April 2008, 11:04 PM
I tried that but it didn't work, I will try one more time.

For the date, you need to set the left date picker to the original Rom Date (i.e. AT&T 3.51 the date is Apr 19 2008) so it can find it.

Tayton
1st May 2008, 06:20 AM
Hey Kyphur,
It looks like you are using the date to find the date.
Problem of course is most people wont know the date of a rom ahead of time until they flash it once.
Try searching for this pattern instead.
46 65 62 00 4A 61 6E 00
The date is right beside it. That way you can just imbed the new date without knowing the old one.
I tried it on a variety of roms and it came up with two matches per rom each time.

Hope this helps.
Cheers,
Tayton

kyphur
5th May 2008, 04:16 PM
Now Features:

Smoother interface (more automation)

Automatically finds all existing settings!

Allows you to change the Rom Version as reported during the Boot Process!

Now I just need to know, is there enough demand to add support for WM6.0 Roms?

mcfarlan
5th May 2008, 04:17 PM
Dynamic is the default.

As I understand it, dymanic reserves 12mb but the actual amount used is adjusted on the fly.

I can't believe that adding the overhead of managing a dynamic pp give better performance than a 12mb static pp.

Kyphur,
Is this page pool size correct?

Reading File...
Finished Reading File...
Searching File...
Found at 18083930
Found 1, Stop Reading File...
Searching File...
Found at 18083945 Page Pool is 128mb
Found at 18539824 Page Pool is 128mb
Found 2, Stop Reading File...

It is from HTC_WWE_3.02.405.0 Rom

Thanks

kyphur
5th May 2008, 04:20 PM
Apparently early WM6.1 Roms are structured like the 6.0 Rom Files.

DO NOT PATCH if you get 128mb reported page pool

Kyphur,
Is this page pool size correct?

Reading File...
Finished Reading File...
Searching File...
Found at 18083930
Found 1, Stop Reading File...
Searching File...
Found at 18083945 Page Pool is 128mb
Found at 18539824 Page Pool is 128mb
Found 2, Stop Reading File...

It is from HTC_WWE_3.02.405.0 Rom

Thanks

gadgetdad
5th May 2008, 06:59 PM
help me out, when i attempt to go to kyphurs 4share site it just brings me to 4share's home page. Does anyone have a mirror for his 1.2 version? Thanks!

kyphur
5th May 2008, 07:05 PM
Don't know what's up with the subdomain but here's an alternate link

http://www.4shared.com/dir/6777977/93cbf343/Kyphur_Public_Folder.html

help me out, when i attempt to go to kyphurs 4share site it just brings me to 4share's home page. Does anyone have a mirror for his 1.2 version? Thanks!

gadgetdad
5th May 2008, 07:06 PM
Don't know what's up with the subdomain but here's an alternate link

http://www.4shared.com/dir/6777977/93cbf343/Kyphur_Public_Folder.html


Wow you are quick! Thank you very much!

xcsdm
5th May 2008, 09:02 PM
Kyphur,
I'm cooking my own ATT 3.51 based ROM.
It reads the date, PP, and Version correctly, However, the Modify button never gets enabled.

XC

kyphur
5th May 2008, 09:15 PM
I'm working on it, sorry...

Kyphur,
I'm cooking my own ATT 3.51 based ROM.
It reads the date, PP, and Version correctly, However, the Modify button never gets enabled.

XC

kyphur
5th May 2008, 09:22 PM
redownload and tell me if it works properly for you now...

Kyphur,
I'm cooking my own ATT 3.51 based ROM.
It reads the date, PP, and Version correctly, However, the Modify button never gets enabled.

XC

gadgetdad
5th May 2008, 09:40 PM
redownload and tell me if it works properly for you now...

not that the test was directed at me, but redownloaded and yes it worked. Modify and save was there and worked. Yet when i flash dutty's hybrid 29th it hangs on the initial splash screen and won't boot. Any thoughts?

Tayton
5th May 2008, 09:46 PM
Deleted by Tayton

futbolkeeper
5th May 2008, 09:50 PM
not that the test was directed at me, but redownloaded and yes it worked. Modify and save was there and worked. Yet when i flash dutty's hybrid 29th it hangs on the initial splash screen and won't boot. Any thoughts?

I couldn't get it to work on that ROM either. I tried it a bunch of times with different settings for the PP and ROM Date. I could never get it to work. Not sure if it has to do with it being a Hybrid or not.

xcsdm
5th May 2008, 09:55 PM
redownload and tell me if it works properly for you now...

Works like a champ, thanks a bunch.
I guess the 3.14/19209 AT&T build worked a little differently. This is the first ROM I've sucessfully increased the PP with.

kyphur
5th May 2008, 10:13 PM
It llooks like things have changed with the 3.51 Rom and the change was major.

I'm working to support older Rom formats but not really sure if there's much point to it. I mean look at the diff between 3.0x - 3.1x & 3.5 just in overall speed. In my opinion 3.51 was the first WM6.1 Rom worth the effort.

Works like a champ, thanks a bunch.
I guess the 3.14/19209 AT&T build worked a little differently. This is the first ROM I've sucessfully increased the PP with.

moderateinny
5th May 2008, 10:19 PM
... when i flash dutty's hybrid 29th it hangs on the initial splash screen and won't boot. Any thoughts?

Same here. I've tried the new 1.2 PP flasher as well and get the same results. Anyone else get it to work with Dutty's 4-29 hybrid?

kyphur
5th May 2008, 11:02 PM
Okay, I can reliably find all three locations using the "universal Pattern search code".

The pattern it finds is "A0 03 80 10 A0 03 00 00 A0"

The bytes before this are "80 20"

The problem is:

Using Dutty's search pattern, I find 2 instances @ 18463435 & 21755773 bytes in the file.

Using the Universal search, I find 3 instances @ 17821385, 18536912 & 21829250.

I've tried switching to used Dutty's pattern & change those two spots but then the Rom doesn't boot.



...
Interestingly it appears 3 times in the rom not two times. However it may be that the xif location is seperate in this. Remember how Dutty's method was to change the xif file first then the two other rom locations in the os.nb file. Where we found in most newer roms the location was only 2 once the OS was compiled.

The test would be to change the second byte to 21 as adding 1 to it may still set the pp type to static. Secondly, set the first byte (80) to normal settings such as 12 for an 18 meg page pool.
So thus
12 21 A0 03 80 10 A0 03 00 00 (search and change 3 times)

...

kyphur
5th May 2008, 11:03 PM
I wonder if it has anything to do with the "Hybrid" nature of this Rom...

Same here. I've tried the new 1.2 PP flasher as well and get the same results. Anyone else get it to work with Dutty's 4-29 hybrid?

Tayton
6th May 2008, 01:54 AM
I wonder if it has anything to do with the "Hybrid" nature of this Rom...

Hi Kyphur,
I appologize. I should have been more diligent in the testing.
It looks like I took too small sample of a hex string to find the initial match.
This one works:
80 E1 02 38 83 E1 01 3C 83 E1 80 00 as your first match. The other rules still apply.

I add 3 more bytes preceding it. Any more than that the pattern wont match.
I tested this with Duttys, alex's 3.51, the wwe 3.02.405 and the rogers 6.0.

The rest of the rules still apply. With this rule in place the other roms are still 03 15 for most roms and 03 E5 for the ATT 351 rom if set to dynamic.

kyphur
6th May 2008, 04:48 PM
Here's the new thread (http://forum.xda-developers.com/showthread.php?t=390471):

I'm closing this one so we can have an uncluttered discussion.

v1.0 & v1.2 have been removed.