Giter Club home page Giter Club logo

surface3-cameras's Introduction

Overwrite project

This project basic https://github.com/kitakar5525/surface3-atomisp-cameras I just patched it can be built above linux version 6.0

It can work?

It can be built and work(can detect device and call it),but system udev cannot detect it!

Dangerous ! ! !

If you load the module,you touchscreen crashed immediately! If this happen,you must shutdown system(note: must shutdown,no restart because it crash unexpected and unnormally) and wait 1 or 2 min before start!

Trying to get atomisp cameras working on Surface 3

Link to issue: linux-surface/linux-surface#209

atomisp pci driver

Take a look at my kernel repo. The upstreamed atomisp is currently not working.

Patches for atomisp (also contain sensor drivers):

Patches for kernel core (like regulators) (also contains patches unrelated to atomisp, maybe I need to create dedicated branch for atomisp later):

to build sensor drivers

Sensor drivers are already included in my kernel tree mentioned above, but if you want to build drivers here:

make KDIR="/path/to/your/kernel_tree" ATOMISP_INC="drivers/staging/media/atomisp/include"

loading out-of-tree sensor modules

Current atomisp driver requires you to load sensor modules before atomisp main pci driver.

You must load this module first:

extra/atomisp_gmin_platform.ko

Here is the example:

# unload atomisp pci driver
sudo rmmod atomisp

# load drivers needed for atomisp first for insmod
# for sensor drivers
sudo modprobe media # needed for older LTS
sudo modprobe videodev
sudo modprobe v4l2_common # needed for older LTS
sudo modprobe v4l2_async # if using async_register
# for atomisp
sudo modprobe videobuf-core
sudo modprobe videobuf-vmalloc

# load atomisp drivers
sudo insmod atomisp-ar0330.ko
sudo insmod atomisp-ov883x.ko
# IIRC, modprobe works but try insmod instead if weird
sudo modprobe atomisp dbg_level=1 #dyndbg

atomisp firmware file

You need a firmware file, place it to /lib/firmware/shisp_2401a0_v21.bin The firmware version should be irci_stable_candrpv_0415_20150521_0458. You can download it from intel-aero (https://github.com/intel-aero/meta-intel-aero-base/tree/master/recipes-kernel/linux/linux-yocto)

Just in case, the version and hash of firmware which I downloaded from intel-aero is the following:

$ strings /lib/firmware/shisp_2401a0_v21.bin | grep 2015
irci_stable_candrpv_0415_20150521_0458

$ sha256sum /lib/firmware/shisp_2401a0_v21.bin
e89359f4e4934c410c83d525e283f34c5fcce9cb5caa75ad8a32d66d3842d95c  /lib/firmware/shisp_2401a0_v21.bin

Note that the other version of firmware may not work.

links

You can find atomisp and its sensor drivers for Android (kernel 3.10) on some places:

Linux kernel for intel-aero also provides atomisp and its sensor drivers (up to linux 4.4):

atomisp and its sensor drivers as patch format for Linux v4.4 and atomisp firmware file:

surface3-cameras's People

Contributors

zerconsolef 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.