1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSLog Demo</title> 10</head> 11 12<body> 13 14<h1>Operating System Log (OSLog) Sample Demo</h1> 15 16<h2>Location</h2> 17 18<p><CODE>$REVOLUTION_SDK_ROOT/build/demos/oslogdemo</CODE></p> 19 20<h2>Compilation</h2> 21<P>Go to <code>$REVOLUTION_SDK_ROOT/build/demos/oslogdemo</code> and enter <code>make</code>. An executable file (<code>.elf</code>) is generated under the path <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/oslogdemo/</code>.</P> 22 23<h2>Running the Demo</h2> 24<P>You need to configure <CODE>DVDRoot</CODE> before executing the demos. Copy the <CODE>$REVOLUTION_SDK_ROOT/dvddata</CODE> directory to the emulation hard disk and specify this directory as <CODE>DVDRoot</CODE>.</P> 25<P>Go to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/oslogdemo/</code> directory and perform one of the following:</P> 26<ul> 27 <li>To simply run the application, execute the <code>ndrun</code> script, using the ELF file as an argument.</li> 28 <li>Run <CODE>ide</CODE> with the ELF file as an argument if you want to debug with CodeWarrior.</li> 29</ul> 30 31<h2>Description</h2> 32<table class="demo_list" border="1" width="95%"> 33 <tr> 34 <th>oslogdemo</th> 35 <td>This sample shows how to use OSLog functions.<BR> This demo writes the contents of <CODE>OSReport</CODE> to Wii console NAND memory using <CODE>OSReportFlush</CODE> as <CODE>OSReportDestination</CODE>.<BR> Serial output, writing to Wii console NAND memory, and both serial output and writing to Wii console NAND memory at the same time is done four times each.<BR> 36 </tr> 37</table> 38 39<h2>See Also</h2> 40<P> 41<a href="../list.html#OSLog">Operation System Log (OSLog) API Function List</a> 42</p> 43 44<H2>Revision History</H2> 45<P> 462008/11/19 Initial version. 47</P> 48 49<hr><p>CONFIDENTIAL</p></body> 50</html>