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

From eLinux.org
Jump to: navigation, search
(text formatting)
m (Second, take raw image:: 1->0 in mmcblk)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''First, stop disk at Xavier:'''
+
===== '''First, stop disk at Xavier as root:''' =====
 +
{| class="wikitable"
 +
|-
 +
| sudo su
 +
|}
 +
{| class="wikitable"
 +
|-
 +
| echo u > /proc/sysrq-trigger
 +
|}
  
echo u > /proc/sysrq-trigger
+
===== '''Second, take raw image:''' =====
 +
{| class="wikitable"
 +
|-
 +
| ''remount sdcard writeable:''||mount --options remount,rw /dev/mmcblk0p1
 +
|-
 +
| ''clone [in this example to sdcard]''||dd if=/dev/mmcblk0p1 of=/path/testimage.raw
 +
|}
  
'''Second,take raw image:'''
+
''Moreover, the image could be taken over the network e.g. using one of two methods below:''
 +
{| class="wikitable"
 +
|-
 +
|  || dd if=/dev/mmcblk0p1 <nowiki>|</nowiki> ssh user@hostpc dd of=/data/testimage.raw
 +
|-
 +
| ''sender:'' || sudo dd if=/dev/mmcblk0p1 <nowiki>|</nowiki> netcat <ip_address> <port>
 +
|-
 +
| ''reciever:'' || netcat -l -p <port> > your_image_file
 +
|}
  
dd if=/dev/mmcblk0p1 of=testimage.raw
+
===== '''Third, make sparseimage [at Host PC]''' =====
''
+
{| class="wikitable"
Moreover, the image could be taken over the network e.g. using one of two methods below:''
+
|-
 +
| ./mksparse -v --fillpattern=0 ~/testimage.raw system.img
 +
|}
  
dd if=/dev/mmcblk0p1 | ssh user@hostpc dd of=/data/image.raw
+
===== '''Fourth, deploy the sparse image to other devices:''' =====
 
+
{| class="wikitable"
''sender:'' sudo dd if=/dev/mmcblk0p1 | netcat <ip_address> <port>
+
|-
 
+
| sudo ./flash.sh -r jetson-xavier mmcblk0p1
''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
 

Latest revision as of 02:35, 13 August 2020

First, stop disk at Xavier as root:
sudo su
echo u > /proc/sysrq-trigger
Second, take raw image:
remount sdcard writeable: mount --options remount,rw /dev/mmcblk0p1
clone [in this example to sdcard] 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