You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-9Lines changed: 45 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
-
n.b. This repository is based on the [Allied Vision Alvium CSI Driver for Jetpack 6](https://github.com/alliedvision/alvium-jetson-driver-release).
1
+
n.b. This repository is a mashup of the [Allied Vision Alvium CSI Driver for Jetpack 6](https://github.com/alliedvision/alvium-jetson-driver-release) and the [Vision Components MIPI driver](https://github.com/VC-MIPI-modules/vc_mipi_nvidia)
2
2
3
3
# Vision Components MIPI driver for Jetpack 6
4
4
5
5
## Submodule status:
6
6
7
7
Following the pattern from the [AVT driver package](https://github.com/alliedvision/alvium-jetson-driver-release), the four Nvidia OOT kernel packages are included as submodules:
8
8
9
-
*`nvidia-hwpm`, `nvidia-nvethernetrm`, and `nvidia-nvgpu` use the upstream repos from _Allied VIsion_. I don't know how/if these differ from Nvidia's original source.
9
+
*`nvidia-hwpm`, `nvidia-nvethernetrm`, and `nvidia-nvgpu` use the upstream repos from _Nvidia's_ git server.
10
10
*`nvidia-oot` points to [my nvidia-oot repo](https://github.com/amarburg/nvidia-oot) which contains the Nvidia OOT module source with the [VC patches](https://github.com/VC-MIPI-modules/vc_mipi_nvidia/tree/master/patch/kernel_Xavier_36.2.0%2B) applied.
11
11
12
-
The `vc-mipi-driver`contains the VC module sources [from their repo](https://github.com/VC-MIPI-modules/vc_mipi_nvidia/tree/master/src), rearranged for this build system.
12
+
The `vc-mipi-driver`contain copies the VC module sources [from their repo](https://github.com/VC-MIPI-modules/vc_mipi_nvidia/tree/master/src), rearranged for this build system.
13
13
14
14
## Building
15
15
1. Clone this repository including all submodules
@@ -18,33 +18,69 @@ The `vc-mipi-driver` contains the VC module sources [from their repo](https://gi
18
18
```shell
19
19
tar -xf jetson_linux_r36*.bz2
20
20
```
21
-
4. Extract the kernel headers from the driver package:
21
+
4. Extract the kernel headers from the driver packagein the `Linux_for_Tegra/kernel` directory:
22
22
```shell
23
23
cd Linux_for_Tegra/kernel/
24
24
tar -xf kernel_headers.tbz2
25
25
```
26
26
5. Extract the cross compiler **in this directory**:
27
27
```shell
28
+
cd ../../
28
29
tar -xf aarch64--glibc--stable-2022.08-1.tar.bz2
29
30
```
30
31
6. Set the following environment variables ( `source setup.sh` is a convenience alias):
31
32
```shell
32
33
export ARCH=arm64
33
-
export CROSS_COMPILE=<path to cross compiler>/bin/aarch64-buildroot-linux-gnu-
export INSTALL_MOD_PATH=<path to install directory>
46
47
make install
47
48
```
49
+
50
+
At this point the rebuilt kernel modules -- including both the new VC modules and a few customized versions of NVidia camera handler modules -- and additional device tree overlays can be installed onto a Jetson. This can be done either by building a new set of images and flashing them to the device (essentially replacing the install process done through SDK Manager), or by installing them on an already-running module. For simplicity, my focus is the latter ....
51
+
52
+
## Installing on a running Nano
53
+
54
+
1. Copy the install directory to the device (called 'nano'in this case):
55
+
56
+
```shell
57
+
scp -r install nano:~
58
+
```
59
+
60
+
2. Log into the device, and copy the files into place (this could be automated!)
61
+
62
+
```shell
63
+
ssh nano
64
+
sudo cp -a install/lib/modules/5.15.148-tegra/updates /lib/modules/5.15.148-tegra
65
+
sudo cp -a install/boot/* /boot/
66
+
```
67
+
68
+
3. Instruct the bootloader to apply the device tree overlay on startup. This can be done manually by editing the `/boot/extlinux/extlinux.conf` file, though the `jetson-io` wrapper can be used to automated the process, either graphically with:
Which instructs the scripts to install the overlay "Camera VCMIPI Dual" (this name is baked into the overlay file `tegra234-p3767-camera-p3768-vc_mipi-dual-imx.dtbo`) for header "2" (the CSI Camera header).
81
+
82
+
4. Confirm the changes have created a new entry in`/boot/extlinux/extlinux.conf`
0 commit comments