Have you installed the Mellanox MFT (Mellanox Firmware Toolkit). It may be you need to use the original flint tool, it requires running mst start from the command line to expose devices in the /dev/mst/ directory that can be used as targets of flint (not mstflint).
Bill