[XPERIA X1 ROM Development] gtrab:
STEP 2: THE KITCHEN​

[01 JUL 09] Uploaded the kitchen I used to cook my SEX1 R3.61 XPERT ROM​

Improvements: 1- During cooking process, it will let you choose between LZX or XPR compression without having to change any files (now it uses th "mythical" universal cecompr.dll :D) 2- Before closing, it pauses to let you explore or copy temp files 3- Smaller in size and super FAST: cook a 100 MB ROM in one minute :) (using XPR)

[01 JUN 09] SEX1 KITCHEN, more simple, small & easy to use. Download at post footer

[01 JUN 09] COCINA SEX1 con ejecutable ('script') en español, más sencilla, pequeña y fácil de usar. Descarga al pie de este post

BASICS

Every Kitchen requires Microsoft Visual Basic redistributable & Microsoft .NET Frameworks 3.5 to run

Download here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&DisplayLang=en

Some Kitchens must to be placed in the root directory C:\

The SEX1 kitchen can be placed anywhere in your PC, even in your desktop if you wish :)

INTRODUCTION

A "kitchen" is a compilation of tools, some are optional and some required to cook a ROM

The SEX1 Kitchen has the minnimum required tools only, making it smaller

Some users have written SCRIPTS to automate the cooking process and make things easier, so even I can cook :D

The script guides you instead of manually launching every required app in the correct order

Just click "Cook.bat" "kovskykitchen.bat" or "buildNB.bat" (it depens on which kitchen you are using) and the automated script will do the rest

This SEX1 Kitchen is a modified derivant from Bepe's old Kitchen structure with updated tools, and in this case I wrote the script for the automated process myself

Erviu's

Visual kitchen

is a more modern, UI-oriented alternative, but by the time being I will focus on the structure and some basic concepts for this classic ole' style kitchen from Bepe because Visual Kitchen uses a dfferent folder structure

STRUCTURE

Inside the Kitchen you will find 4 folders and the Kitchen's batch script:

BATCH SCRIPT:

- When finished populating OEM, SYS and ROM (XIP) folders with your desired OEM packages and CE|OS build choice, double click the batch script to start cooking and have a smoke or a coffee while it finishes (this Kitchen is unattended, it takes around 2 minutes to auto-cook a 100 MB ROM with standard compression)

For the english Kitchen: double click "Cook.bat"

Para la Cocina en español: doble click "Cocinar.bat"

- The batch script can be edited with notepad

I inserted some REMARKS ("REM") inside the script:

1- First one if you want to include a

pause

in the right place to manually edit file attributes before cooking the ROM

2- Another one in case you want to Hex-edit "imgfs.bin" to manually change compression from stock WRX to new LZX

NOTICE 1: LZX compression can be used in this Kitchen by populating the \ROM\ folder with a LZX compression enabled "os.nb.payload" or by editing the new "imgfs.bin" during the cooking process

NOTICE 2: LZX uses a different compressor DLL, it can be downloaded at post footer and relaced in \tools\ folder

KITCHEN FOLDERS:

- The \Tools\ folder is the "oven": it contains all the required tools to cook the ROM

I added step by step explanations into the script, so you can check it to see what happens and which apps are called, to better understand the cooking process: It's worth taking a look

We should be grateful with bepe, bot, ervius, MrVanx, OM-BY, blasphemer, udk and many others for these amazing tools

One year ago the process was SO TEDIOUS and HARD... now it is a matter of clicks !!

- The other 3 folders, OEM SYS & ROM, are where the future ROM parts must be placed:

Download the Kitchen first, then populate these folders with your desired recipee

- Where to get OEM, SYS and ROM (XIP) contents from ??

Use mines (from this tutorial), or dumped ones, or from other users who have shared them

There are many many available around the subforum, just do your homework and search ;)

NOTICE 1: SYS packages must be 192 dpi 480 x 800 resolution !!

NOTICE 2: ROM (XIP) with os.nb.payload must come from a XPERIA, otherwise it must have been ported for the XPERIA

NOTICE 3: If you plan to use a ROM (XIP) folder from jerpelea or my newer "SEX1 release 3", the proper compressor DLL must be downloaded and replaced at "/tools/" folder (the ROM compression selection lyes inside "os.nb.payload")

After populating these folders, your future ROM is basically already there, dismantled into the 3 folders:

- ROM folder is the core :eek:

CE build version is here, in "xip.bin" (in some kitchens like this one, "xip.bin" is already inside "os.nb.payload")

- SYS folder contains all Microsoft Operatin System shizzz (media player, Titanium, bootscreen, backgrounds, themes, calendar... etc)

OS build version is here, in \OS\ folder

- OEM folder contains Sony or HTC customizations (Dialer skin, Xperia Panels, TouchFlo...)

OEM version (customization) is here, in \OEMVersion\ and \OperatorPkg\ folders

- In most kitchens your new cooked ROM will "appear" in the RUU folder, which contains a "Rom Update Utility" app required to flash your fresh new custom smokin' cooked ROM to the phone

In the SEX1 Kitchen the new cooked ROM will "appear" in the root kitchen folder, renamed to kovsimg.nbh, ready to be flashed with the microSD method (safer IMHO)

Of course it can be renamed to RUU_signd.nbh and USB-flashed from the PC with the RUU app too

OPTIONAL TOOLS FOR THE SEX1 KITCHEN

Along with the Kitchen, I have uploaded some very useful tools to this post

They are not required but some people could find them usefull and can be optionaly added to the kitchen:

(I wrote and included instructions for each tool inside the ZIP)

xvi-32 Hex Editor -> useful to hex-edit files (I Hex-edit my ROMs to change the ROM initial date, tutorial @ post 90)

Page Pool changer by OM-BY -> Changes the ROM page pool size (some say 0 is better, others prefer 8MB or even 16MB. I use 0=auto)

SYS version by MRVanx -> Gives the

real

version of every package in SYS folder (don't be surprised: all SYSs floating around are hybrids somehow)

RUU ROM Update Utility 3.22.4.3 for Xperia X1 -> To flash ROMs from the PC

LZX compression: To make the SEX1 Kitchen COMPATIBLE with LZX-compressed ROM/XIPs, just replace the CE compressor DLL in \TOOLS\ folder with the one posted below

Continued...