Nvidia MSTFLINT Documentation page 29

Hide thumbs Also See for MSTFLINT:
Table of Contents

Advertisement

nv_debug_mode
0
nv_global_pci_conf
0
In order to include the nv_kdnet_data configuration in the template, change the 0 to 1,
as demonstrated in the following example.
Example:
nv_kdnet_data
 
#mstconfig gen_xml_template /tmp/confs.txt /tmp/template.xml
Saving output...
Done!
 
#cat /tmp/template.xml
<?xml
version="1.0"
encoding="UTF-8"?>
<config xmlns="http://www.mellanox.com/config">
<nv_kdnet_data>
 
<!-- Legal Values: False/True -->
<kdnet_en></kdnet_en>
 
</nv_kdnet_data>
</config>
mstconfig xml2raw Command
The xml2raw command is an easy way to generate a flawless raw configuration file that can be used
in the set_raw command. The input for the command is an XML file that contains the data of the
required configurations. To generate an XML file and fill it with the desired values, run
the commands from
Generating an XML Template for the
command to generate a raw file.
Example:
# cat /tmp/template.xml
<?xml
version="1.0"
encoding="UTF-8"?>
<config xmlns="http://www.mellanox.com/config">
<nv_kdnet_data>
 
<!-- Legal Values: False/True -->
<kdnet_en>True</kdnet_en>
 
</nv_kdnet_data>
</config>
 
#mstconfig xml2raw /tmp/template.xml /tmp/confs.raw
Saving output...
Done!
 
#cat /tmp/confs.raw
MLNX_RAW_TLV_FILE
0x03000004 0x00000085 0x00000000 0x80000000
mstconfig xml2bin Command
The xml2bin command is an easy way to generate a binary file that contains a binary dump
of configurations. The input for the command is an XML file that contains the data of the
required configurations. To generate an XML file and fill it with the desired values, run the
commands from Section 2.4.10, and then use the xml2bin command to generate a binary file.
Example:
#mstconfig xml2bin /tmp/template.xml /tmp/confs.bin
Saving output...
Done!
# hexdump -C /tmp/confs.bin
00000000 80 00 00 00
00000004
1
|....|
Configurations, and then use the xml2raw
29

Advertisement

Table of Contents
loading

Table of Contents