How do I convert os-new.nb to nbh - Touch HD Windows Mobile ROM Development

I've been trieng to get this to work for hours and now I'mat the point of giving up... I would like to know what the right tool is for os-new.nb to converted to
nbh....
anyone??
and of course.... I have searched... for a long long long time....

when you are using this kitchen:
[KITCHEN]TOUCH HD ROM Kitchen (From JugglerLKR and JCEspi2005)
and open the BlackStoneKitchen.CMD with an txt editor you can find this:
:10
:10.HTCRomTool.bat
cls
echo -= HTC ROM TOOL =-
Rem echo Click "Build!"
Rem echo In ROM builder tab choose Device: BlackStone
Rem echo Click ... in System: and choose os-new.nb
Rem echo Click Build ROM and choose filename RUU_signed.nbh
tools\htcrt.exe /buildrom "%cd%\BlackStone.htcrtproj" "%cd%\ruu_signed.nbh"
is this what you are looking for??

thanxX for your reply... I've succesfully used htcrt...
flashed up to 100%...
but the screen hangs while booting...
wich means i'm a terrible cook and i'm not cut for this stuff...
damnit..

Do you still have the raw files? In that case you can try again, or share the files, perhaps others an help.
Also try the cooking guide section, i got a lot of info there, extracted the raw files and made a flashable nbh from it myself. It should be possible...otherwise pm me, perhaps i can help (warning : i am not a cook myself haha)
Regards Twanj

Can you post a link for that Kitchen that you mentiones?
Thanks

Related

ROM Editing...Is this correct?? Please READ!!!

I am trying to modify a ROM for my BA with the use of imgfs tools I downloaded from buzzdev.. This is what I did... (hope someone here could comment if this is correct) I have not tried flashing any of my modified ROM coz i dont still have my BA with me, mabe this 3rd week of sept I will have it in my hands!!! LOL
Here's how:
1.) I tried helmi v1.3 (I converted nk.nbf to nk.nba with the use of nba converter)
2.) Prepare_imgfs nk.nba
3.) viewimgfs imgfs_raw_data.bin
4.) modified the dump directory (added the wm5torage, pocketrar, taskmanager v1.4.4)
5.) edit the initflasfiles.dat with the use Notepad (deleted the 2byte signature with the use of ULtraEdit)
6.) I also edit the default.hv with the use of rgucomp (I dont know if i made it correctly) to include the registry entries of WM5torage) (Well I succesfully convert it to rgu, edit it with the use of UltraEdit save it as unicode and I managed to convert it to .hv file successfully without any errors)
7.) Buildimgfs
8.) make_imgfs nk.nba
Is this a correct way of modifying the ROM? If not, how? I read alot of posts here (xda and buzzdev) on how to modify a ROM with use of imgfs tools and this is how I understood it... hehehe
Is the rom i made workable? Thanks hope soomeone here could help me!!! by the way here is the attached rgu and hv file i modified!!
I might suggest trying the Bepe ROM Kitchen.. quite a bit easier
Yeah its easier>>!!
I tried the method you said..But for me this is simplier... So based on your own understanding, is that correct? I know you have done modifying a lot of roms already....
Thanks
So anybody here could give some more opinions>>>Pls
Anyone?
Anyone???
It seems OK the way you did.
I did the same way as you when I used XdaII or Himalaya.
I edited BA ROM this way too.
One thing to tell you is that you will not know that it works or not until you flash it in your device.
The file you add may overload the space if you don't delete some files you don't use.
I delete transcriber because I don't use it and will have about 500 KB for adding some files I want.
Flash it and you will know the answer yourself.
8)
Thanks
Thank vivi.. Yeah I did, i deleted some of the files in the rom (which I donot use at all) to have some space for my additional files... btw, I read about boot.hv (like on the other method) do I need it also in this method? Or is it included in the default.hv?
I left boot.hv in dump folder and didn't touch it.
I edited only default.hv and initflashfiles.dat.
But it is a long time not doing.I nearly forget the steps to do.
I think Helmi ROM is OK and I use it as it is.
OOOH
I dont see any boot.hv in the dump directory? Did i mess somthing?
Yup It seems that Helmi ROMs are great..Thanks again

WM6 Cooking Lessons ;) ?

Hi!
I was wondering if the WM5 Rom editing tools still work with a WM6 Rom, I was trying to add some dll's to the WM6 rom to make it work on my Prophet (Sound dll is wrong). I first umpacked the rom with prepare_imgfs.exe then viewimgfs.exe I replaced the files in the dump directory and then tried to repacked with buildimgfs.exe but it displays one line of junk on the commandline and that's it. So the questions are:
1. Can the Rom editing tools be used on a WM6 Rom
2. What orther options are there to change files in a not flashed .nba file?
Thanks,
Ramon
ok how did you get that to work, cus i was trying it and the folder Dump was not getting made!!! i tried it so many time!
I don't have any problems at all... Everything works just the way it did with wm5...
extract OS.nb from nk.nbf using: typho5.exe -x nk.nbf
prepare_imgfs.exe OS.nb -nosplit
viewimgfs.exe imgfs_raw_data.bin
...modify "dump" directory as you need...
BuildImgfs.exe
make_imgfs.exe OS.nb -nosplit
-----------------------
replace OS.nb with the name of the OS part.
do not forget the -nosplit option in prepare_imgfs and in make_imgfs.
bye
Just to clarify, I'm using
Code:
typhoonnbfdecode to get 80040000-OS.nb
prepare_imgfs 80040000-OS.nb -nosplit
viewimgfs imgfs_raw_data.bin
make the changes without removing any of the files created in the dumping process then
Code:
buildimgfs
make_imgfs 80040000-OS.nb -nosplit
after that use nb2nbf_tornado to make a new nk.nbf
_Nomad_ said:
Just to clarify, I'm using
Code:
typhoonnbfdecode to get 80040000-OS.nb
prepare_imgfs 80040000-OS.nb -nosplit
viewimgfs imgfs_raw_data.bin
make the changes without removing any of the files created in the dumping process then
Code:
buildimgfs
make_imgfs 80040000-OS.nb -nosplit
after that use nb2nbf_tornado to make a new nk.nbf
Click to expand...
Click to collapse
I'm doing the exact same thing, but at this step:
make_imgfs 80040000-OS.nb -nosplit
It goes wrong it fails without an error message..
What exact file are you trying to integrate in the rom? is it a module?
btw. you never get an error message
_Nomad_ said:
What exact file are you trying to integrate in the rom? is it a module?
Click to expand...
Click to collapse
Well I don't think it matters, because I also tried a makeimgfs and changed nothing.. no files.. but the file I want to change is "wavedev.dll"
Solved it!
I though the last step:
make_imgfs.exe nk.nbf -nosplit
But it had to be make_imgfs.exe 80040000-OS.nb -nosplit
I thought it was just going to create a new file..
That's odd... before rebuilding you didn't remove any files did you? such as imgfs_raw_data.bin?
rvbcrs said:
Solved it!
I though the last step:
make_imgfs.exe nk.nbf -nosplit
But it had to be make_imgfs.exe 80040000-OS.nb -nosplit
I thought it was just going to create a new file..
Click to expand...
Click to collapse
Naa, no new file... the old one is used as a template...
Great to see you solved it
Good luck with the rest...
Just learning a bit of ROM-cooking atm. Got a little problem, hope someone can help me get further:
When I add files to the "dump" dir and try running "BuildImgfs.exe" it lists the files nicely, but "imgfs_raw_data.bin" doesn't change date or time, nor does it change size.
What am I doing wrong?
vippie said:
Just learning a bit of ROM-cooking atm. Got a little problem, hope someone can help me get further:
When I add files to the "dump" dir and try running "BuildImgfs.exe" it lists the files nicely, but "imgfs_raw_data.bin" doesn't change date or time, nor does it change size.
What am I doing wrong?
Click to expand...
Click to collapse
It's NORMAL, go on. I don't know why the date doesn't change, i was confused too the first time i cooked a rom, but i can say it's completely normal.
Thank you Risidoro for the fast response.
is it possible to cook wm6 rom for G4 locked devices? thanks
risidoro said:
extract OS.nb from nk.nbf using: typho5.exe -x nk.nbf
prepare_imgfs.exe OS.nb -nosplit
viewimgfs.exe imgfs_raw_data.bin
...modify "dump" directory as you need...
BuildImgfs.exe
make_imgfs.exe OS.nb -nosplit
-----------------------
replace OS.nb with the name of the OS part.
do not forget the -nosplit option in prepare_imgfs and in make_imgfs.
bye
Click to expand...
Click to collapse
Thank you you are a star, i have it working now!!! the auto thing that was made does not work!!!
funman said:
Thank you you are a star, i have it working now!!! the auto thing that was made does not work!!!
Click to expand...
Click to collapse
the autothing?!? Where is it? I've never heard of it!
BTW: i'm happy you succeeded in cooking your first(?) rom! Happy cooking!
bye
risidoro said:
the autothing?!? Where is it? I've never heard of it!
BTW: i'm happy you succeeded in cooking your first(?) rom! Happy cooking!
bye
Click to expand...
Click to collapse
I forgot to thank you too risidoro You really helped me out here! I suceded to cook my first rom hehehe.. nothing special some extra files.. but still hehe.. Now I like to know how I can change registry settings, do I have to change them from the extended_rom or is there a way to do it in the ROM?
Thanks again to all who helped out!
rvbcrs said:
I forgot to thank you too risidoro You really helped me out here! I suceded to cook my first rom hehehe.. nothing special some extra files.. but still hehe.. Now I like to know how I can change registry settings, do I have to change them from the extended_rom or is there a way to do it in the ROM?
Thanks again to all who helped out!
Click to expand...
Click to collapse
Now you need to learn how to create cabs and autorun them from ext_rom. That's what does all that AFAIK. Chefs -- is there any other way? Can you modify the seed hives directly?
I would like to know how to modify the hives too. I saw a tutorial somewhere, but I can't find it now.

Building Wizard ROMs with mamaich tools

I had posted this to the mamaich's thread. posting here as well since it is wizard specific:
I've been trying to use the tools for building an HTC wizard ROM. Now, before starting out on any modifications, I simply tried to break apart and rebuild it. So, I extracted a ROM using typhoondecode_v5, then followed this:
1. prepare_imgfs.exe OS.nb -nosplit
2. viewimgfs.exe imgfs_raw_data.bin
3. BuildImgfs.exe
But then my imgfs_raw_data.bin is not rebuilt and stays at its original self. The buildimgfs tool does not give me an error, however the last 3 lines of its output reas something like :
total sectors: 0000
used: <some number>
free: <some number>
I searched the forums but couldn't find an answer. Saw a couple of posts having the same prob but no answer. Since I havent done any modifications to the ROM and have tried with both AKU2.3 and AKU 3.3 (and custom ROMs as well as official Qtek ROMs), the ROM that i am using is also not an issue.
Now, since there are so many custom wizard ROMs out there and ppl swear by mamaich's tools so there must be a solution. Please help me out or let me know if there is no way out and I ve to use some other way to make ROMs, i also found bepe's kitchen post but couldn't find how to use it for wizard..
Thanks in advance.
for the wizard, this line:
1. prepare_imgfs.exe OS.nb -nosplit
should be:
prepare_imgfs.exe 80040000-OS.nb –nosplit
see if that helps...
prepare_imgfs.exe 80040000-OS.nb –nosplit
Click to expand...
Click to collapse
I used that one only, and I have no probs with the "prepare" and "view" commands. I correctly get the bin files as well the modules/files are correctly extracted. I have problem with the "build" and "make" commands.
side question. should have thought of this earlier. how do you know its not updating? its been stated that this file will for some reason not change date/time and size.
hopefully that helps.
see this post:
http://forum.xda-developers.com/showpost.php?p=1110892&postcount=13
see this post:
http://forum.xda-developers.com/show...2&postcount=13
Click to expand...
Click to collapse
oopsie I am sure I read that post some time ago when I was collecting all the info for ROM cooking, but somehow forgot abt it when I started. Thnx for reminding
But There's another problem after this. When I run make_imgfs command it gives me some weird characters, however, a couple of posts above the one that you pointed at, there is a comment that I've to give the name of the old file only instead of new one. Will try that tonight when I go home and report back.
Thnx for the help dude
Anyways, another question:
This one is about the "universal id" part (dont remember the name of the app correctly, smthing like genuuid), for which all packages do we have to use this app? I mean if I wanted to add an executable (say a.exe) to the ROM, is it enough to simply add it to the "dump" directory and follow the build/make path or do I have to use the genuuid app path, or is this app used for some special kinda apps?
Thnx in advance. I'm not a newbie by any means in programming, GSM, and programming for GSM etc (I work in a Nokia GSM BTS project ) but am cooking a ROM for the first time.
yupz, worked...I was able to rebuild the rom. (Though the size/date-time stamp of the final 80040000-OS.nb also remains the same as the older one. I take that to be OK like the same thing happening with img_raw_data.bin. Haven't flashed the ROM onto my phone to see...)
Moreover, about the uuidgen program, I found out that it is bepe's way of doing it. We can do it the mamaich way that is simply add the programs that we want to the /dump folder and rebuilding. Correct me if I'm wrong.
Now that I've tested the waters, I'm on to making a custom ROM myself...
Thnx xda-dev...
shantzg001 said:
yupz, worked...I was able to rebuild the rom. (Though the size/date-time stamp of the final 80040000-OS.nb also remains the same as the older one. I take that to be OK like the same thing happening with img_raw_data.bin. Haven't flashed the ROM onto my phone to see...)
Moreover, about the uuidgen program, I found out that it is bepe's way of doing it. We can do it the mamaich way that is simply add the programs that we want to the /dump folder and rebuilding. Correct me if I'm wrong.
Now that I've tested the waters, I'm on to making a custom ROM myself...
Thnx xda-dev...
Click to expand...
Click to collapse
Hi shantzg001
i too am doing similar steps and all gone well ( i.e breaking/rebuilding).
but im surprized why dump dir size is extremaly different in compare to
imgfs_raw_data.bin . I tried some OS.nb and got the size of dumb approx
456kb or 368 kb or some MBs. Also dump dir contains only some modules and
some files.
Am i doing some mistake or u too r getting similar result
reply ASAP
thanx
nandlal
That seems strange, because in my case the dump folder is even bigger than the bin file (more than double the size)..
Can you list out the exact steps that you are following, and which ROM were you breaking apart?

How to create a RUU from .raw files Help!

I dumped my rom and I've only the part.raw files... how to use them to create a NBH and then a CustomRUU installer?
sorry for the question, I tried to search the forum for a guide, with no result
I need to create a liberated rom for Italian language...
A little help will be appreciated...
davidgreen said:
I dumped my rom and I've only the part.raw files... how to use them to create a NBH and then a CustomRUU installer?
sorry for the question, I tried to search the forum for a guide, with no result
I need to create a liberated rom for Italian language...
A little help will be appreciated...
Click to expand...
Click to collapse
Hi
1. Download KaiserKitchen and extract it to your harddisk.
2. Download Thaihugo uploaded WWE 1.22x as your base ROM and put the RUU_Signed.nbh (WWE 1.22x archive has it) in the BaseROM folder of KaiserKitchen
3. Copy the Part files in the same BaseROM folder of KaiserKitchen
3. There will be a batch file (I forgot its name, I am sorry) in the root folder of KaiserKitchen. Just Run that.
3a. Press e (extract)
3b. Press b (using base rom and part files)
4. follow the steps that it asks
5. press option for cooking (i think c or something) I forgot.
6. It opens the HTCRT. Select Kaiser in the options and select the NB file that it created from the base rom and your part files (basically it is Part 2 that is the language part).
7. Once it is done, it will create a RUU_Signed.nbh in the base ROM file (it lets you to chose name and folder).
I am sorry, I could not remember the exact option names. I am currently travelling. The instructions are on my home computer. The other day cmonex helped in extracting from Chinese for me. I tried to recollect our chat and presented it here. let me know how did it go. Otherwise, if you could wait till tomorrow evening (I live in CST), I could provide you correct name of batch file and options.
You can download KaiserKitchen from Kaiser sub forum here. Search for KaiserKitchen and you could get the link for it to download.
Thanks and HTH
Ram
Thanks for the help... but, I've problems with the process, please take a look at the S.S. uploaded in this thread...
Here's another SS, the updater stop working at 0% saying device not recognized in the taskbar...
I also tried using thaihugo updater with my new RUU_signed.nbh...
no result... it stop working at 2%
what's the problem?
don't use this kitchen. Use kaiserkitchen 0.3. also, the nbhutils must be olipro version, not htccrt.
here is the proper nbhutils

Need Experts Help Cooking ROM 1.14.488.3 from DUMP PLEASE

Hi there, I am trying to create a nbh file from 4 dump files. This ROM is missing in this forum and it is a stock ROM version 1.14.488.3 for middle east. I would like to share it with you and add it to the wiki page.
Now that i got my 4 raw files Part00/01/02/03.raw I downloaded the ROM kitchen. After 3 days of non stop reading, I have a few questions :
* It seems that I need also the ruu_signed.nbh file to make a ROM from dump ? (Please correct me if I am wrong). Why ?
* Can I use kwbr_ruu_signed_WWW_1.19.zip to cook 1.14 ROMs ??
* If not, where can I find the 1.14 ruu_signed_WWE.nbh file ?
* Using DUMP files from 1.14.488.3 and nbh from another 1.14 version will give me which version ? the 1.14.488.3 or the other ?
I tried to use the nbh from official ROMs and that did not help as it seems to be locked I believe which is expected.
Any help would be very apperciated. I hope to create the ROM successfully as there where lots of people asking for it on many forums.
Thanks !
BUMP
another shamless bump
To my knowledge official roms arn't protected, i think all you need to build the dump is part01/part02
you shouldnt need ruu_signed aswell as the part files so just put the 2 part files into the baseRom folder of the Kitchen(may be different depending on what kitchen your using) and run the .bat file to start
goto option extract ROM and then choose the second option(you should see Part01/Part02 mentioned),
if it doesnt make sense to you ill try and explain better but atleast something for you to get started on.
sgilesuk said:
To my knowledge official roms arn't protected, i think all you need to build the dump is part01/part02
you shouldnt need ruu_signed aswell as the part files so just put the 2 part files into the baseRom folder of the Kitchen(may be different depending on what kitchen your using) and run the .bat file to start
goto option extract ROM and then choose the second option(you should see Part01/Part02 mentioned),
if it doesnt make sense to you ill try and explain better but atleast something for you to get started on.
Click to expand...
Click to collapse
BlackStone ROM Kitchen -- Extraction Menu
-------------------------------------
(a) if you want just to extract a shipped ROM
(RUU_signed.nbh required in BaseROM folder)
(b) if you want to rebuild and cook dumped ROM into flashable ROM
(RUU_signed.nbh, dumped part01.raw and part02.raw required in BaseROM folder)
(m) back to the main menu
(x) exit
Any explanation anyone ?

Categories

Resources