SLB2: Difference between revisions
Jump to navigation
Jump to search
CelesteBlue (talk | contribs) No edit summary |
CelesteBlue (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
/* SLB2 structure is little endian */ | /* SLB2 structure is little endian */ | ||
struct | struct SceSlb2Entry { | ||
uint32_t | uint32_t fileStartSector; | ||
uint32_t | uint32_t fileSizeInByte; | ||
uint32_t | uint32_t reserved[2]; // padding for alignment | ||
char | char fileName[32]; | ||
} __attribute__((packed)); | } __attribute__((packed)); | ||
struct | struct SceSlb2Header { | ||
uint32_t magic; | uint32_t magic; // "SLB2" | ||
uint32_t version; | uint32_t version; // ex: 1 | ||
uint32_t flags; | uint32_t flags; // ex: 0 | ||
uint32_t | uint32_t entryNum; | ||
uint32_t | uint32_t sizeInSector; | ||
uint32_t | uint32_t reserved[3]; // padding for alignment | ||
struct | struct SceSlb2Entry entryList[0]; | ||
} __attribute__((packed)); | } __attribute__((packed)); | ||
</source> | </source> | ||
Line 39: | Line 39: | ||
* [https://github.com/yifanlu/slb2tools slb2tools] (yifan lu) | * [https://github.com/yifanlu/slb2tools slb2tools] (yifan lu) | ||
== Usage == | |||
SLB2 files are parsed by many executables: | |||
* PS4 [[Southbridge]] EMC IPL to extract C0028001 and C0020001 (EAP related) from sflash0s0x32b | |||
{{Software}} | {{Software}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |
Revision as of 09:43, 26 February 2021
Structure
/* 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
- 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
SLB2 files are parsed by many executables:
- PS4 Southbridge EMC IPL to extract C0028001 and C0020001 (EAP related) from sflash0s0x32b