GithubHelp home page GithubHelp logo

ipu6-drivers's Introduction

ipu6-drivers

This repository supports MIPI cameras through the IPU6 on Intel Tiger Lake, Alder Lake, Raptor Lake and Meteor Lake platforms. There are 4 repositories that provide the complete setup:

Content of this repository:

  • IPU6 kernel driver
  • Kernel patches needed
  • Drivers for HM11B1, OV01A1S, OV01A10, OV02C10, OV02E10, OV2740, HM2170, HM2172 and HI556 sensors

Dependencies

Build instructions:

Three ways are available:

  1. build with kernel source tree
  2. build out of kernel source tree
  3. and build with dkms

1. Build with kernel source tree

  • Tested with kernel v6.8

  • Check out kernel

  • Apply patches:

     # For Meteor Lake B stepping only
     patch/0002-iommu-Add-passthrough-for-MTL-IPU.patch
    
     # For v5.15 <= kernel version < v5.17 and using INT3472
     patch/int3472-v5.15/*.patch
    
     # For v5.17 <= kernel version < v6.1.7 and using INT3472
     patch/int3472-v5.17/*.patch
    
     # For kernel version >= 6.1.7 and using INT3472
     patch/int3472-v6.1.7/*.patch
    
     # For kernel version >= 6.3 and using ov13b10
     patch/ov13b10-v6.3/*.patch
    
     # For kernel version v6.8
     patch/v6.8/*.patch
  • For kernel v6.8. patch/v6.8/0002-media-Add-IPU6-and-supported-sensors-config.patch will change the related Kconfig & Makefile.

  • For latest linux-firmware repo, apply patch/linux-firmware/0001-Add-symbolic-link-for-Intel-IPU6-firmwares.patch to it to make driver work.

  • Copy drivers and include folders to kernel source (except Kconfig & Makefile at drivers/media/pci/intel and drivers/media/i2c as they are modified by patches in previous step. You can delete them before you copy folders.).

  • Enable the following settings in .config

     CONFIG_VIDEO_INTEL_IPU6=m
     CONFIG_IPU_ISYS_BRIDGE=y
     # For kernel >= v6.8 please use IPU_BRIDGE instead of IPU_ISYS_BRIDGE
     CONFIG_IPU_BRIDGE=m
     CONFIG_VIDEO_OV01A1S=m
     CONFIG_VIDEO_OV01A10=m
     CONFIG_VIDEO_HM11B1=m
     CONFIG_VIDEO_OV02C10=m
     CONFIG_VIDEO_OV02E10=m
     CONFIG_VIDEO_HM2170=m
     CONFIG_VIDEO_HM2172=m
     # Set this only if you use only 1 camera and don't want too many device nodes in media-ctl
     # CONFIG_IPU_SINGLE_BE_SOC_DEVICE=y
     # If your kernel < 5.15 or not set CONFIG_INTEL_SKL_INT3472, please set this
     # CONFIG_POWER_CTRL_LOGIC=m
    
  • LJCA and CVF part as below, please check details at https://github.com/intel/ivsc-driver/blob/main/README.md.

     CONFIG_MFD_LJCA=m
     CONFIG_I2C_LJCA=m
     CONFIG_SPI_LJCA=m
     CONFIG_GPIO_LJCA=m
     CONFIG_USB_LJCA=m
     CONFIG_INTEL_MEI_VSC=m
     CONFIG_INTEL_MEI_VSC_HW=m
     CONFIG_INTEL_VSC=m
     CONFIG_INTEL_VSC_CSI=m
     CONFIG_INTEL_VSC_ACE=m
     CONFIG_INTEL_VSC_PSE=m
     CONFIG_INTEL_VSC_ACE_DEBUG=m
    

2. Build outside kernel source tree

  • Requires kernel header installed on build machine

  • For kernel >= v6.8, still need to patch kernel by patch/v6.8/0004 & 0005 to make upstream iVSC driver work correctly. For kernel <= v6.6, requires iVSC out-of-tree driver be built together.

  • To prepare out-of-tree iVSC driver under kernel <= v6.6:

     cd ipu6-drivers
     git clone https://github.com/intel/ivsc-driver.git
     cp -r ivsc-driver/backport-include ivsc-driver/drivers ivsc-driver/include .
     rm -rf ivsc-driver
  • To build and install:

     make -j`nproc` && sudo make modules_install && sudo depmod -a

3. Build with dkms

  • Prepare out-of-tree iVSC driver under kernel <= v6.6:

     cd ipu6-drivers
     git clone https://github.com/intel/ivsc-driver.git
     cp -r ivsc-driver/backport-include ivsc-driver/drivers ivsc-driver/include .
     rm -rf ivsc-driver
  • Register, build and auto install:

     sudo dkms add .
     sudo dkms autoinstall ipu6-drivers/0.0.0

ipu6-drivers's People

Contributors

andy-shev avatar ccgjimlai avatar cjechlitschek avatar hao-yao avatar ignaciohg avatar jwrdegoede avatar liang1wang avatar onceforall avatar rdower avatar serinyeh avatar vicamo avatar wytintel avatar xcyintel avatar zouxiaoh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.