Editing Patch data.pkg

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
PS3PATCH.PUP files contain a firmware PKG file, named here "patch_data.pkg" or "patch_data.spkg", that is an incremental firmware update. This [[Certified File]] is encrypted and signed using "PKG keyset" for PS3 3.55 and lower System Software versions, and "SPKG keyset" for more recent firmwares.
PS3PATCH.PUP files contain a firmware PKG file, named here "patch_data.pkg", that is an incremental firmware update. This [[Certified File]] is encrypted and signed using "SPKG keyset" for PS3 3.56+ firmwares or "PKG keyset" for PS3 3.55 or lower firmwares.


It seems to follow the same path and permissions description scheme as .spkg_hdr.1 files. See [[Spkg_hdr.tar|Spkg_hdr.tar, Signed Firmware Package headers]].
It seems to follow same .spkg_hdr.1 file scheme: [[Spkg_hdr.tar|Spkg_hdr.tar, Signed Firmware Package headers]].


= Location =
= Location =
Line 7: Line 7:
PS3PATCH.PUP, that can be extracted using [[PUP]] tools.
PS3PATCH.PUP, that can be extracted using [[PUP]] tools.


= Structure =
= Body =
 
This is a PS3 [[Certified File]].
 
== Body ==


  content    <-- the text file
  content    <-- the text file
Line 17: Line 13:
  info1
  info1


== Paths Formatting ==
== Formatting ==


<pre>device/location/:[http://en.wikipedia.org/wiki/File_system_permissions chmod permissions]</pre>
<pre>device/location/:[http://en.wikipedia.org/wiki/File_system_permissions chmod permissions]</pre>


For example, <pre>dev_flash/vsh/resource/silk_webkit/:775</pre> points to the /dev_flash/vsh/resource/silk_webkit folder and when extracting, will give it 775 (drwxrwxr-x) permissions.
For example, <pre>dev_flash/vsh/resource/silk_webkit/:775</pre> points to the /dev_flash/vsh/resource/silk_webkit folder and when extracting, will give it 775 (drwxrwxr-x) permissions.
= Decryption =
<pre>scetool.exe --keyset=<keyset> -i patch_data.pkg</pre>
See [https://web.archive.org/web/20141118222850/http://pastie.org/private/ycka0sxjqq9ncjj5yhbrtq] for PS3 4.60 CEX patch_data.spkg decryption.


= Example =
= Example =
Line 1,058: Line 1,048:
dev_flash/ps1emu/ps1_newemu.self:644
dev_flash/ps1emu/ps1_newemu.self:644
dev_flash/ps1emu/ps1_emu.self:644
dev_flash/ps1emu/ps1_emu.self:644
</pre>
== [[4.60-patch CEX]] ==
Result from scetool command:
<pre>
  [*] SCE Header:
  Magic          0x53434500 [OK]
  Version        0x00000002
  Key Revision    0x0000
  Header Type    [PKG]
  Metadata Offset 0x00000000
  Header Length  0x0000000000000280
  Data Length    0x000000000000D524
  [*] Metadata Info:
  Key BC DF A9 96 C4 81 E6 47 A4 B0 0B F7 9B DC 73 F0
  IV  D4 3D 82 EB 79 CA BD FB 71 60 1B C5 A2 2B 7C 1D
  [*] Metadata Header:
  Signature Input Length 0x0000000000000250
  unknown_0              0x00000001
  Section Count          0x00000003
  Key Count              0x00000014
  Optional Header Size  0x00000000
  unknown_1              0x00000000
  unknown_2              0x00000000
  [*] Metadata Section Headers:
  Idx Offset  Size    Type Index Hashed SHA1 Encrypted Key IV Compressed
  000 00000280 00000040 01  01    [YES]  00  [NO ]    --  -- [NO ]
  001 000002C0 00000040 02  02    [YES]  06  [NO ]    --  -- [NO ]
  002 00000300 00001A5A 03  03    [YES]  0C  [YES]    12  13 [YES]
  [*] SCE File Keys:
  00: F4 B8 0E C5 7A A5 52 86 AB 25 62 F1 BF E8 23 45
  01: AB 27 25 5A 00 00 00 00 00 00 00 00 00 00 00 00
  02: 66 EB A0 01 2B ED 69 08 CE AC 7F B2 AB DC 36 38
  03: 8D C1 32 2E E7 A4 C2 C8 DD 04 A7 84 17 F6 6E DA
  04: 85 04 BD 8F D2 CB CA A0 D2 24 0F F7 4D A8 90 57
  05: 93 A4 C6 70 F0 E4 45 49 A3 11 65 68 2B 0D 04 BC
  06: C3 C0 EB 05 FF A2 96 AC C7 B7 3E 46 96 E4 87 C3
  07: B4 64 B1 68 00 00 00 00 00 00 00 00 00 00 00 00
  08: 66 EB A0 01 2B ED 69 08 CE AC 7F B2 AB DC 36 38
  09: 8D C1 32 2E E7 A4 C2 C8 DD 04 A7 84 17 F6 6E DA
  0A: 85 04 BD 8F D2 CB CA A0 D2 24 0F F7 4D A8 90 57
  0B: 93 A4 C6 70 F0 E4 45 49 A3 11 65 68 2B 0D 04 BC
  0C: 48 A2 38 B1 B9 3D 56 35 31 1A 7E 5C 47 2A A3 DF
  0D: 66 62 F8 0D 00 00 00 00 00 00 00 00 00 00 00 00
  0E: 66 EB A0 01 2B ED 69 08 CE AC 7F B2 AB DC 36 38
  0F: 8D C1 32 2E E7 A4 C2 C8 DD 04 A7 84 17 F6 6E DA
  10: 85 04 BD 8F D2 CB CA A0 D2 24 0F F7 4D A8 90 57
  11: 93 A4 C6 70 F0 E4 45 49 A3 11 65 68 2B 0D 04 BC
  12: 0D 5D 1C 85 2B CC E9 75 2B 01 DB 75 A9 0E 62 07
  13: A5 C7 5E 6D 4F DE 8C 27 CA EF 13 73 00 00 00 00
</pre>
</pre>


Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)