Editing PUP
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: | ||
PUP (Playstation Update Package) is the file format of the PSP, PS3, PSVita | PUP (Playstation Update Package) is the file format of the PSP, PS3, PSVita and PS4 system software update packages. | ||
PUP embed updates for devices such as the GameOS, Syscon, Wi-Fi, Bluetooth, Communication Processor, Southbridge, BD drive. | |||
== Structure == | |||
PS4 PUP is special because it embeds single other PUPs. | |||
=== Header === | |||
Have a feeling the header for the new PS4 PUPs ends with a LZMA dictionary and file size… (ie a normal lzma header without the properties byte) anyone else done research into that? As in: | |||
<source lang="c"> | <source lang="c"> | ||
struct | struct PUPPS4Header { | ||
uint32_t magic; | uint32_t magic; // PS4PUPMAGIC "\x4F\x15\x3D\x1D" | ||
uint16_t version; | uint16_t version; // Big Endian (??) | ||
uint16_t | uint16_t unknownOne; | ||
uint16_t unknownTwo; | |||
uint16_t unknownThree; | |||
uint32_t dictSize; // LE afaics | |||
uint32_t uncompressedSize; // LE afaics | |||
uint16_t | |||
uint16_t | |||
uint32_t | |||
uint32_t | |||
} | } | ||
</source> | </source> | ||
== Tools == | == Tools == | ||
Line 102: | Line 27: | ||
=== Decrypter (first step) === | === Decrypter (first step) === | ||
* [https://github.com/idc/ps4-pup_decrypt ps4-pup_decrypt by idc] | |||
* [https://github.com/idc/ps4-pup_decrypt ps4-pup_decrypt by idc | |||
=== Unpacker (second step) === | === Unpacker (second step) === | ||
* [https://github.com/ | * [https://github.com/idc/ps4-pup_unpack ps4-pup-unpack by idc] | ||
* [https://github.com/Zer0xFF/ps4-pup-unpacker ps4-pup-unpacker by Zer0xFF] (based on ps4-pup-unpack by idc) | |||
* [https://github.com/Zer0xFF/ps4-pup-unpacker ps4-pup-unpacker by Zer0xFF | |||
== Indices == | == Indices == | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Index !! Decimal !! Description !! Perconsole? !! Notes !! Added !! Deprecated? | ! Index !! Decimal !! Description !! Perconsole? !! Notes !! Added !! Deprecated? | ||
|- | |- | ||
| 1 || 1 || EMC IPL || {{no}} || sflash0s0x32/b Aeolia 1st Revision || [[0.910.040]] || {{yes}} , since 2.00 | | 1 || 1 || EMC IPL || {{no}} || sflash0s0x32/b Aeolia 1st Revision || [[0.910.040]] || {{yes}} , since 2.00 | ||
|- | |- | ||
| 2 || 2 || EAP KBL || {{no}} || sflash0s0x33 Aeolia 1st Revision || [[0.910.040]] || {{yes}} , since 2.00 | | 2 || 2 || EAP KBL || {{no}} || sflash0s0x33 Aeolia 1st Revision || [[0.910.040]] || {{yes}} , since 2.00 | ||
|- | |- | ||
| 3 || 3 || WIFI FW || {{no}} || torus2 | | 3 || 3 || WIFI FW || {{no}} || torus2 || [[0.910.040]] || | ||
|- | |- | ||
| 4 || 4 || | | 4 || 4 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 1st SOCUID || [[0.910.040]] || | ||
|- | |- | ||
| 5 || 5 || COREOS || {{no}} || secure_modules || [[0.910.040]] || | | 5 || 5 || COREOS || {{no}} || secure_modules || [[0.910.040]] || | ||
|- | |- | ||
| 6 || 6 || SYSTEM || {{no}} || system fs (FAT32/TEXFAT later) || [[0.910.040]] || | | 6 || 6 || SYSTEM || {{no}} || system fs (FAT32/TEXFAT later) || [[0.910.040]] || | ||
|- | |- | ||
| 7 || 7 || EAP KERNEL || {{no}} || da0x2 || [[0.910.040]] || | | 7 || 7 || EAP KERNEL || {{no}} || da0x2 || [[0.910.040]] || | ||
|- | |- | ||
| 8 || 8 || EAP VSH || {{no}} || eap_vsh fs (FAT16) || [[0.910.040]] || | | 8 || 8 || EAP VSH || {{no}} || eap_vsh fs (FAT16) || [[0.910.040]] || | ||
|- | |- | ||
| 9 || 9 || PREINST || {{no}} || preinst fs (FAT32) || [[0.910.040]] || | | 9 || 9 || PREINST || {{no}} || preinst fs (FAT32) || [[0.910.040]] || | ||
|- | |- | ||
| 0xA || 10 || ??? || {{no}} || sflash0s1.cryptx40 || | | 0xA || 10 || ??? || {{no}} || sflash0s1.cryptx40 || || | ||
|- | |- | ||
| 0xB || 11 || PREINST2 || {{no}} || preinst2 fs (FAT32) || [[0.910.040]] || | | 0xB || 11 || PREINST2 || {{no}} || preinst2 fs (FAT32) || [[0.910.040]] || | ||
|- | |- | ||
| 0xC || 12 || SYSTEM_EX || {{no}} || system_ex fs (FAT32/TEXFAT later) || [[0.910.040]] || | | 0xC || 12 || SYSTEM_EX || {{no}} || system_ex fs (FAT32/TEXFAT later) || [[0.910.040]] || | ||
|- | |- | ||
| 0xD || 13 || EMC IPL || {{no}} || sflash0s0x32/b Aeolia | | 0xD || 13 || EMC IPL || {{no}} || sflash0s0x32/b Aeolia 2nd Revision || [[0.910.040]] || | ||
|- | |- | ||
| 0xE || 14 || EAP KBL || {{no}} || sflash0s0x33 Aeolia | | 0xE || 14 || EAP KBL || {{no}} || sflash0s0x33 Aeolia 2nd Revision || [[0.910.040]] || | ||
|- | |- | ||
| 0xF || 15 || ??? || {{no}} || test || | | 0xF || 15 || ??? || {{no}} || test || || | ||
|- | |- | ||
| 0x10-0x16 || 16-22 || ??? || {{no}} || sbram0 || | | 0x10-0x16 || 16-22 || ??? || {{no}} || sbram0 || || | ||
|- | |- | ||
| 0x20 || 32 || EMC IPL || {{no}} || sflash0s0x32/b Belize 1st Revision || 2.00 || | | 0x20 || 32 || EMC IPL || {{no}} || sflash0s0x32/b Belize 1st Revision || 2.00 || | ||
|- | |- | ||
| 0x21 || 33 || EAP KBL || {{no}} || sflash0s0x33 Belize 1st Revision || 2.00 || | | 0x21 || 33 || EAP KBL || {{no}} || sflash0s0x33 Belize 1st Revision || 2.00 || | ||
|- | |- | ||
| 0x22 || 34 || WIFI FW || {{no}} || torus2 || 2.00 || | | 0x22 || 34 || WIFI FW || {{no}} || torus2 || 2.00 || | ||
|- | |- | ||
| 0x23 || 35 || | | 0x23 || 35 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 2nd SOCUID || 2.00 || | ||
|- | |- | ||
| 0x24 || 36 || EMC IPL || {{no}} || sflash0s0x32/b | | 0x24 || 36 || EMC IPL || {{no}} || sflash0s0x32/b Belize 2nd Revision || || | ||
|- | |- | ||
| 0x25 || 37 || EAP KBL || {{no}} || sflash0s0x33 | | 0x25 || 37 || EAP KBL || {{no}} || sflash0s0x33 Belize 2nd Revision || || | ||
|- | |- | ||
| 0x26 || 38 || | | 0x26 || 38 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 3rd SOCUID || || | ||
|- | |- | ||
| 0x27 || 39 || | | 0x27 || 39 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 4th SOCUID || || | ||
|- | |- | ||
| 0x28 || 40 || EMC IPL || {{no}} || sflash0s0x32/b | | 0x28 || 40 || EMC IPL || {{no}} || sflash0s0x32/b Belize 2 1st Revision || || | ||
|- | |- | ||
| 0x2A || 42 || EMC IPL || {{no}} || sflash0s0x32/b Belize 2 | | 0x2A || 42 || EMC IPL || {{no}} || sflash0s0x32/b Belize 2 2nd Revision || || | ||
|- | |- | ||
| 0x2B || 43 || EAP KBL || {{no}} || sflash0s0x33 Belize 2 | | 0x2B || 43 || EAP KBL || {{no}} || sflash0s0x33 Belize 2 1st/2nd Revision || || | ||
|- | |- | ||
| 0x2C || 44 || EMC IPL || {{no}} || sflash0s0x32/b | | 0x2C || 44 || EMC IPL || {{no}} || sflash0s0x32/b Baikal 1st Revision || || | ||
|- | |- | ||
| 0x2D || 45 || | | 0x2D || 45 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 5th SOCUID || || | ||
|- | |- | ||
| 0x2E || 46 || EMC IPL || {{no}} || sflash0s0x32/b | | 0x2E || 46 || EMC IPL || {{no}} || sflash0s0x32/b Baikal 2nd Revision || || | ||
|- | |- | ||
| 0x30 || 48 || WIFI FW || {{no}} || sflash0s0x38 trooper | | 0x30 || 48 || WIFI FW || {{no}} || sflash0s0x38 trooper || || | ||
|- | |- | ||
| 0x31 || 49 || | | 0x31 || 49 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 6th SOCUID || || | ||
|- | |- | ||
| 0x32 || 50 || | | 0x32 || 50 || SAM IPL || {{yes}} || sflash0s1.cryptx2/b 7th SOCUID || || | ||
|- | |- | ||
| 0x101 || 257 || EULA.XML || {{no}} || Sony Agreement XML || 1.00 || | | 0x101 || 257 || EULA.XML || {{no}} || Sony Agreement XML || 1.00 || | ||
|- | |- | ||
| 0x200 || 512 || ORBIS_SWU.SELF || {{no}} || Sony SoftWareUpdater (ELF) || [[0.910.040]] || | | 0x200 || 512 || ORBIS_SWU.SELF || {{no}} || Sony SoftWareUpdater (ELF) || [[0.910.040]] || | ||
|- | |- | ||
| 0x202 || 514 || ORBIS_SWU.SELF || {{no}} || Sony SoftWareUpdater (Encrypted SELF) || [[0.920.030]] || | | 0x202 || 514 || ORBIS_SWU.SELF || {{no}} || Sony SoftWareUpdater (Encrypted SELF) || [[0.920.030]] || | ||
|- | |- | ||
| 0x301 || 769 || ??? || {{no}} || /update related || | | 0x301 || 769 || ??? || {{no}} || /update related || || | ||
|- | |- | ||
| 0x302 || 770 || ??? || {{no}} || /update related || | | 0x302 || 770 || ??? || {{no}} || /update related || || | ||
|- | |- | ||
| 0xD00 || 3328 || SYSCON FW || {{no}} || sc_fw_update0 firmware (4000XXXX) || [[0.915.010]] || | | 0xD00 || 3328 || SYSCON FW || {{no}} || sc_fw_update0 firmware (4000XXXX) || [[0.915.010]] || | ||
|- | |- | ||
| 0xD01 || 3329 || BLURAY | | 0xD01 || 3329 || BLURAY FW || {{no}} || bluray firmware (all revisions) (4XXR) || [[0.920.030]] || | ||
|- | |- | ||
| 0xD02 || 3330 || USB SATA BRIDGE FW || {{no}} || | | 0xD02 || 3330 || USB SATA BRIDGE FW || {{no}} || usb sata bridge firmware (da0) || 1.00 || | ||
|- | |- | ||
| 0xD07 || 3335 || SYSCON PATCH || {{no}} || sc_fw_update0 patch (4001XXXX) || 2.50 Test/Retail || | | 0xD07 || 3335 || SYSCON PATCH || {{no}} || sc_fw_update0 patch (4001XXXX) || 2.50 Test/Retail || | ||
|- | |- | ||
| 0xD08 || 3336 || SYSCON FW || {{no}} || sc_fw_update0 firmware (4000XXXX) || 1.00 Devkit || | | 0xD08 || 3336 || SYSCON FW || {{no}} || sc_fw_update0 firmware (4000XXXX) || 1.00 Devkit || | ||
|- | |- | ||
| 0xD09 || 3337 || COMMUNICATION PROCESSOR FW || {{no}} || cpfirm || 3.50 Devkit || | | 0xD09 || 3337 || COMMUNICATION PROCESSOR FW || {{no}} || cpfirm || 3.50 Devkit || | ||
|- | |- | ||
|} | |} |