ch05s11.html 4.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Testing a Device</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch05.html" title="Chapter 5.  Procedures"><link rel="prev" href="ch05s10.html" title="Starting a Device"><link rel="next" href="ch05s12.html" title="Programming NVRAM"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
  2. Testing a Device
  3. </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch05s10.html">Prev</a> </td><th width="60%" align="center">Chapter 5. 
  4. Procedures
  5. </th><td width="20%" align="right"> <a accesskey="n" href="ch05s12.html">Next</a></td></tr></table><hr></div><div class="section" title="Testing a Device"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="procedure-testing-device"></a>
  6. Testing a Device
  7. </h2></div></div></div><p>
  8. When the <span class="application">Bootloader</span> is running, it is possible to perform systematic diagnostic testing by downloading and executing a variety of small programs, called <span class="quote">“<span class="quote">applets</span>”</span>. A collection of applets can be found in the toolkit <code class="filename">Applets</code> folder. Applet <a class="ulink" href="toolkit.html#applet-files" target="_top">manpages</a> describe the purpose of each one. Some applets are more useful than others. Start by reading the <a class="ulink" href="applets.7a.html" target="_top">applets</a> manpage.
  9. </p><p>
  10. Program <a class="ulink" href="int6ktest.7.html" target="_top">int6ktest</a> can be used to sequentially download and execute a series of applets. Applets have evolved over time and some are more useful or informative than others. Newer applets report progress and errors on the console. Older applets report progress or errors by flashing the onboard <acronym class="acronym">LED</acronym>s. This means of testing cannot be used after the flash memory has been programmed unless you erase, corrupt or remove the flash.
  11. </p><pre class="screen">
  12. # int6ktest -i eth4 connection.nvm memctl.nvm marchloop.nvm
  13. eth4 00:B0:52:00:00:01 Write Memory (00000000:32)
  14. eth4 00:B0:52:00:00:01 Wrote connection.nvm
  15. eth4 00:B0:52:00:00:01 Start connection.nvm (0)
  16. eth4 00:B0:52:00:00:01 Write Memory (00001000:664)
  17. eth4 00:B0:52:00:00:01 Wrote connection.nvm
  18. eth4 00:B0:52:00:00:01 Start connection.nvm (1)
  19. eth4 00:B0:52:00:00:01 Write Memory (00000040:6076)
  20. eth4 00:B0:52:00:00:01 Wrote memctl.nvm
  21. eth4 00:B0:52:00:00:01 Start memctl.nvm (0)
  22. eth4 00:B0:52:00:00:01 Write Memory (00001000:2212)
  23. eth4 00:B0:52:00:00:01 Wrote marchloop.nvm
  24. eth4 00:B0:52:00:00:01 Start marchloop.nvm (0)
  25. eth4 00:B0:52:00:00:01 0x00 March2 test - Pass
  26. </pre><p>
  27. This example uses program <a class="ulink" href="int6ktest.7.html" target="_top">int6ktest</a> to download and execute applets <a class="ulink" href="connection.7a.html" target="_top">connection.nvm</a>, <a class="ulink" href="memctl.7a.html" target="_top">memctl.nvm</a> and <a class="ulink" href="marchloop.7a.html" target="_top">marchloop.nvm</a> to the powerline device on host interface <span class="quote">“<span class="quote">eth4</span>”</span>. The first applet checks circuit board connections to memory and reports progress and errors by flashing onboard <acronym class="acronym">LED</acronym>s. The second configures the <acronym class="acronym">SDRAM</acronym> controller and exits without any indication. The third performs a systematic test of <acronym class="acronym">SDRAM</acronym> and reports progress and errors on the console. In this case the test passed.
  28. </p><p>
  29. See programs <a class="ulink" href="amptest.7.html" target="_top">amptest</a> and <a class="ulink" href="plctest.7.html" target="_top">plctest</a> for updated versions of this program for use with <span class="productname">AR7400</span>™ and <span class="productname">QCA7420</span>™ chipsets.
  30. </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch05s10.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch05s12.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
  31. Starting a Device
  32.  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
  33. Programming NVRAM
  34. </td></tr></table></div></body></html>