PDA

View Full Version : NBHextract: Extract contents from NBH files


pof
14th January 2007, 07:40 AM
Here is a tool to extract contents from NBH files, it is valid for all new devices using NBH format for ROM upgrades (Hermes, Trinity, Artemis, Herald, Excalibur, etc...).

It will extract all separate ROM parts contained in NBH file, and convert splash screens to BMP format. When run with '-v' parameter it also shows the signature for each block.

For more information on NBH format see NBH wiki page (http://forum.xda-developers.com/wiki/index.php?title=Hermes_NBH).

Example usage:

C:\> NBHextract.exe hermimg_HTCWWE_1.35.255.2_Ship.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: HERM200
CID: QTEK_001
Version: 1.35.255.2
Language: WWE
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_GSM.nb
Extracting: 03_MainSplash.nb
Encoding: 03_MainSplash.bmp
Extracting: 04_SubSplash.nb
Encoding: 04_SubSplash.bmp
Extracting: 05_ExtROM.nb
Extracting: 06_OS.nb
C:\>

EDIT: Removed dependency of C++ run time libraries, if you where getting an error try downloading the file again.

Asukal
14th January 2007, 06:20 PM
this is great tool we have been waiting!
Thanks this great tool!

URPREY
15th January 2007, 03:29 AM
Excellent tool! Thanks for everything you do here pof!

pof
15th January 2007, 07:02 AM
Thanks must be given to TheBlasphemer and itsme, they did the hard part, i just joined the pieces :)

Zgembo
17th January 2007, 08:16 AM
Here is a tool to extract contents from NBH files, it is valid for all new devices using NBH format for ROM upgrades (Hermes, Trinity, Artemis, Herald, Excalibur, etc...).

It will extract all separate ROM parts contained in NBH file, and convert splash screens to BMP format. When run with '-v' parameter it also shows the signature for each block.

For more information on NBH format see NBH wiki page (http://wiki.xda-developers.com/index.php?pagename=Hermes_NBH).
...

EDIT: Removed dependency of C++ run time libraries, if you where getting an error try downloading the file again.pof, is there any source code available?

pof
18th January 2007, 09:57 AM
Zgembo: sorry, no at the moment.

Lt.Cmdr.Ivan
3rd February 2007, 07:07 PM
Excellent work

pof
TheBlasphemer
itsme

for providing this decompression tool.
Its making the work with rom stuff from the newer devices much easier

ahlok_hk
5th February 2007, 11:52 AM
Using NBHextract with the Hermes AKU3 swedish ROM, and the log shows some error as follow:


C:\>NBHextract.exe RUU_signed.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Error in block 308 (01340000 - 57ED698B)
Device: HERM200
CID: QTEK_G09
Version: 2.05.263.1
Language: SVE
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_SubSplash.nb
Encoding: 03_SubSplash.bmp
Extracting: 04_ExtROM.nb
Extracting: 05_GSM.nb
Extracting: 06_OS.nb

C:\>

Is it normal? Thanks.

pello
5th February 2007, 12:46 PM
i dont get a error message

ahlok_hk
5th February 2007, 03:53 PM
Thx pello for reminding me. Everything run smoothly after I download the rom again.

vbi
15th February 2007, 08:56 AM
Is there a program to extract the resulting .nb files?

smart2003
21st February 2007, 09:11 AM
How should I run the perl scripts?

Asukal
21st February 2007, 12:01 PM
How should I run the perl scripts?

pls read here http://wiki.xda-developers.com/index.php?pagename=Hermes_HowtoExtractImgfs

and
http://wiki.xda-developers.com/index.php?pagename=RomTools/rdmsflsh.pl

Type like "DOS prompt" command after install this perl and script

RichTJ99
11th March 2007, 09:44 PM
Is there a program to extract the resulting .nb files?

I would like to know this as well, can the NB file be extracted?

Lt.Cmdr.Ivan
18th March 2007, 02:03 PM
the os.nb file is equal to the nk.fat or nk.nba file and can be extracted with the according tools to extract that type of files

Willyfxp
18th March 2007, 11:29 PM
I would like to know this as well, can the NB file be extracted?

winimage can do this :D

darling2790
19th March 2007, 12:16 AM
this is great tool we have been waiting!
Thanks this great tool!


But why I can't open it?:)

Bundy
19th March 2007, 07:28 PM
NBHextract works fine....

But how can i make a nbh-file again ?

Bundy
19th March 2007, 08:03 PM
I've already found it .

nbhgen01

CWKJ
13th July 2007, 11:01 AM
NBHExtract.exe generate 06_OS.nb of WM5 is ok.

NBHExtract.exze generate 06_OS.nb of WM6 as 06_Unknown.nb.

Is this a problem?

Strangely, by rename 06_Unknown.nb as 06_OS.nb, the extraction tools still work and it extract the files of the OS but with many empty header.

pof
13th July 2007, 03:06 PM
generate 06_OS.nb of WM6 as 06_Unknown.nb.

Is this a problem?

No, it's because on new official WM6 roms (trinity & hermes) htc has changed the headertype for OS from 0x400 to 0x401.

CWKJ
13th July 2007, 05:57 PM
No, it's because on new official WM6 roms (trinity & hermes) htc has changed the headertype for OS from 0x400 to 0x401.So using the 06_Unknown.nb to extract the files is ok? And building it back is also ok?

pof
14th July 2007, 11:14 PM
So using the 06_Unknown.nb to extract the files is ok? And building it back is also ok?

Yes, is exactly the same as before.

upgrade-aholic
24th August 2007, 09:49 PM
Hi. When I run the 'NBHextract' program on the Cooked ROM "vp3G's Cingular/AT&T Optimized ROMs "Version 2.0 - Hybrid", the list of files shown at the beginning of this thread does not appear. Instead I get:
Device: HERM100
CID: SuperCID
Version: vp3g 2.0.1h
Language: WWE
Extracting: 00_MainSplash.nb
Encoding: 00_MainSplash.bmp
Extracting: 01_SubSplash.nb
Encoding: 01_SubSplash.bmp
Extracting: 02_OS.nb

Does this mean the ROM is incomplete? Is this a valid output from your program?

upgrade-aholic
24th August 2007, 09:49 PM
Hi. When I run the 'NBHextract' program on the Cooked ROM "vp3G's Cingular/AT&T Optimized ROMs "Version 2.0 - Hybrid", the list of files shown at the beginning of this thread does not appear. Instead I get:
Device: HERM100
CID: SuperCID
Version: vp3g 2.0.1h
Language: WWE
Extracting: 00_MainSplash.nb
Encoding: 00_MainSplash.bmp
Extracting: 01_SubSplash.nb
Encoding: 01_SubSplash.bmp
Extracting: 02_OS.nb

Does this mean the ROM is incomplete? Is this a valid output from your program?

peter petrelli
25th August 2007, 12:49 AM
Hi. When I run the 'NBHextract' program on the Cooked ROM "vp3G's Cingular/AT&T Optimized ROMs "Version 2.0 - Hybrid", the list of files shown at the beginning of this thread does not appear. Instead I get:
Device: HERM100
CID: SuperCID
Version: vp3g 2.0.1h
Language: WWE
Extracting: 00_MainSplash.nb
Encoding: 00_MainSplash.bmp
Extracting: 01_SubSplash.nb
Encoding: 01_SubSplash.bmp
Extracting: 02_OS.nb

Does this mean the ROM is incomplete? Is this a valid output from your program?

This is a valid output. Basically it means that the rom doesnt contain IPL/SPL or radio. The rom only contains OS and splash screens.

vlodeck
25th August 2007, 01:00 AM
Good job gentleman. Will surely come in handy here.

Zombie069
4th September 2007, 05:11 AM
Ok so please forgive the total noob question.. How do I go about getting the rom off of my phone? Got an Alltell 6800..
Have NBHextract, NBHtool, and titanDUMP.. But I don't know anything about this side of it..
Flashed my 8125 and my 6700 many times thanks to the guys on this forum, and would like to contribute anyway I can.

qdduangang
5th November 2007, 04:22 PM
Hi, thanks first for this excellent program, it works, but here I got some prolem. The attached file:

O2.zip is the nbh for Asus P800, only contains splash, and when I try to decompress it, I get 00_MainSplash.bmp which you could get from unzipping 00_MainSplash.zip, but you could see it is damaged, at least some error on the left of the image.

Any suggestion?

Vukile
6th November 2007, 01:01 AM
What if your ROM upgrade is an application? How do you get to the NBH files?

cellfreak
9th December 2007, 11:55 PM
Use Winrar to extract the exe into its pieces.

ppczouz
12th December 2007, 03:10 PM
WinImage is not able to read my OS.nb file (which is about 62MB), I get an error saying that I am trying to open an image without FAT/FAT32 file system.

Any help?

Here's the dump I got

=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: VOX010100
CID: HTC__J15
Version: 1.27.415.4
Language: ENG
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_GSM.nb
Extracting: 04_OS.nb

I'm mainly trying to get the language installation cabs.

ext3
28th December 2007, 02:39 PM
[QUOTE=ppczouz;1732437]WinImage is not able to read my OS.nb file (which is about 62MB), I get an error saying that I am trying to open an image without FAT/FAT32 file system.

Any help?

Here's the dump I got
----------------------------------------------------------------------------
Same here.At first i thought it was vista problem but tried it also with xp and 98 and 3 different versions of Winimage(6,7,8) and i get error always.Maybe its not possible any more with winimage :)

xvi3tboyx916
19th January 2008, 05:30 AM
im trying to restores my tilt to oem but i cant able to open nbhextract file. when i click on it, it pop up a black screen then went off right away. am i missing something or what is wrong with it?

walter.hayden
20th January 2008, 05:57 AM
NBHextract.exe is a Window Console Application, meaning it must be run from a cmd window (Start -> run -> cmd). Use DOS commands (cd - to change directory) to navigate to the folder containing NBHextract.exe. Then type NBHextract.exe <.nbh path and file name> (i.e. C:\> NBHextract.exe hermimg_HTCWWE_1.35.255.2_Ship.nbh) (NOTE: a path containing any spaces must be surrounded by double quotes (i.e. "C:\> Documents and Settings\")) the program will then take a few minutes to execute and will display the name of the files extracted. The files will be extracted to the same folder as NBHextract.exe.

Hope this helps.

cruzzmz
22nd February 2008, 09:27 AM
i hv extracted a 00_os.nb from a cooked rom. but when i do a viewimgfs i got these errors


guidBootSignature: F8 AC 2C 9D E3 D4 2B 4D BD 30 91 6E D8 4F 31 DC
dwFSVersion: 00000001
dwSectorsPerHeaderBlock: 00000001
dwRunsPerFileHeader: 00000001
dwBytesPerHeader: 00000034
dwChunksPerSector: 00000008
dwFirstHeaderBlockOffset: 00000200
dwDataBlockSize: 00001000
szCompressionType: XPR
dwFreeSectorCount: 0001E3CC
dwHiddenSectorCount: 00000100
dwUpdateModeFlag: 00000000

Address: 00000200, dwBlockSignature: 00003200
dwNextHeaderBlock: FFFBFFFD (size: FFFBFDFD)

Header type: 2F5314CE, Addr: 00000208
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: 0000023C
Unknown header type, FS_DATA_TABLE??

Header type: 00000400, Addr: 00000270
Unknown header type, FS_DATA_TABLE??

Header type: 00000480, Addr: 000002A4
Unknown header type, FS_DATA_TABLE??

Header type: 00000500, Addr: 000002D8
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: 0000030C
Unknown header type, FS_DATA_TABLE??

Header type: 00001380, Addr: 00000340
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: 00000374
Unknown header type, FS_DATA_TABLE??

Header type: 00001880, Addr: 000003A8
Unknown header type, FS_DATA_TABLE??

Address: FFFBFFFD, dwBlockSignature: 00000000
dwNextHeaderBlock: 00000000 (size: 00040003)

Header type: 00000000, Addr: FFFC0005
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC0039
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC006D
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC00A1
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC00D5
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC0109
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC013D
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC0171
Unknown header type, FS_DATA_TABLE??

Header type: 00000000, Addr: FFFC01A5
Unknown header type, FS_DATA_TABLE??


anything that i did wrongly here????

santitos2001
8th March 2008, 03:41 AM
WinImage is not able to read my OS.nb file (which is about 62MB), I get an error saying that I am trying to open an image without FAT/FAT32 file system.

Any help?

Here's the dump I got

=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: VOX010100
CID: HTC__J15
Version: 1.27.415.4
Language: ENG
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_GSM.nb
Extracting: 04_OS.nb

I'm mainly trying to get the language installation cabs.


Any luck? im trying to do the same and no luck i installed winimage and doesnt work, also the perl thing is soo confusing i dont know what to do

DiDRoe
3rd April 2008, 12:11 PM
I've had luck with the "Dump_OS_From_..." scripts in the TOOLS folder of the zip from the first post here (http://forum.xda-developers.com/showthread.php?p=2077432)

thetruejay20
22nd April 2008, 04:26 AM
I can't get NBHextract to work someone please help!!

tiltnoob101
24th April 2008, 05:33 AM
I've read through every post on here and cannot get this to work. I tried the idiots guide, with running sspl from phone every time error 240 with firewall off and everything else suggested. So I'm trying the idiots guide (long) and cannot get the CP to extract my nbh from tilt ROM also the idiot guide with sspl from device says steps 3-10 resume at 11 BUT step 13 says when bootloader is up run file from folder used in step 10. WTF I must be real stupid? Thanks for any help as I've only got 5 days to get ATT my tilt back before they charge me... been at this for days

tiltnoob101
24th April 2008, 06:22 AM
never mind the previous "help" post, I've got it now I had 7 zip installed and the file was already there so it wouldn't open up using the CP. If anyone else has this trouble make sure you can't alreay acces the file with the folder you have open. I guess I AM a real idiot.

FloydW
26th April 2008, 08:16 PM
I've been at this for a couple hours now, and have the NB file, but I still can't find the instructions to put this file onto the Advantage. Isn't there one place that says "use 7zip to unzip then nbhextract to get it out of whatever that format is then use xyz program to put the nb file on the phone" (or does the nb file have to be unzipped somehow also)?

All I want to do is upgrade to the new radio version.

I now understand why "regular" users just accept their devices as they are because some these processes are entirely too difficult.

Thanks for reading my rant (grin).

tiltnoob101
27th April 2008, 08:25 AM
FloydW, if all you want to do is flash a new radio just make sure you find and install Hard SPL onto the device. It's in the Kaiser section IF you don't have it already. If you do, or when you do, hook up you device to activesync or hold the power and camera buttons in while performing a soft reset; with device hooked up to the PC via USB to get to the bootloader screen. Then run the file from your desktop of the radio your trying to flash. That should do it if everything works ok. Let us know if that helps

zhuyu_1981
30th April 2008, 11:10 AM
Here is a tool to extract contents from NBH files, it is valid for all new devices using NBH format for ROM upgrades (Hermes, Trinity, Artemis, Herald, Excalibur, etc...).

It will extract all separate ROM parts contained in NBH file, and convert splash screens to BMP format. When run with '-v' parameter it also shows the signature for each block.

For more information on NBH format see NBH wiki page (http://wiki.xda-developers.com/index.php?pagename=Hermes_NBH).

Example usage:

C:\> NBHextract.exe hermimg_HTCWWE_1.35.255.2_Ship.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: HERM200
CID: QTEK_001
Version: 1.35.255.2
Language: WWE
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_GSM.nb
Extracting: 03_MainSplash.nb
Encoding: 03_MainSplash.bmp
Extracting: 04_SubSplash.nb
Encoding: 04_SubSplash.bmp
Extracting: 05_ExtROM.nb
Extracting: 06_OS.nb
C:\>

EDIT: Removed dependency of C++ run time libraries, if you where getting an error try downloading the file again.

good is very good

panjinfxj
4th May 2008, 03:58 AM
Excellent tool! :):)

Infuruno
25th May 2008, 09:18 PM
When i try to use this it just crashes i.e. it doesn't really start up double click and the box appears and disappears in less than second.

l3v5y
25th May 2008, 10:05 PM
When i try to use this it just crashes i.e. it doesn't really start up double click and the box appears and disappears in less than second.
That's because you haven't passed any parameters to it.

You'll need to use cmd prompt or a batch file to call the exe with the parameters (such as where the ROM file is).

vimafeje
26th May 2008, 07:22 PM
hi,
i have alway use to drag and drop, but now this is not working... anybody has this error too?

maiahsdad
6th June 2008, 05:06 AM
I continue to get the error: "Could not open RUU_signed.nbh"

Any insights?

el_venga
6th June 2008, 06:17 AM
just tested it with a vogue stock sprint rom and worked. lets see what i can do with it now...

Korpse
24th June 2008, 12:43 PM
Kind of lame question but does anyone at all know if you can turn nb to signed nbs files?

HerrVorragend
24th June 2008, 04:35 PM
hello,

is there any way to extract the content of the nb-files without perl (I can't install the two packes like described in the wiki... perhaps of 64bit windows or missing repository-packagelist)

thanks for your help

eaglesteve
26th June 2008, 12:37 PM
I placed the NBHExtract.exe and RUU_signed.nbh on my root directory, then went o DOS command and typed "nbhextract.exe ruu_signed.nbh". I got an error message "Error : could not open temp.dbh file for writing. Could not open 'temp.dbh' "

Can anyone tell me what could be the cause of this error and what do I need to do in order to obtain all the nb files? The nbh files that I used was from a cooked ROM working on Athena.

Thanks for helps.

edit: got the answer. I can't do this on root directory for some reason. If I do it within a subdirectory, then all is fine.

Thanks for this tools.

arlojj
5th July 2008, 09:59 AM
Hey everyone, trying to learn how to cook my own roms after getting excited about seeing some of the custom roms floating around. And, especially after flashing my Vogue to have GPS.

So, I've flashed it with OMJ's Custom Bell ROM, and I've been trying to use these tools on the .nbh that comes with it because it seems like a good starting point rom that has the GPS enabled.

NBINfo says it has no boot loader, bad sign.
NBHextract seems to work okay... it lists the follow, but only extracts a couple of splash screens and 02_OS.nb... I was expecting more. Any of the other NB or Imgfs tools just crumble. Here's the output from NBHextract.

Device: VOGU100
CID: SuperCID
Version: 3.02.OMJ
Language: USA
Extracting: 00_MainSplash.nb
Encoding: 00_MainSplash.bmp
Extracting: 01_SubSplash.nb
Encoding: 01_SubSplash.bmp
Extracting: 02_OS.nb

Should I be using newer/other tools for this type of device???

I'm a bit lost! (But still motivated!)

Thanks!

l3v5y
5th July 2008, 11:14 AM
Hey everyone, trying to learn how to cook my own roms after getting excited about seeing some of the custom roms floating around. And, especially after flashing my Vogue to have GPS.

So, I've flashed it with OMJ's Custom Bell ROM, and I've been trying to use these tools on the .nbh that comes with it because it seems like a good starting point rom that has the GPS enabled.

NBINfo says it has no boot loader, bad sign.
NBHextract seems to work okay... it lists the follow, but only extracts a couple of splash screens and 02_OS.nb... I was expecting more. Any of the other NB or Imgfs tools just crumble. Here's the output from NBHextract.

Device: VOGU100
CID: SuperCID
Version: 3.02.OMJ
Language: USA
Extracting: 00_MainSplash.nb
Encoding: 00_MainSplash.bmp
Extracting: 01_SubSplash.nb
Encoding: 01_SubSplash.bmp
Extracting: 02_OS.nb

Should I be using newer/other tools for this type of device???

I'm a bit lost! (But still motivated!)

Thanks!
It appears that the ROM contains only the splash screens and the OS parts (IE no IPL/SPL/Radio).

I have no idea where the GPS info is stored, but if that ROM has GPS enabled, I'd guess it's down to drivers in the OS part, in which case you can dump the 02_OS.nb file using a Vogue kitchen and then rebuild it.

Basically, the ROM probably doesn't have IPL/SPL, and so don't worry about those! Deal with the OS.nb part which contains the OS!

arlojj
6th July 2008, 07:15 AM
It appears that the ROM contains only the splash screens and the OS parts (IE no IPL/SPL/Radio).

I have no idea where the GPS info is stored, but if that ROM has GPS enabled, I'd guess it's down to drivers in the OS part, in which case you can dump the 02_OS.nb file using a Vogue kitchen and then rebuild it.

Basically, the ROM probably doesn't have IPL/SPL, and so don't worry about those! Deal with the OS.nb part which contains the OS!

Hey, thanks a lot for the information. Just getting my head around all the acronyms now. :cool:

l3v5y
6th July 2008, 11:32 PM
Hey, thanks a lot for the information. Just getting my head around all the acronyms now. :cool:
Lots of confusing vocab to go!

For cooking, the only important part is the OS.

Depending on the device, it may have different items, but generally:
IPL does "Initial Program Loading" - Loads the SPL
SPL (Secondary Program Loader) - Loads the OS/Radio ROM
OS contains the XIP (kernel) and all the other ROM files
Radio ROM contains all the Radio Firmware.

arlojj
7th July 2008, 10:07 AM
Lots of confusing vocab to go!

For cooking, the only important part is the OS.


Great, thanks for the info! Now I just need to find a tool to extract the Vogue OS.nb and I'm rolling..

mr.x_black
26th August 2008, 02:11 AM
That's because you haven't passed any parameters to it.

You'll need to use cmd prompt or a batch file to call the exe with the parameters (such as where the ROM file is).

Please dont be argumentive about my question. Just need a little hepl. I have read tone of posts on this forum tried different cabs got my herald p4350 somewhat pleasing to me but i need more. i am trying to flash touch-it vista cube on my phone and got error at 3% ok. iread about making my phone hard spl so that it would take any rom .
what are the parameters that you are talking about? i downloaded nbh extractor and when i try to open it it just flashes and thats it .
could someone please help me out here. THANKS for who will take time to try and help

l3v5y
26th August 2008, 03:08 AM
Please dont be argumentive about my question. Just need a little hepl. I have read tone of posts on this forum tried different cabs got my herald p4350 somewhat pleasing to me but i need more. i am trying to flash touch-it vista cube on my phone and got error at 3% ok. iread about making my phone hard spl so that it would take any rom .
what are the parameters that you are talking about? i downloaded nbh extractor and when i try to open it it just flashes and thats it .
could someone please help me out here. THANKS for who will take time to try and help
The tools in this thread are more about ROM cooking than flashing.

This is not the same as HardSPL. I'd recommend using the links here (http://forum.xda-developers.com/showthread.php?t=369397). Particularly this (http://forum.xda-developers.com/showthread.php?t=358225) one.

mr.x_black
27th August 2008, 12:32 PM
The tools in this thread are more about ROM cooking than flashing.

This is not the same as HardSPL. I'd recommend using the links here (http://forum.xda-developers.com/showthread.php?t=369397). Particularly this (http://forum.xda-developers.com/showthread.php?t=358225) one.

Thank you 13v5y
i did everything you said and it worked like a charm.
i not only have hardspl on my device but i was also able to succesufully flash touch-it black on my herald thanks again.
Now if i want to flash another rom on my device do i have to go back to the offcial rom first or just flash as i need with any rom designed for herald on the current rom?

l3v5y
27th August 2008, 04:04 PM
Thank you 13v5y
i did everything you said and it worked like a charm.
i not only have hardspl on my device but i was also able to succesufully flash touch-it black on my herald thanks again.
Now if i want to flash another rom on my device do i have to go back to the offcial rom first or just flash as i need with any rom designed for herald on the current rom?HardSPL should remain after a ROM flash, so you should be good to flash any other ROM on top. When the new ROM has finished flashing, hard reset.

Schooleydoo
10th October 2008, 11:37 PM
I continue to get the error: "Could not open RUU_signed.nbh"

Any insights?

Did a solution ever come of this? Ive tried both on xp and Vista, and get the above error message. Ive tried putting the two files in the root of my C: and S: drive, and in a folder, ive also tried renaming the nbh file to something simple like n.nbh and using another roms nbh file. I am trying to extract from the 1.56.110.4 reconstructed UK T-mobile nbh.

Im not that experienced with DOS so heres my step by step...

Run>CMD

cd.. to get to the C: root

then i type nbh\nbhextract.exe ruu_signed.nbh

(nbh being the folder my nbhextract.exe and my ruu_signed.nbh files are)

I then get the error message "could not open ruu_signed.nbh".

I am about to flash the HTC SPL supplied in the Kaiser revert thread, but would still like to know what I am doing wrong.

DaveShaw
11th October 2008, 12:54 AM
Did a solution ever come of this? Ive tried both on xp and Vista, and get the above error message. Ive tried putting the two files in the root of my C: and S: drive, and in a folder, ive also tried renaming the nbh file to something simple like n.nbh and using another roms nbh file. I am trying to extract from the 1.56.110.4 reconstructed UK T-mobile nbh.

Im not that experienced with DOS so heres my step by step...

Run>CMD

cd.. to get to the C: root

then i type nbh\nbhextract.exe ruu_signed.nbh

(nbh being the folder my nbhextract.exe and my ruu_signed.nbh files are)

I then get the error message "could not open ruu_signed.nbh".

I am about to flash the HTC SPL supplied in the Kaiser revert thread, but would still like to know what I am doing wrong.

Put the NBHExtract and n.nbh in C:\NBH.
Start, Run, CMD.
Now Type :
C: {Enter}
CD\NBH {Enter}
NBHExtract n.nbh {Enter}

Ta
Dave

mellymel_45417
29th October 2008, 06:53 AM
It worked perfectly. Thanks!

biggercrap
4th November 2008, 01:41 PM
I had successfully extract the RUU_Signed.nbh into 01_Unknown.nb,
and 00_SPL.nb. Now, what do I do to the 01_Unknown.nb

l3v5y
4th November 2008, 01:47 PM
I had successfully extract the RUU_Signed.nbh into 01_Unknown.nb,
and 00_SPL.nb. Now, what do I do to the 01_Unknown.nbWhat size is the 01_Unkown.nb and are there any other files?

GSLEON3
4th November 2008, 10:24 PM
I had successfully extract the RUU_Signed.nbh into 01_Unknown.nb,
and 00_SPL.nb. Now, what do I do to the 01_Unknown.nb

01_Unknown is almost always a radio rom, you'll find it to be around 17,000kB.

You do nothing with that. 02_OS.nb is what you want.

biggercrap
5th November 2008, 03:21 AM
What size is the 01_Unkown.nb and are there any other files?


01_Unkown.nb 92,300 KB
00_SPL.nb 256 KB

the king
5th November 2008, 03:33 AM
Wonderful work.
Deep thanx

l3v5y
5th November 2008, 12:32 PM
01_Unkown.nb 92,300 KB
00_SPL.nb 256 KB
Contrary to the earlier statement, 01_Unknown.nb appears to be your OS file, Rename it to OS.nb, and then treat it as any other OS.nb file.

biggercrap
5th November 2008, 07:46 PM
Contrary to the earlier statement, 01_Unknown.nb appears to be your OS file, Rename it to OS.nb, and then treat it as any other OS.nb file.

What can I do to this files? further extraction?

padvou
7th November 2008, 07:30 PM
http://forum.xda-developers.com/showpost.php?p=2050849&postcount=2

Leo68
12th November 2008, 12:53 AM
Here is a tool to extract contents from NBH files, it is valid for all new devices using NBH format for ROM upgrades (Hermes, Trinity, Artemis, Herald, Excalibur, etc...).

It will extract all separate ROM parts contained in NBH file, and convert splash screens to BMP format. When run with '-v' parameter it also shows the signature for each block.

For more information on NBH format see NBH wiki page (http://wiki.xda-developers.com/index.php?pagename=Hermes_NBH).

Example usage:

C:\> NBHextract.exe hermimg_HTCWWE_1.35.255.2_Ship.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: HERM200
CID: QTEK_001
Version: 1.35.255.2
Language: WWE
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_GSM.nb
Extracting: 03_MainSplash.nb
Encoding: 03_MainSplash.bmp
Extracting: 04_SubSplash.nb
Encoding: 04_SubSplash.bmp
Extracting: 05_ExtROM.nb
Extracting: 06_OS.nb
C:\>

EDIT: Removed dependency of C++ run time libraries, if you where getting an error try downloading the file again.
he intentado flshear la shift y ahora no me funciona el wm cuando le doy me sale todo negro. Intento flasearla de nuevo y me sale error 240"file open"(the snapvue up... can not open the requested file. Please check your snapvue software utility.). he intentado quitandole la bateria a ver si se olvida y nada. No se que he hecho mal me la he cargado. Lo intente hacer todo desde xp. sOCORRO.

faizal.abdullah
13th December 2008, 10:43 AM
i cant run NBHextract.exe in my pc command.
How?

1stkaiseruser
27th December 2008, 04:51 AM
hi, I have a kaiser 100 aka Tilt, I would like to remove the logo @ the start up. I see you have done this before, can you help me with that, with a step by step ?if you have time and don t mind it?thanks a lot for your reply.

Guillotine
10th January 2009, 06:55 AM
i cant run NBHextract.exe in my pc command.
How?

:)

Faisal and others .. hello first .. then .. Just drag the .nbh file and drop it on the nbhextract.exe and the magic will flow .. it will take some time and it will extract the files to the same folder the nbhextract.exe is within.

Rgrds

twanj
14th February 2009, 02:57 PM
Hello guys,

hope you can help me out. I've been trying to make a rom backup in order to use uspl with flashing. However there seems to be some kind of thing i'm missing. I've extracted the raw files from my htc hd, but when i try to use them in a kitchen, the process fails. I don't know which file is causing this. I have a feeling that the nbh file a got from dutty's site is causing this (i will pm him for help) but of course i am not a expert, rather a newbie trying to figure this process out.
Could someone help me in the right direction? Or am i missing something?
BTW i am using a vodafone htc hd. Perhapsa this is of influence
Thanks


This is my log:
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Error in block 83 (00530000 - 00540000)
Device: BLAC10000
CID: HTC__E11
Version: 1.14.404.3
Language: NLD
Extracting: 00_Unknown.nb
Error: Could not read complete file
Error while extracting file 0
Extracting: 01_SPL.nb
Error: Could not read complete file
Error while extracting file 1
Extracting: 02_MainSplash.nb
Error: Could not read complete file
Encoding: 02_MainSplash.bmp
Error: Could not read full image
Error while extracting file 2
Extracting: 03_OS.nb
Error: Could not read complete file
Error while extracting file 3

l3v5y
14th February 2009, 03:07 PM
Hello guys,

hope you can help me out. I've been trying to make a rom backup in order to use uspl with flashing. However there seems to be some kind of thing i'm missing. I've extracted the raw files from my htc hd, but when i try to use them in a kitchen, the process fails. I don't know which file is causing this. I have a feeling that the nbh file a got from dutty's site is causing this (i will pm him for help) but of course i am not a expert, rather a newbie trying to figure this process out.
Could someone help me in the right direction? Or am i missing something?
BTW i am using a vodafone htc hd. Perhapsa this is of influence
Thanks


This is my log:
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Error in block 83 (00530000 - 00540000)
Device: BLAC10000
CID: HTC__E11
Version: 1.14.404.3
Language: NLD
Extracting: 00_Unknown.nb
Error: Could not read complete file
Error while extracting file 0
Extracting: 01_SPL.nb
Error: Could not read complete file
Error while extracting file 1
Extracting: 02_MainSplash.nb
Error: Could not read complete file
Encoding: 02_MainSplash.bmp
Error: Could not read full image
Error while extracting file 2
Extracting: 03_OS.nb
Error: Could not read complete file
Error while extracting file 3
It seems like the NBH file you're using has extraction protection.

If you use an official ROM image from a shipped ROM, you shouldn't get this issue.

twanj
15th February 2009, 07:29 PM
you were right, used another nbh file and it worked. Still confused because the first came from a shipped.exe.

Thanks for the advice

stylez
21st February 2009, 03:12 PM
Put the NBHExtract and n.nbh in C:\NBH.
Start, Run, CMD.
Now Type :
C: {Enter}
CD\NBH {Enter}
NBHExtract n.nbh {Enter}

Ta
Dave

Thanks for the instructions just had to hit the thread again as had forgotten how and the .txt i wrote made no sense :D

kostas66
24th February 2009, 02:45 PM
01_Unknown is almost always a radio rom, you'll find it to be around 17,000kB.

You do nothing with that. 02_OS.nb is what you want.

Hi,
after some searching and reading I managed to NBHextract the components of the shipped ROM I am using (RUU_Diamond_HTC_ITA_2.03.408.2_Radio_Signed_Diamo nd_52.51.25.26_1.09.25.23_Ship.exe).

The result is the following:

=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: DIAM10000
CID: HTC__405
Version: 2.03.408.2
Language: ITA
Extracting: 00_Unknown.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_OS.nb

As there is already a "03_OS.nb" what is in the "00_Unknown.nb" (file size 20.971.520 bytes) ??

Thanks !
K

PS: I compared the above "01_SPL.nb" (file size 524.288 bytes) with the "SPLdumped.nb" (same file size) extracted from the ROM and they are actually IDENTICAL !
PPS: If usefull I can upload the RAW files dumped from the phone and the above ones...

DaveShaw
24th February 2009, 02:55 PM
Hi,
after some searching and reading I managed to NBHextract the components of the shipped ROM I am using (RUU_Diamond_HTC_ITA_2.03.408.2_Radio_Signed_Diamo nd_52.51.25.26_1.09.25.23_Ship.exe).

The result is the following:

=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: DIAM10000
CID: HTC__405
Version: 2.03.408.2
Language: ITA
Extracting: 00_Unknown.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_OS.nb

As there is already a "03_OS.nb" what is in the "00_Unknown.nb" (file size 20.971.520 bytes) ??

Thanks !
K

PS: I compared the above "01_SPL.nb" (file size 524.288 bytes) with the "SPLdumped.nb" (same file size) extracted from the ROM and they are actually IDENTICAL !
PPS: If usefull I can upload the RAW files dumped from the phone and the above ones...

00_Unknown contains the radio parts IIRC, but it's not a simple job getting at the actual radio image, there are some other tweaks needed. :)

Dave

kostas66
24th February 2009, 04:49 PM
00_Unknown contains the radio parts IIRC, but it's not a simple job getting at the actual radio image, there are some other tweaks needed. :)

Dave

... and where can I start reading/studying from ? Suggestions ?

Thanks a lot !
K

DaveShaw
24th February 2009, 05:04 PM
... and where can I start reading/studying from ? Suggestions ?

Thanks a lot !
K

00_Unknown might not be the radio actually.

Here's a thread I bookmarked a while ago on Radio Dumping: http://forum.xda-developers.com/showthread.php?t=359015

Try PM'ing P1Tater or AllTheWay, they seem to know what the crack is :p

Dave

kostas66
24th February 2009, 06:54 PM
00_Unknown might not be the radio actually.

Here's a thread I bookmarked a while ago on Radio Dumping: http://forum.xda-developers.com/showthread.php?t=359015

Try PM'ing P1Tater or AllTheWay, they seem to know what the crack is :p

Dave

Thanks, I will try !

K

noolander
18th May 2009, 03:03 PM
the tool will not run for me:(

AnthonyD
19th June 2009, 06:16 AM
Everytime I try to use it I get this.

C:\------\------(not giving personal information)>C:\NBHextract.exe SPCS_20755_RUU_signed.NBH -v
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Verbose mode enabled
Error: Could not open 'SPCS_20755_RUU_signed.NBH

axl30
19th July 2009, 11:39 PM
please i can have the source code of nhbextract?

DaveShaw
19th July 2009, 11:42 PM
please i can have the source code of nhbextract?

You'd be better with the Yang Source I reckon : http://code.google.com/p/htc-flasher/wiki/YANG

Ta
Dave

digital_panda
14th January 2010, 12:20 PM
This is exactly what I was looking for before starting to play with cooked ROMs.
Thank you very much, a must have tool :)

besthost
14th February 2010, 10:15 AM
I can't extract ruu_signed.nbh
I tried imgfstodump .raw file after using itsutils, but to no avail.
Any suggestions?

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

c:\>nbhextract\nbhextract.exe ruu_signed.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Error: Could not open 'ruu_signed.nbh'


And yes, this rom is in the same directory as nbhextract

Nightwish2
26th February 2010, 06:27 PM
Perhaps it seems a dumb question to you, but how do I use this tool?

I have a custom rom here (not on my phone but as data) and I'd like to extract that.. can I do that with this tool and how or what else do I need?

Thanks for helping.

besthost
28th February 2010, 05:52 PM
Perhaps it seems a dumb question to you, but how do I use this tool?

I have a custom rom here (not on my phone but as data) and I'd like to extract that.. can I do that with this tool and how or what else do I need?

Thanks for helping.

use cmd, kaiser kitchen, rom extractor :)

driger_1
19th July 2010, 08:59 PM
plz help
i extraked the exe file on desctop
then i opent it but nothing (i was expecting this)
then i draget ant droped an nbh file ant it stoped
i said ok here we are then it was wroke to me this

=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Device: HERM200
CID: QTEK_001
Version: 1.35.255.2
Language: WWE

and then it stoped there! it close and i didnt see anything change! heeeeeeeeeeeeeeeeeeeeeeeelllllllllllllllllllp!!!!! !?????

vapor
15th August 2010, 12:50 AM
When trying to use this with a stock TMO USA HD2 ROM, the splash image is empty. Any ideas?

triskelion_0912
19th September 2010, 07:40 AM
can anyone help me plsss....
i cant open this program..
i want to download ozdroid and its a rar file..
i extracted the rar file and a nbh file is there...
i downloaded this program and its not working anyone help pls:(

triskelion_0912
19th September 2010, 08:06 AM
every time i open nbhextractor theres like a comand prompt comming out.. but its fast i cant even see what it say.. when i open nbhextractor it will pop out and in a sec it will disapear help pls

zaMATRIX
17th December 2010, 06:26 AM
same problem to me helpplzzzzz

jmonroe
27th December 2010, 11:21 PM
I am learning as well how to use the tools...however, from being an IT tech...I do know that the reason it opens and closes fast is because you cannot just double click on the exe file...go to Start button in windows...Accessories...and Command prompt.

Once you have the DOS like screen open...you can change directory by using cd c:\thelocationofyourfileusingfoldernamesanda\betwe enfolders\nbhextract.exe

That will open it up and dont forget to run it with the name of your file you are trying to extract.

vinod407
29th December 2010, 10:19 AM
NBHExtract.exe is not a valid Win32 application.
Device - HTC Touch viva
Windows - 6.1

l3v5y
30th December 2010, 02:07 AM
NBHExtract.exe is not a valid Win32 application.
Device - HTC Touch viva
Windows - 6.1

That means you don't have the requirements, or are trying to run it on something other than a desktop PC.

AzTahE
27th January 2011, 04:21 PM
I tried, but only one file is created 00_OS.nb. Someone knows why is that?

FlashT
5th February 2011, 02:18 AM
After extraction i got one file with .nd extention... how do i extract files from it?

pleasureelements
15th April 2011, 03:33 AM
Hi friend thanks so much for the post and the file... I am trying to work with it know... I am NEW to flashing and I actually got the Windows Mobile 7 on to my HTC HD2 but I really want to downgrade back to the WM6.5, I'm hoping this file help... I followed the instructions to the "T" to upgrade but to downgrade it's not to clear maybe there is a way where I can flash a NEW WinMo Rom back on my HTC HD2. If you have any idea where I can look please let me know. Oh and by the way, I'm sorry for this being such a Newbie question. Please help me out... Thanks again for the program and the info you've already provided.

sinewaves
30th April 2011, 12:09 PM
Sweet thanks !!

rahgoshafan
9th May 2011, 04:59 PM
Using NBHextract with the Hermes AKU3 swedish ROM, and the log shows some error as follow:


C:\>NBHextract.exe RUU_signed.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts

Error in block 308 (01340000 - 57ED698B)
Device: HERM200
CID: QTEK_G09
Version: 2.05.263.1
Language: SVE
Extracting: 00_IPL.nb
Extracting: 01_SPL.nb
Extracting: 02_MainSplash.nb
Encoding: 02_MainSplash.bmp
Extracting: 03_SubSplash.nb
Encoding: 03_SubSplash.bmp
Extracting: 04_ExtROM.nb
Extracting: 05_GSM.nb
Extracting: 06_OS.nb

C:\>

Is it normal? Thanks.


D:\>NBHextract.exe RUU_signed.nbh
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scrip

Error: 'RUU_signed.nbh' is not a valid .nbh file
Could not open 'tempfile.dbh'

c9801120
12th May 2011, 01:15 PM
Any luck? im trying to do the same and no luck i installed winimage and doesnt work, also the perl thing is soo confusing i dont know what to do

See:

http://wiki.allshadow.com/index.php/ROMs_For_Dummies:_Part_Two
http://htc-linux.org/wiki/index.php?title=How_to_Extract_an_OS_Image
http://forum.xda-developers.com/showthread.php?t=320504

They were very useful for me...