mstresourceparse Utility
The mstresourceparse tool parses and prints data segments content. The parser's output is used by NVIDIA representatives for debugging and troubleshooting.
The tool's applicable parsing inputs can be the mstresourcedump outputs (bin file or “human readable” format), or the devlink JSON format output.
To parse the segments data in the most efficient way, you must use the most suitable ADB file. For the ADB file, please contact NVIDIA Support.
            
            mstresourceparse -d DUMP_FILE -a ADB_FILE [-h] [--version] [-o OUT] [-r] [-v]
        
    
where
| 
     -d, --dump-file  | 
                
     Location of the dump file used for parsing  | 
        
| 
     -a, --adb-file  | 
                
     Location of the ADB file  | 
        
| 
     -h, --help  | 
                
     Shows this help message and exit  | 
        
| 
     --version  | 
                
     Shows the tool's version and exit  | 
        
| 
     -o, --out  | 
                
     Location of the output file  | 
        
| 
     -r, --raw  | 
                
     Prints the raw data in addition to the parsed data  | 
        
| 
     -v  | 
                
     Verbosity notice  | 
        
Examples:
How to run basic parsing:
# mstresourceparse --dump-file notice.txt --adb-file fw-
4119-rel-16_23_2008.adb Parse4segments: -------------------------------------------------------------------------------- Segment - segment_info (0xfffe) segment_header.segment_type =0xfffesegment_header.length_dw =0x4dump_version =0x0hw_version =0x0fw_version =0x1063232c-------------------------------------------------------------------------------- Segment - segment_command (0xfffa) segment_header.segment_type =0xfffasegment_header.length_dw =0x5vhca_id =0x0segment_called =0x2000index1 =0x21index2 =0x0num_of_obj1 =0x0num_of_obj2 =0x0-------------------------------------------------------------------------------- Segment - segment_notice (0xfff9) segment_header.segment_type =0xfff9segment_header.length_dw =0xcsyndrome_id =0x211notice[0] =0x2000notice[1] =0x21notice[2] =0x0notice[3] =0x0notice[4] =0x496e7661notice[5] =0x6c696420notice[6] =0x52657300notice[7] =0x0notice msg = !Invalid Res -------------------------------------------------------------------------------- Segment - segment_terminate (0xfffb) segment_header.segment_type =0xfffbsegment_header.length_dw =0x1--------------------------------------------------------------------------------How to run parsing with ‘raw’ and ‘verbosity’ options:
# mstresourceparse --dump-file notice.txt --adb-file fw-
4119-rel-16_23_2008.adb –raw -v Notice - adb fw version16.23.2008is usedforparsingwhiledump fw version is16.99.9004Parse4segments: -------------------------------------------------------------------------------- Segment - segment_info (0xfffe) segment_header.segment_type =0xfffesegment_header.length_dw =0x4dump_version =0x0hw_version =0x0fw_version =0x1063232cRAW DATA: DWORD [0-3] :0x0004FFFE0x000000000x000000000x1063232C-------------------------------------------------------------------------------- Segment - segment_command (0xfffa) segment_header.segment_type =0xfffasegment_header.length_dw =0x5vhca_id =0x0segment_called =0x2000index1 =0x21index2 =0x0num_of_obj1 =0x0num_of_obj2 =0x0RAW DATA: DWORD [0-3] :0x0005FFFA0x200000000x000000210x00000000DWORD [4] :0x00000000-------------------------------------------------------------------------------- Segment - segment_notice (0xfff9) segment_header.segment_type =0xfff9segment_header.length_dw =0xcsyndrome_id =0x211notice[0] =0x2000notice[1] =0x21notice[2] =0x0notice[3] =0x0notice[4] =0x496e7661notice[5] =0x6c696420notice[6] =0x52657300notice[7] =0x0RAW DATA: DWORD [0-3] :0x000CFFF90x000002110x000000000x00000000DWORD [4-7] :0x000020000x000000210x000000000x00000000DWORD [8-11] :0x496E76610x6C6964200x526573000x00000000notice msg = !Invalid Res -------------------------------------------------------------------------------- Segment - segment_terminate (0xfffb) segment_header.segment_type =0xfffbsegment_header.length_dw =0x1RAW DATA: DWORD [0] :0x0001FFFB--------------------------------------------------------------------------------How to run parsing and save it into a file:
# mstresourceparse --dump-file notice.txt --adb-file fw-
4119-rel-16_23_2008.adb –out out_flie.txt write to file: out_flie.txt