PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/)
-   HTC Vogue Development (http://forum.ppcgeeks.com/htc-vogue-development/)
-   -   How To's For Developing. (http://forum.ppcgeeks.com/htc-vogue-development/20550-how-tos-developing.html)

zeurx 11-12-2008 05:52 PM

Re: How To's For Developing.
 
Exit bootloader after flashing a rom:
For those that use HTC-Flasher, you will find that it doesn't exit the bootloader correctly. To fix this goto the bootloader command line and type
Code:

set 16 0
ResetDevice


dan-htc-touch 04-11-2009 06:10 PM

Re: How To's For Developing.
 
Quote:

Originally Posted by zeurx (Post 514895)
Exit bootloader after flashing a rom:
For those that use HTC-Flasher, you will find that it doesn't exit the bootloader correctly. To fix this goto the bootloader command line and type
Code:

set 16 0
ResetDevice


set 16 0
task 8

AnnaLee 04-18-2009 08:48 PM

Re: How To's For Developing.
 
thank you

Quote:

Originally Posted by gguruusa (Post 378506)
I wrote this for a thread over at XDA-Developers, but no reason for them to have all the glory! (LennySh is translating a chinese tutorial that has pictures, if this isn't detailed enough for you)

How to Port a XIP

Your steps should look something like this :
NOTE: This does not cover more advanced topics. This is the BARE MINIMUM of steps to reliably get a working ported xip from a reasonably similar device.

If you don't know how to use a hex editor, don't know how to do hex arithmetic, or don't know how to put your phone in bootloader STOP NOW.

1) get your base rom (preferably an original and not someone's frankenrom)
2) get your donor rom (preferably an original and not someone's frankenrom)
3) cut the xip section out of each rom using a hex editor. XIP sections start with ECEC and end with a bunch of FFFFFs (there are two XIP sections, you usually want the 2nd one starting at x31000 or x32000 and ending at the the start of IMGFS)
4) use xipport (there are two versions, make sure you get the later version) to dump your base xip (if you end up missing imageinfo.txt files, you are using the wrong xipport version)
5) use xipport to "Make Maps" of your base xip
6) use xipport to "make pkgs" of your base xip
7) rename the base xip out dir to out.base
8) use xipport to dump your donor xip
9) use xipport to "make maps" of your donor xip
10) use xipport to "make pkgs" of your donor xip
11) rename the donor xip out dir to out.donor
12) copy out.base to out (or dump your base xip and make pkgs again)

at this point, you should have out.base, out.donor, and out (a copy of out.base)

13) delete the MSXipKernel and MSXIPKernelLTK folders from files and modules in your out dir
14) copy the MSXipKernel and MSXIPKernelLTK folders from files and modules in your out.donor dir to the same locations in your out dir

You are done with out.base and out.donor. Everything from here on is done in out.

Make some space for your new, bigger xip by deleteing the following:
15) delete hd.dll and hd.dll.txt from modules/MSXIPKernel
16) delete osaxst0.dll and osaxst0.dll.txt from modules/MSXIPKernel
YOU MAY NEED MORE SPACE DEPENDING ON YOUR BASE and DONOR
(Moving WinCEnls from XIP to SYS is a good way to get a bunch of space)

Use M'reloc to relocate the V(irtual base) and D(ata) sections of all your donor modules donor modules are the ones in modules/MSXipKernel and moules/MSXipKernelLTK
17) Use the Map.txt file to identify your base address
18) Use M'reloc to move the modules so they are contiguous. (you hex calculator can help you here...adress of prior module+length of prior module = start of next module)
19) update the (module)/imageinfo.txt file v= and d= entries with the new values you used in M'reloc
20) repeat 18)-19) for each donor modue, being careful to remove any overlaps.

DO NOT MOVE nk.exe. If you really must move it, you have to use M'reloc-nk.
Personally, I recommend against moving any of the OEMXIPkernel modules, but to each his own.

20) use xipport to "Undo" (this undoes the "Make Pkgs")
If xipport fails, you botched your directory structure up. Delete OUT and start again from step 12)

21) use xipport to "Make Maps"
If xipport fails, you botched your m'reloc assignments. Start again from 17)

22) search map.txt for !!!!!!! in first two sections (data and virtual base)
if you find any, go back to 17) to resolve.

At this point, you should have no !!!!!! in the first 2 sections of map.txt

23) Use xipport to ReAlloc P
24) use xipport to "Make Maps"
25) search map.txt for !!!!!!
if you find any, you need advanced help.

You have now "ported" your donor xip (assuming it works!).

26) use xipport to "Build XIP out.bin"
27) use xipport to "Insert XIP" into your base rom at the XIP address you cut the base xip from in step 3)

28) flash your rom.
If it boots, check settings/system/about version numbers for your donor xip build number.

If the build number does not match the donor rom, you screwed up 14), 26), or 27)
If it won't boot, you either screwed something up or your donor xip is not compatible. Try again or seek advanced help. Once you understand the technique, steps 21)-27) can be done while m'relocing to test your changes incrementally.


soicy423 06-01-2009 02:04 PM

Re: Porting SYS
 
Quote:

Originally Posted by jakdillard (Post 207812)
Alright this first lesson is how to port a SYS folder from another device

The tools you will need for this is G'reloc your kitchen OEM folder and SYS folder and SYS folder from other rom.

Ok Step 1
Decompile your donor rom in your kitchen so that you have a SYS folder OEM folder and Rom Folder. Once you have this done place the G'reloc tool in the kitchen folder, run G'reloc , what this tool does is relocates the modules in the SYS folder using the info from the .vm imageinfo.bin, there are three important slots that you will need to get the info from they are slot 0: slot 1: and size of rom . What you will need to do now is write down those numbers exactly how they look for each slot.


what kitchen should i download and use to decompile my donor rom into a sys folder oem folder and rom folder?

indagroove 06-02-2009 11:50 PM

Re: Porting SYS
 
Quote:

Originally Posted by soicy423 (Post 948218)
what kitchen should i download and use to decompile my donor rom into a sys folder oem folder and rom folder?

Just use prepit.

suzannaski 07-11-2009 11:59 AM

Re: How To's For Developing.
 
Hi
For QTC:
"Now, notice how it shows the Manila filename as well as the 'interpreted' QTC filename..."
This is in this thread: http://forum.ppcgeeks.com/pocket-pc-themes/44689-how-customize-touchflo3d-manila-themes.html


All times are GMT -4. The time now is 05:41 AM.

Powered by vBulletin® ©2000 - 2019, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0