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 Titan
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-25-2007, 01:24 PM
vMAC's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC EVO
Carrier: Sprint
 
Join Date: Jul 2007
Posts: 165
Reputation: 5
vMAC is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Anyone mind linking to bepe's tool? Apparently that is what i need.
Reply With Quote
  #12 (permalink)  
Old 10-25-2007, 01:40 PM
dcd's Avatar
dcd
VIP Member
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: May 2007
Posts: 575
Reputation: 2537
dcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by gzub View Post
I have only just gotten into creating roms, have had some success, this is what I do to create them... Figured this might start some conversations back/forth.

First, make sure you put the OliPro HardSPL on your titan so you don't wreck it.

Most of the tools below can be found searching with google and using the site tag "siteda-developers" in the search box. The main tools I use are tadzio's imgfs tools, bepe's pkgtool, and bepe's BuildOS (I have had to get BuildOS from one of the kitchens on xda-developers - have not found one separately)

Here is the approx order:

nbhtool or nbhextract - extract RUU_Signed.nbh into its component parts
nbsplit - convert the .nb of the OS above into .payload & .extra parts
imgfsfromnb - convert the .nb.payload into imgfs.bin
imgfstodump - convert the imgfs.bin into dump directory
pkgtool - convert dump directory into "packages"

This is where you modify and add stuff
pay close attention to initflashfiles.dat
Other useful tools for modifying the rom are G'Relloc (relocate modules from other hardware so it runs on the titan) and BuildDSM (creates DSM files for you).

BuildOS - "un-pkgtools" the dump directory into a new "temp" directory - needs to be run from the dump directory and needs to have a "tools" directory where some of the programs it uses lives. Also needs a copy of the boot.rgu from the XIP in dump/ROM/XIP (can be obtained using RomMaster and xipport tools).


imgfsfromdump - convert new "temp" directory into imgfs.bin
imgfstonb - convert new imgfs.bin into os.nb.payload
nbmerge - convert os.nb.payload into os.nb
nbhgen/nbhtool - convert os.nb back into RUU_signed.nb

I have sucessfully dumped the alltel rom, removed components, modified registry used packages from Pandora's Kitchen (you can find it on xda-developers) and the Apache WM6 Kitchen on this site and repackaged and installed it onto my titan without problems.

I have been a little vague on options used as it pays to understand what you are doing, and I am not necessarily sure I am using the best options and tools and although I had good sucess cooking with the alltel, my first attempts yesterday with the new sprint rom failed miserably.

I would like to get AKU .7 ported, but I have not quite figured out what that involves, can extract it, packagetize it, modify things, put it back into xip.bin, just don't know how to add it to the rom to flash back.


Hope that helps,

Geoff
pretty good summary. as for .7, and im not expert here but this is my understanding:
it is very easy to take the 0.7.0 OS, stick our drivers into it and g'reloc to move modules into place. ive done this with 0.4.2 and booted it, but it was not very stable. the problem is that the xip portion of the rom is not modified by what you and I are doing. the xip contains nk.exe and coredll.dll which make up the WM kernel. What I had done was effectively booting 0.4.2 files on a 0.2.3 kernel. In settings, about, it displayed our old 5.2.1238 but the new build number.

We have tools that can replace a module in the xip such as coredll.dll. However, the new version would have to be the exact same size in order to occupy the exact same space in the xip. Realistically this would not be the case, and the tables would have to be updated to reflect the new module locations. We do not have a tool to automate this process for us. I believe that the aku porting done in the past has been completed by people with lots of time and patience to update the tables by hand in a hexeditor.
Reply With Quote
  #13 (permalink)  
Old 10-25-2007, 07:01 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
Threadstarter
 
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)
gzub when you use nbsplit what option do you use, i can get to the imgfstodump and then ill i get is a blank text file called dump_MemoryMap.txt and this on the cmd screen

Code:
Header type: 00000000, Addr: 00000FC0
 Unknown header type, FS_DATA_TABLE??
the addr changes but has the same error message
Reply With Quote
  #14 (permalink)  
Old 10-26-2007, 08:20 AM
gzub's Avatar
Lurker
Offline
Pocket PC: Touch Pro
Carrier: Sprint
Location: Franklin, MA
 
Join Date: Jan 2007
Posts: 22
Reputation: 60
gzub is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to gzub Send a message via MSN to gzub Send a message via Yahoo to gzub
Post

Are you using the latest version of the imgfs tools, see this thread: http://forum.xda-developers.com/showthread.php?t=298327

To get you a bit further:

Code:
NBHExtract RUU_Signed.nbh
This should yield 5 files, you want the one with OS in it.

Code:
NBSplit -titan 05_OS.nb
Which should yeild 05_OS.nb.extra and 05_OS.nb.payload

Then you want to run

Code:
Imgfsfromnb 05_OS.nb imgfs-out.bin
which will get you imgfs-out.bin

Finally to create the dump directory:
Code:
Imgfstodump imgfs-out.bin
Which will create a directory dump, then you can run packagetool on it and start playing.

Hope that helps...
Geoff
Reply With Quote
  #15 (permalink)  
Old 10-26-2007, 10:26 AM
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
Threadstarter
 
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)
great works perfect, i was using the imgfstool2.0rc2
Reply With Quote
  #16 (permalink)  
Old 10-26-2007, 02:35 PM
pdub310's Avatar
Lurker
Offline
Pocket PC: HTC TOuch Pro
Carrier: MetroPCS
 
Join Date: Mar 2007
Posts: 2
Reputation: 0
pdub310 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
When I use BuildOS, I get the error: The system cannot find the file specified. On the program window at the bottom in the status bar it shows: Error, last status "Creating registry". Does anyone know how to get around this? Im lost for the moment.
Reply With Quote
  #17 (permalink)  
Old 10-26-2007, 02:43 PM
gzub's Avatar
Lurker
Offline
Pocket PC: Touch Pro
Carrier: Sprint
Location: Franklin, MA
 
Join Date: Jan 2007
Posts: 22
Reputation: 60
gzub is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to gzub Send a message via MSN to gzub Send a message via Yahoo to gzub
It took me a while to hunt that one down... I recommend using sysinternals filemon.exe when you get an error in BuildOS, it gives you great clues as to what might be missing or causing issues...

You either need a directory called tools where buildos is running (or the various tools in the path - rgucomp probably in this case) and you need a directory called ROM/XIP with the boot.rgu in it.

Hope that helps,

Geoff
Reply With Quote
  #18 (permalink)  
Old 10-26-2007, 04:35 PM
no2chem's Avatar
Retired Staff
Offline
Pocket PC: who knows
Carrier: probably sprint
 
Join Date: May 2007
Posts: 1,168
Reputation: 11628
no2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation levelno2chem can't get a higher reputation level
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
To anyone thinking about porting XIP from other devices - this isn't exactly a matter of copy and pasting nk.exe and dlls, or even taking the xip.bin from other devices - its a lot of work, as you need to change memory spaces around. I would recommend importing the XIP section from the kaiser, as the device is similar enough to ours - to start you would need IDA - which isn't free might I add - the demo should suffice though.
Reply With Quote
  #19 (permalink)  
Old 10-26-2007, 07:36 PM
pdub310's Avatar
Lurker
Offline
Pocket PC: HTC TOuch Pro
Carrier: MetroPCS
 
Join Date: Mar 2007
Posts: 2
Reputation: 0
pdub310 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
thanx gzub.. worked like a charm..
Reply With Quote
  #20 (permalink)  
Old 10-26-2007, 10:41 PM
dcd's Avatar
dcd
VIP Member
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: May 2007
Posts: 575
Reputation: 2537
dcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIPdcd is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by no2chem View Post
To anyone thinking about porting XIP from other devices - this isn't exactly a matter of copy and pasting nk.exe and dlls, or even taking the xip.bin from other devices - its a lot of work, as you need to change memory spaces around. I would recommend importing the XIP section from the kaiser, as the device is similar enough to ours - to start you would need IDA - which isn't free might I add - the demo should suffice though.
ive attempted to boot my titan using the kaiser's and the hermes' xip with no success. My understanding was that we cannot modify the xip or its contents without manual table editing. what is IDA, and if the xip from the kaiser would suffice, why would any modification of it be necessary?

if you can point me in the direction of where to get started with 'moving memory spaces around' i am willing to put the time in to do the editing by hand. glad to see someone respond with more knowledge than myself about porting from another device.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Titan


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 12:57 PM.


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