Thank You for your reply .
I tried the fastboot script method .
I get the following error:
./fastboot_imx_flashall.sh: line 131: fastboot: command not found
I compiled the code with make -j4 fastboot
And I can see the fastboot bin file generated in {MY_ANDROID}/host/linux-x86/bin/
Can you please tell me the issue ?