int6k.1.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. int6k.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='int64host.1.html' title=' int64host.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='int6kbaud.1.html' title=' int6kbaud.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. int6k(1) Qualcomm Atheros Open Powerline Toolkit int6k(1)
  22. NAME
  23. int6k - Qualcomm Atheros INT6x00 Powerline Device Manager
  24. SYNOPSIS
  25. int6k [options] [device] [device] [...]
  26. DESCRIPTION
  27. This version of the Qualcomm Atheros Device Manager for Linux performs basic operations on Atheros INT6x00 devices using
  28. the raw Ethernet protocol described in the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual. It can be
  29. used to interrogate and control devices or upgrade firmware if on-board NVRAM is present.
  30. This program is part of the Qualcomm Atheros Powerline Toolkit. Is supports legacy chipsets INT6000, INT6300 and
  31. INT6400. See program amptool for AR7400 and AR7450 chipsets. See program plctool for QCA6410, QCA7000 and QCA7420
  32. chipsets. See the plc man page for an overview and installation instructions.
  33. OPTIONS
  34. -a Read device attributes using VS_OP_ATTRIBUTES. Attributes are short strings and integers that describe device
  35. hardware and firmware. They are concatenated to form the output that is similar to option -r but derived differ‐
  36. ently.
  37. -B action
  38. Press the simple connect pushbutton using VS_PB_ENC. The action can be specified by number 1, 2, 3 or 4 or by
  39. symbol &quot;join&quot;, &quot;leave&quot;, &quot;status&quot; or &quot;reset&quot;, respectively. Use 1 on both devices that are expected to join. Use
  40. 2 only on the device that is expected to leave the network.
  41. -C module
  42. Commit (flash) downloaded modules to NVRAM using VS_MOD_NVM. The module can be spedified by number 1, 2 or 3 or
  43. by symbol &quot;nvm&quot;, &quot;pib&quot; or &quot;both&quot;, repectively. Module 3 is equivalent to option -F which writes the NVM and PIB
  44. together. You cannot force flash NVRAM using this option. Use option -FF to force flash.
  45. -d filename
  46. Read Watchdog Report from the device and write it to the named file in binary format using VS_WD_RPT. The report
  47. file can be sent to Qualcomm Atheros for technical analysis. No assumptions are made based on filename and no
  48. filename convetions are enforced; however, you should use a .log file extension to indicate binary format.
  49. -D xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
  50. Define the 16 octet Device Access Key (DAK) in hex format. The DAK is used by option -J. It may also be set to
  51. &quot;key1&quot; or &quot;key2&quot; as explained in the KEYS section.
  52. -e Redirects stderr messages to stdout. By convention status and error messages are printed on stderr while primary
  53. program output is printed on stdout. This option prints all output on stdout in cases where this is desired.
  54. -f Read device NVRAM parameters using VS_GET_NVM. An error will be reported when no NVRAM is present. This option
  55. can be used to determine if NVRAM is large enough to store the runtime firmware and parameter block.
  56. -F[F] Write previously downloaded MAC and PIB to NVRAM using VS_MOD_NVM. Adding a second F here or another -F anywhere
  57. on the command line will force-flash a blank or corrupted NVRAM. Firmware loaded from NVRAM will treat force-
  58. flash as an error. This option can be used to create factory settings but cannot be used to change them once cre‐
  59. ated. Subsequent use creates and updates operational settings that can be erased using a factory reset. This
  60. option is executed after all others on the command line, except for the -R option.
  61. -g Read multicast group information discovered while IGMP snooping using VS_MULTICAST_INFO.
  62. -i interface
  63. Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  64. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  65. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  66. interface. This option then takes precedence over either default.
  67. -I Read the device PIB header using VS_RD_MOD and print the firmware major revision number, PIB minor revision num‐
  68. ber, Device Access Key (DAK), Network Membership Key (NMK), MAC address and other information on stdout.
  69. -J xx:xx:xx:xx:xx:xx
  70. Set the Network Membership Key (NMK) on the remote device, specified by MAC, using VS_SET_KEY. This option is
  71. similar to option -K but requires the remote device MAC and DAK in addition to the NMK and local device MAC
  72. address. The NMK value is defined using option -K unless you want to use the default value. The remote DAK is
  73. defined using option -D unless you want to use the default value. Programming remote device keys is complicated.
  74. It is often easier to connect the device directly to the host and use the -K option.
  75. -K xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
  76. Define the Network Membership Key (NMK) value used by options -M or -J. The symbolic names &quot;key1&quot; and &quot;key2&quot; are
  77. recognized as described in the KEY section.
  78. -l count
  79. Define the number of times that the command will be repeated for each device specified. Normally, you will repeat
  80. operations on one device only.
  81. -m Read network membership information using VS_NW_INFO. This can be used to determine network configuration.
  82. -M Set the Network Membership Key (NMK) on the local device using VS_SET_KEY. The NMK value is specified using the
  83. -K option unless you want to use the default value.
  84. -n filename
  85. Read firmware from the device SDRAM and write it to the named .nvm file using multiple VS_RD_MOD messages. No
  86. assumptions are made based on filename and no filename conventions are enforced. This option is performed before
  87. option -N when both are specified.
  88. -N filename
  89. Read the named .nvm file and write it to the device using multiple VS_WR_MOD messages. No assumptions are made
  90. based on filename and no filename conventions are enforced; however, files having invalid .nvm format will be
  91. rejected. This option is executed after -n when both are specified.
  92. -p filename
  93. Read parameters from the device SDRAM and write them to the named .pib file using multiple VS_RD_MOD messages. No
  94. assumptions are made based on filename and no filename convetions are enforced. This option is executed before
  95. option BP when both are specified.
  96. -P filename
  97. Read the named .pib file and write it to the device using multiple VS_WR_MOD messages. No assumptions are made
  98. based on filename and no filename conventions are enforced; however, files having invalid .pib format will be
  99. rejected. This option is executed after -p when both are specified.
  100. -q Suppresses status messages on stderr.
  101. -Q Quick flash. The program will not wait for a device to reset or the firmware to restart after writing flash mem‐
  102. ory. This option is desirable with newer firmware that writes flash memory in the background. It has no effect
  103. unless used with option -F or -C.
  104. -r Read device firmware and hardware revision using VS_SW_VER. Output is similar to option -a but is derived differ‐
  105. ently.
  106. -R Reset the device using VS_RS_DEV. This option is executed after all others on the same command line.
  107. -s Read device SDRAM configuration using VS_RD_CBLOCK.
  108. -S filename
  109. Read the named .cfg file and write it to the device using VS_SET_SDRAM. No assumptions are made based on filename
  110. and no filename conventions are enforced; however, files having an invalid .cfg file format will be rejected. Do
  111. not confuse .cfg files with .config files. See chkcfg and config2cfg for more information on SDRAM configuration
  112. file formats.
  113. -t milliseconds
  114. Read timeout in milliseconds. Values range from 0 through UINT_MAX. This is the maximum time allowed for a
  115. response. The default is shown in brackets on the program menu.
  116. -T Restore factory defaults. This permanently erases all PIB changes made since the device was last programmed with
  117. factory default settings. The device will automatically reset and reboot.
  118. -v Print additional information on stdout. In particular, this option dumps incoming and outgoing packets which can
  119. be saved as text files for reference.
  120. -w seconds
  121. Defines the number of seconds to wait before repeating command line options. This option has no effect unless
  122. option -l is also specified with a non-zero value.
  123. -x Cause the program to exit on the first error instead of continuing with remaining iterations, operations or
  124. devices. Normally, the program reports errors and moves on to the next operation, iteration or device depending
  125. on the command line.
  126. -?,--help
  127. Print program help summary on stdout. This option takes precedence over other options on the command line.
  128. -?,--version
  129. Print program version information on stdout. This option takes precedence over other options on the command line.
  130. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  131. the Linux Toolkit you are using.
  132. ARGUMENTS
  133. device The Ethernet hardware address of some powerline device. More than one address may be specified on the command
  134. line. If more than one address is specified then operations are performed on each device in turn. The default
  135. address is local. as explained in the DEVICES section.
  136. KEYS
  137. Passwords are variable length character strings that end-users can remember. Keys are fixed length binary values created
  138. by encrypting passwords. There are two encryption algorithms for HomePlugAV. One for DAKs and the other for NMKs. This
  139. means that a given password will produce different keys depending on use. This program only deals with keys because that
  140. is what powerline devices recognize. The passwords that generated the keys are irrelevant here.
  141. Encryption keys are tedious to type and prone to error. For convenience, symbolic names have been assigned to common
  142. encryption keys and are recognized by options -D and -K.
  143. key1 Key for encrypted password &quot;HomePlugAV&quot;. This is &quot;689F074B8B0275A2710B0B5779AD1630&quot; for option -D and
  144. &quot;50D3E4933F855B7040784DF815AA8DB7&quot; for option -K.
  145. key2 Key for encrypted password &quot;HomePlugAV0123&quot;. This is &quot;F084B4E8F6069FF1300C9BDB812367FF&quot; for option -D and
  146. &quot;B59319D7E8157BA001B018669CCEE30D&quot; for option -K.
  147. none Always &quot;00000000000000000000000000000000&quot;.
  148. DEVICES
  149. Powerline devices use Ethernet hardware, or Media Access Control (MAC), addresses. Device addresses are 12 hexadecimal
  150. digits (0123456789ABCDEFabcdef) in upper, lower or mixed case. Individual octets may be separated by colons, for clar‐
  151. ity, but not all octets need to be seperated. For example, &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are
  152. valid and equivalent.
  153. These symbolic addresses are recognized by this program and may be used instead of the actual address value.
  154. all Equivalent to &quot;broadcast&quot;, described next.
  155. broadcast
  156. The Ethernet broadcast address, FF:FF:FF:FF:FF:FF. All devices, whether local, remote or foreign will respond to
  157. this address.
  158. local The Atheros Local Management Address (LMA), 00:B0:52:00:00:01. Local Atheros powerline devices recognize this
  159. address but remote and foreign powerline devices do not. A remote device is any poserline device at the far end
  160. of the powerline. A foreign device is a powerline device not manufactured by Atheros.
  161. REFERENCES
  162. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  163. DISCLAIMER
  164. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL
  165. USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify message
  166. structure or content in future firmware releases without any obligation to notify or compensate users of this program.
  167. EXAMPLES
  168. # int6k -n old.nvm -p old.pib -N new.nvm -P new.pib -F 01:23:45:67:89:AB
  169. Performs 5 operations on one device. Uploads the firmware and PIB from the device and writes them to files old.nvm and
  170. old.pib, respectively. Reads files new.nvm and new.pib and downloads them as new firmware and PIB, respectively. Com‐
  171. mits the downloaded firmware and PIB to NVRAM. Operations are executed in the order just described regardless of the
  172. order specified on the command line. If you want reading and writing to occur in a different order then you must use two
  173. or more commands to accomplish tasks in the order you want.
  174. # int6k -N new.nvm 01:23:45:67:89:28
  175. # int6k -P new.pib 01:23:45:67:89:28
  176. # int6k -C 3 01:23:45:67:89:28
  177. It is not neccessary to specify all operations on one command line. The three command lines above do essentially the
  178. same thing as the command line shown in the previou example. Notice that this example uses -C 3, instead of -F, as an
  179. alternate way to write MAC and PIB to NVRAM. Specifying -C 1, instead, would write the .nvm file only. Specifying, -C
  180. 2, instead, would write the .pib file only. The value 3 is the logical OR of 1 and 2.
  181. # int6k -N new.nvm -P new.pib -FF local
  182. Downloads file new.nvm and file new.pib and force flashes the local device. Force flashing only works on running
  183. firmware that has been downloaded and stated by the Qualcomm Atheros Boot Loader. See int6kf to download, start firmware
  184. and perform a force flash in one operation.
  185. # int6k -MK key1
  186. # int6k -M
  187. These two commands are equivalent. They set the NMK on the local device to key1 as descripted in the KEYS section. The
  188. first command resets the NMK on the local device with -M then specifies the NMK as key1. The second command omits the
  189. key specification since key1 is the program default NMK. One could, of course, type the encryption key.
  190. SEE ALSO
  191. plc(1), amptool(1), int6kf(1), int6khost(1), int6kid(1), int6krate(1), int6krule(1), int6kstat(1), int6kwait(1),
  192. plctool(1)
  193. CREDITS
  194. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  195. Nathaniel Houghton &lt;nhoughto@qca.qualcomm.com&gt;
  196. open-plc-utils-0.0.3 Mar 2014 int6k(1)
  197. </pre>
  198. <div class='footerlink'>
  199. [<a href='int64host.1.html' title=' int64host.1 '>PREV</a>]
  200. [<a href='toolkit.html' title=' Index '>HOME</a>]
  201. [<a href='int6kbaud.1.html' title=' int6kbaud.1 '>NEXT</a>]
  202. </div>
  203. </body>
  204. </html>