Generating Firmware Secure and NV LifeCycle Configurations Files
On This Page
The flint "set_forbidden_versions" command takes as a parameter the binary file that contains the forbidden versions. To create this file easily you can use the mlxconfig "xml2bin" command. The forbidden versions configuration is found in the mlxconfig database.
Run mlxconfig "gen_tlvs_file".
Generate XML template using mlxconfig "gen_xml_template".
Set values for the parameters in the XML template.
You can set up to 32 forbidden versions. mlxconfig requires all the parameters in the XML template to have values, so in case you want to fill only one forbidden version you have to set the other 31 parameters to zero, you can do that by using index range as follows:
Run the xml2bin command to generate the binary file.
mlxconfig can be used to generate CS tokens, debug tokens and NV LifeCycle configuration files and apply it on your device.
To create the tokens:
Generate XML template that contains the necessary configurations for the token.
The XML template must have only one token configuration. The current available token configurations are: debug token, challenge based debug token, customer token, challenge based customer token and MLNX ID token.
The XML must also have the file_applicable_to configuration for all devices and an additional configuration which is device dependent:
For cables include the file_device_unique configuration.
For other devices include the file_mac_addr_list configuration.
Generate a binary file that can be applied to the device using the mlxconfig create_conf command.