10 Replies Latest reply on Aug 10, 2017 8:21 AM by DanMadill

    Capture from OV8858

    Akiyan

      I'm trying to capture via 8MP camera, OV8858.

       

      root@intel-aero:~/work# C=4 INPUT=0 MODE=PREVIEW M_F=NV21 ./capture_example --userp -d /dev/video0

      Preview mode: 640x480, nv21.

      m_width 640, m_height 480, m_sizeimage 462848, m_padded_width:640, bytesperline 640

      Saving file: Image-video2-640x480-0.nv21

      Saving file: Image-video2-640x480-1.nv21

      Saving file: Image-video2-640x480-2.nv21

      Saving file: Image-video2-640x480-3.nv21

      Preview: Time=141.286000ms FPS=28.311368

       

      And I can get images, but they are really dark. (see attachment, it's 'Hand'.)

       

      I'm not sure whether it's caused by wrong configurations, or hardware defect?

      Here are information related to the camera.

       

      [get_aero_version]

      BIOS_VERSION = Aero-01.00.12_Prod

      OS_VERSION = v01.00.04

      AIRMAP_VERSION = 1.8

      FPGA_VERSION = 0xff 0xff

       

      [dmesg]

      root@intel-aero:~# dmesg | grep INT3477

      [    2.991068] ov8858 i2c-INT3477:00: gmin: initializing atomisp module subdev data.PMIC ID 1

      [    2.991123] acpi INT3477:00: Failed to find gmin variable INT3477:00_CamClk

      [    2.991281] acpi INT3477:00: Failed to find gmin variable INT3477:00_ClkSrc

      [    2.991333] acpi INT3477:00: Failed to find gmin variable INT3477:00_CsiPort

      [    2.991500] acpi INT3477:00: Failed to find gmin variable INT3477:00_CsiLanes

      [    2.991809] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo1_1p8v

      [    2.991951] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo1_sel_reg

      [    2.992093] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo1_ctrl_shift

      [    2.992234] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo2_1p8v

      [    2.992373] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo2_sel_reg

      [    2.992541] acpi INT3477:00: Failed to find gmin variable INT3477:00_eldo2_ctrl_shift

      [    3.142409] ov8858 i2c-INT3477:00: camera pdata: port: 1 lanes: 4 order: 00000002

      [    3.143938] ov8858 i2c-INT3477:00: ov8858_detect: chip_id = 0x8858

      [    3.150848] ov8858 i2c-INT3477:00: register atomisp i2c module type 1

      [    4.077699] atomisp-css2401a0_v21 0000:00:03.0: Subdev INT3477:00 successfully register

       

      [v4l2-ctl]

      root@intel-aero:~# v4l2-ctl -d /dev/video0 --all

      Driver Info (not using libv4l2):

        Driver name   : atomisp

        Card type     : ATOM ISP

        Bus info      : PCI-3

        Driver version: 0.5.1

        Capabilities  : 0x84200003

        Video Capture

        Video Output

        Streaming

        Extended Pix Format

        Device Capabilities

        Device Caps   : 0x04200002

        Video Output

        Streaming

        Extended Pix Format

      Priority: 0

      Video input : 0 (ov8858 3-0010: ok)

      Format Video Capture:

        Width/Height  : 0/0

        Pixel Format  : ''

        Field         : Any

        Bytes per Line: 0

        Size Image    : 0

        Colorspace    : Unknown (00000000)

        Flags         :

      Streaming Parameters Video Capture:

        Frames per second: invalid (0/0)

        Read buffers     : 0

      error 22 getting ctrl Automatic White Balance

      error 22 getting ctrl Red Balance

      error 22 getting ctrl Blue Balance

      error 22 getting ctrl Gamma

      error 22 getting ctrl exposure

      error 22 getting ctrl Horizontal flip

      error 22 getting ctrl Vertical flip

      error 22 getting ctrl Light frequency filter

                   image_color_effect (int)    : min=0 max=9 step=1 default=0 value=0

      error 22 getting ctrl Image Color Effect CbCr

                 bad_pixel_correction (int)    : min=0 max=1 step=1 default=0 value=1

                              gdc_cac (int)    : min=0 max=1 step=1 default=0 value=0

                   video_stablization (int)    : min=0 max=1 step=1 default=0 value=0

        fixed_pattern_noise_reduction (int)    : min=0 max=1 step=1 default=0 value=0

               false_color_correction (int)    : min=0 max=1 step=1 default=0 value=0

                       low_light_mode (bool)   : default=1 value=0

       

      I'm not sure that they indicate any issues, but I noticed that I can't get some control values like color balances. Is this the cause of my issue?

       

      Could someone give me those logs on the correct environment?

       

      Thanks in advance,

      Aki