[HTC Tornado] challhsu:
Translated from Chinese, any questions please refer

http://www.koxo.cn/bbs/thread-7146-1-1.html.

You can down here.

91files

rapidshare

All tools and pics contained on the zip.

________________________________________________

TXT Preview

WM6 ROM Cook Guide for Novice

Cook a ROM is easier than you thought.

By challhsu

2007.08.03

Translated from Chinese

Take my WM6.EN.Build.AnniversaryofP.L.A.Special.SP for example.

All tools needed prepared, except the copyright protection software.

Copyright Tools needed:

EmEditor

UltraEdit

And this may help you advanced:

WinCE CAB Manager

Steps:

ONE Decompress the ROM

1.Put the file nk.nbf to the folder where this guide in.

2.Run the TyphoonNbfTool.exe on the folder T。Like this pic,click the文件 (File).

3.click 打开NBF…(open NBF…),find nk.nbf.

4.select nk.nbf,and click打开(Open).

5.right-click on the OS,choose Dump decrypted.

CAUTION:

Not all the ROMs only have OS, still have others like IPL SPL GSM Splash Screen,this guide这only have how to cook the OS.

6.just click 保存(S)(save(s)).

7.If it successed, you will see:

8.back to the folder where nk.nbf is, and you will find a new file OS.n_d.

8．rename OS.n_d to OS.nb。

9．run decompress.bat,to decompress the ROM. You will see a cmd windows,just wait for the windos disappear. And then, you will find a new folder and 6 new files. OK, the ROM is decompressed.

Dump this folder contain all files of the ROM, If you just want to add or delete some files, now you can.

default.reg and user.reg formed the registry of the ROM.

initflashfiles.dat we called文件发行表,

we do not need to edit the other 3 files dump_MemoryMap.txt imgfs_raw_data.bin imgfs_removed_data.bin.

TWE Edit the ROM:

10.Add or Delete files:

Enter the folder dump,you can see many folders and files. Folders contains modules（模块） while files means files of ROM.

If you do not choose the Hide System Files(隐藏受保护的系统文件),you can find more hide folders and files. They are all system files, do not edit them unless you know what you do.

Example:If we want to cancel the STK_UISP’s English support, we can find the file STK_UISP.exe.0409.mui on the forlder dump, and delete it.

Similarly, you can also add or delete other functions by add or delete the right folders and files. But advanced functions may need several files and need to edit the reg and initflashfiles.dat（对于高级功能，往往需要删除多个文件，并且需要同时对注册表和文件发行表进行操作。

Be sure you know what you are doing.

11.Edit the registry:

At this step, you need EmEditor UltraEdit and Notepad2.exe.You can also take other tools to instead them.

Back to the folder where default.reg is.

（1）code fo .reg(注册表编码):

Open the default.reg by EmEditor, and choose file(文件)—save as(另存为), you can see a window like the pic below. chooseUTF-16LE 添加Unicode签名(BOM) 无更改, and save.

After save, the size of the fils approximately twice that before.

Take the user.reg to UTF-16LE too.

（2）Edit the registry:

Open default.reg and user.reg by Notepad2.exe.

Notepad2.exe can use more eye-catching to see all keys, it is not easy to confuse.使用Notepad2.exe可以比较醒目的看到各个键值，不容易混淆。

And then, you can edit the reg.

Strongly recommends the novice take some simple operate for test.

There list some simple keys can be used for pracise:

Bluetooth name:

HKEY_LOCAL_MACHINE\Ident\Name

Automatic check time(自动对时)

HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL下NITZEnable 0 means close while 1 means opern

Change the operator name:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\RIL\OPERATORNAMES

中国移动的网络号"46000",value data随便填你要显示的字符，联通的网络号为46001

12.edit initflashfiles.dat文件发行表的修改：

文件发行表名称为initflashfiles.dat，open it by Notepad2.exe or other. And add or remove what you want.

Example：

root:-Directory(“My Documents”) means MD My Documents

Directory(“My Documents”):-Directory(“My Ringtons”) means MD a folder My Ringtons on folder My Documents.

Directory("\Windows\Start Menu"):-File("Speed Dial.lnk","\Windows\scut.lnk") means copy the scut.lnk on \windows to \windows\start menu, and rename it to speed dial.lnk

Three compress the ROM:

13run compress.bat，when you see press any key to continue… ,do it,until the cmd windows disappeared. If no error, you will take the new OS.nb.

But if you find error, you must check and fix it.

@ECHO off

set _FLATRELEASEDIR=.

copy default.reg boot.rgu /y

t\rgucomp.exe -b

pause——this is the first press any key to continue…,if you see error before there, it means there must be some errors on default.reg

copy boot.hv default.hv /y

copy user.reg boot.rgu /y

pause——this is the second press any key to continue…,if you see error before there, it means there must be some errors on user.reg

t\rgucomp.exe -b

pause

copy boot.hv user.hv /y

del boot.rgu

del boot.hv

copy default.hv dump /y

copy user.hv dump /y

copy initflashfiles.dat dump /y

pause

t\buildimgfs

pause

t\make_imgfs os.nb –nosplit

Example:

Though the text, we know, this error appears before the first press any key to continue…so,we know there must be some error on default.reg.

Go on, within a few lines of 3.means the error is on the 3 line of default.reg

Open default.reg by UltraEdit-32，you will see”***DOS**?”,click”N”.

Then, you can see a test like the pic below.

[HKEY_CLASSES_ROOT\.pkg]

@=“package”——there should be@=”package” 这里和其他对比可知，引号应为半角，这里错用全角。应为@=”package”

Fixed the error, and run compress.bat again, till no errors appeared. And you can take the new OS.nb.

14enter the folder T, and run nb2nbf_tornado.exe.

Steps:

1.Model ID;

2.Language;

3.CID;

4.Output file;

5.Click;

6.Find the OS.nb;

7.Choose OS;

8.Click at here, it will take a number, it’s important, be sure don’t change it;

9.click Translate, build the new nk.nbf。

You will see: