yashsingh1/xdaforums huggingface dataset:
[Touch HD Windows Mobile ROM Development] mcurotto:
Hi folks

After 28 buildings, I finally came up with a fully functional, non bug Rom.

Base Rom: Blackstone 1.56.401.0

WM 6.1 21054

Manila 2.1 and 90% of apps: Rhodium 1.19.721.3

I would like to share everything I found out, all tricks you only discover after extensive testing. I will post here as I find time... And I hope this thread don't die!! :)
[Touch HD Windows Mobile ROM Development] Raptordin:
From a Noob (me) in cooking (Failed every one) I would love if you share your rom as all the cooks now make 6.5 Roms except for kwbr (Excellent Roms) but diversity is always nice.
[Touch HD Windows Mobile ROM Development] mcurotto:
Hi Raptordin.

I only made my rom after trying to start 3 times. The word to achieve is "Patience". You have to test a lot of times. But the purpose of this thread is to reduce the number of experiments you must make!

I can share my Rom, no problems. But there is a lot of customization I've put inside it. In the near future I will share a "Generic" Rom and also my Kitchen.

But I encourage everyone to make your own Rom, its very worthwhile, as you can put all you customization, apps inside it. In the future you will save a lot of time when flashing Roms.
[Touch HD Windows Mobile ROM Development] mcurotto:
Step 1 - Base ROM Dump

I will try to describe the steps I passed to make my Rom. Inside each step there are a lot of "sub-steps" I will hide so the thread don't become too polluted. My intention is to share my experience. Sorry is I double post something.

You can find Kitchens ready to use out there, but the point here is to start from Zero.

The first thing you must do to build your ROM is to chose a Shipped Stock ROM to use as a base. I chose Blackstone 1.56.401.0 as it is the last original ROM for my device.

There is, for instance, shipped 1.59.841.5. But as a Telstra Rom, it has some customizations inside, and it is my first Rom, I prefered the Generic 1.56.401.0 to reduce work.

Now you must choose between two main kitchens to work with:

JugglerLKR's Blasckstone Kitchen:

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

Ervius's Visual Kitchen:

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

These are the Base of your cooking, the "Oven". It contains all apps you need to make your Rom. I am using Ervius's kitchen, which is newer. The conceps of the two kitchen are different, so you have to adapt packages coming from one to another. You will find "old style" and "new style" on the Rom threads. "new style" is Ervius's.

** Everything I say will be considering the use of Ervius's Visual Kitchen. **

Once you have your Kitchen and your base Rom, it's time to Dump the shipped Rom. You have to extract "RUU_signed.nbh", using 7-Zip for instance. Now run Ervius's Kitchen, ignore the warnings, and click on the button "Dump nbh/nb/payload". Chose the "RUU_signed.nbh" file and wait until the Dump is finished.

Now you should have a dump directory, where you will find the directories:

EXT - The device apps.

OEM - Operator apps and customizations.

ROM - Device specific drivers and all other stuf.

SYS - All OS apps, drivers...

These are the 4 directories that form the entire ROM! Don't mind about the meaning of these directories for now.

For now, I advice to build the Rom again with no changes and test it. Run erviuskitchen.exe on the same directory of the 4 directories above. Chose BLACKSTONE on "DEVICE" and click on "Create ROM". Now wait and you will have your first built Rom on the folder "RELEASE_BLACKSTONE". Flash and test everything.

Although until now you didn't make any change to the Rom, if you manage to do all these steps, you will have learnt a lot, and be ready to make your ROM.
[Touch HD Windows Mobile ROM Development] kostas66:
Just starting with my first experiment... so after a lot of "patience" (as you say) I will come back with my experiences or, more probably, with my first questions !!

I also hope that this thread will not die, but it is also up to us !! We are here on xda to learn and share !!!

K
[Touch HD Windows Mobile ROM Development] mcurotto:
I will be reading this thread everyday, and I will answer every question I am capable of... But it would be very nice if the more experiment cookers also participate!

I also think this thread should be fixed, in the first place of the Blackstone Rom development.
[Touch HD Windows Mobile ROM Development] kostas66:
Here I am... sorry I do not have much time to "play" with roms (as everybody I have to work...), but I doing my best !

Cooked first stock dumped rom... it works, I am now studying how to add, modify, tweak...

Tried also to dump cooked rom, but had problems...

So I may ask a first noob question: how I understand if a rom is "locked" (ad what does this "exactly" mean) ??

Thanks !

K
[Touch HD Windows Mobile ROM Development] barbapappa_86:
what i understand a locked ROM has a protected core, sutch as sys and so on. theres no way to know if a ROM is protected. Just ask the chef, or find out when you try to dump it.
[Touch HD Windows Mobile ROM Development] mcurotto:
As already said, you wont be able to dump almost any cooked Rom... :-(

Get shipped Roms, I started with Blackstone 1.56.401.0 and Rhodium 1.19.721.3.

Cooking is indeed extremely time consuming. Thats why we have to thank the great chefs...

I would advice you to be pacient. I restarted at least 5 times, because I went too fast, and when that happen you end with a buggy useless Rom that you dont have an idea of what to do, only start over again. Change one thing at a time and test. You will probably take months to make the Rom as you like.
[Touch HD Windows Mobile ROM Development] mcurotto:
Step 2 - Changing OS

Now that you have managed to dump and re-build a stock Rom, it is time to chose the WM version you want.

First, you can find WM versions here:

WM 6.1.X

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

WM 6.5.X

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

I would advice for your first cooked Rom to start with WM 6.1, as it is much more simple to put into your Rom. If you really want to start with 6.5, please read the 6.5 thread above as there is some issues with the native kernel.

On the 6.5.1 tread above download:

21054 XIP/SYS CE OS 5.2.3026 Lang 0409 DPI 192 RESH 480 RESV 640

0409 USA English United States (Includes COMMON DPI, required for others)

Understanding SYS folder structure:

After downloading go back to your Rom directories. The SYS folder is where the OS is. It has the following structure:

SYS

21054 (OS build)

--DPI_192

----0409 (Devices with DPI 192 and Language 0409)

----COMMON (Devices with DPI 192)

--dpi_192_resh_480_resv_800

----0409 (Devices with DPI 192, Screen 480x800 and Language 0409)

---- COMMON (Devices with DPI 192 and Screen 480x800)

--SHARED

----0409 (Devices with Language 0409)

----COMMON (All devices)

Inside each of these folder you will find packages, for example:

Base_Lang_0409_DPI_192 (Package Base_Lang, for devices with DPI 192 and Language 0409).

Take a look and you will understand. You will find a lot of useless (too you) packages when you download the WM build, it is because there are packages for all kind of devices, with different DPI's, screen resolutions and languages. CAREFULLY remove all packages you don't need.

You can manually replace each folder on SYS. But I prefer to completely remove old SYS (don't worry, hit DEL with no fear) and re-build using the structure above.

ROM Folder:

There are a few things you must replace in the ROM folder. Inside the files of the new OS, you will find he folder "MSXIPKernel". Replace that folder in ROM\Shared\21054. Also replace the xip.bin file in ROM\Shared\21054 and ROM\BlackStone.

****************************************************

Remember, be patient as it takes a very long time on the first time!

****************************************************

DONE! You can rebuild your Rom and test, test and test....
[Touch HD Windows Mobile ROM Development] kostas66:
Many many many thanks ! I was just serching for that info !

Just to share "where I am":

- Dumped 1.59.707 wwe rom

- Cooked just as it is

- Flashed and it works !

- Studied a little the directory structure and how to take a cab and insert it in the rom

- Will now proceed with studying you "next steps" !!

Will come back soon...

Thanks again !

K
[Touch HD Windows Mobile ROM Development] barbapappa_86:
Heres a great tool for making packages of cab files. Just drag the cab to the tool and voila! :)
[Touch HD Windows Mobile ROM Development] kostas66:
Thank you !!!! :):):)

K

PS: Still did not have the time to try try try and test test test the step 2...
[Touch HD Windows Mobile ROM Development] chinhe:
Hi to all.. im not a pro cooker but im cooking wm6.5 for blackstone too, after reminiscing with my old hermes and kaiser, i decided to spend some time with wm 6.1 :)

i wanted to cook my own 6.1 but having problem with sys/xip porting, i know its not like 6.5 that u can easily port new builds (thanks to Da_G), btw this are the steps i did..

1.. DL 21055 sys/xip (thanks to Alexx)

2.. made one folder named it "SYS", put all 21055(WVGA) files + .VM and .ROM folder from blackstone 20769 dump

3.. used greloc with this values

Slot 0: 01F80000

Slot 1: 03D70000

Size of rom: 83000000

Unknown: 00000000

then click "Doit!"

greloc finished without problems

4.. reconstruct SYS and MSXIPKERNEL for EVK structure..

5.. cook without problems and flash..

6.. stucked at first splash..

i did cooking 6.1 for hermes too (thanks josh old-hermes friend :))
[Touch HD Windows Mobile ROM Development] kwbr:
Hi chinhe,

This could be caused by several things. What OEM do you use and did you change things like drivers etc.? Try a clean rom dump first and add the new xip and sys to your kitchen.

Some basic rules for porting the sys and xip:

- use .vm folder from your device (you did)

- Sometimes the WinCENLS_WWE folder is needed in sys (I didn't have to when using BuildOS and 21055)

- Go to your old SYS\Shell and copy shell32.exe and shellres.dll into your new SYS\Shell

- Removing transcriber may help

P.s. R'reloc has problems when using a large amount of modules. I use wmreloc for that. See attached wmreloc for wm6.1.
[Touch HD Windows Mobile ROM Development] chinhe:
thanks kwbr.. i used OEMDrivers from 20769 dump, i also tried 21055 SYS with the 1.59(HD) packages, but same problem..

-WinCENLS_WWE is in the OEMXIPkernel folder i think its included when i cook..

-Probably Shell32.exe and shellres.dll is the problem (i forgot this one :))

..is wmreloc does the same thing as greloc?

PS.. ffs, before i cook the option "real wm 6.5 aku" is enabled, maybe another reason?
[Touch HD Windows Mobile ROM Development] kwbr:
Yes it does
[Touch HD Windows Mobile ROM Development] chinhe:
could u explain how to use?
[Touch HD Windows Mobile ROM Development] kwbr:
This is how I use it in my kitchen

rem --------------------- Use wmreloc instead of greloc
ECHO WM6.1 Build

rem G'Reloc.exe -doit -dump
@del WMReloclog.txt
wmreloc -gtemp\dump -lWMReloclog.txt
[Touch HD Windows Mobile ROM Development] chinhe:
do i need to insert it on CreatROM.bat or?
[Touch HD Windows Mobile ROM Development] kwbr:
Not sure, I use my own kitchen for wm6.1. It should replace greloc in the batch file you use to create your rom.
[Touch HD Windows Mobile ROM Development] Raptordin:
KWBR, Whenever I attempt cooking Win 6.1 with Manila 2.1 I can't scroll so I assume it is a sensor problem, which sensor do you recommend using and what are the Dependencies of Manila Sense 2.1 so I can make sure to include them.

A copy of your 6.1 kitchen would help indeed since you stopped creating 6.1 Roms. :)
[Touch HD Windows Mobile ROM Development] miniterror:
hello fellow xda members

im trying to become a great chef just like you

i managed to make a rom and could load it on my hd

i also manged to change the kitchen from 21something to 23016

but now i need some helpo for the finetuning off the kitchen

its not that you have to build it but to tell me where i can find stuff in the kitchen

things like memory managment and stuff like that

how to put programs in folders

you know what i mean?

if one off the great cooks here would like to take me under his wings i would be verry happy

if you have the time to do so and willing to learn me the finetuning please add me on msn miniterror@hotmail.com

best regards

miniterror
[Touch HD Windows Mobile ROM Development] barbapappa_86:
Check this out:

http://xdaforums.com/showthread.php?t=564130
[Touch HD Windows Mobile ROM Development] miniterror:
thx barbapappa

think this is gonna be real helpfull:D
[Touch HD Windows Mobile ROM Development] kwbr:
OEM package Internet Explorer 6

I posted a working OEM repack of PIE6. You can find the link in post #4. Have fun using it, I still prefer the default PIE but you can cook it in your own rom and experiment.
[Touch HD Windows Mobile ROM Development] Xannytech:
Language

I would like to know how can i do to cook from a WWE a Rom in another language Italian in my case.

Thanx a lot in advance.
[Touch HD Windows Mobile ROM Development] kwbr:
Just download the Italian rom here and read the manuals.

That's why I added the link to the rom wiki in post #4 ;)

Have fun!
[Touch HD Windows Mobile ROM Development] Xannytech:
Sorry maybe i've read the manuals too fast :rolleyes:, but i would like to take the 1.19 wwe version and translate it in Italian, i will read again but i did not find any hint...
[Touch HD Windows Mobile ROM Development] e.v.o:
great thread! thank you :)
[Touch HD Windows Mobile ROM Development] NOBELOVE:
Where can I find the location for the background picture at the first run after flashing when the screen shows "preparing your device for first use ......"

Is it in a .dll file?

note: I'm not talking about the splash screen or the animation screen.

Edit: Nevermind I found it in "OEM\PACKAGE_BlackStone_HTCAnimation" in gif format
[Touch HD Windows Mobile ROM Development] boyanovv:
Question

So i got few questions after doing my first builds

I lost somehow the install of Google maps, although the package folders exist. Is there something special with this package?

I have noticed the cab is being listed sometimes in Config.txt file. Can someone enplane the basic idea how config.txt is being used. There is also a similar file Config_AP.txt is there a difference or is just a matter of organizing the stuf
[Touch HD Windows Mobile ROM Development] kwbr:
During the initial boot some things are installed and configured. Don't interrupt that process or you will miss some packages. The default order is:

1. config_operator.txt (htc_black.tsk, menu_operator)

2. config_pt.txt (AutoAttribute.exe \Windows\MASD_RemoveReadOnly.txt)

3. config_ap.txt (googlemaps and opera)

4. config_end.txt (autover and opera_skin)

5. config.txt (I added SDautorun here, a reset is given)
[Touch HD Windows Mobile ROM Development] l6cum:
hi

great post and gea guide, i have prepared a rom and ran it but the packages that i have added in dont run itsays 'the package cannot be run either because it is not signed or one of its components is missing' i think it is the former as i can install them manually.

is there a 'disable certifcate' check cab like their use to be on the earlier models of xda that i may not have run??

I cooked on the diamond but i didnt get the error mesage like i am getting now.

please advise.

many thanks
[Touch HD Windows Mobile ROM Development] NOBELOVE:
I need a package for resco explorer 2008 v7.05 and resco registry...please

The one i made for resco explorer seemed to be ok at first but cannot accept any add-ons:mad:
[Touch HD Windows Mobile ROM Development] johnpatcher:
What do you mean by that? How did you create the package? Package-Creater 2.7 works fine, normally.
[Touch HD Windows Mobile ROM Development] miniterror:
one other noob question:p

i have the kitchen base as 21887

can i make change all icons and stuff there and make it the way i want and then do a xip/sys port to 23016 so i can drag and drop my icons on start menu or will i loose all my configurations?

best regards

miniterror
[Touch HD Windows Mobile ROM Development] DarkRenegade:
Hello,

i am trying to cook a rom for blackstone,all seems to be ok, but i have a strange issue that cannot avoid. In some apps, like: tmail.exe contacts fexplore.exe touch screen "freezes" and i have, for example, to touch "new" to keep touched screen for some seconds before it reveals touch.

fexplore seems to works well, but when in windows folder, this issue appears and navigation is impossible without using "trick" said above.

i hope you understand, sorry for my english.

i have tried many sys/xip builds,with and whithout 6.5native kernel,with and without recmodding incriminated files.

please help me!
[Touch HD Windows Mobile ROM Development] sev7en:
What great masterclass! Congrats... It's really useful for my... first creation :P
[Touch HD Windows Mobile ROM Development] NOBELOVE:
Here you go check it out!! the explorer installs and runs great but the registry add-on won't have any short cuts in the Package-Creater 2.7.

so, after installation of the rom i see only the explorer and not the registry add-on in the program folder.Then i tried to install it manually but it won't work asking for missing wrights or so, but it installed fine after reinstalling the resco explorer cab from the device:confused:
[Touch HD Windows Mobile ROM Development] kwbr:
You have to extract and merge the registry keys of both packages to get it working. Besides that you have to create a shortcut and install it from initflashfiles.txt
[Touch HD Windows Mobile ROM Development] NOBELOVE:
As it shows in the package there is no short cut for the registry add-on so how can i create one and from where?

all i see is "mui, xml, dll, dsm, and rgu" files
[Touch HD Windows Mobile ROM Development] kwbr:
Here you go. See attachement for Resco shortcuts.
[Touch HD Windows Mobile ROM Development] NOBELOVE:
THANKS A LOT, I will flash sometime today and feed you back of the results...
[Touch HD Windows Mobile ROM Development] NOBELOVE:
NOPE! faild RGU file doesn't like to be tampered with

Error building default.hv and user.hv! (see into BuildOsX-log.txt)
[Touch HD Windows Mobile ROM Development] citrix80:
questions

here I have some questions:

how to include boot splash image in rom? I mean to include the picture in this post.

how to include splash screen picture like Davideuck did in his rom?

how to include applications in rom, or add applications to rom?

I saw some posts, the easiest way is to include OEM package files in OEM folder. I found some oem files, but dont know where to put it. in OEM folders? should I create a folder called 'Package', and put in there?
[Touch HD Windows Mobile ROM Development] norti:
Thank you!

Please correct the links with spaces on mediafire, because they get corrupted and don't download the files, only open a google search for them after pushing the download link on mf (if you delete the spaces in the url, it will be correct) :)
[Touch HD Windows Mobile ROM Development] kwbr:
Hi Norti, please be more specific. Which links don't work for you? When I take a look at my Mediafire archive I can see all the documents are downloaded by users.
[Touch HD Windows Mobile ROM Development] norti:
E.g.: http://www.mediafire.com/file/dxotiizwdl2/Simple package by kwbr.zip loads up the mediafire page, after pushing the download link, it takes me to http://www.google.com/search?q=pack...p://www.mediafire.com/file/dxotiizwdl2/Simple (Firefox 3)

But if I delete the spaces (%20), the download works :)
[Touch HD Windows Mobile ROM Development] kwbr:
Hi Norti, thanks for the tip. Renamed and uploaded.
[Touch HD Windows Mobile ROM Development] johnpatcher:
Actually you are not deleting them, you just encoding them ;).
[Touch HD Windows Mobile ROM Development] kwbr:
Retain date and time after rom flash

Hi there,

I am looking for the correct offset in nk.exe\S000 to hexedit in order to retain date and time after a rom flash. Are there any assembly wizards aboard?
[Touch HD Windows Mobile ROM Development] NOBELOVE:
Can someone confirm if changing these registry is the proper way to change and pre-configure tha zone date & time?

[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock]
"GMT_OFFSET"=dword:FFFFFF4C
"AppState"=hex:11
"TZIndex"=dword:000000D7
"HomeDST"=dword:00000000
"AppInfo"=hex:01,00,00,00,87,01,00,00,96,00,00,00,00,00,00,00,00,00,00,00,3A,01,00,\
00,69,00,00,00,00,00,00,00,00,00,00,00
"Home"=dword:00000187
"SoundAlarmAlways"=dword:00000001
"NetworkTimeNotifyUser"=dword:00000001
"NetworkTimeSync"=dword:00000001

[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:4C,FF,FF,FF,41,00,72,00,61,00,62,00,20,00,53,00,74,00,61,00,6E,00,64,\
00,61,00,72,00,64,00,20,00,54,00,69,00,6D,00,65,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,41,00,72,00,61,00,62,00,20,00,\
44,00,61,00,79,00,6C,00,69,00,67,00,68,00,74,00,20,00,54,00,69,00,6D,00,65,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,C4,FF,FF,FF
[Touch HD Windows Mobile ROM Development] kwbr:
I see some non-relevant code. This is what I use.

;*******************************************************************
; LOCALIZATION
;*******************************************************************

[HKEY_LOCAL_MACHINE\nls]
"DefaultACP"=dword:000004e4
"DefaultLCID"=dword:00000809
"DefaultOCP"=dword:00000352

[HKEY_LOCAL_MACHINE\nls\overrides]
"LCID"=dword:00000809

;-------------------------------------------------------------------
; GMT+1 default timezone
;-------------------------------------------------------------------
[HKEY_LOCAL_MACHINE\Software\Microsoft\Clock]
"GMT_OFFSET"=dword:FFFFFFC4
"Home"=dword:00000077
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:\
C4,FF,FF,FF,48,00,65,00,75,00,72,00,65,00,20,00,64,00,27,00,68,00,69,00,\
76,00,65,00,72,00,20,00,50,00,61,00,72,00,69,00,73,00,2C,00,4D,00,61,00,\
64,00,72,00,69,00,64,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0A,00,\
00,00,05,00,03,00,00,00,00,00,00,00,00,00,00,00,48,00,65,00,75,00,72,00,\
65,00,20,00,64,00,27,00,E9,00,74,00,E9,00,20,00,50,00,61,00,72,00,69,00,\
73,00,2C,00,4D,00,61,00,64,00,72,00,69,00,64,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,03,00,00,00,05,00,02,00,00,00,00,00,00,00,\
C4,FF,FF,FF
[Touch HD Windows Mobile ROM Development] NOBELOVE:
where should this reg code go in RGU or provxml file?
[Touch HD Windows Mobile ROM Development] kwbr:
In a rgu file. See my example of a simple OEM package.
[Touch HD Windows Mobile ROM Development] Ameet:
I'm sure you mean to ask about the "RTC" (R)eal (T)ime (C)lock trick Aman posted in the Elf forums. Dont know about HD but that doesnt work on Diamonds :( Maybe Aman's the right guy to experiment about it :D
[Touch HD Windows Mobile ROM Development] citrix80:
need help

i get error message and cannot contiune. :mad: can anybody help?

when choose option c in kitchen, cook rom, then b, then i select folder, and build OS, on right side of screen packages listed, when i click on go, about 20% after it start to run, I get error message says 'conversion from string d:\blackstonekitchen\ to type double is not valid.'

what is wrong here?
[Touch HD Windows Mobile ROM Development] kwbr:
Yeah, that is what I meant. I asked htctouchp because he did it for Elf a while ago. It is more than 15 years ago I did assembly for x86. I guess the knowledge is too rusty :)
[Touch HD Windows Mobile ROM Development] NOBELOVE:
Thanks I have exported my settings and everything worked fine after flash, but that didn't change the DATE. is there a diferent reg code for that?
[Touch HD Windows Mobile ROM Development] kwbr:
What date nobelove? You have to be more specific in your questions please.
[Touch HD Windows Mobile ROM Development] NOBELOVE:
The city and time zone has been pre configured perfectly after adding the code but the date remain unchanged! it must be a way to pre-confegure the date as well so it shows the date required in the first set up screen