Skip to content

Commit 998e4f7

Browse files
committed
Imported current 4.0.0 beta driver sources
1 parent 924ea93 commit 998e4f7

File tree

4,139 files changed

+105971
-65628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,139 files changed

+105971
-65628
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ kernel/kernel-4.9/drivers/video/tegra/host
1515
# git files that we don't want to ignore even it they are dot-files
1616
#
1717
!.gitignore
18+
19+
__pycache__
20+
*.pyc
21+
.*.swp
22+
.*.swo
23+
avt_build/work
24+
avt_build/.dlcache
25+
avt_build/build.log

README.md

+70-49
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,93 @@
1-
# NVIDIA Jetson driver
1+
# NVIDIA Jetson driver (Beta)
22

3-
Driver for Allied Vision Alvium cameras with MIPI CSI-2 interface for NVIDIA Jetson with JetPack 4.5.1 (L4T 32.5.1)
3+
4+
Driver (Beta) for Allied Vision Alvium MIPI cameras for NVIDIA Jetson with JetPack 4.6.1 (L4T 32.7.1)
45
https://developer.nvidia.com/embedded/jetpack
56
![Alvium camera](https://cdn.alliedvision.com/fileadmin/content/images/cameras/Alvium/various/alvium-cameras-models.png)
67

8+
THE SOFTWARE IS PRELIMINARY AND STILL IN TESTING AND VERIFICATION PHASE AND IS PROVIDED ON
9+
AN “AS IS” AND “AS AVAILABLE” BASIS AND IS BELIEVED TO CONTAIN DEFECTS. A PRIMARY PURPOSE
10+
OF THIS EARLY ACCESS IS TO OBTAIN FEEDBACK ON PERFORMANCE AND THE IDENTIFICATION OF
11+
DEFECT SOFTWARE, HARDWARE AND DOCUMENTATION.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
14+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
719
## Overview
820

9-
The scripts in this project build and install the Allied Vision CSI-2 driver to the NVIDIA Jetson boards.
10-
:bulb: **This driver version supports V4L2 and GenICam for CSI-2 (camera usage with [Vimba's](https://www.alliedvision.com/en/products/vimba-sdk/) CSI-2 transport layer)**
21+
The scripts in this project build and install the Allied Vision MIPI camera driver to the NVIDIA Jetson boards.
22+
23+
Compatible platforms with JetPack 4.6.1 (L4T 32.7.1) :
24+
25+
+ Nano 2GB and 4GB NVIDIA developer kit
26+
+ TX2 (including optional use of Allied Vision's adapter for up to 6 cameras)
27+
+ TX2 NX NVIDIA developer kit
28+
+ AGX Xavier NVIDIA developer kit (including optional use of Allied Vision's adapter for up to 6 cameras)
29+
+ Xavier NX NVIDIA developer kit
30+
+ Xavier NX on [Auvidea JNX30-PD](https://auvidea.eu/product/38401/) for Alvium cameras with FPD Link interface.
31+
1132

12-
Platforms: AGX Xavier and Xavier NX development kits.
13-
:bulb: Nano and TX2 are supported by driver version [2.1.0](https://github.com/alliedvision/linux_nvidia_jetson/tree/l4t-32.5.1-2.1.0)
14-
JetPack 4.5.1 (L4T 32.5.1)
1533
The scripts require Git on the host PC.
1634

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

19-
## Prerequisites: Install JetPack 4.5.1 to AGX Xavier or Xavier NX developer kit.
37+
## Prerequisites: Install JetPack 4.6.1
2038

21-
Install JetPack 4.5.1 (L4T 32.5.1) as per NVIDIA's instructions https://developer.nvidia.com/embedded/jetpack
39+
Install JetPack 4.6.1 (L4T 32.7.1) as per NVIDIA's instructions
40+
https://developer.nvidia.com/embedded/jetpack
2241

2342
Recommendation: Use NVIDIA SDK Manager to install JetPack and useful tools such as CUDA.
2443
https://docs.nvidia.com/sdk-manager/
25-
26-
### Accidental overwriting of the driver
27-
As of JetPack 4.4, users can update L4T directly on the board with `apt-upgrade`.
28-
Doing this may install newer L4T kernel and device tree files, which overwrite the driver for Allied Vision cameras.
29-
If you use `apt-upgrade` nevertheless, please prevent overwriting the driver with:
30-
31-
`sudo apt-mark hold 'nvidia-l4t-*'`
3244

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

35-
## Install Alvium CSI-2 driver to Jetson AGX Xavier or Xavier NX
46+
## Install Alvium MIPI driver
3647

37-
**Method A: Use precompiled binaries**
48+
### Method A: Use precompiled binaries
3849

39-
Install the precompiled kernel including driver and installation instructions.
40-
41-
1. Extract the tarball on a host PC.
42-
43-
2. The tarball contains helper scripts and another tarball with the precompiled binaries named AlliedVision_NVidia_L4T_32.5.1_<git-rev>.tar.gz.
44-
Copy the tarball to the target board. On the target board, extract the tarball and run the included install script.
45-
Reboot the board. Now you can use the driver.
46-
47-
**Method B: Cross-compile binaries from source**
48-
The scripts require a host PC with Ubuntu (we recommend version 18.04) installed.
49-
50-
1. Download sources and scripts from https://github.com/alliedvision/linux_nvidia_jetson to the host PC.
51-
On the host PC:
52-
53-
2. Run setup.sh, which prepares the directory structure, extracts the file archive, etc.:
54-
`$ ./setup.sh <WORK_DIR> <TARGET_BOARD> # For example, $ ./setup.sh work_dir xavier`
55-
56-
3. Run build.sh, which builds the kernel, modules, device tree files, and the bootloader:
57-
`# Use the same WORK_DIR for all scripts`
58-
`# Example: $ ./build.sh work_dir xavier all all`
59-
`$ ./build.sh <WORK_DIR> <TARGET_BOARD> <BUILD_OPTIONS> <COMPONENTS> <OPTIONS>`
60-
61-
4. Create a tarball with the kernel image and modules.
62-
`$ ./deploy.sh <WORK_DIR> <TARGET_BOARD> tarball`
63-
64-
5. Copy the tarball to the target board. On the target board, extract the tarball and run the included install script.
65-
Reboot the board. Now you can use the driver.
50+
Install the precompiled kernel, which includes the driver and an installation menu.
6651

67-
## Additional information
68-
:open_book:
69-
https://github.com/alliedvision/documentation/blob/master/NVIDIA.rst
52+
1. Extract the tarball on a host PC.
53+
The tarball contains helper scripts and another tarball with the precompiled binaries named AlliedVision_NVidia_L4T_32.7.1_<git-rev>.tar.gz.
54+
55+
2. Copy the tarball to the target board.
56+
3. On the target board, extract the tarball and run the included install script.
57+
4. Proceed with selecting options from the installation menu as described below.
58+
59+
### Method B: Cross-compile binaries from source
60+
The scripts require a host PC with Ubuntu (we recommend version 18.04).
61+
62+
Download sources and scripts from https://github.com/alliedvision/linux_nvidia_jetson to the host PC.
7063

64+
**On the host PC:**
7165

66+
1. Execute `./build.py -b <xavier>`
67+
Use "xavier" for AGX Xavier, NX Xavier, TX2, and TX2 NX.
68+
Use "nano" for Nano.
7269

70+
2. Copy the tarball to the target board.
71+
72+
**On the target board:**
73+
74+
Extract the tarball and run the included install script.
75+
The script includes an **installation menu**, please use the option for your hardware:
76+
77+
+ Option `none`: The Allied Vision camera driver is not loaded during bootup. To load the driver, reboot the board.
78+
79+
+ For NX Xavier, select option `devkit` or `auvidea`.
80+
For Xavier AGX and TX2, select the option `2 cameras` or `6 cameras`.
81+
82+
Reboot the board. Now you can use the driver.
83+
84+
To change the configuration after the driver was installed, enter:
85+
86+
`dpkg-reconfigure avt-nvidia-l4t-bootloader`
87+
88+
Reboot the board to apply the changes.
89+
90+
91+
## Additional information
92+
:open_book:
93+
https://github.com/alliedvision/documentation/blob/master/NVIDIA.rst

avt_build/build.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env python3
2+
3+
from jetson_build.build import main
4+
5+
main()

0 commit comments

Comments
 (0)