Related
Hello everybody!
Even if this is my first post on this forum, I use to visit this useful place since years, I tried many of those great WM6 ROMs made by our ROM cookers (thanks to all), then I tried to cook my own ROMs using tools recommanded in the Wiki.
But those kitchen tools weren't conveignent for my use, it was a lot of work and patience for making ROMs, we need to use many different programs and scripts, and I thought that the cooking process could be really simplified using an unified graphical interface like dutty's tool. I was patiently waiting for his Hermes Rom Koch V2, but finally I started to develop my own kitchen tool!
Here are some features of this program:
- ROM file manager (to add/delete/extract files or to create shortcuts)
- ROM layout editor (to edit init flash files)
- Registry editor (to modify/import/export default & user registry)
- CAB install files integration
- ROM creation from original OS image or dump directory
I posted some screenshots for better explanations.
This program simply use aWaiter and ImgFS tools for ROM creation/extraction.
For now I still have a lot of work on it, but I would like some advises from experienced developers on this forum, because even if my program works, I would like to know if the cooking process is porper and safe, and how I could improve it (for example using internal functions for ROM creation/extraction instead of external programs, implementing NBH tools,...).
If some of our XDA-developers are interested, I would really like to make this project an Open Source "all-in-one" ROM cooking program, gathering all the others kitchen tools in an unified graphical interface offering the easiest way to cook nice ROMs for our Hermes and certainly for other devices.
I know that I didn't give many details about my program but don't hesitate to ask me about it. I would also have few questions for developers.
Developers and ROM cookers, I'm waiting for your feedback!
Thanks.
This looks very user friendly, I will be watching closely. Good work.
What language is it in? (programming language that is)
Midget_1990 said:
What language is it in? (programming language that is)
Click to expand...
Click to collapse
I developed this program in C# (using .NET framework 2.0).
Thx for your work! It would be better if the tool support packages.
http://forum.xda-developers.com/showthread.php?t=296861
Where to download??
Thanks for the link. I already thought about working with packages because it seems to be a better way to make "clean" ROMs, but I couldn't find enough information about how to extract/build packages in ROM.
I tried bepe's package tool on my own cooked ROM and I noticed that removed files were marked as missing in packages, and all the files I added weren't moved from dump directory. There is nothing surprising, but I wondered if adding/deleting manually files from ROM, causing "corrupted packages", can have any effect on final ROM. If not then why packaging information (like .dsm and .rgu files) are still present in ROM after all packages were merged? What exactly contains .dsm files, and how to create them for adding new packages?
Could someone tell me more about building packages, or tell me where I could find all the information I need.
Thanks
I'm still working in this project, so I didn't plan any release yet.
Good idea and nice project.
Go on dude !
Good work.
Great work so far - I fullly support this project.
Lookign forward to the release.
schaps said:
Could someone tell me more about building packages, or tell me where I could find all the information I need.
Click to expand...
Click to collapse
Great project - and I agree, it definitely should support packages. If you've had a look at bepe's kitchen, you already know how much easier it is to understand the purpose of all the files in a ROM if they are organized in packages.
.rgu files are Registry "source code". They are not part of the package mechanism. And yes, when cooking a ROM you can leave them out, as they are not needed at run time. Saves a bit of space.
The .dsm files, otoh, are needed at run time.
When I cooked my ROM, I did find some information (written by bepe) here in the forum about how to make your own packages. Can't remember where that was, but I found it on my hard disk, so I simply quote it here again:
How-To build ur own OEM Package:
An OEM Package is just a simple folder containing files and registry settings for the ROM
First of all you'll need a GUID number for your Package.
Go to http://www.famkruithof.net/uuid/uuidgen to get one.
In my case:
283b9db7-cb03-4c1b-820e-ca49b2c3b5db
Necessary steps:
1. Create a new folder:
Dev/OEM/[Your package name]/
2. Create a empty text file:
Dev/OEM/[Your package name]/283b9db7-cb03-4c1b-820e-ca49b2c3b5db.dsm
(CreateOS.exe will finish this file for you)
If needed:
3. Create an UNICODE text file:
Dev/OEM/[Your package name]/283b9db7-cb03-4c1b-820e-ca49b2c3b5db.rgu
This file could be used to add registry entries to the ROM
First line is:
REGEDIT4
...
and there MUST be a empty line at the end!!
4. Create an UNICODE text file:
Dev/OEM/[Your package name]/initflashfiles.txt
This file could be used to create folders or copy files, shortcut on the ROM.
For Example/ Ilustration: Open or read Dev/LOC/initflashfiles.dat using a text editor or any premake initflashfiles.txt at one of the OEM folder.
and there MUST be a empty line at the end of iniflashfiles.txt also!!
Copy all files you need to Dev/OEM/[Your package name]/
Click to expand...
Click to collapse
Hope that helps. If I remember correctly, bepe told me that the OEM folder is treated a bit differently from the SYS folder, so it might be you can't create packages there. But then, you probably also shouldn't.
Oh, and about the initflashfiles.dat: you are aware that the initflashfiles.dat just copies files and does not move them? Using this feature extensively uses up ROM space very quickly, so it should be done for small files (like the start menu shortcut files) only.
Cheers
tadzio
Thanks a lot for your help tadzio!
I also read the different steps about how to add a new OEM package, I found information on this Wiki if someone is interested : http://wiki.ppcgeeks.com/index.php?title=Kitchen.
I think I know enough about it but what I would know is how to extract packages then to merge them for creating a ROM image, like do bepe's tools?
I confirm I also heard that OEM folder processing is different from SYS folder.
Concerning the initflashfiles.dat I guessed that files were copied from ROM to storage memory, good to have a confirmation. So it means that if we want to include a new program in ROM, we should better to let it in Windows folder than to put it in a Program Files folder, right? I have another question about initflashfiles.dat, I saw that it sometimes uses variables for directories instead of strings (for example Directory(LOC_XXX), Directory(0409_XXX),...), where could I find those variable declarations?
schaps for president
schaps said:
Thanks for the link. I already thought about working with packages because it seems to be a better way to make "clean" ROMs, but I couldn't find enough information about how to extract/build packages in ROM.
I tried bepe's package tool on my own cooked ROM and I noticed that removed files were marked as missing in packages, and all the files I added weren't moved from dump directory. There is nothing surprising, but I wondered if adding/deleting manually files from ROM, causing "corrupted packages", can have any effect on final ROM. If not then why packaging information (like .dsm and .rgu files) are still present in ROM after all packages were merged? What exactly contains .dsm files, and how to create them for adding new packages?
Could someone tell me more about building packages, or tell me where I could find all the information I need.
Thanks
Click to expand...
Click to collapse
Hi Schaps,
you can have a look in this link:
http://forum.xda-developers.com/showthread.php?t=312985
it's a tool to re-build DSM file, which is better than just creat an empty .dsm file when making new package.
hope this help. It will be cool if your new tool support package.
hi
before installing Tom rom I have decided to dump my original rom in case I needed to put it back.
anyway I have been able to dump the 4 Raw files. now I see that in the Kaiser section there is a guide on how to reconstruct a rom to make it flashable and I wonder if I can do the same with my Niki.
any expert could pls confirm this?
thanks in advance for your help.
cheers
edit: I ve just noticed that there are some other threads about this subject...anyway if someone can confirm the right procedure would be great. thanks
Yeah, also wondered about that Kaiser rebuilding tutorial.
Talked to a few people over PM who have the same problem.
But even in the Threads nobody who knows more about flashing/ROMs seem to be willed to help out with a fre informations. :-/
Still confused about the needed baserom in this thread.
-Is this available for Niki? (Where)
-Why do i need it / why can't i rebuild a rom ONLY with my phone and need something like a bsserom?
-if i use baserom from a english device, what will happen if I use with my german RAW files?
Thyraz said:
Yeah, also wondered about that Kaiser rebuilding tutorial.
Talked to a few people over PM who have the same problem.
But even in the Threads nobody who knows more about flashing/ROMs seem to be willed to help out with a fre informations. :-/
Still confused about the needed baserom in this thread.
-Is this available for Niki? (Where)
-Why do i need it / why can't i rebuild a rom ONLY with my phone and need something like a bsserom?
-if i use baserom from a english device, what will happen if I use with my german RAW files?
Click to expand...
Click to collapse
well..nice qustions..to which obviously I cant reply..hope someone will be so kind to help us out.
Thyraz said:
Still confused about the needed baserom in this thread.
-Is this available for Niki? (Where)
-Why do i need it / why can't i rebuild a rom ONLY with my phone and need something like a bsserom?
-if i use baserom from a english device, what will happen if I use with my german RAW files?
Click to expand...
Click to collapse
a baserom is nothing more then a normal rom, just put a rom you like, together with the dumped filen in the kitchen folder. maybe ruu needs some information from the rom file itself, which are not present on the device.
what you find on your device is just that what you dumped. (but after hardreset)
.. i know that this not matters for you anymore. but eroG needs to know.
therealholg said:
a baserom is nothing more then a normal rom, just put a rom you like, together with the dumped filen in the kitchen folder. maybe ruu needs some information from the rom file itself, which are not present on the device.
what you find on your device is just that what you dumped. (but after hardreset)
.. i know that this not matters for you anymore. but eroG needs to know.
Click to expand...
Click to collapse
well yes I defenitely needed to know these things...
now, if it is not of too much trouble for you, where do I find a baserom and is there a guide on how to do it...just to avoid stupid mistakes while doing it?
thanks a lot
So, from baserom there are not much information used. (Perhaps Header information for Rom file, or something like that)
My new ROM is (more or less) the same result as on my device?
And Baserom isn't a own file format, i can use the wwe-rom postet here in the forum?
thx for help
Thyraz said:
And Baserom isn't a own file format, i can use the wwe-rom postet here in the forum?
Click to expand...
Click to collapse
Yes that should work fine.
request guide on how to get dumped rom back to device
i've read alot about how to dump rom from device and how to get dumped rom back to device.
the more i read i got confident how to dump rom .... did it .. and now have my 4 raw files.
on the other hand the more i read about how to get dumped rom back to device ... more and more i got unsure how to do it.
so please all senior posters and specialists - can you please post a cookbook on how to get it back to the device ?
thanks ! alot and keep up the good work here !
Sackbauer, I totally agree with him.
I have 4 Raw files for a Norwegian ROM, but how do can i "transform" them into a acctually "flash" file?
Please someone with the knowledge, write a "easy to understand/ step by step" guide to the ones that don't have a clue about this..
Ole
im getting kinda confused with this also, dumping the rom is no big deal, but putting it back together and flasing my phone with it, thats the big how to...
I has contact with Tom.
And he busy with vietnamese new year now.
He said will back after 1,2 day and answer all questions..
Don't worry
... good to hear that tom will take care after his new year ;-)
also keep my fingers crossed that someone is able to check radio rom and possibly enable gps and wifi ...
let me try first:
- download this kitchen
- Copy your part01.raw and part02.raw into the BaseRom Folder of this kitchen
- Copy a Nike RUU_signed.nbh into the BaseRom Folder (e.g. tom_codons rom just open the. exe with winrar and extract the file)
- Open !Begin.cmd, press 2 and do everything, what is prompted
- Open !Cook.cmd and do what is prompted
- when HTC Rom Tool is opened press Rom_Builder and ... right from System. Then Choose os_new.nb and press built
i wrote this without testing again. so if i missed something tell me, please and i'll try to help.
sounds good !
will try it later this evening and will let you know ...
thanks so far
omg .... it appears that i just "cooked" my first rom out of my dumped files from my niki .
thanks therealholg for your guide !! thats what i was looking for.
the only thing which makes me a bit nervous about reflashing my just cooked rom onto my device is that during cooking it sometimes says "file not found".
but after ignoring these messages i have a nbh file which obvioulsy was not in the folder before !!! ;-) yeah
so, now i know how to revert the process but i am to anxious to try it as this is my only niki.
lets see and wait what others say about the step by step guide of therealholg ...
in anyway - you made my day therealholg
cheers
wow... thanks for this...
tryed it out and works...
the only thing is that it still says Niki Project on the boot screen...
everything else works just fine
marazi said:
wow... thanks for this...
tryed it out and works...
the only thing is that it still says Niki Project on the boot screen...
everything else works just fine
Click to expand...
Click to collapse
You can add the splash screen in HTC Rom Tool.
therealholg said:
let me try first:
- download this kitchen
- Copy your part01.raw and part02.raw into the BaseRom Folder of this kitchen
- Copy a Nike RUU_signed.nbh into the BaseRom Folder (e.g. tom_codons rom just open the. exe with winrar and extract the file)
- Open !Begin.cmd, press 2 and do everything, what is prompted
- Open !Cook.cmd and do what is prompted
- when HTC Rom Tool is opened press Rom_Builder and ... right from System. Then Choose os_new.nb and press built
i wrote this without testing again. so if i missed something tell me, please and i'll try to help.
Click to expand...
Click to collapse
What to do with part00.raw and part03.raw?
Part00.raw is the are with IPL, SPL and Splashscreen. We don't want to override our new SuperCID Bootloaders
Part03.raw is content of your local storage ... i think you can't flash this area with ruu.
hi all friends...!
I'm just back from some days busy with vietnamese new year.
And have made code kitchen for reconstruct a dumped rom niki device.
What we need to do now ?
1. Copy part02.raw u dumped from original rom to Tools folder and run step1.bat
2. Extract RUU_signed.nbh from Ship rom and put in ShipRom folder.
Link download :
http://www.asia.htc.com/download/RU....707.09_Radio_Nike_1.58.16.27_signed_Ship.zip
Or here :
http://www.asia.htc.com/download/RU....871.14_Radio_Nike_1.58.16.27_signed_Ship.zip
3. Run Reconstruct a dumped rom.cmd in my Tools and wait some times.When page DOS done it will exit .U go to Update_Rom folder already have new RUU_signed.nbh.This files reconstructed your original Rom with your languages.
Have funs..!
was wondering if someone could tell me where to find the nk.nbf from dcd's 2.2.x roms...want to cook up some custom boot screens, but have NO idea where to find it (or get it from). thanks
You need to extract the nbh from the installer (you can use procmon from sysinternals.exe to find out where the installer extracts it).
After that you need to decompile the NBH using various tools, in which will present you with a 00_OS.nb.
After doing that, you need to extract the splash images from other roms, or create your own, then recompile the NBH.
EDIT: wow first post since 2006, you can tell ive been a leech, glad to give back to the community lol...
I was going to post the contents of the readme file that i'm trying to understand...in order for you to see what i'm being told to do, but I really can't decipher it all that well, so i'm going to attach it. This is what I'm being told to do...
Have you looked in to this: http://forum.ppcgeeks.com/showthread.php?t=16939
Yeah I read through that...
Thing is...with dcd's latest roms, the only file you get when you extract his nbh is 00_OS.nb
I have my splash.nb already made from the image i chose, but I'm not sure what to do with 00_OS.nb and splash.nb
Make an NBH from them.
You can use Dutty's NBH Tool patched for the Titan.
Since I can't find the original thread where I got it (took me forever to find in the first place) I uploaded it to fileshex.
Download here
I don't have to name my splash.nb something specific when creating the new nbh? It will just know that it's the splash?
Edit: nevermind, after opening duttys tool it's clear on how it works...thanks
Ahhh..one more question...
Is it possible to just take my splash.nb and make an nbh out of that. Then put it into the RUU and flash just the splash? Or must it be merged with the entire rom and flashed?
I have no idea.. I never did it. I want the original Verizon splash screen back instead of the static Verizon logo.
Try it and let us know if it works.
Can someone upload VZW_Startup.gif from \Windows somewhere I can download it?
I'd appreciate it very much
Confirmed.
Just took splash.nb and created an nbh just including the splash fields. I then inserted it into the RUU, flashed, and worked like a charm, no need to include any other part of the OS or anything.
Looks badass...for any help let me know...now that I know what I'm doing
P.S. It WILL hard reset the phone though upon flashing...
I put all the necessary files in a zip and I'm working on an easy step by step readme...so if anyone wants to change their bootscreen send me a pm.
Tools I have tried so far to cook a personalised ROM for my Gene: (Authors name mentioned in green)
Tool to dump OS.nb and ExtROM.nb directly from Gene to SD card - Attached. Usage information here (Orefkov)
Tool to edit registry (default and user rgu files) for Gene - In this forum here (Orefkov)
HyperCore Kitchen from Anichillus (Includes the PKGTool, IMFG Tools and BuilOS) Device & Settings txt files for HyperCore to cook for Gene are attached here (Anichillus)
MSFlshTool from Scoter Kitchen for extracting the XIP out of OS.nb (procedure) (Scoter Kitchen)
Tool for extracting XIP out of OS.nb properly with procedures here (Anichillus)
XIPTool for dumping the extract .bin file and XIPPort tool for porting the core - Attached (Bepe)
Tools for relocating modules and files in XIP found here (Misar)
BuildOS tool from Kaiser Kitchen (Its got package tool and porting tool built-in) (Alex)
BenThon's MSCEInf and Ervius Package Creator to the for creating OEM Packages out of Cabs. Tutorial refered to creating the packages is here (Ervius & BenThon)
HTC ROM Tools for creating final .nbh file - Attached (Dutty)
FlashBootSplash tool for creating first splash screens - Attached. Usage information here (Vukile)
TFAT Image Editor for editing ExtROM (author unknown)
HSPL for Gene to be able to flash custom ROMs here - (procedure) (Olipro)
Excellent guidance for upgrading Gene ROM by Mobix here (Mobix)
I know there are a lot many other files for editing the rgu files and creating hv files but I didnt try them. I dumped the ROM successfully and still learning to delete or add packages. Although I am not saying that I successfully flashed my Gene with the ROM I cooked, but learning never stops till someone expert comes along to explain things and to guide us cooking wannabes to a nice kitchen and a nice personalised ROM Your suggestions and guidance and advices are all more than welcomed here
The post below is where I am going to post the packages I create and the one below that is where I am going to put up the problems I face so no one else will repeat and brick their phones
Also attached the original Gene RUU, just in case
I did my part of dumping the OS.nb in HyperCore as mentioned in anichillus's thread here. Then I used the package tool to make packages from the dump and transfer the SYS and OEM folder to Build. I haven't yet mastered the art of adding or deleting the packages here but I certainly deleted the useless images and theme files which eats up space. Post that I did the BuildOS which created the OS-New.nb very nicely. Used HTCrT tool to create the new RUU_Signed.nbh with the OS and ExtRom. While flashing the RUU showed "Flash Write Error" at about 99%. Need guidance after or prior to that, although will not stop trying and will keep posting the progress so far here
OEM Packages created by me
(A) OEM Packages created by me with Alex's procedures:
DciNoBar
FTouchFlo_V1_4_1
FTouchFloConfig_V0_9
HomePluginWM6
LG_Today_Buttons-ENG
PCMKeyboardEN-0_13
Schaps_AdvancedConfig_v2_1_0_0
SMSDRFixWM5
Spacer2_ARM
DOWNLOAD Package A
Problems I have faced so far
When I tried to recreate the hive files (default and user) Problem was faced in default.hv. Attached CMD screen, default.rgu and boot.rgu file - Solution: Found by Orefkov here
After I tried to flash my Gene with my custom cooked ROM, it left me with a blank phone. Although I passed the 1st splash screen then it was blank - Solution: Found by Anichillus here
Thanks to following experts for guiding me and lending a helping hand
Anichillus, Villaboy25, Nirvana1981, Orefkov, C_Shekhar
@ammet .. from where do we get OS.nb file ?? all i have is the WM6 .nbh file.
mobix said:
@ammet .. from where do we get OS.nb file ?? all i have is the WM6 .nbh file.
Click to expand...
Click to collapse
updated the first thread on first point sorry, forgot to add in first place
Error at 99% of flashing - dont use Tadzio imgfs tools, its make smaller nb file, and its not work on gene. Use mamaich's imgfs tools.
orefkov said:
Error at 99% of flashing - dont use Tadzio imgfs tools, its make smaller nb file, and its not work on gene. Use mamaich's imgfs tools.
Click to expand...
Click to collapse
that is great inputs my friend.. can u be kind enough to also post the link to these tools? please.. it will be easier to arrange for all readers
@orefkov
did your gene comeback?
did it die?
Work with registry.
Some key's names in gene registry have '\' (slash) symbol in it.
Rgucomp dont work with this. You need replace '\' in key's names on '\\'.
I write simple script for it.
try to make the chs rom ver.
but need your help.
nirvana1981 said:
@orefkov
did your gene comeback?
did it die?
Click to expand...
Click to collapse
My old gene is die, but Im got money back and bay new gene.
guys.. i request you all to post your inputs as simple as possible so every noob can also understand your expert inputs u guys are cool
nirvana: what is chm rom?
orefkov: what does the regedit do and what should be edited exactly?
did you try to enlarge the rom , del the extrom ? it's unuseful.
orefkov said:
Work with registry.
Some key's names in gene registry have '\' (slash) symbol in it.
Rgucomp dont work with this. You need replace '\' in key's names on '\\'.
I write simple script for it.
Click to expand...
Click to collapse
did u check my third post for the solution that is not yet found? can u guide us all on that problem?
can use it ,and make extrom work. got 10m free.
nirvana1981 said:
can use it ,and make extrom work. got 10m free.
Click to expand...
Click to collapse
brother... please tell us all what u guys talking about also how do we also claim that extra space and did u reply to the pm i sent? please
ababrekar said:
did u check my third post for the solution that is not yet found? can u guide us all on that problem?
Click to expand...
Click to collapse
Just download this archive, and read readme.txt in it.
orefkov said:
Just download this archive, and read readme.txt in it.
Click to expand...
Click to collapse
i did download ur archieve... saw the readme.. so should i just run both batch files without editing anything? i dont need to edit anything right?
by the way.. updated the first post with the archieve, it will be easier for others to follow
after fighting for few hours and numerous changes i was able to complete the first step, of getting OS dump using Hypercore Kitchen. Now it seems I'll have to redo some part again tonite !
mobix said:
after fighting for few hours and numerous changes i was able to complete the first step, of getting OS dump using Hypercore Kitchen. Now it seems I'll have to redo some part again tonite !
Click to expand...
Click to collapse
orefkov has posted a reply here in above post... check it out http://forum.xda-developers.com/showpost.php?p=1963703&postcount=6
Looking for some info on how rom files are structured and how manipulte them
I have .nb0 file that I want to flash but I'm not sure what else is in it other than the OS. How do I get this file into a format I can flash ?
spicer said:
Looking for some info on how rom files are structured and how manipulte them
I have .nb0 file that I want to flash but I'm not sure what else is in it other than the OS. How do I get this file into a format I can flash ?
Click to expand...
Click to collapse
Some ktichens will allow you to convert OS.nb into a bootable ROM. There are also some programs that will let you do it. You can try my kitchen, it is pretty straight forward and read through it carefully and you shouldn't have a problem. Kink to kitchen is in my sig.
At0mAng said:
Some ktichens will allow you to convert OS.nb into a bootable ROM. There are also some programs that will let you do it. You can try my kitchen, it is pretty straight forward and read through it carefully and you shouldn't have a problem. Kink to kitchen is in my sig.
Click to expand...
Click to collapse
Thanks! I'll give it a shot. Will this help me figure out whats in cluded in the nb0 file?
Have a look at this thread ...
http://forum.xda-developers.com/showthread.php?t=490787
it provides some info on what's in the ROM and should easily compliment At0mAng's kitchen.
Cheers,
Good info thnx.
Question
When I run option 7->3
( Make a Bootable ROM from OS.nb files -> HTC ROM Tool for Touch Pro ROM)
the program just bails on me. Any idea why? os.nb is there. i can do 7->2 and it works fine but but I have a touch pro (option 3).
also how do I find out what is in a .nb0 file?