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 Vogue > HTC Vogue Development
Register Community Search

Notices


Closed Thread
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-12-2008, 06:52 PM
zeurx's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Vogue & HTC Touch Pro
Carrier: Former Midwest Wireless forced to Alltel and soon to be Verizon
 
Join Date: Mar 2007
Posts: 415
Reputation: 280
zeurx is becoming a PPCGeeks regularzeurx is becoming a PPCGeeks regularzeurx is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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
__________________

This post has been thanked 1 times.
  #12 (permalink)  
Old 04-11-2009, 06:10 PM
dan-htc-touch's Avatar
VIP Member
Offline
Pocket PC: Dream, Kaiser, Herman
Carrier: rogers
Location: Canada
 
Join Date: Dec 2007
Posts: 1,171
Reputation: 2325
dan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIPdan-htc-touch is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To's For Developing.

Quote:
Originally Posted by zeurx View Post
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
  #13 (permalink)  
Old 04-18-2009, 08:48 PM
AnnaLee's Avatar
Lurker
Offline
Pocket PC: HTC 6800 Verizon
 
Join Date: Apr 2009
Posts: 4
Reputation: 0
AnnaLee is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To's For Developing.

thank you

Quote:
Originally Posted by gguruusa View Post
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
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
1 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 1-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)

2 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.
  #14 (permalink)  
Old 06-01-2009, 02:04 PM
soicy423's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Diamond, HTC TP, HTC TP2 & HTC Evo
Carrier: Sprint
Location: TN
 
Join Date: Jul 2008
Posts: 140
Reputation: 190
soicy423 is keeping up the good worksoicy423 is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Porting SYS

Quote:
Originally Posted by jakdillard View Post
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?
__________________
If anything I've posted has been useful or helpful to you please click the button

  #15 (permalink)  
Old 06-02-2009, 11:50 PM
indagroove's Avatar
AWOL
Offline
Pocket PC: HTC TouchPro 2 and Samsung Moment
Carrier: Sprint
 
Join Date: Nov 2007
Posts: 3
Reputation: 120
indagroove is keeping up the good workindagroove is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Porting SYS

Quote:
Originally Posted by soicy423 View Post
what kitchen should i download and use to decompile my donor rom into a sys folder oem folder and rom folder?
Just use prepit.
  #16 (permalink)  
Old 07-11-2009, 11:59 AM
suzannaski's Avatar
Lurker
Offline
Pocket PC: HTC touch
Carrier: Sprint
 
Join Date: Jan 2008
Posts: 19
Reputation: 0
suzannaski is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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/showthread.php?t=44689
Closed Thread

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Vogue > HTC Vogue Development


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 07:53 PM.


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