plc.1 20 KB

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