Coder Social home page Coder Social logo

410c_camera_support's Introduction

410c_camera_support

Example scripts, applications, and binaries for the 410c camera.

410c_camera_support's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

410c_camera_support's Issues

Full 2592 x 1944 resolution

Hi,
I'm doing some tests with the ov5640 camera and until now everything works fine with both, the prerelease images and with my own compiled ones. My tests consist on taken a jpeg capture from the camera.
Now I would like to test the image capture at full resolution and but I'm not able to get it working. I've modify the function ov5640_entity_init_cfg to set the width and height to 2592 and 1944 and the cam0_* scripts but it doesn't work.
Is it possible to get this working?

Secondary Sensor

Hello,

I'm currently working with upstream OV5640 driver in order to make the D3 mezzanine compatible with DB410 out of the box. If the OV5640 sensor works well on the first connector this is not the case for the second one. Indeed when communicating over I2C/CCI with the second sensor I get I2C I/O errors even if only one sensor is connected to the mezzanine (on the second connector). So I wonder what is the difference with the first connector (don't have the schematics), could it be a GPIO misconfiguration (enable 33, reset 28) or other hardware issue.... In your wiki, for you indicate that ovti,use_cci should not be set for secondary sensor (with your ov5640 driver), what is the reason behind that ?

Regards,

Temp tree:
https://git.linaro.org/people/loic.poulain/linux.git/log/?h=qcomlt-4.14-d3-mezzanine

Wifi + Bluetooth

Hi, I've been booting with a usb2 network connection, but wanted to migrate to wifi to free up a port for my mouse and the first boot the network icon in the system tray had the option for wireless connections but listed none found, and the bluetooth utilities list no adapter found so I can't use that for input instead.

Congrats on the release though, initial confusion at not working instantly with 'cheese', but after reading the 'build your own' notes and playing with the included example scripts for config and gles/gstreamer implementation it all made sense.

SW2 to put dragonboard in fastboot mode

Documentation for Version 1.1 mentions using SW2 to enter fastboot.
This didnt work for me and I had to unplug the camera mezzanine to get access to volume down button S4 on Dragonboard to enter fastboot.
Does this work?

Segmentation fault

I followed the introduction to run make to compile the OpenGLES Capture Example.
There is a full screen image just shown in a second, then the application crashed.
I got the following messages:
[1516164644.825632] INFO: EGL_API is EGL_OPENGL_ES_API [dispaly.c egl_init:270]
Segmentation fault

I also tried "capture" in the bin folder, and got the same result.

Is there something wrong with my hardware or there has some bugs in the programme? Any suggestions?

Thanks.

media pipeline not able to set the pipeline and format

I am using the prebuild image boot and rootfs desktop image.
the driver ov5640 is loaded properly, the v4l-utils is up to date.
im not able to set the pipeline using media-ctl, the code provide here has no effect, here are some log

linaro@linaro-alip:~$ lsmod
Module                  Size  Used by
rfcomm                 94208  2
ctr                    16384  4
ccm                    20480  2
arc4                   16384  2
wcn36xx                73728  0
mac80211              430080  1 wcn36xx
cmac                   16384  1
bnep                   24576  2
btqcomsmd              16384  0
btqca                  16384  1 btqcomsmd
bluetooth             618496  29 btqcomsmd,btqca,bnep,rfcomm
cfg80211              323584  1 mac80211
venus_dec              20480  0
venus_enc              24576  0
qcom_wcnss_pil         16384  0
ov5640                 32768  1
msm_rng                16384  0
rng_core               20480  1 msm_rng
venus_core             61440  2 venus_dec,venus_enc
qcom_camss             73728  0
videobuf2_dma_sg       24576  3 venus_dec,qcom_camss,venus_enc
mdt_loader             16384  2 qcom_wcnss_pil,venus_core
v4l2_mem2mem           24576  3 venus_dec,venus_enc,venus_core
qcom_cci               53248  1 ov5640
videobuf2_memops       16384  1 videobuf2_dma_sg
videobuf2_v4l2         24576  4 venus_dec,qcom_camss,venus_enc,v4l2_mem2mem
videobuf2_core         45056  6 venus_dec,qcom_camss,venus_enc,venus_core,v4l2_mem2mem,videobuf2_v4l2
ip_tables              24576  0
x_tables               36864  1 ip_tables
linaro@linaro-alip:~$ dmesg | grep ov5640
[    9.678665] ov5640 1-0078: ov5640_probe: Enter, i2c addr = 0x78
[    9.679132] ov5640 1-0078: Enable HIGH
[    9.691294] ov5640 1-0078: Reset LOW
[    9.706587] ov5640 1-0078: s_power 1
[    9.745688] ov5640 1-0078: Enable LOW
[    9.763578] ov5640 1-0078: Reset High
[    9.986911] ov5640 1-0078: OV5640 detected at address 0x78
[    9.988367] ov5640 1-0078: s_power 0
[    9.988450] ov5640 1-0078: ov5640_entity_init_cfg: Enter
[   10.011851] ov5640 1-0078: ov5640_open: Enter
[   10.011855] ov5640 1-0078: ov5640_entity_init_cfg: Enter
linaro@linaro-alip:~$ media-ctl -p -d /dev/media1
Failed to enumerate /dev/media1 (-13)
linaro@linaro-alip:~$ sudo media-ctl -p -d /dev/media1
Media controller API version 0.1.0

Media device information
------------------------
driver          qcom-camss
model           Qualcomm Camera Subsystem
serial          
bus info        
hw revision     0x0
driver version  0.0.0

Device topology
- entity 1: msm_csiphy0 (2 pads, 3 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev0
	pad0: Sink
		<- "ov5640 1-0078":0 [ENABLED,IMMUTABLE]
	pad1: Source
		-> "msm_csid0":0 []
		-> "msm_csid1":0 []

- entity 4: msm_csiphy1 (2 pads, 2 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev1
	pad0: Sink
	pad1: Source
		-> "msm_csid0":0 []
		-> "msm_csid1":0 []

- entity 7: msm_csid0 (2 pads, 4 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev2
	pad0: Sink
		<- "msm_csiphy0":1 []
		<- "msm_csiphy1":1 []
	pad1: Source
		-> "msm_ispif0":0 []
		-> "msm_ispif1":0 []

- entity 10: msm_csid1 (2 pads, 4 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev3
	pad0: Sink
		<- "msm_csiphy0":1 []
		<- "msm_csiphy1":1 []
	pad1: Source
		-> "msm_ispif0":0 []
		-> "msm_ispif1":0 []

- entity 13: msm_ispif0 (2 pads, 6 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev4
	pad0: Sink
		<- "msm_csid0":1 []
		<- "msm_csid1":1 []
	pad1: Source
		-> "msm_vfe0_rdi0":0 []
		-> "msm_vfe0_rdi1":0 []
		-> "msm_vfe0_rdi2":0 []
		-> "msm_vfe0_pix":0 []

- entity 16: msm_ispif1 (2 pads, 6 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev5
	pad0: Sink
		<- "msm_csid0":1 []
		<- "msm_csid1":1 []
	pad1: Source
		-> "msm_vfe0_rdi0":0 []
		-> "msm_vfe0_rdi1":0 []
		-> "msm_vfe0_rdi2":0 []
		-> "msm_vfe0_pix":0 []

- entity 19: msm_vfe0_rdi0 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev6
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video0":0 [ENABLED,IMMUTABLE]

- entity 22: msm_vfe0_video0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video0
	pad0: Sink
		<- "msm_vfe0_rdi0":1 [ENABLED,IMMUTABLE]

- entity 28: msm_vfe0_rdi1 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev7
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video1":0 [ENABLED,IMMUTABLE]

- entity 31: msm_vfe0_video1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
	pad0: Sink
		<- "msm_vfe0_rdi1":1 [ENABLED,IMMUTABLE]

- entity 37: msm_vfe0_rdi2 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev8
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video2":0 [ENABLED,IMMUTABLE]

- entity 40: msm_vfe0_video2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video2
	pad0: Sink
		<- "msm_vfe0_rdi2":1 [ENABLED,IMMUTABLE]

- entity 46: msm_vfe0_pix (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev9
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video3":0 [ENABLED,IMMUTABLE]

- entity 49: msm_vfe0_video3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video3
	pad0: Sink
		<- "msm_vfe0_pix":1 [ENABLED,IMMUTABLE]

- entity 87: ov5640 1-0078 (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev10
	pad0: Source
		[fmt:UYVY8_2X8/1920x1080 field:none
		 crop:(0,0)/1920x1080]
		-> "msm_csiphy0":0 [ENABLED,IMMUTABLE]

linaro@linaro-alip:~$ set -x
linaro@linaro-alip:~$ sudo media-ctl -v -d /dev/media1 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_pix":0[1]'
+ sudo media-ctl -v -d /dev/media1 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_pix":0[1]'
Opening media device /dev/media1
Enumerating entities
looking up device: 81:6
looking up device: 81:7
looking up device: 81:8
looking up device: 81:9
looking up device: 81:10
looking up device: 81:11
looking up device: 81:12
looking up device: 81:0
looking up device: 81:13
looking up device: 81:1
looking up device: 81:14
looking up device: 81:2
looking up device: 81:15
looking up device: 81:3
looking up device: 81:16
Found 15 entities
Enumerating pads and links
Setting up link 1:1 -> 7:0 [1]
Opening media device /dev/media1
Setting up link 7:1 -> 13:0 [1]
Opening media device /dev/media1
Setting up link 13:1 -> 46:0 [1]
Opening media device /dev/media1
linaro@linaro-alip:~$ sudo media-ctl -v -d /dev/media1 -V '"ov5640 1-0078":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_csiphy0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_csid0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_ispif0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_vfe0_pix":0[fmt:YUYV8_1_5X8/1920x1080 field:none]'
+ sudo media-ctl -v -d /dev/media1 -V '"ov5640 1-0078":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_csiphy0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_csid0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_ispif0":0[fmt:UYVY8_2X8/1920x1080 field:none],"msm_vfe0_pix":0[fmt:YUYV8_1_5X8/1920x1080 field:none]'
Opening media device /dev/media1
Enumerating entities
looking up device: 81:6
looking up device: 81:7
looking up device: 81:8
looking up device: 81:9
looking up device: 81:10
looking up device: 81:11
looking up device: 81:12
looking up device: 81:0
looking up device: 81:13
looking up device: 81:1
looking up device: 81:14
looking up device: 81:2
looking up device: 81:15
looking up device: 81:3
looking up device: 81:16
Found 15 entities
Enumerating pads and links
Setting up format UYVY8_2X8 1920x1080 on pad ov5640 1-0078/0
Format set: UYVY8_2X8 1920x1080
Setting up format UYVY8_2X8 1920x1080 on pad msm_csiphy0/0
Format set: UYVY8_2X8 1920x1080
Setting up format UYVY8_2X8 1920x1080 on pad msm_csid0/0
Format set: UYVY8_2X8 1920x1080
Setting up format UYVY8_2X8 1920x1080 on pad msm_ispif0/0
Format set: UYVY8_2X8 1920x1080
Setting up format YUYV8_1_5X8 1920x1080 on pad msm_vfe0_pix/0
Format set: UYVY8_2X8 1920x1080
linaro@linaro-alip:~$ sudo media-ctl -p -d /dev/media1
+ sudo media-ctl -p -d /dev/media1
Media controller API version 0.1.0

Media device information
------------------------
driver          qcom-camss
model           Qualcomm Camera Subsystem
serial          
bus info        
hw revision     0x0
driver version  0.0.0

Device topology
- entity 1: msm_csiphy0 (2 pads, 3 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev0
	pad0: Sink
		<- "ov5640 1-0078":0 [ENABLED,IMMUTABLE]
	pad1: Source
		-> "msm_csid0":0 [ENABLED]
		-> "msm_csid1":0 []

- entity 4: msm_csiphy1 (2 pads, 2 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev1
	pad0: Sink
	pad1: Source
		-> "msm_csid0":0 []
		-> "msm_csid1":0 []

- entity 7: msm_csid0 (2 pads, 4 links)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev2
	pad0: Sink
		<- "msm_csiphy0":1 [ENABLED]
		<- "msm_csiphy1":1 []
	pad1: Source
		-> "msm_ispif0":0 [ENABLED]
		-> "msm_ispif1":0 []

- entity 10: msm_csid1 (2 pads, 4 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev3
	pad0: Sink
		<- "msm_csiphy0":1 []
		<- "msm_csiphy1":1 []
	pad1: Source
		-> "msm_ispif0":0 []
		-> "msm_ispif1":0 []

- entity 13: msm_ispif0 (2 pads, 6 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev4
	pad0: Sink
		<- "msm_csid0":1 [ENABLED]
		<- "msm_csid1":1 []
	pad1: Source
		-> "msm_vfe0_rdi0":0 []
		-> "msm_vfe0_rdi1":0 []
		-> "msm_vfe0_rdi2":0 []
		-> "msm_vfe0_pix":0 [ENABLED]

- entity 16: msm_ispif1 (2 pads, 6 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev5
	pad0: Sink
		<- "msm_csid0":1 []
		<- "msm_csid1":1 []
	pad1: Source
		-> "msm_vfe0_rdi0":0 []
		-> "msm_vfe0_rdi1":0 []
		-> "msm_vfe0_rdi2":0 []
		-> "msm_vfe0_pix":0 []

- entity 19: msm_vfe0_rdi0 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev6
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video0":0 [ENABLED,IMMUTABLE]

- entity 22: msm_vfe0_video0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video0
	pad0: Sink
		<- "msm_vfe0_rdi0":1 [ENABLED,IMMUTABLE]

- entity 28: msm_vfe0_rdi1 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev7
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video1":0 [ENABLED,IMMUTABLE]

- entity 31: msm_vfe0_video1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
	pad0: Sink
		<- "msm_vfe0_rdi1":1 [ENABLED,IMMUTABLE]

- entity 37: msm_vfe0_rdi2 (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev8
	pad0: Sink
		<- "msm_ispif0":1 []
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video2":0 [ENABLED,IMMUTABLE]

- entity 40: msm_vfe0_video2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video2
	pad0: Sink
		<- "msm_vfe0_rdi2":1 [ENABLED,IMMUTABLE]

- entity 46: msm_vfe0_pix (2 pads, 3 links)
             type Node subtype V4L flags 0
             device node name /dev/v4l-subdev9
	pad0: Sink
		<- "msm_ispif0":1 [ENABLED]
		<- "msm_ispif1":1 []
	pad1: Source
		-> "msm_vfe0_video3":0 [ENABLED,IMMUTABLE]

- entity 49: msm_vfe0_video3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video3
	pad0: Sink
		<- "msm_vfe0_pix":1 [ENABLED,IMMUTABLE]

- entity 87: ov5640 1-0078 (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev10
	pad0: Source
		[fmt:UYVY8_2X8/1920x1080 field:none
		 crop:(0,0)/1920x1080]
		-> "msm_csiphy0":0 [ENABLED,IMMUTABLE]

ov5460 not detected

I am not able to detect ov5460 on booting below image -
https://github.com/D3Engineering/410c_camera_support/releases/download/D3%2FRELEASE%2FOV5640_QCOMLT_4.9_1.1.1/dragonboard410c-boot-linux-20170630-13.img.gz

linaro@linaro-alip:~$ lsmod | grep ov5460
ov5640 32768 1

linaro@linaro-alip:$ dmesg | grep ov5640
linaro@linaro-alip:
$ dmesg | grep ov5640
[ 9.678665] ov5640 1-0078: ov5640_probe: Enter, i2c addr = 0x78
[ 9.679132] ov5640 1-0078: Enable HIGH
[ 9.691294] ov5640 1-0078: Reset LOW
[ 9.706587] ov5640 1-0078: s_power 1
[ 9.745688] ov5640 1-0078: Enable LOW
[ 9.763578] ov5640 1-0078: Reset High
[ 9.986911] ov5640 1-0078: ov5640_read_reg : read reg error -22 on address 0x78: reg=0x300a
[ 9.988367] ov5640 1-0078: cound not read ID high
[ 10.011851] ov5640 1-0078: s_power 0

linaro@linaro-alip:~$ media-ctl -p -d /dev/media1
Failed to enumerate /dev/media1 (-13)

Checked /proc./device-tree and I find all the device tree nodes are present which are part of below commit -

D3Engineering/linux_kernel_qcomlt@6fdc4f4

I am doubting that is ov5460 shipped to me is damaged.

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.