plc.1.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. plc.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='pibrump.1.html' title=' pibrump.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='plcboot.1.html' title=' plcboot.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. plc(1) Qualcomm Atheros Open Powerline Toolkit plc(1)
  22. NAME
  23. Qualcomm Atheros Powerline Toolkit
  24. SYNOPSIS
  25. Qualcomm Atheros provides the Powerline Toolkit to customers free of charge. The toolkit contains source code and make‐
  26. files to build many useful programs. It also includes example shell scripts that use these programs, in various ways, to
  27. interrogate, control and manage QCA powerline devices. The programs are intended for hardware engineers and software
  28. developers, consequently. They are not intended for end users or computer novices. Most are compact and simple by
  29. design and can be included and executed on embedded platforms having few resources.
  30. INSTALLATION
  31. The Powerline Toolkit is distributed as a tarball named plc-utils-x.x.x.tar.gz or plc-utils-x.x.x.tar.bz2. Users may
  32. unpack the tarball and change to the directory that it creates to inspect the source code and documentation. To compile
  33. the source code, type &quot;make&quot;. To install the programs, type &quot;make install&quot;. To install man pages, type &quot;make manuals&quot;.
  34. To uninstall programs and man pages, type &quot;make uninstall&quot;. To read about the Toolkit, browse file docbook/index.html
  35. and docbook/toolkit.html. This package does not automatically install scripts or html pages. They must be manually
  36. copied to the preferred locations.
  37. We recommend that you login as root before installing this package; otherwise, you will be prompted for the root password
  38. as each component is installed. On some systems, &quot;sudo make install&quot; will work. Programs are installed in
  39. /usr/local/bin. Man pages are installed in /usr/share/man/man[1-9]. If these folders are not correct for your system,
  40. or if you want to install in other folders, then edit folder names defined in the Makefile in each package folder. The
  41. package has been compiled in a variety of Linux distributions (debian, ubuntu, redhat, monta vista, amilda) and on MacOSX
  42. (10.5, 10.6). It has also been cross-compiled for MIPS and Freescale iMX35 but QCA does not support general cross compi‐
  43. lation efforts.
  44. Although this package has been compiled on several platforms, there is no guarantee that it will compile without errors
  45. or warnings on non-GNU/Linux platforms. We continuously update the package but do not attempt to compile or test it on
  46. systems other than GNU/Linux and Microsoft VisualStudio .NET. Some programs have been excluded from the Windows instal‐
  47. lation for technical reasons.
  48. BACKGROUND
  49. HomePlug 1.0 and HomePlug AV are industry standard protocols for powerline communications. Qualcomm Atheros manufactures
  50. a family of chipsets that conform to these standards and have various USB, PCI, Ethernet, MII, SPI and UART host inter‐
  51. faces.
  52. The HomePlug 1.0 protocol is based on IEEE-802.3, has ethertype 0x887B and uses special message formats.
  53. The HomePlug AV protocol is based on IEEE-802.3, has ethertype 0x88E1 and special message formats. A subset of those
  54. message formats are left unspecified so that chipset vendors can define message formats for their own products. QCA ven‐
  55. dor specific management message formats are described in the QCA HomePlugAV Firmware Technical Reference Manual. This
  56. toolkit uses these messages to communicate with QCA powerline devices. Customers may use the toolkit to send these mes‐
  57. sages, explore device behavior and develope their own applications.
  58. Each program in the toolkit deals with a narrow aspect of QCA powerline device management but they can be called from
  59. shell scripts to perform complex tasks. With them, one can identify chipset hardware and firmware version, reset
  60. devices, flash devices, identify other QCA network devices, validate *.pib and *.nvm files, sniff HomePlug AV Ethernet
  61. frames, send generic Ethernet frames and so on.
  62. The source code is designed to demonstrate and educate and may be modified without obligation to Qualcomm Atheros. The
  63. QCA Application Engineering Team would appreciate feedback concerning changes that improve the useability, reliability or
  64. efficiency. Keep in mind that these tools are supposed to be small and simple.
  65. TOOLS
  66. There are many independent programs in this package. Significant ones are listed below. See html/overview.html for more
  67. information about the Atheros Powerline Toolkit.
  68. ampboot
  69. A command line utility to start, and optionally flash, newer Atheros Powerline Devices. It is an alternative to
  70. program int6kboot that may have additional options specific to the AR7400.
  71. amphost
  72. A example embedded host emulator that responds to VS_HST_ACTION messages sent from a flash-less device to a local
  73. host processor. It can be used to investigate and verify device-to-host interaction. The Atheros embedded API
  74. can perform similar functionality in a production environment.
  75. ampsnif
  76. A command line utility to enable or disable sniffer mode on an Atheros Powerline Device.
  77. amptest
  78. A command line utility to download and execute a sequence of test applets to the local powerline device. It is
  79. not for general use because there are no interlocks to prevent loading images designed for other platforms or
  80. loading images in illogical order. It is an laternative to, and replacement for, program int6ktest.
  81. amptool
  82. A basic device manager used to inspect and control Atheros powerline devices connected to the local host. It is
  83. similar to int6k but is specific to the AR7400 chipsets.
  84. ampwait
  85. A command line utility used to pause shell scripts at critical points where a device must be in a known state
  86. before proceeding. Typical cases involve waiting for device power off or reset, power on or restart and network
  87. device association.
  88. ar8236mdioblock
  89. Produce an MDIO block from Atheros AR8236 special register instructions. The output is suitable for downloading
  90. to INT6x00 and AR7x00 powerline devices.
  91. ar8236regedit
  92. Insert values into Atheros AR8236 special registers.
  93. chknvm A command line utility that validates NVM files based on internal header information, filesize, checksums and
  94. other general characteristics. Optionally, it can be used to display all image headers within an NVM file or the
  95. firmware revision contained in the file.
  96. chkpib A command line utility that validates PIB files based on internal header information, filesize, checksum, and
  97. other general characteristics. It can also be used to produce a text catalog of PIB files contained in a direc‐
  98. tory.
  99. coqos_add
  100. CoQoS stream utility. No description.
  101. coqos_info
  102. CoQoS stream utility. No description.
  103. coqos_man
  104. CoQoS stream utility. No description.
  105. coqos_mod
  106. CoQoS stream utility. No description.
  107. coqos_rel
  108. CoQoS stream utility. No description.
  109. efsu A utility to send freeform Ethernet frames. Frames are defined as text files containing hexadecimal byte codes
  110. having optional comments and whitespace. Comments and white space are stripped from the input file and the hexa‐
  111. decimal byte codes are transmitted as Ethernet frames.
  112. ethcat Send on or more files to a remote UART-enabled powerline device using IEEE 802.2 Ethernet frames. Transmitted
  113. frames are assembled into a serial data stream and forwarded to the local host by the remote device.
  114. fp A command line utility that prints the SHA256 digest for one or more files based on their content. Output can be
  115. used to compare files or identify files based soley on their content despite any filename changes.
  116. getpib A command line utility for extracting data from a valid PIB file based on data offset, length and format. It is a
  117. companion to program setpib. Both programs are intended for use in shell scripts. Users must have some knowledge
  118. about the data they are extracting.
  119. hpav An basic packet sniffer that displays incoming HomePlug AV protocol frames addressed to the host as they arrive.
  120. The program may be run in the background as a daemon.
  121. hpavkey
  122. A HomePlug AV key generator. HomePlug AV devices use has keys for various purposes. This program converts one or
  123. more pass phrases, entered on the command line, to either DAKs, NMKs or NIDs. It is similar to hpavkeys but con‐
  124. verts a limited number of pass phrases at one time.
  125. hpavkeys
  126. A HomePlug AV key generator. This program is similar to hpavkey but converts large number of pass phrases, read
  127. from stdin, and converts them to either DAKs, NMKs or NIDs.
  128. int6k A basic device manager used to inspect and control Atheros INT6x00 devices connected to the local host. It is
  129. similar to amptool and plctool but is implemented for INT6000, INT6300 and INT6400 devices only. Some options
  130. work on newer chipsets but otherd do not.
  131. int6kbaud
  132. A command line utility to configurate UART settings on a UART-enabled Atheros powerline device using the ATBR
  133. serial line command.
  134. int6kboot
  135. A command line utility used to bootstrap powerline devices having no flash memory, blank flash memory or corrupted
  136. memory. It interacts with the Atheros BootLoader to configure SDRAM then download runtime firmware and PIB and
  137. start firmware execution. It can also be used to force flash blank or corrupted flash memory.
  138. int6keth
  139. A command line utility to read and write device Ethernet PHY settings.
  140. int6kf A basic flash utility used to initialize INT6300 devices having no flash memory, blank flash memory or corrupted
  141. memory. It interacts with the Atheros Boot Loader to download SDRAM configuration, runtime firmware and PIB. It
  142. can also be used to force flash blank or corrupted flash memory.
  143. int6khost
  144. A example embedded host emulator that responds to VS_HST_ACTION messages sent from a flash-less device to a local
  145. host processor. It can be used to investigate and verify device-to-host interaction. The Atheros embedded API
  146. can perform similar functionality in a production environment.
  147. int6khost64
  148. An updated version of int6khost that omits the needed for an external SDRAM configuration file. It takes advan‐
  149. tage of the memctl applet included in the newer *.nvm files.
  150. int6kid
  151. A command line utility to print the DAK or NMK read from one or more devices. It can be used in shell scripts to
  152. dynamically obtain device key values and insert them on the command line of other programs.
  153. int6km A basic memory read utility used to inspect INT6x000 accessible SDRAM memory locations and mapped registers. Not
  154. all locations or registers are accessible.
  155. int6kmdio
  156. Insert values into MDIO PHY address registers using an VS_MDIO_COMMAND message.
  157. int6kmod
  158. A command line utility that downloads raw modules using a sequence of VS_MODULE_OPERATION messages.
  159. int6kprobe
  160. A command line utility that detects and reports neighbor networks using the VS_DIAG_PROBE message.
  161. int6krate
  162. A command line utility that reports computed PHY rates for a single device or all devices on a logical network.
  163. Ouput is designed for import into a spread sheet.
  164. int6krule
  165. A command line utility used to format and send classification rules to a device. Classification rules are speci‐
  166. fied using symbolic names for actions, options, conditons and frame fields.
  167. int6kstat
  168. A command line utility that prints device link statistics on stdout in a relatively undecorated format. Output is
  169. designed for easy interpretation by other programs.
  170. int6ktest
  171. A command line utility to download and execute a series of test applets to the local powerline device. It is not
  172. for general use because there are no interlocks to prevent loading images designed for other platforms or loading
  173. images in illogical order.
  174. int6kuart
  175. A command line utility to send serial line commands to a UART-enabled Atheros Powerline device. This program
  176. elminates the need for terminal emulation software and can be used to download PIB and firmware files to a device
  177. over the serial line interface.
  178. int6kwait
  179. A command line utility used to pause shell scripts at critical points where a device must be in a known state
  180. before proceeding. Typical cases involve waiting for device power off or reset, power on or restart and network
  181. device association.
  182. mac2pw A device password generator that prints a range of MAC addresses and user passwords on stdout. It is an alterna‐
  183. tive to the Atheros Production Test System (PTS) DBBuilder Utility.
  184. mac2pwd
  185. A device password generator that reads MAC addresses from one or more input files and prints addresses and pass‐
  186. words on stdout. It is an alternative to the Atheros Production Test System (PTS) DBBuilder utility.
  187. mdioblock
  188. Produce an MDIO block from generic MDIO register instructions. The output is suitable for downloading to INT6x00
  189. and AR7x00 powerline devices.
  190. mdiodump
  191. Display a binary MDIO program file in human readable form.
  192. mdiogen
  193. Generate a binary MDIO program file from a series of instruction macros. This program is for folks who know what
  194. they are doing. It has no man page or instructions for use.
  195. mdustats
  196. Collect and display various MDU traffic statistics using the VS_MDU_TRAFFIC_STATS message.
  197. modpib A basic command line PIB editor used to change the MAC, DAK and/or NMK of an existing PIB file. It can also be
  198. used to change the manufacturer string, network name and username strings.
  199. mrgpib A command line utility to copy PIB settings from one PIB file to another where the PIB files have different PIB
  200. versions.
  201. nvmmerge
  202. A command line utility to merge multiple applets or NVM files into a single NVM file.
  203. nvmsplit
  204. A command line utility to split an NVM file into multiple NVM files each containing one image. The original NVM
  205. file is preserved.
  206. odc An offset-driven hex compare utility for analysing the difference between two files having a fixed structure. An
  207. offset definition file is required for proper use. This program has been superceded by program pibcomp.
  208. odd An offset-driven hex dump utility for analyzing any binary file that has a fixed structured, such as an INT6000
  209. PIB file or an INT5500 CFG file. An offset definition file is required for proper use. This program has been
  210. superceded by program pibdump.
  211. odx An offset-driven XML generator used to convert an offset definition file, used by programs odc and odd, to an XML
  212. edit definition file used by program pxe.
  213. pibdump
  214. Read a Qualcomm Atheros powerline parameter file and print an object driven dump on stdout. This program requires
  215. an object definition file.
  216. pibcomp
  217. Read and compare two Qualcomm Atheros powerline parameter files and print an objec driver dump for only those
  218. object that are different. This program requires and object definition file.
  219. pibruin
  220. A classifier rule input utility used to insert multiple classifier rules into a pib file. Use program pibrump to
  221. read rules from another PIB file or create a rule file manually with any text editor. This program is an alterna‐
  222. tive to program int6krule.
  223. pibrump
  224. A classifier rule dump utility used to read rules from a PIB file and print them in a format similar to the input
  225. for program int6krule. The output can be read directly by program pibruin.
  226. plcboot
  227. A command line utility to start, and optionally flash, Qualcomm Atheros Powerline Devices. It is a newer version
  228. of program ampboot having options specific to the QCA6410, QCA7000 and AR7420 chipsets.
  229. plchost
  230. A example embedded host emulator that responds to VS_HST_ACTION messages sent from a flash-less device to a local
  231. host processor. It can be used to investigate and verify device-to-host interaction. The Atheros embedded API
  232. can perform similar functionality in a production environment.
  233. plcmod A command line utility that downloads raw modules using a sequence of VS_MODULE_OPERATION messages. This version
  234. can handle multiple module writes and modules exceeding 1400 bytes.
  235. plcnets
  236. A powerline network enumerator that searches all host network interfaces for powerline devices and their neigh‐
  237. bors.
  238. plctool
  239. plctest
  240. A command line utility to download and execute a sequence of test applets to the local powerline device. It is
  241. not for general use because there are no interlocks to prevent loading images designed for other platforms or
  242. loading images in illogical order. It is a newer version of program amptest.
  243. pskey Print the SHA256 digest for the amplitude make stored in a PIB file. The digest can be used as a fingerprint or
  244. signature for the prescaler set.
  245. psin Read a prescaler file from stdin and replace the amplitude map stored in a PIB file.
  246. psout Read a PIB file and print a prescaler file suitable for input using psin or the WIndows Device Manager.
  247. rkey A command line utility to generate distinct HomePlug AV compliant keys from a user defined keyfile that seeds the
  248. hash algorithm. It can be used to dynamically generate distinct keys inside shell scripts or create long lists of
  249. unique keys for use by other programs.
  250. setnvm A command line utility to modify slected header parameters for all image within a given NVM file. This program
  251. can be used to translate legacy NVM files to contemporary NVM file and vice verse.
  252. setpib A command line utility to insert arbitrary values into a PIB file based on data offset, length and format then
  253. compute a new PIB checksum. This program is a general purpose program intended for use in shell scripts but it
  254. requires detailed knowledge of PIB structure.
  255. ttycat A command line utility to write one or more files to a serial device. This program is a convenient tool for test‐
  256. ing Atheros UART-enabled powerline devices.
  257. weeder A command line utility to set the programmable attenuators build into the Atheros Production Test System (PTS).
  258. There may be other programs added, from time to time, that are not listed here.
  259. SEE ALSO
  260. amphost(1), ampinit(1), plcmod(1), amptest(1), amptool(1), ar8236regedit(1), chkpib(1), chknvm(1), coqos_add(1),
  261. coqos_info(1), coqos_man(1), coqos_mod(1), coqos_rel(1), efsu(1), efbu(1), getpib(1), hpav(1), hpavkey(1), hpavkeys(1),
  262. int6k(1), int6kbaud(1), int6kboot(1), int6keth(1), int6kf(1), int6khost(1), int6khost64(1), int6kid(1), int6km(1),
  263. int6kmdio(1), int6kmod(1), int6kprobe(1), int6krate(1), int6krule(1), int6kstat(1), int6ktest(1), int6kuart(1),
  264. int6kwait(1), mac2pw(1), mac2pwd(1), mdiodump(1), modpib(1), mrgpib(1), nvmmerge(1), nvmsplit(1), odc(1), odd(1), odx(1),
  265. pibdump(1), pibcomp(1), pibruin(1), pibrump(1), plcboot(1), plchost(1), plcmod(1), plcinit(1), plctest(1), plctool(1),
  266. plcrate(1), plcrate(1), plcwait(1), psin(1), pskey(1), psout(1), rkey(1), setnvm(1), setpib(1), ttycat(1), ttyrecv(1),
  267. ttysend(1), weeder(1)
  268. CREDITS
  269. Alex Vasquez &lt;alex.vasques@qca.qualcomm.com&gt;
  270. Andy Barnes &lt;andy.barnes@qca.qualcomm.com&gt;
  271. Bill Wike &lt;bill.wike@qca.qualcomm.com&gt;
  272. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  273. John Byron &lt;john.byron@qca.qualcomm.com&gt;
  274. Mathieu Olivari &lt;mathieu@qca.qualcomm.com&gt;
  275. Nathaniel Houghton &lt;nhoughto@qca.qualcomm.com&gt;
  276. Marc Bertola &lt;marc.bertola@qca.qualcomm.com&gt;
  277. open-plc-utils-0.0.3 Mar 2014 plc(1)
  278. </pre>
  279. <div class='footerlink'>
  280. [<a href='pibrump.1.html' title=' pibrump.1 '>PREV</a>]
  281. [<a href='toolkit.html' title=' Index '>HOME</a>]
  282. [<a href='plcboot.1.html' title=' plcboot.1 '>NEXT</a>]
  283. </div>
  284. </body>
  285. </html>