mdioblock2.1 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. .TH mdioblock2 1 "Mar 2014" "plc-utils-2.1.6" "Qualcomm Atheros Powerline Toolkit"
  2. .SH NAME
  3. mdioblock2 - Qualcomm Atheros Clause 45 MDIO Instruction Block Assembler
  4. .SH SYNOPSIS
  5. .BR mdioblock2
  6. .RI [ options ]
  7. .IR file
  8. .RI [ file ]
  9. .RI [ ... ]
  10. .RI [> stdout ]
  11. .PP
  12. .BR mdioblock2
  13. .RI [ options ]
  14. .RI [< stdin ]
  15. .RI [> stdout ]
  16. .SH DESCRIPTION
  17. Assemble an Atheros MDIO instruction block from hexadecimal register instructions.
  18. MDIO instruction blocks are written to Atheros powerline devices as modules using the \fBVS_MOD_OP\fR message type.
  19. Alternately, program \fBint6kmod\fR can be used.
  20. .PP
  21. Atheros MDIO modules consists of a 16-bit header followed by one or more MDIO communication frames with register masks and padded to the nearest multiple of 32-bits for download purposes.
  22. MDIO instructions are entered here using \fB802.3ae Clause 45\fR (or \fIaddr\fR, \fIdata\fR and \fImask\fR) format.
  23. See program \fBmdioblock\fR for a similar program that accepts instructions in \fB802.3 Clause 22\fR (or \fIphy\fR, \fIreg\fR, \fIdata\fR and \fImask\fR) format.
  24. .PP
  25. This program is part of the Qualcomm Atheros Powerline Toolkit.
  26. See the \fBAMP\fR man page for an overview and installation instructions.
  27. .SH OPTIONS
  28. .TP
  29. .RB - q
  30. Quiet mode.
  31. Suppresses error messages caused by instruction syntax errors.
  32. .TP
  33. .RB - v
  34. Verbose mode.
  35. Prints instructions on stderr as they are processed.
  36. .TP
  37. .RB - ? ,-- help
  38. Displays program help information on stderr.
  39. This option takes precedence over all other options on the command line except version information.
  40. .TP
  41. .RB - ! ,-- version
  42. Displays program version information on stderr.
  43. This option takes precedence over all other options on the command line except help information.
  44. Use this option when sending screen dumps to Atheros technical staff.
  45. .SH ARGUMENTS
  46. .TP
  47. .IR file
  48. A text files contining one or more generic MDIO register intructions consisting of a \fBaddress\fR, \fBdata\fR and \fBmask\fR fields.
  49. Fields are separated by whitespace.
  50. Instructions are terminated with semicolon.
  51. Multiple instructions may appear on one line and one instruction may span multiple lines.
  52. Script-style comments are permitted between instructions but not between instruction fields.
  53. .SH REFERENCES
  54. See the Qualcomm Atheros \fIAR7x00 Firmware Technical Reference Manual\fR section on the \fIModule Operation\fR message type for more information on MDIO Block format.
  55. .SH DISCLAIMER
  56. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL USA.
  57. Consequently, public information may not be available.
  58. Qualcomm Atheros reserves the right to modify message structure and content in future firmware releases without any obligation to notify or compensate users of this program.
  59. .SH EXAMPLES
  60. The following command reads register instructions from text file \fBmdio.txt\fR and writes binary file \fBmdio.bin\fR.
  61. In this example, the program acts as a filter, reading from \fBstdin\fR and writing to \fBstdout\fR.
  62. Progress and error messages, if any, are written to \fBstderr\fR.
  63. .PP
  64. # mdioblock2 < mdio.txt > mdio.bin
  65. .PP
  66. The following command reads register instructions from files \fBphysetup.dat\fR then \fBflowctl.dat\fR then \fBmisc.ins\fR and writes one binary MDIO block to file \fBmdio.bin\fR.
  67. The previous contents of file \fBmdio.bin\fR are overwritten.
  68. .PP
  69. # mdioblock2 physetup.dat flowctl.dat misc.ins > mdio.bin
  70. .PP
  71. An example register instruction file might look like this.
  72. Instructions have \fIaddr\fR, \fIdata\fR and \fImask\fR fields.
  73. Instruction fields are separated by whitespace and instructions are terminate by a semicolon.
  74. Multiple instructions can appear on one line or one instruction can span multiple lines.
  75. Script-style comments are permitted between instructions but not between instruction fields.
  76. .PP
  77. 2c 7e3f003f ffffffff;
  78. 8 500 ffffffff;
  79. 100 7d ffffffff; 30 19f005f2 ffffffff;
  80. 200
  81. 7d
  82. ffffffff;
  83. 300 7d ffffffff;
  84. # Hello World
  85. 400 7d ffffffff;
  86. 500 7d ffffffff;
  87. .SH SEE ALSO
  88. .BR amp ( 1 ),
  89. .BR int6kmod ( 1 ),
  90. .BR int6kmdio ( 1 ),
  91. .BR int6kmdio2 ( 1 ),
  92. .BR mdioblock ( 1 ),
  93. .BR mdiodump ( 1 ),
  94. .BR mdiogen ( 1 )
  95. .SH CREDITS
  96. Charles Maier <cmaier@qca.qualcomm.com>