Code Monkey home page Code Monkey logo

suburbanmarine / linux_nvidia_jetson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alliedvision/linux_nvidia_jetson

0.0 0.0 0.0 182.29 MB

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems. Currently supporting Nano, TX2, AGX Xavier, and Xavier NX. Support for TX2 NX coming soon.

Shell 0.08% Makefile 0.31% C 97.95% Assembly 1.36% C++ 0.03% Perl 0.16% Awk 0.01% Python 0.06% GDB 0.01% sed 0.01% Yacc 0.01% Lex 0.01% UnrealScript 0.01% SmPL 0.01% Gherkin 0.01% XS 0.01% Roff 0.01% Clojure 0.01% M4 0.01% Raku 0.01%

linux_nvidia_jetson's Introduction

NVIDIA Jetson driver

Driver for Allied Vision Alvium cameras with MIPI CSI-2 interface for NVIDIA Jetson with JetPack 4.5.1 (L4T 32.5.1)
https://developer.nvidia.com/embedded/jetpack Alvium camera

Overview

The scripts in this project build and install the Allied Vision CSI-2 driver to the NVIDIA Jetson boards.

Platforms: Nano, Nano 2GB, TX2, AGX Xavier, Xavier NX
JetPack 4.5.1 (L4T 32.5.1)
The scripts require Git on the host PC.

Before starting the installation, make sure to create a backup of your Jetson system.

Prerequisites: Install JetPack 4.5.1 to Jetson Nano, Nano 2GB, TX2, AGX Xavier or Xavier NX

Install JetPack 4.5.1 (L4T 32.5.1) as per NVIDIA's instructions https://developer.nvidia.com/embedded/jetpack

Recommendation: Use NVIDIA SDK Manager to install JetPack and useful tools such as CUDA.
https://docs.nvidia.com/sdk-manager/

Nano and Nano 2GB: The driver installation requires JetPack 4.5.1 without any upgrades. If your Jetson Nano board has a higher JetPack version, please downgrade it to JetPack 4.5.1 with NVIDIA's SDK Manager before installing the driver.

Accidental overwriting of the driver

As of JetPack 4.4, users can update L4T directly on the board with apt-upgrade. Doing this may install newer L4T kernel and device tree files, which overwrite the driver for Allied Vision cameras. If you use apt-upgrade nevertheless, please prevent overwriting the driver with:

sudo apt-mark hold 'nvidia-l4t-*'

Note that both reinstalling the driver or putting the update on hold may cause unavailable features or bugfixes from NVIDIA.

Install Alvium CSI-2 driver to Jetson Nano, Nano 2GB, TX2, AGX Xavier or Xavier NX

Method A: Use precompiled binaries

Install the precompiled kernel including driver and installation instructions.
For Jetson Nano, please use the file containing "a02" for A02 carrier boards and the other file for B01 carrier boards.

  1. Extract the tarball on a host PC.

  2. The tarball contains helper scripts and another tarball with the precompiled binaries named AlliedVision_NVidia_L4T_32.5.1_.tar.gz.
    Copy the tarball to the target board. On the target board, extract the tarball and run the included install script.
    Reboot the board. Now you can use the driver.

Method B: Cross-compile binaries from source
The scripts require a host PC with Ubuntu (we recommend version 18.04) installed.

  1. Download sources and scripts from https://github.com/alliedvision/linux_nvidia_jetson to the host PC.
    On the host PC:

  2. Run setup.sh, which prepares the directory structure, extracts the file archive, etc.:
    $ ./setup.sh <WORK_DIR> <TARGET_BOARD> # For example, $ ./setup.sh work_dir nano

  3. Run build.sh, which builds the kernel, modules, device tree files, and the bootloader:
    # Use the same WORK_DIR for all scripts
    # Example: $ ./build.sh work_dir nano all all
    $ ./build.sh <WORK_DIR> <TARGET_BOARD> <BUILD_OPTIONS> <COMPONENTS> <OPTIONS>

  4. Create a tarball with the kernel image and modules.
    $ ./deploy.sh <WORK_DIR> <TARGET_BOARD> tarball

  5. Copy the tarball to the target board. On the target board, extract the tarball and run the included install script.
    Reboot the board. Now you can use the driver.

Additional information

๐Ÿ“– https://github.com/alliedvision/documentation/blob/master/NVIDIA.rst

linux_nvidia_jetson's People

Contributors

carolaschoenrock avatar fkesseler avatar fklostermann avatar khoepke avatar mrkschnk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.