PDA

View Full Version : Tutorial: How to Dump, Extract and Build a Rom for Windows Mobile


nada1
20th January 2009, 06:57 AM
CREDIT GOES TO anichillus for his Tutorial and kitchen. I just modified the tutorial with some pics and steps. Thanks to its right, S.V.I, CRACING and kitchen tools developers. Hope it helps…

Note: I wrote this tutorial on my Blog too. So consider this post as a copy of that post. Plz let me know if i have mistake in the tutorial. Thanks....
1. Some ROMS are password protected. So those ROMS will not dump.


At First you need to download a good Kitchen and a good ROM for windows mobile. All the kitchens are good. For me HyperCore Kitchen is the best choice so download the kitchen from here :

Kitchen source: HyperCore Kitchen (http://forum.xda-developers.com/showthread.php?t=309549)

Latest Kitchen Download: Download (http://rapidshare.com/files/50880220/HyperCore_V1.01.exe)

You can Use this kitchen for Wizard, Hermes, Artemis, Herald, Universal, Trinity and Prophet. Then Download a Rom for your device. You can find a lots of coustomized ROM for windowsmoble devices on Xda Developers. Before Downloading a windows Mobile Rom you need to know what kind of Windows Mobile Device you Have . And You need a CID Unlocked Device. I know that my MDA is a Wizard and it’s a G3 Device. To know about your device please read Smartphone / PDA Nick Names And Unlocking (http://www.bytetips.com/smartphone-pda-nick-names-explained/). I added some Unlocking tools source for different Device. After downloading and Unlocking Your Device You can update your Rom. To coustomize your downloaded ROM follow this steps:

1. Extract The kitchen to your C: Drive otherwise it will not work properly. It should be C:\Core\ on you PC. First of all you need to edit the file named “Device.txt” located on the “C:\Core\ACK\” folder located on systemdrive. You will see set device= . If you have a Wizard then edit the test like this set device=Wizard. Then Go to your downloaded rom directory ans copy the nk.nbf or the .nbf file to Desktop\HyperCore\Panel\Extract\source Folder. Make sure that .nbf file is named as nk.nbf.

Take a look at the bottom picture :

http://forum.xda-developers.com/attachment.php?attachmentid=148380&stc=1&d=1232442919

2. The Navigate to Desktop\HyperCore\Panel\Extract folder and Start DumpRom and hit Enter to Dump / Extract the ROM from nk.nbf file. You will see its working.. After few seconds..minutes, depending on your PC and the ROM you are extracting you will be prompted with a Status and with some questions. Here you can start PKG Tool and you can move the OS.nb to ROM folder. Type In 2 and hit Enter to copy Os.nb. Now Type in 1 and hit [ENTER] to start Package Tool. Read the window and Hit [ENTER] to countinue…

Bulding Packages

3. You will see some options On the status window. Choose Number 3 manual Option. So type in 3 and hit [ENTER].. Package tool will start. Click on Package tool and go to file > Open then select the folder Desktop\HyperCore\Extract\dump. It will show you Rom Information. After that click on Tools > Build Packages on the package Tool program. It will take some time to bulid the package. It will show you some status afet building packages.Look for [Missing Files] to find info about their Directory. To copy the missing file go to Desktop\HyperCore\Extract\dump directory and Copy the missing files / folders from there to where it shows. After you placed all files where they should be, you must then rename the “dump” folder into “Packages” and only then you can exit the PackageTool. . When you will do that, the batch program will get you to another Status window. Here you can see “Move SYS and OEM to Kitchen. So, select “4” and press [ENTER] but be sure that you renamed the “Dump” folder first into “Packages”. Then type Y and press [ENTER] again. It will move the SYS and OEM folders into HyperCore \Build for later building. Then Exit or Press [ENTER] to Exit the status window.

Dumping XIP from ROM

4. The Only thing you miss now is the XIP section and you’ll have your first OEM and SYS Kitchen after dumping the XIP from the ROM. Go to Desktop \HyperCore\Panel\Extract and start DUMP XIP it will open a folder asking you to place OS.nb on that folder. We already moved the OS.nb to this folder. So Close that folder and hit [ENTER]. This will work to generate the XIP. Read the status window and continue. Type in 1 and press [ENTER] to move the XIP. Press any key to continue and Exit the Status window.

BuilDing ROM from Kitchen

5. If you are on this step, you made your own first kitchen for your windows mobile device. Before building any windows mobile rom you must remember that your ROM size should be 56.9 MB. Now go to Desktop \HyperCore\Build and add / delete your OEM Pcakages from OEM Folder. If you want to know about how to make OEM package for Windows Mobile please read details about Making Windows Mobile OEM Here (http://www.bytetips.com/convert-cab-file-to-oem-package-for-kitchen/). Add remove packages from OEM and SYS folder to adjust the nk.nbf size. After adding an deleting packages go to Desktop\HyperCore\Panel\Build and start BuildOS. Look at the picture below to see this status window.

http://forum.xda-developers.com/attachment.php?attachmentid=148356&stc=1&d=1232430820

6. This will prompt you with couple of choices. It’s pretty easy. Select “1” and this will start the actual BuildOS program. Select the Packages from there and click on little green arrow and wait until finish. Note that, If you have duplicate file on the packages you will get error message saying file exist.. delete duplicate files from SYS and OEM then click on green button again. When done close the build os on the status window to make OS.nb file by choosing option 2. Type in 2 and press [ENTER] to create OS.nb file.

7. After finishing you will see the status window again. Now type in 3 and it will start nb2nbf tool. Now follow this instruction carefully.

http://forum.xda-developers.com/attachment.php?attachmentid=148381&stc=1&d=1232443071


Select Wizard on model ID field.
Then select File#1 and browse Os.nb file from Desktop \ HyperCore \Tools\Convert\ .
Then select OS from drop down list.
Click on Start Address field to get the Start address.
Click on Translate to buld nk.nbf file. Here is a picture of nb2nbf tool with this steps .

confident
20th January 2009, 11:25 AM
i want to remove some applications from the sys folder (like bluetooth ftp,ps shutxp) which i never use.can i simply delete the folder from sys or i have to edit rgu or initflash or dsm file .or anyone knows how to edit xml file so that i can select or deslect program from the buildos tool.thanks in advance

nada1
20th January 2009, 04:41 PM
i want to remove some applications from the sys folder (like bluetooth ftp,ps shutxp) which i never use.can i simply delete the folder from sys or i have to edit rgu or initflash or dsm file .or anyone knows how to edit xml file so that i can select or deslect program from the buildos tool.thanks in advance

Deleting the folders worked fine for me.

MoonBlazer
21st January 2009, 05:16 AM
Wizard, Hermes, Artemis, Herald, Universal, Trinity or Prophet?
thanks

CRACING
21st January 2009, 05:44 AM
Hello,

Wizard, Hermes, Artemis, Herald, Universal, Trinity or Prophet?
thanks


No, hypercore or any kitchen found in this website will not work for samsung onima and also the device is not developed by HTC so you might not get any info in this website for cooking ROM's for samsung onima.:)

SO DO NOT TAKE ANY RISK.:p

i want to remove some applications from the sys folder (like bluetooth ftp,ps shutxp) which i never use.can i simply delete the folder from sys or i have to edit rgu or initflash or dsm file .or anyone knows how to edit xml file so that i can select or deslect program from the buildos tool.thanks in advance

* If you are deleting any OEM folders which contains lnk. Simply delete the OEM and also clear the command line in the initflashfiles.dat file which relates to the lnk file inside the deleted OEM. You can ignore this one but I think it will slow down the speed of booting at the first time.

* If you are deleting any OEM folder which does not contain any lnk file then simply delete it.

* When ever you deleted the OEM, Rgu file might be the important to boot the device so confirm the keys inside the rgu and then delete the OEM.

* After build the nk.nbf, The file should be less then 56.9 MB if not its overcooked and it will defiantly crash while flashing.

* Make sure you device is flashed to hardspl before testing your cooked ROM.

I think these tips will help a little, Thanks

Best regards

MoonBlazer
21st January 2009, 06:23 AM
Hello,




No, hypercore or any kitchen found in this website will not work for samsung onima and also the device is not developed by HTC so I might not get any info in this website for cooking ROM's for samsung onima.:)

SO DO NOT TAKE ANY RISK.:p



* If you are deleting any OEM folders which contains lnk. Simply delete the OEM and also clear the command line in the initflashfiles.dat file which relates to the lnk file inside the deleted OEM. You can ignore this one but I think it will slow down the speed of booting at the first time.

* If you are deleting any OEM folder which does not contain any lnk file then simply delete it.

* When ever you deleted the OEM, Rgu file might be the important to boot the device so confirm the keys inside the rgu and then delete the OEM.

* After build the nk.nbf, The file should be less then 56.9 MB if not its overcooked and it will defiantly crash while flashing.

* Make sure you device is flashed to hardspl before testing your cooked ROM.

I think these tips will help a little, Thanks

Best regards


ok, thanks

confident
21st January 2009, 08:46 AM
Thanks Cracing.Your Touch HD is the best rom i ever used.

Ather
21st January 2009, 01:42 PM
* Make sure you device is flashed to hardspl before testing your cooked ROM.I think Hspl is only needed if you have a G4 Device!

CRACING
21st January 2009, 01:48 PM
I think Hspl is only needed if you have a G4 Device!

O" thats right man:D. I was not knowing about it.

Why did the htc developerd two edition of htc wizard, I mean G3 and G4.:p

Regards

ferfecir
21st January 2009, 05:39 PM
nada1
CRACING

ı am not spaek english soryy ı am eng. speak very little

Rom edit Video description pls

Correct English : :D
Can any one please make a screencast/video of the steps explained above ?

ferfecir
23rd January 2009, 11:33 AM
5. If you are on this step, you made your own first kitchen for your windows mobile device. Before building any windows mobile rom you must remember that your ROM size should be 57 MB. Now go to Desktop \HyperCore\Build and add / delete your OEM Pcakages from OEM Folder. If you want to know about how to make OEM package for Windows Mobile please read details about Making Windows Mobile OEM Here. Add remove packages from OEM and SYS folder to adjust the nk.nbf size. After adding an deleting packages go to Desktop\HyperCore\Panel\Build and start BuildOS. Look at the picture below to see this status window.

Can any one please make a screencast/video of the steps explained above ?

nada1
25th January 2009, 08:25 PM
5. If you are on this step, you made your own first kitchen for your windows mobile device. Before building any windows mobile rom you must remember that your ROM size should be 57 MB. Now go to Desktop \HyperCore\Build and add / delete your OEM Pcakages from OEM Folder. If you want to know about how to make OEM package for Windows Mobile please read details about Making Windows Mobile OEM Here. Add remove packages from OEM and SYS folder to adjust the nk.nbf size. After adding an deleting packages go to Desktop\HyperCore\Panel\Build and start BuildOS. Look at the picture below to see this status window.

Can any one please make a screencast/video of the steps explained above ?

in this step go to Desktop \HyperCore\Build and add / delete your OEM Pcakages from OEM Folder in that directory. Create or download your OEM packages from here. (http://forum.xda-developers.com/showthread.php?t=333359) Then follow the tutorial

DurKNesS
26th January 2009, 03:14 AM
Tried this a couple times from the beginning and I can't get past the BuildOS. Seen people have this before with other ROM's but they never post how it was fixed. It's the old "External component has thrown and exception." when it's creating initflashfiles.dat....

Any help with past experience would be much appreciated. :D

CRACING
26th January 2009, 03:45 AM
Tried this a couple times from the beginning and I can't get past the BuildOS. Seen people have this before with other ROM's but they never post how it was fixed. It's the old "External component has thrown and exception." when it's creating initflashfiles.dat....

Any help with past experience would be much appreciated. :D

Please explain more. I will try my best to fix your problem.:)

DurKNesS
26th January 2009, 04:06 AM
Thanks CRACING,
I think it has everything to do with I don't know what i'm doing...lol

I have a lot of respect for all of the peeps cooking roms for us. Don't even know where to start when I'm looking at the sys folder. Thanks for offering to help but I'm staying far away from trying to cook a rom to my liking.

CRACING
26th January 2009, 04:57 AM
Thanks CRACING,
I think it has everything to do with I don't know what i'm doing...lol

I have a lot of respect for all of the peeps cooking roms for us. Don't even know where to start when I'm looking at the sys folder. Thanks for offering to help but I'm staying far away from trying to cook a rom to my liking.

Only few weeks ago I was also not in knowing how to cook. I readed may posts and threads on this website but did not went in head:). So after many studies and hard works day/night, Now I am able to cooking the ROM's for the wizard. Everyone think that cooking is not so easy but after learning, we can cook ROM's easily.

Now I am insearch in cooking ROM's for HTC Touch HD but the only problem for me is that, I have do not have device to test.

Anyway, Do some research in this good website. You will get many guides for cooking ROM's and threads/post for fixing problems.

Best regards

gabberjool
27th January 2009, 07:29 PM
the path

Desktop\HyperCore\Panel\Extract\source

is on new version not correctly the path are

\Desktop\HyperCore\Extract\Source

nada1
31st January 2009, 08:53 AM
the path

Desktop\HyperCore\Panel\Extract\source

is on new version not correctly the path are

\Desktop\HyperCore\Extract\Source

But mine shows.. Desktop\HyperCore\Panel\Extract\source i am confused :confused:

ferfecir
31st January 2009, 10:40 AM
delete your OEM Pcakages


Can any one please make a screencast/video of the steps explained above !

thomas01_58
24th August 2009, 01:57 PM
Hi,
Can I use this tutorial to create a Rom for my Jade ,or Touch 3 G.Please note that I am not a computer geek.
Regards,
Thomas

MoonBlazer
4th March 2010, 07:22 AM
do you think it is safe to use hypercore to extract the rom from my Samsung Omnia?, i cant find anything anything on the web.