

Mellanox Firmware Tools 2.0.0: flint, spark, and ibspark tools reference code
=============================================================================

This directory contains the following files:

mflash.h     -   mflash lib (Mellanox HCA flash access) header file
mflash.c     -   mflash lib (Mellanox HCA flash access) source file
                 This lib provides access to the Flash device attached
                 to a Mellanox HCA. It is used by the flint tool to
                 read/write/query the flash device.

ibvsmad.h    -   ibvsmad lib (Mellanox Vendor Specific MAD sender) header file
ibvsmad.c    -   ibvsmad lib (Mellanox Vendor Specific MAD sender) source file
                 This lib provides EEPROM and Configuration space access to a
                 Mellanox InfiniscaleIII switch over IB VS MADs.
                 It requires the OFED driver (1.1 or higher) to be installed.

flint.cpp    -   flint (HCA flash burner) tool source code.

spark.cpp    -   spark (Switch EEPROM burner) tool source code.
                 This is the source code for 2 tools:
                 spark   - Switch FW burn over direct I2C access to the EEPROM.
                 ibspark - Switch FW burn over inband VS MAD.

README       -   This file.


To build the tools:
===================

   *** Note: The following assumes that you have installed the MFT package 
             on your machine. 
	
- For flint, run:
  > g++ -I/usr/mst/include -L/usr/mst/lib -o flint flint.cpp mflash.c -lz -lmtcr

- For spark, run
  > g++ -I/usr/mst/include -L/usr/mst/lib -o spark spark.cpp -lmtcr


   *** Note: The following assumes that you have installed the OFED driver 
             on your machine.
             The ibspark tool is in ALPHA state for this release.

- For ibspark, run:
  > g++ -o ibspark -DUSING_IBVSMAD  spark.cpp ibvsmad.c -libcommon -libmad -libumad 

If the OFED driver is installed in a non-standatd location, add the following to the above
connams line:
    -I<path to infiniband/umad.h>  -L<path to libibumad.so> 


