Nvidia drive AGX xavier cross-compilation

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
[✓] other DRIVE OS version
other-5.1.6.1

Target Operating System
[ ✓] Linux
QNX
other

Hardware Platform
[✓] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
[✓] 1.9.1.10844
other

Host Machine Version
[✓] native Ubuntu 18.04
other

Hi,
I am done with installation and flashing. Ran some SDK samples.

I am able to convert ONNX model to Tensorrt model and run in host machine(X_86). But same Tensorrt model cannot be run in drive AGX Xavier because of different architecture.

I have few doubts regarding this->
1. Is cross-compiling is necessary to run models in drive AGX Xavier?

2.If yes then cross-compiling should be done before converting ONNX model to Tensorrt model or after converting to Tensorrt model?

3.What are the steps to cross-compile x_86 program to arm program?

I followed this https://github.com/jkjung-avt/tensorrt_demos to convert ONNX to Tensorrt model

Dear @sankal.pattanashetti,

Cross-comping gives you the application’s executable binary that is runnable on target.
You need to copy ONNX model on target and use trtexec or TRT APIs to create TensorRT model to use in application.

As you said,I am trying to build model in AGX drive device .But I am having trouble with sudo command.

Error->sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I followed these commands to solve the error->

chown root:root /usr/bin/sudo

chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

chown root:root /usr/lib/sudo/sudoers.so && chmod 4755 /usr/lib/sudo/sudoers.so

But still have the same problem. The last solution is to go to advance settings through booting option.I tried with several methods to go to booting mode like f2,f12,f10 and del but none of them works.

How to go to booting mode in Nvidia drive AGX Xavier?

Dear @sankal.pattanashetti,
I notice you have selected other drive os in description. Just want to confirm, if you have flashed the board using sdkmanager with devzone credentials or you received it via other channnels.

Could you check if reflashing fixes issue with sudo?

Yes, I have flashed the board using sdkmanager with devzone credentials.

Are there any methods other than reflashing as I have already installed many packages and library.

Dear @sankal.pattanashetti,
Thanks for confirming that you are using Devzone release. If you see /usr/local/driveworks folder on target , then you are using DRIVE SW 10.0 release which matches your DRIVE OS 5.1.6.
I expect sudo command to work out of the box after flashing. I am not sure about the changes made in system after fresh installation which changed system state.

Yes drive software version is 10.0. I want to try some code in advance mode which I can get through boot option to resolve sudo problem.
Is there any method to go to boot option.

It seems that we have not encountered this issue before, and we are not sure how it occurred. To resolve the problem, we suggest you back up your data and then reflash the devkit.

Okay, thank you. I’ll try to reflash the Devkit.

1 Like