opencomputeproject / Time-Appliance-Project

Develop an end-to-end hypothetical reference model, network architectures, precision time tools, performance objectives and the methods to distribute, operate, monitor time synchronization within data center and much more...
MIT License
1.32k stars 101 forks source link

tft: Show header info of input file #71

Closed vvfedorenko closed 2 years ago

vvfedorenko commented 2 years ago

Previously there was no check for existing header in the file and it was easy to create multiple headers and corrupt firmware binary. This patch adds check for header and rewrites existing one. It also shows previous values and now tft could be used to read header info.

Signed-off-by: Vadim Fedorenko vadfed@fb.com