Just for further testing, I downloaded another several different factory
images after that, which are 4.4, 4.4.4, 5.0 and 5.1. Finally, I found
all images below 5.0 can't work on my device.
The steps I flash the image just following these steps:
1. Reboot the device into recovery mode, wipe the user data and cache;
2. Reboot to the bootloader, unlock the device by "fastboot oem unlock";
3. then running "flash-all.sh".
All of these were successful. But after reboot, it just stuck on the Google's logo screen.
I also noticed there're some error messages if I go to the recovery mode like these:
E: failed to mount /cache (No such file or directory)
E: Can't mount /cache/recovery/log
E: Can't open /cache/recovery/log
E: failed to mount /cache (No such file or directory)
E: Can't mount /cache/recovery/last_log
E: Can't open /cache/recovery/last_log
E: failed to mount /cache (No such file or directory)
E: Can't mount /cache/recovery/last_install
E: Can't open /cache/recovery/last_install
E: Can't open /dev/block/platform/msm_sdcc.1/by-name/misc (No such file or directory)
E: failed to mount /cache (No such file or directory)
E: failed to mount /cache (No such file or directory)
I searched quite a lot on the internet, but didn't find the solution so
far. I also tried with "fastboot format cache" and "fastboot erase
cache", but doesn't work for me.