On my Nexus 5 phone, WIFI and Bluetooth services stopped working all of a sudden. I recently got an update for 5.1 version, but could not update as some system files got corrupted. I tried a factory data reset but the issue still persists. Now I am trying to flash 5.01 OS and it is failing. Below is the log I have. Can anyone please suggest a solution to get my nexus back into working?
target reported max download size of 1073741824 bytes
sending 'bootloader' (3807 KB)...
OKAY [ 0.363s]
writing 'bootloader'...
FAILED (remote: invalid bootloader image)
finished. total time: 0.543s
rebooting into bootloader...
OKAY [ 0.098s]
finished. total time: 0.098s
target reported max download size of 1073741824 bytes
sending 'radio' (67169 KB)...
OKAY [ 2.907s]
writing 'radio'...
FAILED (remote: size too large)
finished. total time: 3.088s
rebooting into bootloader...
OKAY [ 0.097s]
finished. total time: 0.098s
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 1679613116 bytes
error: update package missing system.img
Press any key to exit...