How to get a bootable image from jetson

I am trying to get bootable image from jetson nano using jetson-disk-image-creator.sh and i am getting this error:


jetson@jetson:~/Linux_for_Tegra/tools$ sudo ./jetson-disk-image-creator.sh -o blob.img -b jetson-nano -r 300


 Jetson Disk Image Creation Tool     

jetson-disk-image-creator.sh - creating signed images
~/Linux_for_Tegra ~/Linux_for_Tegra/tools
###############################################################################

L4T BSP Information:

R32 , REVISION: 5.1

###############################################################################
/home/jetson/Linux_for_Tegra/flash.sh: line 613: ./tegrarcm: cannot execute binary file: Exec format error
Board ID(3448) version(300)
copying bctfile(/home/jetson/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/home/jetson/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/home/jetson/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating /home/jetson/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb to rootfs… done.
Making Boot image… failed.


What am i doing wrong?

P.S.
I have tried to run this script from jetson. Is it right?

P.S.S.
My jetson nano is 4gb jetson nano devkit, revision B01

I see “exec format error”. Are you not running this on a PC? Such errors are normally from trying to run a binary executable from the wrong architecture. The JetPack/SDKM software is designed to run on the host PC, so if any of this is run on the Jetson, then it would fail. A similar error would be if you compiled a kernel module for one architecture, but tried to use it on another architecture.

Yeah. You right, I am trying to run it on Jetson, not PC. But then i don’t understand how this script works? What should be the pipeline for creating an bootable image from a Jetson SD card?

Run what you have been running, but do this from an Ubuntu 18.04 PC, not the Jetson. This might be enough for it to work without other effort. Don’t use a VM unless you are prepared to spend time debugging the VM settings.

Actually the whole driver package Linux_for_Tegra should be installed on x64 ubuntu host but not the jetson.