yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
All right dude, here goes nothing.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
Well, I'll be damned... IT WORKED!!!

Now to start cooking a real ROM, not just one for testing purposes (but here's the NBH if you wanna take a look)!

THANKS GUYS! THIS IS FREAKIN' AWESOME! (And a lot easier than I thought it would be. Sure, rom koch made it easier, but the tools/commands aren't all that difficult once you read a few forum threads. Needless to say, I haven't had a lot of sleep the past couple nights.)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] LegolasTheElf:
Anyone know how to edit the file in ultraedit? I can see the HEX and edit that just fine in UE, but, I can't just edit the file like in Notepad in UE....
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
I used Cygnus FREE EDITION, as noted in the screenshots above.

http://www.softcircuits.com/cygnus/fe/
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
Hi, there... i cooked a rom in afternoon today @work ....

all worked fine... while cooking...

change some reg settings... changed the welcomehead.png and added a tsk file...

yes... after flashing (there where no problems) and task 8 the tytn boots but hangs on 2nd splashscreen... nothing any more....

ok back to bootloader...

and now it cames the strange, very very strange part....

i can't reflash any other os.nb file... because... mtty don't give me the usb output anymore... after a while the programm crashes... i had the error earlyer but can fix it when i used the mtty in 1.01 loader... i can't change anything... no copy no reneaming... after that the mtty crashes... ok no problem... but this time no mtty worked... also not the "old" version...

now i'm @home and just tryed to flash another os.nb (aku3.3 test) 1st result ends in mtty crash... (copyed the file to c:) 2nd try to use the file inside the extracted folder of 1.01mfg ... all worked... now i have back my aku3.3 rom...

i'm a bit afraid of cooking another... because when no mtty works... i can't do anything anylonger...

had anyone other these errors with mtty...

and also with an cooked rom???

i have used the 3.3 test rom... as i sayed above changed reg keys (tweaks ...) and added the wm6 welcomhead... (maybe there i have done an error... i have just draged the new one to the window and marked the old as deleted??? shouldn't i do that??)

hope anyone can reproduce that..

want to cook my own 3.3 ... with wm6 i'm not really satisfied... (no hsdpa icon, problems after instaling pocketbreeze and sbp pocket plus... tytn hangs on reboot and is so slow that i can't do anything...)

....

steve
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] wpbear:
You got further than me I only got to the second splash screen before mine crapped out. It came back to life with a full shipped RUU.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
Hi, there... i haven't changed something in the initflashfiles.dat ... but i had the sameproblem... after 2nd splashscreen no reaction anymore of the device....

steve
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
Keep working at it... It's a good feeling when your first ROM boots successfully. (Trust me, I know. My first was just a few hours ago so I'm still pretty excited. Now on to a more challenging build!)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
The solution to your problem is a couple pages pack in this very thread! ;)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
OH ****! sorry guys.. i didnt know that we had to remove the first two bytes...

the next release will do this automatically.. pof, did you knew that?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
some progress:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
im sure POF was/is aware of it.. but sometimes we all forget a few minor things.. i was also one that forgot about editing it with a hex editor... so thanks to kyphur for reminding me!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
No, I didn't... I normally edit it with ultra edit and save it as UTF-16 and MS-DOS CR+LF, that does the trick... no need to remove two bytes. Notepad is crap :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
i would like to note that pof is my hero and i am bowing down to him!! :D
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
As POF and some other posters said, If you use Hex Editor such Ultraedit etc. to edit initflashfiles.dat then you won't need to cut the first 4 characters (2 bytes of hex values making the 3B Hex values (which is the 5th character from the start of the original file edited using Notepad/normal/regular text editor) as the first character). Cut only if there're 4 characters ( 2 bytes) exist before 3B Hex value.

Example if you use Notepad.

1. Edit using Notepad/normal/regular text editor ( Not Hex Editor).

2. Save the file.

3. Open using Hex Editor.

4. Delete the first 4 characters or in other word is 2 bytes from the beginning of the file and this will make 3B as the first characterof the file hex value.

Just make sure that after saving the file, then check that the first hex value is 3B.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
I did that using EditPad Lite and it didn't work... Maybe it doesn't work as well as Ultra Edit, but it was free. ;)

(I should mention there are multiple choices for UTF-16 in EditPad... Can someone tell me more specifically which one I should use? "Little indian"? "Big indian"? I don't know the difference... Whatever the case may be, I had to go in using a Hex editor, as described above, and delete the first two bytes from the file. Anyone know why, even though I apparently used the correct encoding method in EditPad?)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
... strange is that didn't modyfied the initflash.dat ... maybe theres a problem while extracting it out of the raw files.... memory map 2 bytes befor file effectiv begins?=??
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
As far I understand, you just have to save it in the original encoding format of the file which is ANSI not any kind of unicode or UTF-8. So make sure if you use notepad then select save as...Encoding 'ANSI'.

When we use hex editor, the original format of the file is retained if we didn't set any encoding conversion to it.

I'll make a few test regarding to this notepad issues.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
Just finish the tests. Saving in notepad only is not a safe method.Sometimes it'll be truncated. I don't exactly know why. So the best way is do not edit the initflashdir.dat using the program edit button but edit it manually using hex editor such as Ultraedit etc., set the attribute back to 'read only' and then make the list of adding and removing files using the rom Koch's buttons.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
i am also getting a truncated problem but its with trying to edit the registry's.. but i havent had the initflashfile.dat get truncated..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
So, I think for now is edit all the respective files manually.

Dear Dutty, please integrate a freeware hex editor inside your program to ease us all.

Regards,

Cyphol
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
Has anyone had problems updating the registry? Each time I do, I get an unbootable Hermes (hangs at second boot screen - not OS splash screen) and I have to flash from SD card. Any ideas?

EDIT: It isn't registry editing that's causing this. I flashed another ROM, having not edited the registry, and I am restoring from SD flash as I type this. I don't know what this is, but I'm doing damn near the EXACT same thing as yesterday and nothing I've built today has worked. Is anyone else having general, indescribable problems with this tool?!?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
hi, look my posts.. have the same problem... only edited the reg files... no initflash.... phone hangs on 2nd splashscreen...

don't know why... but i haven't time to test...

also i have reflashed with mtty ... but had many troubles because the programm sucksup each time i start it with usb connection... don't know why...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] ratcom:
Well I'd cooked my first hermes rom, everything looked fine then for some reason I thought I'd flash it using nbhgen and the sspl rom flasher package, got a error at the start of the flash 0% then my phone died..... now she is totally dead :( Dont get me wrong Im not blaming this great kitchen set I really cannot see how it could of gone so wrong I guess it was just not my lucky day :( I just wish Id used mitty to flash now as I dont think it would of brick it.......... roll on next month when I can buy a replacement :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] kuekpeow:
Seems like many people are having problem with rom cooked with this tool, both registries and initflash: wpbear (#51), richy240 (#68), shogunmark (#69), futureshock (#80), ratcom (#99)... and maybe others who never post their bricked experience...

Are there any other success, and how to ensure it? Are those bricks recoverable at all?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
I have recovered about 5 times by flashing from my SD card trying different things with rom koch seeing what might be causing this - I still haven't figured it out. (I even ordered a new SD card last night so I could keep one in my wallet with a good NBH file on it JUST IN CASE I haven't got time to deal with it, like yesterday.)

I should mention that this was NOT happening within the first couple days this tool was released. I did have a few successful flashes before it all went to hell.

Oh well, I guess I'll go back to scripting my builds, which I am sure you all know is a labor-intensive process.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
when mine doesnt boot fully i can just flash a good OS and its back up and running... i also use MTTY for all of my flashing and havent produced any bad blocks yet from using this kitchen.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] ratcom:
I honestly think if Id flashed using mitty in the first place I could of recovered, I was trying to be a smart ass ;) and its cost me £200 I DO however think this tool is NOT to blame for my misfortune after cooking and flashing my wizard 100's of times (which I gave my son only last week) I was over confident thats all, THIS TOOL IS SOUND.......... oh well time to dust off the spare phone a motorola v3 :mad:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
Yeah, I was pricing Cingular 8525's yesterday before I tried flashing from SD... I kinda freaked out the first time my Hermes wouldn't boot!

If this tool is sound, and I have no reason to believe otherwise, does anyone know what's going on?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
well from what i have gathered from reading (and i could be wrong) but it seems that a person is more likely to produce bad blocks using a cooked rom and mtty as opposed to making an nbh and flashing with the update utility.

i wouldnt necessarily blame the tool either... and it is still a work in progress.. as a matter of fact since all of the kitchens are new, i wouldnt even suggest anyone that has to rely on their phone to use any of them until the bugs are worked out.. i am fortunate to have a 2nd phone for testing purpose's so i have no problems taking the plunge... but if it was my only phone then i would wait and watch this thread till it seems to be working near perfect before cooking anything up.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
You're right. This tool is sound.

I used it to dump a ROM, and immediately rebuilt it making no changes whatsoever. It flashed successfully with no problems at all - the phone booted into Windows and everything works as expected.

Hmm...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] shogunmark:
i can also dump a rom, and add/delete files then rebuild, flash and everything works fine, however if i attempt to touch the registry or initflashfiles then it wont boot properly. It might be something im doing cause even if i do it manually i yield the same results.. but i have tried all the normal tricks and nothing works.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
I had success the other day with the initflashfile.dat file... I changed the default Start Menu items, embedded Kevtris and Google Maps, and a couple other things. I have never had any success editing the registry. But then I flashed a ROM without editing the registry and got an unbootable device. It definitely has to do with these files, but I can't seem to figure out what changes specifically are causing this. (I've also verified that this isn't caused by custom boot images - not welcomehead.96.png, I'm talking about device boot images in NB format. I've made a few and applied them to this last test, and had no problems.

Are there any special 'rules' we should follow when editing this file? Let me make sure I've got this file's format understood:

- root:-Directory("Dir Name") creates a root-level directory named 'Dir Name'

- Directory("Dir One"):-Directory("Dir Two") creates a directory in 'Dir One' named 'Dir Two'

- Directory("\Dir Name"):-File("File.name","\Source Dir\Source.file") copies a file called 'Source.file' from 'Source Dir', renaming it 'File.name', into a directory called 'Dir Name'

Does that sound about right? Is there any order in which these need to be executed, aside from the obvious (directories need to be created before they can be used, etc.)?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
looks good, but i will tell pof to check on it right now.

don't touch the registry yet.. i said that :P it's fixed now with the next über-release of the kitchen :)

if you edit the initflashfiles you should look in a hexeditor and see if notepad added 2 bytes.. if that is the case then you should fix those..

the new version features a built-in editor where you wont have these problem, you will also be able to edit the registry with that one.

besides that there are many more things you can do with the next version, like extracting single files out of the rom, a full dump is not necessary anymore to edit registry or initflashfiles, filelist in original rom can be built without the need to dump the rom, and much more

besides that i have removed the dependencies on tools like nbhextract,nbhgen, java, ahlok java script, etc.. so this works out of the box without installing anything

and the most important feature is project handling.... stay tuned
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
I've successfully cooked some WM6 Vanilla based rom since I tried few days ago but all the registry and initflash editing was done manually. I only use the utility provided to make and dump IMGFS and replacing or adding files. But there's one more bug which we should try to solve, all the rom I cooked using this program including the rom from WM5, won't give me a retain in registry changes. Example, If I change the sound volume level to any level I want, then I reset the device or switched it off, when I started it again, all the settings would be reverted back to default.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] phsnake:
do you think this tool could also :confused: work for Orbit/artemis????
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
Hi, no i think it will not work because of a special set of apps thats needed for the hermes....

....

ok i h ave just tested to cook a rom manually...

converted the user.hv and default.hv to .reg with: rgucomp.exe -nologo -o default.hv > default.reg

edited it with ultraedit (saved as pof explains in wiki.. utf16 cr/lf...) after reconverting to hv with this command: rgucomp.exe -nologo -o default.reg > default.hv

i became no error... but the new .hv file has 1kb and in the file are the following sentence:

ERROR: C:\MacB\private\winceos\COREOS\filesys\heap\.\volume.c line 484: FSVOL: Aborting init on non-volume

DisplayHiveFileAsText: (RGUComp) !ERROR unable to mount hive file "default.reg"

what did i this time false???

steve
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
"rgucomp.exe -nologo -o default.reg > default.hv" = wrong

Correct way is:

1. after saving, rename the default.reg to boot.rgu

2. Execute command as:

:\>set _FLATRELEASEDIR=.

:\>rgucomp -b

3. The final file will be named as 'boot.hv'. So rename the file to 'default.hv'.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
exactly :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pe747:
Dutty and all the other professionals:

will there be a trinity rom koch someday?

Thanks to all your great work.

It is already exiting to read all the threads and realizing, what amazing things can be done with one's phone!:)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
....

just tryed this too... geht this error:

C:\romkoch>rgucomp.exe -b

Microsoft (R) RGUComp Version 1.0.000

Registry file processor and hive builder.

Copyright (C) 2004 Microsoft Corporation All Rights Reserved.

built: Nov 19 2004 15:17:13

BuildBootHive: (RGUComp) !ERROR unable to find required source file "boot.rgu"

ERROR: C:\MacB\private\winceos\COREOS\filesys\reg\reghive\.\hive.c line 877: FS:

Registry Exception Handler

wmain: (RGUComp) !ERROR failed building BOOT hive

C:\romkoch>

when renaming default.reg or user.reg to boot.rgu error looks like this:

C:\romkoch\test>rgucomp.exe -b

Microsoft (R) RGUComp Version 1.0.000

Registry file processor and hive builder.

Copyright (C) 2004 Microsoft Corporation All Rights Reserved.

built: Nov 19 2004 15:17:13

BuildBootHive: (RGUComp) !ERROR unable to mount hive file ".\boot.hv"

wmain: (RGUComp) !ERROR failed building BOOT hive

C:\romkoch\test>
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
Ok, it means that your file is not in correct format.

Now,

1. You open 'default.reg' in notepad.

2. Make sure everything inside is good.

3. Leave one line free at the bottom end.

4. 'Save as...' ---> Make sure

---->4.1 You click 'Save as type ...All Files

---->4.2 You click encoding ...Unicode

----> Save

Then follow again the instruction in my previous post. set _Flatrelease........

** If not succeed then upload the 'default.reg' file here for me to check.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] the-equinoxe:
^^ exactly

And please turn "word-wrap" off in notepad !!!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
Yeah! That one also. Very Important. He...he...he...:D
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
did not work...

same error...

have edited the files with ultraedit... (as pof explains in wiki utf-16 cr/lf) -> also just tryed now the notepad (without wordwrap) saving process...

how did rgucomp now what file it must convert back??? is there no other option given??

or is the way that i name eg. the default.reg to boot.rgu to convert to boot.hv and then rename to default.hv correct???

default.reg attached...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
ok maybe i had the error now... don't know if it is the error before to....

in line to set the environment variable i had a " " after the "." ....

but in the error it doesn't shows that...

man...

ps: the regfile i postet before is for aku3.3 and all cool things are enabled/disabled (powersaving, no install security, hsdpa, and so on..)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
Here's your default.hv made using the method I told you before.

Happy cooking.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bhupalraut:
Please Post Another Link For Download Rom Koch

I am not able to download the rom koch so please any another alternative LINK...

Awaitng reply

Bhupal R Raut
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
ok thx so far... i havemanage to get the converting to hv working... but now i have the next problems...

i have edited the files within the dump folder i have created with viewimfgs.exe....

pof writes in wiki that i can rebuild the raw.bin file with make command... -> makeimgfs.exe imgfs_raw_data.bin

but this command definitly doesn't work... maybe it can be done with the build command but if i run the command without the memory dump txt file in same folder as the buildexe the cmd line works a few seconds and then it ends with an debuger error... when the dump.txt file is in folder in cmdline appears many lines... after that end (seems no error is happend) nothing other happens... (in doc. for the apps there stands that the build command should produce the raw bin file... .)

what did i this times wrong???

steve
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Err... someone edited the wiki and added this wrong info, I've just corrected it. Files from "dump" directory have to be rebuild into imgfs_raw_data.bin with buildimgfs.exe, and OS.nb has to be reconstructed with aChef.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
The method you mentioned is not fully tested. But you can use these to proudce want you want.

1. Edit the files

2. use delfile.exe to delete old file from .bin file

3. use addfile.exe to add the newly created/edited to .bin file

4. use aWaiter/achef to rebuild .bin to .nb file

**Remember:

When you edit a file in dump directory, make sure you delete the old file from the .bin and add the edited file from the dump dir to .bin file again including all the registry files you've edited (Delete old registry files from .bin first).
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
Whatt??????? Hello members. Please know what you're doing before putting something in the WIKI. A bad example has happened to Futureshock for having a bad tutorial.

TQ POF for saving us all.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Yes, but sometimes I prefere a wrong edit than no edit at all... and by looking at the wiki page history I am sure the person editing was aiming to help and provide useful info :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] cyphol:
OK, if the moderator say so but for me Quality is better than Quantity. If the procedure error is major, it may brick other's hardware.

Just my opinion.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] futureshock:
i thought this... have just considerate to edit the wiki to correct form ... but i was not sure if it was ok...

but it wont work... this way...

the main problem because i can't/won't use this is that i added/deleted many many files... and i get stuck if i have to write for each file a line...

see screene what happens when i use the buildimgfs.exe ....

the tryes before are from the false wiki ...

at top of cmd you can see what happens when the dumped txt file is in same directory... -> but no bin file was genereated...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] amet:
Hi,

I am finaly downloading the file from rapidshare.

Is it ok to host it on my web site, since many people have trouble downloading from rapidshare?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] richy240:
When's the nest release?!? I'm freaking out!

Just kidding; take your time. I am sure the wait will be worth it!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
the next release is insane...

it basically ruins the whole scene :P