Toolkit Programs

The Atheros Powerline Toolkit is a collection of over 50 small programs. Each program deals with some aspect of Atheros device management but programs can be combined in various ways, using shell scripts, to perform sophisticated and complex tasks. With these program, one can identify chipset hardware and firmware version, reset devices, flash devices, identify other Atheros network devices, validate *.pib and *.nvm files, sniff HomePlug® AV Ethernet frames, send generic Ethernet frames and so on.

Program source code is designed to illustrate, demonstrate and educate software developers and hardware engineers. It may be modified without obligation to Atheros Communications. Atheros would appreciate feedback concerning changes that might improve the useability, reliability or efficiency. Keep in mind that these tools are intended to be simple and compact.

Program descriptions appear below in alphabetical order:

chknvm

A command line utility to validate .nvm files based on their internal checksum, file size and other characteristics. Optionally, it can be used to display the image headers inside the file. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./nvm. See the chknvm man page for more information.

chkpib

A command line utility to validate .pib files based on their internal checksum, file size and other characteristics. It can also be used to produce a text catalog of .pib files. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the chkpib man page for more information.

config2cfg

A command line utility to convert an SDRAM configruation file used by the Atheros Windows Device Manager to the configuration file format used by the Powerline Toolkit applications. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./sdram. See the config2cfg man page for more information.

efsu

A freeform Ethernet frame send utility used to define and send Ethernet packets. Packets are defined in text files containing hexadecimal byte codes plus optional comments and whitespace. Input files are stripped of comments and whitespace then transmitted as Ethernet frames. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./efsu. See the efsu man page for more information.

getpib

A free-form means of extracting paremeters from a PIB file when the offset, length and format of the parameter is known. It is a companion to program setpib. The user specifies the filename, a starting offset and a sequence of type/data pairs. Values are echoed in order on the console in the specified format. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the getpib man page for more information.

hpav

A basic HomePlug® AV packet sniffer that displays only HomePlug® AV protocol frames on the console as they are sent or arrive on a given interface. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./hpav. See the hpav man page for more information.

hpavkey

A HomePlug® AV key generator. Pass phrase arguments are hashed to form the corresponding Device Access Key (DAK), Network Membership Key (NMK) or Network Identifier (NID). This program is installed in folder /usr/local/bin with 4555 permissions. The main source code is located in folder ./crypt. See the hpavkey man page for more information.

hpavkeys

A HomePlug® AV key generator. Pass phrases are read from a file and hashed to form the corresponding Device Access Key (DAK), Network Membership Key (NMK) or Network Identifier (NID). This program is installed in folder /usr/local/bin with 4555 permissions. The main source code is located in folder ./crypt. See the hpavkeys man page for more information.

int64host

A command line utility that waits for and services VS_HST_ACTION messages from a flash-less device INT6300™ or INT6400™ device. It is similar to program int6khost but does not use an SDRAM configuration files. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int64host man page for more information.

int6k

A command line utility to inspect and control INT6000™ and INT6300™ devices connected to the local host. It performs several of the device maintenance functions available in the Atheros Windows Device Manager but is small enough to run on an embedded system. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder .int6k. See the int6k man page for more information.

int6k2

A command line utility to inspect and control INT6000™ and int6300™ devices connected to the local host. It is similar to int6k but calls the Atheros Embedded API, described in the Atheros HomePlug® AV API User's Guide, to perform device management tasks. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6k2 man page for more information.

int6kboot

A command line utility to start and optionally flash INT6300™ and INT6400™' devices that have no NVRAM or have a blank or corrupted NVRAM. It communicates with the Atheros Bootloader to configure SDRAM, download runtime firmware and PIB and start firmware execution. Users can optionally request that the same PIB and firmware then be used to flash NVRAM. It is similar to program int6kf but does not accept an SDRAM configuration file. Instead, it uses on the memctl applet. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kboot man page for more information.

int6kf

A command line utility to start and optionally flash INT6000™ and INT6300™ devices having no NVRAM or having a blank or corrupted NVRAM. It communicates with the Atheros Bootloader to configure SDRAM, download runtime firmware and PIB and start firmwrae execution. It can also be used to force flash blank or corrupted NVRAM. It is similar to program int6kboot but requires an SDRAM parameter file. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kf man page for more information.

int6khost

A command line utility that waits for and services VS_HST_ACTION messages from a flash-less INT6000™ or INT6300™ device. It is similar to program in64host but needs an SDRAM configuration file. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6khost man page for more information.

int6kid

A command line utility that prints the DAK or NMK strings read from one or more devices. It can be used in shell scripts to dynamically obtain device keys and insert them on program command lines as arguments. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kid man page for more information.

int6klist

A command line utility that lists local devices, or remote devices associated with a specific device, on stdout in undecorated format. It can be used in shell scripts to dynamically determine, and then traverse, network topology. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6klist man page for more information.

int6klog

A command line utility that exports the runtime watchdog report in binary or XML format. Output is suitable for input to the Atheros Windows Device Manager. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6klog man page for more information.

int6kprobe

A command line utility that probes for neighboring networks. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kprobe man page for more information.

int6krate

A command line utility that polls a device and prints the average transmit and receive PHY rates between it and each of it's network neighbors. Program output is suitable for loading into a spreadsheet or other program that can process column-oriented information. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6krate man page for more information.

int6krule

A command line utility to format and send classification rules to a device. Classification rules are specified using symbolic names for actions, options, conditions and frame fields. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6krule man page for more information.

int6kstat

A command line utility that polls a poserline device and prints various network and link statistics in a format suitable for processing by another program. It is a work in progress because we are investigating different ways to present the information. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kstat man page for more information.

int6ktest

A command line utility that downloads and executes program images stored in an Atheros .nvm file. This program can be used to download and execute Atheros hardware diagnostic programs like those in the ./applets folder. It is not intended to download and start runtime firmware, although it may be used for that. The program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6ktest man page for more information.

int6kuart

A command line utility used to manage a local powerline device over a host serial line interface. Program command line options are translated to AT-style serial commands and sent to the device. THe primary benefits of using this program, in place of a terminal emulator, is the ability to download parameter blocks and upload paameter blocks and firmware images. The program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./serial. See the int6kuart man page for more information.

int6kwait

A command line utility that polls the local powerline device and waits for the bootloader or runtime firmware to either stop executing or start executing or wait for a device to associate with another device. It can be used to synchronize scripts with device or network events such as connection make or break, power on or off and firmware stop or start. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./int6k. See the int6kwait man page for more information.

mac2pw

A device password generator that prints a range of MAC address and passwords on stdout. It is an alternative to the Atheros Production Test System (PTS) DBBuilder Utility and toolkit program mac2pwd. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./crypt. See the mac2pw man page for more information.

mac2pwd

A device password generator that reads files containing MAC addresses and prints address/password pairs. It is an alternative to the Atheros Production Test System (PTS) DBBuilder Utility and toolkit program mac2pw. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./crypt. See the mac2pwd man page for more information.

modpib

A command line utility to change the MAC, DAK and/or NMK of an existing PIB file and recompute the checksum. It can also be used to change the manufacturer string, network name and username strings. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the modpib man page for more information.

mrgpib

A command line utility that transfers parameters from one PIB file to another. The two files needs not have the same PIB version. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the mrgpib man page for more information.

nvmmerge

A command line utility to combine multiple Atheros image files into one. It is reserved for use by Atheros Field Application Engineers. Use of this probram could void some contractual obligations made by Atheros. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./nvm. See the nvmmerge man page for more information.

nvmsplit

A command line utility to extract all constituent images from an Atheros image file. It is reserved for use by Atheros Field Application Engineers. Use of this probram could void some contractual obligations made by Atheros. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./nvm. See the nvmsplit man page for more information.

odc

An offset-driven binary file compare utility for the PIB. It requires an offset description file to be useful. The user specifies an offset description file and two binary files. The files are compared, field by field, and differences are printed on stdout, field by field. An example file, piboffset.txt, is included as a basic example. The example offset description file is intentionally incomplete. Complete files are reserved for use by Atheros Field Application Engineers. This program is an alternative to program odx and a companion to program odd. The main source code is located in folder ./tools. See the odc man page for more information.

odd

An offset-driven dump utility for the PIB. It requires an offset description file to be useful. An example file, piboffset.txt, is included as a basic example. The example offset description file is intentionally incomplete. Complete files are reserved for use by Atheros Field Application Engineers. This program is a companion to program odc. The main source code is located in folder ./tools. See the odd man page for more information.

odx

An offset-driven XML dump utility for the PIB. It requires an offset description file to be useful. The user specifies an offset description file and a PIB file. The program output an XML description of PIB fields. An example file, piboffset.txt, is included as a basic example. The example offset description file is intentionally incomplete. Complete files are reserved for use by Atheros Field Application Engineers. This program is an alternative to program odd. The main source code is located in folder ./tools. See the odx man page for more information.

pcapdevs

A utility to enumerate LibPcap or WinPcap devices available on the host. It is compiled but only works if one of these two packages is installed on the host. At present, it is only needed with the Windows version of the Toolkit which is compiled against the WinPcap library. The main source code is located in folder ./ether. See the pcapdevs man page for more information.

pibruin

A command line utility that inserts classifier rules, read from a file, into a PIB file. It is an alternative to program int6krule and companion to program pibrump. The main source code is located in folder ./pib. See the pibruin man page for more information.

pibrump

A command line utility that reads classifier rules from a PIB file and prints them on stdout in a format suitable for input to program pibruin. The main source code is located in folder ./pib. See the pibrump man page for more information.

psin

A command line utility to insert an amplitude map into an existing PIB file. The map is read from stdin in text format allowing the output of program psout to be piped directly into this program. The main source code is located in folder ./pib. See the psin man page for more information.

psout

A command line utility to that exports an amplitude map stored in an existing PIB file. The map is written directly to stdin in text format allowing the output of this program to be piped into the input of program psin. The main source code is located in folder ./pib. See the psout man page for more information.

pxe

A generic 'Remote PIB Management' tool. One or more XML files define decimal, hexadecimal and string edits to be applied to a PIB file. The PIB is read, edits are applied, a new checksum is computed and the PIB is saved. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the pxe man page for more information.

rkey

A command line utility to dynamically generate distinct HomePlug AV compliant keys from a user created keyfile. It can be used in shell scripts to dynamically insert random and distinct keys on program command lines as arguments. For example, a Linux bash script can reference "$(rkey -i eth0 -D secret.key)" inline. This program is installed in folder /usr/local/bin with 4555 file permissions. See the discussion on security for more information about file permissions. The main source code is located in folder ./crypt. See the rkey man page for more information.

setpib

A simple means of setting PIB parameters when the parameter offset, length and format are known. It is an alternative to program pxe and a companion to program getpib. The user specifies the filename, a starting offset and a sequence of type/data pairs. Edits are applied in order and a new checksum is computed. A full or partial dump of the PIB displays the result. This program is installed in folder /usr/local/bin with 0555 file permissions. The main source code is located in folder ./pib. See the setpib man page for more information.

Atheros Communications reserves the right to add, remove or rename utility programs or modify their command line options or their functionality in future software releases without any obligation to notify or compensate users of this software.