75XX XNAND Recovery: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
''' Expected Partition Layout ''' | ''' Expected Partition Layout ''' | ||
{|class="wikitable | {| class="wikitable" | ||
|- | |||
! Partition | ! Partition | ||
! Contents | ! Contents |
Revision as of 22:04, 19 October 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. Make sure you decompress the image first before writing.
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
Expected Partition Layout
Partition | Contents |
---|---|
1 | kernel binary (0xda) |
2 | initrd (0xda) |
3 | Debian root filesystem (EXT3) |