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

From eLinux.org
Jump to: navigation, search
m (formatting)
m (formatting)
Line 12: Line 12:
 
|}
 
|}
  
 
+
''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:''''
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 22: Line 21:
 
| ''reciever:'' || netcat -l -p <port> > your_image_file
 
| ''reciever:'' || netcat -l -p <port> > your_image_file
 
|}
 
|}
 
  
 
===== '''Third, make sparseimage [at Host PC]''' =====
 
===== '''Third, make sparseimage [at Host PC]''' =====
Line 29: Line 27:
 
| ./mksparse -v --fillpattern=0 ~/testimage.raw system.img
 
| ./mksparse -v --fillpattern=0 ~/testimage.raw system.img
 
|}
 
|}
 
  
 
===== '''Fourth, deploy the sparse image to other devices:''' =====
 
===== '''Fourth, deploy the sparse image to other devices:''' =====

Revision as of 17:30, 9 June 2019

First, stop disk at Xavier:
echo u > /proc/sysrq-trigger
Second, take raw image:
dd if=/dev/mmcblk0p1 of=/path/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/testimage.raw
sender: sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>
reciever: netcat -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