I have a QCAM NVR which stopped working after a failed firmware update. I was able to hook up the serial port and get into uboot. However, most of the recovery procedures out there for writing the SPI flash are not working. The primary issue is that that issuing "sf probe" fails:
sf probe 0
Check spi flash controller v350... Found
Can't find a valid spi flash chip.
Can't find a valid spi flash chip.
Failed to initialize SPI flash at 0:0
The same problem happens if I try probing other busses and chip selects.
I did observe however, that Linux will boot all the way up just fine, and thus I have access to the full Linux environment, so I'm thinking that rather than trying to update the flash in uboot, I would try to do it from Linux.
Poking around I noticed in /mnt/app I noticed an "update" executable. This would seem to be the same one that the NVR GUI must call, however when I run it (regardless of the file) I get:
# ./update image.bin
invalid updatingimg.
So then I noticed the BusyBox tools. In particular:
# ./busybox flashcp
BusyBox v1.16.1 (2014-02-27 20:08:01 HKT) multi-call binary.
Usage: flashcp -v FILE MTD_DEVICE
Copy an image to MTD device
Options:
-v Verbose
I’m wondering if I could use this utility to update the flash? Is this possible? If so, how do I know which MTD_DEVICE?
Thanks
sf probe 0
Check spi flash controller v350... Found
Can't find a valid spi flash chip.
Can't find a valid spi flash chip.
Failed to initialize SPI flash at 0:0
The same problem happens if I try probing other busses and chip selects.
I did observe however, that Linux will boot all the way up just fine, and thus I have access to the full Linux environment, so I'm thinking that rather than trying to update the flash in uboot, I would try to do it from Linux.
Poking around I noticed in /mnt/app I noticed an "update" executable. This would seem to be the same one that the NVR GUI must call, however when I run it (regardless of the file) I get:
# ./update image.bin
invalid updatingimg.
So then I noticed the BusyBox tools. In particular:
# ./busybox flashcp
BusyBox v1.16.1 (2014-02-27 20:08:01 HKT) multi-call binary.
Usage: flashcp -v FILE MTD_DEVICE
Copy an image to MTD device
Options:
-v Verbose
I’m wondering if I could use this utility to update the flash? Is this possible? If so, how do I know which MTD_DEVICE?
Thanks