Jump to content

Mira130 Linux Driver: Difference between revisions

no edit summary
No edit summary
Line 422: Line 422:


* Reboot the board after the flashing is completed.
* Reboot the board after the flashing is completed.
= Apply the v4l2src patch =
In order to capture with v4l2src, a patch needs to be applied to gstreamer in order for v4l2src to support a Y10 format output.
'''1.''' Please extract the contents provided in <code> extra_gstreamer_flashing_patches.tar</code> in <code> sources/patches</code> directory:
<syntaxhighlight lang=bash>
cd $PATCHESPATH
</syntaxhighlight>
<syntaxhighlight lang=bash>
tar -xvf extra_gstreamer_flashing_patches.tar
</syntaxhighlight>
== Apply the v4l2src patch to the Jetson Nano Devkit board ==
1. Transfer the patch to the board:
<syntaxhighlight lang=bash>
cd $PATCHESPATH
</syntaxhighlight>
<syntaxhighlight lang=bash>
scp add-Y10-support-1.14.5.patch <nvidia-nano-user>@<nvidia-nano-ip>:/home/<nvidia-nano-username>
</syntaxhighlight>
2. In the board, download the necessary gstreamer dependencies:
<syntaxhighlight lang=bash>
sudo apt update
</syntaxhighlight>
<syntaxhighlight lang=bash>
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
</syntaxhighlight>
3. Download gst-plugins-good:
<syntaxhighlight lang=bash>
mkdir gstreamer-1.14.5; cd gstreamer-1.14.5
</syntaxhighlight>
<syntaxhighlight lang=bash>
wget https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.14.5.tar.xz
</syntaxhighlight>
<syntaxhighlight lang=bash>
tar -xvf gst-plugins-good-1.14.5.tar.xz
</syntaxhighlight>
4. Apply the patch:
<syntaxhighlight lang=bash>
cd gst-plugins-good-1.14.5/sys/v4l2/
</syntaxhighlight>
<syntaxhighlight lang=bash>
patch -i $HOME/add-Y10-support-1.14.5.patch
</syntaxhighlight>
== Compile and install ==
1. Compile:
<syntaxhighlight lang=bash>
cd ~/gstreamer-1.14.5/gst-plugins-good-1.14.5
</syntaxhighlight>
<syntaxhighlight lang=bash>
./configure --prefix=/usr --libdir=/usr/lib/aarch64-linux-gnu/
</syntaxhighlight>
<syntaxhighlight lang=bash>
make
</syntaxhighlight>
<syntaxhighlight lang=bash>
DESTDIR=$(pwd)/install make install
</syntaxhighlight>
2. Install the library:
<syntaxhighlight lang=bash>
sudo cp install/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so
</syntaxhighlight>


==Using the Driver==
==Using the Driver==
208

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.