amptest(7)                          Atheros Powerline Toolkit                          amptest(7)

NAME
       amptest - Atheros Powerline Device Applet Loader

SYNOPSIS
       amptest [options] [file] [file] [...]

DESCRIPTION
       Download  and execute one or more test applets on the local powerline device. An applet is
       a small firmware image that can be started by the bootloader and that returns to the boot‐
       loader when done.

       An Atheros firmware image file can contain one or more applets. Each applet is preceded by
       a header that specifies the image size, load address and start  address.  amptest  sequen‐
       tially dowloads and executes each applet found in each image file specified on the command
       line. It waits for each applet to complete before downloading and executing the next  one.
       The  program  terminates  once  all applets in all files have been executed or some applet
       fails to complete within 60 seconds.

       Most applets return to the Bootloader on successful completion  so  that  another  can  be
       downloaded  and  executed.  This  allows applet chains to be executed using one command. A
       chain may consist of one file containing many applets or several files each containing one
       applet  or any combination of single or multiple applet files. The chain will break, after
       a timeout, if any applet in the chain fails to return to the Bootloader in  time.  Failure
       to return in time may be either a good thing or a bad thing depending on applet design.

       The  toolkit  contains a set of useful applets in folder applets. Most, if not all, are as
       single firmware image files. Program chknvm can be used to inspect firmware  image  files.
       Programs  nvmmerge and nvmsplit can be used to assemble and disassemble multi-image files.
       This allows custom applet chains to be created and kept together in one file.  The  number
       and quality of available applets will probably increase with time.

       Users  should take the time to understand the applets they attempt to execute or confusion
       may result. Each applet should have an associated man page to explain what it does, how it
       works  and the significance of any pass or failure. Most applets execute and return to the
       bootloader within seconds but some loop indefinitely or stop  on  failure.  Newer  applets
       print  progress  and  outcome on the console but older applets merely flash device LEDs to
       indicate progress and outcome.

       This program is part of the Atheros Powerline  Toolkit.  See  the  APT  man  page  for  an
       overview and installation instructions.

OPTIONS
       -c count
              The  number  of  times  the  program will poll the device before declaring an event
              failure. The program will wait a fixed period of time between  each  poll  attempt.
              Overall  wait  time is count/frequency where count can be modified using option -c.
              Overall wait time is always approximate since operating system overhead and latency
              are not taken into account. The default count is 60.

       -e     Redirects  stderr  messages  to stdout. By convention status and error messages are
              printed on stderr while primary program output is printed on  stdout.  This  option
              prints all output on stdout in cases where this is desired.

       -i interface
              Select  the  host  Ethernet interface. All requests are sent via this interface and
              only reponses received via this interface are recognized. The default interface  is
              eth1  because  most people use eth0 as their principle network connection; however,
              if environment string "PLC" is defined then it takes precedence  over  the  default
              interface. This option then takes precedence over either default.

       -p frequency
              The  polling frequency expressed in polls-per-second. For example, 1 means one poll
              per second and 10 means ten polls per second. Overall wait time is  count/frequency
              where  count  may be modified using option -c. Overall wait time is always approxi‐
              mate since operating system overhead and latency are not taken  into  account.  The
              default frequency is 5.

       -q     Suppresses normal progress and status messages.

       -t timer
              Read  timeout  or  capture  period  in  milliseconds.  Values  range from 0 through
              UINT_MAX. This value has different effects on Linux and Windows.  On  Linux,  where
              native raw sockets are used, this is the maximum time allowed for a response and so
              larger values should not affect performance. On Windows,  where  WinPcap  is  used,
              this  is  the  time allotted for packet capture and so larger values will certainly
              affect performance. The default is 50 milliseconds.

       -v     Print additional information on stdout. Specifically, this option  prints  incoming
              and  outgoing  frames  in hexadecimal format on stdout. Output can be directed to a
              text file for analysis.

       -x     Cause the program to exit on the first error instead  of  moving  on  to  the  next
              applet. Error exits return a non-zero value to the shell.

       -?, --help
              Print  program  help  summary  on  stdout.  This option takes precedence over other
              options on the command line.

       -!, --version
              Print program version information on stdout.  This  option  takes  precedence  over
              other  options  on  the  command line. Use this option when sending screen dumps to
              Atheros Technical Support so that they know exactly  which  version  of  the  Linux
              Toolkit you are using.

ARGUMENTS
       file   The  name  of an Atheros image file. The image file may contain one or more images.
              Each image will be downloaded and executed in turn until all images are executed or
              an image fails to return to the Bootloader within 1 minute for some reason.

EXAMPLES
       The  following  example sequentially downloads then executes each image in file abc.nvm in
       turn. Each image must complete and return to the bootloader before the next one downloads.
       Observe  that  no  device  address is needed because Atheros powerline devices use address
       00:b0:52:00:00:01 when in bootloader mode.

          # amptest abc.nvm

       The following example will sequentially download and  execute  the  images  in  each  file
       abc.nvm, def.nvm and ghi.nvm in turn.

          # amptest abc.nvm def.nvm ghi.nvm

DISCLAIMER
       Atheros  image  file structure and content is proprietary to Atheros Communications, Ocala
       FL USA. Consequently, public information is not available. Atheros Communications reserves
       the  right  to  change  file  structure or content in future firmware releases without any
       obligation to notify or compensate users of this program. This program is reserved for use
       by Atheros Field Engineers. Use of this program may void some contractual obligations made
       by Atheros.

SEE ALSO
       chknvm(7), APT(7), nvmsplit(7), nvmmerge(7), setnvm(7)

CREDITS
        Charles Maier <charles.maier@atheros.com>

int6000-utils-linux                   Atheros Communications                           amptest(7)