Jump to content

Paul's guide to... changing the HTC Touch / T-Mobile Wing PagePool size


Guest PaulOBrien

Recommended Posts

Guest The Cyberwolfe

Paul, you truly are Da Man!

I just went through this tutorial tonight and it worked without a hitch on my Wing. Up to 14 Megs free and running smooth.

I bow before your superior Geek-Fu.

The Cyberwolfe

Link to comment
Share on other sites

Guest BeeryGaz

I thought the HTC S730 and the Wing were the same device? Am I mistaken? The S730 has the same memory problem and I was hoping Paul's fix would work.

PDOCREAD returns:

   C:\rom>pdocread.exe -l

   210.63M (0xd2a0000) FLASHDR

   |		   3.12M (0x31f000) Part00

   |		   3.38M (0x360000) Part01

   |		  71.13M (0x4720000) Part02

   |		 133.00M (0x8500000) Part03

   968.75M (0x3c8c0000) DSK1:

   |		 968.50M (0x3c880e00) Part00

   STRG handles:

   handle 234a8526968.50M (0x3c880e00)

   handle 8345bd3a133.00M (0x8500000)

   handle a346b222 71.13M (0x4720000)

   handle 8346b1fe  3.38M (0x360000)

   handle 8346b0e6  3.12M (0x31f000)

   disk 234a8526
But when I try PDOCREAD 0 0x4720000 to get Part02:
C:\rom>pdocread.exe 0 0x4720000 Part02.dump

 CopyTFFSToFile(0x0, 0x4720000, Part02.dump)

 ERROR: ITReadDisk : read 00000000 bytes - A device attached to the system is not functioning.

Anyone got any ideas?

Link to comment
Share on other sites

Guest duncan1976
I thought the HTC S730 and the Wing were the same device? Am I mistaken? The S730 has the same memory problem and I was hoping Paul's fix would work.

PDOCREAD returns:

   C:\rom>pdocread.exe -l

   210.63M (0xd2a0000) FLASHDR

   |		   3.12M (0x31f000) Part00

   |		   3.38M (0x360000) Part01

   |		  71.13M (0x4720000) Part02

   |		 133.00M (0x8500000) Part03

   968.75M (0x3c8c0000) DSK1:

   |		 968.50M (0x3c880e00) Part00

   STRG handles:

   handle 234a8526968.50M (0x3c880e00)

   handle 8345bd3a133.00M (0x8500000)

   handle a346b222 71.13M (0x4720000)

   handle 8346b1fe  3.38M (0x360000)

   handle 8346b0e6  3.12M (0x31f000)

   disk 234a8526
But when I try PDOCREAD 0 0x4720000 to get Part02:
C:\rom>pdocread.exe 0 0x4720000 Part02.dump

 CopyTFFSToFile(0x0, 0x4720000, Part02.dump)

 ERROR: ITReadDisk : read 00000000 bytes - A device attached to the system is not functioning.

Anyone got any ideas?

same error to mine! i have a italian s730...any ideas?

C:\itsutilsbin>pdocread -l

210.13M (0xd220000) FLASHDR

| 3.12M (0x31f000) Part00

| 3.13M (0x320000) Part01

| 61.88M (0x3de0000) Part02

| 142.00M (0x8e00000) Part03

1.86G (0x77400000) DSK1:

| 1.86G (0x773efe00) Memory

C:\itsutilsbin>pdocread 0 0x3de0000 Part02.dump

CopyTFFSToFile(0x0, 0x3de0000, Part02.dump)

ERROR: ITReadDisk : read 00000000 bytes - Un dispositivo collegato al sistema no

n Þ in funzione.

Edited by duncan1976
Link to comment
Share on other sites

Guest fwadmin
same error to mine! i have a italian s730...any ideas?

C:\itsutilsbin>pdocread -l

210.13M (0xd220000) FLASHDR

| 3.12M (0x31f000) Part00

| 3.13M (0x320000) Part01

| 61.88M (0x3de0000) Part02

| 142.00M (0x8e00000) Part03

1.86G (0x77400000) DSK1:

| 1.86G (0x773efe00) Memory

C:\itsutilsbin>pdocread 0 0x3de0000 Part02.dump

CopyTFFSToFile(0x0, 0x3de0000, Part02.dump)

ERROR: ITReadDisk : read 00000000 bytes - Un dispositivo collegato al sistema no

n Þ in funzione.

same here:

pdocread.exe -l

210.63M (0xd2a0000) FLASHDR

| 3.12M (0x31f000) Part00

| 3.38M (0x360000) Part01

| 71.13M (0x4720000) Part02

| 133.00M (0x8500000) Part03

1.89G (0x79280000) DSK1:

| 1.89G (0x79120e00) Part00

20.00k (0x5000) BTD1:

| 19.00k (0x4c00) PART00

STRG handles:

handle 425798a2 19.00k (0x4c00)

handle e34a8502 1.89G (0x79120e00)

handle 4345fd3a133.00M (0x8500000)

handle a346f1fe 71.13M (0x4720000)

handle e346f1da 3.38M (0x360000)

handle 23495fce 3.12M (0x31f000)

disk 425798a2

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

disk e34a8502

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

disk 4345fd3a

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

disk a346f1fe

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

disk e346f1da

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

disk 23495fce

0 partitions, 0 binary partitions

customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

pdocread.exe 0 0x4720000 Part02.dump

CopyTFFSToFile(0x0, 0x4720000, Part02.dump)

ERROR: ITReadDisk : read 00000000 bytes - A device attached to the system is not

functioning.

Link to comment
Share on other sites

Guest V_RocKs

Tmobile Wing.

It took upwards of 10 minutes to download the file from the device.

Ran the 4mb patch.

Took the free ram with nothing loaded from 9mb to 19mb.

I could swear it decreased my speeds a little. Perhaps because the lower size means more parity data/packaging data for the protocol.

However, I also downloaded and used the BatteryStatus plugin and noticed a huge increase in speed when over clocked to 260mhz.

Now I can run multiple apps without worry of memory problems and those apps run noticably faster. Perhaps 25% to 30% faster.

PS, thanks PAUL... And I must say... HTC should have added all of this to the machine from the beginning. Foo-ey on them for releasing this thing as slow as it was and with as much free memory as it has by default. Do they not have any geeks in their programming pool? Surely 1 of them already brought up the pagepool issue right from the beginning!?!?!

Edited by V_RocKs
Link to comment
Share on other sites

Guest StormBull

Bricked the phone the first try. Did the 04 instead of 40 thing, so there is 1 more official idiot out there. Freaked out, read the 11 pages of this post. Found hope in the RUU. Recovered the default ROM with the RUU. Took a second shot at the pagepool.

PAYDIRT! 21.5MB program space with Voice Command

(I use it with my Garmin Mobile 20 hands free feature... BTW, the Voice Command works great through the Garmin bluetooth hands free feature... and you get the GPS)

Great tweak!

Link to comment
Share on other sites

Guest webwiz8179

Dear Paul i followed your guide till i found 37B558 value on my touch dump, to my surprise it was set to 00 00 20 00 but my touch still has 18.35 MB RAM on start up. Any suggestions bout wat to du now. really want more RAM. An early reply will be highly appreciated.

Link to comment
Share on other sites

Guest isacandme4vr

I just wanna thank u from the bottom of my heart. I followed your instructions to the T and it worked. I have close to 25 mb of free program rom!!! All thanks to you Paul! I must state that this is the second attempt on my wing. Yes, i did this b4 and ended up with a brick due to my ignorance. Thank u thank u thank u I couldnt say enough.

Link to comment
Share on other sites

Guest dave497

Many thanks to Paul (MVP) for the tweak. It went off without a hitch. Thanks also to paul m, whose patch program I used.

Edit: My free program space went from 9-10Mb with Active Sync running, to 17Mb.

Edited by dave497
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
Guest bosanci28
[teaser]Welcome to another edition of 'Paul's Guide to...' :D

Today's guide is aimed at owners of the HTC Touch and the T-Mobile Wing, as they are 2 devices that seem to have particular problems with device memory, but the same techniques can probably be applied to other devices (untested by myself).

HTC Touch and T-Mobile Wing owners will know that these two devices suffer somewhat from low memory problems. Users need to be careful with what they have running at any one time, particularly if launching memory hungry applications such as the Camera.

Deep in the depths of the operating system of your device, there is something called the 'PagePool'. Without going into too much detail (and as I understand it!), the PagePool is a special area of memory reserved for loading apps into from ROM. This PagePool is a lot faster than ROM, so when things are executed from this 'cache' instead, the performance of a device will be quicker. On the flipside, if you have a 8MB pagepool (HTC Touch) and you're using, say, 4MB of the pagepool, then 4MB of space is wasted that could be program memory. Similarly if you have a 12MB pagepool (!) (T-Mobile Wing) in this instance you would we wasting 8MB of space!

The key is striking the balance...

On both my Touch and my Wing, i've been experimenting with the PagePool, and have personally settled on 4MB. I've tried 2MB (bad), 4MB, 6MB and 8MB, and I think I can happily use 4MB without noticing a performance decrease. I'm tempted to try 6MB out for a bit longer, particularly on the Wing (which has a generally better state of affairs than the Touch it seems), but this guide will let you choose your own.

Sadly, these PagePool settings are in an area that cannot be easily changed, hence this is a ROM guide.[/teaser]

Firstly, a disclaimer.

This guide involves downloading, editing and flashing of your device ROM.

This is dangerous, very dangerous. In a worst case scenario using these techniques, your device will become unusable, with a corrupted 'OS area'. While your bootloader will (should) still be accessible, your device will be a paperweight until such time as a RUU (Rom Update Utility) becomes available for your device with the shipping ROM. We won't be able to help you, and your operator / manufacturers won't either. It's quite possible your warranty will be invalidated by editing your ROM.

If you follow this guide, you take full responsibility for what could happen. I have of course successfully been through this guide myself, but be aware that I TAKE NO RESPONSIBILITY SHOULD SOMETHING GO WRONG.

You've read the disclaimer and you want to have a play, now what do you need to do? Here's the guide... enjoy :(

Step 1: Install the permissions CAB to your device

In order to be able to do the read / write operations on your ROM, the security on your device needs to be set up in a certain way. Download this CAB file, and run it on your device.

ITSUTILS_Preperation.CAB

Step 2: Create a directory and download itsutils

Now we need to create a working directory. I suggest creating a directory called 'pagepool' on your desktop. When you've done this, download this ZIP file, and extract it to the new directory.

http://nah6.com/~itsme/itsutilsbin-20070323.zip (Kudos to Willem Jan Hengeveld (aka itsme) for this excellent toolkit!)

Step 3: Extract the ROM from your device

We're now going to extract the ROM from your device. This is a completely safe operation, so don't panic yet :( Take the following steps...

- Ensure device is connected to PC and Activesync'd / WMDC'd

- Open a command prompt at your new directory

- Type 'pdocread -l' (minus the quotes of course)

You will then be presented with something that looks like this:

 70.95M (0x46f2000) TrueFFS

		 |		   3.06M (0x30fc00) Part00

		 |		   3.06M (0x310000) Part01

		 |		  64.82M (0x40d2000) Part02

We want to read the Part02 area (the bottom line above), so...

- Type 'pdocread 0 0x40d2000 Part02.dump' substituting 0x40d2000 with the appropriate value from your 'pdocread -l' output

You will see something like 'CopyTFFSToFile(0x0, 0x40d2000, Part02.dump)' appear, and after a wait of a few minutes (it is dumping a lot of data!), you'll be returned to the command prompt. During the operation you can open Windows Explorer to your working directory and see the file growing.

Step 4: Use a hex editor to modify the pagepool size

To edit your Part02.dump ROM image, you'll need to use a Hex Editor. The instructions below assume use of the excellent, free HxD application.

After installing and launching HxD, do the following...

- Open your new 'Part02.dump' file

- Click 'Search'

- Enter 'NKKD8'

- Press F3 to find the second instance

- Click 'Search' again

- Change 'Data Type' to 'Hex Values'

- Enter 'FF FF FF FF FF FF FF FF 9B 4F FF FF 64 B0 00 00' and hit search

You will then be presented with the search results as shown below.

22-Jun-2007_HxD.jpg

After 8 more values, you'll see your pagepool setting. In the screenshot aobve, it is set to '00 00 40 00', which means 4MB. The possible values are as follows:

4MB = 00 00 40 00

6MB = 00 00 60 00

8MB = 00 00 80 00 (HTC Touch default)

12MB = 00 00 C0 00 (HTC Wing Default)

(for reference, on both my Touch and my Wing the offset location is 37B558... you can go straight to this location be selecting 'Search -> Goto').

So, to change your pagepool size...

- After locating your current pagepool value, update it to one of those shown above by selecting the value and overtyping

- Select File -> Save As, and enter a new name (e.g. Part02.4MB.dump)

- Exit the hex editor

You have now edited your ROM dump, and are ready to flash it back to the device!

Step 5: Flashing your edited dump back to the device

So this is where it gets dangerous. If you've done something wrong with your dump, then nasty things could (probably will) happen. If the flashing process goes wrong, then nasty things could happen. One final warning - you undertake this step at your own risk! Ready to continue? OK then...

- Ensure device is connected to PC and Activesync'd / WMDC'd

- Put the device in flight mode. This is for safety reasons... receiving a call during the flash would probably be bad

- Open a command prompt to your working directory (or use the one you already have open)

- Type 'pdocwrite Part02.4MB.dump' (or whichever name you used in the step above)

You will see something like 'CopyFileToTFFS(part02.4mb.dump:0, 0, 040d2000)' appear, and after a wait of a few minutes (it is writing a lot of data!), you'll be returned to the command prompt. DO NOT USE THE DEVICE DURING THIS OPERATION!

Step 6: Soft reset, cross fingers

Has that command finished (i.e. you have control again at the command prompt)? Then you're done! Simply press the soft reset pin on your device, and when it comes back up, you should see you the amount of program memory in the Settings -> Memory applet has changed. Good job! You can breathe easy again :(

P

im stuck at ""pdocread -l"'

so after i put the cab. and run it,, i go to my pc and go in comand prompt and put,, "pd..."" is not reconize...

(where exactly do i put the .cab file ,,,i put it in program files folder on wint,,is here is should go?)

any ideas how to fix this... thanks

Edited by bosanci28
Link to comment
Share on other sites

Guest Confucious

Really good idea to quote the whole of the original post - that way anyone can see you've missed

Step 2: Create a directory and download itsutils

Now we need to create a working directory. I suggest creating a directory called 'pagepool' on your desktop. When you've done this, download this ZIP file, and extract it to the new directory.

http://nah6.com/~itsme/itsutilsbin-20070323.zip (Kudos to Willem Jan Hengeveld (aka itsme) for this excellent toolkit!)

Link to comment
Share on other sites

Guest DJLuMi

It worked perfectly on my HTC Touch .. from 7.55MB to 21.65MB ..

Thanks Paul .. ur the best ..

i got one question though .. i have problems with the storage memory .. total memory is 32.46 and In use 31.14 which leaves 1.32MB free .. though i store all my files on Storage Memory Card i still lack Internal storage memory.. i install a lot of usefull softwares and most of them installed on Memory Card but still consume some storage from the internal memory ..

is there like a tweak for that or a software or at least some setting i can do to recieve bluetooth beams and store automatically on Storage card instead of internal memory !!!

Link to comment
Share on other sites

Guest Victor Rijo

Hi i dun understand step 2 of this, how to create a directory and when i click on one of the command prompt it appears and disappear right away, is it on my comp ? i dun kno can somebody please explain some of this to me, thankzzz :D

scren name------elrene101

Link to comment
Share on other sites

Guest chucky.egg

Step 2 is to create a folder on your PC and download the software.

If the command prompt closes again immediately the shortcut is probably not correct - try Start, Run, cmd.exe

Link to comment
Share on other sites

Guest kelvinee

At first i thought i am the only 1 with the same problem.. I mean stuck at typing "pdocread -l"

Wat i have done.

1- download both of the software..

2- cut the cab perparation to my htc touch and install it successful !

3-create folder and extract (http://nah6.com/~itsme/itsutilsbin-20070323.zip (Kudos to Willem Jan Hengeveld (aka itsme) for this excellent toolkit!) to a new folder name pagepool

The problem start here:

qouted from paul

________________________________________________________________________________

_______________________________

Step 3: Extract the ROM from your device

We're now going to extract the ROM from your device. This is a completely safe operation, so don't panic yet :( Take the following steps...

I- Ensure device is connected to PC and Activesync'd / WMDC'd

II- Open a command prompt at your new directory

III- Type 'pdocread -l' (minus the quotes of course)

________________________________________________________________________________

_______________________________

Here is goes

I- check the sync connection is connected with no problem" done"

II- try using press: windows+R >then type> cmd/cmd.exe.. i even try creating a shortcut command prompt at the directory pagepool..

III_ try typing pdocread -l (it show after i type is " unregconised internal or external command"

THere is where i am stuck.. hope someone could help me or share some info i miss out for those who succeed in doing it..

Paul guide is quite detail in explaination but for a newbie in computer like me really hard for me to understand well..

If there is any step i miss hope anyone out there could help.

Sorry admin for bring out the topic again.. :D thx.. coz 1st topic 22 june 2007 :(

regards

kelvin

Link to comment
Share on other sites

Guest chucky.egg

I'm not sure, but I think you are still having problems.

Could you put a question mark (?) after questions, so we can tell what you want answers to.

If you are getting "unregconised internal or external command" then Windows can't find pdocread.exe

I created a folder called Touch (on my machine it is D:\Touch) and put Itsme's ZIP file in it, so now I have D:\Touch\itsutilsbin-20070323.zip

Then I extracted that ZIP file to D:\Touch\Pagepool

Then I ran D:\Touch\Pagepool\pdocread.exe -l

It sounds like you just need open a command prompt, then to go to the folder that holds pdocread.exe (CD D:\Touch\Pagepool in my case, yours may be different) before you run pdocread

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.