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

From eLinux.org
Jump to: navigation, search
m (First, stop disk at Xavier as root:)
(Second, take raw image:: updated: added rewrite mount for sdcard)
Line 12: Line 12:
{| class="wikitable"
{| class="wikitable"
| dd if=/dev/mmcblk0p1 of=/path/testimage.raw
| ''remount sdcard writeable:''||mount --options remount,rw /dev/mmcblk1p1
| ''clone''||dd if=/dev/mmcblk0p1 of=/path/testimage.raw

Revision as of 04:24, 30 April 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/mmcblk1p1
clone 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