Difference between revisions of "Linbian Usage Guide"

From Lindenis Wiki
Jump to: navigation, search
(Camera Module)
Line 17: Line 17:
  
 
== Camera Module ==
 
== Camera Module ==
 +
 +
 +
*sys_config.fex config
 +
 +
See the 13 chapter page 37 to page 52 [http://files.lindeni.org/lindenis-v5/documents/guide/sys_config.fex%E4%BD%BF%E7%94%A8%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E.pdf sys_config guide]
 +
 +
 +
*kernel menuconfig
 +
 +
Device Drivers  ---> 
 +
<*> Multimedia support  --->
 +
            [*]  V4L platform devices  --->
 +
                  [*]      imx317 platform select  --->
 +
                        --- imx317 platform select
 +
                        [*]  select IPC platform config otherwise SDV platform
 +
                        <M>  imx317_mipi sensor driver 
 +
 +
the imx317 sensor driver code
 +
 +
kernel/drivers/media/platform/sunxi-vin/modules/sensor/imx317_mipi.c
 +
 +
if you want to support a new sensor, you can add the driver code in this path, and modify the Makefile and Kconfig like imx317. Of course you should config the sys_config.fex first.
 +
 +
 +
*insmod the sensor module
 +
 +
1.cp the driver ko to debian/target/lib/modules/4.4.55+/
 +
 +
2.replace the imx317_mipi with the new sensor ko's name in this file
 +
 +
device/eagle/rootfs/etc/modules-load.d/mpp.conf
 +
 +
3.build the sdk
 +
 +
 +
*User Interfaces
 +
1.Use the MPP interfaces. see the [http://files.lindeni.org/lindenis-v5/documents/soft_design/MPP/AW%20IPC%e5%aa%92%e4%bd%93%e5%a4%84%e7%90%86%e8%bd%af%e4%bb%b6%e5%bc%80%e5%8f%91%e5%8f%82%e8%80%83.pdf MPP Interface Usage] page 20-53,
 +
 +
The demo code is here [https://github.com/lindenis-org/mpp_sample/tree/master/sample_virvi2vo sample_virvi2vo]
 +
 +
2.Use the /dev/videoX directly, you can see the demo in  [http://files.lindeni.org/lindenis-v5/documents/Driver/SUNXI-VIN%e6%a8%a1%e5%9d%97%e4%bd%bf%e7%94%a8%e6%96%87%e6%a1%a3.pdf Camera Driver Guide]
  
 
== Webcams ==
 
== Webcams ==

Revision as of 08:32, 24 October 2018

Terminal

MPP

Allwinner official documents

Samples

Please refer to Demo programs.

Camera Module

  • sys_config.fex config

See the 13 chapter page 37 to page 52 sys_config guide


  • kernel menuconfig
Device Drivers  --->  
	<*> Multimedia support  ---> 
           [*]   V4L platform devices  ---> 
                 [*]       imx317 platform select  ---> 
                       --- imx317 platform select 
                       [*]   select IPC platform config otherwise SDV platform 
                       <M>   imx317_mipi sensor driver  

the imx317 sensor driver code

kernel/drivers/media/platform/sunxi-vin/modules/sensor/imx317_mipi.c

if you want to support a new sensor, you can add the driver code in this path, and modify the Makefile and Kconfig like imx317. Of course you should config the sys_config.fex first.


  • insmod the sensor module

1.cp the driver ko to debian/target/lib/modules/4.4.55+/

2.replace the imx317_mipi with the new sensor ko's name in this file

device/eagle/rootfs/etc/modules-load.d/mpp.conf

3.build the sdk


  • User Interfaces

1.Use the MPP interfaces. see the MPP Interface Usage page 20-53,

The demo code is here sample_virvi2vo

2.Use the /dev/videoX directly, you can see the demo in Camera Driver Guide

Webcams

Gstreamer

Play Video

Play Audio

Python

GPIO

Demo programs

Face recognition

Motion detection

Human counting

VLPR

Image stitch

Binocular DOF image

Speech recognition