TS-4200 Restore XNAND: Difference between revisions

From embeddedTS Manuals
(Slightly reworded warning to encourage use of dd.)
m (Links auto-updated for 2022 re-branding ( https://files.embeddedarm.com/ts-socket-macrocontrollers/ts-4200-linux/binaries/ts-images/xnand-4200-latest.dd.gz →‎ https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4200-linux/binaries/ts-images/xnand-4200-latest.dd.gz))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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.


{{Warning|Since there is no locking mechanism, it is not safe to run multiple copies of nandctl on this board. Make sure you unmount your filesystems. These examples use 'dd' which is safe to use while nandctl is running.  Please be sure stop the nandctl background process first if you prefer to backup/write data with nandctl instead.}}
{{Warning|It is not safe to run multiple instances of the 'nandctl' application on this platform. Be sure that all NAND filesystems are unmounted before reading/writing them with the instructions below. The following examples use 'dd' on devices nodes, this operation is safe while 'nandctl' is running, and is the preferred method.}}


You can find the latest xnand image [ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4200-linux/binaries/ts-images/xnand-4200-latest.dd.gz here].
You can find the latest xnand image [https://files.embeddedTS.com/ts-socket-macrocontrollers/ts-4200-linux/binaries/ts-images/xnand-4200-latest.dd.gz here].


'''Backup'''
'''Backup'''

Latest revision as of 16:46, 17 January 2022

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.

WARNING: It is not safe to run multiple instances of the 'nandctl' application on this platform. Be sure that all NAND filesystems are unmounted before reading/writing them with the instructions below. The following examples use 'dd' on devices nodes, this operation is safe while 'nandctl' is running, and is the preferred method.

You can find the latest xnand image here.

Backup

Entire Image

# Compressed
dd if=/dev/nbd0 bs=131072 count=2048 | bzip2 > backup.dd.bz2
# or uncompressed
dd if=/dev/nbd0 bs=131072 count=2048 of=backup.dd

Kernel

dd if=/dev/nbd1 bs=512 count=5119 of=/path/to/backup/zImage

Initrd

dd if=/dev/nbd2 bs=512 count=5120 of=/path/to/backup/initrd

Restore

Entire Image

dd if=xnand-4200-latest.dd bs=131072 count=2048 of=/dev/nbd0 conv=fsync

Kernel

dd of=/dev/nbd1 bs=512 count=5119 if=/path/to/backup/zImage conv=fsync

Initrd

dd of=/dev/nbd2 bs=512 count=5120 if=/path/to/backup/initrd conv=fsync

Expected Partition Layout

Partition Contents
1 kernel binary (0xda)
2 initrd (0xda)
3 Debian root filesystem (EXT3)