Site Announcements

Be the first to get the news! Use Forum's RSS Feed!
Start!


ROM editing tools

Share/Save/Bookmark

FAQ and anything that involves all of the phones, post your questions about Windows Mobile here.

ROM editing tools

Postby dattad » Tue Jun 24, 2008 9:11 am

Use these tools at your own risk! They may make your device completely unusable!

If you want to extract the contents of a rom or modify it, you should learn how to use imgfs_tools (by mamaich).
The step by step intructions are given in the readme file (tools.txt), so read it carefully and have some practice.
The main warning is you can do anything with the dumped rom, but don't use the resulting rom, if you're not sure, that you did everything properly.

The typical process should be (for i120/i128 and older GSmart devices):
Code: Select all
prepare_imgfs.exe nk.nba

or (for new devices):
Code: Select all
prepare_imgfs.exe nk.nba [-nosplit]

Code: Select all
viewimgfs.exe imgfs_raw_data.bin

...modify "dump" directory as you need... then:
Code: Select all
BuildImgfs.exe

for i120/i128 and older GSmart devices:
Code: Select all
make_imgfs.exe nk.nba

or (for new devices):
Code: Select all
make_imgfs.exe nk.nba [-nosplit]
Attachments
imgfs_tools_182.rar
(123.07 KiB) Downloaded 750 times
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Postby spectra9 » Fri Jun 27, 2008 8:58 pm

Thanks for the tools dattad. I've downloaded it and the WM6.1 RUS ROM from http://stream.ifolder.ru/6634211. I've played around with dumping and rebuilding the ROM. I notice that some of the files have the "0419.mui" extension, which apparently is the codepage for Russian language.

My main goal is to make this ROM in English language, so my main question are:
How can I change it to English? Do I have to download the English version of the files some place, copy it to the dump folder and rebuild the ROM?

Also, what about adding certain apps to the ROM. For example, I want to include a certain SIP as default into the ROM. I have the CAB file for the SIP but how do I put the files in it into the ROM?

Sorry if my questions are a bit too "newbish" to you :). I know there are sites like xda-developers which talk about this kinda stuff, but none of them are talking about the gSmart i128 specifically, so I'm not sure if the instructions there apply to the i128 too
spectra9
 
Posts: 18
Joined: 23 Jun 2008
Phone: GSmart i128

Postby dattad » Tue Jul 01, 2008 10:26 am

Well, the next step after you use imgfs_tools and get dump folder is to run package_tool (by bepe) and make packages.

The steps are:
- run Package Tool
- open Dump folder
- press Build Packages

In a dump folder you get:
OEM folder with the packages like OEMApps, OEMDrivers, OEMMISC etc. The OEM packages are device dependant, so you cannot dump for example any HTC rom and use its oem packages in your own new rom for Gsmart.
SYS folder. It's Windows Mobile OS, it doesn't depend on device, and you can take sys folder from other device and port it to yours, but there're packages which end in _Lang_0409 and _DPI_192. Lang_0409 means that the OS language is English, 0419 - Russian and so on. DPI_192 means VGA, DPI_96 - QVGA. Don't forget about these packages when you change something in a SYS folder.

SYS Porting Guide
If there's a SYS folder from other device with the OS build you want to use, then you should follow some important steps.
Here I just copy some info from xda-developers.com (guide by ababrekar):

For porting the SYS you need G’Reloc Tool (by Misar)
- Copy G'Reloc to the folder where you have original SYS folder
- Run it and write down numbers under slot 0, slot 1 and size of rom
- Replace your original SYS folder with Donor's SYS
- Run G'Reloc again
- Notice that this time numbers under slot 0, slot 1 and size of rom may be different
- Just replace them with numbers you got in the firt step
- Click »Doit!« and wait till it shows "Done" in the status bar

Info: In some cases you will need to copy WinCENLS_WWE folder to SYS folder (if not present in Donor's SYS) from your original Gsmart SYS, otherwise your device will not boot.
Attachments
G'Reloc.zip
(223.22 KiB) Downloaded 445 times
package_tool_v1.01.zip
(75.08 KiB) Downloaded 537 times
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Postby dattad » Wed Jul 02, 2008 5:20 am

The tutorial wouldn't be full without the information about how to get a dump folder back after you used package tool and made packages. So the next step after you modified packages in OEM and SYS folders is to use a BuildOS tool (by bepe).
Before you run BuildOS tool you should copy boot.rgu file from your device (the file is in Windows folder) to your "kitchen".

Have a look at this folder structure:

Code: Select all
"your_new_rom" folder
|
|__OEM
|__ROM
    |__XIP <-- put boot.rgu here!
|__SYS


It means you make a XIP folder inside of a ROM folder, then put boot.rgu into xip folder, otherwise BuildOS tool will not work! BuildOS tool should be placed into your_new_rom folder.

Summary: the full process (using all the tools) should be:
- prepare_imgfs.exe nk.nba
- viewimgfs.exe imgfs_raw_data.bin
- package tool
- modify OEM and SYS folders as you need
- g'reloc (don't forget about numbers under slot 0, slot 1 and size of rom)
- buildos tool
- BuildImgfs.exe
- make_imgfs.exe nk.nba


spectra9,
1. it's always better to use the latest os build, and the best way to get it is to extract sys folder out of a rom for some HTC device (can be found at xda-developers). Just one of the builds: http://rapidshare.com/files/114403986/1 ... folder.rar
2. yes, you can use an oficial rom, if a device doesn't boot with yours, but there's always a risk, don't forget about it. If your device doesn't turn on at all and doesn't respond on button presses (to flash a new rom you always need to press buttons), it probably means that the device can only be repaired in a service center.
Attachments
BuildOS.rar
(62.47 KiB) Downloaded 433 times
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Postby alxxx » Wed Jul 02, 2008 6:35 pm

how to run Packagetool??? I have a error "(0x0000135)"....
Trium 2 Nokia 6610 2 Ngage 2 Qtek S100 2 6630 2 Nokia N95 2 Ubiquio 401 **FTouchfloSL+MortButtons+Netfront+TCMP+WebcameraPlus**
alxxx
 
Posts: 56
Joined: 19 Jun 2008
Location: Brazil
Phone: Ubiquio 401

Postby dattad » Thu Jul 03, 2008 2:26 am

alxxx, you have to install Microsoft .NET Framework 2.0 on your PC!
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Postby alxxx » Thu Jul 03, 2008 3:58 am

ok, i do. Now, what file that control screen orientation to replace and solve my problem with i64 rom to ubiquio 401??? Is this?? "d9d7d86d-3f83-4289-bd32-aa1972a1447e" . there many phone files there...i think. Well...a packege is a folder that contains files and registry entries for these files??? What is a package?? wowwww.....i want solve i64 rom screen orientation in a Ubiquio 401...plsss
Trium 2 Nokia 6610 2 Ngage 2 Qtek S100 2 6630 2 Nokia N95 2 Ubiquio 401 **FTouchfloSL+MortButtons+Netfront+TCMP+WebcameraPlus**
alxxx
 
Posts: 56
Joined: 19 Jun 2008
Location: Brazil
Phone: Ubiquio 401

Postby dattad » Thu Jul 03, 2008 7:46 am

alxxx wrote:a packege is a folder that contains files and registry entries for these files?

right
alxxx wrote:what file that control screen orientation to replace

I guess you should replace pxa27x_lcd.dll module in OEMDrivers package in i64 rom with the original pxa27x_lcd.dll from your ubiquio rom.
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Postby alxxx » Thu Jul 03, 2008 8:52 am

ok i dump rom, run packagetool. and replace lcd.dll, so now i have to create a ROM\XIP folder in OEM and put boot.rgu there?? boot.rgu from 164 or ubiquio rom? and after??
Trium 2 Nokia 6610 2 Ngage 2 Qtek S100 2 6630 2 Nokia N95 2 Ubiquio 401 **FTouchfloSL+MortButtons+Netfront+TCMP+WebcameraPlus**
alxxx
 
Posts: 56
Joined: 19 Jun 2008
Location: Brazil
Phone: Ubiquio 401

Postby dattad » Fri Jul 04, 2008 9:45 am

alxxx wrote:create a ROM\XIP folder in OEM

you don't need to put ROM folder into OEM folder. OEM, SYS, ROM should be placed in one folder.
use boot.rgu from i64.
alxxx wrote:and after??

and after:
dattad wrote:- buildos tool
- BuildImgfs.exe
- make_imgfs.exe nk.nba
Please consider a small donation to GSmart Club!
I don't answer PMs regarding GSmart, use the forum for your questions.
User avatar
dattad
Admin
 
Posts: 1333
Joined: 28 Mar 2008
Location: Russia
Phone: GSmart t600

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest