75XX Offboard Flash: Difference between revisions

From embeddedTS Manuals
(Created page with "This needs to be done directly on the SBC. You can find the latest SPI image [ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7500-linux/binaries/ts-images/4mb-spiflash-latest.dd.bz2 he...")
 
No edit summary
Line 2: Line 2:


'''Backup'''
'''Backup'''
Entire SPI flash
<source lang=bash>
<source lang=bash>
spiflashctl -l 0 -R 64 -z 65536 > spiflash.dd
spiflashctl -l 0 -R 64 -z 65536 > spiflash.dd
</source>
Kernel
<source lang=bash>
spiflashctl -R 4095 -z 512 -k part1 > /temp/zImage
</source>
Initrd
<source lang=bash>
spiflashctl -R 32 -z 65536 -k part2 > /temp/initrd
</source>
</source>


'''Restore'''
'''Restore'''
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 -
dd if=/path/to/4mb-spiflash-latest.dd bs=512 conv=sync | spiflashctl -l 0 -W 64 -z 65536 -i -
</source>
Kernel
<source lang=bash>
spiflashctl -W 4095 -z 512 -k part1 -i /temp/zImage
</source>
Initrd
<source lang=bash>
spiflashctl -W 32 -z 65536 -k part2 -i /temp/initrd
</source>
</source>

Revision as of 15:55, 10 August 2011

This needs to be done directly on the SBC. You can find the latest SPI image here.

Backup

Entire SPI flash

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

Kernel

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

Initrd

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

Restore

Entire SPI flash

dd if=/path/to/4mb-spiflash-latest.dd bs=512 conv=sync | spiflashctl -l 0 -W 64 -z 65536 -i -

Kernel

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

Initrd

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