DVSDK3.1版本,Rule.make选择
CPU = DM368
Platform = IPNC
Sensor = OV9712
./av_server.out DM368 NTSC TI2A AEWB 720P H264 4000000 VBR AUTO MENUOFF &
portmapCheck_device_version : DEVICE VER = 1 !!
start_daemon
AVSERVER UI: Initializing.
ApproDrvInit: 7
Creat queue id:131076
queue id:131076
CSL_vpssSetClkDiv
ApproDrvInit: 9
queue id:131076
ApproDrvInit: 8
queue id:131076
DRV LDC: GetConfig 0004 0x0
[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] … ERRORIMAGE TUNE: Paramset File is not available….. Setting DEFAULT parameter
ApproDrvInit: 2
queue id:131076
ApproDrvInit: 6
queue id:131076
ApproDrvInit: 10
queue id:131076
SYSTEM.MSTPRI0 value changed to 00440011
CONFIGURING AVSERVER FOR DM368 …..
queue id:65538
fps= 30, t_frame = 33356572.000000, t_row = 40285.714844, t_pclk = 23.809525
cols = 1692, rows = 828, master_clk = 24000000,pll_clk = 84000000, f_pclk = 42000000
pll_pre_div = 2, pll_mul = 7 pll_div = 2
[ 5.520000] i2c_transfer(0x48, 0xa)
[ 5.530000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
[ 5.550000] i2c_transfer(0x48, 0xa)
[ 5.560000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
[ 5.580000] i2c_transfer(0x48, 0xa)
[ 5.590000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
[ 5.610000] i2c_transfer(0x48, 0xa)
[ 5.620000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
[ 5.640000] i2c_transfer(0x48, 0xa)
[ 5.650000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
[ 5.670000] i2c_transfer(0x48, 0xa)
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsCheckId|728): DRV_i2cRead8()
ERROR (drv_imgs_OV9712_1MP.c|DRV_imgsOpen|46): DRV_imgsCheckId()
ERROR (drv_capture.c|DRV_captureOpen|63): Open failed
ERROR (videoCaptureThr.c|VIDEO_captureTskCreate|87): DRV_captureOpen()
ERROR (videoCaptureThr.c|VIDEO_captureTskMain|745): VIDEO_captureTskCreate() ERROR (avServerMainThr.c|AVSERVER_tskStart|24):/opt/ipnc/modules/init.d_ins/portmap: /opt/ipnc/modules/init.d_ins/portmap: 162: cannot create /var/run/portmap.pid: Read-only file system
log success
sensor板是正常的,用其他的试过有图像出来,换成MT9P031的Sensor是可以正常出图像,每次换Sensor都执行make sysall命令
求TI专家释疑~Thanks.
Shane Huang1:
从您的错误信息来看,应该是和sensor板的I2C不通
Locke Jiang:
回复 Shane Huang1:
1)编码板是通的,因为用MT9P031 Sensor是可以的
2)用其他的程序OV9712 Sensor是可以通的,
这样可以说明编码板和OV9712 Sensor板是正常的了。
Eason Wang:
回复 Locke Jiang:
用其他程序去操作OV9712,是通的, 指的是用I2C去读写OV9712是可以的吗?这个程序,具体做了什么事情?
1. 我建议你单独去操作一下OV9712,读譬如读取device ID以及是进行基本配置,比如让OV9172输出数据等可以直接用示波器来量到配置结果的。
2. 从你最初提供的出错log入手。看上去驱动是要去读取OV9172的一些状态,你可以回代码相应位置看看到底读取的东西是什么。可能你目前的硬件环境有了一些改变导致这个值就不同了,原来所做的检测可能就没有意义了,把相关代码注掉或者修改就应该很容易规避掉这个问题。