运行dvsdk2.10里面的demo,无法正常工作。 但是用dvsdk 4.02的时候,就可以工作。求指教。
dvsdk_2_10_01_18
dm368 Cores: ARM 432 MHz DDR: 340 MHz
composite -> TVP5146 -> DM368zcdef
bootargs console=ttyS0,115200n8 rw mem=76M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=1 vpfe_capture.cont_bufsize=6291456 root=/dev/nfs nfsroot=192.168.0.138:/root/targetfs ip=192.168.0.60:192.168.0.1:255.255.255.0
root@192.168.0.60:/opt/dvsdk# ./loadmodules.sh
cmemk: no version for "struct_module" found: kernel tainted.
CMEMK module: built on Nov 27 2012 at 09:17:51
Reference Linux version 2.6.18 File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
ioremap_nocache(0x85000000, 50331648)=0xc6000000
allocated heap buffer 0xc6000000 of size 0x134000
cmem initialized 20 pools between 0x85000000 and 0x88000000
CMEM Range Overlaps Kernel Physical – allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84c00000)
ioremap_nocache(0x1000, 28672)=0xc5088000
no remaining memory for heap, no heap created for memory block 1
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Nov 27 2012 at 09:20:41
Reference Linux version 2.6.18 File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c irqk initialized EDMAK module: built on Nov 27 2012 at 09:20:40
Reference Linux version 2.6.18 File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
davinci_interrupt 354: VBUS error workaround (delay coming)
root@192.168.0.60:/opt/dvsdk# ./encode -v 2.264
Encode demo started.
vpfe ccdc capture vpfe ccdc capture.1: IMP chained
vpfe ccdc capture vpfe ccdc capture.1: Resizer present
MUX: initialized GPIO40
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:108
davinci_previewer davinci_previewer.2: ipipe_set_preview_config davinci_previewer
davinci_previewer.2: ipipe_set_preview_config
vpfe ccdc capture vpfe ccdc capture.1: IMP chained
vpfe ccdc capture vpfe ccdc capture.1: Resizer present
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 1
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 1
Starting ccdc_config_ycbcr…<7>
starting ccdc_reset…<7>
End of ccdc_reset…<7>
Starting ccdc_setwin…<7>ipipe_set_resizer, resizer – A enabled
DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
layer.pix_fmt.width = 720,
layer.pix_fmt.height = 480,
layer.pix_fmt.sizeimage =529920
DavinciDisplay DavinciDisplay.1: pixfmt->width = 720, layer->layer_info.config.line_length= 736
ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720×480 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720×480 Sound Codec: N/A Sampling Freq: N/A
Feng Dong:
两个版本的log有什么差别?上面的log是哪个版本的?
Lewis Lee:
回复 Feng Dong:
上面的是dvsdk 2.10 的
下面的是4.02的
root@dm365-evm:/opt# ./encode -y 2 -v 1.264
Encode demo started.
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe-capture vpfe-capture: IPIPE Chained
vpfe-capture vpfe-capture: Resizer present
EVM: switch to tvp5146 SD video input
tvp514x 1-005d: tvp5146 (Version – 0x03) found at 0xba (DaVinci I2C adapter)
vpfe-capture vpfe-capture: width = 736, height = 576, bpp = 1
vpfe-capture vpfe-capture: adjusted width = 736, height = 576, bpp = 1, bytesperline = 736, sizeimage = 635904
vpfe-capture vpfe-capture: width = 736, height = 576, bpp = 1 vpfe-capture vpfe-capture: adjusted width = 736, height = 576, bpp = 1, bytesperline = 736, sizeimage = 635904
davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT: layer.pix_fmt.bytesperline = 736, layer.pix_fmt.width = 720,
layer.pix_fmt.height = 576, layer.pix_fmt.sizeimage =635904 davinci_v4l2 davinci_v4l2.1: pixfmt->width = 720, layer->layer_info.config.line_length= 736
ARM Load: 11% Video fps: 25 fps Video bit rate: 3608 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 736×576 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 24% Video fps: 25 fps Video bit rate: 4157 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 736×576 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 24% Video fps: 25 fps Video bit rate: 4166 kbps Sound bit rate: 0 kbps Time: 00:00:03 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 736×576 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 24% Video fps: 25 fps Video bit rate: 4163 kbps Sound bit rate: 0 kbps Time: 00:00:04 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 736×576 Sound Codec: N/A Sampling Freq: N/A
用2.10的时候 好像是dvsdk2.10不能选择tvp5146,我这个板子在dm368和sn74cbt16214间没有找到cpld。
我在dvsdk4.02 board-dm365-evm.c里面找到关于sn74cbt16214的代码。但在dvsdk2.10里没找到,是不是与这个有关?