|
|
|
# Orin Board Setup and Installation
|
|
|
|
For the Orin board and getting the proper drivers/packages I took the following steps to get the board set up.
|
|
|
|
## System Flashing
|
|
|
|
Using a Ubuntu 22.04 host machine I installed the Nvidia SDK manager and flashed the Orin board with the latest ORIN board SDK image. For what we are doing I only installed the cuda drivers and runtime/utils which is the minimal amount of packages in the flash. You will need to pay attention to what version is being installed for the later steps. The following websites were used as instuctions for the SDK manager. Most if not all instructions were followed from them.
|
|
|
|
|
|
|
|
You will need a USB-C to USB-A serial cable to complete the flashing process. The instuctions on how to set this up are also found in the provided links.
|
|
|
|
|
|
|
|
https://docs.nvidia.com/sdk-manager/index.html
|
|
|
|
https://developer.nvidia.com/embedded/learn/jetson-agx-orin-devkit-user-guide/two_ways_to_set_up_software.html#how-to-install-sdk-manager
|
|
|
|
|
|
|
|
NOTE: For flashing you will need to put the Orin board into recovery mode which is also mentioned in the how-to-install web link.
|
|
|
|
## Post Flash
|
|
|
|
Post flash you will need to confirm that CUDA and its respective drivers are loaded and up to-date and that CUDA can run. The current version runs CUDA 12.2 and its respective driver CUDART. You can check this by downloading the cuda samples from NVIDIA.
|
|
|
|
NOTE: Make sure you download the cuda-samples repository that matches the cuda version you are running. This is done changing GIT tag to the correct version.
|
|
|
|
|
|
|
|
## Mellonox Drivers - MLNX OFED
|
|
|
|
For the Mellonox PCIE card you will need to install its repective drivers specific for the aarch64 achitecture and tegra kernel. For this all information found at https://gitlab.ras.byu.edu/alpaca/wiki/-/wikis/Unix-Networking under Installing MLNX OFED still applys with some minor adjustments to the commands. The driver ISO file can be found at https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/. As for the change in commands you will need to run the following as sudo with the NIC card installed after the image is mounted:
|
|
|
|
|
|
|
|
`mount -o ro, loop <.iso> /mnt`
|
|
|
|
`cd /mnt/mlnxofedinstall`
|
|
|
|
`./mlnxofedinstall --without-dkms --add-kernel-support --kernel <kernel version> --without-fw-update --force --enable-gds`
|
|
|
|
|
|
|
|
If at any point this command fails you'll have to debug why it didn't complete. It will most likly be due to conflicting system packages. The `--force` command should resolve this but if not take caution in removing other packages as CUDA might depend on some of them.
|
|
|
|
|
|
|
|
After the command states that it has succesfully installed the drivers and MLNX_OFED dependencies you should reboot the system.
|
|
|
|
|
|
|
|
## Post install
|
|
|
|
After reboot you should check if everything started correctly and the MLNX NIC is recognized with its respective ports do this by running the following commandline tools:
|
|
|
|
|
|
|
|
`sudo dpkg -l | grep -i mlnx`
|
|
|
|
`sudo ibv_devinfo`
|
|
|
|
`sudo lsmod | grep mlx`
|
|
|
|
|
|
|
|
These commands will check:
|
|
|
|
1. If the Mellanox packages were installed
|
|
|
|
2. If the infiniband libary/devices are working
|
|
|
|
3. If the kernel modules are present.
|
|
|
|
|
|
|
|
If all is well and you got to this point, you should be ready to test the device. |
|
|
|
\ No newline at end of file |