Extracting Tags from an OTA File#

In some cases, it might be helpful to extract data from specific tags of an existing OTA file. This can be done with the --extract command-line option.

For each tag you would like to extract data from you must specify a --tag-id, and the --tag-file option that corresponds to the output file.

In the following example, the existing OTA file is shown first, and then the tag extraction.

bash$ ./image-builder -p test.ota
image-builder (C) 2013 by Silicon Labs
Version: 1.5.2
ECC signature support NOT present.
File: test.ota
Magic Number:         0x0BEEF11E
Header Version:       0x0100
Header Length:        56 bytes
Field Control:        0x0000
Manufacturer ID:      0x0001
Image Type:           0x0001
Firmware Version:     0x00000001
Stack Version:        0x0002
Header String:        test extraction image
Total Image Size:     214 bytes
Total Tags:           3
  ID:                 0xFFF0   (Manufacturer Specific)
  Length:             10 bytes
  ID:                 0xFFFE   (Manufacturer Specific)
  Length:             30 bytes
  ID:                 0xF000   (Manufacturer Specific)
  Length:             100 bytes
Found 1 files.

You can extract all of the tags by specifying each tag and the associated file output. For example:

bash$ ./image-builder-ecc -x test.ota -t 0xfff0 -f tag-fff0.txt -t 0xfffe -f tag-fffe.txt -t 0xf000 -f tag-f000.txt
image-builder (C) 2013 by Silicon Labs
Version: 1.5.2
ECC signature support present.
Wrote tag 0xFFF0, length 10 bytes, to file 'tag-fff0.txt'
Wrote tag 0xFFFE, length 30 bytes, to file 'tag-fffe.txt'
Wrote tag 0xF000, length 100 bytes, to file 'tag-f000.txt'