75XX Offboard Flash

From embeddedTS Manuals
Revision as of 09:36, 12 January 2021 by Lionel (talk | contribs) (FTP links auto-updated (ftp://ftp.embeddedarm.com/ →‎ https://files.embeddedarm.com/))

This needs to be done directly on the SBC. You can find the latest SPI image here. Make sure you decompress the image first before writing.

Backup

Entire SPI flash

spiflashctl -l 1 -R 64 -z 65536 > spiflash.dd

Kernel

spiflashctl -l 1 -R 4095 -z 512 -k part1 > /temp/zImage

Initrd

spiflashctl -l 1 -R 32 -z 65536 -k part2 > /temp/initrd

Restore

Entire SPI flash

spiflashctl -l 1 -W 64 -z 65536 -i /path/to/4mb-spiflash-latest.dd

Kernel

spiflashctl -l 1 -W 4095 -z 512 -k part1 -i /temp/zImage

Initrd

spiflashctl -l 1 -W 32 -z 65536 -k part2 -i /temp/initrd