Editing Spkg hdr.tar
Jump to navigation
Jump to search
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: | ||
= Signed Package headers | == Signed Package headers == | ||
Added since firmware 3.56. Contains the TAR'ed collection of all | Added since firmware 3.56. Contains the TAR'ed collection of all signed PKG headers. | ||
To decrypt them you need to use spkg keyset. | |||
=== History === | |||
== History == | |||
The very first (early) 4.xx CFWs were only installable over 3.55 because they were not having new spkg. | The very first (early) 4.xx CFWs were only installable over 3.55 because they were not having new spkg. | ||
Line 13: | Line 11: | ||
spkg is supposed to be created newly. | spkg is supposed to be created newly. | ||
The easiest way for now is that you get | The easiest way for now is that you get metadata of your new spkg and decrypt it, then encrypt with spkg keys. | ||
The reason why CFW is not installable over any OFW is that we dont have spkg private keys. | The reason why CFW is not installable over any OFW is that we dont have spkg private keys. | ||
Line 20: | Line 18: | ||
For more info on CF encryption, refer [[Certified File|here]]. | For more info on CF encryption, refer [[Certified File|here]]. | ||
=== 3.56 CEX/Retail spkg_hdr.tar content === | === 3.56 CEX/Retail spkg_hdr.tar content === | ||
BDIT_FIRMWARE_PACKAGE.pkg.spkg_hdr.1 | BDIT_FIRMWARE_PACKAGE.pkg.spkg_hdr.1 | ||
BDPT_FIRMWARE_PACKAGE_301R.pkg.spkg_hdr.1 | BDPT_FIRMWARE_PACKAGE_301R.pkg.spkg_hdr.1 | ||
Line 68: | Line 63: | ||
SYS_CON_FIRMWARE_S1_00010002083E0832.pkg.spkg_hdr.1 | SYS_CON_FIRMWARE_S1_00010002083E0832.pkg.spkg_hdr.1 | ||
UPL.xml.pkg.spkg_hdr.1 | UPL.xml.pkg.spkg_hdr.1 | ||
== | ==== Example ==== | ||
== | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 91: | Line 73: | ||
00000000 53 43 45 00 00 00 00 02 00 00 00 03 00 00 00 00 SCE............. | 00000000 53 43 45 00 00 00 00 02 00 00 00 03 00 00 00 00 SCE............. | ||
00000010 00 00 00 00 00 00 02 80 00 00 00 00 00 1E 01 10 .......€........</pre> | 00000010 00 00 00 00 00 00 02 80 00 00 00 00 00 1E 01 10 .......€........ | ||
00000020 - 0000027F CF Header</pre> | |||
|} | |||
==== Structure ==== | |||
{|class="wikitable" | |||
|- | |||
! Address !! Length !! Value !! Description | |||
|- | |||
| 0x0 || 0x4 || 0x53434500 / ASCII: 'SCE\0' || Magic | |||
|- | |||
| 0x4 || 0x4 || 0x2 || Version | |||
|- | |||
| 0x8 || 0x2 || 0x0 || Attribute | |||
|- | |||
| 0x8 || 0x4 || 0x3 || Category: pkg | |||
|- | |||
| 0xC || 0x4 || 0x0 || Extended Header offset | |||
|- | |||
| 0x10 || 0x8 || 0x280 || File offset | |||
|- | |||
| 0x18 || 0x8 || 0x1E0110 || File size | |||
|} | |} | ||
Line 99: | Line 103: | ||
{{Custom Firmware}} | {{Custom Firmware}}<noinclude>[[Category:Main]]</noinclude> | ||
<noinclude>[[Category:Main]]</noinclude> |