ctr_makecia

Description

This ctr_makecia tool is for creating CIA (CTR Importable Archive) files. This tool generates CIA files that can be imported via DevMenu from CXI files, which are the executable images of imported applications.
CIA files that can be imported to CTR can also be generated from the SRL files used for TWL NAND applications.

You can create CIA files of data titles storing add-on content. To read details about the creation of these data title CIA files, see the E-Commerce Kit documentation.

How to Use

What's Required

The following files are required to generate CIA files for imported applications.

or

The following files are required in order to generate CIA files from TWL NAND applications.

Command

Generate CIA files for imported applications

When created from CXI and CFA files

% ctr_makecia32 -i CXI_FILE -o CIA_FILE [-man MANUAL_CFA_FILE]

When created from a CCI file

% ctr_makecia32 -cci CCI_FILE -o CIA_FILE

When generating CIA files for CTR imported applications, you must specify CXI_FILE and CIA_FILE.
If the MANUAL_CFA_FILE option is not specified, a CIA file without a manual is generated.

Generate CIA files from TWL NAND application SRL files

% ctr_makecia32 -srl SRL_FILE -o CIA_FILE

When generating CIA files from a TWL NAND application SRL file, you must specify SRL_FILE and CIA_FILE.

Options

Options Description
-i Specifies the input CXI file.
-i CONTENTS_PATH:INDEX Specifies content included in the CIA file.
Specify the content file path in CONTENTS_PATH.
INDEX specifies the index number that contains this content. There is a predetermined INDEX to specify for each type of content.
Only specify 0 for a CXI file storing an executable image of an imported application.
Only specify 1 for a CFA file storing an e-manual.
Only specify 2 for a CFA file storing a download-play child program.
You must not specify any other values.
Refer to the documentation corresponding to each type of content for details.
-o Specifies the output CIA file.
-cci Converts from CCI to CIA. This cannot be used at the same time as options other than -o.
-srl Specify the SRL file built as the TWL NAND application. The -srl option cannot be specified concurrently with the -i and -man options.
-man Specifies the CFA file for the manual.
-datatitle-version Specifies the version of the data title. This can only be used when creating a data title.
-content-list Specifies the content list file for a data title. This can only be used when creating a data title.

Variables Defined Within OMakefiles

See Build Rules for more information about the variables defined in OMakefile.

Revision History

2012/04/16
Added the "-i CONTENTS_PATH:INDEX" option for specifying the content included in a CIA file.
2011/03/16
Added the "-cci" option for converting from CCI to CIA.
2011/12/16
Added descriptions of options used when creating data titles.
2011/03/22
Described how to generate CIA files that include manuals and how to generate CIA files from TWL NAND applications.
2010/07/14
Initial version.

CONFIDENTIAL