int6kmod.1.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. int6kmod.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='int6kmdio2.1.html' title=' int6kmdio2.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='int6krate.1.html' title=' int6krate.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. int6kmod(1) Qualcomm Atheros Open Powerline Toolkit int6kmod(1)
  22. NAME
  23. int6kmod - Qualcomm Atheros Powerline Device Module Manager
  24. SYNOPSIS
  25. int6kmod [options] [device] [device] [...]
  26. DESCRIPTION
  27. Read or write Atheros custom powerline modules using VS_MODULE_OPERATION messages. Modules may be read from a device and
  28. written to a file or read from a file and written to a device. Modules may have any of several formats and purposes.
  29. Where the firmware permits, this program can now read modules in excess of 1400 bytes and can write multiple modules that
  30. exceed 1400 bytes in one operation.
  31. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  32. instructions.
  33. OPTIONS
  34. -d Read the specified module from NVRAM and write to standard output in hexadecimal dump format. The module is iden‐
  35. tified by module and sub-module using options -t and -s. Runtime firmware will report an error if the module is
  36. not available. The session identifier is not required for a module read operation and is ignored. The largest
  37. module that can be read is 1400 bytes. This option and option -m are mutually exclusive.
  38. -e Redirects stderr messages to stdout. By convention status and error messages are printed on stderr while primary
  39. program output is printed on stdout. This option prints all output on stdout in cases where this is desired.
  40. -i interface
  41. Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  42. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  43. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  44. interface. This option then takes precedence over either default.
  45. -m filename
  46. Read the specified module from NVRAM and write it to the named file. The module is identified by module and sub-
  47. module using options -t and -s. Runtime firmware will report an error if the module is not available. The ses‐
  48. sion identifier is not required for a module read operation and is ignored. The largest module that can be read
  49. is 1400 bytes. This option and option -d are mutually exclusive.
  50. -M filename
  51. Read the named module file and download it to the named device and commit NVRAM. The module is assigned to a mod‐
  52. ule and sub-module identifier using options -t and -s. Runtime firmware will reject modules having invalid module
  53. and sub-mocule identifiers. Module files must be a multiple of four bytes or an error will occur. As imple‐
  54. mented, int6kmod will reject files exceeding 1400 bytes but this restriction will be removed in later versions.
  55. -q Suppresses status messages on stderr.
  56. -s sub-module-id
  57. The sub-module identifier expressed as a 16-bit hexadecimal value with optional 0x prefix. This identifier indi‐
  58. cates a specific module with the module class specified using option -t. Any 16-bit value is permitted but only
  59. certain values are accepted by device firmware depending on firmware type and revision. The default value is
  60. 0x0000.
  61. -S session-id
  62. The session identifier expressed as a 32-bit hexadecimal value with optional 0x prefix. The session identifier
  63. value is arbitrary and so any 32-bit value is permitted but 0x00000000 and 0xFFFFFFFF are illegal. The 0x prefix
  64. is optional for this argument. The default session-id is 0x78563412.
  65. -t module-id
  66. The module identifier expressed as a 16-bit hexadecimal value with optional 0x prefix. This identifier indicates
  67. the module type or class. Option -s indicates the specific member of a module class. Any 16-bit value is permit‐
  68. ted but only certain values will be accepted by device firmware. The default value is 0x0000.
  69. -v Print additional information on stdout. In particular, this option dumps incoming and outgoing packets which can
  70. be saved as text files for reference.
  71. -w Write settings to the device instead of reading settings from the device. If omitted then settings are read from
  72. the device and displayed. If present, the user should specify all settings to avoid writing default values to the
  73. device.
  74. -?,--help
  75. Print program help summary on stdout. This option takes precedence over other options on the command line.
  76. -?,--version
  77. Print program version information on stdout. This option takes precedence over other options on the command line.
  78. Use this option when sending screen dumps to Atheros Technical Support so that they know exactly which version of
  79. the Linux Toolkit you are using.
  80. ARGUMENTS
  81. device The MAC address of some powerline device. More than one address may be specified on the command line. If more
  82. than one address is specified then operations are performed on each device in turn. The default address is local.
  83. See DEVICES for information.
  84. DEVICES
  85. Powerline devices use Ethernet Media Access Control (MAC) addresses. A MAC address is a 48-bit value entered as 12 hexa‐
  86. decimal digits in upper, lower or mixed character case. Octets may be separated with colons for clarity. For example,
  87. &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are valid and equivalent.
  88. The following MAC addresses are special and may be entered by name instead of number.
  89. all Same as &quot;broadcast&quot;.
  90. broadcast
  91. A synonym for the Ethernet broadcast address, FF:FF:FF:FF:FF:FF. All devices, whether local, remote or foreign
  92. recognize messages sent to this address. A remote device is any device at the far end of a powerline connection.
  93. A foreign device is any device not manufactured by Atheros.
  94. local A synonym for the Qualcomm Atheros vendor specific Local Management Address (LMA), 00:B0:52:00:00:01. All local
  95. Atheros devices recognize this address but remote and foreign devices do not. A remote device is any device at
  96. the far end of a powerline connection. A foreign device is any device not manufactured by Atheros.
  97. REFERENCES
  98. See the Qualcomm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  99. DISCLAIMER
  100. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL
  101. USA. Consequently, public information is not available. Qualcomm Atheros reserves the right to modify message structure
  102. or content in future firmware releases without any obligation to notify or compensate users of this program.
  103. EXAMPLES
  104. The following command reads module file abc.bin and writes it to the local device. The module identifier 0x1000 indi‐
  105. cates that it is an MDIO Init module. The sub-module identifer defaults to 0x0000 because option -s is omitted. The
  106. session identifier defaults to 0x78563412 because option -S is omitted. The operation takes place in three steps. The
  107. last step may take 2 or 3 seconds to complete.
  108. # int6kmod -M abc.bin -t 0x1000
  109. eth1 00:B0:52:00:00:01 Request Session
  110. eth1 00:B0:52:BE:EF:03 Request Granted
  111. eth1 00:B0:52:00:00:01 Write abc.bin
  112. eth1 00:B0:52:BE:EF:03 Written
  113. eth1 00:B0:52:00:00:01 Commit Modules
  114. eth1 00:B0:52:BE:EF:03 Committed
  115. The next example does the same thing but writes module file def.bin to remote device 00:B0:52:BA:BE:02. The module iden‐
  116. tifier 0x4000 indicates that it is an Advanced Power Management uC module. The session identifier used is 0xA5A5A5A5.
  117. The sub-module identifer defaults to 0x0000 because option -s is omitted.
  118. # int6kmod -M def.bin -t 0x4000 -S A5A5A5A5 00:B0:52:BA:BE:02
  119. eth1 00:B0:52:00:00:01 Request Session
  120. eth1 00:B0:52:BE:EF:03 Request Granted
  121. eth1 00:B0:52:00:00:01 Write abc.bin
  122. eth1 00:B0:52:BE:EF:03 Written
  123. eth1 00:B0:52:00:00:01 Commit Modules
  124. eth1 00:B0:52:BE:EF:03 Committed
  125. The next example reads back the module written in the first example and saves it in file zyx.bin.
  126. # int6kmod -m xyz.bin -t 0x1000
  127. eth1 00:B0:52:00:00:01 Read zyx.bin
  128. eth1 00:B0:52:BE:EF:03 Read
  129. SEE ALSO
  130. plc(1), int6kmdio(1), int6kmdio2(1), mdioblock(1), mdioblock2(1), mdiodump(1), mdiogen(1)
  131. CREDITS
  132. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  133. open-plc-utils-0.0.3 Mar 2014 int6kmod(1)
  134. </pre>
  135. <div class='footerlink'>
  136. [<a href='int6kmdio2.1.html' title=' int6kmdio2.1 '>PREV</a>]
  137. [<a href='toolkit.html' title=' Index '>HOME</a>]
  138. [<a href='int6krate.1.html' title=' int6krate.1 '>NEXT</a>]
  139. </div>
  140. </body>
  141. </html>