Skip to content

will127534/imx283-v4l2-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel Driver for IMX283

This guide provides detailed instructions on how to install the IMX283 kernel driver on a Linux system, specifically Raspbian.

Prerequisites

Before you begin the installation process, please ensure the following prerequisites are met:

  • Kernel version: You should be running on a Linux kernel version 6.1 or newer. You can verify your kernel version by executing uname -r in your terminal.

  • Development tools: Essential tools such as gcc, dkms, and linux-headers are required for compiling a kernel module. If not already installed, these can be installed using the package manager with the following command:

    sudo apt install linux-headers dkms git

Installation Steps

Setting Up the Tools

First, install the necessary tools (linux-headers, dkms, and git) if you haven't done so:

sudo apt install linux-headers dkms git

Fetching the Source Code

Clone the repository to your local machine and navigate to the cloned directory:

git clone https://github.com/will127534/imx283-v4l2-driver.git
cd imx283-v4l2-driver/

Compiling and Installing the Kernel Driver

To compile and install the kernel driver, execute the provided installation script:

./setup.sh

Updating the Boot Configuration

Edit the boot configuration file using the following command:

sudo nano /boot/config.txt

In the opened editor, locate the line containing camera_auto_detect and change its value to 0. Then, add the line dtoverlay=imx283. So, it will look like this:

camera_auto_detect=0
dtoverlay=imx283

After making these changes, save the file and exit the editor.

Remember to reboot your system for the changes to take effect.

dtoverlay options

cam0

If the camera is attached to cam0 port, append the dtoverlay with ,cam0 like this:

camera_auto_detect=0
dtoverlay=imx283,cam0

always-on

If you want to keep the camera power always on (Useful for debugging HW issues, specifically this will set CAM_GPIO to high constantly), append the dtoverlay with ,always-on like this:

camera_auto_detect=0
dtoverlay=imx283,always-on

mix usage

Last note is that all the options can be used at the same time, the dtoverlay will looks like this:

camera_auto_detect=0
dtoverlay=imx283,always-on,cam0

Special Thanks

Special thanks to Sasha Shturma's Raspberry Pi CM4 Сarrier with Hi-Res MIPI Display project, the install script is adapted from the github project page: https://github.com/renetec-io/cm4-panel-jdi-lt070me05000