Jump to content


Photo

Rom Dump/Build Application

* * * * * 2 votes

  • Please log in to reply
706 replies to this topic

#21
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

Thanks wes, i will try it.
one more thing, if i want change folder NetCF in sys folder to new 3.5 from new build only, is there need to cook follow my procedure above?

First try what I suggested. This way you will see if you get any errors.

If you change the folder NetCF you will have to run ExtReloc, but only starting from your steps 9-11 (Realloc IMGFS modules). You don't have to do anything with xip. Don't tick "build and insert xip"


Hope that it will work for you. I have tried so many times that I am surprised that it doesn't work for some people.




Hopefully by the end of the week I will post a new version which will have an option to port XIP from new OS as part of automatic build process. I also have made some changes with error messages, if an error is detected it will stop build and have a message that build failed. I think this way it may be less confusing.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#22
sx1000

sx1000

    Newbie

  • Members
  • Pip
  • 6 posts
After DUMP ROM:


20.01.2010 01:04 <DIR> .
20.01.2010 01:04 <DIR>..
16.01.2010 12:37 <DIR> CSC
20.01.2010 01:00 <DIR> dump
20.01.2010 01:00 34 562 dump_MemoryMap.txt
16.01.2010 13:03 <DIR> Finished ROM
20.01.2010 00:59 447 217 664 imgfs.bin
20.01.2010 01:04 0 log.txt
20.01.2010 01:00 <DIR> OEM
07.01.2010 18:46 319 850 496 pda.nb
17.01.2010 07:33 3 064 ReadMeFirst.txt
20.01.2010 01:01 <DIR> ROM
17.01.2010 07:28 29 696 romTool.exe
20.01.2010 01:00 <DIR> SYS
20.01.2010 00:58 <DIR> Tools
20.01.2010 00:59 7 864 320 xip.nb
20.01.2010 01:01 <DIR> XIPtools

7 файлов 774 999 802 байт




After BuildRom:

20.01.2010 01:06 <DIR> .
20.01.2010 01:06 <DIR> ..
16.01.2010 12:37 <DIR> CSC
20.01.2010 01:00 <DIR> dump
20.01.2010 01:00 34 562 dump_MemoryMap.txt
16.01.2010 13:03 <DIR> Finished ROM
20.01.2010 00:59 447 217 664 imgfs.bin
20.01.2010 01:04 970 log.txt
20.01.2010 01:06 0 log2.txt
20.01.2010 01:00 <DIR> OEM
07.01.2010 18:46 319 850 496 pda.nb
17.01.2010 07:33 3 064 ReadMeFirst.txt
20.01.2010 01:01 <DIR> ROM
17.01.2010 07:28 29 696 romTool.exe
20.01.2010 01:00 <DIR> SYS
20.01.2010 01:05 <DIR> temp
20.01.2010 00:58 <DIR> Tools
20.01.2010 00:59 7 864 320 xip.nb
20.01.2010 01:01 <DIR> XIPtools

8 файлов 775 000 772 байт

Edited by sx1000, 19 January 2010 - 01:12 PM.

  • 0

#23
kaplex

kaplex

    Newbie

  • Members
  • Pip
  • 40 posts

First try what I suggested. This way you will see if you get any errors.

If you change the folder NetCF you will have to run ExtReloc, but only starting from your steps 9-11 (Realloc IMGFS modules). You don't have to do anything with xip. Don't tick "build and insert xip"


Hope that it will work for you. I have tried so many times that I am surprised that it doesn't work for some people.




Hopefully by the end of the week I will post a new version which will have an option to port XIP from new OS as part of automatic build process. I also have made some changes with error messages, if an error is detected it will stop build and have a message that build failed. I think this way it may be less confusing.


i've just tested the cooking just now. dump rom and build rom without making any changes.
the file can be flashable and phone can be function. only the same bug is existed.
when connect phone to computer using activesync, my phone become unstable.
i've flashed again with mst files to test wether the fault is in my phone, but the bug not existed which means is normal and got no problem.

Any other person got same problem with me?

  • 0

#24
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

After DUMP ROM:


20.01.2010 01:04 <DIR> .
20.01.2010 01:04 <DIR>..
16.01.2010 12:37 <DIR> CSC
20.01.2010 01:00 <DIR> dump
20.01.2010 01:00 34 562 dump_MemoryMap.txt
16.01.2010 13:03 <DIR> Finished ROM
20.01.2010 00:59 447 217 664 imgfs.bin
20.01.2010 01:04 0 log.txt
20.01.2010 01:00 <DIR> OEM
07.01.2010 18:46 319 850 496 pda.nb
17.01.2010 07:33 3 064 ReadMeFirst.txt
20.01.2010 01:01 <DIR> ROM
17.01.2010 07:28 29 696 romTool.exe
20.01.2010 01:00 <DIR> SYS
20.01.2010 00:58 <DIR> Tools
20.01.2010 00:59 7 864 320 xip.nb
20.01.2010 01:01 <DIR> XIPtools

7 файлов 774 999 802 байт




After BuildRom:

20.01.2010 01:06 <DIR> .
20.01.2010 01:06 <DIR> ..
16.01.2010 12:37 <DIR> CSC
20.01.2010 01:00 <DIR> dump
20.01.2010 01:00 34 562 dump_MemoryMap.txt
16.01.2010 13:03 <DIR> Finished ROM
20.01.2010 00:59 447 217 664 imgfs.bin
20.01.2010 01:04 970 log.txt
20.01.2010 01:06 0 log2.txt
20.01.2010 01:00 <DIR> OEM
07.01.2010 18:46 319 850 496 pda.nb
17.01.2010 07:33 3 064 ReadMeFirst.txt
20.01.2010 01:01 <DIR> ROM
17.01.2010 07:28 29 696 romTool.exe
20.01.2010 01:00 <DIR> SYS
20.01.2010 01:05 <DIR> temp
20.01.2010 00:58 <DIR> Tools
20.01.2010 00:59 7 864 320 xip.nb
20.01.2010 01:01 <DIR> XIPtools

8 файлов 775 000 772 байт

The only thing that you forgot to put is the path of your kitchen folder (which would be at the beginning of your log.txt). Can you post it.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#25
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

i've just tested the cooking just now. dump rom and build rom without making any changes.
the file can be flashable and phone can be function. only the same bug is existed.
when connect phone to computer using activesync, my phone become unstable.
i've flashed again with mst files to test wether the fault is in my phone, but the bug not existed which means is normal and got no problem.

Any other person got same problem with me?


When you first posted about your problems, you said that you converted your dump from the phone using rod's utility and you got your pda.nb0. Have you tried to flash the phone with this file?

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#26
sorg

sorg

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Devices:Samsung Omnia II
i think, topic name is misleading about CSC dumping.
I thought, somebody wrote utility to dump CSC from phone.

it should be named something like "Disassembling and Creating CSC".

Edited by sorg, 19 January 2010 - 07:18 PM.

  • 0

#27
GTx-M.M

GTx-M.M

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:Samsung Omnia II
hi

when i dumped a rom i got a don't send dialog ( u know send report to microsoft ) the problem was with PKGtool.exe after it finished i got the folders like SYS ROM and dump etc.

then

i put my favorite programs and files in the rom then i Build it like u said let it as default don't check or uncheck just changed the name the options i pressed
Build the status like this

Please Wait ...
Error Opening .ROM\imageinfo.bin
( BuildOS Window came and pressed Play then wait to it done then closed it )
BuildOS exited.
(ExtReloc window came closed it directly )
ExtReloc exited.
notfound
imgfs-new.bin not Found
***Created File Finshed RO\JA1X0.nb0
Done... Check for Error Messages.

i realy have that JA1X0.nb0 in Finished ROM Folder

about the kitchen dir its in
(E:\O2 KITCHEN\Z_i8000kitchen)

now my question is it safe to flash my device or not
ur advice btw : i dumped it and it was ok same files and programs i added them but is there a solution for the errors


and thanks for the kitchen

Edited by GTx-M.M, 20 January 2010 - 12:23 AM.

  • 0

#28
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

hi

when i dumped a rom i got a don't send dialog ( u know send report to microsoft ) the problem was with PKGtool.exe after it finished i got the folders like SYS ROM and dump etc.

then

i put my favorite programs and files in the rom then i Build it like u said let it as default don't check or uncheck just changed the name the options i pressed
Build the status like this

Please Wait ...
Error Opening .ROM\imageinfo.bin
( BuildOS Window came and pressed Play then wait to it done then closed it )
BuildOS exited.
(ExtReloc window came closed it directly )
ExtReloc exited.
notfound
imgfs-new.bin not Found
***Created File Finshed RO\JA1X0.nb0
Done... Check for Error Messages.

i realy have that JA1X0.nb0 in Finished ROM Folder

about the kitchen dir its in
(E:\O2 KITCHEN\Z_i8000kitchen)

now my question is it safe to flash my device or not
ur advice btw : i dumped it and it was ok same files and programs i added them but is there a solution for the errors


and thanks for the kitchen


1. If you had a problem with PkgTool.exe, did it really split all the files in OEM and SYS folders. You should check what is there.
2. When you had an "Error opening .ROM\imageinfo.bin. You can check if the file imageinfo.bin is in SYS\.ROM\ folder.
3. If you run BuildOS, when it finishes, you can see in BuildOS if there were any errors (before you close it).
4. If you had an error "imagefs-new.bin not found it means that the file has not been created by imgsFromDump.exe.
5. I don't think the built ROM is complete, so don't use it.
That's why I am almost finished with the new version which has more error checking. If there is one error it will stop building ROM and have message "Building ROM failed". If you can wait a day of two I should have it then.

Looking at your path to the kitchen E:\O2 KITCHEN\Z_i8000kitchen, I can see one potencial problem. You have a space in the path O2 Kitchen. Try to remove the space and try again.

A brief explanation, why I think it may fail when you have a space in the path. The application used in the kitchen are Console based - osnbtool, imgfsToDump, imgfsFrom dump etc. To run them you specify command line parameters. Basically you open DOS window and type the command. For example to extract xip.bin from the .nb file command is like this "osnbtool.exe -d pda.nb 1 xip.bin". So, osnbtool has 4 parameters: -d, pda.nb, 1, xip.bin. If you put in place of pda.nb a path like yours E:\O2 Kitchen\Z_i8000kitchen\pda.nb", you can see that the space between O2 and Kitchen will split the parameter into two: E:\O2, Kitchen\Z_i8000kitchen\pda.nb. This will make 5 parameters in osnbtool command, which it can't process. It is looking for certain values for each parameter. The same applies to other programs. Unfortunately, those are programs that everybody uses. I will have a look if I can do something when I pass a path to those programs. But for now you can try to remove the space, or better still copy what's in your Z_i8000kitchen to O2KITCHEN - without a space.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#29
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

i think, topic name is misleading about CSC dumping.
I thought, somebody wrote utility to dump CSC from phone.

it should be named something like "Disassembling and Creating CSC".

The same would apply to dumping ROM, but everybody calls rom dumping not disassembling. The commands in some of the tools are 'dump' not diassemble. So I kept with the same philosphy. Sorry if some people get confused.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#30
kaplex

kaplex

    Newbie

  • Members
  • Pip
  • 40 posts

When you first posted about your problems, you said that you converted your dump from the phone using rod's utility and you got your pda.nb0. Have you tried to flash the phone with this file?


Yes. I've tested the nb0 converted from rom_dump.bin. the flashing got no problem and same as activesync. i think we need more tester. to see whether this problem arose from me only...

  • 0

#31
sorg

sorg

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Devices:Samsung Omnia II

The same would apply to dumping ROM, but everybody calls rom dumping not disassembling. The commands in some of the tools are 'dump' not diassemble. So I kept with the same philosphy. Sorry if some people get confused.


Dumping of ROM means copying ROM from phone. Dumping = Copying/Grabing and nothing else.
Word "dump" came to firmware scene from computer debuggers. There is long existing phrase "Memory Dump" used in debuggers/analysers. And this phrase means "copy of memory as is". So, in firmware terms it means copy of NAND ROM as is.
There is well known set of utilities called "itsutils" which helps to make dump of NAND ROM from most devices.
That's called ROM dumping.

What you are talking about is disassembling, unpacking.

So, you mess terms.

Edited by sorg, 20 January 2010 - 06:11 AM.

  • 0

#32
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

Dumping of ROM means copying ROM from phone. Dumping = Copying/Grabing and nothing else.
Word "dump" came to firmware scene from computer debuggers. There is long existing phrase "Memory Dump" used in debuggers/analysers. And this phrase means "copy of memory as is". So, in firmware terms it means copy of NAND ROM as is.
There is well known set of utilities called "itsutils" which helps to make dump of NAND ROM from most devices.
That's called ROM dumping.

What you are talking about is disassembling, unpacking.

So, you mess terms.

Sorry, I don't understand your problem. What is a big deal? I call it what I like it and I am not going to change it because it doesn't suit you. You read what is inside the thread if it is not what you are after just go away and read other threads. You will have a lot of work to change the titles on most of them. 

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#33
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

hi

when i dumped a rom i got a don't send dialog ( u know send report to microsoft ) the problem was with PKGtool.exe after it finished i got the folders like SYS ROM and dump etc.

then

i put my favorite programs and files in the rom then i Build it like u said let it as default don't check or uncheck just changed the name the options i pressed
Build the status like this

Please Wait ...
Error Opening .ROM\imageinfo.bin
( BuildOS Window came and pressed Play then wait to it done then closed it )
BuildOS exited.
(ExtReloc window came closed it directly )
ExtReloc exited.
notfound
imgfs-new.bin not Found
***Created File Finshed RO\JA1X0.nb0
Done... Check for Error Messages.

i realy have that JA1X0.nb0 in Finished ROM Folder

about the kitchen dir its in
(E:\O2 KITCHEN\Z_i8000kitchen)

now my question is it safe to flash my device or not
ur advice btw : i dumped it and it was ok same files and programs i added them but is there a solution for the errors


and thanks for the kitchen


I checked again, and I had a space in the path name and it worked ok. 

The problem with messages that you got occurs if you don't select work folder when you start romTool.exe - I will fix it. If you press 'Select Folder' and then 'build', you shouldn't get error message 'not found'.

I tried building the nb0 file using command line and then with my application (they both use the same programs for part of building) and I got the same results. So I am really not sure why you have problems with active sync?

I added version 1.2Beta to the first post. You may try this.

Edited by wes58, 20 January 2010 - 08:42 AM.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#34
GTx-M.M

GTx-M.M

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:Samsung Omnia II
when i changed the name of the folder i think it dumping the ROM succeed but the wired thing that PKGtool.exe stopped working window appeared again

then after i pressed build there was same errors first Error Opening .ROM\imageinfo.bin

Please Wait
Error Opening .ROM\imageinfo.bin
BuildOS exited
ExtReloc exited
***Created File imgfs-new.bin
***Created File Finished ROM\pdaNew.nb0
Done... Check for Error Messages.

all i wrote above was in the old version v1.1

in new version

when i pressed Build

Please Wait
Error Opening .ROM\imageinfo.bin
BuildOS exited
ExtReloc exited
dump not Found
Error! ROM Building Failed .

Edited by GTx-M.M, 20 January 2010 - 11:25 AM.

  • 0

#35
GTx-M.M

GTx-M.M

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:Samsung Omnia II

1. If you had a problem with PkgTool.exe, did it really split all the files in OEM and SYS folders. You should check what is there.
2. When you had an "Error opening .ROM\imageinfo.bin. You can check if the file imageinfo.bin is in SYS\.ROM\ folder.
3. If you run BuildOS, when it finishes, you can see in BuildOS if there were any errors (before you close it).
4. If you had an error "imagefs-new.bin not found it means that the file has not been created by imgsFromDump.exe.
5. I don't think the built ROM is complete, so don't use it.
That's why I am almost finished with the new version which has more error checking. If there is one error it will stop building ROM and have message "Building ROM failed". If you can wait a day of two I should have it then.

Looking at your path to the kitchen E:\O2 KITCHEN\Z_i8000kitchen, I can see one potencial problem. You have a space in the path O2 Kitchen. Try to remove the space and try again.

A brief explanation, why I think it may fail when you have a space in the path. The application used in the kitchen are Console based - osnbtool, imgfsToDump, imgfsFrom dump etc. To run them you specify command line parameters. Basically you open DOS window and type the command. For example to extract xip.bin from the .nb file command is like this "osnbtool.exe -d pda.nb 1 xip.bin". So, osnbtool has 4 parameters: -d, pda.nb, 1, xip.bin. If you put in place of pda.nb a path like yours E:\O2 Kitchen\Z_i8000kitchen\pda.nb", you can see that the space between O2 and Kitchen will split the parameter into two: E:\O2, Kitchen\Z_i8000kitchen\pda.nb. This will make 5 parameters in osnbtool command, which it can't process. It is looking for certain values for each parameter. The same applies to other programs. Unfortunately, those are programs that everybody uses. I will have a look if I can do something when I pass a path to those programs. But for now you can try to remove the space, or better still copy what's in your Z_i8000kitchen to O2KITCHEN - without a space.


1.Yes it did

2. No its in dump\.ROM ( there is no any .ROM in SYS )

3. of course no error i am not dumb i have experience in cooking with HTC Touch Diamond
"done" appears in status bar

4. ___

5. Yes sir what ever u say :)

log.txt in attachments

Attached Files

  • Attached File  log.txt   1.06KB   59 downloads

Edited by GTx-M.M, 20 January 2010 - 11:44 AM.

  • 0

#36
ronalgps

ronalgps

    Regular

  • Members
  • PipPip
  • 114 posts
  • Gender:Male
  • Location:9300
  • Devices:SAMSUNG omnia
hey wes58
I HAVE SOME KINDA OF PROBLEM I AM TRYING TO MAKE 1 ROM JUST LIKE U SAY IN THE TEST WITH ME ALL COME OK NO ERROR IN BUILD ROM ALL IS OK IN THE END SAY DONE AND WHEN I GO TO Finished ROM THERE IS NOTHING
MY KITCHEN IS IN HARD DRIVER C:
THNK U

Edited by ronalgps, 20 January 2010 - 05:19 PM.

  • 0

#37
wes58

wes58

    Diehard

  • Members
  • PipPipPipPip
  • 442 posts
  • Devices:I900

1.Yes it did

2. No its in dump\.ROM ( there is no any .ROM in SYS )

3. of course no error i am not dumb i have experience in cooking with HTC Touch Diamond
"done" appears in status bar

4. ___

5. Yes sir what ever u say :)

log.txt in attachments


To comment on your points


From what you write in point 2, saying that imgageinfo.bin is in dump (dump\.ROM\imageinfo.bin) and it isn't in \SYS it seems to me that pkgTool didn't work. When you dump imgfs.bin with imfsTodump.exe it dumps all the files/modules in the dump folder (and that's what you say you have (\.ROM in dump folder) pkgTool moves those files/folders to dump\OEM and dump\SYS (so .ROM\imageinfo.bin would be now in dump\sys\.rom\imageinfo.bin). I move those to folders SYS and OEM to the root folder of the kitchen. 

Re. 3 and 5. I never said you are dumb. I wanted to establish the facts because I don't have any of those problems. But if that's your attitude I am not going to bother to try to help. 

Re. 4. you didn't say anything. You should know where it should be, and check in \temp folder if imgfs-new.bin was there.

  • 0
If you find this Application useful, you can buy me a glass of wine




Posted Image


Samsung Omnia II GT-I8000

#38
GTx-M.M

GTx-M.M

    Newbie

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Devices:Samsung Omnia II

Re. 4. you didn't say anything. You should know where it should be, and check in \temp folder if imgfs-new.bin was there.


well search didn't gave me any results :)

what do u suggest for PKGtool.exe issue

and thanks again

Edited by GTx-M.M, 20 January 2010 - 11:37 PM.

  • 0

#39
bmarko82

bmarko82

    Newbie

  • Members
  • Pip
  • 15 posts
  • Devices:Samsung i900 Omnia
pkgtool stopped working here also. Using Windows XP, net framework 2.0, 3.0, 3.5 installed, Visual C++ redist 2005 and 2008 installed too.
I do some experiments. If you make imgfs dump to modules, then run pkgtool manually, its working fine. What is the problem?

Edited by bmarko82, 21 January 2010 - 07:09 AM.

  • 0

#40
sx1000

sx1000

    Newbie

  • Members
  • Pip
  • 6 posts

The only thing that you forgot to put is the path of your kitchen folder (which would be at the beginning of your log.txt). Can you post it.


C:\i8000kitchen

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users