Failed to install & flash the Jetson OS and Jeston SDK Component

Hi,
I followed the steps to Install Jetson Software with SDK Manager, but none of the target component was installed successfully. It told me that the dependency has error.

Flash Jetson AGX Xavier shows:
15:09:43 SUMMARY: Flash Jetson AGX Xavier - flash: Depends on failed component
15:28:00 SUMMARY: Flash Jetson AGX Xavier - flash: Depends on failed component
15:35:49 SUMMARY: Flash Jetson AGX Xavier - flash: Depends on failed component

CUDA Toolkit for L4T shows:
15:05:45 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:05:47 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:09:23 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:09:25 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:09:41 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:09:43 SUMMARY: CUDA Toolkit for L4T - target: Depends on failed component

15:09:43 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:21:06 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:21:08 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:21:09 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:21:11 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:28:00 SUMMARY: CUDA Toolkit for L4T - target: Depends on failed component

15:28:56 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:28:57 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:29:01 INFO: CUDA Toolkit for L4T - target: verifying checksum of /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb

15:29:04 INFO: CUDA Toolkit for L4T - target: Found file /home/kokoro/Downloads/nvidia/sdkm_downloads/cuda-repo-l4t-10-2-local_10.2.460-1_arm64.deb with correct checksum, skip downloading.

15:35:49 SUMMARY: CUDA Toolkit for L4T - target: Depends on failed component

1 Like

There is a EXPORT LOGS button on SDKmanager. Please use it to dump the log and attach it here.

SDKM_logs_JetPack_4.4_Linux_for_Jetson_AGX_Xavier_2021-10-17_09-23-12.zip (93.3 KB)
I have dumped the log.

Error is this one.

Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
~/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/rootfs ~/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra
Installing BSP Debian packages in /home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/rootfs
Info: [ Package Install Finished with Error ]
Info: [host] [ 388.00 KB used. Disk Avail: 74.89 GB ]
Info: [ NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP Install took 3m4s ]
Error: [error]: : [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_T194_COMP.sh; [error]: /home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh: line 194: 5180 Illegal instruction (core dumped) LC_ALL=C chroot . dpkg -i --path-include=“/usr/share/doc/*” “${pre_deb_list[@]}”

Looks like chroot failed. What is the environment of your host machine?

$ cat /proc/version
Linux version 4.15.0-142-generic (buildd@lgw01-amd64-039) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021

Is it a VM? or native ubuntu host?

Could you dump below info?

/usr/bin/qemu-aarch64-static --version

I use a native ubuntu host. I just input this into the terminal.

$ /usr/bin/qemu-aarch64-static --version
usage: qemu-aarch64 [options] program [arguments…]
Linux CPU emulator (compiled for aarch64 emulation)

Options and associated environment variables:

Argument Env-variable Description
-h print this help
-g port QEMU_GDB wait gdb connection to ‘port’
-L path QEMU_LD_PREFIX set the elf interpreter prefix to ‘path’
-s size QEMU_STACK_SIZE set the stack size to ‘size’ bytes
-cpu model QEMU_CPU select CPU (-cpu help for list)
-E var=value QEMU_SET_ENV sets targets environment variable (see below)
-U var QEMU_UNSET_ENV unsets targets environment variable (see below)
-0 argv0 QEMU_ARGV0 forces target process argv[0] to be ‘argv0’
-r uname QEMU_UNAME set qemu uname release string to ‘uname’
-B address QEMU_GUEST_BASE set guest_base address to ‘address’
-R size QEMU_RESERVED_VA reserve ‘size’ bytes for guest virtual address space
-d item[,…] QEMU_LOG enable logging of specified items (use ‘-d help’ for a list of items)
-D logfile QEMU_LOG_FILENAME write logs to ‘logfile’ (default stderr)
-p pagesize QEMU_PAGESIZE set the host page size to ‘pagesize’
-singlestep QEMU_SINGLESTEP run in singlestep mode
-strace QEMU_STRACE log system calls
-version QEMU_VERSION display version information and exit

Defaults:
QEMU_LD_PREFIX = /etc/qemu-binfmt/aarch64
QEMU_STACK_SIZE = 8388608 byte

You can use -E and -U options or the QEMU_SET_ENV and
QEMU_UNSET_ENV environment variables to set and unset
environment variables for the target process.
It is possible to provide several variables by separating them
by commas in getsubopt(3) style. Additionally it is possible to
provide the -E and -U options multiple times.
The following lines are equivalent:
-E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG
-E var1=val2,var2=val2 -U LD_PRELOAD,LD_DEBUG
QEMU_SET_ENV=var1=val2,var2=val2 QEMU_UNSET_ENV=LD_PRELOAD,LD_DEBUG
Note that if you provide several changes to a single variable
the last change will stay in effect.

Could you directly run this script again with root and share us the result?

$ sudo /home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh

Root file system directory is /home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/nv_tegra/…/rootfs
Copying public debian packages to rootfs
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
~/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/rootfs ~
Installing BSP Debian packages in /home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/nv_tegra/…/rootfs
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
/home/kokoro/nvidia/nvidia_sdk/JetPack_4.4_Linux_JETSON_AGX_XAVIER/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh: 行 194: 9779 非法指令 (核心已转储) LC_ALL=C chroot . dpkg -i --path-include=“/usr/share/doc/*” “${pre_deb_list[@]}”

Would the host install new binary if you run this command?

sudo apt-get install qemu-user-static

It shows that qemu-user-static is already the latest version.

Hi,

I am not sure why your qemu does not show the version. This result is from mine. Could you check what happend to your qemu?

/usr/bin$ /usr/bin/qemu-aarch64-static --version
qemu-aarch64 version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.51), Copyright (c) 2003-2008 Fabrice Bellard