SLB2: Difference between revisions
Jump to navigation
Jump to search
CelesteBlue (talk | contribs) |
|||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== | == Structure == | ||
[[File:PS4 SLB PUP container format - SKFU.png|thumb|PS4 SLB PUP container format - SKFU]] | [[File:PS4 SLB PUP container format - SKFU.png|thumb|PS4 SLB PUP container format - SKFU]] | ||
<source lang="c"> | <source lang="c"> | ||
/* SLB2 structure is little endian */ | |||
struct SceSlb2Entry { | |||
uint32_t fileStartSector; | |||
uint32_t fileSizeInByte; | |||
uint32_t reserved[2]; // padding for alignment | |||
char fileName[32]; | |||
} __attribute__((packed)); | |||
struct SceSlb2Header { | |||
uint32_t magic; // "SLB2" | |||
uint32_t version; // ex: 1 | |||
uint32_t flags; // ex: 0 | |||
uint32_t entryNum; | |||
uint32_t sizeInSector; | |||
uint32_t reserved[3]; // padding for alignment | |||
struct SceSlb2Entry entryList[0]; | |||
} __attribute__((packed)); | |||
</source> | </source> | ||
=== | == Unpacking == | ||
* [https://web.archive.org/web/20141023113732/http://pastie.org/private/4wgojewhp2pq7declhkhw pupunpack.py] (flatz) | * [https://web.archive.org/web/20141023113732/http://pastie.org/private/4wgojewhp2pq7declhkhw pupunpack.py] (flatz) | ||
* [http://www.eurasia.nu/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=10234&ttitle=PS4_PUP_Extractor_v2 PS4 PUP Extractor v2] (xerpi) | * [http://www.eurasia.nu/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=10234&ttitle=PS4_PUP_Extractor_v2 PS4 PUP Extractor v2] (xerpi) | ||
* [https://streetskaterfu.blogspot.fr/2013/11/release-ps4-fw-tool-100.html PS4 FW Tool v1.0.0] (skfu) | * [https://streetskaterfu.blogspot.fr/2013/11/release-ps4-fw-tool-100.html PS4 FW Tool v1.0.0] (skfu) | ||
* | * [https://github.com/Hykem/ps4tools ps4tools] (hykem, based on flatz) | ||
* https://github.com/harlequin/ps4tools (harlequin, based on flatz and zecoxao) | * [https://github.com/harlequin/ps4tools ps4tools] (harlequin, based on flatz and zecoxao) | ||
* https://github.com/nikosradio/ps4tools (nikosradio, based on flatz) | * [https://github.com/nikosradio/ps4tools ps4tools] (nikosradio, based on flatz) | ||
* https://github.com/Keyaku/ps4tools (Keyaku, based on flatz) | * [https://github.com/Keyaku/ps4tools ps4tools] (Keyaku, based on flatz) | ||
* https://github.com/Jakes625/PS4-PUP-Tool (Jakes625) | * [https://github.com/Jakes625/PS4-PUP-Tool PS4-PUP-Tool] (Jakes625) | ||
* [https://github.com/cfwprpht/PS4_AC1D_Flash-Tool PS4_AC1D_Flash-Tool] (cfwprpht) | * [https://github.com/cfwprpht/PS4_AC1D_Flash-Tool PS4_AC1D_Flash-Tool] (cfwprpht) | ||
* [https://github.com/cfwprpht/Usefull_Libraries/blob/master/SLB2/SLB2/SLB2.cs SLB2 library] (cfwprpht) | * [https://github.com/cfwprpht/Usefull_Libraries/blob/master/SLB2/SLB2/SLB2.cs SLB2 library] (cfwprpht) | ||
* [https://github.com/zecoxao/blsunpack blsunpack] (zecoxao) | * [https://github.com/zecoxao/blsunpack blsunpack] (zecoxao) | ||
* [https://github.com/yifanlu/slb2tools slb2tools] (yifan lu) | |||
== Usage == | |||
SLB2 files are parsed by many executables: | |||
* PS4 [[Southbridge]] EMC IPL to extract C0028001 (EMC IPL) and C0020001 (EMC IPL information) from sflash0s0x32b (inactive partition). | |||
== Other notes == | |||
It looks like newer (confirmed for OFW 7.55 and above) SLB2 files have some data between 0x200 and 0x270 which doesn't affect any unpacking tool but affects the unpacking on the PS4. The file gets recognised as corrupted if that data isn't there. This data is present in the `recovery` images but not in the `update` images. | |||
-Other note | |||
Newer updates seems to have New data exactly before the start of the PS4UPDATE.PUP file | |||
It has the same effect as the one between 0x200 and 0x270 | |||
{{Software}} | {{Software}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |
Latest revision as of 13:15, 10 February 2024
Structure[edit | edit source]
/* SLB2 structure is little endian */
struct SceSlb2Entry {
uint32_t fileStartSector;
uint32_t fileSizeInByte;
uint32_t reserved[2]; // padding for alignment
char fileName[32];
} __attribute__((packed));
struct SceSlb2Header {
uint32_t magic; // "SLB2"
uint32_t version; // ex: 1
uint32_t flags; // ex: 0
uint32_t entryNum;
uint32_t sizeInSector;
uint32_t reserved[3]; // padding for alignment
struct SceSlb2Entry entryList[0];
} __attribute__((packed));
Unpacking[edit | edit source]
- pupunpack.py (flatz)
- PS4 PUP Extractor v2 (xerpi)
- PS4 FW Tool v1.0.0 (skfu)
- ps4tools (hykem, based on flatz)
- ps4tools (harlequin, based on flatz and zecoxao)
- ps4tools (nikosradio, based on flatz)
- ps4tools (Keyaku, based on flatz)
- PS4-PUP-Tool (Jakes625)
- PS4_AC1D_Flash-Tool (cfwprpht)
- SLB2 library (cfwprpht)
- blsunpack (zecoxao)
- slb2tools (yifan lu)
Usage[edit | edit source]
SLB2 files are parsed by many executables:
- PS4 Southbridge EMC IPL to extract C0028001 (EMC IPL) and C0020001 (EMC IPL information) from sflash0s0x32b (inactive partition).
Other notes[edit | edit source]
It looks like newer (confirmed for OFW 7.55 and above) SLB2 files have some data between 0x200 and 0x270 which doesn't affect any unpacking tool but affects the unpacking on the PS4. The file gets recognised as corrupted if that data isn't there. This data is present in the `recovery` images but not in the `update` images. -Other note Newer updates seems to have New data exactly before the start of the PS4UPDATE.PUP file It has the same effect as the one between 0x200 and 0x270