Paul's guide to... changing the HTC Touch / T-Mobile Wing PagePool size |
![]() ![]() |
Paul's guide to... changing the HTC Touch / T-Mobile Wing PagePool size |
|
Jun 22 2007, 10:13
Post
#1
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
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 ( 29.09K )
Number of downloads: 3892Step 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 - 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: CODE 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. ![]() 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 -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
|
Jun 23 2007, 02:40
Post
#2
|
||
|
Newbie Group: Posters Posts: 2 Joined: 23rd June 2007 Member No.: 269,811 Device(s): T-Mobile Wing - HTC Atlas |
Hi Paul,
Thanks for your HowTo ! This is great news. Reading your post gave second thoughts about returning my new Wing/Atlas. Don't get me wrong, I love the phone, but what good is a app filled phone if you can't use the apps? Anyways, I've followed your tutorial, extracted the ROM, edited it, and saved it back out as a separate dump file. I stopped there b/c I don't want to brick my new phone. I've flashed many ROMs and BIOS, etc. so I know the risks. I guess under normal circumstance the 'worst case' involves sending the device back and paying the repair/shipping costs. Your disclaimer, "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." Wouldn't the original ROM that I extracted be viable if the edited one is corrupt? I guess I wouldn't have access to flash it back if a reboot was unsuccessful? Why wouldn't HTC be able to fix a corrupt ROM (if a worst case and I send it back?) Or would they simply prefer that I pay for a new phone? I guess I understand the risks involved, but am concerned by your disclaimer that mentions that there is ABSOLUTELY NO FIX. Should I just wait until there is a 'RUU (Rom Update Utility) becomes available for your device with the shipping ROM'? Thanks again for your great post!! Shane BTW: My ROM size appears to be slightly smaller, but the offset to the page pool size was the same. G:\Windows_Mobile_6_Software\ROM_editing\itsutilsbin-20070323>pdocread -l 63.94M (0x3ff0000) TrueFFS | 3.06M (0x30fc00) Part00 | 3.06M (0x310000) Part01 | 57.81M (0x39d0000) Part02 39.73M (0x27ba000) TrueFFS | 3.06M (0x30fc00) Part00 | 3.06M (0x310000) Part01 | 57.81M (0x39d0000) Part02 9.99M (0x9fd800) TRUEFFS | 3.06M (0x30fc00) Part00 | 3.06M (0x310000) Part01 | 57.81M (0x39d0000) Part02 1.90G (0x79a00000) DSK1: | 1.90G (0x799e1200) Part00 This post has been edited by Gemini420: Jun 24 2007, 08:33 |
||
|
|
|||
|
Jun 23 2007, 07:44
Post
#3
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
QUOTE Wouldn't the original ROM that I extracted be viable if the edited one is corrupt? I guess I wouldn't have access to flash it back if a reboot was unsuccessful? No, because if it won't boot, you can't flash it back QUOTE Why wouldn't HTC be able to fix a corrupt ROM (if a worst case and I send it back?) Or would they simply prefer that I pay for a new phone? They probably can! QUOTE I guess I understand the risks involved, but am concerned by your disclaimer that mentions that there is ABSOLUTELY NO FIX. There IS a fix, but it involves returning the device. QUOTE Should I just wait until there is a 'RUU (Rom Update Utility) becomes available for your device with the shipping ROM'? Your call... only you can make that decision. QUOTE BTW: My ROM size appears to be slightly smaller, but the offset to the page pool size was the same. Your numbers are normal for a Wing, the numbers above are from a Touch P -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
|
Jun 23 2007, 13:16
Post
#4
|
||
![]() Newbie Group: Posters Posts: 1 Joined: 20th March 2005 From: New Jersey / Central Member No.: 118,419 Device(s): T-Mobile Wing/Dash |
Paul,
Great guide! Tried it this morning on my Wing, and i have 22+MB of ram. I LOVE IT! The only question i have for you is if this is compatible with the Dash (excalibur). I am pretty sure that it is, since it is the same OS (after t-mobile upgrade), but was more curious if it is at the same hex location. (wanted to check, but left it at a friends house). Have you experimented with any other HTC devices than the ones mentioned? This post has been edited by phatman81: Jun 23 2007, 13:22 |
||
|
|
|||
|
Jun 23 2007, 13:32
Post
#5
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
Not sure if it'll work on the dash, the hex location will not be the same. I've only tried this on the Touch and Wing.
P -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
|
Jun 23 2007, 16:38
Post
#6
|
||
|
Newbie Group: Posters Posts: 3 Joined: 22nd June 2007 Member No.: 269,763 Device(s): Tmobile Wing |
paul i have a question, i have my working directory set to my desktop which i just basically created a new folder called "pagepool" i have everything set right now all i'm doing is waiting for the dump right now, all i want to know is how long does the dump take because its been dumping for like 6 mins so far, and does the dump go in the "'pagepool" folder? because i'm not seeing the folder size increasing.. thanks in advance.
|
||
|
|
|||
|
Jun 23 2007, 17:03
Post
#7
|
||
|
Newbie Group: Posters Posts: 1 Joined: 23rd June 2007 Member No.: 269,972 Device(s): HTC Wing |
paul i have a question, i have my working directory set to my desktop which i just basically created a new folder called "pagepool" i have everything set right now all i'm doing is waiting for the dump right now, all i want to know is how long does the dump take because its been dumping for like 6 mins so far, and does the dump go in the "'pagepool" folder? because i'm not seeing the folder size increasing.. thanks in advance. The size of the dump file will increase, not the folder size. |
||
|
|
|||
|
Jun 23 2007, 22:38
Post
#8
|
||
|
Newbie Group: Posters Posts: 3 Joined: 22nd June 2007 Member No.: 269,763 Device(s): Tmobile Wing |
|||
|
|
|||
Jun 24 2007, 05:48
Post
#9
|
|||
|
Newbie Group: Posters Posts: 1 Joined: 24th June 2007 Member No.: 270,144 Device(s): PPC-6800 |
Hello Paul, thanks for the work sofar. I am having some issues with getting the dump file.
Sofar I have ran the ROM unlocker and downloaded the pdocread file. When I run "pdocread -l" I get the following for my part 2 "50.63M <0x32a0000> Part02" When I type "pdocread 0 0x32a0000 part02.dump" I get this response copy TFFSToFile(0x0, 0x32a0000, part02.dump) ERROR: ITReadDisk : Read 00000000 bytes - A device attached to the system is not functioning And I don't get a part02.dump file. Any ideas? thanks! Kinoons |
||
|
|
|||
|
Jun 24 2007, 06:15
Post
#10
|
||
|
Newbie Group: Posters Posts: 3 Joined: 24th June 2007 Member No.: 270,098 Device(s): HTC Touch |
Hey Paul! thanks for sharing this amazing trick.
But I've some questions about changing Hex for increasing memory. I used Elf(HTC Touch), After i found Hex valued, is 8MB = 00 00 80 00 (HTC Touch default) Then what i should do next. Changing this Hex valued to 4 or 6 MB, Is i'm right? and my CODE is 0x42d3000 not 0x40d2000 when i run pdocread-l |
||
|
|
|||
|
Jun 24 2007, 07:34
Post
#11
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
'Mrhotsteppa,' did the dump complete successfully?
'kinoons', if you're not on a Touch or a Wing, I can't help you as those are the only devices i've done it on. 'Raphael on Elf', if the size from 'pdocread -l' is different that's not an issue, just follow the instructions. P -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
|
Jun 24 2007, 08:30
Post
#12
|
||
|
Newbie Group: Posters Posts: 2 Joined: 23rd June 2007 Member No.: 269,811 Device(s): T-Mobile Wing - HTC Atlas |
Hi Paul,
I ran it successfully. I had to try it ... I couldn't resist. Set page pool to 6MB. I haven't noticed any adverse affects from running a smaller page pool (as of yet), and have noticed that the device can handle opening more apps at the same time. Thanks again! Shane This post has been edited by Gemini420: Jun 24 2007, 08:33 |
||
|
|
|||
|
Jun 24 2007, 12:26
Post
#13
|
||
|
Newbie Group: Posters Posts: 3 Joined: 24th June 2007 Member No.: 270,098 Device(s): HTC Touch |
Thanks Paul!
Finally I got 4 MB in my program memory And on testing now. This post has been edited by Raphael on Elf: Jun 24 2007, 12:30 |
||
|
|
|||
|
Jun 24 2007, 18:32
Post
#14
|
||
![]() Diehard Group: Posters Posts: 431 Joined: 30th March 2006 From: Minneapolis, MN Member No.: 181,256 Device(s): T-Mobile Wing |
I'm officially an idiot, before it was common knowledge but now its official. I managed to changed it to 04 instead of 40, and not catch it until it was too late. I guess it'll be going in for repairs.
-------------------- "Oh, you're a loon aren't you? Where have you escaped from, I'll take you back." Lord Bravery
|
||
|
|
|||
|
Jun 24 2007, 18:45
Post
#15
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
Eek, so I assume it won't boot?
This is exactly why it's risky before a RUU is released. If there was a RUU, you could now put it in bootloader and reflash to revive it. P -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
|
Jun 24 2007, 19:53
Post
#16
|
||
|
Newbie Group: Posters Posts: 3 Joined: 22nd June 2007 Member No.: 269,763 Device(s): Tmobile Wing |
'Mrhotsteppa,' did the dump complete successfully? 'kinoons', if you're not on a Touch or a Wing, I can't help you as those are the only devices i've done it on. 'Raphael on Elf', if the size from 'pdocread -l' is different that's not an issue, just follow the instructions. P yes the dump was successfully complete but i don't know where it is, i don't think its in the folder i created on my desktop called "pagepool" because i don't see it there....thanks in advance |
||
|
|
|||
|
Jun 24 2007, 19:57
Post
#17
|
||
![]() The Main Man Group: Admin Team Posts: 18,831 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): MDA Vario III |
I have no idea where it would have gone, sorry.
P -------------------- Paul O'Brien - Microsoft MVP, Mobile Devices, MoDaCo.network Founder. Read my Blog or get your own on MoDaCo! Free 2.25GB online backup from Mozy... Click here for details! MACHEIST IS BACK! Click Here to check out the uber-bundle of apps for you Mac! Check out MUPromo bundle too :D |
||
|
|
|||
Jun 25 2007, 18:26
Post
#18
|
|||
|
Newbie Group: Posters Posts: 31 Joined: 15th February 2007 Member No.: 229,915 |
Talk about a freaking nail biter. Thanks Paul. This worked out perfect. Great instructions.
26+ megs free after reboot. That is with Voice Command disabled and other mild tweaks to the Today screen and startup services. Awesome. |
||
|
|
|||
|
Jun 26 2007, 06:23
Post
#19
|
||
|
Newbie Group: Posters Posts: 28 Joined: 10th April 2006 Member No.: 184,284 Device(s): O2 XDA Cosmo (=Excalibur) |
Eek, so I assume it won't boot? This is exactly why it's risky before a RUU is released. If there was a RUU, you could now put it in bootloader and reflash to revive it. P There is a (official Touch ROM) RUU available at pdamobiz: RUU_Elf_DOPODASIA_WWE_1.11.707.1B_4.1.13.42_02.93.90_Ship.exe I think this would help to get the Touch back to life if you damaged it with a wrong flash. |
||
|
|
|||