I don’t know the specific meaning of return value 8, but how much space do you have remaining at that location? df -H /home/me/nvidia_sdk/JetPack_4.2_Linux_P2888/Linux_For_Tegra
Were you using the USB-C port? Was there any HUB between Xavier and host PC?
I believe any USB-C should work. These are generally of good quality. For systems using micro-B USB, those require care in selecting cables.
I do not know if those warnings are related to the issue or not. Possibly, but I do not know if that is something used in recovery mode or not. Anyone know? “host1x/vi@15c10000/”, all ports?
You could log the clone, and post the log as there might be more going on. Example to log:
Btw, a clone actually produces two files. One is the “sparse” (not unlike compression by marking empty spots in the filesystem instead of putting out a lot of NULL bytes), and the other is “raw”. The larger raw file can be manipulated and examined, or used for flash. The smaller sparse file can only be used for flash and cannot be used in any other way (and I’ve never found open source tools for dealing with this version of sparse file).
In the above command you would end up with two files:
my_image.img (sparse)
my_image.img.raw (raw)
I throw away the sparse file and keep only the raw file. If I am storing this long term, then I run “bzip2 -9” on the raw file (which takes a long time due to the huge file size).
How did you determine the clone failed with an invalid file? Was this by using the image to flash, and was it the raw image? If not, then perhaps the clone actually worked and all you would need to do is use the raw file instead of the sparse file.
It turned out I’ve been trying to clone using Jetpack 4.2. While flash.sh has the -G flag, it fails for some reason.
It also fails to create a bootable sdcard for Xavier, by the way.
However, when I have installed Jetpack 4.3 host side, I was able to clone Jetpack 4.2 target normally.
I have determined that the clone failed because it completed too fast and the resulting file was too small, and if I were to flash it, the target won’t boot.
I have found the solution, see my comment below, thank you.
@_av how do you boot from sdcard in the first place? I cannot seem to find any information in the official documentation about booting Xavier AGX from sdcard…
JetPack4.2 was the first release with L4T R32.x (it was R32.1). This required a patch to clone correctly. Every release after that (every L4T driver package) had this fixed.