Skip to content

Conversation

@manojnacsl
Copy link
Collaborator

@manojnacsl manojnacsl commented Mar 3, 2025

Add Cisco FND TPD header helper script + Cisco FND TPD Firmware format spec

add_tpdheader.py

$ python3 add_tpdheader.py -h
usage: add_tpdheader.py [-h] input_file output_file config_file
Add Cisco FND compatible header to TPD firmware image
positional arguments:
   input_file Input TPD binary file
   output_file Output binary file with TPD header
   config_file JSON configuration file
options:
   -h, --help show this help message and exit
Eg:
$ python3 add_tpdheader.py <input-image> <output-image> <json-config-file>

tpd_config.json

{
"major": "7",
"minor": "1",
"build": "2",
"name": "CsmpAgent_Linux",
"hwid": "OPENCSMP",
"sub_hwid": "0",
"branch": "osal",
"commit": "048841d",
"date": "Mar 15 2025",
"kernelrev": "WISUN1.0"
}

Files:

  • tools/add_tpdheader.py
  • tools/tpd_config.json
  • docs/Cisco_FND_TPD_FirmwareFormat_Spec.pdf

@manojnacsl manojnacsl requested review from ismilak and paduffy March 3, 2025 17:19
@manojnacsl
Copy link
Collaborator Author

The three enhancement asks (Py3.x support, Input/Output files as params, JSON for TPD configuration) have been added via Commit 19d0907
Relevant documentation updates to the spec file will follow...

@manojnacsl
Copy link
Collaborator Author

Committed an updated TPD firmware format specification via Commit bd25a6b

@manojnacsl
Copy link
Collaborator Author

Please review/approve to conclude this PR. Thanks.

@ismilak
Copy link
Collaborator

ismilak commented Mar 31, 2025

Please review/approve to conclude this PR. Thanks.

The new add_tpdheader.py has been tested with EFR32 wisun platform. The entire scenario with the new image works fine.
Successfully loaded 6.4.0 EFR32 sample image:

Screenshot 2025-03-31 at 11 55 51

@ismilak ismilak self-requested a review March 31, 2025 09:57
@manojnacsl manojnacsl merged commit 28a01f0 into osal Mar 31, 2025
@manojnacsl manojnacsl deleted the tpdhdr.osal branch March 31, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants