Difference between revisions of "Jetson/AGX Xavier Alternative II For Cloning"

From eLinux.org
Jump to: navigation, search
(added a section on how to dump an image from running OS and clone it to other devices)
 
(text formatting)
Line 1: Line 1:
 
First, stop disk at Xavier:
 
First, stop disk at Xavier:
 +
 
echo u > /proc/sysrq-trigger
 
echo u > /proc/sysrq-trigger
  
 
Second,take raw image:
 
Second,take raw image:
 +
 
dd if=/dev/mmcblk0p1 of=testimage.raw
 
dd if=/dev/mmcblk0p1 of=testimage.raw
  
 
Moreover, the image could be taken over the network e.g. using one of two methods below:
 
Moreover, the image could be taken over the network e.g. using one of two methods below:
 +
 
dd if=/dev/mmcblk0p1 | ssh user@hostpc dd of=/data/image.raw
 
dd if=/dev/mmcblk0p1 | ssh user@hostpc dd of=/data/image.raw
  
 
''sender:'' sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>
 
''sender:'' sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>
 +
 
''reciever:'' etcat -l -p <port> > your_image_file
 
''reciever:'' etcat -l -p <port> > your_image_file
  
Line 16: Line 20:
  
 
Fourth: deploy the sparse image to other devices:
 
Fourth: deploy the sparse image to other devices:
 +
 
sudo ./flash.sh -r jetson-Xavier mmcblk0p1
 
sudo ./flash.sh -r jetson-Xavier mmcblk0p1

Revision as of 17:11, 18 May 2019

First, stop disk at Xavier:

echo u > /proc/sysrq-trigger

Second,take raw image:

dd if=/dev/mmcblk0p1 of=testimage.raw

Moreover, the image could be taken over the network e.g. using one of two methods below:

dd if=/dev/mmcblk0p1 | ssh user@hostpc dd of=/data/image.raw

sender: sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>

reciever: etcat -l -p <port> > your_image_file

Third, make sparseimage [at Host PC]

./mksparse -v --fillpattern=0 ~/testimage.raw system.img

Fourth: deploy the sparse image to other devices:

sudo ./flash.sh -r jetson-Xavier mmcblk0p1