Creating Jetson Nano SD card image for distribution

Hi,
I tried using Linux for Tegra tools R32.5.1 to create image for SD card. However in terminal, in the tools folder and executing this command line “sudo ./jetson-disk-image-creator.sh -o sd_blob.img -b jetson-nano -r 300”, i get the following output:


 Jetson Disk Image Creation Tool     

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

L4T BSP Information:

R32 , REVISION: 5.1

###############################################################################
/home/km/Desktop/Linux_for_Tegra/flash.sh: line 613: ./tegrarcm: cannot execute binary file: Exec format error
Board ID(3448) version(300)
creating dummy /home/km/Desktop/Linux_for_Tegra/bootloader/badpage.bin
1+0 records in
1+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000434078 s, 9,4 MB/s
copying bctfile(/home/km/Desktop/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/home/km/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/home/km/Desktop/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating /home/km/Desktop/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb to rootfs… done.
Making Boot image… failed.

May i know if i missed out on any steps?

Thanks
Michael

hello michael.lai,

please refer to the failure as above.
may I know where did you execute this, what’s the environment setups.
thanks

Hi Jerry,

I checked that it was because I did not set Jetson Nano to recovery mode properly. Now I’ve checked lsusb from host terminal and i see the board is listed.

However now i face another issue, the output error is shown below:

sudo ./jetson-disk-image-creator.sh -o sd-blob.img -b jetson-nano -r 300


 Jetson Disk Image Creation Tool     

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

L4T BSP Information:

R32 , REVISION: 5.2

###############################################################################
Board ID(3448) version(300)
copying bctfile(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/home/michael/Desktop/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating /home/michael/Desktop/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb to rootfs… done.
Making Boot image… done.
Existing sosfile(/home/michael/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)… done.
copying cpu_bootloader(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying bpffile(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)… done.
Existing badpagefile(/home/michael/Desktop/Linux_for_Tegra/bootloader/badpage.bin) reused.
copying wb0boot(/home/michael/Desktop/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)… done.
Existing tosfile(/home/michael/Desktop/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/michael/Desktop/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/michael/Desktop/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)… done.
Copying nv_boot_control.conf to rootfs
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /home/michael/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
Making system.img…
/home/michael/Desktop/Linux_for_Tegra/rootfs/boot/extlinux/extlinux.conf is not found, exiting…

May I know what I can do to resolve this?

Thanks

hello michael.lai,

may I know what’s your development environment?
you should execute jetson-disk-image-creator.sh script with the JetPack release image installed.
please refer to https://developer.nvidia.com/nvidia-sdk-manager to install JetPack release image,
thanks

Hi

I’m using Ubuntu 18.04 as the host OS or development environment. I have installed the NVIDIA SDK Manager. Which packages for the host and target should I download for Jetpack 4.6?

hello michael.lai,

you should install JetPack release image on your desktop host machine.
the default image path as following,
~/nvidia/nvidia_sdk/JetPack_<version>_Linux_JETSON_<platform>/Linux_for_Tegra/

Hi,

I have downloaded Jetpack in the host machine using the SDK manager, extracted the zip file for Linux_for_Tegra and run the jetson-disk-image-creator script but it still gives the same error. Does this mean that I have to copy the root from SD card of Jetson Nano into the host’s Linux_for_Tegra/rootfs folder? If so then what is the best way to do this copy?

hello michael.lai,

that sounds incorrect, there’ll be script file there once you downloaded Jetpack by SDKmanager.
could you please have double confirmation. thanks