PINE64

Full Version: Extracting a copy of SPI NOR flash contents using micro SD card and u-boot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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