[new release] Package Tool - (first part of the new Rom Kitchen)

Search This thread

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
Package Tool is an extension to Mamaich's imgfs tools
- Main function of this tool is to build packages for a new Rom Kitchen I'm working on
- Using this tool you can also extract the following information after creating a dump folder using viewimgfs.exe:
  • Core OS
    Value: "Windows Mobile-based Pocket PC" or "Windows Mobile-based Smartphone"
  • Versions
    Shows the version of the packages
    • SYS
      This is the OS version
      The example shows Crossbow, CE 5.2 Build:15341 AKU 0
    • NET
      This is the .NET Compact Framework version
    • OEM
      This is the version of the OEM packages
      The example shows only one,
      but I've also seen ROMs with different versions for each OEM package.
      In that case there would be multiple OEM entries
  • Language
    The LANGID and the language of the ROM
  • DPI
    The DPI (dots per inch) of the resources
    this also depends on the resolution of the device
    Value: 96 or 128 or 131 or 192
  • Certificates
    List of all certificates used for the packages.
    The OS is signed my Microsoft and the OEM packages are using a certificate from the OEM
  • 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
  • Missing Files
    This lists all missing files.
    Someone edited the ROM or removed files from the dump folder!
Example:
Code:
[Selected Path]
  C:\dump

[Core OS]
  Windows Mobile-based Pocket PCs

[Versions]
  SYS: 5.2.15341.0
  OEM: 2.18.0.0
  NET: 2.0.6129.0

[Language]
  0409 - English (United States)

[DPI]
  96

[Certificates]
  CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  CN=OEM Sign 2005

[Missing Manifests]
  d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
  723fb954-d931-4348-b672-82a188e587b5.dsm
  13cb07c1-20b6-567f-dfcc-39d58b95e374.dsm

This tool is very useful for analyzing an unknown ROM, especially to extract the OS version and it will be much more useful after the release of the new ROM Kitchen.

It is also possible to execute the tool using the command line
  • Usage: PKGTool.exe <path to the dumped ROM>
    • This would just create packages, without any output
      Because of this usage, you can just drag & drop the dump folder onto the tool

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

Extending the map.txt can be disabled by: Menu - Tools - Expand Map

Download: View attachment package_tool_v1.01.zip
 

Attachments

  • bp.JPG
    bp.JPG
    43 KB · Views: 7,846
  • do.JPG
    do.JPG
    54.6 KB · Views: 6,201
Last edited:

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
ROM dump converted to packages...
 

Attachments

  • dump.JPG
    dump.JPG
    12.5 KB · Views: 3,764
  • OEM.JPG
    OEM.JPG
    21.2 KB · Views: 3,815
  • SYS.JPG
    SYS.JPG
    49.9 KB · Views: 3,778

baniaczek

Senior Member
Jul 1, 2005
351
2
Warsaw
:) It is exactly the tool I'm looking for.

But... doeas it require any additional dll's? VB runtime or whatever? I have had exactly the same problem with your XIPPort. There are two version published here. One works fine (exe file 2007-01-21), second one (published with sources) produces:
message translated from polish into english:
Application can not be executed, because configuration is not valid. Problem can be resolved reinstalling application.
I've got the same message running PKGTool.exe
 

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
Sorry...yes, someone else told me the same...

I think it is cos I installed:
Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1 (KB926606)

I will try to get that working... just give me some time
 

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
Ok, I completely removed visual studio and installed it without SP1...
After that I recreated the tool, it should be working now
 

mestrini

Senior Member
Jul 4, 2006
1,044
1
Lisboa
I've had no problem running the tool (then again i'm running win2k :D) but what i'd like to know for now is how to get the OS version/build values :confused:

tx
 

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
ok, sorry I forgot... the information about the OS might only exists in newer roms

did you have anything after
[Versions]
...
?
 
Last edited:

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
the OS version is written into the dsm files...

open this dsm file using a hex editor:
d0b41563-b345-4444-aa15-986e7c7fff99.dsm

after 0x003C you will see something like:
05 00 01 00 D0 07 FF 39
that’s the OS version and build
 

The_hesham

Senior Member
Jul 18, 2006
747
3
Thanks Bepe
I used to coock by ur previous kitchen
It was easy (even 4 beginer like me) and worked very nice
I hope this one will be more usable

1-Would u pls give us the steps?
2-Do we need to have WM6?
3- Is it for all devices, I have Himalaya?
4- Can we use it now or wait for the finished kitchen?

Sorry for to much ques.
Regards
 
Last edited:

bepe

Retired Recognized Developer
Dec 18, 2005
1,115
64
Munich
@The_hesham:
this is only the first part of the new kitchen…
I only released the tool cos it can also be used to analyze roms

to use this for a kitchen you have to wait for the new version
 

The_hesham

Senior Member
Jul 18, 2006
747
3
@The_hesham:
this is only the first part of the new kitchen…
I only released the tool cos it can also be used to analyze roms

to use this for a kitchen you have to wait for the new version

Bepe
As I understand I should have ROM already have the following
1- All *.rgu & dsm files are not deleted during cooking. But we delete *.rgu file in order to save space
2- We alraedy have ROM built by ur way mention some time ago (and I succed to cook with it)

Or I misunderstand somthing