Here are the steps that might solve the issue
Before installing MOFED
Download Mellanox Firmware tool
Run
mst start
mst status
flind -d /dev/mst/PATH_TO_DEVICE q
Obtain PSID
Find the latest firmware on mellanox site coresponing your to PSID
Burn the firmware like this
flint -d /dev/mst/PATH -i IMAGE_ANEM --nofs burn
This HCA probably is old type card that their flash size is smaller