View Full Version : Creating custom ROM image
Anonymous
15-06-2003, 06:13 AM
Hey,
Thanks for creating xda-developers edition rom image. I just installed it on my t-mobile xda and it rocks. I would like to create my own rom image and have couple of questions.
I downloaded and installed mkrom tools and was able to compile new rom. I looked through the readme file, cfg files and file1 and file2 directory and was trying to see how u put ezwap2 in there. I found references to it in the default.reg file as well as the init* file. However I was unable to find ezwap2.exe in files1 and files2 directory of the mkrom. am i missing something?
Also I'm trying to install a registered copy of pocketbackup into the ROM image and was wondering if anybody has done it so i can see the example of how to do it?
What tools do u use to open the .cab files to see what's inside on the windows side not pocketpc side?
How do u check what changed on the pocketpc?
Is it possible to use the emulator for testing or does it have to be tested on regular device? i'm not talking about the ROM image itself but all the work before creating the image (like inserting files, registry entries, etc.)
Thanks for info,
alex
itsme
15-06-2003, 09:34 AM
you can extract the ezwap files from an original o2 rom, by running perl opimg2dir.pl NK.nbf newop.cfg newop ( newop must be an existing directory )
then copy the ezwap files manually to either files1, or files2
you can open .cab files using winrar. the filenames will appear corrupted, but usually one of the files will contain the original filenames if you look at it with a hexeditor.
to view changed, we use 'ssnap.exe', to take snapshots of file and registry state. and compare the snapshots using diff, or windiff, or vim.
if you are creating an image for an ARM based device, it wont run on the emulator.
Anonymous
15-06-2003, 07:57 PM
thank you for replying. so ezwap2.exe was a part of the O2 rom that's why it doesn't appear in the files2 directory of mkrom package. is it possible to use mkrom with At&t or T-mobile roms?
also i noticed when i activate my phone part and dial a number it appears as a string xxxxxxxxxx, when i was running my T-mobile rom it would dial as (xxx) xxx-xxxx . is it possible to change phone application in ur rom to behave same way as my t-mobile did?
one more thing, can i install applications into program files from files1 or files2 directories or do they only go into windows directory?
alex
Peter Poelman
15-06-2003, 08:04 PM
also i noticed when i activate my phone part and dial a number it appears as a string xxxxxxxxxx, when i was running my T-mobile rom it would dial as (xxx) xxx-xxxx . is it possible to change phone application in ur rom to behave same way as my t-mobile did
If you set the country code to '1', you should see the number in US format again. It's in the registry:
[HKEY_CURRENT_USER\ControlPanel\Phone]
"CountryCode"=dword:00000000
Anonymous
15-06-2003, 10:19 PM
thanks for a quick reply.
I just changed the value in the registry to '1' and rebooted my xda. when i dial the numbers they still appear as xxxxxxxxxx instead of (xxx) xxx-xxxx. did i miss something?
thanks
alex
Anonymous
16-06-2003, 04:25 AM
hi,
i ran the command that u posted earlier to extract the rom image
perl opimg2dir.pl NK.nbf newop.cfg newop
and i got this in return.
the newop directory i created was empty.
[root@killer xda]# perl opimg2dir.pl NK.nbf newop.cfg newop
found at 01bc0000
hdr: 00000000 00000000 00000000
Image that i'm using is the one that was posted in the forums. xda-developers special rom created by Jeff Summers
any help is apreciated
thanks
alex
itsme
16-06-2003, 07:38 AM
this is what should happen:
D:\Program Files\PROGRAMME A\english>mkdir y
D:\Program Files\PROGRAMME A\english>perl c:opimg2dir.pl nk.nbf x y
found at 01940020
hdr: 34798243 00001001 00000000
00000000 4 0 \windows\customid.dat
00000004 185 0 \windows\customtab.dat
000000bd 5355 20404 \windows\platformxxx.reg
000015a8 5502 20408 \windows\platformxxx.reg
00002b26 16884 20412 \windows\platformxxx.reg
00006d1a 21592 23410 \windows\platformxxx.reg
0000c172 129182 23410 \Windows\Startup\O2 smart Menu Light.PPC_2577.CAB
0002ba10 21562 2620739 \windows\platformxxx.reg
00030e4a 21584 27202 \windows\platformxxx.reg
0003629a 21624 2620749 \windows\platformxxx.reg
0003b712 1028 23458 \windows\platformxxx.reg
D:\Program Files\PROGRAMME A\english>dir x
Volume in drive D is mp3 archive
Volume Serial Number is 1C47-DE32
Directory of D:\Program Files\PROGRAMME A\english
2003-06-16 07:36 583 x
1 File(s) 583 bytes
0 Dir(s) 4,202,954,752 bytes free
D:\Program Files\PROGRAMME A\english>dir y
Volume in drive D is mp3 archive
Volume Serial Number is 1C47-DE32
Directory of D:\Program Files\PROGRAMME A\english\y
2003-06-16 07:36 <DIR> .
2003-06-16 07:36 <DIR> ..
2003-06-16 07:36 5,355 20404-platformxxx.reg
2003-06-16 07:36 5,502 20408-platformxxx.reg
2003-06-16 07:36 16,884 20412-platformxxx.reg
2003-06-16 07:36 129,182 23410-O2 smart Menu Light.PPC_2577.CAB
2003-06-16 07:36 21,592 23410-platformxxx.reg
2003-06-16 07:36 1,028 23458-platformxxx.reg
2003-06-16 07:36 21,562 2620739-platformxxx.reg
2003-06-16 07:36 21,624 2620749-platformxxx.reg
2003-06-16 07:36 21,584 27202-platformxxx.reg
2003-06-16 07:36 4 customid.dat
2003-06-16 07:36 185 customtab.dat
11 File(s) 244,502 bytes
2 Dir(s) 4,202,819,584 bytes free
D:\Program Files\PROGRAMME A\english>
Anonymous
16-06-2003, 04:41 PM
Still not working for me. i keep getting the same error message i was before. are u running this under windows? activeperl?
opimg2dir.pl nk.nbf x y
what's the x for?
thanks
alex
Anonymous
16-06-2003, 07:35 PM
i just tried extracting the NK.nbf file on a different PC and had the same problem as before.
found at 01bc0000
hdr: 00000000 00000000 00000000
I'm using the NK.nbf file from Jeff's download of the already compiled image. is this ok or should i use original rom image?
also i noticed on ur code is the reference to x or (newop.cfg) should that file contain anything in it?
thanks
alex
Anonymous
17-06-2003, 12:04 AM
XDA developer Itsme,
i'm little confused as to the proper way of adding applications to the ROM.
do u have an example or steps needed to insert a program. I tried following the readme file but got little confused. i tried to update the ezwap application to version 2.5 and basically i couldn't find ezwap.exe in files1 and files2. is the mkrom.zip file contain everything needed for the rom? does the rom itself has the ezwap in it? let me see if i got this right:
1) add files to files1 or files2 directory. any registry entries created by the application should go into default.reg?
is it possible to copy the files to program files directory or do they only go into \windows?
thanks for the help
alex
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.