PUP: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 3: Line 3:
PUP embed updates for devices such as the GameOS, Syscon, Wi-Fi, Bluetooth, Communication Processor, Southbridge, BD drive.
PUP embed updates for devices such as the GameOS, Syscon, Wi-Fi, Bluetooth, Communication Processor, Southbridge, BD drive.


= Structure =
== Structure ==


PS4 PUP is special because it embeds single other PUPs.
PS4 PUP is special because it embeds single other PUPs.


== Header ==
=== 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:
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:
Line 23: Line 23:
</source>
</source>


= Tools =
== Tools ==


=== Decrypter (first step) ===
=== Decrypter (first step) ===
Line 33: Line 33:
* [https://github.com/idc/ps4-pup_unpack ps4-pup-unpack by idc]
* [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] (based on ps4-pup-unpack by idc)
== Indices ==
{| class="wikitable sortable"
|-
! Index !! Description !! Perconsole ? || Notes
|-
| 1 || EMC IPL || NO || sflash0s0x32/b Aeolia 1st Revision
|-
| 2 || EAP KBL || NO || sflash0s0x33 Aeolia 1st Revision
|-
| 3 || WIFI FW || NO || torus2
|-
| 4 || SAM IPL || YES || sflash0s1.cryptx2/b 1st SOCUID
|-
| 5 || COREOS || NO || secure_modules
|-
| 6 || SYSTEM || NO || system fs (FAT32/TEXFAT later)
|-
| 7 || EAP KERNEL || NO || da0x2
|-
| 8 || EAP VSH || NO || eap_vsh fs (FAT16)
|-
| 9 || PREINST || NO || preinst fs (FAT32)
|-
| 0xA || ??? || NO || sflash0s1.cryptx40
|-
| 0xB || PREINST2 || NO ||  preinst2 fs (FAT32)
|-
| 0xC || SYSTEM_EX || NO || system_ex fs (FAT32/TEXFAT later)
|-
| 0xD || EMC IPL || NO || sflash0s0x32/b Aeolia 2nd Revision
|-
| 0xE || EAP KBL || NO || sflash0s0x33 Aeolia 2nd Revision
|-
| 0xF || ??? || NO || test
|-
| 0x10-0x16 || ??? || NO || sbram0
|-
| 0x20 || EMC IPL || NO || sflash0s0x32/b Belize 1st Revision
|-
| 0x21 || EAP KBL || NO || sflash0s0x33 Belize 1st Revision
|-
| 0x22 || WIFI FW || NO || torus2
|-
| 0x101 || EULA.XML || NO || Sony Agreement XML
|-
| 0x200 || ORBIS_SWU.SELF || NO || Sony SoftWareUpdater (ELF)
|-
| 0x202 || ORBIS_SWU.SELF || NO || Sony SoftWareUpdater (Encrypted SELF)
|-
| 0x301 || ??? || NO || /update related
|-
| 0x302 || ??? || NO || /update related
|-
| 0xD00 || SYSCON FW || NO || sc_fw_update0 firmware (4000XXXX)
|-
| 0xD01 || BLURAY FW || NO || bluray firmware (all revisions) (4XXR)
|-
| 0xD02 || USB SATA BRIDGE FW || NO || usb sata bridge firmware (da0)
|-
| 0xD08 || SYSCON FW || NO || sc_fw_update0 firmware (4000XXXX)
|-
| 0xD09 || COMMUNICATION PROCESSOR FW || NO || cpfirm
|-
|}




{{Software}}
{{Software}}
<noinclude>[[Category:Main]]</noinclude>
<noinclude>[[Category:Main]]</noinclude>

Revision as of 15:15, 30 June 2021

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:

struct PUPPS4Header {
	uint32_t magic;			// PS4PUPMAGIC "\x4F\x15\x3D\x1D"
	uint16_t version;		// Big Endian (??)
	uint16_t unknownOne;
	uint16_t unknownTwo;
	uint16_t unknownThree;
	uint32_t dictSize;		// LE afaics
	uint32_t uncompressedSize;	// LE afaics
}

Tools

Decrypter (first step)

Unpacker (second step)


Indices

Index Description Perconsole ? Notes
1 EMC IPL NO sflash0s0x32/b Aeolia 1st Revision
2 EAP KBL NO sflash0s0x33 Aeolia 1st Revision
3 WIFI FW NO torus2
4 SAM IPL YES sflash0s1.cryptx2/b 1st SOCUID
5 COREOS NO secure_modules
6 SYSTEM NO system fs (FAT32/TEXFAT later)
7 EAP KERNEL NO da0x2
8 EAP VSH NO eap_vsh fs (FAT16)
9 PREINST NO preinst fs (FAT32)
0xA ??? NO sflash0s1.cryptx40
0xB PREINST2 NO preinst2 fs (FAT32)
0xC SYSTEM_EX NO system_ex fs (FAT32/TEXFAT later)
0xD EMC IPL NO sflash0s0x32/b Aeolia 2nd Revision
0xE EAP KBL NO sflash0s0x33 Aeolia 2nd Revision
0xF ??? NO test
0x10-0x16 ??? NO sbram0
0x20 EMC IPL NO sflash0s0x32/b Belize 1st Revision
0x21 EAP KBL NO sflash0s0x33 Belize 1st Revision
0x22 WIFI FW NO torus2
0x101 EULA.XML NO Sony Agreement XML
0x200 ORBIS_SWU.SELF NO Sony SoftWareUpdater (ELF)
0x202 ORBIS_SWU.SELF NO Sony SoftWareUpdater (Encrypted SELF)
0x301 ??? NO /update related
0x302 ??? NO /update related
0xD00 SYSCON FW NO sc_fw_update0 firmware (4000XXXX)
0xD01 BLURAY FW NO bluray firmware (all revisions) (4XXR)
0xD02 USB SATA BRIDGE FW NO usb sata bridge firmware (da0)
0xD08 SYSCON FW NO sc_fw_update0 firmware (4000XXXX)
0xD09 COMMUNICATION PROCESSOR FW NO cpfirm