Skip to main content

Module ops

Module ops 

Constantsยง

CONFIG ๐Ÿ”’
DEFAULT_WORK_DIR
Default directory for the files that run creates.
UBI_MAGIC ๐Ÿ”’
Magic string at the start of a UBI image.

Functionsยง

clean
Removes work_dir with the files created by run.
copy_with_md5sum ๐Ÿ”’
Copies size bytes from r to w and returns their MD5 sum.
find_partition ๐Ÿ”’
flash ๐Ÿ”’
parse_config ๐Ÿ”’
run
Computes the new partitions from the FOTA blob and flashes them onto the proper MTD flash memory locations.
sync
Copies the updated partitions to the inactive slot after the reboot.