Originally Posted by fayfay392
(Post 381972)
XIP Porting Guide:
THIS IS A QUICKLY TYPED VERSION, WILL ELABORATE and add pictures later..
DONT COPY WITHOUT PERMISSION!
Preamble:
OK first things first, I have searched from one end of the internet to the other and in the procress gathered this information and I would like to share it and keep it in one spot so others don’t have to search and guess like I did.
Tools:
XIP PORT TOOL KIT (will be in my topic for download)
HEX Workshop Hex Editor: Download
Base Rom, I used the Newest Official Sprint 6.1 Rom (RUU_PPST_Vogue_SPRINT_WWE_3.03.651.4_2_Radio_3.42 .30_AM_NV_2.04_Ship WARRANTY)
Rom for Porting, I used the newest RUU from the Diamond (RUU_Diamond_HTC_WWE-ME_1.93.456.2_Radio_Signed_Diamond_52.29.25.12_1.0 0.25.05_Ship)
Not save all the file to desktop
Process:
Now that you have you tools and files and have installed HEX Workshop let’s begin!
First Extract the XIP PORT TOOL KIT and rename it to XIP BASE. After extracting it, right click on the official Vogue sprint rom and click “Open With Winrar”. Once opened in Winrar find the largest .nbh file (in this case it is named 2.nbh) and extract it to you XIP BASE folder on your desktop.
Now let’s extract the XIP from this rom!
Ok, now you want to open your command prompt and type “cd C:\Users\YOURNAME\Desktop\XIP BASE”
Now that you’re in that folder in the command prompt, type “NBHextract 2.nbh”
This will leave you with several .nb files, the only one we are conserned with is the 04_OS.nb file. Please rename 04_OS.nb to OS.nb.
Now in command prompt type “NBSplit –kaiser OS.nb”
Now you will have and OS.nb, Os.nb.extra, and OS.nb.payload files!
Finally we are getting somewhere! Now in command prompt, type “imgfsfromnb os.nb.payload imgfs.bin” and NOTE the Starting location of the IMGFS partition (in this case 0x00680000)
Now we need to open HEX Workshop and open the os.nb.payload file.
Now type CTRL, G and type 00680000, this will bring you to this location, now while holding down shift, press end on your keyboard and then delete. (an error will come up ignore and delete!)
Now press CTRL, G again and type 00320000 and it will bring you to this location, the while holding down shift press the home key on your keyboard. Press delete and ignore errors.
NOW, Save FILE AS XIP.bin!
Do these exact steps for you new XIP too!
Porting:
Now that you have to XIPS, we need to port them!
In you XIP BASE folder, open the tool XIPPort.exe. Now press “dump xip.bin” then “write maps”
Now press “make pkgs”
Now navigate into your newly created OUT folder and go to the FILES subdirectory and MOVE everything but OEMXIPKernel folder to your desktop and create a file called XIP ORIG.
Now Navigate to the MODULES subdirectory and MOVE all the folder except the OEMXIPKernel folder to XIP ORG folder on your desktop.
NOW, in your NEW XIP folder Dump your XIP, write maps, make pkgs.
Navigate to the FILES and MODULES subdirectory and DELETE everything BUT the MSXIPKernel and MSXIPKernelTK folders.
NOW, move over the MSXIPKernel folder to their corresponding directories in the XIP BASE folder.
Rellocing:
Now open M’Reloc.exe TWICE. On the first M’Reloc click “Choose Module” and start from the first module in the XIP ORIG folder on your desktop. Now on the second M’Reloc.exe click “Choose Module” and choose SAME module you did on the first M’Reloc.
The whole purpose of this tool is to make the .dll’s from your XIP ORIG folder match your NEW XIP .dll’s. Go through each .dll and make them match your original values.
!!** PLEASE NOTE: hdd.ll and and osaxst0.dll are device specific, and cant be changed. DELETE these files along with their corresponding .txt files. ALSO don’t mess with the .exe files they don’t need to be changed nor will they change if you try.**!!
Now that there matching, leave the M’Reloc tool from XIP ORIG open and start from the beginning .dll file and while this is open, open the folder of that .dll and open the imageinfo.txt from the folder and change the V= (e32_vbase) and D= (o32[1].o32_realaddr) to match what M’Reloc says.
Now that all the text files are matching, open XIPPort.exe again and click “undo”, then “realloc P” and then, “write maps”
Now navigate to your OUT folder and open MAP.txt and look through it for “!!!!!!” if you find these make shure you M’Relloc’ed your modules correctly!
If you find no “!!!!”, then your good to go, now press “build xip_out.bin” on XIPPort.exe.
Now in the box that says “00310000” type “00320000” and in the box that says “nk.nb”, type “os.nb.payload”
Now, in command prompt dump the new os.nb.payload into the os.nb using NBMerge.exe, then rebuild the NBH using nbhgen.
WILL UPDATE MORE LATER! :headbang:
|