[Windows Mobile] hilaireg:
[TUT] Sous-Chef's Guide to Aruppenthal's XIP Porting Kitchen 5.3 ... continued

Preparing Your Facility

Before you can begin to port an Execute-In-Place (XIP) region, you need to equip your facility with some Kitchen utensils. Your Kitchen is going to require a good Unicode & UTF-8 text editor; I personally use ConTEXT & Notepad. Another handy utensil to have is a hexadecimal file/binary editor; I use XVI32. Some other utensils that you're going to require are: cmonex AutoPatcher and om-by Page Pool Changer/Resizer. You will also need an archive extraction utensil; I use IZArc, WinRAR, and WinZIP. You’ll also need a good Hexadecimal calculator; I use Windows Calculator (Scientific Mode).

It's also a good idea to ensure that your Kitchen remains "pest" free; common pest control services include AVG, McAfee, and Symantec anti-Virus. You may need to temporarily disable your Anti-Virus Rootkit scanner while performing binary editing and porting activities.

To assist you in your apprenticeship, I have included a link to Aruppenthal’s XIP Porting Kitchen that I used to prepare this guide – the kitchen also includes a .DOC and .PDF format of this guide. The procedures were tested against a GSM Raphael device. I can’t confirm that these procedures will work on CDMA device ROM’s. Additionally, some device XIP’s may not be compatible with the Raphael device.

XIP Porting Kitchen, 7 MB (mirror)

For the purpose of this guide, I will assume that you have added the C:\XDA\ folder, sub-folder, and files to your anti-virus exclusion list. You will additionally require the Generic Simple Kitchen from the Sous-Chef's Guide to Da_G's Simple ROM Kitchen tutorial (http://xdaforums.com/showthread.php?t=490787) and the XIP Porting Kitchen used in this guide – extracted to the following folder.

C:\XDA\MY_XIP_KITCHEN

The guide is divided into the following sections:

Extracting the RUU_SIGNED.NBH Contents .............. 3

Reducing the .PAYLOAD File .......................... 4

Extracting the Donor XIP.BIN Contents ............... 5

Extracting the Base XIP.BIN Contents ................ 6

Extracting the Donor MSXIPKernel .................... 7

Validating the XIP_OUT.BIN File ..................... 8

Table 1.1: Good ............................... 9

Table 1.2: Fail ............................... 10

Table 1.3: Overlap ............................ 11

Table 1.4: Gap ................................ 12
​

Preparing the New OS.NB.PAYLOAD File ................ 13

Reducing the Update Loader (ULDR) ............. 14

No Update Loader (ULDR) Reduction ............. 15
​

Unlocking and Sizing the Paging Pool ................ 16

Disabling Certificate Checking ...................... 17

I will attempt to provide an overview, the list of tools required, and the process to follow in each section. As you become more comfortable (and familiar) with the activities, you will find that you can consolidate (or skip) certain outlined steps. Incidentally, you'll probably want to keep these web links open in case you need to lookup some of the terms or concepts in the guide.

Acronyms

http://wiki.xda-developers.com/index.php?pagename=Acronyms

Glossary

http://wiki.xda-developers.com/index.php?pagename=Glossary

Development Resources for Windows Mobile

http://xdaforums.com/showthread.php?t=445396