[Windows Mobile] ragnascroutch:
Xperia rom rebuilding

Hi all,

sorry mods and people here if you feel that i am posting in wrong forums,

but i think it is more related to erviuskitchen than xperia.

More exactly, it is aimed to enlarge the already large field of devices

this kitchen can cook for.

I recently wanted to move to erviuskitchen for cooking my own versions,

because of it's flexibility and powerful features and it's convenient all-in-one gui.

Before trying to mess a little with it, i opened config and batch files

to see what changes i could make to adapt it to my needs.

In order to have locale and device parameters consistent with my configuration,

i modified TOOLS\nbhutil.xml adding the following few lines:

<device name="Kovsky" chunksize="64">

<ModelID>KOVS*****</ModelID>

<CID>11111111</CID>

<Ver>NsX-r0m_v0.1a</Ver>

<Lang>FRA</Lang>

<Item value="0x200">SPL</Item>

<Item value="0x300">Radio</Item>

<Item value="0x400">OS</Item>

<Item value="0x600">Splash</Item>

<Item value="0x601">SubSplash</Item>

</device>

Then i modified TOOLS\kitchen_build_rom.bat and changed variables according to this:

set LOCALE=040C <------- change this according to your locales

set BUILD=PREMIUM

set DPI=DPI_192

set RES=DPI_192_RESH_480_RESV_800

set DEVICE=KOVSKY

set OLDKERNEL=1

set DEVICEID=KOVS*****

set VERSIONID=myownrom-0.1 <------- Put your own version here

set LANGID=FRA <-------- change to your three letters country code

set CHUNKSIZE=64

set OSIDVALUE=0x400

After that i created an os_KOVSKY.txt file in TOOLS folder which contain following lines:

KOVS*****

HTC__001

myownrom-0.1 <------- Put your own version here

040C <------- change this according to your locales

400,..\temp\OS-new.nb

In order to first try and test features of this kitchen, i dumped a stock R2A

french rom and tried to rebuild it but i noticed some errors which made me crazy to debug...

- First it dumps flawlessly last R2A roms ( at least french one ) so no problems so far.

- After i dumped the rom, i cut and paste files from the old kitchen in the newly build kitchen from original stock rom in order to keep files i modified earlier.

- I fill the fields in gui but it doesn't let me edit "DEVICE ID" "CHUNKSIZE" and "OS ID" fields.

- So i save the project as TOOLS\RomSaved\xperia.erv and open it in a notepad. After edition, first lines looks like that:

Device#KOVSKY

RomLang#040C <------- change this according to your locales

Version#myownrom-0.1 <------- Put your own version here

Language#FRA <-------- change to your three letters country code

DPI#192

RES#DPI_192_RESH_480_RESV_800

aku5#False

Dev_Id#KOVS*****

Chunk#64

OS_Id#0X400

- I reopen the project in gui and then i can create a rom but it says that there is an error creating rom.

- After a few hours trying to find what's wrong, i found that imgfs size was exceeding the max permitted by imgfsfromdump.exe.

- After searching a little, i found a version which permit larger imgfs size, which i included with this post.

- After that it let me generate a seemingly correct rom file.

I did not have time to test it yet but i hope it will flash without pain....

Edit:

Successfully flashed created rom, so i hope some xperia rom cookers will move to erviuskitchen too if they

did not already !!

Cheers !