hi,experts
i find DM365_DVR_DVSDK3_00.02.00.00.zip has some bugs.
1,board-dm365-evm.c in mcvip lsp_file dir,line 139,
'static struct tvp7002_platform_data tvp5158_pdata={ ' should be 'static struct tvp5158_platform_data tvp5158_pdata={ '
2,board-dm365-evm.c should include tvp5158.h
after rectifying above code,i add
static struct i2c_board_info i2c_info[]={
....
{I2C_BOARD_INFO("tvp5158",0x5B),},
....
};
then i could find tvp5158 in boot infomation:
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
{ tvp5158_probe
tvp5158 1-005b: chip found @ 0xb6 (DaVinci I2C adapter)
tvp5158 1-005b: tvp5158 1-005b decoder driver registered !!
tvp5158_initialize}
tvp5158_probe}
I2C: Module install successful, device major num = 251
DMA: Module install successful, device major num = 250
TVP5158: Module built on Mar 5 2012 18:18:23
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
mt9p031 1-0048: No MT9P031 chip detected, register read ffffff87
vpfe-capture vpfe-capture: v4l2 sub device mt9p031 register fails
If not,dm365 could not find tvp5158.
However,i run mcvip.out ,i have another error:
if i run mcvip_test.out without slave i2c config,mcvip_test.out begin to run.but it can't find /dev/video0.Could any expert tell me what are /dev/video0 device major number and minor number?
i try "mknod /dev/video0 c 81 0 " and i get error msg :
MCVIP: Starting. Please wait !!!
---- CAPTURE_tskMain -----
port: 0
CAPTURE: Alloc info: numCh=2 numBuf=8, bufSize=847872, allocSize=6782976
MCVIP_v4l2Create(TVP5158_1) video0
ERROR (mcvip_v4l2.c|MCVIP_v4l2Create|82): Device does not support desired vide
o input!
ERROR (capture_tsk.c|CAPTURE_tskCreate|96): MCVIP_create()
ERROR (main.c|UI_sysStart|90): CAPTURE_create()
MCVIP: System Exiting !!!
MCVIP: Bye Bye !!!
any comment,any light,any help would be appreciated greatly!
best regards