Latest SDK Manager fails to flash inside Docker

The latest sdkmanager_1.7.3-9053_amd64.deb does not work properly inside of Docker.

Here is the dockerfile that I am using.

I have confirmed that sdkmanager_1.7.2-9007_amd64.deb continues to work fine. Host machine runs Ubuntu 20.04.3 LTS.

The error is the following:

[   0.0053 ] FwIndex: 15, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 16, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 17, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 18, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 19, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 30, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 31, MinRatchetLevel: 0
[   0.0053 ] FwIndex: 32, MinRatchetLevel: 0
[   0.0053 ]
[   0.0054 ] header_magic: d00dfeed
[   0.0075 ] tegrahost_v2 --chip 0x19 --align 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0084 ]
[   0.0102 ] tegrahost_v2 --chip 0x19 0 --magicid KDTB --ratchet_blob ratchet_blob.bin --appendsigheader 1_kernel_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0109 ] adding BCH for 1_kernel_tegra194-p3668-all-p3509-0000.dtb
[   0.0168 ]
[   0.0188 ] tegrasign_v3.py --key  --list 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0188 ] Assuming zero filled SBK key : not reading
[   0.0233 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0266 ]
[   0.0270 ] Signed file: /home/nonroot/nvidia/nvidia_sdk/JetPack_4.6.1_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: Generate header for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: chip 0x19: add 0x31f5f to offset  0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
l4t_sign_image.sh: the signed file is /home/nonroot/nvidia/nvidia_sdk/JetPack_4.6.1_Linux_JETSON_XAVIER_NX_TARGETS/Linux_for_Tegra/bootloader/temp_user_dir/kernel_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
done.
        populating kernel to rootfs... done.
        populating initrd to rootfs... done.
        populating kernel_tegra194-p3668-all-p3509-0000.dtb to rootfs... done.
Making system.img...
losetup: system.img: failed to set up loop device: No such file or directory
mapping system.img to loop device failed.
*** ERROR: flashcmd.txt generation failed.

You’re using the own script based on this dockerfile: https://gist.github.com/togaen/d474386b0e0689e55621db184dd044ed, however, it is not created by our SDKM team and not maintaining that file.
Please contact with the author to get the support. Thanks

The docker image created by our SDKM team is available at NVIDIA SDK Manager | NVIDIA Developer

Thank you. I have received confirmation from the author of that dockerfile that he has switched to your dockerfile. I will switch as well. Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.