PDA

View Full Version : how can I cook a ROM by myself?


kartam
3rd July 2007, 11:00 PM
You never told anybody how to do it :( and then you complain of constant requests

I don't want to cook Wm6 I just want to change some files in my current WM5 Rom!

Could you please tell me how can I do it?

karhoe
4th July 2007, 07:36 AM
It does not need to be told how to do it, but told how to search ! A lot of people here know how to do it, just GOOGLE it !

kartam
4th July 2007, 02:23 PM
sorry, I've already searched... Maybe I'm searching badly!
Could you please help me?

karhoe
4th July 2007, 04:28 PM
Basically you need to extract the ROM installer, you will find an nbf file in it, then get an NBF file converter, to convert it into some sort of editable format, then you start cooking the ROM, placing whatever you want, and in the end, convert it back into NBF

anandoc
4th July 2007, 05:15 PM
Hello,

You might find something useful here:

http://www.modaco.com/index.php?showtopic=255064

It would be more helpful if people genuinely try to help others instead of directing them to Google.

A

duke_stix
13th July 2007, 02:27 PM
hey

if you can wait a day or two, i will write up a nice simple guide for everyone and have it stickied

i will also provide links to the tools required. it really isnt as difficult as some people thing! it just LOOKS difficult!

and we are a community here, so lets just help rather than-use the fricking search!lol. we were all n00bs once!

kartam
13th July 2007, 03:43 PM
hey

if you can wait a day or two, i will write up a nice simple guide for everyone and have it stickied

i will also provide links to the tools required. it really isnt as difficult as some people thing! it just LOOKS difficult!

and we are a community here, so lets just help rather than-use the fricking search!lol. we were all n00bs once!

if all were like you ... :)
I know it isn't but in so much amount of infos it's not easy to find ones that apply to your device or even thing you wanna do!

arpy
26th July 2007, 01:37 AM
Yea, Please..my probs are the reconverting my data into a .nb->nbf file...after flashing My phone hangs in First Bootscreen...please help!Only Reflashing helps...i really want to cook a rom by myself.
Ive used THIS (http://www.molski.biz/romcooking.html) kitchen...but it is for Wizard-devices only....but i think,it can be used for Tornado,too.

faria
26th July 2007, 01:53 AM
as far as we tried we could not make a proper dump of the wm5 tornado...
but i did manage to build a rom kitchen with wm6 for the tornado...this was a whileago and the base rom is the same as the current available...if ther is enougth request i may be inclined to update the RK and release it.

to get you started here is some pointers.... you can use the same tools from the wizard, imgfs tools.

animelover
26th July 2007, 09:31 PM
When I use nb2nbf_wizard.exe, is this created nk.nbf flashable for my Tornado (german XDA Phone aka HTC Douton)?

arpy
26th July 2007, 11:42 PM
There is an nb2nbf_Tornado File out there,too, but my Phone stuck in first BootScreen.If i use the Wizard-Tools here (http://www.molski.biz/romcooking.html) and use the nb2nbf_Tornado,(by retyping the Start Adress from 8004000(for Wizard) to 8204000 (for Tornado)) it works well fine, Flashing works well,too,but stuck in first Screen every time.Ive only delete the Solitaire-Folder,but it dont work for me..maybe you have more luck!Or...faria may Post a RomKitchen exclusive for our lovely Tornado..

animelover
27th July 2007, 09:32 AM
Have you removed the first two bytes of the initflashes.dat? When not, it can't be booting correctly! That was my mistake when I started to cook my own ROM's for my HTC Prophet (XDA Neo)! ;)

arpy
27th July 2007, 06:00 PM
really?I may think,it is only needed after a Registryedit....thank you.!

edit:did not work...

DSF
29th July 2007, 12:48 AM
There is an nb2nbf_Tornado File out there,too, but my Phone stuck in first BootScreen.If i use the Wizard-Tools here (http://www.molski.biz/romcooking.html) and use the nb2nbf_Tornado,(by retyping the Start Adress from 8004000(for Wizard) to 8204000 (for Tornado)) it works well fine, Flashing works well,too,but stuck in first Screen every time.Ive only delete the Solitaire-Folder,but it dont work for me..maybe you have more luck!Or...faria may Post a RomKitchen exclusive for our lovely Tornado..
i have the same problem like you.
I've made a nk.nbf from the *.nb files with nb2nbf_tornado.exe.

I've also extracted *.nb (OS, IPL, SPL, etc) from nk.nbf from windows mobile 6 alpha and then 'translated' those nb files with nb2nbf_tornado.exe. Same result: succesfull flash, stuck in first screen every time..
so not the "initflashes.dat" file is guilty..

arpy
29th July 2007, 12:55 AM
...and nobody out there may help us?:(

DSF
29th July 2007, 05:30 PM
arpy, it seems that if I include only OS without IPL & SPL in nb2nbf, all are OK..
But still with my modified OS does not get over the first splash screen.. maybe i've done smth wrong. In dump folder, I've added some files (some overwritten), i've removed some files, modified initflashfiles.dat (last line blank, + removed the two first bytes with winex), modified the hv files (saved in unicode standard, first line REGEDIT4, last line blank.. complied: no errors). replaced carrier_splash and shutdown
that's all what I've modified ...

edit:
arpy, try to translate only the OS module with nb2nbf_tornado. and tell me the result. also, tell me what changes you've made

edit2: found this: http://forum.xda-developers.com/showthread.php?t=298327 . improved tools

edit3: i've dumped my modified OS module with tadzio's ImgfsTools and discovered that initflashfiles.dat had the two bytes that i've removed with win hex.. what the?!
i've removed again, and run the whole build rom process again , but this time with tadzio's ImgfsTools.
Same result.. (stuck in first screen)
Maybe i've modified something wrong.

edit4: i've repeated the whole process and OS module flash and work ok ;). I haven't tried yet with all modules, only OS. I think I've made some mistakes when trying to replace drivers.

arpy
30th July 2007, 11:15 PM
@DSF
Can you post a Step-By-Step Solution?I want to figure out my prob...which tools do you use?And how?May you Post your ROM?

DSF
30th July 2007, 11:35 PM
well, i will post summary. i hope to release a "tornado romcook kitchen" and more detailed steps these days.

here is my OS module:
http://rapidshare.com/files/45915194/RUU.rar.html
right now i'm trying to figure out how to make the sd driver from iphone/other roms to work on my custom rom. every time i try other sd driver, i cannot view the card.

i'm using the tadzio's ImgfsTools (see link in my previous post).
steps:
- download typho5.exe, ImgfsTools, nb2nbf_tornado (you can get them by searching via gogole)
- copy all those files in the same folder, eg: ROMDEV
- copy nk.nbf in ROMDEV

Commands:
1) typho5.exe -x nk.nbf
2) imgfsfromnb.exe 82040000-OS.nb imgfs_raw_data.bin
3) imgfstodump.exe imgfs_raw_data.bin

Now the OS files are dumped in dump folder. Do the changes (delete, copy, modify, etc). When editing registry and initflashfiles.dat file, perform the important steps describeb at http://www.molski.biz/romcooking.html (turn off word wrap and use UNICODE in notepad, etc). If you're dune with those things do next:

4) imgfsfromdump imgfs_raw_data.bin imgfs_new.bin
5) imgfstonb imgfs_new.bin 82040000-OS.nb 82040000-OS_final.nb

if no error occured in the whole process, run 6) nb2nb_tornado.

There, chose the nb files, OS will be 82040000-OS_final.nb and not 82040000-OS.nb. Don't forget to use the correct image name. (eg: for 82040000-OS_final.nb chose OS)
The language, oem, operator version, cid can be left blank.

When you're done, press translate.
Copy the generated nk.nbf file in the rom update folder (RUU), execute ROMUpdateUtility.exe and follow the normal flash steps.. :)
That's all.

Thanks to all those ppl that made this possible:D

PS: if you flash only the OS module (without IPL & SPL), even if the update proces crashes, you will not 'brick' your phone ;). Mine happen to crash on 2%.. i transpired instantly

challhsu
31st July 2007, 12:13 PM
You never told anybody how to do it :( and then you complain of constant requests

I don't want to cook Wm6 I just want to change some files in my current WM5 Rom!

Could you please tell me how can I do it?

Actually, I have some files about how to cook a rom, but they all Chinese, and may be useless for you.

ThxGiving
31st July 2007, 02:22 PM
DSF: the way you describe works with the tornado. thx. ive testest

an usefull app to edit initflashfiles.dat and the registry files is "notepad2".

DSF
31st July 2007, 09:11 PM
np ;)
well.. i use notepad, it does do the job good (if word wrap is disabled) :D

DSF
1st August 2007, 02:13 AM
@DSF;
May you provide a Tornado Rom Kitchen? For now,my phone crash "after" the first Bootscren, but in the second Image Screen it freeze again...one step more,sure,but not enought!!
I'm too busy right now to arrange all the stuff and to write the tutorial :(.
But I think that the problem is somewhere on hv files (they compile without ERRORS)? Don't forget the first line with REGEDIT4, last line empty, unicode format, etc
Or it may be the initflashes.dat. This must be also saved in unicode format, and after editing you must remove the first 2 bytes with winhex. As describeb in the link that was allready posted..

BTW, now the ROM flash ok if i include all the modules (os, ipl etc). But now I am facing another strange problem.. I've deleted lots of files (~10MB) and the ROM unused space is not allocated to Storage memory :mad: :mad:

arpy
1st August 2007, 03:06 AM
you must remove the first 2 bytes ...

OK...erase the two bytes or fill it up with 4 Zeros?What about this "...increase Filesize" Message?

One time more,and ill throw this weird Phone...and catch it, try it again, again, again...till it smokes....

......F%*#ck my brain, kind of pain...i think, i ll need an Aspirin...or two?:mad:

thanks for your patience...

DSF
1st August 2007, 03:08 AM
ERASE

don't panic, be calm.. :D.. and throw that phone to me :P (jk)

karhoe
1st August 2007, 09:47 AM
Do we need to perform TeraTermPro to flash custom ROM?

Also, if we set the proper CID, do we need to Super CID?

tejasphatak
1st August 2007, 11:09 AM
I'm too busy right now to arrange all the stuff and to write the tutorial :(.
But I think that the problem is somewhere on hv files (they compile without ERRORS)? Don't forget the first line with REGEDIT4, last line empty, unicode format, etc
Or it may be the initflashes.dat. This must be also saved in unicode format, and after editing you must remove the first 2 bytes with winhex. As describeb in the link that was allready posted..

BTW, now the ROM flash ok if i include all the modules (os, ipl etc). But now I am facing another strange problem.. I've deleted lots of files (~10MB) and the ROM unused space is not allocated to Storage memory :mad: :mad:

I dont remember but i saw somewhere in the forum that you can decide how much to allocate to storage memory... have to do hex editing... will search for this and get back

DSF
1st August 2007, 01:32 PM
@tejasphatak, thanks.. i'll wait.. :D

Do we need to perform TeraTermPro to flash custom ROM?

Also, if we set the proper CID, do we need to Super CID?
1. no, you copy nk.nbf in the ROM UPDATE UTILITY (RUU) and install as a normal ROM..

2. no you don't

tejasphatak
1st August 2007, 02:32 PM
@tejasphatak, thanks.. i'll wait.. :D


I think it might be this.. But this one just increases the RAM http://forum.xda-developers.com/showthread.php?p=1152849#post1152849

which we dont want... 25 mb is more than enough!!!

a day or two ago while i was browsing , i found some where we can set the amount of ram amd rom allocated. What happen's is that Even if you delete files from the DUMP area while cooking that space is converted as RAM and not a rom. as you can see that only 15mb is avail for storage space(rounded off! .... even i cooked one rom same prob. even phil's and challhsu rom is stuck at same storage space)

let me search again for that... Lotsa hacking in that page [:P]

DSF
1st August 2007, 02:43 PM
hmm, more detailed stats:

dump folder = 80MB
OS.nb module = 28,5MB
imgfs_raw_data.bin = 24MB

On device (after flash):
\Windows = 51,64MB
Avaiable Storage: ~17MB
Total Storage: 19.83MB
Avaiable Memory(RAM): 23,83 (with xbar, right menu, keylock in background)
Total Memory(RAM): 44,67MB

So the 'wasted space' is not allocated to RAM..

WM6 alpha2 stats:
dump folder: 91MB
OS.nb module: 35MB
imgfs_raw_data.bin: 30,2MB

And the storage memory i think is 21MB (more than my build!) and free space at ~ 17MB..

EDIT: even in my previous build I have more space on Storage.. about 2 more MB.. it has office,windows live removed, i've added orange uk aku 2.0 joystick driver and otehr minor changes. Very strange..
http://rapidshare.com/files/45915194/RUU.rar.html

karhoe
1st August 2007, 04:06 PM
Then, do we need to SuperCID to format BINFS ?

And, when I did what you said, I manage to flash the ROM into my phone, but the phone just reboots with WM5

DSF
1st August 2007, 05:22 PM
I was thinking..
Tornado has 2 flash-memories: 64MB ROM, 64MB "RAM"

I guess that
Windows files, maybe also the bootloader (~256kb), gsm all are in the ROM
AND
the "RAM" is divided into (internal)Storage & (programs)Memory..
ROM and RAM space are not merged .. that's why when we delete files from ROM, the unused space is not usable for storage...

And if we write more than 64MB (the "ROM" flash get full), the rest of files are copied into "RAM" flash, that's why the avaible storage is minimized..

but i'm still wondering how i got 19MB free and with this build i get only ~17MB (i've did a format BINFS before)..
.. maybe someone with more experience can clarify us

tejasphatak
1st August 2007, 09:26 PM
I was thinking..
Tornado has 2 flash-memories: 64MB ROM, 64MB "RAM"

I guess that
Windows files, maybe also the bootloader (~256kb), gsm all are in the ROM
AND
the "RAM" is divided into (internal)Storage & (programs)Memory..
ROM and RAM space are not merged .. that's why when we delete files from ROM, the unused space is not usable for storage...

And if we write more than 64MB (the "ROM" flash get full), the rest of files are copied into "RAM" flash, that's why the avaible storage is minimized..

but i'm still wondering how i got 19MB free and with this build i get only ~17MB (i've did a format BINFS before)..
.. maybe someone with more experience can clarify us
hmmmm. yup... anybody here to help us??

arpy
2nd August 2007, 02:40 AM
ERASE

don't panic, be calm.. :D.. and throw that phone to me :P (jk)

Hehe, but catch it carefully, i want it back.I have my kitchen in a Virtual PC, and have to shut down my Virusscan, it isnt very friendly with my Virtual PC.If i took the cooked file and scan it by chance, it contains a trojan.Maybe my Virtual or anything inside is corrupted,of course my Systemscan was successful.

But for now, i am frustrated about this endless try and error Sessions, and use your Rom furthermore.

rafi10
17th October 2007, 03:05 PM
Does any one know how to unlock the htc 6800s internal speaker? Please help
is it even possible?

Thanks