欢迎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.
=====================================================

授之以之: 

系列3. 建立My_ROM_Kitchen(ROM模板)

这篇文章将介绍如何建立ROM kitchen。如系列2中提到的,My_ROM_Kitchen是基于XDA上Bepe’s ROM Kitchen。你可以直接从原发布页下载该ROM kitchen,请注意下载后,务必将压缩包里面的OEM,SYS和ROM文件夹替换成从Dopod官方WM6.0 ROM中提取的OEM,SYS和ROM(在系列2中制作的)。或者你可以在本文末从本站下载My_ROM_Kitchen.zip,我在Tools里面添加了NBHTool.exe,并修改了CreateROM.bat,使之能自动调用NBHTool制作RUU_signed.nbh刷机文件。

解开下载的My_ROM_Kitchen.zip,里面含TOOLS文件夹,和CreateROM.bat批处理,BuildOS.exe和pkgcommon.dll。如图1。BuildOS.exe用来定制并dump OS文件。CreateROM.bat将会将重新Dump的OS文件制成os-new.nb。 

建立WM6.0 ROM模板

Fig.1 My_ROM_Kitchen

  

将已从Dopod官方版WM6.0 ROM中提取的OEM,SYS和ROM文件夹复制到BuildOS.exe所在目录下。如图2。OEM,SYS和ROM文件夹内所含内容已大致在系列2中介绍过了。在此略过。

建立WM6.0 ROM模板

Fig.2 将OEM,SYS和ROM文件夹复制到目录 

 

双击运行BuildOS.exe,工具界面如图3。因为我们到现在还没有制作任何OEM软件包,或者option.xml,所以Option下面是空空如也。制作好OEM选项后的界面如图4和图5。这个是我自己基于官方版ROM制作的Softbank ROM Kitchen,里面加入了SoftBank的一些专用设置,中日显示、输入,SMS、MMS等均没问题。(PS.嘿嘿,SoftBank X01HT的朋友有福了)。也就是在制作这个ROM Kitchen过程萌发了我写这系列教程。吹牛一下:

采用Yahei字体,可正确显示日,简繁。 

日文输入用Asukal的IME31J,中文输入用汉王马兰花。

MMS用MMSLite,可正常收发MMS和S!メール(***@softbank.ne.jp)

增加Softbank的专用设置,如网络名称显示,系统信息为X01HT。 

采用itamae的方法设定SoftBank的网络设置,可正常3G上网。

还有一些实用的系统工具如注册表优化之类等,不一一列出了。

稳定性方面很不错,至今发生死机(这才是最爱)。 

唯一缺点,通用问题,无法正常打开http://x-series.softbankmobile.co.jp

 

我将在这个系列文章的最后发布这个ROM模板,但我还是希望Fans能自行制作自己的ROM,这也是本系列文章的初衷所在,因为制作ROM kitchen过程中享受到的乐趣却是无可比拟。 

言归正传,如果Option里面有可选项,将鼠标移到可选项上面,将会显示该选项的注释,如图4,Remote Desktop显示注释“远程桌面”。

建立WM6.0 ROM模板

Fig.3. BuildOS界面 

WM6.0 ROM模板 

Fig.4 SoftBank ROM模板界面一

WM6.0 ROM模板

Fig5. SoftBank ROM模板界面二

虽说目前BuildOS里面是空空如也,我们还是试运行下,点击菜单栏下面的绿色三角形按钮,开始制作OS。软件的状态栏将会显示进程情况,如图6。

建立WM6.0 ROM模板

Fig.6 运行BuildOS.exe

如果制作OS过程中发生错误,将会弹出窗口提示并中止程序。大部分的错误都是因为有重复文件造成的。如果一切正常,当状态栏显示Done表示OS文件已制作完毕。BuildOS.exe会在目录下生成temp文件夹。如图7。

  

建立WM6.0 ROM模板

Fig.7 生成temp文件夹

temp里面除了boot.hv和boot.rgu以及log.txt文件(如图8),dump文件夹里面都是一大堆重新dump的OS文件,见图9。log.txt是log文件,这个文件很重要,如果BuildOS.exe在执行过程提示错误,自动中止退出后,必须通过这个log文件来检查是哪里出问题。如何进行BuildOS.exe过程提示错误的查错,将在这次讨论。在此略过。 

建立WM6.0 ROM模板

Fig.8 temp文件夹

建立WM6.0 ROM模板

Fig.9 dump文件夹内容

如果BuildOS.exe正常结束,那么运行CreateROM.bat批处理文件将一大堆dump的OS文件重新制作成os-new.nb。双击运行后,界面如图10。

建立WM6.0 ROM模板

Fig.10 运行CreateROM.bat

根据提示,按任意键后开始制作os-new.nb。

建立WM6.0 ROM模板

Fig.11 开始重新制作OS.nb

又会出现一大堆文件信息,刷我屏,好大胆!如图12。

建立WM6.0 ROM模板

Fig.12 刷屏的文件信息

当提示“已在temp目录下生成os-new.nb文件…”,如图13,此时批处理已经在temp目录下制作好os-new.nb,如图14。

建立WM6.0 ROM模板

Fig.13 os-new.nb制作完毕

建立WM6.0 ROM模板

Fig.14 在temp目录下生成os-new.nb 

按任意键将会调用NBHtool开始制作RUU_signed.nbh刷机文件,将os-new.nb添加到NBHTool。见图15。NBHtool的使用方法已在系列1中介绍过。如你不想在此时制作nbh,可自行将程序关掉。

建立WM6.0 ROM模板

Fig.15 l将os-new.nb添加到NBHTool 

关闭NBHtool后,会提示“nbh文件已制作完毕…”,按任意键将退出批处理。图16。

建立WM6.0 ROM模板

Fig.16 按任意键退出批处理 

至此,我们已试运行一遍ROM kitchen了,因为还未添加任何OEM软件,所以第一次的试运行应该是不会出现错误提示的。

下次,我们将会开始自行制作OEM文件了。此内容将分3个部分介绍:

1. 如何将软件的cab安装包制成OEM Package 

2. 如何制作绿色软件的OEM Package

3. 如何制作注册表修改的OEM Package

  

OK. That’s All.

 

软件下载(Tools download) 

My_ROM_Kitchen(基于Bepe’s ROM Kitchen)

Download my_rom_kitchen.zip
zip- File
06. Aug 2007 (2844Hits)

  

 

===============English explanation===============

  

Lesson 3. Build ROM Kitchen

Today, we will build our ROM kitchen. As I mentioned here, My_ROM_Kitchen is based on Bepe’s ROM Kitchen from XDA. You can directly download ROM kitchen from released page. Be sure you need to replace the OEM, SYS and ROM folders in ROM kitchen with the one you extracted from Dopod official WM6.0 ROM in previous. Alternatively, you can download My_ROM_kitchen.zip above, I added NBHTool.exe to TOOLS, and modified CreateROM.bat to let it can automatically invoke NBHTool to make RUU_signed.nhb.

My_ROM_kitchen.zip includes TOOLS folder and CreateROM.bat, BuildOS.exe and pkgcommon.dll. See Fig.1. BuildOS.exe is used to customize and dump OS file. CreateROM.bat will make the ROM:os-new.nb.

Copy OEM, SYS and ROM folders which are extracted from Dopod offical WM6.0 ROM in advacne. See Fig.2. 

Run BuildOS.exe by double click it. Fig.3 shows the main windows of BuildOS.exe. There is nothing under Option because we do not make any OEM or option.xml yet. Fig.4 and Fig.5 are the screenshots of my SoftBank ROM kitchen, I added some softbank settings, it works well with chinese(CHT and CHS), japanese display and input, SMS and MMS. Some features:

Using MS Yahei to support CHT, CHS and JP.

Using Asukal’s IME31J to input japanese, chinese input uses 汉王马兰花 

Using MMSLite as MMS application, it can recieve and send MMS and S!mail(***@softbank.ne.jp)

Added softbank settings, e.g. SoftBank network name.

Using itamae’s AP setting to set softbank internet connection. 

Some system tweak tools.

Good stability! No crash up to now.

One problem found is it can not log on http://x-series.softbankmobile.co.jp correctly. 

 

 

I will release this ROM kitchen at the end of series. However I hope Fans would make owner ROM Kitchen by yourself, this is the original intention why I write this series articles. 

If there are options under option box, it will display the tip if you move mouse hover it. i.e. in Fig4. hover mouser above Remote Desktop displays “远程桌面”.

Even though there is no option in BuildOS, we still make a test running. Click the green triagle will start making OS. The status bar will dispaly the processing status see Fig.6.

If error occurs, a error window will pop up and abort the BuildOS.exe. Most error occurrence because of there are duplicated files. If everything is ok, the status bar will diplay “Done”. BuildOS.exe will create temp folder under directory, see Fig.7. 

See Fig.8. Temp folders contains boot.hv(hard coded file), boot.rgu(registry file), log.txt and dump folder which has a lot of dumped os files (See Fig.9). Log.txt is the log file, it is very helpful, in case of error occured. You should check log file to find out where is the problem. We will talk about how to do diagnosis next.

Next, run CreateROM.bat to make the os-new.nb file. Double click it, see the DOS window as Fig.10.

Press any key to start making os-new.nb. See Fig.11. 

Lots of file information will flash screen. See Fig.12.

When “已在temp目录下生成os-new.nb文件…” displayed, as Fig.13. CreateROM.bat is already made the os-new.nb file under temp folder. See Fig.14.

Then press any key will invoke NBHTool to make RUU_signed.nbh. Adding os-new.nb to NBHTool, see Fig.15. If you dont want to make it right now, just close it. After close NBHTool, it will display “nbh文件已制作完毕…” on scree, press any key to exit bat. See Fig.16. 

OK, we have tested ROM kitchen. Is it simply? Because we have not add any OEM yet, error may not happen in first running.

Next, we will start to make OEM Package, I will divided it into 3 parts:

1. How to make cab to OEM Package. 

2. How to make OEM Package of software which can run without registry. 

3. How to make OEM Package of registy modification.

  

OK, that’s all.

[tags]hermes, PDA, ROM kitchen, tutorial, wm6.0, X01HT[/tags]

 

Feed Me


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

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