|
|
Line 63: |
Line 63: |
| =Enabling the driver= | | =Enabling the driver= |
|
| |
|
| In order to use this driver, you have to patch and compile the kernel source, and there are two ways to do it: | | In order to use this driver, you have to patch and compile the kernel source using JetPack: |
|
| |
|
| ==Using RidgeRun SDK==
| |
|
| |
| Through the SDK you can easily patch the kernel and generate an image with the required changes to get the imx219 sensor to work. In this wiki [[Getting Started Guide for Tegra X1 Jetson]] you can find all the information required to build a Jetson TX1 SDK from scratch.
| |
|
| |
| In order to add the IMX219 driver follow this steps:
| |
|
| |
| * Go to to your SDK directory
| |
| * Go to the kernel directory
| |
| * Copy the patches in the patches directory
| |
| <pre>
| |
| 0001-add-imx219-subdevice-driver.patch
| |
| 0002-add-imx219-dtb.patch
| |
| </pre>
| |
|
| |
| In the case that you will use the driver with the J20 board, you will need to copy the following patch:
| |
|
| |
| <pre>
| |
| 0003-add-j20-board-driver.patch
| |
| </pre>
| |
|
| |
| * Modify the series file in the kernel directory. You have to add the 3 above patches.
| |
| * Run '''make config''' and select the IMX219 in the Kernel Configuration like this:
| |
| <pre>
| |
| -> Kernel Configuration
| |
| -> Device Drivers
| |
| -> Multimedia support
| |
| -> Encoders, decoders, sensors and other helper chips
| |
| -> <*> IMX219 camera sensor support
| |
| </pre>
| |
|
| |
| In the case that you will use the driver with the J20 board, you need to select the J20 support Kernel Configuration like this:
| |
|
| |
| <pre>
| |
| -> Kernel Configuration
| |
| -> Device Drivers
| |
| -> Multimedia support
| |
| -> Encoders, decoders, sensors and other helper chips
| |
| -> <*> Auvidea J20 Expansion board
| |
| </pre>
| |
|
| |
| * Then '''make''' the SDK and install following the Started Guide mentioned before
| |
|
| |
|
| ==Using Jetpack== | | ==Using Jetpack== |
|
| |
|
| * Follow the instructions in [http://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code#Build_Kernel Compiling Jetson TX1 source code (Downloading the code)] to get the kernel source code. | | * Follow the instructions in [https://developer.ridgerun.com/wiki/index.php?title=Compiling_Jetson_TX1/TX2_source_code#Download_the_kernel_source_code] to get the kernel source code. |
| | |
| * Once you have the source code, apply the following two patches if you haven't yet, for fixing kernel errors during compilation.
| |
| | |
| <pre>
| |
| kernel_r7_asm.patch
| |
| logical_comparison.patch
| |
| </pre>
| |
| | |
| * Apply the driver patches:
| |
| <pre>
| |
| 0001-add-imx219-subdevice-driver.patch
| |
| 0002-add-imx219-dtb.patch
| |
| </pre>
| |
|
| |
|
| In the case that you will use the driver with the J20 board, you will need to apply the following patch:
| | * Once you have the source code, apply the following three patches in order to add the changes required for the os08a10 cameras at kernel and dtb level. |
|
| |
|
| <pre> | | <pre> |
| 0003-add-j20-board-driver.patch
| | 3.2.1_os08a10.patch |
| </pre>
| |
| | |
| * Follow the instructions in [http://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code#Build_Kernel Compiling_Tegra_X1_source_code (Build Kernel)] for building the kernel, and then flash the image.
| |
| | |
| Make sure to enable imx219 driver support:
| |
| <pre>
| |
| make menuconfig
| |
| </pre>
| |
| | |
| <pre>
| |
| -> Device Drivers
| |
| -> Multimedia support
| |
| -> Encoders, decoders, sensors and other helper chips
| |
| -> <*> IMX219 camera sensor support
| |
| </pre> | | </pre> |
|
| |
|
| In the case that you will use the driver with the J20 board, you need to make sure to enable the J20 support:
| | * Follow the instructions in [https://developer.ridgerun.com/wiki/index.php?title=Compiling_Jetson_TX1/TX2_source_code#Build_Kernel (Build Kernel)] for building the kernel, and then flash the image. |
|
| |
|
| | Make sure to enable os08a10 driver support: |
| <pre> | | <pre> |
| make menuconfig | | make menuconfig |
Line 154: |
Line 87: |
| -> Multimedia support | | -> Multimedia support |
| -> Encoders, decoders, sensors and other helper chips | | -> Encoders, decoders, sensors and other helper chips |
| -> <*> Auvidea J20 Expansion board | | -> <*> OS08A10 camera sensor support |
| </pre> | | </pre> |
|
| |
|