Camera not wotking GT2005 - CSI_ERR

Started by ramtheconqueror, June 22, 2016, 02:30:36 PM

Previous topic - Next topic

ramtheconqueror

Hello All,

I'm working on A20-SOM_EVB which has GT2005 camera module. I've followed this to create the SD image: 
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103/A20_Olimex_kernel_3.4.103%2B_Jessie_with_camera_support_building_description.txt

Also, cross compiled Qt 5.7 and everything works great apart from this camera.

=======================================================================================
When I run fswebcam, this is what I see

root@OLinuXino-A20:~# fswebcam -r 640x480 /home/olimex/fswebcam.jpg
--- Opening /dev/video0...
Trying source module v4l2...
<6>[CSI]sensor initial success when csi open!
[ 9327.650612] [CSI]sensor initial success when csi open!
/dev/video0 opened.
No <6>[CSI_ERR]v4l2 sub device queryctrl error!
[ 9327.888653] [CSI_ERR]v4l2 sub device queryctrl error!
input was specified, using the f<6>[CSI_ERR]Fourcc format (0x4745504a) invalid.
[ 9327.900842] [CSI_ERR]Fourcc format (0x4745504a) invalid.
irst.
<6>[CSI_ERR]Fourcc format (0x47504a4d) invalid.
[ 9327.911466] [CSI_ERR]Fourcc format (0x47504a4d) invalid.
<6>[CSI_ERR]Fourcc format (0x31363553) invalid.
[ 9327.921523] [CSI_ERR]Fourcc format (0x31363553) invalid.
<6>[CSI_ERR]Fourcc format (0x33424752) invalid.
[ 9327.931536] [CSI_ERR]Fourcc format (0x33424752) invalid.
<6>[CSI_ERR]Fourcc format (0x33524742) invalid.
[ 9327.941539] [CSI_ERR]Fourcc format (0x33524742) invalid.
<6>[CSI_ERR]Fourcc format (0x34424752) invalid.
[ 9327.951542] [CSI_ERR]Fourcc format (0x34424752) invalid.
<6>[CSI_ERR]Fourcc format (0x34524742) invalid.
[ 9327.961559] [CSI_ERR]Fourcc format (0x34524742) invalid.
<6>[CSI]buffer_setup, buffer count=4, size=614400
[ 9327.982760] [CSI]buffer_setup, buffer count=4, size=614400
--- Capturing frame...
<6>[CSI_ERR]No active queue to serve
[ 9328.243937] [CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
[ 9328.276695] [CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
[ 9328.309462] [CSI_ERR]No active queue to serve
<6>[CSI_ERR]No active queue to serve
[ 9328.342229] [CSI_ERR]No active queue to serve
Captured frame in 0.00 seconds.
--- Processing captured image...
Writing JPEG image to '/home/olimex/fswebcam.jpg'.

=======================================================================================

When I try to to open camera from Qt application (which uses gstreamer1.0), this is what I see

<6>[CSI]sensor initial success when csi open!
[ 9610.595582] [CSI]sensor initial success when csi open!
<6>[CSI]sensor initial success when csi open!
[ 9612.695566] [CSI]sensor initial success when csi open!
<6>[CSI_ERR]v4l2 sub device queryctrl error!
[ 9612.931148] [CSI_ERR]v4l2 sub device queryctrl error!
<6>[CSI_ERR]input index invalid!
[ 9612.940025] [CSI_ERR]input index invalid!
<6>[CSI_ERR]v4l2 sub device queryctrl error!
[ 9612.948153] [CSI_ERR]v4l2 sub device queryctrl error!
<6>[CSI_ERR]v4l2 sub device queryctrl error!
[ 9612.957622] [CSI_ERR]v4l2 sub device queryctrl error!
<6>[CSI_ERR]v4l2 sub device queryctrl error!
[ 9612.966952] [CSI_ERR]v4l2 sub device queryctrl error!
<6>[CSI_ERR]size is too large,automatically set to maximum!
[ 9612.989468] [CSI_ERR]size is too large,automatically set to maximum!
<6>[CSI_ERR]size is too large,automatically set to maximum!
...
...
...
...
<6>[CSI_ERR]size is too large,automatically set to maximum!
[ 9616.215130] [CSI_ERR]size is too large,automatically set to maximum!
<6>[CSI_ERR]device open busy
[ 9616.225696] [CSI_ERR]device open busy
<6>[CSI_ERR]v4l2 sub device s_parm error!
[ 9616.271021] [CSI_ERR]v4l2 sub device s_parm error!
<6>[CSI_ERR]v4l2 sub device g_ctrl error!
[ 9616.280278] [CSI_ERR]v4l2 sub device g_ctrl error!
<6>[CSI_ERR]v4l2 sub device g_ctrl error!
[ 9616.387121] [CSI_ERR]v4l2 sub device g_ctrl error!


This is the application output:

Unable to open the camera "/dev/video0" for read to query the parameter info: "Device or resource busy"
CameraBin error: "Video device did not suggest any buffer size."
CameraBin error: "Internal data flow error."


==================================================================================

This is my csi_para parts from the script.bin file

[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
gc0308 = 0
gt2005 = 1
hi704 = 0
sp0838 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 0
gc2015 = 0
ov2643 = 0
gc0329 = 0
gc0309 = 0
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
gc2035 = 0

[csi0_para]
csi_used = 1
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = "gt2005"
csi_twi_id = 1
csi_twi_addr = 0x78
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_flash_pol = 0
csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PC16<1><default><default><0>
csi_stby = port:PH12<1><default><default><0>
csi_flash =
csi_af_en =

[csi1_para]
csi_used = 0
csi_dev_qty = 1
csi_stby_mode = 0
csi_mname = "gc0308"
csi_if = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_vflip = 0
csi_hflip = 0
csi_flash_pol = 0
csi_facing = 1
csi_twi_id = 1
csi_twi_addr = 0x42
csi_pck = port:PG00<3><default><default><default>
csi_ck = port:PG01<3><default><default><default>
csi_hsync = port:PG02<3><default><default><default>
csi_vsync = port:PG03<3><default><default><default>
csi_d0 = port:PG04<3><default><default><default>
csi_d1 = port:PG05<3><default><default><default>
csi_d2 = port:PG06<3><default><default><default>
csi_d3 = port:PG07<3><default><default><default>
csi_d4 = port:PG08<3><default><default><default>
csi_d5 = port:PG09<3><default><default><default>
csi_d6 = port:PG10<3><default><default><default>
csi_d7 = port:PG11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><0>


Anyone came across this issue? Any help is appreciated. Thanks

Sergiy