nanddump vs fastboot
Take the image of the phone that's working by the following code


First find out the dev block of the system partition



  cat /proc/mounts



Search for the system partitions and note down the corresponding /dev/block/ partition
For example for my phone it is /dev/block/mmcblk0p12
Now make the exact copy of the partition using dd command



  dd if=/dev/block/***** of=/sdcard/system.img



Copy this system.img from your phone to PC
Connect your other phone in fastboot mode
Run the following command



  fastboot flash system &lt;path-to-system.img&gt;