我这边用的psp是 PSP 04.02.00.07,Linux版本用的是TI的2.6.37
仿照mt9t111摄像头驱动写ov3640的驱动,ov3640电源和i2c操作都正常,能获取到sensor的id号
我遇到的问题是用saMmapLoopback测试,
log如下
Media: Opened Media Device
Enumerating media entities
[1]:OMAP3 ISP CCP2
[2]:OMAP3 ISP CCP2 input
[3]:OMAP3 ISP CSI2a
[4]:OMAP3 ISP CSI2a output
[5]:OMAP3 ISP CCDC
[6]:OMAP3 ISP CCDC output
[7]:OMAP3 ISP preview
[8]:OMAP3 ISP preview input
[9]:OMAP3 ISP preview output
[10]:OMAP3 ISP resizer
[11]:OMAP3 ISP resizer input
[12]:OMAP3 ISP resizer output
[13]:OMAP3 ISP AEWB
[14]:OMAP3 ISP AF
[15]:OMAP3 ISP histogram
[16]:OV3640 2-003c
[17]:tvp514x 2-005c
Total number of entities: 17
Enumerating links/pads for entities
pads for entity 1=(0 INPUT) (1 OUTPUT)[1:1]===>[5:0] INACTIVE
pads for entity 2=(0 OUTPUT)[2:0]===>[1:0] INACTIVE
pads for entity 3=(0 INPUT) (1 OUTPUT)[3:1]===>[4:0] INACTIVE[3:1]===>[5:0] INACTIVE
pads for entity 4=(0 INPUT)
pads for entity 5=(0 INPUT) (1 OUTPUT) (2 OUTPUT)[5:1]===>[6:0] INACTIVE (该处参考log应该是active的)
[5:2]===>[7:0] INACTIVE[5:1]===>[10:0] INACTIVE[5:2]===>[13:0] ACTIVE
[5:2]===>[14:0] ACTIVE
[5:2]===>[15:0] ACTIVE
pads for entity 6=(0 INPUT)
pads for entity 7=(0 INPUT) (1 OUTPUT)[7:1]===>[9:0] INACTIVE[7:1]===>[10:0] INACTIVE
pads for entity 8=(0 OUTPUT)[8:0]===>[7:0] INACTIVE
pads for entity 9=(0 INPUT)
pads for entity 10=(0 INPUT) (1 OUTPUT)[10:1]===>[12:0] INACTIVE
pads for entity 11=(0 OUTPUT)[11:0]===>[10:0] INACTIVE
pads for entity 12=(0 INPUT)
pads for entity 13=(0 INPUT)
pads for entity 14=(0 INPUT)
pads for entity 15=(0 INPUT)
pads for entity 16=(0 OUTPUT)[16:0]===>[5:0] INACTIVE
pads for entity 17=(0 OUTPUT)[17:0]===>[5:0] INACTIVE
Enabling link [MT9T111]===>[ccdc]
failed to enable link between MT9T111 and ccdc ret =-1
请帮忙分析是哪里出了问题,我该如何添加ov3640到我的项目才能正常工作
echo zhang:
补充下,我现在用的项目是没有tvp514x芯片的,是ov3640直接接到3715的camera接口的
echo zhang:
root@am37x-evm:/test# ./saMmapLoopback
Media: Opened Media DeviceEnumerating media entities[1]:OMAP3 ISP CCP2[2]:OMAP3 ISP CCP2 input[3]:OMAP3 ISP CSI2a[4]:OMAP3 ISP CSI2a output[5]:OMAP3 ISP CCDC[6]:OMAP3 ISP CCDC output[7]:OMAP3 ISP preview[8]:OMAP3 ISP preview input[9]:OMAP3 ISP preview output[10]:OMAP3 ISP resizer[11]:OMAP3 ISP resizer input[12]:OMAP3 ISP resizer output[13]:OMAP3 ISP AEWB[14]:OMAP3 ISP AF[15]:OMAP3 ISP histogram[16]:OV3640 2-003c[17]:tvp514x 2-005cTotal number of entities: 17Enumerating links/pads for entitiespads for entity 1=(0 INPUT) (1 OUTPUT) [1:1]===>[5:0] INACTIVE
pads for entity 2=(0 OUTPUT) [2:0]===>[1:0] INACTIVE
pads for entity 3=(0 INPUT) (1 OUTPUT) [3:1]===>[4:0] INACTIVE [3:1]===>[5:0] INACTIVE
pads for entity 4=(0 INPUT)
pads for entity 5=(0 INPUT) (1 OUTPUT) (2 OUTPUT) [5:1]===>[6:0] INACTIVE [5:2]===>[7:0] INACTIVE [5:1]===>[10:0] INACTIVE [5:2]===>[13:0] ACTIVE[5:2]===>[14:0] ACTIVE[5:2]===>[15:0] ACTIVE
pads for entity 6=(0 INPUT)
pads for entity 7=(0 INPUT) (1 OUTPUT) [7:1]===>[9:0] INACTIVE [7:1]===>[10:0] INACTIVE
pads for entity 8=(0 OUTPUT) [8:0]===>[7:0] INACTIVE
pads for entity 9=(0 INPUT)
pads for entity 10=(0 INPUT) (1 OUTPUT) [10:1]===>[12:0] INACTIVE
pads for entity 11=(0 OUTPUT) [11:0]===>[10:0] INACTIVE
pads for entity 12=(0 INPUT)
pads for entity 13=(0 INPUT)
pads for entity 14=(0 INPUT)
pads for entity 15=(0 INPUT)
pads for entity 16=(0 OUTPUT) [16:0]===>[5:0] INACTIVE
pads for entity 17=(0 OUTPUT) [17:0]===>[5:0] INACTIVE
Enabling link [TVP514x]===>[ccdc]failed to enable link between TVP514x and ccdc
这个是测试程序没有修改显示的测试log
cheng liu:
回复 echo zhang:
你好,您的问题解决了吗,现在我们也在采用这种直接连到camera口的方案,还没有思路,能否指点一下。谢谢