PINE64
Extracting a copy of SPI NOR flash contents using micro SD card and u-boot - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Tutorials (https://forum.pine64.org/forumdisplay.php?fid=117)
+--- Thread: Extracting a copy of SPI NOR flash contents using micro SD card and u-boot (/showthread.php?tid=11569)



Extracting a copy of SPI NOR flash contents using micro SD card and u-boot - hmuller - 09-21-2020

This is a bonus. Using the previous post:

https://forum.pine64.org/showthread.php?tid=11567

A 32M sized micro SD card image should be sufficient to extract a full copy of SPI NOR flash contents. I performed the following successfully using a 64M sized image to extract a full copy of SPI NOR flash from u-boot prompt with micro SD card inserted:


Code:
=> sf probe 1:0
=> sf read $kernel_addr_r 0x0 0x1000000
=> save mmc 1:1 $kernel_addr_r spi_full.img 0x1000000 0


This will save the contents of your flash to the micro SD card, the file will be named 'spi_full.img'. You can then view the image using your favorite tool. As an example:

Code:
$ xxd /path/to/spi_full.img | less