2.2 Write Root Certificate Hash
When Secure SAM-BA Cipher 3.5 root-cert-hash
command is executed, more
than one output file is generated for some devices.
As an example, for the SAMA5D2 family, two output files are created:
cert-hash_sama5d2x.cip
and
cert-hash_sama5d2x_nk.cip
.
Then, after both files are copied into the same directory, the SAM-BA tool
write_rsa_hash
unique command line must be executed.
An example for SAMA5D2 follows:
sam-ba –p secure –d sama5d2 –m
write_rsa_hash:cert-hash_sama5d2x.cip
As for the write-customer-key
command, SAM-BA tool seamlessly probes the
ROM code version of the target device to select the proper input file, either
cert-hash_sama5d2x.cip
and
cert-hash_sama5d2x_nk.cip
.