欢迎Hermes爱好者s署名转载本文,转载请遵循署名-非商业性使用-相同方式共享 2.5协议,注明出自http://www.thinkagain.cn 

You can copy, distribute this article, but dont forget to point a link to my site:http://www.thinkagain.cn

English user please scrolls down for english explanation.
=====================================================

授之以之: 

系列1. 提取OS.nb、分解合成RUU_signed.nbh

这是本系列第一篇文章,本文将介绍如何从Dopod官方WM6.0 ROM中提取OS.nb文件以及如何使用NBHtool分解及合成RUU_signed.nbh刷机文件,以及单独刷机原理安全刷机方法

首先请到Dopod官方站点或从本站”HTC Asia发布官方版WM6.0 ROM“文内链接下载官方版838Pro WM6.0 ROM。下载后的文件是Zip压缩文件。请用winrar解开:

 

extract_OS_01

Fig1 解开zip文件 

 

解开后的目录里面包含一个名为“SEA”的子目录,目录下有2个文档,070421_WM6_NewFeaturesGuide_PPC_Generic_English.pdf是升级指南,另一个是RUU_Hermes_DOPODASIA_WWE_3.54.707.3_6275_1.47.00.10_108_Ship.exe升级文件。

extract_OS_02

Fig2 SEA目录下文件

 

请用Winrar将该exe文件解开。将会获得如下8个文件。 

 

extract_OS_03

Fig3 RUU_Hermes…_Ship.exe内包括文件 

 

继续用winrar将RUU_Inside.exe解开,解开得到的7个文件中,其中包括RUU_signed.nbh文件。

  

extract_OS_04

Fig4 解开RUU_Inside得到的文件

  

RUU_signed.nbh就是该ROM的刷机文件了。ROM里面含有的Radio,OS,extended_ROM等部分。一个完整的RUU_signed.nbh应该含有如下7个nb文件:

IPL.nb,IPL文件

SPL.nb,SPL文件 

Radio.nb,Radio文件

PrimarySplash.nb,第一开机画面

SecondarySplash.nb,第二开机画面 

Herm_ExtendedRom.nb, extendedROM文件

Windows.nb, OS文件。

  

单独刷机原理

一个完整的RUU_signed.nbh文件里面包括7个部分。刷机的时候会自动将这7部分内容全部刷到你的hermes上。如果一个RUU_signed.nbh文件只单独含有Radio文件,那么刷该nbh文件时,只会单单更新Hermes的Radio部分,而其它部分将保持不变。也就是说,刷机时的ROM更新部分是基于nbh文件的所含内容。进一步,我们可以通过制作含有不同部分的nbh文件,以达到单独刷某部分的ROM的目的。如果我们制作的nbh文件含有PrimarySplash.nb和Windows.nb,那么将会更新原ROM里面的PrimarySplash(第一开机画面)和系统部分,而Radio等均会保持不变。这就是单独刷机原理。

  

提取nb或合成nbh工具最常用的就是Dutty’s NBHtool v1.1NBHtool。NBHtool是个分解打包nbh文件的专用工具,可点此到原发布地址查看具体说明。利用该工具可很方便将nbh分解成nb文件,或者将nb文件合成为一个nbh刷机文件。

 

分解RUU_signed.nbh 

下面我们就来用该工具分解RUU_signed.nbh文件。双击nbhtool.exe运行软件。

 

extract_OS_05

Fig5 NBHtool主界面

 

点击Decompile NBH file,在打开的选择窗口中,选中刚才从Dopod官方ROM中解压得到的RUU_signed.nbh文件。 

 

extract_OS_06

Fig6 选择RUU_signed.nbh文件 

 

接着选择拟存放nb文件的文件夹,如下图是在C盘上建立一个838Pro_WWE目录,将nb文件夹解压到该目录中。

  

extract_OS_07

Fig7 指定存放nb文件的文件夹

  

点击OK后,nbhtool开始解开RUU_signed.nbh文件。

 

extract_OS_08

Fig8 nbh文件已分解

 

当出现Fig8提示时,说明nbhtool已将nbh文件分解完毕,注意共有7个文件写入到指定存放nb文件的文件夹(C:\838Pro_WWE)。文件的数量代表了该ROM nbh文件含有几部分内容。 

 

extract_OS_09

Fig9 从官方版ROM提取的7个nb文件 

 

其中Windows.nb就是Windows mobile 6.0系统文件。这个Windows.nb就是我们今后要定制的东西,也是ROM kitchen的主要文件都将要从这个文件中提取。这些内容将会在后续系列中介绍。

最后,顺便说下合成RUU_signed.nbh和介绍2种安全刷机方法。 

 

合成RUU_signed.nbh

  

合成RUU_signed.nbh正好和分解相反,点击NBHTool上的“NB to NBH”标签,切换到合成RUU_signed.nbh界面。窗口中分别提供了IPL,SPL,First Splash(第一开机画面),Second Splash(第二开机画面),OS(系统文件),Ext.Rom(Extended ROM),Radio的选择项。点击各项边上的按钮,可添加对应文件。通过添加指定文件,可制作ROM部分刷机的nbh文件

 

compile_nbh_1

Fig10 NBHtool 合成nbh标签界面

 

如我们将制作一个只含有Primarysplash和secondarysplash以及Windows.nb 3个部分ROM的nbh。 

compile_nbh_2

Fig11 nb文件

  

首先点击First Splash边上的按钮,在弹出的窗口中,选中PrimarySplash.nb文件。将该文件添加到First splash里面。

compile_nbh_3

Fig12 添加PrimarySplash到First Splash  

 

同样,将Secondarysplash.nb和windows.nb分别添加到Second Splash和OS里面。此步骤很重要,切记不能选错,一个萝卜一个坑,不能将OS选到Radio里面,或者将OS选到Ext.Rom里面,否则在使用合成的nbh文件刷机时,将会出严重问题。

  

compile_nbh_6

Fig13 添加nb文件

  

点击“Generate NBH file”,指定存放RUU_signed.nbh的文件夹。如C:\838Pro_WWE。

 

compile_nbh_5

Fig14 指定存放nbh的文件夹

 

点击OK后,开始制作nbh文件。制作完毕后,RUU_signed.nbh会自动生成在指定的文件夹内。 

compile_nbh_7

Fig15 生成RUU_signed.nbh文件

  

基于RUU_signed.nbh的安全刷机方法

 

这里简要介绍下基于RUU_signed.nbh的2种安全刷机方法。 

1. 用Olipro的Custom RUU进行刷机,此法可单刷Radio,OS,开机画面,Extended ROM等任意部分ROM,可将刷机风险降到最低,有效防止机子变砖头。如果在刷机过程中出现意外,只需再次运行该软件就可以重新刷机。

2. 用Micro SD卡刷机,将RUU_signed.nbh改名为HERMIMG.nbh,然后格式化Micro SD卡,将单独将HERMIMG.nbh拷贝如卡内。将卡插入Hermes内,然后按住电源键和OK键,用笔捅下reset,将会出现刷机界面,按下电源按钮就可以刷机了。

注意,刷机时间因刷机内容不同而不一样,单刷Radio需10-20min,刷OS需5-10min。 

 

本文涉及工具软件(Tool Software download):

Winrar,下载 

dutty’s NBHtool v1.1

1. XDA下载

2. 本站下载 Download nbhtool.exe
exe- File
03. Aug 2007 (4889Hits)

 

欢迎Hermes爱好者s署名转载本文,转载请遵循署名-非商业性使用-相同方式共享 2.5协议,注明出自http://www.thinkagain.cn

  

=============English Explanation=================

 

Lesson1 How to extract OS.nb, decompile and compile NBH

Lesson 1 talks about how to extract OS.nb from Dopod official WM6.0 ROM, and how to decompile nbh file to nb files or compile nbh file. The main idea of how to flash ROM part separately and 2 safe ROM flash ways will be introduced too. 

Firstly, please download the Dopod official WM6.0 ROM from official site or seek the download link in one of my posts:HTC Asia发布官方版WM6.0 ROM“. The downloaded file is a zip file. You need to use winrar to uncompress it. See Fig1.

After you uncompress it, you will get a subfolder named “SEA” and 2 files under it. 070421_WM6_NewFeaturesGuide_PPC_Generic_English.pdf is guide to update ROM. RUU_Hermes_DOPODASIA_WWE_3.54.707.3_6275_1.47.00.10_108_Ship.exe is the executable flash file.

Using winrar continue to uncompress this executable flash file will release 8 files. There is a exe file with name RUU_Inside. See Fig3. 

Continue uncompress the RUU_Inside.exe by using winrar, finally you can get the RUU_signed.nbh file. See Fig4.

RUU_signed.nbh is the flash ROM file, it consisted by OS, Radio and other parts. A full RUU_signed.nbh should include the following 7 parts:

IPL.nb 

SPL.nb

Radio.nb

PrimarySplash.nb 

SecondarySplash.nb

Herm_ExtendedRom.nb

Windows.nb 

Main idea of flash ROM part separately

A full RUU_signed.nbh file includes 7 parts as listed above. Each part stands for a function in your hermes. if you use this nbh file to flash your, these 7 function will be updated completely.  If the nbh file used to flash only contains OS part, then just OS in current ROM will be updated. This means, which function in hermes will be flashed is depend on which part is built in nbh file. Therefore, we can compile a nbh file which merely contain one or several nb file, e.g. only OS.nb or OS.nb and Radio.nb. annd flash the specified nbh to update ROM parts separately.

Dutty’s NBHtool v1.1 is the most common tool to compile nb files to nbh file or decompress nbh file to nb files. Click here to see the detail introduction of it. 

Decompile RUU_signed.nbh

Double click to run the nbhtool.exe, Fig5 is the main window.

Click “Decompile NBH file”, in the new opened window, select the RUU_signed.nbh which is uncompressed from dopod official rom. See Fig6. 

Specify the folder that the nb files will be placed. See Fig7. In this case, the folder is C:\838Pro_WWE.

Click OK, nbhtool will start its uncompile process. Fig8′ appearance indicates nbh file is uncompiled. Fig8 notices that 7 files are wrote to C:\838Pro_WWE. The file number hints how many parts are included in nbh file. See Fig9. Fig9 illustrates the 7 files uncompiled from nbh file.

The Windows.nb file is the Windows mobile 6.0 system file. The  necessary files of ROM kitchen are almost extract from this file. I will talk how to build ROM kitchen later. 

Compile RUU_signed.nbh

The compile process is reverse with decompile one. Click “NB to NBH file” tab to switch to the compile window. See Fig10. The main window also have 7 options including IPL, SPL, First Splash(PrimarySplash), Second Splash(SecondarySplash), Radio, OS and Ext Rom(extended Rom). Click the right button in each option will open a window to add the corresponding file.

e.g, we want to compile a nbh file that includes PrimarySplash.nb, secondarysplash.nb and OS.nb. See Fig11. 

Click the right button in First splash option to add the PrimarySplash.nb, See Fig12. In the same way, add the secondarysplash and os.nb to tool.  Be sure, dont add the wrong nb file! See Fig13.

Click “Generate NBH file”, specify the folder used to place nbh file. See Fig 14.

Click OK to start compile nbh file. After compiling, the RUU_signed.nbh will be created in the specified folder. See Fig15. 

2 safe ROM flashing way based on RUU_signed.nbh

1. Using Custom RUU by Olipro.

2. Using Micro SD card to flash ROM. Rename RUU_signed.nbh to HERMIMG.nbh. Copy it to micro sd card. After micro sd card is inserted in Hermes, press OK and power button simultaneously, use stylus to push the reset hole untill the flash screen is displayed, then press power button to start ROM flashing. 

Elapsed time is depend on the nbh file. Only flash radio may need 10-20 min, flash OS may need 5-10min.

You can copy, distribute this article, but dont forget point a link to my site:http://www.thinkagain.cn.

[tags]Hermes,tutorial,ROM kitchen,pda,WM6.0,x01ht[/tags] 

Feed Me


转载文章请注明转载自:ThinkAgain - Let's Blog!

引用地址:http://www.thinkagain.cn/archives/302.html