L4T apply_binaries.sh error

Hi,
I’m trying to get the following installed on a freshly built Ubuntu 18.04 box

Tegra186_Linux_R32.3.1_aarch64.tbz2
Tegra_Linux_Sample-Root-Filesystem_R32.3.1_aarch64.tbz2

Once I do
sudo ./apply_binaries.sh

I get the following out:

QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static

Registering Jetson OTA server key
chroot: failed to run command ‘mount’: Exec format error

hello 1070606,

please install required packages on your host machine, please have a try to install qemu.
for example,

$ sudo apt-get install qemu-user-static

you may also refer to developer guide, please check Preparing a Jetson Developer Kit for Use session for installation process.
thanks

Thanks for the reply -
I did install binfmt-support and qemu-user-static packages, which is how it found /usr/bin/qemu-aarch64-static. Is there other packages that I need installed?

A comment on this error:

chroot: failed to run command 'mount': Exec format error

Either an x86/x86_64/amd64 mount binary application is being used from an arm64 environment, or else an arm64 mount tool is being used from the PC’s environment. It may be that you need to install cross tools for arm64 on the PC, e.g., “mount” and linkers and so on, which are to be run on x86/x86_64/amd64, and to provide arm64 output. It just depends on which environment is running the command, and which environment the command is manipulating.

Hey I am having the same issue described here is there a fix for this?

trting to follow instructions from https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fquick_start.html%23wwpID0E0ND0HA

it fails at sudo ./apply_binaries.sh
with error 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
Installing Jetson OTA server key in rootfs
~/Downloads/Linux_for_Tegra/rootfs ~/Downloads/Linux_for_Tegra
Registering Jetson OTA server key
chroot: failed to run command ‘mount’: Exec format error

Trying on a DGX Station connected to Jetson-tx2
same error occurs when using sdk manager

Solution to this is to install binfmt-support
and then run sudo dpkg-reconfigure qemu-user-static

I saw another user run into this (and he figured out there is an install order dependency), and it sounds like you have the “qemu-user-static” package, but “binfmt-support” package. Or at least the “binfmt-support” package was only installed after you got “qemu-user-static”. So start by making sure you both of these packages on the host PC:

sudo apt-get install qemu-user-static binfmt-support

Once you know you have both of those packages run this command to update:

sudo dpkg-reconfigure qemu-user-static

Does that allow apply_binaries.sh to run? FYI, you can manually run this as many times as you want, but running it only once is all that is needed:

sudo ./apply_binaries.sh

(if the binary package installs succeeded, then you might see a note about already installed, but you won’t see a qemu error if it works correctly)

1 Like

Hi Linuxdev,

Thanks, it works for me