the first real XDA Flame user meeting point
You are not logged in.
Offline
thierryb wrote:
Ok concerning the different steps.
But what I do from my dump ?
What I have understood is :
1/ build packages with the bepe tool
I suppose this one
http://forum.xda-developers.com/showthread.php?t=296861
2/ then ?????
I do what with my rom ?
I add the missing packages ?
Sorry for the confusion.
The normal way to cook with this kitchen is:
1. put your ROM in ROM folder inside the kitchen.
2. in the subfolder XIP, you must put the .rgu , .dsm and boot.rgu from you XIP. This files are needed to rebuild your ROM.
3. run the "DumpFiles.cmd". The kitchen will dump your ROM and after that packages will build automaticaly. Now you have an SYS and an OEM folder.
Unfortuately the builded packeges are not named correctly like the tool does it with an Atom ROM. I don't know why.
4. Now you can put for example folders from an other ROM in yours, edit the initflash.dat to change the folderstructure of your new ROM, edit the registry you like.
In order to relocate modules you must run the G'reloc tool before building your ROM.
5. execut the "BuildOS.cmd". the new cooked ROM will placed in FLASH folder.
As i said before,in your ROM the kitchen doesn't name the folders correct, so it's hard to compare with other ROM.
For better understanding, you can use the Atom Life ROM in the Atom Life Kitchen from XDA developers. You'll se what I mean. ![]()
Hope it's not too confusing.
Offline
I've tested Bepe's packagetool to make SYS and OEM packages from dump. It builds the packages with correct names. ![]()
Offline
Using xipport I have extracted the 2 parts
x000000 - x1BFFFF : xip1
upload : http://w13.easy-share.com/13046311.html
This section contains the kernel (nk.exe) and a file named splash.bmx (the splash screen ???)
x1C0000 - xA3FFFF : xip2
upload : http://w13.easy-share.com/13046741.html
This section contains a lot files
I have also tried with x1C0000-x572027 (before the first false imgfs section), and I get nothing.
Offline
It's strange.
I've extracted the second XIP,like i discribed before, and it doesn't contain the .bmx file, but a bigger NK.exe like yours in modules folder.
We are using the same ROM, you've posted in post #13 in this thread ?
http://www.xdaflameusers.com/viewtopic.php?id=354
Offline
I have cut the xip by my self using an hex editor.
Perhaps it is the difference between us.
Offline
With the Package Tool 1.01 from bepe : http://forum.xda-developers.com/showthread.php?t=296861
[Core OS]
Windows Mobile-based Pocket PCs
[Versions]
SYS: 5.1.15633.3200
NET: 1.0.4294.0
OEM: 5.1.20001.3200
SYS: 5.1.15633.0
[Language]
0409 - English (United States)
[DPI]
192
[Certificates]
CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
CN=Arima Privileged Root
[Missing Manifests]
d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
723fb954-d931-4348-b672-82a188e587b5.dsm
dde70581-d88d-e5f3-b04c-586ecf07ba9e.dsm
77eaca81-6269-4146-9c0d-226ca87da7e6.dsm
What does this mean : Missing manifets ?
And OEM ans SYS folders are created in the dump directory.
All modules have been arranged inside.
Offline
thierryb wrote:
[Missing Manifests]
d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
723fb954-d931-4348-b672-82a188e587b5.dsm
dde70581-d88d-e5f3-b04c-586ecf07ba9e.dsm
77eaca81-6269-4146-9c0d-226ca87da7e6.dsm
What does this mean : Missing manifets ?
And OEM ans SYS folders are created in the dump directory.
All modules have been arranged inside.
It's described in Bepe's thread:
Missing Manifests
This is a list of all packages that are missing inside the dump folder.
It is normal that there are missing packages, because the packages from the boot section (XIP) are missing... don’t worry about them
I've done the following:
1.extracted the rom with kitchen.
2. unfortunately the correct names are missing.
3. make the packages manually with mamaich's tools and bepe's package tool. But bepes tool doesn't copy the os.bat. So I just copy the os.bat from dump in the created sys folder.
4. I delete the SYS and OEM folders, created from kitchen first !! and then copy instead the SYS and OEM from bepe's tool.
5. now I run the "BuildOS.cmd" and the new ROM was build in FLASH folder.
Before build, you can now place packages in SYS folder. You can find prebuild packages from programms on XDA-Developers. Or just replace folders from your ROM with folders from an other ROM.
But remember, if you replace modules, you must relocate them with G'reloc before.
I know, the way I do is a little bit "tricky", but I think it's a way to do this job. Maybe you find an other one. ![]()
Last edited by scorpio16v (2007-12-23 22:16:22)
Offline
scorpio16v wrote:
Sorry for the confusion.
The normal way to cook with this kitchen is:
1. put your ROM in ROM folder inside the kitchen.
2. in the subfolder XIP, you must put the .rgu , .dsm and boot.rgu from you XIP. This files are needed to rebuild your ROM.
3. run the "DumpFiles.cmd". The kitchen will dump your ROM and after that packages will build automaticaly. Now you have an SYS and an OEM folder.
Unfortuately the builded packeges are not named correctly like the tool does it with an Atom ROM. I don't know why.
4. Now you can put for example folders from an other ROM in yours, edit the initflash.dat to change the folderstructure of your new ROM, edit the registry you like.
In order to relocate modules you must run the G'reloc tool before building your ROM.
5. execut the "BuildOS.cmd". the new cooked ROM will placed in FLASH folder.
As i said before,in your ROM the kitchen doesn't name the folders correct, so it's hard to compare with other ROM.
For better understanding, you can use the Atom Life ROM in the Atom Life Kitchen from XDA developers. You'll se what I mean.
Hope it's not too confusing.
I have used this kitchen
http://forum.xda-developers.com/showthr … fe+kitchen
I have copied the OEM and SYS in the ROM directory
And the .rgu (including the boot.rgu) and the .dsm from my xip to the xip subfolder (why I keep only that and not all the files ? I will have to understand)
23/12/2007 19:26 2 548 723fb954-d931-4348-b672-82a188e587b5.dsm
23/12/2007 19:26 6 656 77eaca81-6269-4146-9c0d-226ca87da7e6.dsm
23/12/2007 19:26 130 638 77eaca81-6269-4146-9c0d-226ca87da7e6.rgu
23/12/2007 19:26 35 782 boot.rgu
23/12/2007 19:26 1 724 d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
23/12/2007 19:26 2 130 dde70581-d88d-e5f3-b04c-586ecf07ba9e.dsm
Then I have modified this line in the buildos.cmd
set MyROM=FLASH.DIO
by
set MyROM=diskimage.nb0
But tools\pkg2dmp.exe makes a big error
and ask to send an error message to Microsoft.
Is this what you mean :
As i said before,in your ROM the kitchen doesn't name the folders correct, so it's hard to compare with other ROM.
Offline
scorpio16v wrote:
I've done the following:
1.extracted the rom with kitchen.
2. unfortunately the correct names are missing.
3. make the packages manually with mamaich's tools and bepe's package tool. But bepes tool doesn't copy the os.bat. So I just copy the os.bat from dump in the created sys folder.
4. I delete the SYS and OEM folders, created from kitchen first !! and then copy instead the SYS and OEM from bepe's tool.
5. now I run the "BuildOS.cmd" and the new ROM was build in FLASH folder.
Before build, you can now place packages in SYS folder. You can find prebuild packages from programms on XDA-Developers. Or just replace folders from your ROM with folders from an other ROM.
But remember, if you replace modules, you must relocate them with G'reloc before.
I know, the way I do is a little bit "tricky", but I think it's a way to do this job. Maybe you find an other one.
I am not sure to understand.
It this the same kitchen ?
http://forum.xda-developers.com/showthr … fe+kitchen
1/ extracted the rom with kitchen
do you mean from my diskimage.nb0 ? or from the Atom Life ?
do you mean using the dumpfiles.cmd ?
2/ unfortunately the correct names are missing
I do not understand this sentence
3/ make the packages manually with mamaich's tools and bepe's package tool. But bepes tool doesn't copy the os.bat. So I just copy the os.bat from dump in the created sys folder.
Is it the steps I have already done that makes me the dump, and the OEMand SYS folders ?
what do you mean by the os.bat ?
4. I delete the SYS and OEM folders, created from kitchen first !! and then copy instead the SYS and OEM from bepe's tool.
ok
5. now I run the "BuildOS.cmd" and the new ROM was build in FLASH folder.
I remeber you that I have had a problem with the pckg2dmp.exe
In addition, you do not speak about the copy of the .rgu and .dsm (obviously, I have deleted the one proposed by jiggs)
Offline
I have found the solution concerning the pkg2dmp.exe error :
put the SYS and EOM folders not in the ROM directory like the XIP directory but directly at the same level of BuildOS.cmd
In addition, you have to create an OS.bat file with this inside :
set _WINCEOSVER=501
set _TGTCPU=ARMV4I
And put this file in the SYS directory
And last but not least, put an original diskimage.nb0 in the ROM directory
And all of that after starting the buildos.cmd you will get in the FLASH directory a new diskimage.nb0
I have verified, this diskimage.nb0 is binary different from the first one, even if I have changed nothing.
I just need to flashit to my pda.
Obviously, it is a wm5 rom, even it is the genuine rom that was rebuild.
So big deal ! But i will test it, because I have used a lot of tools. And I have to verified that it is stable.
In fact I am at the same point as few weeks ago. But now I have added the packages step (dump2pkg and pkgtodmp).
Probably I will change the tool dump2pkg by the one from bepe.
I am downloading a wm6 rom (I am at 60%, so see you tomorrow). So When it will be finished, I will get "decompile" it. Then I will use it to create a wm6 rom for the Flame.
Offline
Unfortunately this rom does not boot and stays at the O2 screen..
Offline
thierryb wrote:
I have used this kitchen
http://forum.xda-developers.com/showthr … fe+kitchen
I have copied the OEM and SYS in the ROM directory
And the .rgu (including the boot.rgu) and the .dsm from my xip to the xip subfolder (why I keep only that and not all the files ? I will have to understand)
23/12/2007 19:26 2 548 723fb954-d931-4348-b672-82a188e587b5.dsm
23/12/2007 19:26 6 656 77eaca81-6269-4146-9c0d-226ca87da7e6.dsm
23/12/2007 19:26 130 638 77eaca81-6269-4146-9c0d-226ca87da7e6.rgu
23/12/2007 19:26 35 782 boot.rgu
23/12/2007 19:26 1 724 d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
23/12/2007 19:26 2 130 dde70581-d88d-e5f3-b04c-586ecf07ba9e.dsm
Then I have modified this line in the buildos.cmd
set MyROM=FLASH.DIO
by
set MyROM=diskimage.nb0
But tools\pkg2dmp.exe makes a big error
and ask to send an error message to Microsoft.
Is this what you mean :As i said before,in your ROM the kitchen doesn't name the folders correct, so it's hard to compare with other ROM.
OK, a lot of work to make this things clear. ![]()
1. It's the wrong kitchen. You should use the Atom /Atom Exec Kitchen. The Atom Life Kitchen used the mamaich tool different like in the Atom Kitchen, the Atom Life ROM is different, so we must use the -nosplit option for our ROM to extract.(This step was done by the Atom Life Kitchen)
The Atom /Atom Exec Kitchen use the mamaich tool like for your Flame ROM.
2. you don't need to copy the OEM and SYS manually. If you use the right kitchen, this directories will be created in main directotry of the kitchen.
3. This things from XIP are needed for the build tool to create the registry. .rgu files are simply registry-entries. For example, you can open it with notepad to look at it. .dsm files contained information about packages.
4. No, the name thing was a mistake by me, sorry. Look what Bepe said about package name:
Bepe wrote:
About the package names
The names of the packages can be extracted from the dump folders for WM6, but WM5 contains GUIDs instead of names.
To provide the ease of WM6 "Package Names" for previous (i.e. WM5) ROMs, the tool collects all package names inside map.txt and replaces the GUIDs with the actual Package Names.
You must let the tool read a WM6 dump to collect the Package Names before it can replace WM5 GUIDs.
e.g.
- Building packages from a WM5 dump creates: 1bc57b2f-c0f3-46c6-8c2a-257952317eac
- Building packages from a WM6 dump creates: OEM_Lang_0409
- Building packages from a WM5 after it was used for a WM6 ROM also creates: OEM_Lang_0409
So we can say, that the Atom Kitchen does this job in a correct way.
to post #59:
-Yes, we are talking about your ROM. I belive you don't want to cook an Atom Life ROM. ![]()
-forget what I say about the OS.bat. If you use the Atom Kitchen only, this step isn't needed.
-about the package names, look what Bepe said. If you want the correct names you must dump an Atom WM6 ROM before with this kitchen. As I understand the map.txt in the kitchen will be updated with the right names.
-the packagetool in the kitchen (dmp2pkg) is only a modified tool from Bepe's packagetool, so we are talking about the same thing.
But I haven't test, if the tool from kitchen updates the map.txt like Bepe described.
Last edited by scorpio16v (2007-12-24 08:59:53)
Offline
thierryb wrote:
[Missing Manifests]
d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
723fb954-d931-4348-b672-82a188e587b5.dsm
dde70581-d88d-e5f3-b04c-586ecf07ba9e.dsm
77eaca81-6269-4146-9c0d-226ca87da7e6.dsm
I have not read on yet, so not sure if anyone answers it.
This is the XIP Section which can be found in the zip file link in one of our thread started by KOster.
http://xdaflameusers.com/viewtopic.php?pid=1578#p1578
The Flame Kitchen & Atom Life Kitchen are based on Bepe & Mamaich's tool. Both concept is same, only the running batch/cmd files are different.
When you dump out the Rom, it is in DUMP directory. Which you can make your edit here. Use Dump to Package to convert the edited dump into OEM & SYS directories format. Now the XIP (still figuring) in ROM directory which was provide http://xdaflameusers.com/viewtopic.php?pid=1578#p1578 has to be used together with SYS & OEM to run BuildOS and we will get the new Rom.
Of course still got the CID unlocked mentioned by afeng.
Offline
I will continue with the alom life kitchen, because it is easy to use and to modify. But I will switch to the one proposed if I continue to have problem.
You are probably right concerning the nosplit option. It was exactly what I was thinking doing the night.
Offline
thierryb wrote:
I will continue with the alom life kitchen, because it is easy to use and to modify. But I will switch to the one proposed if I continue to have problem.
You are probably right concerning the nosplit option. It was exactly what I was thinking doing the night.
OK, just for completeness. Here you can find the Atom / Atom Exec Kitchen:
http://forum.xda-developers.com/showthr … om+kitchen
Both kitchens are the same. Only the dump and build scripts are different.
Both are based on Scoter Kitchen:
http://forum.xda-developers.com/showthread.php?t=293296
The Scoter Kitchen contained some further good tools like an hexeditor, an tool to compare different binaries , ROMMASTER v2.3 to extract your XIP (and write it back in future) and the SRPX tools if you want to extract the Atom Life XIP section.
I think, I should stop posting now, because it causes more confusion than make the things clear, sorry.
But if you have further questions, I'll try to help. ![]()
Offline
I will go in the scoter kitchen. In fact I have already downloaded it. But it was to complex to use, and I was less educated.
What I need now is the process to port from WM5 to WM6 a new device. What are the different steps.
Just to know now my flame kitchen based on the Atome Life works after having removed the nosplit option.
I will post it when somebody will ask me, or when I will have confirmed that I can do modification of the rom. Now I have just cooked a rom with the same content.
I will use it today and wil know if it is stable.
I have downloaded the WM6 atom life rom. But it is an exe (a ruu tool). Do you know how to extract the flash.dio from it.
What wm6 rom do you advice me to start from.
We will need sdhc support and VGA.
But perhaps I can start with a non vga one. Do you think that a pda with a non vga rom will run on a vga phone ?
The only think I know i that I will have to work on the xip. I am ready.
Offline
thierryb wrote:
I will go in the scoter kitchen. In fact I have already downloaded it. But it was to complex to use, and I was less educated.
What I need now is the process to port from WM5 to WM6 a new device. What are the different steps.
Just to know now my flame kitchen based on the Atome Life works after having removed the nosplit option.
I will post it when somebody will ask me, or when I will have confirmed that I can do modification of the rom. Now I have just cooked a rom with the same content.
I will use it today and wil know if it is stable.
I have downloaded the WM6 atom life rom. But it is an exe (a ruu tool). Do you know how to extract the flash.dio from it.
What wm6 rom do you advice me to start from.
We will need sdhc support and VGA.
But perhaps I can start with a non vga one. Do you think that a pda with a non vga rom will run on a vga phone ?
The only think I know i that I will have to work on the xip. I am ready.
You can extract the Atom Life ROM easily.Just run the exe. The exe will extract and the updatetool starts. Don't stop the tool.
Go to Windows/Temp and you'll find FLASH.DIO and ExtROM.img. Grab them to the folder you like.
Now you can close the updateutility.
you can change all packages, that are not dependend of the resolution for example some named like ***_dpi96***. Thats QVGA specific.
Most what you find in OEM are device dependend drivers, i think.
How to port WM6?
I think the best is to grab an original WM5 Atom ROM and compare it with an cooked Atom WM6 ROM.
Maybe a HTC Universal WM6 port is more what you need to cook ?
One more hint.
With HyperCore Kitchen, you can extract the ROM from following devices:
HTC Wizard; HTC Hermes; HTC Artemis; HTC Herald; HTC Universal; HTC Trinity; HTC Prophet
Link:
http://forum.xda-developers.com/showthr … re+kitchen
It build Packages automaticaly. So you can grab the VGA specific parts from Universal to port in XDA Flame.
Last edited by scorpio16v (2007-12-24 13:35:03)
Offline
I am always working on this project. Do not worry.
I have donwloaded the Universal_Ranju_v5_Blue_1933_18533.rar, a WM6 rom from the Universal.
I have extrated the xip and the imgfs using the hypercore kitchen.
If you have any problem in this step, just post here I will give you the few info that makes the hypercore working. I will make an addendum if I have time.
Now I am in the process to mix both zip (put Universal WM6 kernel xip into the Flame WM5 kernel xip).
I have found this link that seems to be useful, but I do not understand all :
http://www.hi-pda.com/forum/archiver/?t … ge-62.html
I am just at the beginning. If some of you now the process or understand what is inside this link, please explain me before I understand alone.
I have also tried to work on pagepool for the Flame.
I think that I have found the offset, but the value is not 4 mb (00 00 40 00) or another one, but FF FF FF FF.
I have tried with 32 Mb (00 00 00 02), but nothing change. Same level of available RAM at the end. So I do not know.
I wanted to solve the sip issue by that mean, even if no body knows if changing the pagepool can recolve sip issue.
Stay tuned. You can also help me if you have any idea. Or ask questions if you want to reproduce what I have made.
Please afeng11, can you help me and tell me what are the next steps.
Bepe, cmonex, tjlabais/jiggs, ranju, please help me.
Thanks to ranju :
Ok, lets try...
1. Dump the XIP's (WM5 & WM6) under two different folder
2. Replace WM5 XIP, keep the OEM part in the XIP intact and replace all others (with WM6).
3. Relocate and write new memory location
4. Update the base address in nk.exe
I need to understand steps 3 and 4.
But I am quite sure that the link provided a little bit earlier is info in the good direction.
Offline
thierryb wrote:
Ok, lets try...
1. Dump the XIP's (WM5 & WM6) under two different folder
2. Replace WM5 XIP, keep the OEM part in the XIP intact and replace all others (with WM6).
3. Relocate and write new memory location
4. Update the base address in nk.exe
I need to understand steps 3 and 4.
Here in Atom Wiki is something about XIP editing.
http://wiki.xda-developers.com/index.ph … king_Notes
I thing the first link is the more detailed.
for relocating the given modules in XIP, you must use Bepe's XIPPort with the "relloc P" button. But you must know, that there are some modified XIPPorts and they may work better or worse.
Maybe M'reloc_nk from this thread usefull. But I'm not shure.
http://forum.xda-developers.com/showthread.php?t=331094
The heavy part is, you must build map.txt with XIPPort from both XIP and edit all by hand.
I don't know if the better way is to port imgfs first and if all is running fine to port the XIP.
Maybe in a short time you could get hands of the chinese WM6 port to learn how they are doing this job.
If you have success with XIPPorting please update your findings, because that's the step I fail. ![]()
Have you successfull flashed your recooked ROM ?
Last edited by scorpio16v (2007-12-25 20:42:23)
Offline
yes. I have flashed the recooked rom. and it works.
Offline
Wonderfull !!! ![]()
One more hint:
-the .ROM and .VM folder must be the Flame ones. All other you can change.
-if you edit the default and user.hv with notepad, you must cut the first 2 bytes with a hexeditor. Jiggs does the job with WORD and don't need to cut then.
- some .rgu in the extracted ROMs weren't extracted correct, sometimes. (they contained nothing then). Delete them or restore it with te right entries before rebuilding the ROM.
If you need something usefull to test, have a look to this:
http://forum.xda-developers.com/showpos … stcount=27
It's the OEM package for the new .NET CF
Just delete your old one.
My Trinity WM5 has increased in speed by 40% and under a WM6 by about 20% increase once you uninstall .NET 2.0 and install 3.5.
Last edited by scorpio16v (2007-12-25 22:00:19)
Offline
@Thierry
The extract via dump and package to OEM & SYS is not a problem which is a standard process all/most kitchen uses and basically bepe & mamaich tools.
The million dollar question which is where I am stuck like scorpio at the XIP.
What happen to the drivers that is in the Flame XIP which content many drivers files?
Or do you just use the basic M$ recommended XIP which has only few files?
HTC Universal may have the VGA part. But may not have the GPU drivers and may not have the drivers to access the larger memories which Flame has?
Offline
why some drivers are in the xip and others are in the dump?
May I move drivers from the xip to the dump? It could be an idea. because they are modules, and I have greloc to relocate them.
I do not know what I will do.
Offline
I cannot remember where I read, drivers in XIP is for performance (speed? or memory?).
The rom that you cooked and flashed is still the original wm5 rom +- right?
Or is it already wm6?
Offline
My rom: the genuine wm5 repacked from all files
I will try latter the same thing but with the xip.
Repacked means extract everything in modules, in OEM and SYS, then repack, using the files extracted from Xip: .rgu and .dsm
I am reading now a good document from cmonex here :
http://www.hpcmonex.net/izemize.htm
The link ce rom editing.
In the zip, the doc full tutorial in documents.