mdioblock2.1.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. mdioblock2.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='mdioblock.1.html' title=' mdioblock.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='mdiodump.1.html' title=' mdiodump.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. mdioblock2(1) Qualcomm Atheros Open Powerline Toolkit mdioblock2(1)
  22. NAME
  23. mdioblock2 - Qualcomm Atheros Clause 45 MDIO Instruction Block Assembler
  24. SYNOPSIS
  25. mdioblock2 [options] file [file] [...] [&gt;stdout]
  26. mdioblock2 [options] [&lt;stdin] [&gt;stdout]
  27. DESCRIPTION
  28. Assemble an Atheros MDIO instruction block from hexadecimal register instructions. MDIO instruction blocks are written
  29. to Atheros powerline devices as modules using the VS_MOD_OP message type. Alternately, program int6kmod can be used.
  30. Atheros MDIO modules consists of a 16-bit header followed by one or more MDIO communication frames with register masks
  31. and padded to the nearest multiple of 32-bits for download purposes. MDIO instructions are entered here using 802.3ae
  32. Clause 45 (or addr, data and mask) format. See program mdioblock for a similar program that accepts instructions in
  33. 802.3 Clause 22 (or phy, reg, data and mask) format.
  34. This program is part of the Qualcomm Atheros Powerline Toolkit. See the AMP man page for an overview and installation
  35. instructions.
  36. OPTIONS
  37. -q Quiet mode. Suppresses error messages caused by instruction syntax errors.
  38. -v Verbose mode. Prints instructions on stderr as they are processed.
  39. -?,--help
  40. Displays program help information on stderr. This option takes precedence over all other options on the command
  41. line except version information.
  42. -!,--version
  43. Displays program version information on stderr. This option takes precedence over all other options on the com‐
  44. mand line except help information. Use this option when sending screen dumps to Atheros technical staff.
  45. ARGUMENTS
  46. file A text files contining one or more generic MDIO register intructions consisting of a address, data and mask
  47. fields. Fields are separated by whitespace. Instructions are terminated with semicolon. Multiple instructions
  48. may appear on one line and one instruction may span multiple lines. Script-style comments are permitted between
  49. instructions but not between instruction fields.
  50. REFERENCES
  51. See the Qualcomm Atheros AR7x00 Firmware Technical Reference Manual section on the Module Operation message type for more
  52. information on MDIO Block format.
  53. DISCLAIMER
  54. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL
  55. USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify message
  56. structure and content in future firmware releases without any obligation to notify or compensate users of this program.
  57. EXAMPLES
  58. The following command reads register instructions from text file mdio.txt and writes binary file mdio.bin. In this exam‐
  59. ple, the program acts as a filter, reading from stdin and writing to stdout. Progress and error messages, if any, are
  60. written to stderr.
  61. # mdioblock2 &lt; mdio.txt &gt; mdio.bin
  62. The following command reads register instructions from files physetup.dat then flowctl.dat then misc.ins and writes one
  63. binary MDIO block to file mdio.bin. The previous contents of file mdio.bin are overwritten.
  64. # mdioblock2 physetup.dat flowctl.dat misc.ins &gt; mdio.bin
  65. An example register instruction file might look like this. Instructions have addr, data and mask fields. Instruction
  66. fields are separated by whitespace and instructions are terminate by a semicolon. Multiple instructions can appear on
  67. one line or one instruction can span multiple lines. Script-style comments are permitted between instructions but not
  68. between instruction fields.
  69. 2c 7e3f003f ffffffff;
  70. 8 500 ffffffff;
  71. 100 7d ffffffff; 30 19f005f2 ffffffff;
  72. 200
  73. 7d
  74. ffffffff;
  75. 300 7d ffffffff;
  76. # Hello World
  77. 400 7d ffffffff;
  78. 500 7d ffffffff;
  79. SEE ALSO
  80. amp(1), int6kmod(1), int6kmdio(1), int6kmdio2(1), mdioblock(1), mdiodump(1), mdiogen(1)
  81. CREDITS
  82. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  83. open-plc-utils-0.0.3 Mar 2014 mdioblock2(1)
  84. </pre>
  85. <div class='footerlink'>
  86. [<a href='mdioblock.1.html' title=' mdioblock.1 '>PREV</a>]
  87. [<a href='toolkit.html' title=' Index '>HOME</a>]
  88. [<a href='mdiodump.1.html' title=' mdiodump.1 '>NEXT</a>]
  89. </div>
  90. </body>
  91. </html>