![background image](http://html.mh-extra.com/html/cobra/ode/ode_user-manual_2630399052.webp)
Cobra ODE User Manual v2.0
45
5.3
Valid ISO file specification
If you wish to generate a valid ISO file programmatically, or implement your own
version of genps3iso, then we provide you with the specifications of the iso file so it can be
recognized by the PS3 as a valid disc image.
A disc image is a normal iso file with the exception of the first two sectors which contain
information that will be used by the PS3. The iso file's content can either be encrypted or
plain text, the first sector defining which sector regions are encrypted and which aren't.
Another consideration is that the PS3 will always read in 64KB blocks, 32 sectors at a time
of 2048 bytes each. An encrypted region must always start and end at the 0x20 sector
index boundary.
The first sector has the following format:
32 bit big endian integer: number of plain regions in the disc image
32 bit zeroes
array of <num_plain_regions> containing :
32 bit big endian integer: start sector of the plain region
32 bit big endian integer: end sector of the plain region (inclusive)
The encrypted regions are any region that exists between plain regions. For example:
00000000 00 00 00 02 00 00 00 00 00 00 00 00 00 00 02 3f |...............?|
00000010 00 00 07 c0 00 00 08 5f 00 00 00 00 00 00 00 00 |......._........|
Configuration excerpt 5.8: ISO encrypted and plain regions.
This iso has 2 plain regions, starting from sector 0 to 0x23F and from 0x7C0 to 0x85F, and
one encrypted region from 0x240 to 0x7DF. The total number of sectors in the iso would
be 0x860 sectors.
All SELF files must reside on encrypted sectors, as well as the LICDIR/LIC.DAT license
file.