1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>Ncheck Tool</TITLE> 8<LINK rel="stylesheet" href="../CSS/revolution.css"> 9</HEAD> 10<BODY> 11<H1 align="left">Ncheck Tool</H1> 12 13<H2>Description</H2> 14<P> 15The Ncheck tool can generate large dummy files and directories in order to create a file system user region that is nearly or completely full. The purpose of this tool is to check whether a given application program is correctly using <CODE>NANDCheck[Async]</CODE>. 16</P> 17 18<H2>How to Use</H2> 19<P> 20<UL> 21<LI>This tool can be controlled using the Wii Remote or a Nintendo GameCube Controller. In either case, use Controller Socket 1.</LI> 22 23<LI>When using the Nintendo GameCube Controller, you can use the +Control Pad, the A and B Buttons, and the L and R Buttons.</LI> 24 25<LI>When using the Wii Remote, you can use the +Control Pad, the A and B Buttons, and the + and - Buttons.</LI> 26 27<LI>The A Button confirms a selection, and the B Button cancels a selection.</LI> 28 29<LI>Pressing the R Button (or + Button) changes the unit for memory capacity when displaying file system information. (Each time the button is pressed, the unit cycles in the following order: FS blocks → blocks → MB → KB.) The unit used to indicate the file size to be created can also be changed on the file size specification screen.</LI> 30 31<LI>Pressing the L Button (or - Button) switches the information that is displayed at the top of the screen. This allows you to view <B>Available capacity information</B>, <B>Secured memory information</B>, and so on. Information about the user region is displayed in the <B>User</B> field.</LI> 32</UL> 33</P> 34 35<H2>Description of Menu Items</H2> 36<DIV STYLE="margin-left:12px"> 37<P> 38<DL> 39<DT><B>Create directories</B></DT> 40<DD> Calculates the consumption of inodes required to create a given directory. One directory consumes one inode.</DD><BR><BR> 41 42<DT><B>Delete directories</B></DT> 43<DD> Increases the number of available inodes by deleting a directory. Only directories created with <B>Create directories</B>, described above, can be deleted.</DD><BR><BR> 44 45<DT><B>Create file</B></DT> 46<DD> Creates one file. The file size can be specified. Note that an inode is also used when creating a file.</DD><BR><BR> 47 48<DT><B>Delete file</B></DT> 49<DD> Deletes a file. A list of files that were created with <B>Create file</B> is displayed. Select the files to be deleted from this list.</DD><BR><BR> 50 51<DT><B>Fill user area with 1 FS block files</B></DT> 52<DD> Creates files with a size of one file-system (FS) block (16 KB) until the upper limit of the user region capacity (272 MB) is reached. An error message is displayed if the upper limit cannot be reached even by using all available inodes. Before you execute this option, we recommend that you reduce the available storage capacity in user memory by saving a large file.</DD><BR><BR> 53 54<DT><B>Fill user area with a file</B></DT> 55<DD> Creates a single large file that just reaches the upper limit (272 MB) of the user memory capacity.</DD><BR><BR> 56 57<DT><B>Semi-auto mode</B></DT> 58<DD> Automatically adjusts the resource consumption status of the user region based on the total number of FS blocks and inodes required by the application being checked. This enables you to generate an available area that meets your particular specifications. Note, however, that this operation does not always succeed. An error results if the resources that can be used freely by the Ncheck tool are insufficient. The first time the Ncheck tool is started, be sure to secure at least several dozen MB of available memory and several hundred available inodes in the user region. If the amount of memory in the user region is low, Semi-auto mode may terminate with an error.</DD><BR><BR> 59 60<DT><B>Credits</B></DT> 61<DD> Displays the Ncheck tool version and other information.</DD> 62</DL></DL> 63</P> 64</DIV> 65 66<H2>Check Method</H2> 67<P> 68This section explains how to check files using an NDEV for which the Wii system menu is not installed.</P> 69<H3>Checking ELF files</H3> 70<DL> 71<DD>1. Use <CODE>ndrun</CODE> to execute the ELF file that is being checked and verify that the title screen of the application is displayed.</DD><BR> 72 73<DD>2. Start the NDEV system menu. (Start the ELF file while depressing the Z Button on the Nintendo GameCube Controller connected to the NDEV.)</DD><BR> 74 75<DD>3. Select <B>Manipulate Save Data</B> and delete the initial code for the ELF file (the default value is 0000 and can be changed using the <A HREF="../tools/setinitialcode.html">setinitalcode</A> command). (Deleting this initial code deletes the file located below the home directory of the file being checked.)</DD><BR> 76 77<DD>4. Using the <A HREF="../tools/setinitialcode.html">setinitialcode</A> command, change the initial code assigned to the <CODE>Ncheck tool</CODE> ELF file so it is different from the initial code of the ELF file being checked. Set the highest-order byte of the initial code to a nonzero value. Furthermore, we recommend that you set <CODE>A</CODE> into the lowest order byte. This procedure is necessary to make the home directory of the application to be checked different from the home directory of the Ncheck tool. After making this change, execute the <CODE>Ncheck tool</CODE> ELF file.</DD><BR> 78 79<DD>5. Once the <CODE>Ncheck tool</CODE> has started, select <I>Semi-auto mode</I> (recommended) or <I>Create directories</I> or <I>Create file</I> and consume the available memory space and inodes until the entire user region (272 MB and 4000 inodes) is nearly used up. How much memory and how many inodes to leave depends on the amount of memory and number of inodes required by the application to be checked. Five files are temporarily created the first time the application starts. Assume the total number of FS blocks consumed by these files is 64 (= 1 MB). (Note that this includes binary files used for save data.) In cases such as this, if the amount of user region memory consumed when the application first starts exceeds 271 MB or the number of inodes consumed exceeds 3995, the application must warn the player that files cannot be created due to insufficient available resources.</DD><BR> 80 81<DD>6. Use <CODE>ndrun</CODE> to execute the ELF file and check whether file creation has succeeded or failed.</DD> 82 83</DL> 84<H3>Checking RVM files</H3> 85<DL> 86<DD>1. Before beginning, be sure to convert <CODE>Ncheck tool</CODE> for the checking of master data (RVM files). Set anything other than zero into the highest order byte of <CODE>GameName</CODE> in the DDF file. Furthermore, we recommend that you set <CODE>A</CODE> into the lowest order byte. (For details, see the <i>Mastering Tools Quick Start Guide</i>.) This procedure is needed to ensure that the home directory of the application to be checked is different from the home directory of the Ncheck tool.</DD><BR> 87 88<DD>2. Follow the same three steps described for checking ELF files (steps 1-3).</DD><BR> 89 90<DD>3. Execute the created RVM file as follows.</DD><BR> 91<DD><PRE> % ODEM -l -r Ncheck.rvm</PRE></DD> 92 93<DD>4. Follow steps 5 and 6 described for checking ELF files.</DD><BR> 94</DL> 95 96<P> 97Effective from version 0.10a, WAD files can also be checked. 98<UL> 99<LI>A file converted to WAD format has been included, enabling the Ncheck tool to be run as a NAND application. For more information on importing and running this WAD file, see the <A HREF="../nadk/Nmenu.html">NAND Application Development Kit (NADK)</A>.</LI> 100</UL> 101</P> 102 103<H2>Notes and Supplemental Information</H2> 104<P> 105<UL> 106<LI>Files and directories that exceed the size of the user region cannot be created.</LI> 107<LI>The <CODE>Ncheck</CODE> tool creates a banner file directly under the home directory when it starts for the first time. The two directories, <CODE>~/files</CODE> and <CODE>~/dirs</CODE>, are also created.</LI> 108<LI>Resources in the user region are consumed and deallocated by creating files and directories under this directory.</LI> 109<LI>Both NTSC and PAL are supported. Note the program's video mode and make the appropriate setting.</LI> 110</UL> 111</P> 112 113<H2>Location</H2> 114<P><CODE>$REVOLUTION_SDK_ROOT/RVL/bin/tools/Ncheck.elf</CODE></P> 115<P><CODE>$REVOLUTION_SDK_ROOT/RVL/dvddata/viewer/Ncheck.wad</CODE></P> 116 117<H2>Revision History</H2> 118<P> 119<U>2010/06/18</U><BR> 120<UL> 121<LI>Added a method for checking ELF files.</LI> 122</UL> 123</P> 124 125<P> 126<U>2009/10/13</U><BR> 127<UL> 128<LI>Integrated into the SDK.</LI> 129</UL> 130</P> 131 132<P> 133<U>2008/11/13</U><BR><BR> Version 0.10b : 134<UL> 135<LI>Changed the WAD file's game code.</LI> 136</UL> 137</P> 138 139<P> 140<U>2008/11/07</U><BR><BR> Version 0.10a : 141<UL> 142<LI>Included a WAD file in the package.</LI> 143</UL> 144</P> 145 146<P> 147<U>2006/12/13</U><BR><BR> Version 0.10 : 148<UL> 149<LI>Implemented the Semi-auto mode. Automatically creates dummy files and directories so that exactly the number of available FS blocks and inodes required by the application to be checked are left free.</LI> 150<LI>Organized the display items.</LI> 151<LI>Made it so that open information is displayed at the start.</LI> 152<LI>Made it so that file system information continues to be displayed at the top of the screen even on the <B>Delete file</B> screen. 153</UL> 154</P> 155 156<P> 157<U>2006/11/21</U><BR><BR> Version 0.07 : 158<UL> 159<LI>Support for reset/shutdown using the RESET and Power buttons on the Wii console.</LI> 160<LI>Changed the order of display of file system information items.</LI> 161<LI>Information about the current directory is shown at the bottom of the <B>Delete file</B> screen.</LI> 162<LI>Added descriptions of menu items.</LI> 163<LI>Slightly increased the speed at which files are created.</LI> 164<LI>Support for control of operations using the Wii Remote.</LI> 165</UL> 166</P> 167 168<P> 169<U>2006/03/28</U><BR><BR> Version 0.06 : 170<UL> 171<LI>Support for PAL.</LI> 172</UL> 173</P> 174 175<P> 176<U>2006/10/10</U><BR><BR> Version 0.05 : 177<UL> 178<LI>Initial version.</LI> 179</UL> 180</P> 181 182<hr><p>CONFIDENTIAL</p></body> 183</HTML>