.avm) alongside fwup archives. Use it for devices that run Erlang or Elixir applications on AtomVM.
A packbeam is the application only. It does not contain the AtomVM virtual machine or the bootloader, and NervesHub does not update those.
Requirements
Enable AtomVM
1
Enable it on the instance
Whoever hosts the instance sets
ATOMVM_FIRMWARE_ENABLED=true. Until then no .avm file is recognised and the product setting below is not shown. See feature prerequisites.2
Enable it on the product
Open Product settings. On the General tab, in the Firmware card, turn on AtomVM packbeam archives.With the CLI:With the API, set Listing a format the instance has not enabled returns a 422.
allowed_update_tools on the product:3
Decide on signing
Sign archives with an fwup key registered to your organization, or allow unsigned archives on the product. See Signing.
allowed_update_tools. The default is ["fwup"], and fwup cannot be removed. Uploading an .avm to a product that has not opted in is rejected with a message naming the product.
Metadata
NervesHub reads the OTP application metadata stored in the packbeam as the entry<app>/priv/application.bin:
Rules to follow:
- The application name must match the name of the NervesHub product you upload to.
- Platform and architecture are the same for every packbeam, because a packbeam carries no chip or board identifier. Model different hardware as different products.
- The UUID comes from the archive’s bytes. Uploading identical bytes gives the same firmware, and any change gives a new one. Signing an archive changes its bytes, so the signed and unsigned archives have different UUIDs.
Where application.bin comes from
rebar3 atomvm packbeam writes application.bin into every archive it builds.
ExAtomVM (mix atomvm.packbeam) does not. An Elixir project must write priv/application.bin itself before packing, or NervesHub cannot read the upload and the device cannot report what it is running. The agent’s Elixir example has a Mix task that generates the file from mix.exs. See examples/smart_kiosk_ex.
Archives with dependencies
A packbeam built from a project with dependencies has oneapplication.bin per application. NervesHub uses the first one in the archive. The rebar3 plugin writes the project’s own application first and dependency archives last. An archive assembled by hand in another order is filed under a dependency’s name.
Set a SemVer version
An OTPvsn is free form. NervesHub requires a semantic version and accepts these shapes:
Signing
The packbeam format has no signature of its own. NervesHub defines one: a data entry namednerves_hub/signature, appended as the last entry of the archive. It holds an Ed25519 signature over every byte before that entry. AtomVM skips data entries when it looks for code, so a signed archive still runs on a VM that knows nothing about the signature.
The key is your organization’s fwup signing key. If the organization has no fwup key yet, see Firmware signing.
Sign an archive in one of two ways:
- nh
- nh-avm
nh firmware upload signs a packbeam itself before uploading it, with the same key options as fwup firmware:- An archive that carries a signature must verify against one of the organization’s fwup (Ed25519) keys. A signature that does not verify is always refused.
- An archive with no signature is refused unless the product allows unsigned archives.
firmware_keys. See AtomVM on ESP32.
Allow unsigned archives
In Product settings, turn on AtomVM packbeam archives, then tick Allow unsigned AtomVM archives. With the CLI:allow_unsigned_atomvm_firmware on the product in the API. It defaults to false, so a product that turns the format on accepts signed archives only.
Upload an archive
Upload an.avm the same way as any other firmware. NervesHub identifies the format from the file’s contents, not from its extension.
- Web
- CLI
Open the product’s Firmware page and select Upload firmware.
Limits
- No delta updates. NervesHub never generates deltas for packbeams. A deployment group with Delta updates turned on still sends AtomVM devices the whole archive.
- Two partitions on the device. The agent writes an update into the packbeam partition the device is not running from. A device built with the stock AtomVM partition table has only one and cannot be updated. See AtomVM on ESP32.
- Archives are separate. Archives are fwup files regardless of the firmware format.

