plchost.1.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. plchost.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='plcget.1.html' title=' plcget.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='plchostd.1.html' title=' plchostd.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. plchost(1) Qualcomm Atheros Open Powerline Toolkit plchost(1)
  22. NAME
  23. plchost - Qualcomm Atheros Powerline Device Host Emulator
  24. SYNOPSIS
  25. plchost [options] -N file -P file
  26. DESCRIPTION
  27. Wait for VS_HST_ACTION.IND messages from a local device and service them as described in the QCA Firmware Technical Ref‐
  28. erence Manual. This program can be used to demonstrate or verify proper powerline device/host interaction for flash-less
  29. devices. This implementation is not production grade and will stop dead - like a bug! - when things go wrong. Consider
  30. using the Qualcomm Atheros Embedded API for real-time, production-grade applications.
  31. Host emulation applies to flash-less device designs where a local host processor provides the persistent storage. The
  32. local host can provide a wide range of intelligent storage functions for a device but this program offers one. Options
  33. -N and -P name existing files that store the factory default runtime firmware and parameters, respectively. Options -n
  34. and -p name scratch files that will store user firmware and parameters, respectively. This is similiar to the standard
  35. Atheros NVRAM scheme but is not the same.
  36. To use the program, connect a flash-less device to the host via ethernet then start this program with the correct file‐
  37. names. The program will automatically respond to device requests to download memory configuration, firmware and/or
  38. parameters and upload firmware or and/or parameters under device control. See the Qualcomm Atheros Firmware Technical
  39. Reference Manual for more information.
  40. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  41. instructions.
  42. OPTIONS
  43. -F[F] Flash NVRAM once downloaded firmware has started. The same firmware and PIB are downloaded, again, using
  44. VS_WR_MOD and written to NVRAM using VS_MOD_NVM. Adding a second F here or another -F anywhere on the command
  45. line will perform a forced flash. When no NVRAM is present, normal and force flash cause the device to upload to
  46. the host. When blank or corrupted NVRAM is present, forced flash writes to NVRAM. This operation will fail when
  47. no NVRAM is present.
  48. -i interface
  49. Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  50. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  51. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  52. interface. This option then takes precedence over either default.
  53. -N filename
  54. Use this fIle to download firmware when requested by the local device. The file must exist and have a valid NVM
  55. file format or it will be rejected. No assumptions are made based on filename and no filename conventions are
  56. enforced. The program will not over-write this file. This option and argument are required.
  57. -n filename
  58. Use this file to store firmware uploaded from the local device. The file need not exist but an error will occur
  59. if it cannot be created or written. If firmware is uploaded to this file, it is used for subsequent firmware
  60. downloads unless the device requests a factory reset. In that case, the file specified by option -N is used.
  61. This option and argument are optional. If omitted then the default filename user.pib will be used.
  62. -P filename
  63. Use this file to download parameters when requested by the local device. The file must exist and have a valid PIB
  64. file format or it will be rejected. No assumptions are made based on filename and no filename conventions are
  65. enforced. The program will not over-write this file. This option and argument are required.
  66. -p filename
  67. Use this file to store parameters uploaded from the local device. The file need not exist but an error will occur
  68. if it cannot be created or written. Once parameters are uploaded to this file, it is used for subsequent parame‐
  69. ter downloads unless the device requests a factory reset. In that case, the file specified by option -P is used.
  70. This option and argument are optional. If omitted then the default filename user.nvm will be used.
  71. -q Suppress status messages on stderr.
  72. -Sfilename
  73. Use this file to download the softloader when requested by the local device. The file must exist and have a valid
  74. NVM file format or it will be rejected. No assumptions are made based on filename and no filename conventions are
  75. enforced. The program will not over-write this file. This option and argument are required.
  76. -t milliseconds
  77. Read timeout in milliseconds. Values range from 0 through UINT_MAX. This is the maximum time allowed for a
  78. response. The default is shown in brackets on the program menu.
  79. -v Print additional information on stdout. In particular, this option will print incoming and outgoing Ethernet
  80. frames on stdout.
  81. -?, --help
  82. Print program help summary on stdout. This option takes precedence over other options on the command line.
  83. -!, --version
  84. Print program version information on stdout. This option takes precedence over other options on the command line.
  85. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  86. the Linux Toolkit you are using.
  87. ARGUMENTS
  88. None.
  89. REFERENCES
  90. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  91. EXAMPLES
  92. The following command starts the host emulator. The -N and -P options are always required. Their order is not impor‐
  93. tant.
  94. # plchost -N test.nvm -P test.pib -n temp.nvm -p temp.pib
  95. eth1 00:B0:52:00:00:01 Waiting for Host Action Requests
  96. eth1 00:B0:52:00:00:01 Host Action Request is (4) configure memory.
  97. eth1 00:B0:52:00:00:01 Write Memory (00000040:15752)
  98. eth1 00:B0:52:00:00:01 Wrote mac-release-X.nvm
  99. eth1 00:B0:52:00:00:01 Started BootLoader
  100. eth1 00:B0:52:00:00:01 Host Action Request is (0) initialize device.
  101. eth1 00:B0:52:00:00:01 Write Memory (00000040:15752)
  102. eth1 00:B0:52:00:00:01 Wrote mac-release-X.nvm
  103. eth1 00:B0:52:00:00:01 Started BootLoader
  104. eth1 00:B0:52:00:00:01 Write Memory (00204000:1013952)
  105. eth1 00:B0:52:00:00:01 Wrote mac-release-X.nvm
  106. eth1 00:B0:52:00:00:01 Write Memory (01F00000:11400)
  107. eth1 00:B0:52:00:00:01 Wrote AR7400-WallAdapter-HomePlugAV_NorthAmerica.pib
  108. eth1 00:B0:52:00:00:03 Started INT7400-MAC-0-0-1008-00-63-20100227-AUTO-D
  109. DISCLAIMER
  110. Atheros HomePlug AV Vendor Specific Management Message Entry structure and content is proprietary to Qualcomm Atheros,
  111. Ocala FL USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify mes‐
  112. sage structure and content in future firmware releases without any obligation to notify or compensate users of this pro‐
  113. gram.
  114. SEE ALSO
  115. plc(1), ampboot(1), amptool(1),
  116. CREDITS
  117. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  118. open-plc-utils-0.0.3 Mar 2014 plchost(1)
  119. </pre>
  120. <div class='footerlink'>
  121. [<a href='plcget.1.html' title=' plcget.1 '>PREV</a>]
  122. [<a href='toolkit.html' title=' Index '>HOME</a>]
  123. [<a href='plchostd.1.html' title=' plchostd.1 '>NEXT</a>]
  124. </div>
  125. </body>
  126. </html>