75XX Offboard Flash: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
Line 5: Line 5:
Entire SPI flash
Entire SPI flash
<source lang=bash>
<source lang=bash>
spiflashctl -l 0 -R 64 -z 65536 > spiflash.dd
spiflashctl -l 1 -R 64 -z 65536 > spiflash.dd
</source>
</source>


Kernel
Kernel
<source lang=bash>
<source lang=bash>
spiflashctl -R 4095 -z 512 -k part1 > /temp/zImage
spiflashctl -l 1 -R 4095 -z 512 -k part1 > /temp/zImage
</source>
</source>


Initrd
Initrd
<source lang=bash>
<source lang=bash>
spiflashctl -R 32 -z 65536 -k part2 > /temp/initrd
spiflashctl -l 1 -R 32 -z 65536 -k part2 > /temp/initrd
</source>
</source>


Line 22: Line 22:
Entire SPI flash
Entire SPI flash
<source lang=bash>
<source lang=bash>
dd if=/path/to/4mb-spiflash-latest.dd bs=512 conv=sync | spiflashctl -l 0 -W 64 -z 65536 -i -
spiflashctl -l 1 -W 64 -z 65536 -i /path/to/4mb-spiflash-latest.dd
</source>
</source>


Kernel
Kernel
<source lang=bash>
<source lang=bash>
spiflashctl -W 4095 -z 512 -k part1 -i /temp/zImage
spiflashctl -l 1 -W 4095 -z 512 -k part1 -i /temp/zImage
</source>
</source>


Initrd
Initrd
<source lang=bash>
<source lang=bash>
spiflashctl -W 32 -z 65536 -k part2 -i /temp/initrd
spiflashctl -l 1 -W 32 -z 65536 -k part2 -i /temp/initrd
</source>
</source>

Revision as of 11:17, 30 August 2011

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