Skip to main content

Crate ssh_stamp_ota

Crate ssh_stamp_ota 

Source
Expand description

SFTP-based OTA update server for ssh-stamp.

Receives firmware images over SFTP, validates the TLV header, writes chunks to the OTA partition via OtaActions, marks the partition bootable, and resets the device into the new image.

The tlv module defines the TLV record format used by the packer host utility and the on-device parser. The packer binary (ssh-stamp-ota/src/bin/packer.rs) wraps a raw app binary into an .otap blob with the required TLV header (OTA type, SHA-256 checksum, firmware size).

This crate is no_std on embedded targets. The std feature gate and cfg(target_os = "none") keep the SFTP server and handler modules compiled out on the host, while the tlv module and OtaHeader remain usable from both host and device code.

Re-exports§

pub use tlv::OtaHeader;

Modules§

tlv
Module defining TLV types and constants for OTA updates

Functions§

run_ota_server
Runs the OTA server taking care of reading OTA file metadata, internal state, storage and target reset.