75XX XNAND Recovery: Difference between revisions

From embeddedTS Manuals
(Created page with "This needs to be done directly on the SBC. Please note that all NBD partitions from the NAND card must be dismounted before attempting to image the NAND on the SBC. You can fin...")
 
No edit summary
Line 4: Line 4:


'''Backup'''
'''Backup'''
Entire Image
<source lang=bash>
nandctl -XR 2048 -z 131072 > /path/to/backup.dd
</source>
Kernel
<source lang=bash>
nandctl -XR 4096 -z 512 --seek part1 > /path/to/kernel
</source>
Initrd
<source lang=bash>
<source lang=bash>
nandctl -XR 2048 -z 131072 > backup.dd
nandctl -XR 4096 -z 512 --seek part2 > /path/to/initrd
</source>
</source>


'''Restore'''
'''Restore'''
Entire Image
<source lang=bash>
<source lang=bash>
nandctl -XW 2048 -z 131072 -i /path/to/xnandimg-latest.dd
nandctl -XW 2048 -z 131072 -i /path/to/xnandimg-latest.dd
</source>
Kernel
<source lang=bash>
nandctl -XW 4096 -z 512 --seek part1 -i /path/to/kernel
</source>
Initrd
<source lang=bash>
nandctl -XW 4096 -z 512 --seek part2 I /path/to/initrd
</source>
</source>

Revision as of 16:29, 10 August 2011

This needs to be done directly on the SBC. Please note that all NBD partitions from the NAND card must be dismounted before attempting to image the NAND on the SBC.

You can find the latest xnand image here.

Backup

Entire Image

nandctl -XR 2048 -z 131072 > /path/to/backup.dd

Kernel

nandctl -XR 4096 -z 512 --seek part1 > /path/to/kernel

Initrd

nandctl -XR 4096 -z 512 --seek part2 > /path/to/initrd

Restore

Entire Image

nandctl -XW 2048 -z 131072 -i /path/to/xnandimg-latest.dd

Kernel

nandctl -XW 4096 -z 512 --seek part1 -i /path/to/kernel

Initrd

nandctl -XW 4096 -z 512 --seek part2 I /path/to/initrd