amptest(1)
π amptest(1) π
Qualcomm Atheros Open Powerline Toolkit π
β¨ NAME β¨
okay bestie, here's the tea π« amptest is the Qualcomm Atheros PLC Test Applet Loader π
β¨ SYNOPSIS β¨
amptest [options] [file] [file] [...]
β¨ DESCRIPTION β¨
okay so amptest downloads and runs one or more test applets on the local Qualcomm Atheros PLC device π₯. An applet is a tiny firmware image that the bootloader can start, and it returns to the bootloader when it's done π§. This program is an alternative to int6ktest, but it has been replaced by plctest π.
A Qualcomm Atheros firmware image file can hold one or more applets πΈ. Each applet starts with a header that tells you its image size, load address and start address β¨. amptest goes through every applet in every image file you list on the command line, one at a time, downloading and running each one in order π. It waits for each applet to finish before it moves on to the next. The program stops once every applet in every file has run, or once some applet fails to finish within 60 seconds π.
Most applets go back to the Bootloader when they succeed, so the next applet can be downloaded and run π¦. That means you can run whole applet chains with one command π«Ά. A chain can be one file with several applets, several files with one applet each, or any mix of single and multi-applet files π. If any applet in the chain doesn't get back to the Bootloader in time, the chain breaks after a timeout π. Honestly, failing to return in time could be either a good thing or a bad thing, depending on how the applet was designed π.
This program is part of the Qualcomm Atheros Powerline Toolkit. Check out the APT man page for an overview and installation instructions π.
β¨ COMMENTS β¨
The Qualcomm Atheros Powerline Toolkit has a set of legacy applets in the applets folder π. They were designed for int6ktest, and most of them won't show console messages properly with this program π. A new series of compatible applets is under development and should be available through Atheros Field Application Engineering πΈ.
If you've got a good set of applets, this program is ideal for testing reference designs for performance and for checking production units for defects π. Applets might eventually show up for testing onboard connections, memory integrity and noise immunity π₯. Talk to Atheros Field Application Engineering about which applets are available π .
β¨ OPTIONS β¨
-eβ Sends stderr messages over to stdout π . By convention, status and error messages get printed on stderr while the main output goes to stdout. This option puts everything on stdout for when you need that π.-i interfaceβ Picks the host Ethernet interface π. All requests go out through this interface, and only responses that come back through it get recognized π¦. The default iseth1, since most people useeth0as their main network connection π. But if the environment stringPLCis defined, it takes priority over the default β¨. And this option beats both of them π.-lβ Runs all applets in all the files on the command line over and over, in order, re-executing them until you stop the program with^Cπ.-qβ Hushes the normal progress and status messages π€«.-t millisecondsβ Sets the read timeout in milliseconds β±οΈ. Values can range from0throughUINT_MAXπ’. This is the max time allowed for a response π. The default is shown in brackets on the program menu π.-vβ Prints extra info on stdout π. Specifically, it prints incoming and outgoing frames in hexadecimal format, and you can send the output to a text file for analysis π.-w secondsβ Sets the application timeout in seconds β. The program waits this long for an applet to terminate and return to the bootloader. If that doesn't happen, it reports an error and moves on to the next applet π.-xβ Exits on the first error instead of skipping ahead to the next applet π. Error exits return a non-zero value to the shell π.-?,--helpβ Prints a help summary on stdout π. This option takes priority over any other options on the command line π.-!,--versionβ Prints version info on stdout β¨. This option also takes priority over the other options. Use it when you're sending screen dumps to Atheros Technical Support, so they know exactly which version of the Linux Toolkit you're running π«Ά.
β¨ ARGUMENTS β¨
fileβ The name of an Atheros image file π. The image file can hold one or more images. Each image gets downloaded and executed in turn, until all of them have run or an image fails to return to the Bootloader within1 minutefor some reason πΈ.
β¨ EXAMPLES β¨
This example sequentially downloads and then executes each image in the file abc.nvm, one at a time π¬. Each image has to complete and return to the bootloader before the next one downloads π«Ά. No device address is needed here, because Atheros powerline devices use address 00:b0:52:00:00:01 when they're in bootloader mode π§.
# amptest abc.nvm
This one sequentially downloads and executes 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 Qualcomm Atheros, Ocala FL USA π. Because of that, public information isn't available π. Qualcomm Atheros reserves the right to change the 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 β¨
APT(1), chknvm(1), chknvm2(1), int6ktest(1), nvmsplit(1), nvmmerge(1), plctest(1), setnvm(1) π
β¨ CREDITS β¨
Big thanks to Charles Maier ππ«Ά
Rewritten from open-plc-utils-0.0.3, dated November 2013. Stay iconic, bestie π π¦β¨
π¦ where this page comes from
- alpine 3.24: open-plc-utils-doc 0_git20250712-r1 Β· BSD-3-Clause-Clear
- debian bookworm: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- debian trixie: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1 Β· BSD-3
- ubuntu noble: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- ubuntu questing: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1
- ubuntu resolute: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- ubuntu stonking: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms